blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 777
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 149
values | src_encoding stringclasses 26
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 3 10.2M | extension stringclasses 188
values | content stringlengths 3 10.2M | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
62761c4213e8d3fd11ac2734a38d39fed0be7f54 | 44b6bc41fe8e424196f98dbc5b2f050c1f9645f8 | /platforms/windows/dos/34480.py | 15fb0b06f9a6f2300b2fa265f1402a0d1a77a6aa | [] | no_license | angeloobeta/exploit-database | 21283dd8549f47836a35af6f3ea7b63b8dba11ea | 43f3d9e94c01a7f51e30561a96214af231dd9d36 | refs/heads/master | 2021-08-08T21:07:38.794539 | 2017-11-11T05:01:28 | 2017-11-11T05:01:28 | 110,380,452 | 0 | 1 | null | 2017-11-11T21:09:05 | 2017-11-11T21:09:04 | null | UTF-8 | Python | false | false | 1,201 | py | source: http://www.securityfocus.com/bid/42473/info
Xilisoft Video Converter is prone to a buffer-overflow vulnerability because it fails to perform adequate boundary checks on user-supplied data.
Attackers may leverage this issue to execute arbitrary code in the context of the application. Failed attacks will ca... | [
"info@exploit-db.com"
] | info@exploit-db.com |
5f7a9b2612c79430d4c1e5242715bc642e2d3fac | f64e31cb76909a6f7fb592ad623e0a94deec25ae | /leetcode/p1143_longest_common_subsequence.py | 85183f69cab74bceb6e18858c63272d6a774702d | [] | no_license | weak-head/leetcode | 365d635cb985e1d154985188f6728c18cab1f877 | 9a20e1835652f5e6c33ef5c238f622e81f84ca26 | refs/heads/main | 2023-05-11T14:19:58.205709 | 2023-05-05T20:57:13 | 2023-05-05T20:57:13 | 172,853,059 | 0 | 1 | null | 2022-12-09T05:22:32 | 2019-02-27T05:58:54 | Python | UTF-8 | Python | false | false | 1,521 | py | from functools import lru_cache
def lcs_bu_optimized(a, b):
"""
Dynamic Programming, bottom-up
Optimized for space
Time: O(a * b)
Space: O(min(a, b))
a - length of 'a'
b - length of 'b'
"""
if a < b:
a, b = b, a
pre = [0] * (len(b) + 1)
cur = [0] * (len(b... | [
"zinchenko@live.com"
] | zinchenko@live.com |
1270e18c86fefef7504af98a1f66c65d422ca3a5 | bdbeca3fdc7ea3ef2f1b66aab9ea50e15cfbc553 | /django_sample/urls.py | 5153d54fffd528e7e5124cdc3fe449615124944d | [] | no_license | socialcomputing/django_sample | d99b35b4d02ef98e319efec6ef7feee3b29211d7 | ded880a08afdbdd4b899112a7c6d74f07d7c176f | refs/heads/master | 2021-01-13T01:58:08.970181 | 2013-10-24T12:05:54 | 2013-10-24T12:05:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 592 | py | from django.conf.urls.defaults import patterns, include, url
# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'english_learner.views.home', name='home'),
# url(r'^english_learner/', include('en... | [
"roman.prokofyev@gmail.com"
] | roman.prokofyev@gmail.com |
3a21cb6bea3daf9fdb83c7cc3b6c5ea806fcbf2c | 01d92ca39cd4836aaef67e2efcf88a44671c7213 | /code_pack_22/1_threading/locking_with_context.py | d2ee717504e82208c6cb39cf3f7507afc038a607 | [] | no_license | manuelpereira292/py3_bootcamp | 247f411b80f09c46aeeba90a96e6a5d3fd329f2c | 1988553394cb993db82c39993ed397e497bd5ae8 | refs/heads/master | 2022-08-20T02:25:51.265204 | 2020-05-15T22:26:27 | 2020-05-15T22:26:27 | 263,367,513 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 370 | py | import threading
total = 0
lock = threading.Lock()
def update_total(amount):
"""
Updates the total by the given amount
"""
global total
with lock:
total += amount
print (total)
if __name__ == '__main__':
for i in range(10):
my_thread = threading.Thread(
target=... | [
"manuelpereira292@gmail.com"
] | manuelpereira292@gmail.com |
9bf24903265c1bc14d6e5a9f7216a605a464b36c | b2f84608cc28c492430e972028fa0e178865c78c | /source_py2/combi/_python_toolbox/third_party/unittest2/__init__.py | 49e2cceae502115ad7682c8ecd14fb5abac2f8b0 | [
"Python-2.0",
"Apache-2.0",
"BSD-3-Clause",
"MIT"
] | permissive | cool-RR/combi | 54efa752403a4acb6933475102702e43de93c81d | 9c5c143a792ffd8fb38b6470f926268c8bacbc31 | refs/heads/master | 2021-09-23T10:02:52.984204 | 2021-09-18T08:45:57 | 2021-09-18T08:45:57 | 25,787,956 | 24 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,548 | py | """
unittest2
unittest2 is a backport of the new features added to the unittest testing
framework in Python 2.7 and beyond. It is tested to run on Python 2.4 - 2.7.
To use unittest2 instead of unittest simply replace ``import unittest`` with
``import python_toolbox.third_party.unittest2``.
Copyright (c) 1999-2003 S... | [
"ram@rachum.com"
] | ram@rachum.com |
021f1314d0644e555809568baade395ac69141b5 | 0a973640f0b02d7f3cf9211fcce33221c3a50c88 | /.history/src/easy-money_20210129090305.py | ef65231461d111f8f831f2b4447d7863c8308ec4 | [] | no_license | JiajunChen123/IPO_under_review_crawler | 5468b9079950fdd11c5e3ce45af2c75ccb30323c | 031aac915ebe350ec816c05a29b5827fde588567 | refs/heads/main | 2023-02-26T08:23:09.622725 | 2021-02-04T10:11:16 | 2021-02-04T10:11:16 | 332,619,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,586 | py | # 东方财富网 首发申报
from datetime import datetime,timedelta
from urllib.parse import urlencode
import pandas as pd
import requests
import re
import time
base_url = 'https://datainterface.eastmoney.com/EM_DataCenter/JS.aspx?'
headers = {'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like G... | [
"chenjiajun.jason@outlook.com"
] | chenjiajun.jason@outlook.com |
304e3957bdc086d84bb32f2b58268c58ea73ca28 | 55c250525bd7198ac905b1f2f86d16a44f73e03a | /Python/Games/Cheese Boys/cheeseboys/sprites/speech.py | 5e1567b82b17412d9134367a27d554ca30c1da16 | [] | no_license | NateWeiler/Resources | 213d18ba86f7cc9d845741b8571b9e2c2c6be916 | bd4a8a82a3e83a381c97d19e5df42cbababfc66c | refs/heads/master | 2023-09-03T17:50:31.937137 | 2023-08-28T23:50:57 | 2023-08-28T23:50:57 | 267,368,545 | 2 | 1 | null | 2022-09-08T15:20:18 | 2020-05-27T16:18:17 | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:c6cecd706830ed02d31a0263b2cde423305efa564853d608ed6bd0df573421f1
size 5969
| [
"nateweiler84@gmail.com"
] | nateweiler84@gmail.com |
b611f93e5bc12f60c52864354fd9bc2e6658c7e2 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5751500831719424_1/Python/knabbers/game.py | 381bdefdea24efb577b9752009b3a139eb774628 | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 2,449 | py | def solve(file):
f = open(file,'r')
lines = f.readlines()
nCases = int(lines[0])
outf = open("output.txt",'w')
i = 1 # line number
n = 1 # case number
while nCases > 0:
#print("case: " + str(n))
line = lines[i].replace('\n', "").split(" ")
N = int(line[0... | [
"eewestman@gmail.com"
] | eewestman@gmail.com |
b064f1e3de40121d067b76ce1f86adb8ee3c312d | 70410a0fd7fa9004b1d789ca165b21a6bba80b85 | /polls/models.py | 09cec8b62f0c474d5fc67415413ab19d3abdaebd | [] | no_license | Sukhrobjon/django-starter-tutorial | a310907a132d86ae9a7d0ba757642955b0f49569 | 9b6a6f7a8d98b1b85fe24d64d3ca3b7cf12a3932 | refs/heads/master | 2023-04-29T12:05:05.800364 | 2019-07-14T04:17:10 | 2019-07-14T04:17:10 | 189,487,751 | 0 | 0 | null | 2023-04-21T20:37:03 | 2019-05-30T21:57:15 | Python | UTF-8 | Python | false | false | 1,055 | py | import datetime
from django.db import models
from django.utils import timezone
class Question(models.Model):
question_text = models.CharField(max_length=200)
pub_date = models.DateTimeField('date published')
def __str__(self):
"""Return string representation of question text."""
return se... | [
"sgolibbo@mail.ccsf.edu"
] | sgolibbo@mail.ccsf.edu |
c1d98ac5b74e244d504b655e8dc8754ce0952e07 | 76f2a4ea3896a74b155ff970b3ddd538f268ebd4 | /03_function/func_04.py | 8396ab8de7831fcca64ba2b5deb71e7225301c05 | [] | no_license | jnjnslab/python-sample | fb91c34aa274ae6371c9548637e9fe2994da63ff | ce71ceff2854e59c020c646831360a04f6eba0c0 | refs/heads/main | 2023-02-03T01:36:59.926884 | 2020-12-23T10:18:13 | 2020-12-23T10:18:13 | 309,023,319 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 137 | py | #ローカル変数のスコープ
def spam():
eggs = 99
bacon()
print(eggs)
def bacon():
ham = 101
eggs = 0
spam() | [
"jnjnslab@gmail.com"
] | jnjnslab@gmail.com |
7e0c8d8062192d16e4bffd7fe377b23e38eb03c8 | 9469e6459a56566ee84731b023eb18bcc14417e6 | /powerapp_pocket/signals.py | 7a41a308f503b8d894e44053cff82286ef5e5733 | [] | no_license | Doist/powerapp-pocket | b5adca6b768f98ed61299e5436018535309de60c | 920beb7892527f8302c8ea53a2e1edf161ccae91 | refs/heads/master | 2021-01-25T12:07:27.533750 | 2015-06-04T23:47:33 | 2015-06-04T23:47:33 | 35,607,506 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 655 | py | # -*- coding: utf-8 -*-
from logging import getLogger
from django.dispatch.dispatcher import receiver
from .apps import AppConfig
from .tasks import process_item
from powerapp.core.todoist_utils import get_personal_project
logger = getLogger(__name__)
PROJECT_NAME = 'Pocket task list'
@receiver(AppConfig.signals.t... | [
"roman.imankulov@gmail.com"
] | roman.imankulov@gmail.com |
6dde344d937bbde2680824f18e8a250bc34d3438 | 7a550d2268bc4bc7e2fec608ffb1db4b2e5e94a0 | /0601-0700/0606-Construct String from Binary Tree/0606-Construct String from Binary Tree.py | 671610319831f8a2afe833ffb4c97b48a252abe7 | [
"MIT"
] | permissive | jiadaizhao/LeetCode | be31bd0db50cc6835d9c9eff8e0175747098afc6 | 4ddea0a532fe7c5d053ffbd6870174ec99fc2d60 | refs/heads/master | 2021-11-05T04:38:47.252590 | 2021-10-31T09:54:53 | 2021-10-31T09:54:53 | 99,655,604 | 52 | 28 | MIT | 2020-10-02T12:47:47 | 2017-08-08T05:57:26 | C++ | UTF-8 | Python | false | false | 467 | py | # Definition for a binary tree node.
class TreeNode:
def __init__(self, x):
self.val = x
self.left = None
self.right = None
class Solution:
def tree2str(self, t: TreeNode) -> str:
if t is None:
return ''
left = '({})'.format(self.tree2str(t.left)) if t.left o... | [
"jiadaizhao@gmail.com"
] | jiadaizhao@gmail.com |
c0678c6993c807e664ea8ec4b97700245f70a249 | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/8/tmq.py | 27bf48cf32fb5e4b44eceb5c0914b07b54d6bd96 | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
3bdbcd894aca2764c5f613e61735a26b4dcd9682 | 60b1f668808de2b82c2fcb62b07b45bb165219f2 | /egoi-api/models/contact_tags_bulk.py | 777973f2f1f9803fe088a3eca9cc254351553231 | [] | no_license | andersonmiguel/Egoi | 6d37bf7a3a7555e764f7a6e792b3ef1c68fe8e20 | b5f59f9b33ea94e170f4e7e26c6a37a78d2874c2 | refs/heads/master | 2022-06-21T07:18:44.920786 | 2020-05-04T17:29:02 | 2020-05-04T17:29:02 | 261,250,618 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,818 | py | # coding: utf-8
"""
APIv3 (Beta)
# Introduction Just a quick peek!!! This is our new version of API. Remember, it is not stable yet!!! But we invite you play with it and give us your feedback ;) # Getting Started E-goi can be integrated with many environments and programming languages via our REST API. We'v... | [
"integrations@e-goi.com"
] | integrations@e-goi.com |
3e1f295e6825076419cc4b9a199f74184b8640d6 | b6cdef81a572e02c0cbd795a8fb6bbc74f99d627 | /market/urls.py | 638b0bfb0222ca32b774f2061af49d1e112a6482 | [
"MIT"
] | permissive | sodatta/Stocks-Screener | 4afbdd68c1e80dafece50e3e0b967af35dd83c07 | 0b8da91da40b715beaf3a79163b1bdf6ea3be3b9 | refs/heads/master | 2023-07-27T13:14:47.798403 | 2021-05-03T20:04:51 | 2021-05-03T20:04:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 596 | py | from django.urls import path
from market.views import *
app_name = "market"
urlpatterns = [
path('list', list_stocks, name='list_stocks'),
path('create', create_stock, name='create_stock'),
path('update/<int:pk>', update_stock, name='update_stock'),
path('delete/<int:pk>', delete_stock, name='delete_... | [
"mohammedshokr2014@gmail.com"
] | mohammedshokr2014@gmail.com |
0235ff898c02b1ea6cffade6cdbd16bf275f62db | 054ddbc1fa0e1b1d0a999bbe877591e942aa0f12 | /python/02-python高级-2/07-调试程序.py | fe40b41d92b7c298c62ebdd30a2a6a9627d046fd | [] | no_license | VinceBy/newone | 66c8cf77159344c7d2ec196233d58a412e1c3073 | ffc6a0d9ccbdb3f66c4995834f01e3bc2df0415d | refs/heads/master | 2022-02-22T23:00:21.720497 | 2019-07-09T08:47:25 | 2019-07-09T08:47:25 | 195,958,240 | 0 | 0 | null | 2022-02-12T09:19:32 | 2019-07-09T07:42:20 | Python | UTF-8 | Python | false | false | 337 | py | #coding=utf-8
import pdb
def add3Nums(a1,a2,a3):
result = a1+a2+a3
return result
def get3NumsAvarage(s1,s2):
s3 = s1 + s2 + s1
result = 0
result = add3Nums(s1,s2,s3)/3
return result
if __name__ == '__main__':
a = 11
# pdb.set_trace()
b = 12
final = get3NumsAvarage(a,b... | [
"1260787968@qq.com"
] | 1260787968@qq.com |
1dfa288faab5484bb37471149f7533c066d2365c | b37e40e4dc4ad3fc9c317b68284fb86955a64bf5 | /a1/venv/lib/python3.6/site-packages/probability/distributions/functions/discrete_function_1d.py | 604d6e50deadbe409568e07b3f193e7efeeefe6d | [] | no_license | bateikoEd/Text-mining | 89c57dec1b6ffcae82a49fc6a23acab89d7ca60e | ccd3f50b694b90269450e5304c504fac5a117f59 | refs/heads/master | 2021-01-14T18:02:35.642837 | 2021-01-13T14:04:56 | 2021-01-13T14:04:56 | 242,695,063 | 0 | 1 | null | 2020-05-20T09:46:22 | 2020-02-24T09:28:46 | Python | UTF-8 | Python | false | false | 2,324 | py | from matplotlib.axes import Axes
from pandas import Series
from scipy.stats import rv_discrete
from typing import Iterable, overload
from probability.distributions.mixins.plottable_mixin import PlottableMixin
from probability.plots import new_axes
class DiscreteFunction1d(object):
def __init__(self, distributio... | [
"bateiko0713@gmail.com"
] | bateiko0713@gmail.com |
28d07593900fbe9c33f4f5c559e0ca97f30e0ba5 | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/response/DatadigitalFincloudFinsaasDigitalrmbSendSyncResponse.py | 230307b7cea48730702e6bdd98d81bd253790e93 | [
"Apache-2.0"
] | permissive | alipay/alipay-sdk-python-all | 8bd20882852ffeb70a6e929038bf88ff1d1eff1c | 1fad300587c9e7e099747305ba9077d4cd7afde9 | refs/heads/master | 2023-08-27T21:35:01.778771 | 2023-08-23T07:12:26 | 2023-08-23T07:12:26 | 133,338,689 | 247 | 70 | Apache-2.0 | 2023-04-25T04:54:02 | 2018-05-14T09:40:54 | Python | UTF-8 | Python | false | false | 497 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.response.AlipayResponse import AlipayResponse
class DatadigitalFincloudFinsaasDigitalrmbSendSyncResponse(AlipayResponse):
def __init__(self):
super(DatadigitalFincloudFinsaasDigitalrmbSendSyncResponse, self).__init__()
d... | [
"jishupei.jsp@alibaba-inc.com"
] | jishupei.jsp@alibaba-inc.com |
7158e87783927fb9354ce9b8d81f6f0ec4788c5e | 2fcc860bcc2c76f91e899de880e4c6d8a4b1abfb | /spider/users/tests/test_forms.py | caca2bfdb6e0549bfa0f222376dd815227564165 | [
"MIT"
] | permissive | dcopm999/spider | 54de2e10def4db662ce15f4e4fd3682927f2999b | 889d2ee6d3d5f54ccb1f22a645244bc7395bb202 | refs/heads/master | 2022-12-24T23:15:32.343792 | 2020-10-02T14:33:45 | 2020-10-02T14:33:45 | 300,559,008 | 0 | 0 | MIT | 2020-10-02T14:33:46 | 2020-10-02T09:03:09 | Python | UTF-8 | Python | false | false | 1,111 | py | import pytest
from spider.users.forms import UserCreationForm
from spider.users.tests.factories import UserFactory
pytestmark = pytest.mark.django_db
class TestUserCreationForm:
def test_clean_username(self):
# A user with proto_user params does not exist yet.
proto_user = UserFactory.build()
... | [
"dcopm999@gmail.com"
] | dcopm999@gmail.com |
f3ccf27cfb27169b20dc78aba448e82e482efb89 | a7371301cea503bacc82619fde651aac85f2738b | /mccabe_group/scripts/test/modify_water_xml.py | 171abb566e3b394533209315a25f7a6a686931f5 | [] | no_license | PTC-CMC/McCabeGroup | b9931a022d0af52aeb2891b548c6294ebc0ab7b7 | 19e0578e91fc82cc24e974b9cc2e3b6a6722d36b | refs/heads/master | 2021-06-11T05:05:53.034326 | 2020-03-24T01:40:05 | 2020-03-24T01:40:05 | 128,414,852 | 1 | 3 | null | 2020-03-06T17:46:44 | 2018-04-06T15:47:17 | Python | UTF-8 | Python | false | false | 3,192 | py | import pdb
from lxml import etree
import numpy as np
#KJ_TO_KCAL = 0.239
#NM_TO_A = 10
# Units from the chodera group were in agreement with foyer/openmm units
# leave everything in terms of kj and nm, but I'm too lazy to modify the
# functions below, so i'm leaving the conversions here
KJ_TO_KCAL = 1
NM_TO_A = 1
... | [
"ahy3nz@virginia.edu"
] | ahy3nz@virginia.edu |
677aa3639fe10a720b5b170c8406f7544d2a8ab4 | 64832dd1e64cfc6de83c5abf099461eda50f648c | /major/migrations/0006_auto_20190212_1502.py | 9a52e37c1930c929474d4d021feb9c920e6e2d76 | [] | no_license | showzvan/mysite | d7e79e16eb8c2d3598d00d1a96fa0b1940765913 | 32826c83915a2f95440c04ed20a7800d2c343ac1 | refs/heads/master | 2020-04-27T17:05:19.143296 | 2019-03-08T09:09:45 | 2019-03-08T09:09:45 | 174,504,656 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 420 | py | # Generated by Django 2.1.5 on 2019-02-12 15:02
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('major', '0005_auto_20190212_1457'),
]
operations = [
migrations.AlterModelOptions(
name='majors',
options={'ordering': ['maj... | [
"1183005957@qq.com"
] | 1183005957@qq.com |
df10c7affbd76dbac828bbf7e7e2e2c2252c50a9 | 54982f9506789cacd236a8890cd67c48d0e8df0e | /git_laser_scanner/devel/_setup_util.py | a6b174641e4b24fbaad0f283baadafe28bebdc2a | [] | no_license | bassie8881/ROS_stuff | 53e0d750c35f653bf9f93cf28ee7d7b604a69af6 | 627b114c6dd469a4e81085a894676e60aeb23691 | refs/heads/master | 2021-01-17T17:03:25.219628 | 2016-07-14T03:12:04 | 2016-07-14T03:12:04 | 63,243,187 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,356 | py | #!/usr/bin/python
# Software License Agreement (BSD License)
#
# Copyright (c) 2012, Willow Garage, Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistributions of source code mu... | [
"bas_bosscher@hotmail.com"
] | bas_bosscher@hotmail.com |
c50f4d0827019512e5a5c1ff85c3e4ed26cc6f05 | f9684c301ce50a6bbb5a75280cd4c70277119f27 | /yelpdetails/yelpdetails/middlewares.py | b5a408ed741194ce385e883725c5905470a0166d | [] | no_license | vaibhav89000/yelpdetails | 76149f2feed5cbad98b3e67d3a786223289fc1f4 | b7ce6f739a7f76fbe665e27eb097475775c0c489 | refs/heads/master | 2022-11-25T05:09:56.803075 | 2020-07-06T12:45:54 | 2020-07-06T12:45:54 | 269,969,213 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,591 | py | # -*- coding: utf-8 -*-
# Define here the models for your spider middleware
#
# See documentation in:
# https://docs.scrapy.org/en/latest/topics/spider-middleware.html
from scrapy import signals
class YelpdetailsSpiderMiddleware:
# Not all methods need to be defined. If a method is not defined,
# scrapy act... | [
"vaibhav89000@gmail.com"
] | vaibhav89000@gmail.com |
3d9532f5a3b3bbc62b89f781bbac4a6bf43b70d0 | 4b0e7c654249cc098ed2230f16e5a19a9329ca4b | /Day3/whileExample.py | 3d9dde6bc49db6e3f2a7ceffb0e1a7139ec1ea48 | [] | no_license | aravindanath/rio_de_janeiro | 5a1d41e4ff4201f2b6be2f81437376c01ae30238 | 43a6c0f704ff5d55256705da13057d1532510f16 | refs/heads/master | 2020-07-24T13:40:55.655457 | 2019-12-02T02:47:16 | 2019-12-02T02:47:16 | 207,945,814 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 221 | py |
empty=[]
tup= (1,2,3,55.3,3)
x = 0
while x<=10:
print(x)
empty.append(x)
x=x+3
# break
else:
print("Out of loop!..")
print(empty)
empty.sort(reverse=True)
print(empty)
empty.pop()
print(empty) | [
"aravindanath86@gmail.com"
] | aravindanath86@gmail.com |
05f77bf55f362c947875830112ac1b7baf13a757 | 118f14634ea34b6301f076cc0137272e2a683322 | /store/migrations/0002_store.py | 5faf770281abebb25befe598b0d8fbf90754fb2f | [
"MIT"
] | permissive | vollov/ecomstore | 10fce347c100fcbaa86687a5738dcf57dba05fc9 | ba9d7e6d74b29de2e3e9411a481248afdc172a40 | refs/heads/master | 2021-01-09T21:54:21.976982 | 2015-10-28T20:31:07 | 2015-10-28T20:31:07 | 45,086,698 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,128 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import uuid
class Migration(migrations.Migration):
dependencies = [
('store', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Store',
fields=[... | [
"dike.zhang@gmail.com"
] | dike.zhang@gmail.com |
a826b762da02774c07c94c4213076ad10aa14a12 | ee9a391b2023ec3d02dfa44a00e9b219a56c1890 | /exercises/timers_ex1.py | f93d350c0d02c0795a340ef5fbc0a32cbaea678c | [
"Unlicense"
] | permissive | kotalbert/interprog1 | b12b5f281bd93440818275b6da6a987e206e1cec | a49ecef14453839518f1e8a6551fb3af493b1c2c | refs/heads/master | 2021-05-29T01:51:13.758768 | 2015-03-12T15:38:34 | 2015-03-12T15:38:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 523 | py | """
An Introduction to Interactive Programming in Python (Part 1)
Practice exercises for timers # 1.
Counter to console.
"""
# Counter ticks
###################################################
# Student should add code where relevant to the following.
import simpleguitk as simplegui
counter = 0
# Timer handler
... | [
"pawel@daniluk.waw.pl"
] | pawel@daniluk.waw.pl |
85ed587604b914ef8a8d2922a8737395eb48e553 | 946ff3fa181aa5ebb3e4f8d4bb7c15b6f6fe63a9 | /tests/algorithms/conftest.py | 5686332d238c67925b0c84ee05c1ed34a4376821 | [
"BSD-3-Clause"
] | permissive | VIDA-NYU/openclean-metanome | 9908e725d482fab12903e9e87307c5ddf06590c8 | 37948eb25142ed4ba884fc07bfe0cad5666769e8 | refs/heads/master | 2023-06-04T15:42:02.600499 | 2021-06-16T08:38:54 | 2021-06-16T08:38:54 | 294,754,491 | 1 | 0 | BSD-3-Clause | 2021-06-16T08:38:54 | 2020-09-11T17:02:45 | Python | UTF-8 | Python | false | false | 641 | py | # This file is part of the Data Cleaning Library (openclean).
#
# Copyright (C) 2018-2021 New York University.
#
# openclean is released under the Revised BSD License. See file LICENSE for
# full license details.
"""Fixtures for Metanome algorithm unit tests."""
import pandas as pd
import pytest
from openclean.data.... | [
"heiko.muller@gmail.com"
] | heiko.muller@gmail.com |
f672cb05e879429500f154f105cba25f6049575f | 87e6c47bf745f0b00de2dd9bfe4d4c202cd25def | /projects/vcf/__main__.py | 6d2f55cc310ca95d19a815a07c0850ab7de4803d | [
"Apache-2.0"
] | permissive | Scsabiii/vcf-automation | 16b32fabf63b63022bcf95f12d22e62d11bd5478 | b76bba2b7d490bc7c1581c9f8d75c4052baaa4e9 | refs/heads/master | 2023-06-11T20:36:50.321149 | 2021-07-07T08:50:40 | 2021-07-07T08:50:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,641 | py | """An OpenStack Python Pulumi program"""
import pulumi
from pulumi_openstack import Provider
from vcf import ManagementStack, WorkloadStack
# stack
config = pulumi.Config()
stack_name = pulumi.get_stack()
stack_type = config.require("stackType")
#####################################################################... | [
"chuan137@gmail.com"
] | chuan137@gmail.com |
043e2c0866d46c3ddd37eb76fe44483a7ca5e30b | aa4024b6a846d2f6032a9b79a89d2e29b67d0e49 | /UMLRT2Kiltera_MM/StateMachineElement.py | 9e700e1b1b320c32953b3d9ae77e4000af6b9adb | [
"MIT"
] | permissive | levilucio/SyVOLT | 41311743d23fdb0b569300df464709c4954b8300 | 0f88827a653f2e9d3bb7b839a5253e74d48379dc | refs/heads/master | 2023-08-11T22:14:01.998341 | 2023-07-21T13:33:36 | 2023-07-21T13:33:36 | 36,246,850 | 3 | 2 | MIT | 2023-07-21T13:33:39 | 2015-05-25T18:15:26 | Python | UTF-8 | Python | false | false | 3,875 | py | """
__StateMachineElement.py_____________________________________________________
Automatically generated AToM3 syntactic object (DO NOT MODIFY DIRECTLY)
Author: gehan
Modified: Sat Aug 30 18:23:40 2014
_____________________________________________________________________________
"""
from ASGNode import *
from ATOM3T... | [
"levi"
] | levi |
385b947796cd7f565fd783fac4dea3070265ab44 | f9609ff4f2bbea570f3cb4cd3f9fe6b3595d4145 | /commands/cmd_pick.py | bc62e4f118aaf1f658d5fc3efcd20ce0ae76c432 | [] | no_license | VladThePaler/PythonWars-1996 | 2628bd2fb302faacc91688ad942799537c974f50 | d8fbc27d90f1deb9755c0ad0e1cf2c110f406e28 | refs/heads/master | 2023-05-08T19:51:28.586440 | 2021-05-14T04:19:17 | 2021-05-14T04:19:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,025 | py | # PythonWars copyright © 2020, 2021 by Paul Penner. All rights reserved.
# In order to use this codebase you must comply with all licenses.
#
# Original Diku Mud copyright © 1990, 1991 by Sebastian Hammer,
# Michael Seifert, Hans Henrik Stærfeldt, Tom Madsen, and Katja Nyboe.
#
# Merc Diku Mud improvements copyrig... | [
"jindrak@gmail.com"
] | jindrak@gmail.com |
74bf53139b3f8bfc328dc22a1fe0d0984f23aa1e | 48983b88ebd7a81bfeba7abd6f45d6462adc0385 | /HakerRank/algorithms/warmup/staircase.py | f66d8b95f9711713c81d74b72fc3f7ae9288baed | [] | no_license | lozdan/oj | c6366f450bb6fed5afbaa5573c7091adffb4fa4f | 79007879c5a3976da1e4713947312508adef2e89 | refs/heads/master | 2018-09-24T01:29:49.447076 | 2018-06-19T14:33:37 | 2018-06-19T14:33:37 | 109,335,964 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 286 | py | # author: Daniel Lozano
# source: HackerRank ( https://www.hackerrank.com )
# problem name: Algorithms: Warmup: Staircase
# problem url: https://www.hackerrank.com/challenges/staircase/problem
# date: 7/10/2017
n = int(input())
for i in range(n):
print(" " * (n-1-i) + '#' * (i+1)) | [
"lozanodaniel02@gmail.com"
] | lozanodaniel02@gmail.com |
9ac452966e223226c3e1db9ec7adaaf16dfac7a3 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_34/108.py | 8e333fdaa30e655bb563ae427b87024a7b16ab27 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,289 | py | #!/usr/bin/env python
def main():
dict = [];
fin = open("A-large.in","r");
fout = open("output.out","w");
st = [];
st = (fin.readline().split());
L = int(st[0]);
# print L;
D = int(st[1]);
N = int(st[2]);
for i in range(D):
dict.append(fin.readline());
flag = 0;
f... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
c79ad8ea925dbcbafa6913dc553dcbc36d642ec6 | 8ac3fe3d861a222210912a02effea2110456d052 | /django_for_beginners/project_5_newspaper_app/project_5_newspaper_app/wsgi.py | cca475eb69cb94b0610ce991e98ef571d9d83dc4 | [
"MIT"
] | permissive | rednafi/django-unchained | 40446960f52f0c905a6ba3e318154ca11a31188b | 0f71c8d056699496d4af3ab049f9b2f9d057486b | refs/heads/master | 2022-12-10T10:11:52.906880 | 2020-09-01T17:43:58 | 2020-09-01T17:43:58 | 282,356,752 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 423 | py | """
WSGI config for project_5_newspaper_app project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefau... | [
"redowan.nafi@gmail.com"
] | redowan.nafi@gmail.com |
bea4cd0cbd5c164f7b157b32e2a4113a59ad3e38 | 228ebc9fb20f25dd3ed2a6959aac41fd31314e64 | /google/cloud/aiplatform/v1beta1/schema/trainingjob/definition_v1beta1/types/automl_text_classification.py | bd52a0e808e5760a15e7a8f060d804b2c5a3c921 | [
"Apache-2.0"
] | permissive | orionnye/python-aiplatform | 746e3df0c75025582af38223829faeb2656dc653 | e3ea683bf754832340853a15bdb0a0662500a70f | refs/heads/main | 2023-08-03T06:14:50.689185 | 2021-09-24T03:24:14 | 2021-09-24T03:24:14 | 410,091,957 | 1 | 0 | Apache-2.0 | 2021-09-24T20:21:01 | 2021-09-24T20:21:00 | null | UTF-8 | Python | false | false | 1,485 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"noreply@github.com"
] | orionnye.noreply@github.com |
c00fd188b7a82678a3bc54928e908cf3ac38606d | 0fa3ad9a3d14c4b7a6cb44833795449d761b3ffd | /day13_all/day13/exercise01.py | 3be55a1b970b4e3020ba5ee3075394ff7c75dee3 | [] | no_license | dalaAM/month-01 | 3426f08237a895bd9cfac029117c70b50ffcc013 | e4b4575ab31c2a2962e7c476166b4c3fbf253eab | refs/heads/master | 2022-11-22T23:49:43.037014 | 2020-07-24T07:37:35 | 2020-07-24T07:37:35 | 282,154,216 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,049 | py | """
重写下列类型的str方法,体会重写
"""
class Employee:
def __init__(self, eid, did, name, money):
self.eid = eid
self.did = did
self.name = name
self.money = money
def __str__(self):
return f"{self.name}的员工编号是{self.eid},部门编号是{self.did},月薪是{self.money}"
class Department:
d... | [
"1105504468@qq.com"
] | 1105504468@qq.com |
240fb61b081a081b9f3c81c6e1a9ad742e59c0bf | 1bfad01139237049eded6c42981ee9b4c09bb6de | /RestPy/ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocols/bgp/ipv4multicast.py | 2baf3dbdd4ebc6ddbc3f29808a704fecd9fbf9e5 | [
"MIT"
] | permissive | kakkotetsu/IxNetwork | 3a395c2b4de1488994a0cfe51bca36d21e4368a5 | f9fb614b51bb8988af035967991ad36702933274 | refs/heads/master | 2020-04-22T09:46:37.408010 | 2019-02-07T18:12:20 | 2019-02-07T18:12:20 | 170,284,084 | 0 | 0 | MIT | 2019-02-12T08:51:02 | 2019-02-12T08:51:01 | null | UTF-8 | Python | false | false | 7,158 | py |
# Copyright 1997 - 2018 by IXIA Keysight
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify, merge, p... | [
"hubert.gee@keysight.com"
] | hubert.gee@keysight.com |
4d10320d891c2f97f5555759930874aabd3c98d3 | 0c42cb64dfe3ec9a046fc95bd26543faa4e0aa6b | /users/forms.py | 3785a73dcb9b70433314f4a6da334bb0885e8f3b | [] | no_license | shahjalalh/zed | 38bf0e4ad2eea4b066b6be55e6a7f1aefffc00e5 | 7bc9dc5b5e1921204c2b7cf72afe43d798953599 | refs/heads/master | 2022-12-12T10:17:19.797791 | 2021-01-27T15:31:48 | 2021-01-27T15:31:48 | 171,094,577 | 0 | 0 | null | 2021-01-27T15:32:54 | 2019-02-17T07:35:58 | CSS | UTF-8 | Python | false | false | 3,605 | py | from django import forms
from users.models import User
from django.contrib.auth.forms import UserCreationForm
from allauth.account.forms import LoginForm, SignupForm
# login form
class CustomLoginForm(LoginForm):
def __init__(self, *args, **kwargs):
super(CustomLoginForm, self).__init__(*args, **kwargs)
... | [
"shahjalal.tipu@gmail.com"
] | shahjalal.tipu@gmail.com |
860481e131fd0dc2c26a1d2ead6ea3a7a31f40ac | e5cf5fd657b28d1c01d8fd954a911d72526e3112 | /rflx/OLD/rflx_fun.py | 6b410b651f85f51fbb1669486baa8c55b88da077 | [] | no_license | parkermac/ptools | 6b100f13a44ff595de03705a6ebf14a2fdf80291 | a039261cd215fe13557baee322a5cae3e976c9fd | refs/heads/master | 2023-01-09T11:04:16.998228 | 2023-01-02T19:09:18 | 2023-01-02T19:09:18 | 48,205,248 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,582 | py | """
Functions for the rflx code.
"""
import numpy as np
# function to create Sin and Sout
def get_Sio_chatwin(Qr, Socn, ds, nx):
L0 = 50e3 # length of salt intrusion for Qr = Qr0
Qr0 = 1e3 # m3/s
L= L0 * (Qr/Qr0)**(-1/3) # length of salt intrusion (m)
a = Socn/(L**1.5)
alpha = ds/L
x = np.lins... | [
"p.maccready@gmail.com"
] | p.maccready@gmail.com |
ecb1c92c6cb9c09b5bd1f743a447b6cca333fd5f | 3c47fdc334c003a205a35eb9e1b39963e62c3161 | /iotedgehubdev/composeproject.py | 24873eabdbcdb968b9e45817b09996d7da378087 | [
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | Azure/iotedgehubdev | 9b67a5c1af43ba787025dfade2ecc655cfcd7d62 | 7eede7286a0603e565c8b183d090f2585521aae6 | refs/heads/main | 2023-09-04T02:54:46.212462 | 2022-11-04T00:37:49 | 2022-11-04T00:37:49 | 138,967,965 | 97 | 37 | NOASSERTION | 2022-11-04T00:37:50 | 2018-06-28T04:57:46 | Python | UTF-8 | Python | false | false | 8,781 | py | # Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
import json
import os
import sys
import yaml
from collections import OrderedDict
from io import StringIO
from .compose_parser import CreateOptionParser
from .output import Output
COMPOSE_VERSION = 3.6
CREATE_OPTIONS_MAX_C... | [
"noreply@github.com"
] | Azure.noreply@github.com |
737148ea7829692220c67ae1a0891bebe51dbb7c | be84cb7f6d239e72ffe0bd727124ced688560e83 | /zhiyou/items.py | ee8914e431897f6604ba475639a0cd5daa8e2752 | [] | no_license | liuyuqiong88/youji_spider | 6fded24514256907e463377ecf0abb48bca2c71e | 2c2ae28a4e3654d46c025b3d1e736d5db7ca8d2d | refs/heads/master | 2020-03-17T12:51:22.029216 | 2018-05-16T03:34:21 | 2018-05-16T03:34:21 | 133,606,049 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 641 | py | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# https://doc.scrapy.org/en/latest/topics/items.html
import scrapy
class ZhiyouItem(scrapy.Item):
# define the fields for your item here like:
data_source = scrapy.Field()
time_stamp = scrapy.Field()
c... | [
"xwp_fullstack@163.com"
] | xwp_fullstack@163.com |
fac4b28d499e22ce687f715e8ecc4a4f5f132391 | 362224f8a23387e8b369b02a6ff8690c200a2bce | /django/django_orm/wall/login_app/migrations/0003_auto_20210511_1328.py | 2728d4dbaa480b108c62108ed84f8255c853d617 | [] | no_license | Helenyixuanwang/python_stack | ac94c7c532655bf47592a8453738daac10f220ad | 97fbc77e3971b5df1fe3e79652b294facf8d6cee | refs/heads/main | 2023-06-11T02:17:27.277551 | 2021-06-21T17:01:09 | 2021-06-21T17:01:09 | 364,336,066 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 677 | py | # Generated by Django 2.2 on 2021-05-11 20:28
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('login_app', '0002_comment_message'),
]
operations = [
migrations.AddField(
model_name='comment',
... | [
"wangyixuan@msn.com"
] | wangyixuan@msn.com |
8c6e52f21979f9c706821df3c1e10416bad935da | 910d4dd8e56e9437cf09dd8b9c61167673140a1f | /0219 stack 2/부분집합.py | 9cc5973c23a43a26be7da70e2af42e568605cd34 | [] | no_license | nopasanadamindy/Algorithms | 10825b212395680401b200a37ab4fde9085bc61f | 44b82d2f129c4cc6e811b651c0202a18719689cb | refs/heads/master | 2022-09-28T11:39:54.630487 | 2020-05-29T09:49:56 | 2020-05-29T09:49:56 | 237,923,602 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 686 | py | # {1, 2, 3} 모든 부분집합 출력하기
N = 3
A = [0 for _ in range(N)] # 원소의 포함여부 저장(0,1)
# print(A)
data = [1, 2, 3]
def printSet(n):
for i in range(n): # 각 부분 배열의 원소 출력
if A[i] ==1: # A[i]가 1이면 포함된 것이므로 출력
print(data[i], end =" ")
print()
def powerset(n, k): # n : 원소의 갯수, k : 현재 depth
if n == k:... | [
"iuui21@snu.ac.kr"
] | iuui21@snu.ac.kr |
30651ba1a8f4ce79c71012e118c0a9a7428f5387 | e951c686fc947efd10ff41069b43a7b875672c33 | /server/network_monitor_web_server/db/mysql_relevant/sql_str/monitor_detail.py | 92f774d13f2e381df4822faef8d8b106510b5dba | [] | no_license | JasonBourne-sxy/host-web | f48c794f2eb2ec7f8a5148620b6ca3f9b062b924 | 649d1a61ac15182b55c17e47c126d98d9b956b44 | refs/heads/master | 2022-12-20T09:21:57.947230 | 2019-10-28T07:23:41 | 2019-10-28T07:23:41 | 208,742,511 | 1 | 0 | null | 2022-12-11T06:57:55 | 2019-09-16T07:56:38 | Python | UTF-8 | Python | false | false | 354 | py | # -*- coding: utf-8 -*-
"""
-------------------------------------------------
File Name: monitor_detail
Description :
Author : 'li'
date: 2019/9/27
-------------------------------------------------
Change Activity:
2019/9/27:
-----------------------------------------... | [
"marjey_lee@163.com"
] | marjey_lee@163.com |
6be47ea1b25a7f616323e96ebf21cd91bbb04755 | 8e39a4f4ae1e8e88d3b2d731059689ad5b201a56 | /media-libs/mesa/mesa-10.2.6.py | 0a7a0fdb1972e3f63a51df926253636303e94fa2 | [] | no_license | wdysln/new | d5f5193f81a1827769085932ab7327bb10ef648e | b643824b26148e71859a1afe4518fe05a79d333c | refs/heads/master | 2020-05-31T00:12:05.114056 | 2016-01-04T11:38:40 | 2016-01-04T11:38:40 | 37,287,357 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,869 | py | metadata = """
summary @ Mesa 3-D graphics libraries and include files
homepage @ http://mesa3d.sourceforge.net/
license @ custom
src_url @ http://ftp.osuosl.org/pub/blfs/conglomeration/MesaLib/MesaLib-$version.tar.bz2
arch @ ~x86_64
"""
depends = """
build @ x11-libs/libXdamage x11-libs/libXext x11-libs/libXfixes
... | [
"zirkovandersen@gmail.com"
] | zirkovandersen@gmail.com |
9e3a392c6349b84aba9f6ca914893cfcbd83c8b2 | 73f9ce203129a8a5b3742655ab36bb0014ebf30b | /example/test.py | 32cb2da78bf4cec3f3e51de4b3b902d3b6be2bb3 | [
"MIT"
] | permissive | masterliuf/akshare | bd20c6999253a8e4ccc7949a8d89c4fc5559b3bf | 15907161341041dce0fd7a7bdcad7bda4b999187 | refs/heads/master | 2022-07-15T22:57:19.249644 | 2022-06-21T01:26:12 | 2022-06-21T01:26:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,819 | py | import akshare
import empyrical
def test():
print('测试及功能展示: ')
# ----------------------------------------------------------------------
print('\n' + '-' * 80 + '\n一个品种在时间轴上的展期收益率')
df = akshare.get_roll_yield_bar(type_method='date', var='RB', start_day='20181206', end_day='20181210', plot=False)
... | [
"jindaxiang@163.com"
] | jindaxiang@163.com |
f5b582683a9ff2eb527d8b9eb52ab2071db25516 | ff56fa387876e07d0d64114cfefec84c9437a6a1 | /share/gcompris/python/braille_lotto.py | ab8dc9d1fb5f77414e66620527c873821cba88d8 | [] | no_license | sugar-activities/4313-activity | 8dc44f413b5657a807c77310a5d5ae67d201321b | 7a82fcb52c5c6ea816950f7980e8da177041b479 | refs/heads/master | 2021-01-19T23:15:32.356071 | 2017-04-21T04:56:00 | 2017-04-21T04:56:00 | 88,937,425 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,668 | py | # gcompris - braille_lotto.py
#
# Copyright (C) 2011 Bruno Coudoin and Srishti Sethi
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your opt... | [
"ignacio@sugarlabs.org"
] | ignacio@sugarlabs.org |
9971c8b78a57215b996b334a79046ce2255c989c | 1acafe9b0497db2a481828a0505ceb042a80e43b | /tree/stack.py | f0de889ef2a86a55f572bd1b888554abc397cca7 | [] | no_license | weiweiECNU/pythonDataStructure | fbe6dc1579deb85483b805ff416a61a513e41dea | 971a2f74423eec581bf6134c6aa21719209608ee | refs/heads/master | 2020-06-13T21:36:37.844642 | 2019-08-07T10:55:01 | 2019-08-07T10:55:01 | 194,793,611 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,001 | py | class Stack:
def __init__(self):
'''Stack()创建一个新的空栈。不需要参数,并返回一个空栈'''
self.items = []
def push(self, item):
'''Push(item)将新项添加到堆栈的顶部。它需要参数 item 并且没有返回值'''
self.items.append(item)
def pop(self):
'''pop()从栈顶删除项目。它不需要参数,返回 item。栈被修改'''
return self.items.po... | [
"weiweiwill995@gmail.com"
] | weiweiwill995@gmail.com |
67e7fa2072ca379da2b2785d764631b9a9e688bd | a46d135ba8fd7bd40f0b7d7a96c72be446025719 | /packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_tick0.py | 6ae415fecf9370dbd6eba565777c31f610d94a67 | [
"MIT"
] | permissive | hugovk/plotly.py | 5e763fe96f225d964c4fcd1dea79dbefa50b4692 | cfad7862594b35965c0e000813bd7805e8494a5b | refs/heads/master | 2022-05-10T12:17:38.797994 | 2021-12-21T03:49:19 | 2021-12-21T03:49:19 | 234,146,634 | 0 | 0 | MIT | 2020-01-15T18:33:43 | 2020-01-15T18:33:41 | null | UTF-8 | Python | false | false | 498 | py | import _plotly_utils.basevalidators
class Tick0Validator(_plotly_utils.basevalidators.AnyValidator):
def __init__(
self, plotly_name="tick0", parent_name="scattergl.marker.colorbar", **kwargs
):
super(Tick0Validator, self).__init__(
plotly_name=plotly_name,
parent_name=... | [
"noreply@github.com"
] | hugovk.noreply@github.com |
9cf5b65f60eebae66537830916a502043fbbc1cf | a27cde0fa2415f2cb296369dd9bfab65f655164c | /5/5-11.py | 43e4de162f8e7246940f7518e5bd2bcb8b928de6 | [] | no_license | paalso/hse_python_course | c47ea010ba4173fefbcbb6b97fc3c74a84a9fd12 | 9e9d2001143afbd873152833dafb9682b5bae824 | refs/heads/master | 2021-06-25T05:12:37.368806 | 2020-12-21T09:48:37 | 2020-12-21T09:48:37 | 187,812,620 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 891 | py | # https://www.coursera.org/learn/python-osnovy-programmirovaniya/programming/NY8PQ/diofantovo-uravnieniie-2/submission
# Потерянная карточка
# Для настольной игры используются карточки с номерами от 1 до N.Одна карточка
# потерялась. Найдите ее, зная номера оставшихся карточек.
#
# Формат ввода / вывода
#
# ... | [
"40a.pvl@gmail.com"
] | 40a.pvl@gmail.com |
9703bc9d35531437a484a615653587eca9a9b406 | 62553a9743257f06dc4a77d57c85aa99bfd51c0f | /FN/nn_tutorial/explanation_tf.py | 3e07932c7f5ba130571686a91d88f60905167d10 | [
"Apache-2.0"
] | permissive | tetsuoh0103/baby-steps-of-rl-ja | 21a855e0f0e38ba48de5c6d13522372fd4de0d24 | 6e0f44b0906cb28ac883546d3d8a30d21d5895b5 | refs/heads/master | 2020-11-23T22:42:02.127637 | 2020-01-03T03:16:46 | 2020-01-03T03:16:46 | 227,851,226 | 0 | 0 | Apache-2.0 | 2019-12-13T13:55:09 | 2019-12-13T13:55:08 | null | UTF-8 | Python | false | false | 611 | py | import numpy as np
import tensorflow as tf
# Weight (row=4 x col=2).
a = tf.Variable(np.random.rand(4, 2))
# Bias (row=4 x col=1).
b = tf.Variable(np.random.rand(4, 1))
# Input(x) (row=2 x col=1).
x = tf.compat.v1.placeholder(tf.float64, shape=(2, 1))
# Output(y) (row=4 x col=1).
y = tf.matmul(a, x) + b
with tf.S... | [
"icoxfog417@yahoo.co.jp"
] | icoxfog417@yahoo.co.jp |
a91bfe7e1f20e9b957296cb8f1a23459f5b562aa | 536656cd89e4fa3a92b5dcab28657d60d1d244bd | /build/android/gyp/extract_unwind_tables.py | ea13c6a3e79e3886b9c00b55ffb98fce742d6739 | [
"BSD-3-Clause"
] | permissive | ECS-251-W2020/chromium | 79caebf50443f297557d9510620bf8d44a68399a | ac814e85cb870a6b569e184c7a60a70ff3cb19f9 | refs/heads/master | 2022-08-19T17:42:46.887573 | 2020-03-18T06:08:44 | 2020-03-18T06:08:44 | 248,141,336 | 7 | 8 | BSD-3-Clause | 2022-07-06T20:32:48 | 2020-03-18T04:52:18 | null | UTF-8 | Python | false | false | 10,416 | py | #!/usr/bin/env python
# Copyright 2018 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Extracts the unwind tables in from breakpad symbol files
Runs dump_syms on the given binary file and extracts the CFI data into the... | [
"pcding@ucdavis.edu"
] | pcding@ucdavis.edu |
515ec4e7f1567a0c9deee0a837eb0859fd622ebc | 4c32103014a7893a59b15210aab7d76422c542b1 | /generank/api/models/news_feed.py | c1f82436adac02478a68ebf7c11b7c4efb451645 | [
"MIT"
] | permissive | shuchenliu/mygenerank-api | cfd49e3d4786de7cd97da9848b50f3f894929b55 | 3c36cb733816c9aa305f02773487f35e194b6566 | refs/heads/master | 2020-03-25T12:14:04.248263 | 2018-08-08T23:44:46 | 2018-08-08T23:44:46 | 143,765,629 | 0 | 0 | null | 2018-08-06T18:12:20 | 2018-08-06T18:12:19 | null | UTF-8 | Python | false | false | 806 | py | import uuid
from django.conf import settings
from django.db import models
from django.utils import timezone
class Item(models.Model):
""" An model that represents an item in the global news feed. These models
will have various extensions added to them with additional data depending
on their source.
"... | [
"brian@brianschrader.com"
] | brian@brianschrader.com |
07a96c972f722c090d0379879a87e26635e8403c | 5537eec7f43098d216d2b550678c8d10b2a26f09 | /venv/tower/lib/python2.7/site-packages/azure/mgmt/compute/models/os_disk_image.py | 465c5d3ec4e5434147ab908f71e2b2aba896e679 | [] | no_license | wipro-sdx/Automation | f0ae1512b8d9d491d7bacec94c8906d06d696407 | a8c46217d0fbe51a71597b5db87cbe98ed19297a | refs/heads/master | 2021-07-08T11:09:05.314435 | 2018-05-02T07:18:54 | 2018-05-02T07:18:54 | 131,812,982 | 0 | 1 | null | 2020-07-23T23:22:33 | 2018-05-02T07:15:28 | Python | UTF-8 | Python | false | false | 1,154 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# C... | [
"admin@example.com"
] | admin@example.com |
97fbfcb2881b5f3663fae1b99173fae2a50d54bb | 085406a6754c33957ca694878db9bbe37f84b970 | /Django_02/Django_02/wsgi.py | 30b5f8d71d360b56789738de45e22ceadcedb05e | [] | no_license | dewlytg/Python-example | 82157958da198ce42014e678dfe507c72ed67ef0 | 1e179e4037eccd9fefabefd252b060564a2eafce | refs/heads/master | 2021-01-01T18:36:08.868861 | 2019-01-18T10:39:08 | 2019-01-18T10:39:08 | 98,375,528 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 411 | py | """
WSGI config for Django_02 project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefaul... | [
"gang.tang@cutt.com"
] | gang.tang@cutt.com |
d68c5d52273c100d5cf88c590229d5e956a4b6ba | 7de919cf9031d46df68942c13e23c652edb5efe8 | /pyspider/processor/project_module.py | 47a6e10d0daa5136146b36355954e5243eef8496 | [
"Apache-2.0"
] | permissive | cash2one/pyspider_note | 5ea12cc26d49cae3bcf8323dbad6c74bb1623e68 | c5e590982beceb56d40c7c4fe1b610a99767cadc | refs/heads/master | 2021-01-01T17:12:03.783973 | 2017-02-27T05:43:08 | 2017-02-27T05:43:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,751 | py | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
# vim: set et sw=4 ts=4 sts=4 ff=unix fenc=utf8:
# Author: Binux<i@binux.me>
# http://binux.me
# Created on 2014-02-16 22:24:20
import os
import six
import sys
import imp
import time
import weakref
import logging
import inspect
import traceback
import linecache
f... | [
"wax8280@163.com"
] | wax8280@163.com |
341333740509c486def6c606e86184f76da82b95 | b3b066a566618f49ae83c81e963543a9b956a00a | /Unsupervised Learning in Python/03_Decorrelating your data and dimension reduction/01_Correlated data in nature.py | 47f750e21c91db0e713455c2d355c1df22d6f1fb | [] | no_license | ahmed-gharib89/DataCamp_Data_Scientist_with_Python_2020 | 666c4129c3f0b5d759b511529a365dfd36c12f1a | f3d20b788c8ef766e7c86c817e6c2ef7b69520b8 | refs/heads/master | 2022-12-22T21:09:13.955273 | 2020-09-30T01:16:05 | 2020-09-30T01:16:05 | 289,991,534 | 2 | 0 | null | 2020-08-24T17:15:43 | 2020-08-24T17:15:42 | null | UTF-8 | Python | false | false | 1,366 | py | '''
Correlated data in nature
You are given an array grains giving the width and length of samples of grain. You suspect that width and length will be correlated. To confirm this, make a scatter plot of width vs length and measure their Pearson correlation.
INSTRUCTIONS
100XP
Import:
matplotlib.pyplot as plt.
pearson... | [
"Your-Email"
] | Your-Email |
c83b9b05ea3394c8d408353555f98b20d69ba9e7 | 6a1390ec579dc16ef20255517a2fe566c0e514d5 | /try_conv3d.py | 551a298994cdbc8366961880b2c6a9abc931fe74 | [
"BSD-3-Clause"
] | permissive | imandr/cconv | 71f6b24502ba9249de08ed9618951d8363bf8b43 | 45e1e404b11070fd823bf5345875f447d9574c2f | refs/heads/master | 2021-08-01T07:59:42.878692 | 2021-07-27T22:49:02 | 2021-07-27T22:49:02 | 186,833,374 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,026 | py | import numpy as np
from cconv import convolve_3d
def convolve_xw(inp, w, mode):
# inp: (nb, nx, ny, nc_in)
# w: (nx, ny, nc_in, nc_out)
# returns (nb, x, y, nc_out)
mode = 0 if mode == 'valid' else 1
inp = inp.transpose((0,4,1,2,3)) # -> [mb, ic, x, y, z]
w = w.transpose((4,3,0,1,2... | [
"igorvm@gmail.com"
] | igorvm@gmail.com |
8550417b7422369930a90a9291698978faa2d2eb | d1d633abb313c235b4c178ccf2939537bd4232b0 | /team_app/tests/test_team.py | 92afcfe0235389acab16d1b0b7799c2fa986da3a | [
"MIT"
] | permissive | dcopm999/initpy | ee82229bf5ac311d83297d484012a7048c015a02 | 26aa6bda25947f67ab842d298ce2f121b89616bf | refs/heads/master | 2022-12-01T23:45:35.446225 | 2022-06-09T04:58:26 | 2022-06-09T04:58:26 | 195,928,228 | 0 | 1 | MIT | 2019-07-15T04:13:26 | 2019-07-09T03:47:10 | JavaScript | UTF-8 | Python | false | false | 1,710 | py | from django.contrib.auth.models import User
from django.test import TestCase
from team_app import models
# Create your tests here.
class TeamTestCase(TestCase):
fixtures = ['auth.json', 'team.json']
def test_team_str(self):
team = models.TeamModel.objects.get(id=1)
self.assertEqual(team.__st... | [
"dcopm999@gmail.com"
] | dcopm999@gmail.com |
81b4b87bad12384a7baf4cb6c743426e8c881ed7 | 08e039046e2b3c526b5fd2169e02d5c5bbe253c5 | /0x03-python-data_structures/5-no_c.py | 0e51fd28731f21eb9788cffa39f09fc7c0575fa4 | [] | no_license | VinneyJ/alx-higher_level_programming | 22a976a22583334aff1f0c4120fb81117905e35b | 0ea8719ec5f28c76faf06bb5e67c14abb71fa3d0 | refs/heads/main | 2023-07-31T15:44:30.390103 | 2021-10-01T21:27:31 | 2021-10-01T21:27:31 | 361,816,988 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 212 | py | #!/usr/bin/python3
def no_c(my_string):
letter = ""
for x in range(0, len(my_string)):
if my_string[x] != 'C' and my_string[x] != 'c':
letter = letter + my_string[x]
return letter
| [
"vincentjayden49@gmail.com"
] | vincentjayden49@gmail.com |
999664ee9f32896f3b0d3260623259b784d7764a | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_117/1065.py | 7fe863e98eee741f39826ab2ec8ae886728b8035 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,541 | py | inputFile = open("B-large.in")
line = inputFile.readline()[:-1]
number = int(line)
def validCut(mow, lawn):
for i in range(len(lawn)):
theseCuts = []
for cutLength in lawn[i]:
if cutLength not in theseCuts:
theseCuts.append(cutLength)
theseCuts.sort()
fo... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
a378ca25ff41ae997cff492bb1e2b971b1f461bd | 58de6fcc92384be5042f2e829abd3d39b7e5f92c | /tests/test_01_config.py | 2d03f65ddf4354c4ce89e6f72c87cb1042c03539 | [
"Apache-2.0"
] | permissive | solcaj/python-icat | 4a186396602bfae6f6794121a0fc6f4042b5487d | 6e6d63e5ddf52880b8ef482704459831a9a967d7 | refs/heads/master | 2021-01-22T13:51:46.607811 | 2016-07-22T15:02:37 | 2016-07-22T15:02:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26,731 | py | """Test module icat.config
"""
import os.path
import getpass
import pytest
import icat.config
import icat.exception
# ============================= helper =============================
# Deliberately not using the 'tmpdir' fixture provided by pytest,
# because it seem to use a predictable directory name in /tmp wic... | [
"rolf.krahl@helmholtz-berlin.de"
] | rolf.krahl@helmholtz-berlin.de |
f268dd933cd218e12a64595b1355f3d0575fd7f4 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/pa2/sample/stmt_if-5.py | d295903a8ceb0fbaadc06acb64c9b79824817385 | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 76 | py | if $Literal:
pass
elif True:
if 1 == 1:
pass
else:
pass
| [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
53e916a2354173ad94fe2ffd901c9249e8a2572a | 539af892f18d9a63f1d6966a15a100f004a5a908 | /next-greater-number.py | cd9e250103832cc5ad5f3643d483ac75584f541a | [] | no_license | woofan/leetcode | 5f0e7cfbcd9d0fddd7b25c7a96896e6a24ccbd15 | 4a13026b6e04a71d5da56c7c35ac58877b27f69b | refs/heads/master | 2022-12-05T17:27:00.979915 | 2022-11-09T08:58:01 | 2022-11-09T08:58:01 | 226,093,086 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 363 | py | def nextGreaterElement( nums1, nums2) :
res = [-1] * len(nums1)
for i in range(len(nums1)):
for j in range(nums2.index(nums1[i]),len(nums2)):
if nums2[j] > nums1[i]:
res[i] = nums2[j]
break
if j == len(nums2):
res[i] = -1
return res
p... | [
"495464616@qq.com"
] | 495464616@qq.com |
d1b6d651f777c45464dcbacff005184aa87ae11f | 8da91c26d423bacbeee1163ac7e969904c7e4338 | /pyvisdk/do/vim_esx_cl_ifcoeadapterlist_fcoe_adapter_device.py | 3330a86d5a6754317ae63e082cfb7c861561ad0d | [] | no_license | pexip/os-python-infi-pyvisdk | 5d8f3a3858cdd61fb76485574e74ae525cdc7e25 | 1aadea0afbc306d09f6ecb9af0e683dbbf961d20 | refs/heads/master | 2023-08-28T02:40:28.789786 | 2020-07-16T04:00:53 | 2020-07-16T04:00:53 | 10,032,240 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,122 | py |
import logging
from pyvisdk.exceptions import InvalidArgumentError
# This module is NOT auto-generated
# Inspired by decompiled Java classes from vCenter's internalvim25stubs.jar
# Unless states otherside, the methods and attributes were not used by esxcli,
# and thus not tested
log = logging.getLogger(__name__)
de... | [
"jmb@pexip.com"
] | jmb@pexip.com |
0b4cd98072362cc8682d11ed73c4125e6c758daa | f707303e4dfe383cf82c23a6bb42ccfdc4cfdb67 | /pandas-ml-common/pandas_ml_common_test/unit/utils/test_random.py | 6a133b3025ab3ed9c52849c9e9d31683a5abd8f8 | [
"MIT"
] | permissive | jcoffi/pandas-ml-quant | 1830ec256f8c09c04f1aa77e2eecfba07d34fe68 | 650a8e8f77bc4d71136518d1c7ee65c194a99cf0 | refs/heads/master | 2023-08-31T06:45:38.060737 | 2021-09-09T04:44:35 | 2021-09-09T04:44:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 380 | py | from unittest import TestCase
import numpy as np
from pandas_ml_common.utils import normalize_probabilities
class TestRandumUtils(TestCase):
def test_probs_normalisation(self):
p1 = [0.2, 0.8]
p2 = [2, 8]
np.testing.assert_equal(np.array(p1), normalize_probabilities(p1))
np.test... | [
"kic@kic.kic"
] | kic@kic.kic |
e967581074ee231c67a7f10c06ca6d07b6452aba | 51f6443116ef09aa91cca0ac91387c1ce9cb445a | /Curso_de_Python_3_do_Basico_Ao_Avancado_Udemy/aula165/aula165/wsgi.py | 6a1760d3a621190f05ff162edb5cb0e32301a322 | [
"MIT"
] | permissive | DanilooSilva/Cursos_de_Python | f449f75bc586f7cb5a7e43000583a83fff942e53 | 8f167a4c6e16f01601e23b6f107578aa1454472d | refs/heads/main | 2023-07-30T02:11:27.002831 | 2021-10-01T21:52:15 | 2021-10-01T21:52:15 | 331,683,041 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | """
WSGI config for aula165 project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTI... | [
"dno.gomesps@gmail.com"
] | dno.gomesps@gmail.com |
427be95a3e10919c7f60362ba818390acf5a3f9b | 1b7929f6e521042595fa5d8b04753b09fcf4825c | /webdev/public_catering/hello_py.py | cf5c547298ec0d27dc37cca15384c843c4bae85b | [] | no_license | xyzza/convert_hg | a73b8c5b3681decd75540570ff6ba0c7cf1ce576 | 9cfd9b34fcebbb2c0583b6bb19a98f28870c293d | refs/heads/master | 2021-01-10T21:07:04.499530 | 2014-04-15T13:09:36 | 2014-04-15T13:09:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 138 | py | #coding:utf-8
"""
This is new python module for some stuff
ok, i'll fix it!
"""
import os
import sys
print "hello module 01 in task 003" | [
"devnull@localhost"
] | devnull@localhost |
771f82b1529867ea4e13963c6cf6ef6d6932fb22 | 16d4474e7777da03aef6ead78e112edf8931d131 | /core/migrations/0007_category_direct_link.py | e10d5e9b585a815fcb128bd6f83b63203f61be65 | [] | no_license | BijoySingh/HomePageMaker | f91dd03bc1e2b6a46893b8738f87686d105968b8 | ba366dfd9514b10cc6283bb4e120037f8229fc1e | refs/heads/master | 2020-12-06T23:51:51.122187 | 2017-01-30T23:31:38 | 2017-01-30T23:31:38 | 66,867,578 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 483 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2016-09-01 06:56
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0006_content_cover'),
]
operations = [
migrations.AddField(
... | [
"bijoysingh693@gmail.com"
] | bijoysingh693@gmail.com |
b3c6f8b199115f12bd32d0061f4a571a117ca082 | 0bde5f7f09aa537ed1f4828d4e5ebee66475918f | /h2o-py/tests/testdir_apis/Data_Manipulation/pyunit_h2oH2OFrame_mult.py | f2690d0cf18bb0a449c22efbf81071d98ed0caba | [
"Apache-2.0"
] | permissive | Winfredemalx54/h2o-3 | d69f1c07e1f5d2540cb0ce5e6073415fa0780d32 | dfb163c82ff3bfa6f88cdf02465a9bb4c8189cb7 | refs/heads/master | 2022-12-14T08:59:04.109986 | 2020-09-23T08:36:59 | 2020-09-23T08:36:59 | 297,947,978 | 2 | 0 | Apache-2.0 | 2020-09-23T11:28:54 | 2020-09-23T11:28:54 | null | UTF-8 | Python | false | false | 1,178 | py | from __future__ import print_function
import sys
sys.path.insert(1,"../../../")
from tests import pyunit_utils
import h2o
import numpy as np
from h2o.utils.typechecks import assert_is_type
from h2o.frame import H2OFrame
import random
def h2o_H2OFrame_mult():
"""
Python API test: h2o.frame.H2OFrame.mult(matrix)... | [
"noreply@github.com"
] | Winfredemalx54.noreply@github.com |
b691d12b39a29cffccfd1c54e721682c233e2320 | 7f2fc00415c152538520df84387549def73c4320 | /s_backbones/shufflenetv2.py | 8c6ee5b4b58efa8e8aad08950d4b0e06328ee77f | [
"MIT"
] | permissive | mxer/face_project | da326be7c70c07ae510c2b5b8063902b27ae3a5b | 8d70858817da4d15c7b513ae492034784f57f35f | refs/heads/main | 2023-08-06T09:24:49.842098 | 2021-09-18T08:32:18 | 2021-09-18T08:32:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,920 | py | import torch
from torch import Tensor
import torch.nn as nn
from typing import Callable, Any, List
__all__ = [
'ShuffleNetV2', 'shufflenet_v2_x0_1', 'shufflenet_v2_x0_5', 'shufflenet_v2_x1_0',
'shufflenet_v2_x1_5', 'shufflenet_v2_x2_0'
]
def channel_shuffle(x: Tensor, groups: int) -> Tensor:
batchsize, ... | [
"chen19940524@live.com"
] | chen19940524@live.com |
808270b56854e917ed75cbf6c97e1c769dfb54cd | bc7b5d2477ca3b0c54383c97a19d29cb7cb63bc5 | /sdk/lusid/models/resource_list_of_order.py | c5bac180964942bdd13bef10b9e59403e18824e9 | [
"MIT"
] | permissive | mb-a/lusid-sdk-python-2 | 342b6e7b61ca0c93f43e72f69e572478e3a7be4f | 0eee79c8e36188a735aaae578a9c4be2a8497aed | refs/heads/master | 2023-07-15T16:15:11.878079 | 2021-08-25T20:52:27 | 2021-08-25T20:52:27 | 214,153,732 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,906 | py | # coding: utf-8
"""
LUSID API
FINBOURNE Technology # noqa: E501
The version of the OpenAPI document: 0.11.3430
Contact: info@finbourne.com
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import six
class ResourceListOfOrder(object):
"""NOTE: This cl... | [
"concourse@finbourne.com"
] | concourse@finbourne.com |
8b4e464b1ad0ef3c918a96fd380ac7b91b8c909d | 7f57c12349eb4046c40c48acb35b0f0a51a344f6 | /2015/ConstructBinaryTreeFromPreorderAndInorderTraversal_v0.py | daaa268e1414a2c429629aa49eadb7c663488efa | [] | no_license | everbird/leetcode-py | 0a1135952a93b93c02dcb9766a45e481337f1131 | b093920748012cddb77258b1900c6c177579bff8 | refs/heads/master | 2022-12-13T07:53:31.895212 | 2022-12-10T00:48:39 | 2022-12-10T00:48:39 | 11,116,752 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,120 | py | #!/usr/bin/env python
# encoding: utf-8
# Definition for a binary tree node.
class TreeNode:
def __init__(self, x):
self.val = x
self.left = None
self.right = None
class Solution:
# @param {integer[]} preorder
# @param {integer[]} inorder
# @return {TreeNode}
def buildTre... | [
"stephen.zhuang@gmail.com"
] | stephen.zhuang@gmail.com |
bc0b93fd8478e0c280277ddeab4f81620aed29f5 | 6d42b5219f25cb12626c79d4ec45a0eab0b51d9c | /pthbldr/datasets/tests/test_datasets.py | 38d66b8c1dd1cd81729e649848f3bb94db6e55e0 | [
"BSD-3-Clause",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | kastnerkyle/pthbldr | cc370182126784645f6a4b24af81aefb12e2adcc | 4dd65f9973a0199b920fb7b76d9b3163b5928675 | refs/heads/master | 2020-12-30T13:20:07.846618 | 2017-11-06T23:45:07 | 2017-11-06T23:45:07 | 91,346,119 | 2 | 0 | null | 2017-11-06T23:45:08 | 2017-05-15T14:16:43 | Python | UTF-8 | Python | false | false | 324 | py | from pthbldr.datasets import load_digits
from pthbldr.datasets import load_iris
from nose.tools import assert_equal
def test_digits():
digits = load_digits()
assert_equal(len(digits["data"]), len(digits["target"]))
def test_iris():
iris = load_iris()
assert_equal(len(iris["data"]), len(iris["target"... | [
"kastnerkyle@gmail.com"
] | kastnerkyle@gmail.com |
436d1079e865e48d975bd6ffa89a5f3ed150f80d | bdfd3889e1cc02f97b3e2dc0032ce0c9b59bf37e | /src/gork/contrib/gtag/forms.py | f975a8005e00e6d6fd6d68bfd55cee536a5ff863 | [
"MIT"
] | permissive | indexofire/gork | c85728953cfa9ab98c59b79a440d4e12212cbc4e | c5e172b896a51c15f358d3aabbcb66af837b54b2 | refs/heads/master | 2016-09-06T04:58:01.435002 | 2014-02-06T08:35:51 | 2014-02-06T08:35:51 | 9,260,830 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 767 | py | # -*- coding: utf-8 -*-
from django import forms
from django.utils.translation import ugettext as _
from gtag.utils import parse_tags, edit_string_for_tags
class TagWidget(forms.TextInput):
def render(self, name, value, attrs=None):
if value is not None and not isinstance(value, basestring):
v... | [
"indexofire@gmail.com"
] | indexofire@gmail.com |
4da322ad7373ffcc99ec58259c8b3e4c2ab58673 | 59166105545cdd87626d15bf42e60a9ee1ef2413 | /dbpedia/models/historic_place.py | 792b569a8a3a2806daf5872b1931f2b92b0c12fe | [] | no_license | mosoriob/dbpedia_api_client | 8c594fc115ce75235315e890d55fbf6bd555fa85 | 8d6f0d04a3a30a82ce0e9277e4c9ce00ecd0c0cc | refs/heads/master | 2022-11-20T01:42:33.481024 | 2020-05-12T23:22:54 | 2020-05-12T23:22:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 411,588 | py | # coding: utf-8
"""
DBpedia
This is the API of the DBpedia Ontology # noqa: E501
The version of the OpenAPI document: v0.0.1
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import six
from dbpedia.configuration import Configuration
class HistoricPlace(obj... | [
"maxiosorio@gmail.com"
] | maxiosorio@gmail.com |
72301ec7c64df86bd3500a01d59262d2037866dd | e59f696a96f216cdeea8d638f05b75bb0c26ef55 | /4 Python_Programs/1 Problems on numbers/10_EvenFactors/Demo.py | 2f5e56dcd12e00dd9d0888a7d45b09e65f1ca07a | [] | no_license | Aditya-A-Pardeshi/Coding-Hands-On | 6858686bdf8f4f1088f6cc2fc0035a53c4875d81 | 0d72d45e92cb0698129636412f7bf5a8d865fd2f | refs/heads/main | 2023-05-29T05:35:34.052868 | 2021-06-14T18:52:57 | 2021-06-14T18:52:57 | 376,928,262 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 411 | py | '''
Write a program which accept number from user and print even factors of that number
Input : 24
Output: 2 4 6 8 12
'''
def PrintEvenFactors(no):
if(no<0):
no = -no;
for i in range(2,int(no/2)+1):
if(no%i == 0):
print("{} ".format(i),end = " ");
def main():
no = int(... | [
"adityapardeshi0078@gmail.com"
] | adityapardeshi0078@gmail.com |
a6256c9b5837cca69a8b8c95003b3e2521477bcd | 210ecd63113ce90c5f09bc2b09db3e80ff98117a | /AbletonLive9_RemoteScripts/LiveControl_2_0/LC2Modulator.py | 764d6d49f7649a6e5881ede73c976d2d050d3616 | [] | no_license | ajasver/MidiScripts | 86a765b8568657633305541c46ccc1fd1ea34501 | f727a2e63c95a9c5e980a0738deb0049363ba536 | refs/heads/master | 2021-01-13T02:03:55.078132 | 2015-07-16T18:27:30 | 2015-07-16T18:27:30 | 38,516,112 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 9,938 | py | #Embedded file name: /Applications/Ableton Live 9 Suite.app/Contents/App-Resources/MIDI Remote Scripts/LiveControl_2_0/LC2Modulator.py
from _Generic.Devices import *
from _Framework.ControlSurfaceComponent import ControlSurfaceComponent
from _Framework.DeviceComponent import DeviceComponent
from _Framework.InputControl... | [
"admin@scoopler.com"
] | admin@scoopler.com |
4030f63098bbbd19a41102250c7f615bf1a647c3 | dd87194dee537c2291cf0c0de809e2b1bf81b5b2 | /test/test_v1_job.py | 2a33786b9e31d281aa3aff1f99a840af636abb55 | [
"Apache-2.0"
] | permissive | Arvinhub/client-python | 3ea52640ab02e4bf5677d0fd54fdb4503ecb7768 | d67df30f635231d68dc4c20b9b7e234c616c1e6a | refs/heads/master | 2023-08-31T03:25:57.823810 | 2016-11-02T22:44:36 | 2016-11-02T22:44:36 | 73,865,578 | 1 | 0 | Apache-2.0 | 2018-10-10T12:16:45 | 2016-11-15T23:47:17 | Python | UTF-8 | Python | false | false | 1,310 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: unversioned
Generated by: https://github.com/swagger-api/swagger-codegen.git
Licensed under the Apache License, Version 2.0 (the "Licens... | [
"mehdy@google.com"
] | mehdy@google.com |
6fe83533c4985956254a959f901bbfd8e7e686f8 | b63e42047081bc2be186d506bc08417cd13d547c | /rice/deps/prompt_toolkit/document.py | 2a9d1d79373438880647ed777ae41e7a1f6f0e56 | [
"MIT"
] | permissive | Arrendi/rice | dbd999aa632b4dacae10c6edd18c3eb31fd3ffde | 5bebd14556127613c9af4ac3fc1f95063110077d | refs/heads/master | 2021-08-28T15:25:49.239846 | 2017-12-12T15:56:51 | 2017-12-12T15:56:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 36,209 | py | """
The `Document` that implements all the text operations/querying.
"""
from __future__ import unicode_literals
import bisect
import re
import six
import string
import weakref
from six.moves import range, map
from .selection import SelectionType, SelectionState, PasteMode
from .clipboard import ClipboardData
__all_... | [
"randy.cs.lai@gmail.com"
] | randy.cs.lai@gmail.com |
9b6e87777212e93821e9296860eef76c187aa685 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/303/usersdata/298/82997/submittedfiles/testes.py | 526e6017d8abd2de623bff22ac68e85aeb35505c | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,205 | py | n = int(input('Digite um numero inteiro positivo entre 1 e 100: '))
while (n<1) and (n>100):
print('Entrada inválida.')
n = int(input('Digite um numero inteiro positivo entre 1 e 100: '))
if n in range (1,100):
kn = float(((n + 2)/10)*2)
print('%.4f' % kn)
#-----------------------------------------... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
7580db354e832980cb68e6afb7c9c89485dede71 | b0cdbad299f6174bfdb0fba173dbcf3889b82209 | /Modules/datetime/d1.py | 29a423c96933b4d0b2a03754743aa30a42bb5be7 | [] | no_license | deesaw/PythonD-06 | a33e676f1e0cfc13b4ea645c8b60547b198239ac | 3c6f065d7be2e3e10cafb6cef79d6cae9d55a7fa | refs/heads/master | 2023-03-18T08:24:42.030935 | 2021-03-02T14:15:09 | 2021-03-02T14:15:09 | 343,797,605 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 312 | py | import datetime
bday=(datetime.date(2000,7,26))
print(bday)
print('Year : ',bday.year)
print('Month : ',bday.month)
print('Date : ',bday.day)
t = datetime.time(9, 25, 39,10)
print( t )
print( 'hour :', t.hour )
print( 'minute:', t.minute )
print( 'second:', t.second )
print( 'microsecond:', t.microsecond )
| [
"69420960+deesaw@users.noreply.github.com"
] | 69420960+deesaw@users.noreply.github.com |
9e7c2bcddff622777890630a880abba20a2ceb93 | 9152c6f5b692694c4cb95725319fc8dd21d30455 | /office365/runtime/client_value_object.py | 6d76794e0d56308f5fb685632d48f2ac654b41b2 | [
"MIT"
] | permissive | VISIN9/Office365-REST-Python-Client | cf3de86a6bdd2461ff5814dbfa02d4d4185917d5 | 91c07d427a76197f6eb143c6253bdc832cbb889d | refs/heads/master | 2021-05-25T08:43:35.530546 | 2020-04-06T20:24:53 | 2020-04-06T20:24:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 530 | py | from office365.runtime.odata.json_light_format import JsonLightFormat
from office365.runtime.odata.odata_metadata_level import ODataMetadataLevel
class ClientValueObject(object):
"""Base client value object"""
def map_json(self, json):
for key, val in json.items():
# if hasattr(type(self)... | [
"vvgrem@gmail.com"
] | vvgrem@gmail.com |
386494842d287ea6d6dfa1a2affa37e918c30a55 | 1a937b899af949d23e667782a7360b9de1634456 | /SoftUni/Advanced Tree Structures - II/homework/sweep_and_prune.py | 3f531c9cb5c36afd49d3a4e1d23949822687a1c9 | [] | no_license | stanislavkozlovski/data_structures_feb_2016 | c498df6ea7cb65d135057a300e0d7e6106713722 | adedac3349df249fe056bc10c11b0b51c49e24bb | refs/heads/master | 2021-07-06T17:37:18.117104 | 2017-09-30T19:01:51 | 2017-09-30T19:01:51 | 75,526,414 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,930 | py | OBJECT_WIDTH, OBJECT_HEIGHT = 10, 10
class BoundableObject:
def __init__(self, name, x1, y1):
self.name = name
self.x1 = x1
self.x2 = x1 + OBJECT_WIDTH
self.y1 = y1
self.y2 = y1 + OBJECT_HEIGHT
def __repr__(self):
return '{x1} {x2}'.format(x1=self.x1, x2=self.x... | [
"familyguyuser192@windowslive.com"
] | familyguyuser192@windowslive.com |
1c345f9f054da786bb4b108d6e9fe03934792328 | 0f47b8b3775e1730f92141128491b0bbfe3d89e0 | /data_structure/graph/shortest_path/floydwarshall.py | e74f989ab56a38084b43fe4e47c8b53dce6094b5 | [] | no_license | hongmin0907/CS | 1d75c38da98c6174ea19de163c850d0f3bac22e3 | 697e8e1a5bde56a7588381a12f74bbb0e3aee3e8 | refs/heads/master | 2020-06-23T20:10:22.051477 | 2019-07-15T00:20:09 | 2019-07-15T00:20:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,194 | py | from copy import deepcopy
class ShortestPath:
def __init__(self, A, path):
#2차원 배열 A
self.A=A
#2차원 배열 path
self.path=path
def print_shortest_path(self, source, dest):
print(source, end=" ")
self.__print_sp(source, dest)
print(dest, end=" ")
def __p... | [
"ythwork83@gmail.com"
] | ythwork83@gmail.com |
41fab65078d3fb5f668f2cb47c7cc24fb333394f | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03371/s845988695.py | 4818cf4f4ba7277bd6347d6792e793a348563d0c | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 217 | py | A,B,C,X,Y=map(int,input().split())
ans=0
if C*2<=A+B:
mi=min(X,Y)
ans=mi*C*2
if Y<=X:
ans+=min(A*(X-mi),2*C*(X-mi))
else:
ans+=min(B*(Y-mi),2*C*(Y-mi))
else:
ans=A*X+B*Y
print(ans) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
e3d72dcb67b7c3981d26691b7181d72ccf66814e | 7807d8d9d109a3e272fffed91bf841201da39256 | /trans_ALDS1_1_B/HARU55_ALDS1_1_B_kotonoha.py | 2d3f4f61cfadb439b240ad350d2e8f32c35c3b9d | [] | no_license | y-akinobu/AOJ_to_Kotonoha | 0e8df43393964fcdd5df06c75545091bd6c0c2e2 | 5a694a55a3d85e3fbc4a07b57edc4374556db9a1 | refs/heads/main | 2023-02-05T15:33:16.581177 | 2020-12-30T16:14:44 | 2020-12-30T16:14:44 | 325,524,216 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 552 | py | # map(整数,入力された文字列を空白で分割した列)を展開し順にNとMとする
N, M = map(int, input().split())
# 真の間、繰り返す
while True :
# NがMより小さいとき、
if N < M :
# NとMを入れ替える
N, M = M, N
# NをMで割った余りをaとする
a = N % M
# aが0のとき、
if a == 0 :
# 繰り返すのを中断する
break
# ()
else :[#Else [#Block [#MultiAssignment left: [# [#Name 'N'][#Name ... | [
"sx2_vn_yuka@outlook.jp"
] | sx2_vn_yuka@outlook.jp |
4b9bf327874fb716a5ef0c14b6c733148ed3e614 | d3efc82dfa61fb82e47c82d52c838b38b076084c | /Autocase_Result/FXJSMM/YW_FXJSMM_SZSJ_307.py | 94a0758207761f5b78d6a48514fdeaef3d006e5d | [] | no_license | nantongzyg/xtp_test | 58ce9f328f62a3ea5904e6ed907a169ef2df9258 | ca9ab5cee03d7a2f457a95fb0f4762013caa5f9f | refs/heads/master | 2022-11-30T08:57:45.345460 | 2020-07-30T01:43:30 | 2020-07-30T01:43:30 | 280,388,441 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,002 | py | #!/usr/bin/python
# -*- encoding: utf-8 -*-
import sys
sys.path.append("/home/yhl2/workspace/xtp_test/xtp/api")
from xtp_test_case import *
sys.path.append("/home/yhl2/workspace/xtp_test/service")
from ServiceConfig import *
from mainService import *
from QueryStkPriceQty import *
from log import *
sys.path.append("/h... | [
"418033945@qq.com"
] | 418033945@qq.com |
04ae437e0973bf482e71ebf5563db2e45951c6c9 | 9c32890a188dfcd949883c10c8db112aed5321d6 | /learner/wsgi.py | 1f2d5f930764af173595a367e93da2297a089d37 | [] | no_license | gitanjali1077/learner | dcb11d92b84bac0a9254a2409570261a03503945 | fef0c5554b100216210ba8f3777bad69a9219d4f | refs/heads/master | 2022-12-12T08:24:55.268350 | 2018-03-02T04:34:43 | 2018-03-02T04:34:43 | 122,777,081 | 1 | 0 | null | 2022-11-22T02:15:06 | 2018-02-24T20:28:20 | CSS | UTF-8 | Python | false | false | 484 | py | """
WSGI config for learner project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
from whitenoise.django import Djang... | [
"gitanjali1077@gmail.com"
] | gitanjali1077@gmail.com |
cb03689df98cce2aeec0d424a2ee39025ac09c42 | cc3d7bd252c225bf588a8e663b2214b8ccc3b399 | /report/make_report.py | cd623d6d4f3915b774a17d563e74329b25cd9405 | [] | no_license | stestagg/dict_index | c1ca8cac3389b5f2d22882a159ab8ea68439e4a5 | 41d06d705e28e8c52c3a9c76349c2aadfd984dff | refs/heads/master | 2022-11-27T12:14:58.791348 | 2020-08-01T18:11:52 | 2020-08-01T18:11:52 | 278,656,935 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,737 | py | import textwrap
from pathlib import Path
from datetime import datetime
import json
import click
import dateformat
from jinja2 import Environment, FileSystemLoader, select_autoescape, Markup
from pygments import highlight
from pygments.lexers import PythonLexer
from pygments.formatters import HtmlFormatter
JINJA_ENV ... | [
"stestagg@gmail.com"
] | stestagg@gmail.com |
13d318734094eb4b13970206c2b9e1d8fba78867 | 3a4de2139c50f4e8bbe866b33bca213b4591ce48 | /solution/ls_loss_test.py | 2fdb8df427fb56dea228e9349daa4be1e63f6028 | [] | no_license | ak110/kaggle_salt | 476f9206ff89e3b072b9dcf955c50c53b7e6abb5 | dd5d66b83454aef1f8196c6c93c45cca79f262d2 | refs/heads/master | 2021-10-24T05:11:59.129766 | 2019-03-22T07:21:22 | 2019-03-22T07:21:22 | 164,656,040 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,075 | py | #!/usr/bin/env python3
"""late submit用ベースライン。"""
import argparse
import pathlib
import numpy as np
import sklearn.externals.joblib as joblib
import _data
import _evaluation
import pytoolkit as tk
MODEL_NAME = pathlib.Path(__file__).stem
MODELS_DIR = pathlib.Path(f'models/{MODEL_NAME}')
CACHE_DIR = pathlib.Path('cach... | [
"mark@aur.ll.to"
] | mark@aur.ll.to |
defbc1e8c5b80358d1052f28b63039bfe19736cb | 353def93fa77384ee3a5e3de98cfed318c480634 | /.history/week02/2/singupshimo_20200705174400.py | f313fce698976cdecb0c1b05b71f97b906756419 | [] | no_license | ydbB/Python001-class01 | d680abc3ea1ccaeb610751e3488421417d381156 | ad80037ccfc68d39125fa94d2747ab7394ac1be8 | refs/heads/master | 2022-11-25T11:27:45.077139 | 2020-07-19T12:35:12 | 2020-07-19T12:35:12 | 272,783,233 | 0 | 0 | null | 2020-06-16T18:28:15 | 2020-06-16T18:28:15 | null | UTF-8 | Python | false | false | 56 | py | from selenium import webdriver
import time
try:
bro | [
"31039587+ydbB@users.noreply.github.com"
] | 31039587+ydbB@users.noreply.github.com |
c2e7a3635a169a4ef23dc7d1f19b2115f10e4343 | 98d832289b7437247ce03ea54ad3cb7b95451159 | /rapid7vmconsole/models/page_of_malware_kit.py | de3e4edf91c9ca04d24174f07f8ada5772a2f904 | [
"MIT"
] | permissive | rmehilli-r7/vm-console-client-python | 7f02f13345dce4f4d4d85e18da7146daeefbceb9 | 069041c1c7b53c6b3d8bfdd81b974141bfca3c0c | refs/heads/master | 2020-03-23T11:20:33.364442 | 2018-08-10T20:06:37 | 2018-08-10T20:06:37 | 141,498,444 | 0 | 0 | MIT | 2018-08-08T19:58:45 | 2018-07-18T23:00:41 | Python | UTF-8 | Python | false | false | 52,997 | py | # coding: utf-8
"""
InsightVM API
# Overview This guide documents the InsightVM Application Programming Interface (API) Version 3. This API supports the Representation State Transfer (REST) design pattern. Unless noted otherwise this API accepts and produces the `application/json` media type. This API uses ... | [
"zachary_youtz@rapid7.com"
] | zachary_youtz@rapid7.com |
7e23ddf115d5ed2d24c73fb7144f196d75b02cdf | 92237641f61e9b35ff6af6294153a75074757bec | /Machine Learning/수업 자료/2주차_데이터 과학을 통한 자연어 처리와 통계학습/제06~09일차_정형.비정형 데이터 처리 및 결합 분석/xmlEx02.py | 3fecb052979d01243b6104879395476414339d15 | [] | no_license | taepd/study | 8ded115765c4f804813e255d9272b727bf41ec80 | 846d3f2a5a4100225b750f00f992a640e9287d9c | refs/heads/master | 2023-03-08T13:56:57.366577 | 2022-05-08T15:24:35 | 2022-05-08T15:24:35 | 245,838,600 | 0 | 1 | null | 2023-03-05T23:54:41 | 2020-03-08T15:25:15 | JavaScript | UTF-8 | Python | false | false | 1,323 | py | # xmlEx02.py
from xml.etree.ElementTree import Element
from xml.etree.ElementTree import SubElement
from xml.etree.ElementTree import ElementTree
mydict = {'kim': ('김철수', 30, '남자', '강남구 역삼동'), 'park': ('박영희', 40, '여자', '서초구 방배동')}
print(mydict)
members = Element('members')
for key, mytuple in mydict.items():
mya... | [
"taepd1@gmail.com"
] | taepd1@gmail.com |
d99fab115ba894e29fbbfe9247645be7ba283353 | 80a3d98eae1d755d6914b5cbde63fd10f5cc2046 | /autox/autox_ts/feature_selection/__init__.py | dc8ea061d68ac26f5ad528338ccff08adf67947f | [
"Apache-2.0"
] | permissive | 4paradigm/AutoX | efda57b51b586209e1d58e1dab7d0797083aadc5 | 7eab9f4744329a225ff01bb5ec360c4662e1e52e | refs/heads/master | 2023-05-24T00:53:37.109036 | 2023-02-14T14:21:50 | 2023-02-14T14:21:50 | 388,068,949 | 752 | 162 | Apache-2.0 | 2022-07-12T08:28:09 | 2021-07-21T09:45:41 | Jupyter Notebook | UTF-8 | Python | false | false | 42 | py | from .feature_filter import feature_filter | [
"946691288@qq.com"
] | 946691288@qq.com |
802eca46c3e683e50f6e47f7a5d22d1b059841c1 | b80c84125f8176d5e40ffd51af36a0aed2df9d7c | /roboPortal/views.py | df87e4b4fe81d4d9cd6354a524d49fb76790be56 | [] | no_license | bhatiaisb5300/RobotixDevelopmentv1 | cbee6f90f06c85c8bfec308e8d35ef3a2587e263 | 6d541bdc8a9b89565c103fdff53a28373b0afb8b | refs/heads/master | 2022-12-13T10:12:30.841794 | 2020-02-15T15:33:00 | 2020-02-15T15:33:00 | 223,969,445 | 0 | 1 | null | 2022-12-08T05:24:26 | 2019-11-25T14:35:35 | JavaScript | UTF-8 | Python | false | false | 7,171 | py | from django.shortcuts import render, redirect
from django.http import HttpResponse, Http404
from django.contrib.auth.models import User, auth
from django.contrib.auth.decorators import login_required
from django.core.mail import send_mail
from django.conf import settings
from .models import portalUser, UserLink, Token,... | [
"ayushganguli1769@gmail.com"
] | ayushganguli1769@gmail.com |
53564b0dbb1fb2ca036162b4a6dc25d45b8bdaf8 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03846/s787181482.py | 9e79a1ae234c00a297c69bb69d20566532f2d43a | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 465 | py | def main():
N=int(input())
A=list(map(int,input().split()))
mod=10**9+7
ans=1
A.sort()
if N%2==0:
for i in range(0,N,2):
if A[i]!=A[i+1] or A[i]!=i+1:
print(0)
exit()
ans=ans*2%mod
print(ans)
else:
if A[0]!=0:
print(0)
exit()
ans=1
for i in range... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
4a2a310ab7b1ec606a8d5eadb81465b0187370a1 | 6d58d19be7d50043bda4bd1dd96fb5bd8c09a5c4 | /start_up.py | af4220ac79a861fc21ca76437af16758e5541656 | [] | no_license | wrishel/HETP_Scan_control | 2b38a464fe65f84fbe0b602a567a4d804d576aba | 09db13cba3d9de172d08eadc72200169df9f7cbc | refs/heads/master | 2021-02-17T10:24:41.127392 | 2020-03-05T06:52:24 | 2020-03-05T06:52:24 | 245,085,678 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,437 | py |
'''Start up panel
Mainpanals page for the scanning user. Normally run once a day.
Maintains the scanning.ini file among other things.
'''
from etpconfig import Scanconfig
from ETP_util import msgBox
import GLB_globals
import os
from PyQt5 import uic
from PyQt5.QtCore import QCoreApplication
from PyQt5.QtCore impor... | [
"wrishel@gmail.com"
] | wrishel@gmail.com |
2efe060ea5aff877fd8ffa1bda0eae2d9b156ce0 | 115ef7a9ffc88148b7439bd25ef3c97720be87e6 | /OEMS_v2.0/chalicedir/vendor/sqlalchemy/testing/requirements.py | ec1eeb1dcb0fcf5ffa028a828fc6908a05c3511c | [] | no_license | octicalpha/billions | 387bc0db600dd97915be0cece710237ff626b86c | 5465c527d614ae64789906197c1effe7ba94d373 | refs/heads/master | 2020-04-01T21:35:50.582694 | 2018-10-14T05:36:50 | 2018-10-14T05:36:50 | 153,664,919 | 0 | 3 | null | 2018-10-18T17:53:35 | 2018-10-18T17:53:34 | null | UTF-8 | Python | false | false | 25,568 | py | # testing/requirements.py
# Copyright (C) 2005-2018 the SQLAlchemy authors and contributors
# <see AUTHORS file>
#
# This module is part of SQLAlchemy and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php
"""Global database feature support policy.
Provides decorators to mark test... | [
"ubuntu@ip-172-31-26-154.ap-northeast-2.compute.internal"
] | ubuntu@ip-172-31-26-154.ap-northeast-2.compute.internal |
67afec9212a1433422a4bc56f2afbeca8ea194b9 | e66fa131cff76fa3fe70e7b6649fa1332159c781 | /ch06/Packages.py | 8ff16ca6520d9fb4e3c32d634368017d536a0500 | [] | no_license | chc1129/python_tutorial | c6d97c6671a7952d8a7b838ccb8aa3c352fa6881 | 2f8b389731bafbda73c766c095d1eaadb0f99a1c | refs/heads/main | 2023-08-24T07:00:43.424652 | 2021-10-28T16:07:57 | 2021-10-28T16:07:57 | 341,532,732 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 262 | py | import sound.effects.echo
sound.effects.echo.echofilter(input, output, delay=0.7, atten=4)
from sound.effects import echo
echo.echofilter(input, output, delay=0.7, atten=4)
from sound.effects.echo import echofilter
echofilter(input, output, delay=0.7, atten=4)
| [
"chc1129@gmail.com"
] | chc1129@gmail.com |
60649a047ebbee6783e9aa2a8353da3376dbccc4 | 2a9a136296e3d2abebf3a3dbfbbb091076e9f15f | /env/Lib/site-packages/setuptools/command/easy_install.py | 2e057cdb672aaa58dae66b6d09db608cc3d99746 | [] | no_license | Lisukod/planet-tracker | a865e3920b858000f5d3de3b11f49c3d158e0e97 | 6714e6332b1dbccf7a3d44430620f308c9560eaa | refs/heads/master | 2023-02-18T19:26:16.705182 | 2021-01-23T01:51:58 | 2021-01-23T01:51:58 | 328,032,670 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 88,408 | py | #!/usr/bin/env python
"""
Easy Install
------------
A tool for doing automatic download/extract/build of distutils-based Python
packages. For detailed documentation, see the accompanying EasyInstall.txt
file, or visit the `EasyInstall home page`__.
__ https://setuptools.readthedocs.io/en/latest/easy_install.html
""... | [
"45397160+Lisukod@users.noreply.github.com"
] | 45397160+Lisukod@users.noreply.github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.