blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 288 | 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 684
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 147
values | src_encoding stringclasses 25
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 128 12.7k | extension stringclasses 142
values | content stringlengths 128 8.19k | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
87dec6ef073bd02fe7709d0c6b011cbfd0f6b878 | 7861798672463b239a3102b8407ec56c593c2811 | /setup.py | 0130f5685229a7217c8d3b52ceae52cde7687776 | [] | no_license | nag92/strokeRehabSystem | 33b38cb41de4a357e1a9c99cb30b5608d97932b7 | f51752bd355c91e162f94c26b4078e7d7bcee744 | refs/heads/master | 2020-03-31T14:25:06.853916 | 2018-05-02T15:35:50 | 2018-05-02T15:35:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 314 | py | ## ! DO NOT MANUALLY INVOKE THIS setup.py, USE CATKIN INSTEAD
from distutils.core import setup
from catkin_pkg.python_setup import generate_distutils_setup
# fetch values from package.xml
setup_args = generate_distutils_setup(
packages=['strokeRehabSystem'],
package_dir={'': 'src'})
setup(**setup_args) | [
"nagoldfarb@wpi.edu"
] | nagoldfarb@wpi.edu |
0224791ecdacf52585dc82bcf696f6feda3eb560 | b0c02d7ca86c1ef84af18a8c701702e8bb212b64 | /robotcar/robot_demo.py | d835d77755ccbeb16aa91e9b243d69dbd81e23e3 | [] | no_license | flashypepo/myMicropython-Examples | 24fa2f372e68742abe0f74913df000dfe64a9e55 | b2b63df865b5ad471b351ca5f279135025859f5d | refs/heads/master | 2021-09-24T18:52:18.083444 | 2018-10-13T11:59:19 | 2018-10-13T11:59:19 | 98,223,412 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 846 | py | import machine, motor, bot, time
print('creating i2c and motors ...')
i2c = machine.I2C(scl=machine.Pin(5), sda=machine.Pin(4))
motors = motor.DCMotors(i2c) #creates motors object
LEFT=0 #M0 - left motor
RIGHT=3 #M4 - right motor
print('creating robot ...')
robot = bot.Robot(motors, LEFT, RIGHT) # creates robot
dt =... | [
"peter@pepo.nl"
] | peter@pepo.nl |
6fa666ea6d1840544f96f471b1e3fa431e6625ce | 2b468b1d22ecc5668529255676a1d43936829074 | /codes/personal_backend/support/test/api/account/test_account_staff_api.py | 77c65d5ee97fc600c4f0bfb8569cff2aaa68c41e | [] | no_license | MaseraTiGo/4U | 5ac31b4cccc1093ab9a07d18218c3d8c0157dc9c | f572830aa996cfe619fc4dd8279972a2f567c94c | refs/heads/master | 2023-07-26T09:44:21.014294 | 2023-07-13T03:43:34 | 2023-07-13T03:43:34 | 149,217,706 | 0 | 0 | null | 2020-06-05T20:38:16 | 2018-09-18T02:34:29 | Python | UTF-8 | Python | false | false | 1,720 | py | # coding=UTF-8
import json
from support.common.testcase.api_test_case import APITestCase
'''
class Add(APITestCase):
def setUp(self):
pass
def tearDown(self):
pass
def test_account_staff_add(self):
"""test account staff to add"""
flag = "user"
api = "account.st... | [
"344627181@qq.com"
] | 344627181@qq.com |
87b3c9e11b14cb7d689ba36d1587e35e28f58976 | c97b9ae1bf06757ba61f90905e4d9b9dd6498700 | /venv/Lib/site-packages/skimage/draw/draw_nd.py | 03c268fb11faaef98beb8414071d9f7ed38a343a | [] | no_license | Rahulk1p/image-processor | f7ceee2e3f66d10b2889b937cdfd66a118df8b5d | 385f172f7444bdbf361901108552a54979318a2d | refs/heads/main | 2023-03-27T10:09:46.080935 | 2021-03-16T13:04:02 | 2021-03-16T13:04:02 | 348,115,443 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:c5e7f1c5ad5f275def9df43f330f4af4782e674274fb765bbb93af0c05902092
size 3841
| [
"rksc.k1p@gmail.com"
] | rksc.k1p@gmail.com |
86ce704f77b7c265463560e188583cbaa2aac01e | f29d69eea45f4383db37b1b6876be4bcfd286312 | /user_portrait_0320/user_portrait/cron/network/cron_network.py | ed9c43bd9b965c0a28d58ca37f802ddade6ad69a | [] | no_license | xuzhiq/user_portrait_ending2 | 5ac9952cf275923677d6e2f575289236df4dde9b | f2978135ff672f58090e202e588f7321ed121477 | refs/heads/master | 2021-05-31T05:15:21.316687 | 2016-05-11T11:56:38 | 2016-05-11T11:56:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,804 | py | # -*- coding:utf-8 -*-
import tempfile
import sys
import json
import time
import tempfile
reload(sys)
sys.path.append('../../')
from spam.pagerank_for_portrait import pagerank
from time_utils import ts2datetime, datetime2ts, ts2date
from keywords_utils import get_task_information, identify_task_exist,\
compute_... | [
"lijiahongasdf@163.com"
] | lijiahongasdf@163.com |
220d3da93147ba464b5fd1a2eeefdba19a37c65f | 26552adb0d8889affd40e009d3c311e41a873e43 | /Python_Solutions/9095.py | 6b8aaf7f8f39b7b0b8e579984c319a8acee871ab | [] | no_license | Isaac-Lee/BOJ-Algorithm | 3b9b64aba9ab3b48d15133cbf5ad122822e441d0 | 27f0339195c48f416e672390758e85305203b71a | refs/heads/main | 2022-06-29T21:36:11.500158 | 2022-06-25T06:35:05 | 2022-06-25T06:35:05 | 203,349,860 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 466 | py | import sys
def make123(n):
if memo[n] > 0:
return memo[n]
if n == 1 or n == 0:
memo[n] = 1
return memo[n]
memo[n] += make123(n-1)
if n-3 >= 0:
memo[n] += make123(n-3)
if n-2 >= 0:
memo[n] += make123(n-2)
return memo[n]
if __name__ == "__main__":
... | [
"yy0221ss@gmail.com"
] | yy0221ss@gmail.com |
c015abc83aad9d4d4eb62342b203ad222667c74b | 24684138f7a74672e084511e2f0202680b318112 | /lib/nmdc_metaassembly/nmdc_metaassemblyImpl.py | e0e0904a89147ec217adef5203a3d73a74881dd3 | [
"MIT"
] | permissive | microbiomedata/nmdc_kbase_metaassembly | 531abc003bace8ead6334966f90a8e925bd583ca | 2cb091007e556933e90c7c342a3e800d931e15ca | refs/heads/master | 2023-03-16T06:16:24.445768 | 2021-03-05T16:56:48 | 2021-03-05T16:56:48 | 341,439,883 | 0 | 2 | MIT | 2021-02-24T18:53:34 | 2021-02-23T05:31:18 | Python | UTF-8 | Python | false | false | 2,579 | py | # -*- coding: utf-8 -*-
#BEGIN_HEADER
import logging
import os
from installed_clients.KBaseReportClient import KBaseReport
from nmdc_metaassembly.assemble import nmdc_mg_assembly
#END_HEADER
class nmdc_metaassembly:
'''
Module Name:
nmdc_metaassembly
Module Description:
A KBase module: nmdc_met... | [
"scanon@lbl.gov"
] | scanon@lbl.gov |
b07717ae965c5aa2e55fdbcbf027e893ba95b680 | 46ae8264edb9098c9875d2a0a508bc071201ec8b | /res/scripts/client/gui/scaleform/daapi/view/battlegas_attack.py | c45a4342116a35a23080122c5c705cc4d96ee7d0 | [] | no_license | Difrex/wotsdk | 1fc6156e07e3a5302e6f78eafdea9bec4c897cfb | 510a34c67b8f4c02168a9830d23f5b00068d155b | refs/heads/master | 2021-01-01T19:12:03.592888 | 2016-10-08T12:06:04 | 2016-10-08T12:06:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,223 | py | # Embedded file name: scripts/client/gui/Scaleform/daapi/view/battle/gas_attack.py
from gui.Scaleform.locale.FALLOUT import FALLOUT
from gui.battle_control import g_sessionProvider
from gui.shared.utils.plugins import IPlugin
from gui import makeHtmlString
from helpers import i18n
class GasAttackPlugin(IPlugin):
... | [
"m4rtijn@gmail.com"
] | m4rtijn@gmail.com |
c0604ecc3e5fec3aa2883092810bbfee31e16a8e | f50368f3165c182a0adc914dec56f0cc03d9fb5a | /visual_mpc/envs/sawyer_robot/vanilla_sawyer_env.py | dc1c25c0a1aabdcacfee00d56d4d3d2dbb6b5243 | [
"MIT"
] | permissive | anestisdotpy/visual_foresight | 16ea71f938458a35892c1f557903ed885810dda3 | 957df706b4c7a11b7a0c9ba2de15853df62cd4ed | refs/heads/master | 2020-06-22T05:59:10.578361 | 2019-07-18T20:23:51 | 2019-07-18T20:23:51 | 197,651,312 | 0 | 0 | null | 2019-07-18T20:17:26 | 2019-07-18T20:17:26 | null | UTF-8 | Python | false | false | 487 | py | from .base_sawyer_env import BaseSawyerEnv
import copy
class VanillaSawyerEnv(BaseSawyerEnv):
def __init__(self, env_params, _=None):
self._hyper = copy.deepcopy(env_params)
BaseSawyerEnv.__init__(self, env_params)
self._adim, self._sdim = self._base_adim, self._base_sdim
def _next_qp... | [
"sdasari@berkeley.edu"
] | sdasari@berkeley.edu |
970d1f55ec7af00a76cc77d234fbbdb727238328 | 43ae032297b492fbdf2df478588d2367f59d0b6b | /4 - Classes-inheritance-oops/8-classes-inheritance-multiple-classes.py | 14e655efe6e7abee7b0671b4f7bac92126fa490d | [] | no_license | thippeswamydm/python | 59fa4dbb2899894de5481cb1dd4716040733c378 | db03b49eb531e75b9f738cf77399a9813d16166b | refs/heads/master | 2020-07-05T06:57:18.575099 | 2019-10-23T04:30:27 | 2019-10-23T04:30:27 | 202,562,414 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 788 | py | # Describes multiple inheritance of class from multiple classes
# Declaration of first parent
class Parent:
# Will not be accessible in the child class
__test = None
def __init__(self, val):
self.val = val
def printValFoo(self):
print(self.val)
# Will not be accessible in the child ... | [
"ganeshsurfs@gmail.com"
] | ganeshsurfs@gmail.com |
a583b094e10e271c7a87b12272c61dc1263274db | 350ade9361645f87d96589a0c90c76d8a951832b | /search.py | 103e3e43619fb4d0f0232b3c8f8036cdd866439b | [] | no_license | dongzeyuan/Practise | becf7c7ca15928213aa22ae15bd8b3f1f9b7dc8b | ecef4466d30c5c9e88e766b4f3df6db24959b9d3 | refs/heads/master | 2021-09-21T02:06:24.629708 | 2018-08-19T08:50:02 | 2018-08-19T08:50:02 | 119,028,934 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,776 | py | import wx
class ExamplePanel(wx.Panel):
def __init__(self, parent):
wx.Panel.__init__(self, parent)
# 创建一些sizer
mainSizer = wx.BoxSizer(wx.VERTICAL)
grid = wx.GridBagSizer(vgap=5, hgap=5) # 虚拟网格sizer,此处指定了行和列之间的间隙
hSizer = wx.BoxSizer(wx.HORIZONTAL)
self.quote = ... | [
"dongfujing88@gmail.com"
] | dongfujing88@gmail.com |
db221693696bd678140b5b4dffd264e3e5f29f9b | e3fe6ea7a67f19f35d3edc4e82a900f988a710d1 | /ML/regression/optimizer.py | b643b44b5a2f13b5ddebd8f647bb964b5519cff8 | [] | no_license | fooSynaptic/NLP_utils | 8258b857458d2021b4ead31680b06edaed031fcd | 9a02d3caf9f97b1fc777ffeefba87be7a44fe262 | refs/heads/master | 2022-08-29T03:45:01.977332 | 2022-07-28T15:09:12 | 2022-07-28T15:09:12 | 163,344,219 | 7 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,274 | py | # encoding=utf-8
# /usr/bin/python3
import numpy as np
"""vanilla linear regression with gradient descent"""
class linReg():
def __init__(self, num_inputs):
self.w = np.random.rand(num_inputs, )
self.b = np.random.rand(1, )
def squared_loss(self, y_hat, y):
squared_err = (y_hat - y.r... | [
"hujiaxin@ajmide.com"
] | hujiaxin@ajmide.com |
8a9bb8495e53836929e9fd749a53a604f9cec9a4 | 43fac2df4893f5b5448dd64f3c9e59ddebca7efe | /andromap/polytools.py | d8d3e5933a73f9d6a0e4bb11d12400f27bf2b6e7 | [
"BSD-3-Clause"
] | permissive | jonathansick/andromap | 8a159eb7a85ab5ea7602cdff1755ba411ef38d97 | b8905a39e0a45c7d803e45ce9a78c64ecac00bee | refs/heads/master | 2021-01-18T23:01:36.996791 | 2017-01-27T05:32:06 | 2017-01-27T05:32:06 | 14,810,726 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 849 | py | #!/usr/bin/env python
# encoding: utf-8
"""
Tools for working with polygons through shapely
2013-12-11 - Created by Jonathan Sick
"""
from shapely.geometry import Polygon, MultiPolygon
from shapely.ops import cascaded_union
import numpy as np
def close_vertices(polygon):
"""Make the last vertex the same as the ... | [
"jonathansick@mac.com"
] | jonathansick@mac.com |
3a5c2d05027ad0b4d276f391d8f18fc7563905d0 | ba0731b2dbc4c1529eaaa79811ec15754c19b4cd | /extractors/refextract/extract/routes.py | da9b4cb042c0fb5305c062073e04e91f29db71c1 | [
"MIT"
] | permissive | arXiv/arxiv-references | 35f87084cf91947c572faf1a86f119b308fada66 | a755aeaa864ff807ff16ae2c3960f9fee54d8dd8 | refs/heads/master | 2022-12-21T02:34:57.166298 | 2018-05-04T20:30:48 | 2018-05-04T20:30:48 | 94,906,433 | 8 | 6 | MIT | 2022-12-08T02:06:20 | 2017-06-20T15:26:25 | Python | UTF-8 | Python | false | false | 2,709 | py | """HTTP routes for refextract API."""
import os
from refextract import extract_references_from_file
from flask.json import jsonify
from flask import Blueprint, request, current_app
from werkzeug.utils import secure_filename
from werkzeug.datastructures import FileStorage
import logging
HTTP_200_OK = 200
HTTP_400_BAD_... | [
"brp53@cornell.edu"
] | brp53@cornell.edu |
ca14cfcc4f0020bf14072b28b13b5efd0c0a1140 | 2daa3894e6d6929fd04145100d8a3be5eedbe21c | /tests/real-life/test_sof_example.py | 67de4d5643861c429a1c60920db8424086e6352e | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Henri-Lo/pyaf | a1f73a0cc807873bd7b79648fe51de9cfd6c126a | 08c968425d85dcace974d90db7f07c845a0fe914 | refs/heads/master | 2021-07-01T12:27:31.600232 | 2017-09-21T11:19:04 | 2017-09-21T11:19:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,452 | py | import pandas as pd
import numpy as np
import pyaf.ForecastEngine as autof
import datetime
#get_ipython().magic('matplotlib inline')
trainfile = "data/sof_example.csv";
df = pd.read_csv(trainfile, sep=r',', engine='python', skiprows=0);
df['Date'] = df['Date'].apply(lambda x : datetime.datetime.strptime(x, "%m/%d/%Y"... | [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
a1eb66dbe95cb27bee4d6db88aae787c660163b8 | 5b49b2f8934e21445757a36174d924bb713ad810 | /elvers/rules/rcorrector/rcorrector-wrapper.py | d38953bd8abd25a4ea0521807acf6cc1283d78a0 | [
"BSD-3-Clause"
] | permissive | maligang/elvers | bf982442d08411a7081f186c7b76ac09035b0466 | b2dab8092351f6db13c437c89004b897fb8a40d7 | refs/heads/master | 2022-12-11T12:45:06.905102 | 2020-08-05T17:09:50 | 2020-08-05T17:09:50 | 290,427,388 | 0 | 0 | NOASSERTION | 2020-08-26T07:30:10 | 2020-08-26T07:30:09 | null | UTF-8 | Python | false | false | 2,509 | py | __author__ = "N .Tessa Pierce"
__copyright__ = "Copyright 2019, N. Tessa Pierce"
__email__ = "ntpierce@gmail.com"
__license__ = "MIT"
from os import path
from snakemake.shell import shell
extra = snakemake.params.get("extra", "")
log = snakemake.log_fmt_shell(stdout=True, stderr=True)
outdir = path.dirname(snakemake.... | [
"ntpierce@gmail.com"
] | ntpierce@gmail.com |
0540f3bb95f151504c0503e6e8179fec0de7207e | f98f4aaeca3ac841905e0cd8547bbf41944fe690 | /编程语言/Python/Python编程从入门到实践/第一部分_基础知识/第10章_文件和异常/10_6.py | 3835fd1a20ce17bffe0d169f134703a891d57347 | [] | no_license | zhb339/book-learning | 64f433b1ee1f66f3120828352df3b533be4cf9de | 5273fc8d11b2d602484dbe95e55f1e931858382f | refs/heads/master | 2020-03-29T10:48:22.771146 | 2018-11-07T13:46:53 | 2018-11-07T13:46:53 | 149,823,496 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 221 | py | while True:
try:
num1 = int(input("Enter first num: "))
num2 = int(input("Enter second num: "))
total = num1 + num2
print("The sum of two numbers is " + str(total) + ".")
except:
print("Please enter number!")
| [
"551788157@qq.com"
] | 551788157@qq.com |
2beb8e21a0723043fb3bf99c43435fcea367c31d | 1be37064cf303b79cf83ab1d5d120a8db6dbeaa4 | /fastparquet/thrift_structures.py | 280b8583627af5b1b4c31b246d18bc52192c32fd | [
"Apache-2.0"
] | permissive | mrocklin/fastparquet | 02e0252609b8825b2ad89c0b21b3a6e20bc34f94 | b0171ba3a7894f4860c1ce761ad47f451fc4cbc8 | refs/heads/master | 2020-12-24T08:54:09.977491 | 2016-11-08T17:14:38 | 2016-11-08T17:14:38 | 73,311,617 | 2 | 0 | null | 2016-11-09T18:46:52 | 2016-11-09T18:46:51 | null | UTF-8 | Python | false | false | 207 | py | import os
import thriftpy
THRIFT_FILE = os.path.join(os.path.dirname(__file__), "parquet.thrift")
parquet_thrift = thriftpy.load(THRIFT_FILE, module_name="parquet_thrift") # pylint: disable=invalid-name
| [
"martin.durant@utoronto.ca"
] | martin.durant@utoronto.ca |
e763f92c41f17a6f2fdbc603b1a4ce8c2d338382 | 9a5438bdb8e84d0167ddea5458a7f729fdd54121 | /metadata/tests/test_models/test_meta/test_attribute.py | 5d8ef2b6856c0df33ffb8ea2141cb61013e7a8aa | [] | no_license | Grusinator/MetaDataApi | 740fd2be4cb97b670f827a071a0ac8c50f79f8ff | 081f881c735466ed1dbbd68646b821299c5168f8 | refs/heads/master | 2023-07-25T23:58:22.179717 | 2020-03-15T09:36:05 | 2020-03-15T09:36:05 | 149,087,967 | 5 | 1 | null | 2023-07-25T15:39:12 | 2018-09-17T07:45:09 | CSS | UTF-8 | Python | false | false | 1,856 | py | import unittest
from datetime import datetime
import django
from django.test import TransactionTestCase
class TestAttribute(TransactionTestCase):
@classmethod
def setUpClass(cls):
super(TestAttribute, cls).setUpClass()
django.setup()
@unittest.skip
def test_datatype_to_data_object(s... | [
"grusinator@gmail.com"
] | grusinator@gmail.com |
be4958352ebe1cd5a7ed7e0e5a5a17eb690f7a54 | 9e26e9b8e1e0f7bbf116fdf5c92b4e3006d385ef | /user/views.py | a70640e853d683e97575775ec1e3f0e5b67f3000 | [] | no_license | talhajubair100/e-commerce | fd77877b877a91a447e9b17ab58a4d59cc1456df | e7620b0971489ce558a97dd8d9988562663fe560 | refs/heads/main | 2023-02-15T08:57:29.308811 | 2021-01-06T18:25:35 | 2021-01-06T18:25:35 | 317,015,514 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,539 | py | from django.contrib.auth.forms import PasswordChangeForm
from .forms import UserUpdateForm, ProfileUpdateForm
from django.shortcuts import redirect, render
from django.http.response import HttpResponse, HttpResponseRedirect
from product.models import Category, Comment
from django.contrib.auth import authenticate, logi... | [
"talhajubair100.bd@gmail.com"
] | talhajubair100.bd@gmail.com |
8a809d0d0ffedb0a224620d12bc9ab3749e4ff9e | 5f7c40860e584cb86e140d0819397a75f93e28ea | /motorcycles.py | 3f2b9124a2a2adecfbcef98ba88d8e0607f78df7 | [] | no_license | bailijiang/Python_exercise | cb149db1bc770fc684bf461ebae1b6dd53bf10a5 | 744a2a3b44036495ae28ec87fea98c04d008b099 | refs/heads/master | 2021-09-02T03:30:21.512752 | 2017-12-29T23:39:05 | 2017-12-29T23:39:05 | 114,254,360 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 439 | py | __author__ = 'Bryan'
motorcycles = ['honda', 'yamaha', 'suzuki']
print(motorcycles)
motorcycles[0] = 'ducati'
print(motorcycles)
motorcycles.append('ducati')
print(motorcycles)
motorcycles.insert(1, 'BRZ')
print(motorcycles)
del motorcycles[0]
print(motorcycles)
poped_motocycles = motorcycles.pop()
print(poped_mo... | [
"bailijiang@hotmail.com"
] | bailijiang@hotmail.com |
fe5700984481c97ee479bdc3980dd0df676e42cf | 9658ec133fd777d349487d7f06df74e4c99f5613 | /src/microplot/explorer/examples/demo_mono_bitmap.py | 1606e08cf9d539ddfa43668d0769153d2c67744e | [
"MIT"
] | permissive | Palmbear/microplot | 6a6d0fc0be7318d95974c8541b2db2cf4390b6e8 | 9cb07c1f1a231b81f4517417c8a3a0fff6aeb3b1 | refs/heads/master | 2023-07-01T22:59:50.577556 | 2021-03-19T15:42:14 | 2021-03-19T15:42:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 307 | py | import math
from plotter import Plotter
from plots import LinePlot
def run():
sines = list(math.sin(math.radians(x))
for x in range(0, 361, 5))
plot = LinePlot([sines],'MicroPlot line')
plotter = Plotter()
plot.plot(plotter)
plotter.write_mono_bitmap('demo-mono.bmp')
| [
"romilly.cocking@gmail.com"
] | romilly.cocking@gmail.com |
660d07bde49e51d20f8d3401e32430d4edd6b1ee | 0f36de8254443fd6bf0ae5fe0c1dc1a3bda619d2 | /devel/.private/differential_robot_185104iaib/lib/python2.7/dist-packages/differential_robot_185104iaib/msg/_counter_message.py | 34df98f8e6c0f454f8f33569e3add0f1ab2278c6 | [] | no_license | alekal1/ros | 88c5d2a1b013e36b4acecfc5f131ce0113088bc6 | e17174b023f60aab8982195a6427e569b01ab9d0 | refs/heads/master | 2023-01-24T03:39:57.639016 | 2020-11-21T20:01:26 | 2020-11-21T20:01:26 | 296,635,679 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,007 | py | # This Python file uses the following encoding: utf-8
"""autogenerated by genpy from differential_robot_185104iaib/counter_message.msg. Do not edit."""
import codecs
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
class counter_message(genpy.Message):
_md5sum = "9acad0... | [
"sasha.aleksandov@gmail.com"
] | sasha.aleksandov@gmail.com |
516036f8a0bc3f47d5d771b46101d15d00bbf14f | 22295cda10cf11472fee987093e0b245f6f96ef3 | /nick/twophoton/imag003_depth_report_signals.py | 40243b4470c47a81c063c4888295fcf8c03f4476 | [] | no_license | sjara/jaratest | aecb9e3bcc1ff91db35e7cd551c0f4f3da0b690a | 09bf2c76bd5bf45191a2c37c14171ae1e8902c4b | refs/heads/master | 2023-08-11T09:55:17.684814 | 2023-08-03T22:03:31 | 2023-08-03T22:03:31 | 63,100,718 | 2 | 5 | null | 2023-04-11T18:14:08 | 2016-07-11T20:43:04 | Python | UTF-8 | Python | false | false | 1,259 | py | import os
import numpy as np
from scipy import io
from jaratoolbox import loadbehavior
from jaratoolbox import extraplots
from matplotlib import pyplot as plt
from skimage.external import tifffile
dataDir = '/home/nick/data/2pdata/imag003/'
# sessionsToPlot = [0, 1, 2, 3, 4, 5, 6, 8, 10, 13, 14, 15, 17, 18, 19]
sessi... | [
"nickponvert@gmail.com"
] | nickponvert@gmail.com |
269bf66d37d33754342bddb0248ac1f47af381c5 | 0246c0ded95e8cfb1139159c267f6c024ca83f7a | /5kyu_rgb_to_hex_conversion.py | 1296ce04e6bd1bdea4d07c74e38cbcc1fec3c027 | [] | no_license | cromox1/KodPerang_kata | e40a4f2c3f4eba029caabc3312236aac1bea43bd | 242effc71fef40c0c9a7dc46653845a20da5f239 | refs/heads/main | 2023-01-21T00:18:00.232300 | 2020-11-26T12:13:17 | 2020-11-26T12:13:17 | 312,572,025 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,449 | py | def rgb(r, g, b):
int_to_hex = lambda number: "%0.2X" % number if (0 <= number <= 255) else '00' if number < 0 else 'FF'
return int_to_hex(r) + int_to_hex(g) + int_to_hex(b)
# def int_to_hex(num):
# if num <= 0:
# num = 0
# elif num >= 255:
# num = 255
# return "%0.2X" % num
class ... | [
"xixa01@yahoo.co.uk"
] | xixa01@yahoo.co.uk |
d57bb865836da6b50b08d1e0795f50aef737cded | 74f0c966d09786f447ad60bf837ea342cb405874 | /neutron/db/sqlalchemyutils.py | b720554d8bfe626a674b13cc47b1c6054d97fa9f | [
"Apache-2.0"
] | permissive | mrwukang/neutron | ad354d19a6ba4ec9a92b4e54d02cf1bbfd66e47e | ebdb2ad1213eaf09c6a3f061a94ff4453c3e7506 | refs/heads/master | 2020-04-11T18:24:09.601969 | 2019-01-02T15:42:05 | 2019-01-02T15:42:05 | 161,997,228 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,493 | py | # Copyright 2011 OpenStack Foundation.
# All Rights Reserved.
#
# 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 req... | [
"wukangmr@163.com"
] | wukangmr@163.com |
fa882c3cca9a31dfa9f0468d57cc0eba36f3d1b4 | a9f4434d3b410886ffc10aa5aede3634692152b6 | /0218/ex_if4.py | 7c7e8186913a879087edcca4ecb26393f4434e91 | [] | no_license | parka01/python_ex | d3690dcd8753864c335bf7782553719a072bd01d | a5811487516eb9ef86d5ae93e9060cac267b87ce | refs/heads/main | 2023-03-13T08:35:03.837790 | 2021-02-26T03:40:41 | 2021-02-26T03:40:41 | 339,892,972 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 219 | py | age=int(input('나이를 입력하세요: '))
if age>=65:
print('지하철 경로 우대 승차권 발급')
else:
print('일반 승차권 발급')
print('자동 발매기를 이용해주셔서 감사합니다.') | [
"68191916+parka01@users.noreply.github.com"
] | 68191916+parka01@users.noreply.github.com |
facce1dd0ae0e979ec432e8a3d4697e93750f24b | 312ab41033c2cb043d617d3e633c166503fd280c | /Informatikk/Bachelor/H2017/ITGK/Eksamensøving/Øving 6/Mynter.py | 473758343370ecab300a3a1f0300f96a8752c55d | [] | no_license | skanin/NTNU | cb9b833d9de0d504965979584370b8f353435cd1 | e4023856f69060f8d3d09ff4990e29f7a75d98b1 | refs/heads/master | 2022-01-30T14:31:22.947512 | 2022-01-20T14:11:14 | 2022-01-20T14:11:14 | 113,476,017 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 631 | py | def count_coins(coins):
summen = 0
for coin in coins:
summen += coin
return summen
def num_coins(numbers):
coins = []
temp = []
for num in numbers:
if num > 10:
enere = num % 10
tiere = num // 10
if tiere % 2 == 0:
tjue = tie... | [
"sander.b.lindberg@gmail.com"
] | sander.b.lindberg@gmail.com |
5816095d02686182c4cc3f9e02f65d91965b2fe6 | e6f1137903b9658e5e3c1ee51201a931894303b9 | /util/melt/layers/__init__.py | 4324748862ecebf1960d5f5dae2b09531e22e1a5 | [] | no_license | fword/hasky | 8ed69ef85bb34823d9ade27bb3b19aac02872440 | d3c680ffa04f7487b931a5575977798157b42b7e | refs/heads/master | 2021-01-23T01:18:49.275631 | 2017-03-18T13:01:27 | 2017-03-18T13:01:27 | 85,898,744 | 1 | 1 | null | 2017-03-23T02:39:06 | 2017-03-23T02:39:06 | null | UTF-8 | Python | false | false | 667 | py | #!/usr/bin/env python
# ==============================================================================
# \file __init__.py
# \author chenghuige
# \date 2016-08-16 16:36:38.289129
# \Description
# ==============================================================================
from... | [
"29109317@qq.com"
] | 29109317@qq.com |
12773f151707596988078c66d295a28579590999 | 6515dee87efbc5edfbf4c117e262449999fcbb50 | /eet/Distant_Barcodes.py | 9c536919456a6b4b5ac94f5b3db75a3e8443f3df | [] | no_license | wangyunge/algorithmpractice | 24edca77e180854b509954dd0c5d4074e0e9ef31 | 085b8dfa8e12f7c39107bab60110cd3b182f0c13 | refs/heads/master | 2021-12-29T12:55:38.096584 | 2021-12-12T02:53:43 | 2021-12-12T02:53:43 | 62,696,785 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,302 | py | """
In a warehouse, there is a row of barcodes, where the ith barcode is barcodes[i].
Rearrange the barcodes so that no two adjacent barcodes are equal. You may return any answer, and it is guaranteed an answer exists.
Example 1:
Input: barcodes = [1,1,1,2,2,2]
Output: [2,1,2,1,2,1]
Example 2:
Input: barcodes = [... | [
"wangyunge1@yahoo.com"
] | wangyunge1@yahoo.com |
5f6c2cc23bfa6be883b2211c1cbe82dfdc70fee1 | 7b437e095068fb3f615203e24b3af5c212162c0d | /enaml/qt/qt_menu.py | eed0ca7ad1bdec1ef6ddb3227edc9944a2341163 | [
"BSD-3-Clause"
] | permissive | ContinuumIO/enaml | d8200f97946e5139323d22fba32c05231c2b342a | 15c20b035a73187e8e66fa20a43c3a4372d008bd | refs/heads/master | 2023-06-26T16:16:56.291781 | 2013-03-26T21:13:52 | 2013-03-26T21:13:52 | 9,047,832 | 2 | 3 | null | null | null | null | UTF-8 | Python | false | false | 7,532 | py | #------------------------------------------------------------------------------
# Copyright (c) 2013, Nucleic Development Team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file COPYING.txt, distributed with this software.
#-------------------------------------------------... | [
"sccolbert@gmail.com"
] | sccolbert@gmail.com |
75c0f023556c19ce152dd2ed15092cba945a4cb9 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/verbs/_enchant.py | 30a2682435ccb97a29ce664927597299802bbdb4 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 374 | py |
#calss header
class _ENCHANT():
def __init__(self,):
self.name = "ENCHANT"
self.definitions = [u'to attract or please someone very much: ', u'to have a magical effect on someone or something']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.specie = 'verbs'
def ru... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
dd825169a7e52a6ad884d02fdd6500cf7257a189 | 3ea99519e25ec1bb605947a94b7a5ceb79b2870a | /modern_python/modernpython/lib/mypy/typeshed/stdlib/3.4/tracemalloc.pyi | 462b03ca1c46a82c921e5591f87aaf07cc326d2c | [] | no_license | tech-cow/spazzatura | 437c7502a0654a3d3db2fd1e96ce2e3e506243c0 | 45fc0932186d2ef0c5044745a23507a692cfcc26 | refs/heads/master | 2022-09-01T12:01:11.309768 | 2018-11-15T04:32:03 | 2018-11-15T04:32:03 | 130,414,653 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,328 | pyi | # Stubs for tracemalloc (Python 3.4+)
import sys
from typing import Any, List, Optional, Sequence, Tuple, Union
def clear_traces() -> None: ...
def get_object_traceback(obj: object) -> Optional[Traceback]: ...
def get_traceback_limit() -> int: ...
def get_traced_memory() -> Tuple[int, int]: ...
def get_trace... | [
"yuzhoujr@yuzhou-7480.internal.synopsys.com"
] | yuzhoujr@yuzhou-7480.internal.synopsys.com |
69d1f1d6c3c6c4c911b19d88c4953d469307148f | 1e0ae1f039668a65e480065d671235fc0fff9b52 | /s11day2/backend/b2.py | bb0b3891a46e924deb3ce5866e6a53261cb4ac70 | [] | no_license | aixocm/svndata | a4da91c3c9e1d376abfd46e7cecc3c5c2e340e83 | ee205301f3a1ce11acef98bba927877cb7c4fb0b | refs/heads/master | 2021-01-21T04:39:41.607117 | 2016-07-01T01:48:36 | 2016-07-01T01:48:36 | 47,066,006 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,613 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
#date:2016-1-11
import time
import hashlib
import pickle
import ConfigParser
import day
info = {}
def regiest():
global info
while True:
username = raw_input('please input your username:')
passwd = raw_input('please input your password:')
if n... | [
"1755897532@qq.com"
] | 1755897532@qq.com |
ded09e44634a6c69a66cad4017e63a15258b6b35 | 67d4025c8b006a4342ce78bf4831d50432a4ed7a | /flow controls/current.py | b858a670d03af0b448bdb3d27cb8ffeb47d14c81 | [] | no_license | Anju-PT/pythonfilesproject | fd21484e98dc6c27fd9fd00feea0ede76ca8db17 | fee8351a1610921700ee15ea88c6f765fe3d21cd | refs/heads/master | 2023-04-29T18:13:46.490301 | 2021-05-19T08:06:51 | 2021-05-19T08:06:51 | 368,791,602 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,493 | py | #year
#month
#date
#birth year
#month
#date
#print year
cyear=int(input("enter current year"))
cmonth=int(input("enter current month"))
cdate=int(input("enter current date"))
byear=int(input("enter birth year"))
bmonth=int(input("enter birth month"))
bdate=int(input("enter birth date"))
dyear=cyear-byear
dmonth=cmonth-... | [
"anjuthankachen2012@gmail.com"
] | anjuthankachen2012@gmail.com |
c2f220b3b5f0bf91bfad97fd447ebc7840a3f497 | f04fb8bb48e38f14a25f1efec4d30be20d62388c | /牛客Top200/41最长无重复子数组.py | 925b34c978b77ae75f52c81087d78fbe3d6366fb | [] | no_license | SimmonsChen/LeetCode | d8ef5a8e29f770da1e97d295d7123780dd37e914 | 690b685048c8e89d26047b6bc48b5f9af7d59cbb | refs/heads/master | 2023-09-03T01:16:52.828520 | 2021-11-19T06:37:19 | 2021-11-19T06:37:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 623 | py | class Solution:
# 用队列:当前数字在队列中,则一直出队直到当前元素不在队中,然后将当前元素入队。
# 每入队一个元素都要计算当前队长度,返回值即是队列长度的最大值。
def maxLength(self, arr):
n = len(arr)
if n < 2: return n
queue = []
ans = 0
for number in arr:
while number in queue:
queue.pop(0)
queu... | [
"15097686925@163.com"
] | 15097686925@163.com |
df1e1b2efa5dc475ee5b76e61cad469f2164c2bf | 052a89753a7917b7fa0ccdf5718d5250a1379d2c | /bin/explode.py | 792bb4609f5f71183a72a0d26597362977ad7e7b | [] | no_license | bopopescu/aws.example.com | 25e2efda3bd9ae2a257c34904ccb53043fe20b55 | 97254868688c3c3a991843fcacc973c93b366700 | refs/heads/master | 2022-11-22T07:06:30.386034 | 2016-10-25T15:22:14 | 2016-10-25T15:22:14 | 282,553,417 | 0 | 0 | null | 2020-07-26T01:22:26 | 2020-07-26T01:22:25 | null | UTF-8 | Python | false | false | 2,499 | py | #!/Users/deanarmada/Desktop/projects/python-projects/aws.example.com/bin/python
#
# The Python Imaging Library
# $Id$
#
# split an animation into a number of frame files
#
from __future__ import print_function
from PIL import Image
import os
import sys
class Interval(object):
def __init__(self, interval="0"):
... | [
"deanarmada@gmail.com"
] | deanarmada@gmail.com |
36d1293350f5b67bf202eb4d0c02875b0fb70e92 | 63f6ce221f6ac10f33761b6e57cf47725fd3d1cb | /08_Inteligencia_Artificial/01_Mineracao_de_Emocoes_em_Textos/base.py | d5d26c33f96c0e78d5a32f8964b53b1eae32c865 | [] | no_license | iamferreirajp/python-notebook | 7dcc4305fec2a133a28b5449d77d486dcaca2f5f | c9056024bc7a7715db3607ec00f886a7b9eaf0c0 | refs/heads/master | 2020-05-03T09:54:43.612078 | 2019-03-24T07:07:21 | 2019-03-24T07:07:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,330 | py | base = [
('eu sou admirada por muitos','alegria'),
('me sinto completamente amado','alegria'),
('amar e maravilhoso','alegria'),
('estou me sentindo muito animado novamente','alegria'),
('eu estou muito bem hoje','alegria'),
('que belo dia para dirigir um carro novo','alegria'),
('o dia está... | [
"victorhad@gmail.com"
] | victorhad@gmail.com |
73cb855b2bd5a9631ecd288feca60ceac271a3a9 | 291ab4b5b1b99d0d59ce2fb65efef04b84fd78bd | /tmp_testdir/postgresDB/test5b_manual_dbtable_insert_date_time.py | ca1b04857efca706986da6e210cb68cdea5f6927 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | cromox1/Trading212 | 15b5ea55d86e7063228f72dd92525e1fca693338 | 68f9b91098bc9184e16e9823a5e07e6b31e59602 | refs/heads/main | 2023-04-17T23:03:07.078229 | 2021-05-05T23:02:54 | 2021-05-05T23:02:54 | 320,100,427 | 0 | 2 | null | 2021-04-13T07:03:41 | 2020-12-09T22:58:06 | Python | UTF-8 | Python | false | false | 2,736 | py | import psycopg2
import datetime
def connect_db(host, user, pswd):
conn = psycopg2.connect(host=host, user=user, password=pswd)
cur = conn.cursor()
return cur, conn
def connect_db_commit_close(cur, conn):
conn.commit()
cur.close()
conn.close()
def create_table_if_noexist(dbtable):
sqlcomma... | [
"xixa01@yahoo.co.uk"
] | xixa01@yahoo.co.uk |
6238e82437788028beba37bd4dc6074632053960 | bccfab4d853f7417401a084be95de293e66ccd2a | /mySpider/spiders/Museum72.py | 7cda6f18480e54909d7211b01dccc6d7a37022cd | [] | no_license | CS1803-SE/The-First-Subsystem | a8af03ce04a9de72a6b78ece6411bac4c02ae170 | 4829ffd6a83133479c385d6afc3101339d279ed6 | refs/heads/main | 2023-05-06T02:32:08.751139 | 2021-05-24T06:09:37 | 2021-05-24T06:09:37 | 363,400,147 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,504 | py | #lay
from ..items import *
class Museum72(scrapy.Spider):
name = "Museum72"
allowed_domains = ['nbmuseum.cn']
start_urls = ['http://nbmuseum.cn/col/col41/index.html']
custom_settings = {
'ITEM_PIPELINES': {
'mySpider.pipelines.MuseumPipeLine': 300,
},
'DOWNLOADER_M... | [
"1300978939@qq.com"
] | 1300978939@qq.com |
03d6b9442657118869f4d81fda133e26f127d88b | 645cd832def2330ea923d69fcc82cf5b7719415b | /python/smqtk/algorithms/relevancy_index/__init__.py | 36a407c72a844017a2550d0d6d0e1b72ee4d9c2c | [] | no_license | mrG7/SMQTK | 3103b6c59e347930a330e3284b288cb7af20f3b6 | 19917babd63767726b1bc21a184a5006366b59af | refs/heads/master | 2021-01-20T11:35:21.861708 | 2015-10-02T21:50:44 | 2015-10-02T21:50:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,950 | py | import abc
import logging
from smqtk.algorithms import SmqtkAlgorithm
__author__ = "paul.tunison@kitware.com"
class RelevancyIndex (SmqtkAlgorithm):
"""
Abstract class for IQR index implementations.
Similar to a traditional nearest-neighbors algorithm, An IQR index provides
a specialized nearest-n... | [
"paul.tunison@kitware.com"
] | paul.tunison@kitware.com |
e1bfa27cf691a0b6ee3d8d8a074da682433cef02 | f20931826a557f0d884f8b46de259840c29b7428 | /meiduo_mall/meiduo_mall/utils/authenticate.py | 2079f8c659a70dbebbb5291a0c6b7c9cbcc4867e | [] | no_license | zy723/meiduo_project | 38ccecc2fa1d61f2eb848ebc572dd43d45a534c8 | f50a8105c63554b57419cb3494c3d323bb343f9c | refs/heads/master | 2022-12-15T02:34:42.578549 | 2020-05-20T16:56:27 | 2020-05-20T16:56:27 | 248,264,846 | 0 | 0 | null | 2022-12-12T20:28:41 | 2020-03-18T15:08:40 | TSQL | UTF-8 | Python | false | false | 2,024 | py | """
增加支持管理员用户登录账号
JWT扩展的登录视图,在收到用户名与密码时,也是调用Django的认证系统中提供的authenticate()来检查用户名与密码是否正确。
我们可以通过修改Django认证系统的认证后端(主要是authenticate方法)来支持登录账号既可以是用户名也可以是手机号。
修改Django认证系统的认证后端需要继承django.contrib.auth.backends.ModelBackend,并重写authenticate方法。
authenticate(self, request, username=None, password=None, **kwargs)方法的参数说明:
reque... | [
"zy723@vip.qq.com"
] | zy723@vip.qq.com |
9e819a87ebc1032db2785b8533da9e1f29cd9fe5 | f62e4c46fb0f98879fb63977fa29631b02e3928c | /16 задание/РекурсФункцСТекст_005.py | 555d533ac95655abf5e3a748654d72868d9b32bc | [] | no_license | SeveralCamper/USE-2020-2021 | c34f4d7a2c3e0f51529141781f523b63242a835d | ac1122649f2fd431a91af5dda5662492e2565109 | refs/heads/master | 2023-09-03T13:36:05.822568 | 2021-10-27T12:54:10 | 2021-10-27T12:54:10 | 392,303,515 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 454 | py | # Задание 16 № 9163
# Ниже на пяти языках программирования записан рекурсивный алгоритм F.
# Чему равна сумма всех чисел, напечатанных на экране при выполнении вызова F(1)?
count = 0
def F(n):
global count
count += n
print(n)
if n < 4:
F(n + 1)
F(n + 3)
print(F(1), count)
# Ответ: 25 | [
"mikha.alkhimovich@mail.ru"
] | mikha.alkhimovich@mail.ru |
270526ead40fed7395ab36a2f0e5538850c9fcd5 | 43575c1324dc0760958a110d7f056bce88422a03 | /listing/arrayqueue.py | fe91f1bc669035d14da292523bec642ed81d0941 | [] | no_license | nicolas4d/Data-Structures-and-Algorithms-Using-Python | 1ffd74d26f09de2057bdc53998a56e56ed77c1de | a879ce6fd4033867783ee487d57d459b029eb5f8 | refs/heads/master | 2020-09-24T12:48:30.726766 | 2019-12-31T03:15:44 | 2019-12-31T03:15:44 | 225,761,970 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,219 | py | # Implementation of the Queue ADT using a circular array.
from array import Array
class Queue :
# Creates an empty queue.
def __init__( self, maxSize ) :
self._count = 0
self._front = 0
self._back = maxSize - 1
self._qArray = Array( maxSize )
# Returns True if the queue is ... | [
"nicolas4d@foxmail.com"
] | nicolas4d@foxmail.com |
ed2bd9596b3c087bafd28769728ffae53934a728 | e12e1e738d06dbbcdb7f3d051614e7aa493f795d | /mysite/config/settings.py | 41635b0505022517d3d2ca9886160f51f35e9721 | [] | no_license | suhjohn/ec2-deploy-mysite | 34c13e1ae3ff33ca14a6223ee8036432ea98d460 | fb3c33cb64ecfa673f16da0385942f76bde748a1 | refs/heads/master | 2021-07-19T17:57:53.701059 | 2017-10-27T05:33:27 | 2017-10-27T05:33:27 | 108,366,401 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,380 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 1.11.6.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import os
... | [
"johnsuh94@gmail.com"
] | johnsuh94@gmail.com |
c663cfef1a695d5be22587d9ff42d87025c79fdc | 9edaf93c833ba90ae9a903aa3c44c407a7e55198 | /netex/models/destination_display_variant_ref.py | 3255e0537fdd4c971133e232146768cd1aa74573 | [] | no_license | tefra/xsdata-samples | c50aab4828b8c7c4448dbdab9c67d1ebc519e292 | ef027fe02e6a075d8ed676c86a80e9647d944571 | refs/heads/main | 2023-08-14T10:31:12.152696 | 2023-07-25T18:01:22 | 2023-07-25T18:01:22 | 222,543,692 | 6 | 1 | null | 2023-06-25T07:21:04 | 2019-11-18T21:00:37 | Python | UTF-8 | Python | false | false | 332 | py | from dataclasses import dataclass
from .destination_display_variant_ref_structure import DestinationDisplayVariantRefStructure
__NAMESPACE__ = "http://www.netex.org.uk/netex"
@dataclass
class DestinationDisplayVariantRef(DestinationDisplayVariantRefStructure):
class Meta:
namespace = "http://www.netex.or... | [
"chris@komposta.net"
] | chris@komposta.net |
3a2ad1e33b7dc2a198f28492c836efb94a98b834 | 3562fa51db47b1b1e97785191f0c04644d47c283 | /python/plat3/2152.py | 62489943de0aeb7ac35dc6bf78cf5e4aa950e1b3 | [] | no_license | seono/algorithm | c74181d564525e3a0214824c4a619c51cd52a042 | 78a252b29290eaa1ea076d76cd83e5dbbb7d8d89 | refs/heads/master | 2021-07-13T07:13:41.523888 | 2021-04-24T14:05:00 | 2021-04-24T14:05:00 | 244,609,427 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,697 | py | import sys
from collections import deque
sys.setrecursionlimit(100000)
input = sys.stdin.readline
N, M, S, T = map(int,input().split())
adj = [[] for _ in range(N+1)]
for i in range(M):
s,t = map(int,input().split())
adj[s].append(t)
cnt,SN = 0,0
dfsn = [0]*(N+1)
scc_arr = []
scc_num = [0]*(N+1)
finished = [Fa... | [
"tjsh0111@gmail.com"
] | tjsh0111@gmail.com |
a32df99969cc2b00821ca9dfd9e146584b61aad7 | ed63b9b615c0f1484746e87b54a0c0b233ddf5c2 | /tests/test_parser.py | 90b755aedee63b62e364f59f3cb3c53381aaf2e0 | [
"MIT"
] | permissive | timofurrer/embedeval | ae02026da6cd5601b16afe1cbb543552cbf461ac | 08a69c950c9a0ac59a8a0ca728af2627c7bcc43a | refs/heads/master | 2020-07-29T10:41:56.322842 | 2020-01-20T10:32:46 | 2020-01-20T10:32:51 | 209,766,108 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,581 | py | """
embedeval
~~~~~~~~~
NLP Embedding Evaluation Tool
:copyright: (c) 2019 by Timo Furrer <tuxtimo@gmail.com>
:license: MIT, see LICENSE for more details.
"""
import textwrap
import uuid
import numpy as np
import pytest
from embedeval.parsers.word2vec_gensim import load_embedding as gensim_load_embedding
from embe... | [
"tuxtimo@gmail.com"
] | tuxtimo@gmail.com |
1e7fd967ad595fb9792cb574c9219de21724fb93 | ac652ff7636d4c3336918d0f96aa8ea1bba3ab28 | /fastvid/posts/serializers/postmodel.py | c0152d21e28e0e4c646800e2244e7b172f680400 | [] | no_license | pn101/fastvid | eebff58e9dd6b967a52361713ed34462e0713d88 | 9f57c577c558906e3fd5c3ab44f112588ae84ed2 | refs/heads/develop | 2021-01-20T18:58:34.398325 | 2016-07-05T09:29:49 | 2016-07-05T09:29:49 | 61,545,668 | 0 | 0 | null | 2016-06-20T13:14:42 | 2016-06-20T12:22:08 | null | UTF-8 | Python | false | false | 412 | py | from rest_framework import serializers
from posts.models import Post
class PostModelSerializer(serializers.ModelSerializer):
username = serializers.CharField(source='user.username')
class Meta:
model = Post
fields = [
'pk',
'username',
'title',
... | [
"philipnam101@gmail.com"
] | philipnam101@gmail.com |
1e3299112d0d4a422e71d7d55d2a4869b4e74dc6 | 917e376668f325c0452fe05fcf3f6348a6ac4336 | /tests/xla_interpreter_test.py | d3b758aa0cb0e09d3959f3ad74c8e0192d75cc0a | [
"Apache-2.0"
] | permissive | wusixer/jax | 5f8d78a89679db74d0d62806725cc820246d4b4e | 66de981e1dfbe04a41b2c003f171fea7bb92585f | refs/heads/main | 2023-06-15T09:10:45.599555 | 2021-07-06T01:58:11 | 2021-07-06T01:58:11 | 383,305,925 | 0 | 0 | NOASSERTION | 2021-07-06T01:32:55 | 2021-07-06T01:32:55 | null | UTF-8 | Python | false | false | 1,252 | py | # Copyright 2021 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | [
"no-reply@google.com"
] | no-reply@google.com |
c35af357be8ae118dde3133aaaff753973cb786b | f756eedd0fd4cee9b369978d1e20287dd579e4da | /InmoovScript/services/7_Inmoov.py | ac1ef25dc0796c3cb41c2579757db642007edf0a | [] | no_license | linuxrodo/inmoov | cf02421443d6976f153a64c898e2c209e32cc246 | fe8391d6d59ccdf6bdf5b382872fdf4bf77f4b09 | refs/heads/master | 2021-01-21T09:06:52.835689 | 2017-02-23T04:07:38 | 2017-02-23T04:07:38 | 82,861,443 | 0 | 0 | null | 2017-02-22T23:05:24 | 2017-02-22T23:05:24 | null | UTF-8 | Python | false | false | 934 | py | # ##############################################################################
# INMOOV SERVICE
# ##############################################################################
# ##############################################################################
# MRL SERVICE CALL
# #############################... | [
"moz4r@free.fr"
] | moz4r@free.fr |
5d7a771e779f0b24d4bc1ae2bf01ac98e9d0c325 | 9423dd5312d6c05f61ec902a26ff627c6ef58f97 | /Python/functions/get_middle_point.py | 6d5bb3a5c5f3d271d454c9c6da74dc57df5a617c | [] | no_license | NehvedovichVlad/small_tasks | 01c093b07d521da59c559591559d61e81829df0f | 1c4085e3a2f0a4530c82f57b98f0f83b18e68567 | refs/heads/main | 2023-03-17T15:49:04.480092 | 2021-03-11T20:29:05 | 2021-03-11T20:29:05 | 308,935,905 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,013 | py | """"
Середина отрезка
Напишите функцию get_middle_point(x1, y1, x2, y2),
которая принимает в качестве аргументов координаты концов отрезка
(x_1; \, y_1)(x 1;y1) и (x_2; \, y_2)(x2;y2)
и возвращает координаты точки являющейся серединой данного отрезка.
"""
# -----------------------------------------------------------... | [
"vladislavnehvedovich@gmail.com"
] | vladislavnehvedovich@gmail.com |
cec69182b84e9aa6bff4f48d54f59182d811ddf5 | de847b2e9a5236887fb6a164fedc0e0c86b84e6c | /pythonturorial/workshopprograms/userinput.py | 0b0ce93aae289361bd5e6a95386c281114c27be5 | [] | no_license | raghuprasadks/pythonmicrosoftexam | 9a6bcafcdbc5bb6727278f421bb1a31dc5b7427b | 68dacab8aa98d0ff39f1f36c3ce8e666be3760a0 | refs/heads/master | 2020-09-15T02:51:06.809959 | 2020-02-12T01:18:42 | 2020-02-12T01:18:42 | 223,330,626 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 475 | py | name = input("Enter your name")
print(type(name))
print('your name is ',name)
age = int(input("enter your age"))
print('your age is ',age)
nextyear = age +1
print('your age after one year',nextyear)
amount = float(input("Enter the payment made for purchase of fruits"))
print('float conversion',amount)
print("Enter ... | [
"prasadraghuks@gmail.com"
] | prasadraghuks@gmail.com |
8e9aecb12e6e5e2f8c0bc687ca323a81ccf17b40 | 4935e2ef7994222178f950319f9f8d3e2adfa543 | /summer/2018_07_26/4sum-ii.py | 93f49d2327c742fa53619df9e5a30f374a233dd2 | [] | no_license | shaheming/leecode | e853b59469b97ca97a5b4ecd80497b3dac3fb10f | a8b59573dc201438ebd5a5ab64e9ac61255a4abd | refs/heads/master | 2021-07-03T03:57:22.718410 | 2019-04-06T18:19:53 | 2019-04-06T18:19:53 | 140,241,375 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 689 | py | #这个问题本来是一个 O(N^4) 但是通过拆解可以拆解为两个 O(2*N^2) 的问题
class Solution:
def fourSumCount(self, A, B, C, D):
"""
:type A: List[int]
:type B: List[int]
:type C: List[int]
:type D: List[int]
:rtype: int
"""
count = 0
dicA, dicB, dicC, dicD = {}, {}, {}, {}
... | [
"shmsand@gmail.com"
] | shmsand@gmail.com |
4d7505d380777b2beba7bed17181483a5992b5c4 | da9b9f75a693d17102be45b88efc212ca6da4085 | /sdk/appconfiguration/azure-appconfiguration/setup.py | cbab0ebedf6658d7f5da30366ae1070a9eca46c9 | [
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | elraikhm/azure-sdk-for-python | e1f57b2b4d8cc196fb04eb83d81022f50ff63db7 | dcb6fdd18b0d8e0f1d7b34fdf82b27a90ee8eafc | refs/heads/master | 2021-06-21T22:01:37.063647 | 2021-05-21T23:43:56 | 2021-05-21T23:43:56 | 216,855,069 | 0 | 0 | MIT | 2019-10-22T16:05:03 | 2019-10-22T16:05:02 | null | UTF-8 | Python | false | false | 3,251 | py | #!/usr/bin/env python
#-------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#----------------------------------------------------------------... | [
"noreply@github.com"
] | elraikhm.noreply@github.com |
32c207f3631eab9b520c22cef2980be18016e080 | 8b7d98c5077d1607568460ce5ae8da801b11293a | /accounts/forms.py | f47b51e9149eed83879485476cefed208ceca865 | [] | no_license | Th0rn-dev/kiteupru | de0e93fd791522433e2ab34efac1e86a0cb0f613 | df240ff50f51b390f7e27ca35841c6482642d97d | refs/heads/master | 2023-05-04T13:44:05.561708 | 2021-05-30T19:01:59 | 2021-05-30T19:45:47 | 372,293,086 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 161 | py | from django import forms
from .models import Profile
class ProfileForm(forms.ModelForm):
class Meta:
model = Profile
fields = ('avatar',) | [
"11_ka@rambler.ru"
] | 11_ka@rambler.ru |
21190bb8e62dd782eafae6f70363d5471f54ebd4 | 39b35326534d6efa8a60344ef59eac3d8cea562f | /crudpj/crudpj/wsgi.py | b639603353b77ea9655595ff087206ea6ebb8995 | [] | no_license | Hyo-gyeong/Django_review | 8635e8311111cab56066c6b87429c7f57c5e42c3 | 8b59d717c0c8c4404230c8eaa42e6074cacdd712 | refs/heads/master | 2021-01-03T08:32:06.706689 | 2020-08-31T04:55:59 | 2020-08-31T04:55:59 | 240,000,924 | 0 | 0 | null | 2020-08-17T19:21:30 | 2020-02-12T11:53:19 | Python | UTF-8 | Python | false | false | 405 | py | """
WSGI config for crudpj 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.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('... | [
"cdkrcd8@gmail.com"
] | cdkrcd8@gmail.com |
3d6106b6e7e3d37af803f11255cad2346a387720 | 434a76f2a39b6152e18f25c092e2d3e272bcaa7d | /api/views/blockchains/resources.py | b30b53e5a6ba756d1d935653476963c9e299f4e2 | [
"Apache-2.0"
] | permissive | DaCeige/machinaris | fce98168d0ec288b47c37662079cbb928975badc | 2d3837c8af00bb41162f8be1cbf6eaf1cb6c6fdb | refs/heads/main | 2023-08-24T13:10:22.511119 | 2021-10-07T18:55:25 | 2021-10-07T18:55:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,326 | py | import datetime as dt
from flask.views import MethodView
from api import app
from api.extensions.api import Blueprint, SQLCursorPage
from common.extensions.database import db
from common.models import Blockchain
from .schemas import BlockchainSchema, BlockchainQueryArgsSchema
blp = Blueprint(
'Blockchains',
... | [
"guydavis.ca@gmail.com"
] | guydavis.ca@gmail.com |
eb072ee218d2a1895d7da00df4591fd81018b7c7 | 584db1be8b6bdedaa56d186692ad72da5ee07164 | /patron/tests/unit/virt/xenapi/test_driver.py | f8674f0cec1082ea4a77834f9a8001aa2c43c8e8 | [
"Apache-2.0"
] | permissive | casbin/openstack-patron | 66006f57725cf1c3d735cd5529d3459fd77384c8 | b41b1262f3a52c8cc9f6b6bdf87be5a1abcf6d25 | refs/heads/master | 2023-05-31T05:23:37.721768 | 2015-12-31T12:18:17 | 2015-12-31T12:18:17 | 382,054,546 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,308 | py | # Copyright (c) 2013 Rackspace Hosting
#
# 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... | [
"hsluoyz@qq.com"
] | hsluoyz@qq.com |
0c31c2c12ba0cee2fca07eaa29b494befb80343a | 1626e16760c9c5b5dc9bd7c345871c716d5ffd99 | /Problems/0001_0099/0037_Sudoku_Solver/Project_Python3/Solution1.py | 55219e728189a2d7038f6a589b53cbfbcce69186 | [] | no_license | NobuyukiInoue/LeetCode | 94ddb19e63cb8d0775cdc13f311fe90c87a1d718 | 3f0ffd519404165fd1a735441b212c801fd1ad1e | refs/heads/master | 2023-09-01T07:38:50.939942 | 2023-08-23T09:51:17 | 2023-08-23T09:51:17 | 158,100,912 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,391 | py | class Solution:
# def solveSudoku(self, board: List[List[str]]) -> None:
def solveSudoku(self, board):
"""
Do not return anything, modify board in-place instead.
"""
from collections import defaultdict
nums = [str(i) for i in range(1, 10)]
rows, cols, cells, empty ... | [
"spring555@gmail.com"
] | spring555@gmail.com |
dc1572244f1304493d64d667155fcbbc94bf2c68 | 30f8afce1ba484183d8e1e14aae76cabb2d92354 | /pythonNet/day2/server_udp.py | 1d475122c9fb66755a8bb12c1c143cd7db4d6ed6 | [] | no_license | brooot/Python_Base_Codes | d83e8c3b8a37b86672412c812fdb0d47deb67836 | a864685e160b5df4162a6f9fb910627eda702aaf | refs/heads/master | 2023-04-10T20:08:39.161289 | 2021-03-25T12:59:23 | 2021-03-25T12:59:23 | 200,570,412 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 491 | py | #!/usr/bin/env python3
from socket import *
# 创建套接字对象
sockfd = socket(AF_INET, SOCK_DGRAM)
# 绑定地址
IP = '0.0.0.0'
PORT = 8888
ADDR = (IP, PORT)
sockfd.bind(ADDR)
while True:
# 接受数据(与tcp不同)
data, addr = sockfd.recvfrom(1024)
message = "已收到来自%s的数据:%s" % (addr, data.decode())
print(message)
# 发送数据
... | [
"1442704671@qq.com"
] | 1442704671@qq.com |
1818810ee229cd68db13a66efefecbe5872edcc2 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_35/216.py | d0006fc021592ec292be67dc3cf4606ceec3d5d5 | [] | 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 | 3,591 | py | import string
class GraphNode(object):
def __init__(self, x_pos, y_pos):
self.x_pos = x_pos
self.y_pos = y_pos
self.flows_to = None
self.flows_from = []
self.label = None
def set_flows_to(self, other):
assert self.flows_to != other
self.f... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
661caf7b460c7daa1b1dcd64f2926900fa1374e5 | 2286b880df34e1bfabe79b3605de287040404560 | /02-02/todolist/task/urls.py | 97bdb244e32e547aaa634f5ef9fd3c9aa9311fa6 | [] | no_license | iklimah27/praxis-academy-2 | e5d8b08807980d6fd8ff6ab73caa6ea18083c7f8 | 925853b520c9a8d7a87d8980d7fedfa604d3b4c8 | refs/heads/master | 2022-12-25T01:54:45.572190 | 2020-10-15T07:22:06 | 2020-10-15T07:22:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 238 | py |
from django.contrib import admin
from django.urls import path
from django.shortcuts import render
from . import views
urlpatterns = [
path('', views.index),
path('<id>/', views.detail),
path('<id>/delete/', views.delete),
]
| [
"hatami391998@gmail.com"
] | hatami391998@gmail.com |
1fe2656260edd35919c9745fc47bafc67970c346 | c9c5463996bf9e2adcd4918857382121b0a5aa56 | /leetcode/堆/重构字符串.py | 0147b66b14e19194532f2ddae5788e111bc1a915 | [] | no_license | Da1anna/Data-Structed-and-Algorithm_python | fdf370c355248081990c57c1c8eb5e05c4781e2b | cce067ef4374128924018b00c5ea77d2e869a834 | refs/heads/master | 2022-12-27T13:24:36.084657 | 2020-10-13T02:39:39 | 2020-10-13T02:39:39 | 174,938,027 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,278 | py | '''
给定一个字符串S,检查是否能重新排布其中的字母,使得两相邻的字符不同。
若可行,输出任意可行的结果。若不可行,返回空字符串。
示例 1:
输入: S = "aab"
输出: "aba"
示例 2:
输入: S = "aaab"
输出: ""
注意:
S 只包含小写字母并且长度在[1, 500]区间内。
来源:力扣(LeetCode)
链接:https://leetcode-cn.com/problems/reorganize-string
著作权归领扣网络所有。商业转载请联系官方授权,非商业转载请注明出处。
'''
'''
思路1:双指针交换法,遍历数组,当遇到一个字母与它之前一个不同时,从当前位置开始寻找一个... | [
"1318176575@qq.com"
] | 1318176575@qq.com |
58f225e91c9707ccec4037ee3789c38ff19785e9 | 799a0af9c05deabe5d5250a10e480ec15ae0216e | /Xpath_test/xpath_test_10.py | 3c4e2e550651ef49c998f95a34ee15717ae8ac84 | [
"MIT"
] | permissive | waws520waws/waws_spider | 9b2be28834c08166463fe265e0f5c37a874369c8 | c6a5988121f32619a5c5134c09fdfd556c696fe7 | refs/heads/master | 2021-03-20T06:01:22.041937 | 2020-03-28T02:49:16 | 2020-03-28T02:49:16 | 247,183,308 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 356 | py | from lxml import etree
"""
contains的使用:应用于一个标签的属性有多个值的情况,如果我们还是用之前的相等的模式,是匹配不到值的
"""
text = '''
<li class="li li-first"><a href="link.html">first item</a></li>
'''
html = etree.HTML(text)
result = html.xpath('//li[contains(@class, "li")]/a/text()')
print(result) | [
"16601203140@163.com"
] | 16601203140@163.com |
f7c6dff56a5dbfbd57c51b742a1f32e141403c38 | da2583af7a14f04aed029a79a79224547de4c1f2 | /rl/policy/gp_linear_mean.py | ba4a963f759f350f923730c7a4ecbcfa39d55142 | [] | no_license | yun-long/rl_prototype | 4b0af8b817ad1c8bc30a46d7fa2e8f5cd37f7ea1 | 0a86a097d58ce299da90ea346e074f20fe167a5d | refs/heads/master | 2020-04-23T15:37:49.498870 | 2019-02-18T11:28:21 | 2019-02-18T11:28:21 | 171,271,851 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,545 | py | """
Gaussin policy, linear mean, constant variance
Reference: Jan Peters, A Survey on policy search for robotics
"""
import numpy as np
import time
from rl.policy.base import GaussianPolicy
class GPLinearMean(GaussianPolicy):
def __init__(self, env, featurizer):
#
self.env = env
#
... | [
"yun-long.song@outlook.com"
] | yun-long.song@outlook.com |
2949ad30d2c1f779dd0f7906f17943d31c121fb1 | eac22714038e840028cc5abb72bc750004626ebb | /mct_camera_tools/nodes/image_proc_master.py | 3316d09e4957ac3d0f6500030feeee1cccdedf4f | [
"Apache-2.0"
] | permissive | iorodeo/mct | 79b19f6dab9f6567452df7274d67245bf64b1801 | fa8b85f36533c9b1486ca4f6b0c40c3daa6f4e11 | refs/heads/master | 2022-11-11T18:03:18.178182 | 2014-08-20T19:21:27 | 2014-08-20T19:21:27 | 273,790,182 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,780 | py | #!/usr/bin/env python
from __future__ import print_function
import roslib
roslib.load_manifest('mct_camera_tools')
import rospy
import os
import os.path
import tempfile
import subprocess
from mct_xml_tools import launch
# Services
from mct_msg_and_srv.srv import CommandString
from mct_msg_and_srv.srv import Command... | [
"will@iorodeo.com"
] | will@iorodeo.com |
dd5617275d2a87e52a380d2ccfcdf4777e0566ba | 45e376ae66b78b17788b1d3575b334b2cb1d0b1c | /checkov/common/graph/checks_infra/debug.py | 26b247b24b08837b95bd15668c25aedf4d45d7c6 | [
"Apache-2.0"
] | permissive | bridgecrewio/checkov | aeb8febed2ed90e61d5755f8f9d80b125362644d | e64cbd27ffb6f09c2c9f081b45b7a821a3aa1a4d | refs/heads/main | 2023-08-31T06:57:21.990147 | 2023-08-30T23:01:47 | 2023-08-30T23:01:47 | 224,386,599 | 5,929 | 1,056 | Apache-2.0 | 2023-09-14T20:10:23 | 2019-11-27T08:55:14 | Python | UTF-8 | Python | false | false | 6,589 | py | from __future__ import annotations
import json
import logging
from collections.abc import Iterable
from typing import Any, TYPE_CHECKING
import yaml
from termcolor import colored
from checkov.common.graph.graph_builder import CustomAttributes
from checkov.common.resource_code_logger_filter import add_resource_code_f... | [
"noreply@github.com"
] | bridgecrewio.noreply@github.com |
b9c56ac1d31b2218826dbd63b673f4c3cff2e16a | a2f78983557c1ead7b2a7c3e720d4719099878b9 | /python/ray/experimental/sgd/tf/tf_runner.py | 384136ba79630ef2660e8ee46da3cf60f3455ccf | [
"Apache-2.0",
"MIT"
] | permissive | Senmumu/ray | 3fc914a0a5d9da8fcaa3411bc04be7fba3ce6bbd | 130b8f21da4fb5383b079493faaea5d81065b772 | refs/heads/master | 2020-07-18T12:08:51.862689 | 2019-09-03T22:36:25 | 2019-09-03T22:36:25 | 206,242,928 | 1 | 0 | Apache-2.0 | 2019-09-04T05:59:44 | 2019-09-04T05:59:44 | null | UTF-8 | Python | false | false | 5,250 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import logging
import json
import os
import numpy as np
import ray
import ray.services
from ray.experimental.sgd import utils
logger = logging.getLogger(__name__)
def _try_import_strategy():
"""Late imp... | [
"rliaw@berkeley.edu"
] | rliaw@berkeley.edu |
b1fc4028b00d66db57ef3d4fca7602a0b3de1815 | 8eb0f65096f9a9fe90a88c85dcdcaf12f9a8a512 | /apps/maintenance_mode/middleware.py | cd0e09b3e8aba28e3af198050f46e5958f5de4a4 | [
"MIT"
] | permissive | WhitespaceCrew/django-htk | 57c8cc9ec30b4cd9511b717978758c47144de76f | 6a7b87a3d0a2e4cb51f6b8059708a26fa8e613df | refs/heads/master | 2020-12-31T01:10:14.900413 | 2016-02-03T19:24:27 | 2016-02-03T19:25:02 | 45,211,442 | 0 | 0 | null | 2015-10-29T21:23:54 | 2015-10-29T21:23:54 | null | UTF-8 | Python | false | false | 873 | py | from django.shortcuts import redirect
from django.core.urlresolvers import reverse
from htk.apps.maintenance_mode.utils import is_maintenance_mode
from htk.utils import htk_setting
class MaintenanceModeMiddleware(object):
"""Checks whether HTK_MAINTENANCE_MODE is set
If so, redirects to the HTK_MAINTENANCE_M... | [
"jontsai@jonathantsai.com"
] | jontsai@jonathantsai.com |
b6b7520917496dbd41f7f57d11d8d68f84434ff7 | ee179dd9e9b24046508b11a60612da3758c7e122 | /lib/python2.7/site-packages/nltk/stem/api.py | c6032423e84a9a5b8a1985afcf341e4084970792 | [] | no_license | buhtigexa/Nerit | fcd6cb08a0935e5b80392ae2acf68ba52ee8a899 | d55629f6289c1fa6efe60802a78b79932ff248a2 | refs/heads/master | 2021-01-21T13:11:51.105930 | 2015-05-01T23:56:02 | 2015-05-01T23:56:02 | 34,728,820 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 781 | py | # Natural Language Toolkit: Stemmer Interface
#
# Copyright (C) 2001-2014 NLTK Project
# Author: Trevor Cohn <tacohn@cs.mu.oz.au>
# Edward Loper <edloper@gmail.com>
# Steven Bird <stevenbird1@gmail.com>
# URL: <http://nltk.org/>
# For license information, see LICENSE.TXT
class StemmerI(object):
"""... | [
"mrodriguez@alumnos.exa.unicen.edu.ar"
] | mrodriguez@alumnos.exa.unicen.edu.ar |
37cd36176891ea926eef36e5b677f6b4352ae940 | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-as/huaweicloudsdkas/v1/model/pause_scaling_group_request.py | c88cd3d690fe6f2fc4753b1834d1bd3b10a9f9f9 | [
"Apache-2.0"
] | permissive | huaweicloud/huaweicloud-sdk-python-v3 | cde6d849ce5b1de05ac5ebfd6153f27803837d84 | f69344c1dadb79067746ddf9bfde4bddc18d5ecf | refs/heads/master | 2023-09-01T19:29:43.013318 | 2023-08-31T08:28:59 | 2023-08-31T08:28:59 | 262,207,814 | 103 | 44 | NOASSERTION | 2023-06-22T14:50:48 | 2020-05-08T02:28:43 | Python | UTF-8 | Python | false | false | 4,079 | py | # coding: utf-8
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class PauseScalingGroupRequest:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is att... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
42ee0b0d809863a628c4d9a10375863e7328db4a | fb54704d4a6f9475f42b85d8c470e3425b37dcae | /medium/ex46.py | b8f578eefedb0af0bc3a15588f48718e85d76ec0 | [] | no_license | ziyuan-shen/leetcode_algorithm_python_solution | b2784071a94b04e687fd536b57e8d5a9ec1a4c05 | 920b65db80031fad45d495431eda8d3fb4ef06e5 | refs/heads/master | 2021-06-27T05:19:47.774044 | 2021-02-04T09:47:30 | 2021-02-04T09:47:30 | 210,991,299 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 480 | py | class Solution:
def permute(self, nums: List[int]) -> List[List[int]]:
ans = {(nums[i],): nums[:i] + nums[i+1:] for i in range(len(nums))}
for _ in range(len(nums)-1):
for permute in list(ans):
remaining = ans[permute]
for i in range(len(remaining)):
... | [
"ziyuan.shen@duke.edu"
] | ziyuan.shen@duke.edu |
37434a2d02bf51c411162c56fe9eda123ad980d9 | bede13ba6e7f8c2750815df29bb2217228e91ca5 | /advance_cash_flow_statements/wizard/account_account.py | 8ab4d6059149ffc32c123a592816f6a73772185a | [] | no_license | CybroOdoo/CybroAddons | f44c1c43df1aad348409924603e538aa3abc7319 | 4b1bcb8f17aad44fe9c80a8180eb0128e6bb2c14 | refs/heads/16.0 | 2023-09-01T17:52:04.418982 | 2023-09-01T11:43:47 | 2023-09-01T11:43:47 | 47,947,919 | 209 | 561 | null | 2023-09-14T01:47:59 | 2015-12-14T02:38:57 | HTML | UTF-8 | Python | false | false | 3,562 | py | # -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2019-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>)
#
# You can modify it under... | [
"ajmal@cybrosys.in"
] | ajmal@cybrosys.in |
79180c09bcb81b56e6d9d1043b6380e55871d2a0 | c7e765a9bed33d3bfb21774e3995bf4a09e04add | /adminmgr/media/code/A3/task1/BD_135_703_2371_KhgNwL4.py | 39a4a494197832cb4b20798bc47cbace9f61a4d5 | [
"Apache-2.0"
] | permissive | IamMayankThakur/test-bigdata | 13dd2ac7fb76c9baed6c3a0aa943057a22e2d237 | 7f507918c7bec31c92eedcd94491a83486623049 | refs/heads/master | 2022-05-03T00:59:44.127494 | 2022-02-10T19:50:16 | 2022-02-10T19:50:16 | 201,585,028 | 10 | 4 | Apache-2.0 | 2022-04-22T23:39:45 | 2019-08-10T05:34:09 | Python | UTF-8 | Python | false | false | 1,134 | py | import findspark
findspark.init()
from pyspark import SparkConf,SparkContext
from pyspark.streaming import StreamingContext
from pyspark.sql import Row,SQLContext
import sys
import requests
def func(rdd):
sorted_rdd1 = rdd.sortBy(lambda x: (-x[1],x[0]))
sorted_rdd=sorted_rdd1.filter(lambda y: y[0] !='')
s_list=... | [
"ubuntu@ip-172-31-18-251.ap-south-1.compute.internal"
] | ubuntu@ip-172-31-18-251.ap-south-1.compute.internal |
71ff48d27a98e522cb1183c1508f3fd16ee598fa | 521a5abf021aff0e5bec6e4723efb2d95bc1c528 | /dva/urls.py | f5d1f059a314c2edc9fa63fd0894759abd496b16 | [
"Apache-2.0",
"BSD-3-Clause",
"MIT"
] | permissive | CVML/DeepVideoAnalytics | be3ed41968a140328e25c22f2cb2be431a2b172d | d0969b503ed68dc9ee26279c341e1540bfefd4f6 | refs/heads/master | 2021-07-17T22:19:20.787228 | 2017-10-22T07:55:04 | 2017-10-22T07:55:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,282 | py | """dva URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.10/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-based ... | [
"akshayubhat@gmail.com"
] | akshayubhat@gmail.com |
e9ab407ab62a078acf59f7b0df91d74002198a3b | 76800454958c36c26d828ee989f181990813955f | /tutorial/HungyiLee/rnn/preprocess.py | 327adbf18ae8258660063e2fe4c3dfa221fd5d67 | [] | no_license | JuneXia/proml | 374b27b1d1c2d983aae4fed3141a2864a7196a1b | fbe86564013e7556c30d98c702c1ba6251f21851 | refs/heads/master | 2022-12-27T23:38:16.838639 | 2020-10-11T10:05:32 | 2020-10-11T10:05:32 | 267,207,978 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,405 | py | # preprocess.py
# 這個 block 用來做 data 的預處理
import torch
from torch import nn
from gensim.models import Word2Vec
class Preprocess():
def __init__(self, sentences, sen_len, w2v_path="./w2v.model"):
self.w2v_path = w2v_path
self.sentences = sentences
self.sen_len = sen_len
self.idx2word ... | [
"junxstudio@sina.com"
] | junxstudio@sina.com |
9649970d62f951be36ba3cde0f8017e23aa5c6c1 | 7db6c1865cf9102808824ff06cda747b6e572a21 | /Python/Test/Locust/Test/wsh_loadtest.py | 53219d5e5215e6e3cee8591f2b5756445323a944 | [] | no_license | hyteer/testing | 1f6cabc1d2b67faa4533e6ad7eb5be8c13d542c9 | 1d8b47b3bbb2daf00e4f15b5d18e86111ea4e113 | refs/heads/master | 2020-05-21T16:19:08.243676 | 2017-01-03T01:25:17 | 2017-01-03T01:25:17 | 60,914,071 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,625 | py | from locust import HttpLocust, TaskSet, task
import json
counter = 0
class UserBehavior(TaskSet):
#global counter
def on_start(self):
""" on_start is called when a Locust start before any task is scheduled """
self.login()
def login(self):
res = self.client.post("/login/login-ajax... | [
"hyteer@qq.com"
] | hyteer@qq.com |
17c928e3cafbcf5f45ca353e1f379ba1e9e04da5 | 01c3ff1d74e754e0d4ce0fb7f8a8b329ec3766e1 | /python_exercises/19others/fun4.py | 6f9ac6e1fda53a3f6312dd5622e67ea3388ae8c9 | [] | no_license | vineel2014/Pythonfiles | 5ad0a2b824b5fd18289d21aa8306099aea22c202 | 0d653cb9659fe750cf676a70035ab67176179905 | refs/heads/master | 2020-04-28T03:56:22.713558 | 2019-03-11T08:38:54 | 2019-03-11T08:38:54 | 123,681,939 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 190 | py | def product(numbers):
sum_so_far=1
for number in numbers:
sum_so_far*=number
return sum_so_far
print(product([1,2,3]))
print(product([7,-4,1,6,0]))
print(product([]))
| [
"vineel2006@gmail.com"
] | vineel2006@gmail.com |
d4d95744592b24613ab6bfde2b48befb4f83d4c9 | 2e6309c8f2126a6196adf9288c31162e6a949c1d | /backend/djabgoBlog-master/blog/subscribe/forms.py | 90898d74a085347109f8f89fa6ee3117df4562b4 | [] | no_license | triest/codeExample2 | 7ff87908caed3c4f58ff1609187a5af78ce11663 | 6d8a20fdd710d1560a3dbc2dfb4455fcc4d862b1 | refs/heads/master | 2020-04-02T03:12:21.027401 | 2018-10-21T11:22:14 | 2018-10-21T11:22:14 | 153,951,115 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 460 | py | from django.contrib.auth.decorators import login_required
from django.shortcuts import render
from inspect import getmembers
from pprint import pprint
from django.forms import modelform_factory
from django import forms
from django.contrib.auth.models import User;
from . import models
#from blog.articles.models import S... | [
"you@example.com"
] | you@example.com |
884b687ae12296554a2ae41f29b26bf4382a86c2 | e2230f57dd5bb508b5c0f7bf4df6af8ae7b36f83 | /sympycore/matrices/__init__.py | 95ab7a348b3211d44be60bb7007659916c36a1b0 | [
"Apache-2.0"
] | permissive | wenyifdu/pymaclab | 2fd40192d9dff4fda488f3f9a61e584c1adafd49 | e5100ad4201bdf59c01dd600ac7e8865664075c3 | refs/heads/master | 2021-09-16T11:16:00.680933 | 2018-06-20T07:29:29 | 2018-06-20T07:29:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 193 | py | """ Provides matrix support.
"""
__docformat__ = "restructuredtext"
from .algebra import Matrix, MatrixBase
from .functions import eye, concatenate, jacobian
from .polyhedra import Polyhedron
| [
"emscheffel@gmail.com"
] | emscheffel@gmail.com |
854d50100ce45aef6d69f163a46a0fc3b8619b8c | b65d3777372d25402f11814288d992e6cb29c0a5 | /tools/Ui_couput.py | 986eea054ca7ed3f9226970215929d3410e40c05 | [] | no_license | JoeChen999/tools | 082ee56982650b0fee9e26aea9baa7c762a0ceed | 090215568c41beabd6f1fa6b2d0cf253a29ba913 | refs/heads/master | 2020-05-25T14:58:51.564658 | 2016-09-22T06:31:30 | 2016-09-22T06:31:30 | 68,891,625 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,448 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file '/Users/chenbiao/Documents/workspaces/tools/couput.ui'
#
# Created: Thu Sep 5 15:37:23 2013
# by: PyQt4 UI code generator 4.10.2
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
try:
_fromUt... | [
"chenbiao@elex-tech.com"
] | chenbiao@elex-tech.com |
20c80bd801a815a348f93512423abbf0ad984c81 | 82228ee4e8941d67bb71020a2917706ba6962989 | /tests/utils/test_constants.py | aa54516e4bb5f8c500795b241090fda9839c7b05 | [
"MIT"
] | permissive | haoziyeung/puzzle | 2daccf618347e29980daf4ef7fd25ca431d86ca5 | 9476f05b416d3a5135d25492cb31411fdf831c58 | refs/heads/master | 2021-06-17T13:07:27.916154 | 2017-05-17T13:03:10 | 2017-05-17T13:03:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 327 | py | from puzzle.utils.constants import HGNC_TO_OMIM, SEVERITY_DICT
def test_HGNC_TO_OMIM():
assert HGNC_TO_OMIM['CACNA1F'].get('mim_nr') == 300110
assert HGNC_TO_OMIM['ADK'].get('mim_nr') == 102750
def test_SEVERITY_DICT():
assert SEVERITY_DICT['transcript_ablation'] == 0
assert SEVERITY_DICT['start_lost'... | [
"robin.andeer@gmail.com"
] | robin.andeer@gmail.com |
5267ef629b697a6f0f4684057928eb7df6bedada | 1c4de938e068c8967288ae06e15d1ea148d92ace | /Python_parallel/lu_mpi.py | 8701770bf65cd8e545e449987031ca7b2c78b8e4 | [
"MIT"
] | permissive | 610yilingliu/LU_Decomposition_MPIVersion | 3d5ddd578dc703ea830c35a421aab89d9ae614d2 | 0bd8af0e86b5fcc36970bea7bb045c129fdd2238 | refs/heads/master | 2023-01-07T22:25:57.883027 | 2020-10-16T08:28:27 | 2020-10-16T08:28:27 | 297,609,839 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,484 | py | import mpy4py
import random
def generate(sz, rg, sl):
"""
:type int sz: size of square matrix(sz * sz)
:type int rg, int sl: range and scale of data. For example if the value field will be [-0.2, 0.2], than
rg = 2, sl = 10
:rtype: (matrix List[List[float]], vector List[float]), float in Python equa... | [
"yilingliu1994@gmail.com"
] | yilingliu1994@gmail.com |
55d046dd1d43409f967db43d069619a1b9a92d5f | d8b5aba2a1f53fbf3fcfc388c26e547afa76b13f | /modules/app_email/lib/delphi.py | d6e8461d29ca1decad1b18441f6a42b08596eed7 | [
"Apache-2.0"
] | permissive | dfrc-korea/carpe | e88b4e3bcb536355e2a64d00e807bccd631f8c93 | f9299b8ad0cb2a6bbbd5e65f01d2ba06406c70ac | refs/heads/master | 2023-04-28T01:12:49.138443 | 2023-04-18T07:37:39 | 2023-04-18T07:37:39 | 169,518,336 | 75 | 38 | Apache-2.0 | 2023-02-08T00:42:41 | 2019-02-07T04:21:23 | Python | UTF-8 | Python | false | false | 1,235 | py | #
# delphi.py, 200611
#
import os
import errno
def CreateDir(dir):
try:
if not os.path.isdir(dir):
os.makedirs(os.path.join(dir))
return True
except OSError as e:
if e.errno != errno.EEXIST: raise
return False
def DirectoryExists(dir):
return os.path.isdir(dir)
... | [
"jbc0729@gmail.com"
] | jbc0729@gmail.com |
8ba102ebdd7f92dc9a0e9dc574bebbf7da51e6a9 | 058ed13ab33e8af7f5c7f6cfb985edcc1f0075b8 | /.history/application/controllers/sinhvien_20201006230934.py | c35efabcab728dece922a76da4e6ab65c34212a1 | [] | no_license | thinhpayer123/learning-python-vinacomi | e89a0b5302fbc42d1998aea82bba8ebea594eee6 | f4d11998911360e25f68c2c6c0336d32a8c25c65 | refs/heads/master | 2023-03-27T08:57:48.600710 | 2020-12-13T15:43:53 | 2020-12-13T15:43:53 | 353,254,388 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,765 | py | from application.extensions import apimanager
from application.models.model import QRUser, User, UserWallet
from application.extensions import auth
from application.database import db
from gatco.exceptions import ServerError
from sqlalchemy import create_engine
import os
import random
import string
import aiofiles
im... | [
"cuongnd@upstart.vn"
] | cuongnd@upstart.vn |
987f92a7554c420a41bb61e75372a9b7d318c61d | a7ed4da896faab105ff08259a82ae822548d1c2c | /6/6_1.py | 7ed377a9d8fe394412cc185b039795c97bc0a055 | [] | no_license | nemesmarci/Advent-of-Code-2019 | e8e59d89be8ed43ce046fd7854b1c9b779a8930e | 251dc4dc62777a7c0daf7a74d832c0be3d75140e | refs/heads/master | 2021-12-31T10:53:35.924253 | 2019-12-27T17:17:06 | 2021-12-29T19:17:13 | 225,252,265 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 257 | py | from space import read_data
objects = read_data()
root = objects['COM']
def traverse(current, level=1):
n = len(current.orbiters) * level
for child in current.orbiters:
n += traverse(child, level + 1)
return n
print(traverse(root))
| [
"nemes@sch.bme.hu"
] | nemes@sch.bme.hu |
0ad05c0dfd6e48742b121e8c44fddf8a92224af1 | dd770e697daddab20e09fbf8ce199c97ee540c37 | /bigtop-packages/src/charm/spark/layer-spark/tests/10-test-ha.py | 99c604f9ffd781c069a3d253e4eb43d243ba046e | [
"Apache-2.0",
"FreeBSD-DOC",
"MIT",
"DOC"
] | permissive | PKConsul/bigtop | 0e7b5133be17a2093c0d5279b000c60b67072a16 | 2f8311b184bf0c5d25756b098895e43b1dbc3c2e | refs/heads/master | 2021-01-20T02:08:29.012667 | 2017-04-22T17:44:30 | 2017-04-23T06:27:13 | 89,379,381 | 1 | 0 | null | 2017-04-25T15:53:29 | 2017-04-25T15:53:29 | null | UTF-8 | Python | false | false | 3,718 | py | #!/usr/bin/python3
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License... | [
"kevin.monroe@canonical.com"
] | kevin.monroe@canonical.com |
fc3ef945c17fc0a2cc07ebc2bd0847622a35d8e1 | 778a420262c8d1547cbcbbe3143cd73a94d9cff6 | /test/test_common.py | bea1a3d8c600fa0d2718f9889976a7f6782f3467 | [
"Apache-2.0"
] | permissive | ddierkes/bdbag | a59ef7c4a7207dd9a90374a021c682b0b4642c54 | bc35ddcb544f7fa923d4649835ad99a15a778bce | refs/heads/master | 2020-03-17T22:06:22.942490 | 2018-05-03T11:05:57 | 2018-05-03T11:05:57 | 133,989,136 | 0 | 0 | null | 2018-05-18T18:14:03 | 2018-05-18T18:14:03 | null | UTF-8 | Python | false | false | 4,281 | py | import os
import gc
import sys
import shutil
import tempfile
import unittest
class BaseTest(unittest.TestCase):
def setUp(self):
if sys.version_info < (3,):
self.assertRaisesRegex = self.assertRaisesRegexp
self.tmpdir = tempfile.mkdtemp(prefix="bdbag_test_")
shutil.copytree(... | [
"mikedarcy@users.noreply.github.com"
] | mikedarcy@users.noreply.github.com |
e209a95d690abfd4189adb9be07986331f77a9b4 | f889bc01147869459c0a516382e7b95221295a7b | /test/test_customer_data_customer_search_results_interface.py | edf62d3b5d9ee180f4386a1c633555c9f563ed2b | [] | no_license | wildatheart/magento2-api-client | 249a86f5c0289743f8df5b0324ccabd76f326512 | e6a707f85b37c6c3e4ef3ff78507a7deb8f71427 | refs/heads/master | 2021-07-14T16:01:17.644472 | 2017-10-18T13:33:08 | 2017-10-18T13:33:08 | 107,412,121 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,167 | py | # coding: utf-8
"""
Magento Community
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: 2.2
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import os
import sy... | [
"sander@wildatheart.eu"
] | sander@wildatheart.eu |
26a913ad3667d31c973daeb7828df81b0f4ab511 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_199/134.py | 085bae10457bf1468888eded9f5f112884ecf5f6 | [] | 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 | 398 | py | import numpy as np
def mainFunc(S, K):
ret = 0
for i in range(len(S)-K+1):
if S[i]=="-":
ret+=1
for j in range(K):
if S[i+j]=='-': S[i+j]='+'
else: S[i+j]='-'
for i in range(K):
if S[len(S)-1-i]=='-': return "IMPOSSIBLE"
return str(ret)
T = int(raw_input())
for t in range(T):
P = raw_input().... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
2dbd39a7be367e0af9174da5b1b0cbfe9ed4b588 | 8d30f2d627eb15bf0a3ff541812af3a289fffcfc | /backend/yfkyfkfu_1352/settings.py | bed71fd8664c0a8b11e6d92e1c95522d7680c020 | [] | no_license | crowdbotics-apps/yfkyfkfu-1352 | 2eda6d948adf2fd9fcace7997d606ff057168e03 | fd53b7f60397737ad99e7cae6e81c1b91c4ae22c | refs/heads/master | 2022-12-15T03:23:19.526405 | 2019-03-13T18:48:22 | 2019-03-13T18:48:22 | 175,480,158 | 0 | 0 | null | 2022-12-06T15:10:19 | 2019-03-13T18:48:19 | JavaScript | UTF-8 | Python | false | false | 4,746 | py | """
Django settings for yfkyfkfu_1352 project.
Generated by 'django-admin startproject' using Django 1.11.16.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
im... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
f3234921e0a1cd9eaf4c40340a44f85a9b4c646b | 74c8f10bfc82e762d83db424e5d4f4b3681ffba0 | /venv/Lib/site-packages/winrt/windows/security/cryptography/certificates/__init__.py | df6f418b8fd0c94949f27c7b4d23e5ac4cb7a211 | [] | no_license | meghnaraswan/HEARTLabHapticSleeveProject | 1e7bd0710c26dad6588f73f6b1f0741c8e31334d | 6c2c9a227aaacf34b2205bcb1a856cc70ceccd55 | refs/heads/main | 2023-07-04T01:51:01.462007 | 2021-08-17T13:34:43 | 2021-08-17T13:34:43 | 390,823,593 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,949 | py | # WARNING: Please don't edit this file. It was generated by Python/WinRT v0.9.210202.1
import typing, winrt
import enum
_ns_module = winrt._import_ns_module("Windows.Security.Cryptography.Certificates")
try:
import winrt.windows.foundation
except:
pass
try:
import winrt.windows.foundation.collections
ex... | [
"raswan@chapman.edu"
] | raswan@chapman.edu |
f7ad37c473eb788222d0d0e5934e021dc5afeffc | 238e46a903cf7fac4f83fa8681094bf3c417d22d | /VTK/vtk_7.1.1_x64_Release/lib/python2.7/site-packages/twisted/lore/_version.py | c81adaac2b5e3ff5d0fc8545fdf68c50dfda705d | [
"LicenseRef-scancode-unknown-license-reference",
"MIT",
"BSD-3-Clause"
] | permissive | baojunli/FastCAE | da1277f90e584084d461590a3699b941d8c4030b | a3f99f6402da564df87fcef30674ce5f44379962 | refs/heads/master | 2023-02-25T20:25:31.815729 | 2021-02-01T03:17:33 | 2021-02-01T03:17:33 | 268,390,180 | 1 | 0 | BSD-3-Clause | 2020-06-01T00:39:31 | 2020-06-01T00:39:31 | null | UTF-8 | Python | false | false | 271 | py | # Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.
# This is an auto-generated file. Do not edit it.
"""
Provides Twisted version information.
"""
from twisted.python import versions
version = versions.Version('twisted.lore', 14, 0, 0)
| [
"l”ibaojunqd@foxmail.com“"
] | l”ibaojunqd@foxmail.com“ |
cd4d183ad4e4c95ed4724893de2871e7b5527640 | f26ea24cebb60b8b6176ee4d3ecbec477be9b7c6 | /native_tags/contrib/mapreduce.py | 50346ee6e3655e78113e5d8117322daf7447de1a | [
"BSD-3-Clause"
] | permissive | lukaszb/django-native-tags | 994fcc0e382ebfd8dfed868a4caeeb33aa78aee5 | e1987497b652b1939d152cbc6bc281daf727b34c | refs/heads/master | 2021-01-09T06:13:18.485447 | 2010-05-04T20:08:15 | 2010-05-04T20:09:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,172 | py | from native_tags.decorators import function
def get_func(func_name, op=True):
import operator
from native_tags.registry import register
try:
return register['function'][func_name]
except KeyError:
pass
if func_name in __builtins__:
return __builtins__[func_name]
elif has... | [
"justquick@gmail.com"
] | justquick@gmail.com |
808cf496a8bf650c2d81d9c2043e69ea1f1164d0 | 974d04d2ea27b1bba1c01015a98112d2afb78fe5 | /test/legacy_test/test_dataset_cifar.py | 1fca233d3be786b2a42f7dea6aed8dae58d6c25b | [
"Apache-2.0"
] | permissive | PaddlePaddle/Paddle | b3d2583119082c8e4b74331dacc4d39ed4d7cff0 | 22a11a60e0e3d10a3cf610077a3d9942a6f964cb | refs/heads/develop | 2023-08-17T21:27:30.568889 | 2023-08-17T12:38:22 | 2023-08-17T12:38:22 | 65,711,522 | 20,414 | 5,891 | Apache-2.0 | 2023-09-14T19:20:51 | 2016-08-15T06:59:08 | C++ | UTF-8 | Python | false | false | 4,284 | py | # Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.
#
# 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 appli... | [
"noreply@github.com"
] | PaddlePaddle.noreply@github.com |
a108c73292745efbb8c63a7021a928c423ba5f28 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_136/3242.py | f20b77deb7902b6a054756552bf203772edf07d0 | [] | 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,299 | py | #!/usr/bin/python
def solve_n(case, C, F, X):
t = 0.0 # Time stamp
cc = 0.0 # Number of cookies
cookie_rate = 2.0
solved = False
while not solved:
time_to_next_event = C / cookie_rate
## Will I solve in this round
time_to_solve = t + (X - cc) / cookie_rate
if cc + co... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
b270e0997d1a0890099ab916b7ac8762bc7f9c20 | 3fa27b3ad1c1ca90f2bcf311d89fe8c2ca241cb4 | /Stores/migrations/0002_auto_20201004_2348.py | 9df9d2685983fb78f3531d6d90e5557aaf8fa728 | [] | no_license | emperorDuke/django-backend-for-ecommerce | 717e15d7be899abcd5a4b7a7d2203c612f001aeb | 83c1ca4d016d876a5c8711ac5cdc448d5a4a533d | refs/heads/master | 2023-02-10T08:57:17.852721 | 2021-01-02T15:49:07 | 2021-01-02T15:49:07 | 271,039,012 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,066 | py | # Generated by Django 2.2.7 on 2020-10-04 22:48
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('Users', '0001_initial'),
('Stores', '0001_initial'),
mi... | [
"effiomduke@gmail.com"
] | effiomduke@gmail.com |
9b71bfc82bf69157a0a2f7f8ecb174d1811970bd | f5d4863b6a62ef19ffc98e4f94f6ade1bc8810d3 | /Hash Table/274_H-Index.py | 76ba54016e28d234d66981f9499e284a2c30bef6 | [] | no_license | xiaomojie/LeetCode | 138808eb83938f9bd3c2e8a755d908509dff0fd3 | eedf73b5f167025a97f0905d3718b6eab2ee3e09 | refs/heads/master | 2021-06-12T09:26:01.257348 | 2019-10-23T10:41:06 | 2019-10-23T10:41:06 | 76,184,467 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,410 | py | """
Given an array of citations (each citation is a non-negative integer) of a researcher, write a function to compute the researcher's h-index.
According to the definition of h-index on Wikipedia: "A scientist has index h if h of his/her N papers have at least h citations each, and the other N − h papers have no more... | [
"519399762@qq.com"
] | 519399762@qq.com |
8ae50cd6b83ea1fc1e05b6127155a800c38eb5e1 | a3f1e80179c23d9202d72b75dd37a49b44785f45 | /api/client/swagger_client/models/api_model_script.py | a86fc78a1cbbdf8bc28909ede0b049bcda2e34cf | [
"Apache-2.0"
] | permissive | pvaneck/mlx | b1e82fae5ac8aaa1dddac23aaa38c46f6e6cfc27 | 6edaa0bd77787c56b737322a0c875ae30de6cd49 | refs/heads/main | 2023-05-14T06:08:38.404133 | 2021-05-04T01:41:11 | 2021-05-04T01:41:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,189 | py | # Copyright 2021 IBM Corporation
#
# 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 agreed to in writi... | [
"82406273+mlx-bot@users.noreply.github.com"
] | 82406273+mlx-bot@users.noreply.github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.