hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
d98d62c09e7085ca98fceecdd882e9c44ffbf35e
2,340
py
Python
tests/test_model.py
datopian/babbage
3cffb4415b8b29503ab2939917e2aadc9474bb2b
[ "MIT" ]
27
2015-12-05T10:51:46.000Z
2021-09-06T23:46:10.000Z
tests/test_model.py
dfrankow/babbage
9e03efe62e0be0cceabafd4de2a09cb8ec794b92
[ "MIT" ]
29
2015-12-04T09:54:22.000Z
2021-11-22T12:26:08.000Z
tests/test_model.py
dfrankow/babbage
9e03efe62e0be0cceabafd4de2a09cb8ec794b92
[ "MIT" ]
12
2016-04-04T11:32:07.000Z
2021-11-23T16:29:11.000Z
import pytest class TestModel(object): def test_model_concepts(self, simple_model): concepts = list(simple_model.concepts) assert len(concepts) == 11, len(concepts) def test_model_match(self, simple_model): concepts = list(simple_model.match('foo')) assert len(concepts) == 1, ...
37.741935
65
0.654274
a8ac6d5947fac6dfab8f59519afd1af30dc05fb3
627
py
Python
lecture8/tests/question-8_2.py
ggorman/Introduction-Python-programming-2018
739b864c1499ccdbf9010d8fe774087a07bb09ee
[ "CC-BY-3.0" ]
1
2019-01-12T12:43:24.000Z
2019-01-12T12:43:24.000Z
lecture8/tests/question-8_2.py
ggorman/Introduction-Python-programming-2018
739b864c1499ccdbf9010d8fe774087a07bb09ee
[ "CC-BY-3.0" ]
null
null
null
lecture8/tests/question-8_2.py
ggorman/Introduction-Python-programming-2018
739b864c1499ccdbf9010d8fe774087a07bb09ee
[ "CC-BY-3.0" ]
3
2019-05-16T21:08:48.000Z
2022-02-21T06:54:57.000Z
test = { 'name': 'question 8.2', 'points': 1, 'suites': [ { 'cases': [ { 'code': r""" >>> s1.i==64 True """, 'hidden': False, 'locked': False }, { 'code': r""" >>> s2.i=='HelloHelloHelloHello' ...
16.076923
42
0.354067
f96176f12553a6387a351f352ffc49d63f6514b4
1,805
py
Python
iexdownload/downloader.py
shawnlinxl/iexdownload
9d4934e4342005b3d07b69a21acba26f8bf5502d
[ "MIT" ]
null
null
null
iexdownload/downloader.py
shawnlinxl/iexdownload
9d4934e4342005b3d07b69a21acba26f8bf5502d
[ "MIT" ]
null
null
null
iexdownload/downloader.py
shawnlinxl/iexdownload
9d4934e4342005b3d07b69a21acba26f8bf5502d
[ "MIT" ]
null
null
null
import pandas as pd from typing import List from iexcloud import Stock class Downloader(object): def __init__(self): self.symbol = set() self.stock = dict() self.writer = list() def add_writer(self, writer): self.writer.append(writer) def add_symbol(self, symbol: List[s...
27.769231
70
0.559557
8da7f46bff0e0df728132ec0ae017fcb6417a14f
271
py
Python
exercicios/exercicio014.py
callebbs/curosemvideo-python
63c2aac1f671973e92b753ec487e82c8871a3ded
[ "MIT" ]
null
null
null
exercicios/exercicio014.py
callebbs/curosemvideo-python
63c2aac1f671973e92b753ec487e82c8871a3ded
[ "MIT" ]
null
null
null
exercicios/exercicio014.py
callebbs/curosemvideo-python
63c2aac1f671973e92b753ec487e82c8871a3ded
[ "MIT" ]
null
null
null
''' Escreva um programa que converta uma temperatura digitando em graus Celsius e converta para graus Fahrenheit. ''' temp = float(input('Qual é a temperatura atual? ')) print('A temperatura de {}°C convertida para Farenheit é de: {}°F'.format(temp, (temp * 9/5) + 32))
38.714286
109
0.715867
611cc4ac7c2419481febb54b71ff94bfc1b3b5b5
22,300
py
Python
tensor2tensor/mesh_tensorflow/mtf_layers.py
Zhangyantsing/tensor2tensor
b6abf28a1a903c91eb75d7a102945a780899d6e9
[ "Apache-2.0" ]
1
2018-12-12T18:50:28.000Z
2018-12-12T18:50:28.000Z
tensor2tensor/mesh_tensorflow/mtf_layers.py
Zhangyantsing/tensor2tensor
b6abf28a1a903c91eb75d7a102945a780899d6e9
[ "Apache-2.0" ]
null
null
null
tensor2tensor/mesh_tensorflow/mtf_layers.py
Zhangyantsing/tensor2tensor
b6abf28a1a903c91eb75d7a102945a780899d6e9
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2018 The Tensor2Tensor Authors. # # 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...
37.732657
80
0.665202
dc55c03f4a5e5a4732334eb58e2e7e4f3c83f97e
5,710
py
Python
tsx/counterfactuals/moc.py
MatthiasJakobs/tsx
8a686ffd0af2f9f826d9ce11349e0fa0e883e897
[ "MIT" ]
null
null
null
tsx/counterfactuals/moc.py
MatthiasJakobs/tsx
8a686ffd0af2f9f826d9ce11349e0fa0e883e897
[ "MIT" ]
null
null
null
tsx/counterfactuals/moc.py
MatthiasJakobs/tsx
8a686ffd0af2f9f826d9ce11349e0fa0e883e897
[ "MIT" ]
null
null
null
import numpy as np from itertools import permutations from random import shuffle from tsx.utils import NSGA2 from tsx.distances import euclidian, dtw from tsx.utils import to_numpy, sigmoid from sklearn.neighbors import KNeighborsClassifier # Implements the approach by Dandl et al. (2020), but for time series data #...
36.139241
107
0.624694
940158cb8fdc541a98688ee3d82414e3fb22ab30
840
py
Python
boopy-master/booloader.py
Zerolang-in/Zero
0e147c93eda85b9cfbed42239d7fccc3566b7e31
[ "MIT" ]
null
null
null
boopy-master/booloader.py
Zerolang-in/Zero
0e147c93eda85b9cfbed42239d7fccc3566b7e31
[ "MIT" ]
null
null
null
boopy-master/booloader.py
Zerolang-in/Zero
0e147c93eda85b9cfbed42239d7fccc3566b7e31
[ "MIT" ]
null
null
null
import logging from boolexer import BooLexer from booparser import BooParser from booeval import BooEval class BooLoader: def __init__(self, filename): prog = Program(open(filename, "r")) prog.Run() class Program: def __init__(self, fh): self.code = fh self.tokens = [] ...
22.105263
43
0.569048
ae6242bc2b2fda1a3e3478eb145234b84165bc44
3,103
py
Python
huaweicloud-sdk-dds/huaweicloudsdkdds/v3/model/restore_instance_response.py
huaweicloud/huaweicloud-sdk-python-v3
7a6270390fcbf192b3882bf763e7016e6026ef78
[ "Apache-2.0" ]
64
2020-06-12T07:05:07.000Z
2022-03-30T03:32:50.000Z
huaweicloud-sdk-dds/huaweicloudsdkdds/v3/model/restore_instance_response.py
huaweicloud/huaweicloud-sdk-python-v3
7a6270390fcbf192b3882bf763e7016e6026ef78
[ "Apache-2.0" ]
11
2020-07-06T07:56:54.000Z
2022-01-11T11:14:40.000Z
huaweicloud-sdk-dds/huaweicloudsdkdds/v3/model/restore_instance_response.py
huaweicloud/huaweicloud-sdk-python-v3
7a6270390fcbf192b3882bf763e7016e6026ef78
[ "Apache-2.0" ]
24
2020-06-08T11:42:13.000Z
2022-03-04T06:44:08.000Z
# coding: utf-8 import re import six from huaweicloudsdkcore.sdk_response import SdkResponse from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization class RestoreInstanceResponse(SdkResponse): """ Attributes: openapi_types (dict): The key is attribute name ...
26.982609
79
0.557203
3fba5e51eaa2f57eda17accc59bef585f894e54a
790
py
Python
aiohttp__asyncio__examples/aiohttp_client.py
gil9red/SimplePyScripts
c191ce08fbdeb29377639184579e392057945154
[ "CC-BY-4.0" ]
117
2015-12-18T07:18:27.000Z
2022-03-28T00:25:54.000Z
aiohttp__asyncio__examples/aiohttp_client.py
gil9red/SimplePyScripts
c191ce08fbdeb29377639184579e392057945154
[ "CC-BY-4.0" ]
8
2018-10-03T09:38:46.000Z
2021-12-13T19:51:09.000Z
aiohttp__asyncio__examples/aiohttp_client.py
gil9red/SimplePyScripts
c191ce08fbdeb29377639184579e392057945154
[ "CC-BY-4.0" ]
28
2016-08-02T17:43:47.000Z
2022-03-21T08:31:12.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- __author__ = 'ipetrash' import asyncio # pip install aiohttp import aiohttp async def main(): url = 'https://python.org' async with aiohttp.ClientSession() as session: async with session.get(url) as rs: print("Status:", rs.status) ...
21.351351
62
0.578481
e38f556c06ad6207dfc3c7ca1c861370b8d7593a
481
py
Python
examples/video_stream_try.py
b07901064/drone_0
7cd6be039bc03a9d6286e6dfbcf13dbbb020b697
[ "MIT" ]
null
null
null
examples/video_stream_try.py
b07901064/drone_0
7cd6be039bc03a9d6286e6dfbcf13dbbb020b697
[ "MIT" ]
null
null
null
examples/video_stream_try.py
b07901064/drone_0
7cd6be039bc03a9d6286e6dfbcf13dbbb020b697
[ "MIT" ]
null
null
null
from djitellopy import Tello from cv2 import cv2 import time tello =Tello() tello.connect() #tello.takeoff() tello.streamon() count = 0 vidcap = cv2.VideoCapture(tello.get_udp_video_address()) success,image = vidcap.read() success = True while success: vidcap.set(cv2.CAP_PROP_POS_MSEC,(count*1000)) success,im...
25.315789
77
0.713098
9fbc0a7dc9fec3ea79b8a74e3472b43ecea0a8bb
2,065
py
Python
examples/hacker_news/hacker_news_tests/test_resources/test_snowflake_io_manager.py
JBrVJxsc/dagster
680aa23387308335eb0eccfa9241b26d10a2d627
[ "Apache-2.0" ]
1
2021-07-03T09:05:58.000Z
2021-07-03T09:05:58.000Z
examples/hacker_news/hacker_news_tests/test_resources/test_snowflake_io_manager.py
JBrVJxsc/dagster
680aa23387308335eb0eccfa9241b26d10a2d627
[ "Apache-2.0" ]
null
null
null
examples/hacker_news/hacker_news_tests/test_resources/test_snowflake_io_manager.py
JBrVJxsc/dagster
680aa23387308335eb0eccfa9241b26d10a2d627
[ "Apache-2.0" ]
null
null
null
import os import uuid from contextlib import contextmanager from dagster import InputContext, OutputContext from hacker_news.resources.snowflake_io_manager import ( # pylint: disable=E0401 SnowflakeIOManager, connect_snowflake, ) from pandas import DataFrame def generate_snowflake_config(): return { ...
33.852459
96
0.680872
9b47497a72abfaf155d443dc0afd15c9a8b621fa
2,147
py
Python
data/process_data.py
asxd-10/Disaster-Response-Pipeline
2277e5bb90fa96425a6d7f221572fc8ea537c455
[ "MIT" ]
null
null
null
data/process_data.py
asxd-10/Disaster-Response-Pipeline
2277e5bb90fa96425a6d7f221572fc8ea537c455
[ "MIT" ]
null
null
null
data/process_data.py
asxd-10/Disaster-Response-Pipeline
2277e5bb90fa96425a6d7f221572fc8ea537c455
[ "MIT" ]
null
null
null
import sys import pandas as pd # ETL pipeline #Program to load and clean data before moving it to ML pipeline def load_data(messages_filepath, categories_filepath): messages = pd.read_csv(messages_filepath) messages.head() categories = pd.read_csv(categories_filepath) categories.head() df = pd.me...
33.030769
86
0.654401
6af549228b5620f0218a2e05133e232404a969c5
2,753
py
Python
python/test/clienttest.py
cjh1/molequeue
37dffbfe9cdbd2d18fd2c2c9eab6690006f18074
[ "BSD-3-Clause" ]
null
null
null
python/test/clienttest.py
cjh1/molequeue
37dffbfe9cdbd2d18fd2c2c9eab6690006f18074
[ "BSD-3-Clause" ]
null
null
null
python/test/clienttest.py
cjh1/molequeue
37dffbfe9cdbd2d18fd2c2c9eab6690006f18074
[ "BSD-3-Clause" ]
null
null
null
import unittest from functools import partial import time import molequeue class TestClient(unittest.TestCase): def test_submit_job_request(self): client = molequeue.Client() client.connect_to_server('MoleQueue') job_request = molequeue.JobRequest() job_request.queue = 'salix' job_request.prog...
29.602151
78
0.739557
79db706529e5b2d5665272cc3c4b8d9e2be7e5c6
522
py
Python
service/AudioFile.py
rv8flyboy/pyrobotlab
4e04fb751614a5cb6044ea15dcfcf885db8be65a
[ "Apache-2.0" ]
63
2015-02-03T18:49:43.000Z
2022-03-29T03:52:24.000Z
service/AudioFile.py
hirwaHenryChristian/pyrobotlab
2debb381fc2db4be1e7ea6e5252a50ae0de6f4a9
[ "Apache-2.0" ]
16
2016-01-26T19:13:29.000Z
2018-11-25T21:20:51.000Z
service/AudioFile.py
hirwaHenryChristian/pyrobotlab
2debb381fc2db4be1e7ea6e5252a50ae0de6f4a9
[ "Apache-2.0" ]
151
2015-01-03T18:55:54.000Z
2022-03-04T07:04:23.000Z
######################################### # AudioFile.py # more info @: http://myrobotlab.org/service/AudioFile ######################################### # start the services audiocapture = Runtime.start("audiocapture","AudioCapture") audiofile = Runtime.start("audiofile", "AudioFile") # it starts capturing audio au...
27.473684
59
0.637931
ce8331ad4ad79eb03f9e67aec3c3ebb64cbc8769
574
py
Python
Lesson13_UsingDictionaries/2-GetInvalidKey.py
StyvenSoft/degree-python
644953608948f341f5a20ceb9a02976a128b472b
[ "MIT" ]
null
null
null
Lesson13_UsingDictionaries/2-GetInvalidKey.py
StyvenSoft/degree-python
644953608948f341f5a20ceb9a02976a128b472b
[ "MIT" ]
null
null
null
Lesson13_UsingDictionaries/2-GetInvalidKey.py
StyvenSoft/degree-python
644953608948f341f5a20ceb9a02976a128b472b
[ "MIT" ]
null
null
null
building_heights = {"Burj Khalifa": 828, "Shanghai Tower": 632, "Abraj Al Bait": 601, "Ping An": 599, "Lotte World Tower": 554.5, "One World Trade": 541.3} key_to_check = "Shanghai Tower" if key_to_check in building_heights: print(building_heights["Shanghai Tower"]) # 632 zodiac_elements = {"water": ["Cancer", "...
31.888889
183
0.6777
08ef7eb5109dfcb6a6344f54cbb0b7f7b90abfdb
1,915
py
Python
Tutorials/python/dash-web-app/resources/home/dnanexus/my_app.py
dnanexus/dnanexus-example-applets
04a6abebfef3039416cede58f39a8c3542468d3b
[ "Apache-2.0" ]
15
2015-02-24T06:11:31.000Z
2021-09-23T15:35:48.000Z
Tutorials/python/dash-web-app/resources/home/dnanexus/my_app.py
dnanexus/dnanexus-example-applets
04a6abebfef3039416cede58f39a8c3542468d3b
[ "Apache-2.0" ]
10
2017-11-10T21:55:44.000Z
2022-02-14T19:58:34.000Z
Tutorials/python/dash-web-app/resources/home/dnanexus/my_app.py
dnanexus/dnanexus-example-applets
04a6abebfef3039416cede58f39a8c3542468d3b
[ "Apache-2.0" ]
11
2015-09-28T00:33:17.000Z
2020-10-22T14:42:37.000Z
# -*- coding: utf-8 -*- import dash import dash_core_components as dcc import dash_html_components as html import pandas as pd import plotly.graph_objs as go def create_app(): app = dash.Dash(__name__) df = pd.read_csv('gdp-life-exp-2007.csv') app.layout = html.Div(children=[ html.H1(children='Das...
36.132075
187
0.48094
b7b6e802dfae9d92ddfe1ead8915dcc75e051589
2,406
py
Python
mopidy_headless/input.py
avanc/mopidy-headless
339af3d3697556be342bbd18d48d7c6102638af9
[ "Apache-2.0" ]
6
2020-08-25T06:37:06.000Z
2021-11-14T17:25:17.000Z
mopidy_headless/input.py
avanc/mopidy-headless
339af3d3697556be342bbd18d48d7c6102638af9
[ "Apache-2.0" ]
null
null
null
mopidy_headless/input.py
avanc/mopidy-headless
339af3d3697556be342bbd18d48d7c6102638af9
[ "Apache-2.0" ]
1
2020-12-21T20:24:05.000Z
2020-12-21T20:24:05.000Z
from __future__ import unicode_literals import logging import threading from evdev import ecodes, InputDevice, list_devices, categorize from select import select logger = logging.getLogger(__name__) class InputThread(threading.Thread): def __init__(self): super(InputThread, self).__init__() self.name="I...
27.976744
144
0.686201
5291c1522565aa82514608dba1886b28edb834a8
1,164
py
Python
boto3_exceptions/cloudformation.py
siteshen/boto3_exceptions
d6174c2577c9d4b17a09a89cd0e4bd1fe555b26b
[ "MIT" ]
2
2021-06-22T00:00:35.000Z
2021-07-15T03:25:52.000Z
boto3_exceptions/cloudformation.py
siteshen/boto3_exceptions
d6174c2577c9d4b17a09a89cd0e4bd1fe555b26b
[ "MIT" ]
null
null
null
boto3_exceptions/cloudformation.py
siteshen/boto3_exceptions
d6174c2577c9d4b17a09a89cd0e4bd1fe555b26b
[ "MIT" ]
null
null
null
import boto3 exceptions = boto3.client('cloudformation').exceptions AlreadyExistsException = exceptions.AlreadyExistsException ChangeSetNotFoundException = exceptions.ChangeSetNotFoundException CreatedButModifiedException = exceptions.CreatedButModifiedException InsufficientCapabilitiesException = exceptions.Insuffic...
55.428571
80
0.919244
8a53ef5b3e2272e0c5961944b446d846491bf8db
13,780
py
Python
cirq-core/cirq/sim/clifford/stabilizer_state_ch_form.py
thomascherickal/Cirq
43b37fa56311f19ca9848f4dc4e162bc8a1bbc83
[ "Apache-2.0" ]
null
null
null
cirq-core/cirq/sim/clifford/stabilizer_state_ch_form.py
thomascherickal/Cirq
43b37fa56311f19ca9848f4dc4e162bc8a1bbc83
[ "Apache-2.0" ]
null
null
null
cirq-core/cirq/sim/clifford/stabilizer_state_ch_form.py
thomascherickal/Cirq
43b37fa56311f19ca9848f4dc4e162bc8a1bbc83
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 The Cirq Developers # # 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 ...
35.242967
99
0.531495
80f2ad8b8013070800780b853580c29efacfc7f3
91,346
py
Python
test_init_final.py
wotjr1466/Test
a917055bab94180c511c575e9003e3c6b1c8b7dd
[ "Apache-2.0" ]
null
null
null
test_init_final.py
wotjr1466/Test
a917055bab94180c511c575e9003e3c6b1c8b7dd
[ "Apache-2.0" ]
null
null
null
test_init_final.py
wotjr1466/Test
a917055bab94180c511c575e9003e3c6b1c8b7dd
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ################ Server V15.1 ##################### import os import sys import asyncio import discord import datetime import random import math import logging from discord.ext import commands from gtts import gTTS from github import Github import base64 import re #정산 import ...
37.902905
274
0.590228
1df59a14c8896828be6998a4961f5ee84d4f5850
2,955
py
Python
som/postprocessing.py
fredhusser/som
7597d721394f2d011bc7cbccdea4ef9a9b845804
[ "BSD-3-Clause" ]
null
null
null
som/postprocessing.py
fredhusser/som
7597d721394f2d011bc7cbccdea4ef9a9b845804
[ "BSD-3-Clause" ]
null
null
null
som/postprocessing.py
fredhusser/som
7597d721394f2d011bc7cbccdea4ef9a9b845804
[ "BSD-3-Clause" ]
null
null
null
# encoding = utf-8 # filename = postprocessing.py # author = Frederic Husser # Description: # This module contains the post-processing tools for working # on the data from the main data analysis pipeline. The raw data # can be prepared for visualization and for publication into # a DataBase. import numpy as np from s...
34.360465
75
0.690694
00b2a802254f522902e445aaca97ed661f86fef5
102,722
py
Python
pysnmp-with-texts/LISP-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
8
2019-05-09T17:04:00.000Z
2021-06-09T06:50:51.000Z
pysnmp-with-texts/LISP-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
4
2019-05-31T16:42:59.000Z
2020-01-31T21:57:17.000Z
pysnmp-with-texts/LISP-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module LISP-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/LISP-MIB # Produced by pysmi-0.3.4 at Wed May 1 12:04:38 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:1...
177.719723
10,095
0.807831
153fa2b447fec3dd5522e58f2bbc905b2845a9c9
529
py
Python
problems/problem_4.py
minuq/project-euler
00307f01d06aa6dc61e701cf1bd90d2eafcf0478
[ "MIT" ]
null
null
null
problems/problem_4.py
minuq/project-euler
00307f01d06aa6dc61e701cf1bd90d2eafcf0478
[ "MIT" ]
null
null
null
problems/problem_4.py
minuq/project-euler
00307f01d06aa6dc61e701cf1bd90d2eafcf0478
[ "MIT" ]
null
null
null
def palindrome(n): x = 0 word = str(n) while x < len(word)/2: if word[x] != word[len(word)-1-x]: return False else: x += 1 return True def calc(n): tmppalindrome = 0 x = n while n/2 < x <= n: y = n while n/2 < y <= n: tmp ...
18.892857
55
0.444234
40bf24885aae7d1c1cc2310403406c6a80367501
3,670
py
Python
ucscentralsdk/mometa/adaptor/AdaptorFruCapProvider.py
ragupta-git/ucscentralsdk
2678008b5fb6b0fafafec388d0874147e95a1086
[ "Apache-2.0" ]
null
null
null
ucscentralsdk/mometa/adaptor/AdaptorFruCapProvider.py
ragupta-git/ucscentralsdk
2678008b5fb6b0fafafec388d0874147e95a1086
[ "Apache-2.0" ]
null
null
null
ucscentralsdk/mometa/adaptor/AdaptorFruCapProvider.py
ragupta-git/ucscentralsdk
2678008b5fb6b0fafafec388d0874147e95a1086
[ "Apache-2.0" ]
null
null
null
"""This module contains the general information for AdaptorFruCapProvider ManagedObject.""" from ...ucscentralmo import ManagedObject from ...ucscentralcoremeta import UcsCentralVersion, MoPropertyMeta, MoMeta from ...ucscentralmeta import VersionMeta class AdaptorFruCapProviderConsts(): DEPRECATED_FALSE = "fals...
56.461538
340
0.666213
6e101e5d282f7b3f0c6cd7cdf5836c18da8f3347
1,991
py
Python
test/record/parser/test_response_whois_tcinet_ru_su_status_available.py
huyphan/pyyawhois
77fb2f73a9c67989f1d41d98f37037406a69d136
[ "MIT" ]
null
null
null
test/record/parser/test_response_whois_tcinet_ru_su_status_available.py
huyphan/pyyawhois
77fb2f73a9c67989f1d41d98f37037406a69d136
[ "MIT" ]
null
null
null
test/record/parser/test_response_whois_tcinet_ru_su_status_available.py
huyphan/pyyawhois
77fb2f73a9c67989f1d41d98f37037406a69d136
[ "MIT" ]
null
null
null
# This file is autogenerated. Do not edit it manually. # If you want change the content of this file, edit # # spec/fixtures/responses/whois.tcinet.ru/su/status_available # # and regenerate the tests with the following script # # $ scripts/generate_tests.py # from nose.tools import * from dateutil.parser import p...
31.109375
96
0.709694
4a35f07ec9718cf1842d195e9728b929f19d5e32
923
py
Python
python/sagiri-bot/SAGIRIBOT/functions/get_history_today.py
GG-yuki/bugs
aabd576e9e57012a3390007af890b7c6ab6cdda8
[ "MIT" ]
null
null
null
python/sagiri-bot/SAGIRIBOT/functions/get_history_today.py
GG-yuki/bugs
aabd576e9e57012a3390007af890b7c6ab6cdda8
[ "MIT" ]
null
null
null
python/sagiri-bot/SAGIRIBOT/functions/get_history_today.py
GG-yuki/bugs
aabd576e9e57012a3390007af890b7c6ab6cdda8
[ "MIT" ]
null
null
null
import aiohttp from graia.application.message.chain import MessageChain from graia.application.message.elements.internal import Plain async def get_history_today() -> list: """ Get history today Args: None Examples: message = await get_history_today() Return: [ ...
24.289474
73
0.590466
7da8042e7a20cdb76d048b1739ade3d501f3f016
337
py
Python
warehouse/config/docs.py
ilhmndn/warehouse
19bce16f02e6a0cb50462d3a5485182d9a663373
[ "MIT" ]
null
null
null
warehouse/config/docs.py
ilhmndn/warehouse
19bce16f02e6a0cb50462d3a5485182d9a663373
[ "MIT" ]
null
null
null
warehouse/config/docs.py
ilhmndn/warehouse
19bce16f02e6a0cb50462d3a5485182d9a663373
[ "MIT" ]
null
null
null
""" Configuration for docs """ # source_link = "https://github.com/[org_name]/warehouse" # docs_base_url = "https://[org_name].github.io/warehouse" # headline = "App that does everything" # sub_heading = "Yes, you got that right the first time, everything" def get_context(context): context.brand_html = "Warehouse Ma...
28.083333
68
0.735905
e3687c981d667f2d6f4b0ef8376520d900e6b57b
558
py
Python
src/analytics/migrations/0010_auto_20150203_1922.py
sachitanandpandey/videoup
e9231262de484893dac88da493bc1d3d5518a569
[ "MIT" ]
79
2015-02-17T13:28:19.000Z
2022-03-26T04:36:24.000Z
src/analytics/migrations/0010_auto_20150203_1922.py
sachitanandpandey/videoup
e9231262de484893dac88da493bc1d3d5518a569
[ "MIT" ]
5
2021-03-18T20:47:30.000Z
2022-03-11T23:26:28.000Z
src/analytics/migrations/0010_auto_20150203_1922.py
sachitanandpandey/videoup
e9231262de484893dac88da493bc1d3d5518a569
[ "MIT" ]
67
2015-02-04T16:04:55.000Z
2022-01-17T16:22:41.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import datetime from django.utils.timezone import utc class Migration(migrations.Migration): dependencies = [ ('analytics', '0009_auto_20150203_1909'), ] operations = [ migrations.Al...
24.26087
110
0.641577
16ea81c7abd43059c437cd66f452afb6afa1496c
1,615
py
Python
Examples/mcp4725_simpletest.py
pmartel/CircuitPyDisk
4bcd71850dab9da84829126dfbd0e09948c3324f
[ "MIT" ]
null
null
null
Examples/mcp4725_simpletest.py
pmartel/CircuitPyDisk
4bcd71850dab9da84829126dfbd0e09948c3324f
[ "MIT" ]
null
null
null
Examples/mcp4725_simpletest.py
pmartel/CircuitPyDisk
4bcd71850dab9da84829126dfbd0e09948c3324f
[ "MIT" ]
null
null
null
# Simple demo of setting the DAC value up and down through its entire range # of values. # Author: Tony DiCola import board import busio import adafruit_mcp4725 # Initialize I2C bus. i2c = busio.I2C(board.SCL, board.SDA) # Initialize MCP4725. dac = adafruit_mcp4725.MCP4725(i2c) # Optionally you can specify a differ...
37.55814
77
0.633437
f1007f08c4e56d108ded2452e526aee5e100218c
122
py
Python
examples/computer_vision/mmdetection_pytorch/configs/hrnet/htc_x101_64x4d_fpn_16x1_28e_coco.py
RAbraham/determined
1161b667ed6d0242f70f9f15d58600f910c8d7f9
[ "Apache-2.0" ]
1
2021-03-29T13:39:45.000Z
2021-03-29T13:39:45.000Z
examples/computer_vision/mmdetection_pytorch/configs/hrnet/htc_x101_64x4d_fpn_16x1_28e_coco.py
RAbraham/determined
1161b667ed6d0242f70f9f15d58600f910c8d7f9
[ "Apache-2.0" ]
null
null
null
examples/computer_vision/mmdetection_pytorch/configs/hrnet/htc_x101_64x4d_fpn_16x1_28e_coco.py
RAbraham/determined
1161b667ed6d0242f70f9f15d58600f910c8d7f9
[ "Apache-2.0" ]
null
null
null
_base_ = "../htc/htc_x101_64x4d_fpn_16x1_20e_coco.py" # learning policy lr_config = dict(step=[24, 27]) total_epochs = 28
24.4
53
0.754098
4e53882cf017f921b1d013036a261a77d51debf8
27,424
py
Python
image_classification/T2T_ViT/main_multi_gpu.py
libertatis/PaddleViT
422b7fa4dda68c158fc9bd95e00aba01d4671916
[ "Apache-2.0" ]
1
2021-12-28T07:08:58.000Z
2021-12-28T07:08:58.000Z
image_classification/T2T_ViT/main_multi_gpu.py
libertatis/PaddleViT
422b7fa4dda68c158fc9bd95e00aba01d4671916
[ "Apache-2.0" ]
null
null
null
image_classification/T2T_ViT/main_multi_gpu.py
libertatis/PaddleViT
422b7fa4dda68c158fc9bd95e00aba01d4671916
[ "Apache-2.0" ]
1
2022-01-10T04:52:21.000Z
2022-01-10T04:52:21.000Z
# Copyright (c) 2021 PPViT 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 applicable l...
45.179572
111
0.612894
fe1c27d2ba98b3cc48d31f87d8b29100034d3cc3
580
py
Python
polls/admin.py
philmui/polling
f436f6219b108dcb0410cf67e8e4028568a3dd51
[ "MIT" ]
null
null
null
polls/admin.py
philmui/polling
f436f6219b108dcb0410cf67e8e4028568a3dd51
[ "MIT" ]
null
null
null
polls/admin.py
philmui/polling
f436f6219b108dcb0410cf67e8e4028568a3dd51
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Choice, Question admin.AdminSite.site_header = "Polling Administration" #class ChoiceInline(admin.StackedInline): class ChoiceInline(admin.TabularInline): model = Choice extra = 3 class QuestionAdmin(admin.ModelAdmin): list_display = ('text', 'pub_date', 'was_...
25.217391
62
0.715517
4d226527944482bc09f4dc18094032322e1b7430
15,213
py
Python
tests/emails_test.py
mailosaurapp/mailosaur-python
ee7ca112b0351dec6320108e718f643c9d874042
[ "MIT" ]
null
null
null
tests/emails_test.py
mailosaurapp/mailosaur-python
ee7ca112b0351dec6320108e718f643c9d874042
[ "MIT" ]
2
2016-05-16T21:11:21.000Z
2016-05-17T18:47:04.000Z
tests/emails_test.py
mailosaurapp/mailosaur-python
ee7ca112b0351dec6320108e718f643c9d874042
[ "MIT" ]
null
null
null
import pytest import os import base64 from datetime import datetime, timedelta from unittest import TestCase from .mailer import Mailer from mailosaur import MailosaurClient from mailosaur.models import Attachment, SearchCriteria, MessageCreateOptions, MessageForwardOptions, MessageReplyOptions, MailosaurException cl...
40.785523
141
0.662525
751c745fb29ec82c2b536d236626de41315b585a
200
py
Python
chillapi/app/robots.py
andrescevp/chillapi
1c5f07600748eb65f413ad19f5e67653cce8b787
[ "Apache-2.0" ]
2
2021-05-05T10:54:34.000Z
2021-05-05T12:45:18.000Z
chillapi/app/robots.py
andrescevp/chillapi
1c5f07600748eb65f413ad19f5e67653cce8b787
[ "Apache-2.0" ]
null
null
null
chillapi/app/robots.py
andrescevp/chillapi
1c5f07600748eb65f413ad19f5e67653cce8b787
[ "Apache-2.0" ]
null
null
null
from flask import make_response def register_routes(app): """ :param app: """ @app.route("/robots.txt") def profile(): """ """ return make_response(None, 200)
13.333333
39
0.55
1f0637a8ddc2901a7f50323facf7631cb85230a8
5,354
py
Python
2016/puzzle22.py
AwesomeGitHubRepos/adventofcode
84ba7963a5d7905973f14bb1c2e3a59165f8b398
[ "MIT" ]
96
2018-04-21T07:53:34.000Z
2022-03-15T11:00:02.000Z
2016/puzzle22.py
AwesomeGitHubRepos/adventofcode
84ba7963a5d7905973f14bb1c2e3a59165f8b398
[ "MIT" ]
17
2019-02-07T05:14:47.000Z
2021-12-27T12:11:04.000Z
2016/puzzle22.py
AwesomeGitHubRepos/adventofcode
84ba7963a5d7905973f14bb1c2e3a59165f8b398
[ "MIT" ]
14
2019-02-05T06:34:15.000Z
2022-01-24T17:35:00.000Z
import os.path from bisect import bisect_left from collections import namedtuple from heapq import heapify, heappush, heappop from itertools import count, islice from operator import attrgetter HERE = os.path.dirname(os.path.abspath(__file__)) class PriorityQueue: def __init__(self, *initial): self._qu...
30.770115
73
0.582742
e9a12b23027c59ccd8c6a66b9adbec158d575fca
3,207
py
Python
HuaweiDialGrpc/parse_config.py
caowei49/elk-plugin
6d53e7c8cdd16a60fc7a17680510ee0ddc93a6da
[ "Apache-2.0" ]
null
null
null
HuaweiDialGrpc/parse_config.py
caowei49/elk-plugin
6d53e7c8cdd16a60fc7a17680510ee0ddc93a6da
[ "Apache-2.0" ]
null
null
null
HuaweiDialGrpc/parse_config.py
caowei49/elk-plugin
6d53e7c8cdd16a60fc7a17680510ee0ddc93a6da
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import sys import json def get_config_data(): if os.path.exists(os.path.abspath(os.path.join(os.path.dirname(__file__), "conf", "config.json"))): conf_path = os.path.abspath(os.path.join(os.path.dirname(__file__), "conf", "config.json")) with...
33.40625
103
0.602744
c6352b2a98c14a5baa9acbaa279646e34e4a6405
5,040
py
Python
tensorflow/python/ops/conv2d_benchmark.py
shreyanshp/tensorflow
77867318b3c89e38828e787f3948ccae21bc0693
[ "Apache-2.0" ]
1
2020-07-19T13:38:13.000Z
2020-07-19T13:38:13.000Z
tensorflow/python/ops/conv2d_benchmark.py
shreyanshp/tensorflow
77867318b3c89e38828e787f3948ccae21bc0693
[ "Apache-2.0" ]
null
null
null
tensorflow/python/ops/conv2d_benchmark.py
shreyanshp/tensorflow
77867318b3c89e38828e787f3948ccae21bc0693
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 The TensorFlow 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 applica...
35.492958
80
0.653175
f2677eb37e1539bb98d3710ba2d799d681be09c7
1,912
py
Python
mysite/myapp/models.py
adamgpgarcia/Galleries-Next-Door
dd3380db0402d1a3793981108f358d13471610ca
[ "MIT" ]
null
null
null
mysite/myapp/models.py
adamgpgarcia/Galleries-Next-Door
dd3380db0402d1a3793981108f358d13471610ca
[ "MIT" ]
null
null
null
mysite/myapp/models.py
adamgpgarcia/Galleries-Next-Door
dd3380db0402d1a3793981108f358d13471610ca
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth.models import User from django.urls import reverse from django.utils import timezone #the post model is for art action postings class PostModel(models.Model): title = models.CharField(max_length=240) author = models.ForeignKey(User, on_delete=models.CASCA...
27.314286
123
0.654289
6e79b42fd0ac354030211b09e0262a0c00e7d9d1
6,613
py
Python
python/wpe.py
helianvine/dereverberation
8c93c16af2006c2065c9dc00f0b9717793fdf2b8
[ "MIT" ]
115
2018-08-14T11:17:04.000Z
2022-03-01T09:50:19.000Z
python/wpe.py
liuergouxuqk/helloworld
8c93c16af2006c2065c9dc00f0b9717793fdf2b8
[ "MIT" ]
3
2019-07-18T02:09:08.000Z
2020-05-04T17:28:27.000Z
python/wpe.py
liuergouxuqk/helloworld
8c93c16af2006c2065c9dc00f0b9717793fdf2b8
[ "MIT" ]
43
2018-08-18T18:03:11.000Z
2022-03-28T06:32:26.000Z
# Created by Teng Xiang at 2018-08-10 # Current version: 2018-08-10 # https://github.com/helianvine/fdndlp # ============================================================================= """ Weighted prediction error(WPE) method for speech dereverberation.""" import stft import argparse import time import os import ...
35.553763
79
0.594284
ae78039e6366576af3707d07f9518cb7df7c7898
1,505
py
Python
store_backend/migratedb.py
EUGINELETHAL/ChRIS_store
b842dbfa80f29f86468fe0ebd3514aaac4898717
[ "MIT" ]
11
2018-03-23T19:27:10.000Z
2021-04-30T16:40:04.000Z
store_backend/migratedb.py
EUGINELETHAL/ChRIS_store
b842dbfa80f29f86468fe0ebd3514aaac4898717
[ "MIT" ]
46
2018-05-21T14:54:43.000Z
2022-01-28T01:37:57.000Z
store_backend/migratedb.py
EUGINELETHAL/ChRIS_store
b842dbfa80f29f86468fe0ebd3514aaac4898717
[ "MIT" ]
11
2018-03-28T04:37:25.000Z
2021-05-28T06:40:30.000Z
#!/usr/bin/env python import time import sys import psycopg2 from argparse import ArgumentParser # django needs to be loaded import django django.setup() from django.core.management import call_command parser = ArgumentParser(description="Check database service connection") parser.add_argument('-u', '--user', help...
30.714286
80
0.695017
b9a44813e1c52e5b9b4262590ca7a8aece58e806
2,144
py
Python
examples/demo_rnn_torch.py
vishalbelsare/iisignature
fd26aeaddac0577d44163586f8394d4255cca586
[ "MIT" ]
52
2016-06-02T14:51:49.000Z
2022-03-02T12:03:35.000Z
examples/demo_rnn_torch.py
ViewFuture/iisignature
14084c0fb5661943ef944ff23492c6aeb50d7896
[ "MIT" ]
16
2017-08-15T13:52:20.000Z
2022-01-15T18:17:37.000Z
examples/demo_rnn_torch.py
ViewFuture/iisignature
14084c0fb5661943ef944ff23492c6aeb50d7896
[ "MIT" ]
16
2016-12-03T20:41:07.000Z
2022-01-06T11:40:23.000Z
#A trivial demonstration of the RecurrentSig layer from iisignature_recurrent_torch.py #No assertion is made that this model is a good idea, or that this code is idiomatic pytorch. import numpy as np, sys, os, itertools import torch from torch.autograd import Variable import torch.nn as nn #add the parent directory, ...
31.529412
116
0.71875
706d545797321cfc6763bc6f6e5cadbeb77ad510
115,139
py
Python
geemap/eefolium.py
Julietarellanoo/geemap
63ef1300f65cd3da539d96218bf0ac610d4e826c
[ "MIT" ]
1
2020-11-26T09:47:21.000Z
2020-11-26T09:47:21.000Z
geemap/eefolium.py
liangliang12/geemap
63ef1300f65cd3da539d96218bf0ac610d4e826c
[ "MIT" ]
null
null
null
geemap/eefolium.py
liangliang12/geemap
63ef1300f65cd3da539d96218bf0ac610d4e826c
[ "MIT" ]
null
null
null
""" This module extends the folium Map class. It is designed to be used in Google Colab, as Google Colab currently does not support ipyleaflet. """ import ee import folium from folium import plugins from .common import * from .conversion import * # More WMS basemaps can be found at https://viewer.nationalmap.gov/ser...
37.676374
282
0.577259
6ea205edc357c8153620b9167e73cbe93292f6d2
3,964
py
Python
parkings/migrations/0001_initial.py
klemmari1/parkkihubi
93218c6046c0910e8a4c723dc7128c6eec085b8c
[ "MIT" ]
12
2016-11-29T15:13:10.000Z
2021-06-12T06:45:38.000Z
parkings/migrations/0001_initial.py
niuzhipeng123/parkkihubi
93218c6046c0910e8a4c723dc7128c6eec085b8c
[ "MIT" ]
154
2016-11-30T09:07:58.000Z
2022-02-12T08:29:36.000Z
parkings/migrations/0001_initial.py
niuzhipeng123/parkkihubi
93218c6046c0910e8a4c723dc7128c6eec085b8c
[ "MIT" ]
15
2016-11-29T19:32:48.000Z
2022-01-05T11:31:39.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10.3 on 2016-12-05 14:40 from __future__ import unicode_literals from django.conf import settings import django.contrib.gis.db.models.fields import django.core.validators from django.db import migrations, models import django.db.models.deletion import uuid class Migrat...
55.830986
192
0.637235
4a56ea815ef31f36c81edbddad36d4e524ca11ec
6,898
py
Python
odp/publish/catalogue/datacite.py
SAEONData/Open-Data-Platform
cfd2a53e145ec86e187d7c4e1260df17ec6dcb03
[ "MIT" ]
2
2021-03-04T07:09:47.000Z
2022-01-02T19:23:41.000Z
odp/publish/catalogue/datacite.py
SAEONData/Open-Data-Platform
cfd2a53e145ec86e187d7c4e1260df17ec6dcb03
[ "MIT" ]
18
2020-09-16T09:16:45.000Z
2022-01-25T14:17:42.000Z
odp/publish/catalogue/datacite.py
SAEONData/Open-Data-Platform
cfd2a53e145ec86e187d7c4e1260df17ec6dcb03
[ "MIT" ]
1
2021-06-25T13:02:57.000Z
2021-06-25T13:02:57.000Z
import logging from datetime import datetime, timezone from typing import Tuple import pydantic from sqlalchemy import or_, and_, not_ from odp.api.models.datacite import DataciteRecordIn from odp.db import session, transaction from odp.db.models import CatalogueRecord, DataciteRecord from odp.lib.datacite import Dat...
41.059524
103
0.556103
e5f8e333b152d0a60932b52153efdc5ecf2118f8
324
py
Python
westcoast_stream.py
smmaurer/twitter-streaming
5ddfa2faf6afcdaeffac6af7da4adea6989132f2
[ "MIT" ]
1
2015-10-30T00:08:18.000Z
2015-10-30T00:08:18.000Z
westcoast_stream.py
smmaurer/twitter-streaming
5ddfa2faf6afcdaeffac6af7da4adea6989132f2
[ "MIT" ]
null
null
null
westcoast_stream.py
smmaurer/twitter-streaming
5ddfa2faf6afcdaeffac6af7da4adea6989132f2
[ "MIT" ]
2
2015-12-04T18:54:17.000Z
2019-02-06T03:53:11.000Z
__author__ = "Sam Maurer" __date__ = "October 1, 2015" __license__ = "MIT" # runtime hack to import code from a subfolder import sys sys.path.insert(0, 'stream_automator/') import stream_automator s = stream_automator.Stream( fname_base = 'westcoast-', time_limit = 10, bbox = '-126,29,-113,51') s.begin_stre...
19.058824
46
0.716049
4a6fb6213fe1613bafbecd86a538f2875093991d
2,808
py
Python
bioprocs/bed.py
LeaveYeah/bioprocs
c5d2ddcc837f5baee00faf100e7e9bd84222cfbf
[ "MIT" ]
null
null
null
bioprocs/bed.py
LeaveYeah/bioprocs
c5d2ddcc837f5baee00faf100e7e9bd84222cfbf
[ "MIT" ]
2
2019-02-15T22:59:49.000Z
2019-02-15T23:03:09.000Z
bioprocs/bed.py
LeaveYeah/bioprocs
c5d2ddcc837f5baee00faf100e7e9bd84222cfbf
[ "MIT" ]
null
null
null
from pyppl import Proc, Box from .bedtools import * from . import params """ @name: pBedSort @description: Sort bed files @input: `infile:file`: The input file @output: `outfile:file`: The output file @args: `tool`: The tool used to sort the file. Default: sort (bedtools, bedops) `bedtools`: The path...
33.035294
119
0.673789
b1e07bda4ad13d68f81204e13c1b95eeb98054d3
981
py
Python
scraper/storage_spiders/hotdealvn.py
chongiadung/choinho
d2a216fe7a5064d73cdee3e928a7beef7f511fd1
[ "MIT" ]
null
null
null
scraper/storage_spiders/hotdealvn.py
chongiadung/choinho
d2a216fe7a5064d73cdee3e928a7beef7f511fd1
[ "MIT" ]
10
2020-02-11T23:34:28.000Z
2022-03-11T23:16:12.000Z
scraper/storage_spiders/hotdealvn.py
chongiadung/choinho
d2a216fe7a5064d73cdee3e928a7beef7f511fd1
[ "MIT" ]
3
2018-08-05T14:54:25.000Z
2021-06-07T01:49:59.000Z
# Auto generated by generator.py. Delete this line if you make modification. from scrapy.spiders import Rule from scrapy.linkextractors import LinkExtractor XPATH = { 'name' : "//h1[@class='product__title']", 'price' : "//div[@class='product__details']//span[@class='price__value']", 'category' : "//div[@cl...
36.333333
78
0.626911
9f123a6f57a32c5618b22793b285d9bd045f4f00
14,528
py
Python
RsaCtfTool.py
it5prasoon/RsaCtfTool
87ffaa857b22deaa7c33b0c29e55bf0875d10ddf
[ "Beerware" ]
1
2021-06-05T13:42:21.000Z
2021-06-05T13:42:21.000Z
RsaCtfTool.py
it5prasoon/RsaCtfTool
87ffaa857b22deaa7c33b0c29e55bf0875d10ddf
[ "Beerware" ]
null
null
null
RsaCtfTool.py
it5prasoon/RsaCtfTool
87ffaa857b22deaa7c33b0c29e55bf0875d10ddf
[ "Beerware" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ ---------------------------------------------------------------------------- "THE BEER-WARE LICENSE" (Revision 42): ganapati (@G4N4P4T1) wrote this file. As long as you retain this notice you can do whatever you want with this stuff. If we meet some day, and you think...
35.783251
100
0.572825
c7737de2ab3dc783a27390fbc73c819ae70e32bd
458
py
Python
SRC/tool/project/model/testCase.py
lizhq1/python
4250cf0c5045cf0e0d55e2c0f8009a0b026e43b3
[ "bzip2-1.0.6" ]
1
2022-03-23T03:14:36.000Z
2022-03-23T03:14:36.000Z
database/schemes/easyTest/SRC/tool/project/model/testCase.py
TonnaMajesty/test
68b24d1f3e8b4d6154c9d896a7fa3e2f99b49a6f
[ "MIT" ]
null
null
null
database/schemes/easyTest/SRC/tool/project/model/testCase.py
TonnaMajesty/test
68b24d1f3e8b4d6154c9d896a7fa3e2f99b49a6f
[ "MIT" ]
null
null
null
# coding:utf-8 ''' 测试用例模型 ''' from SRC.tool.project.model.testParam import TestParam class TestCase(): def __init__(self,path='',param=None): self.path=path self.testParamPath=param self.paramObj=None def setTestParam(self,paramPath=None): if paramPath: self.paramObj = TestParam(self.testParamPath) s...
19.913043
54
0.746725
fb2b6ddefe13f8e76daae464395f9e752b826bad
4,338
py
Python
convertextract/cli.py
roedoejet/convertextract
bf194a7d81d847d68690ea0d58dc47a70259cd78
[ "MIT" ]
12
2016-10-20T16:17:04.000Z
2022-03-10T06:36:59.000Z
convertextract/cli.py
roedoejet/convertextract
bf194a7d81d847d68690ea0d58dc47a70259cd78
[ "MIT" ]
3
2018-01-12T00:41:26.000Z
2020-08-12T05:04:45.000Z
convertextract/cli.py
roedoejet/convertextract
bf194a7d81d847d68690ea0d58dc47a70259cd78
[ "MIT" ]
3
2020-08-18T21:47:03.000Z
2022-02-03T06:32:46.000Z
""" Use argparse to handle command-line arguments. """ import argparse import encodings import os import pkgutil import sys import six import re import glob from g2p.mappings.langs import LANGS_NETWORK import argcomplete from convertextract import VERSION from convertextract.parsers import DEFAULT_ENCODING, _get_av...
34.15748
147
0.663209
7e9855732dd1cace10cc6ca27fd509480be395ca
13,816
py
Python
chrome/test/functional/media/media_constrained_network_perf.py
gavinp/chromium
681563ea0f892a051f4ef3d5e53438e0bb7d2261
[ "BSD-3-Clause" ]
1
2016-03-10T09:13:57.000Z
2016-03-10T09:13:57.000Z
chrome/test/functional/media/media_constrained_network_perf.py
gavinp/chromium
681563ea0f892a051f4ef3d5e53438e0bb7d2261
[ "BSD-3-Clause" ]
1
2022-03-13T08:39:05.000Z
2022-03-13T08:39:05.000Z
chrome/test/functional/media/media_constrained_network_perf.py
gavinp/chromium
681563ea0f892a051f4ef3d5e53438e0bb7d2261
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # Copyright (c) 2012 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. """Records metrics on playing media under constrained network conditions. Spins up a Constrained Network Server (CNS) and runs thr...
35.885714
80
0.675594
e2f6506c4524215cd0e2b2121a900ba4452b678e
26,705
py
Python
sdk/tables/azure-data-tables/azure/data/tables/_table_batch.py
lynshi/azure-sdk-for-python
40c530f2e9a6d93025b01cc8f6c94829c7fe95fc
[ "MIT" ]
null
null
null
sdk/tables/azure-data-tables/azure/data/tables/_table_batch.py
lynshi/azure-sdk-for-python
40c530f2e9a6d93025b01cc8f6c94829c7fe95fc
[ "MIT" ]
null
null
null
sdk/tables/azure-data-tables/azure/data/tables/_table_batch.py
lynshi/azure-sdk-for-python
40c530f2e9a6d93025b01cc8f6c94829c7fe95fc
[ "MIT" ]
null
null
null
# ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- from typin...
38.59104
103
0.595581
e92e89d9c08411a53430562ef0502b358ad60733
621
py
Python
user/models.py
Mariga123/solid-octo-robot
b4f9eb9dd2b552d021a6ef57b50e833ccf0e046e
[ "MIT" ]
null
null
null
user/models.py
Mariga123/solid-octo-robot
b4f9eb9dd2b552d021a6ef57b50e833ccf0e046e
[ "MIT" ]
null
null
null
user/models.py
Mariga123/solid-octo-robot
b4f9eb9dd2b552d021a6ef57b50e833ccf0e046e
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth.models import User from PIL import Image class Profile(models.Model): user = models.OneToOneField(User, on_delete=models.CASCADE) image = models.ImageField(default='default.jpg', upload_to='profile_pics') def __str__(self): return f'{self.user....
28.227273
78
0.653784
591783720de51e0481b137d6fbd358a2fdc0df4e
10,564
py
Python
jiamtrader/app/cta_strategy/strategies/high_frequency_strategy.py
zxc1342802/leijmtrader
f24d5593d8708e48f2a9180d9469a6c2af93a08d
[ "MIT" ]
null
null
null
jiamtrader/app/cta_strategy/strategies/high_frequency_strategy.py
zxc1342802/leijmtrader
f24d5593d8708e48f2a9180d9469a6c2af93a08d
[ "MIT" ]
null
null
null
jiamtrader/app/cta_strategy/strategies/high_frequency_strategy.py
zxc1342802/leijmtrader
f24d5593d8708e48f2a9180d9469a6c2af93a08d
[ "MIT" ]
null
null
null
from jiamtrader.app.cta_strategy import ( CtaTemplate, StopOrder, TickData, BarData, TradeData, OrderData ) from jiamtrader.app.cta_strategy.engine import CtaEngine from jiamtrader.trader.event import EVENT_TIMER from jiamtrader.event import Event from jiamtrader.trader.object import Direction,...
34.410423
126
0.573173
b0ed4fd7261ee2873b1de62d7710805a966ccac4
3,733
py
Python
binance_asyncio/websockets/streams.py
justdanyul/binance-asyncio
4cc3eaabc5f6d9d49351141ce90dcd6979f2c3ac
[ "MIT" ]
10
2021-02-07T23:34:05.000Z
2022-02-05T16:51:00.000Z
binance_asyncio/websockets/streams.py
justdanyul/binance-asyncio
4cc3eaabc5f6d9d49351141ce90dcd6979f2c3ac
[ "MIT" ]
null
null
null
binance_asyncio/websockets/streams.py
justdanyul/binance-asyncio
4cc3eaabc5f6d9d49351141ce90dcd6979f2c3ac
[ "MIT" ]
null
null
null
from typing import Callable, Tuple from abc import ABC, abstractmethod import websockets import json class BaseStream(ABC): uri = "wss://stream.binance.com:9443/ws" last_id = 0 def __init__(self) -> None: self.parameters = {} self.active = True self.active_id = None self.so...
32.745614
87
0.645325
a816a43eef720c6ff5bffa5737564efd43be9715
538
py
Python
plotly/validators/layout/ternary/baxis/_linewidth.py
gnestor/plotly.py
a8ae062795ddbf9867b8578fe6d9e244948c15ff
[ "MIT" ]
12
2020-04-18T18:10:22.000Z
2021-12-06T10:11:15.000Z
plotly/validators/layout/ternary/baxis/_linewidth.py
gnestor/plotly.py
a8ae062795ddbf9867b8578fe6d9e244948c15ff
[ "MIT" ]
27
2020-04-28T21:23:12.000Z
2021-06-25T15:36:38.000Z
plotly/validators/layout/ternary/baxis/_linewidth.py
gnestor/plotly.py
a8ae062795ddbf9867b8578fe6d9e244948c15ff
[ "MIT" ]
6
2020-04-18T23:07:08.000Z
2021-11-18T07:53:06.000Z
import _plotly_utils.basevalidators class LinewidthValidator(_plotly_utils.basevalidators.NumberValidator): def __init__( self, plotly_name='linewidth', parent_name='layout.ternary.baxis', **kwargs ): super(LinewidthValidator, self).__init__( plotly_name=pl...
26.9
71
0.598513
f87d8d0a9cf99a010edf2b48793828005a3ef82a
5,574
py
Python
contrib/seeds/makeseeds.py
progof/elspero-core
8cb65df55bbc8c6412e841755b17e3da2deadc89
[ "MIT" ]
null
null
null
contrib/seeds/makeseeds.py
progof/elspero-core
8cb65df55bbc8c6412e841755b17e3da2deadc89
[ "MIT" ]
null
null
null
contrib/seeds/makeseeds.py
progof/elspero-core
8cb65df55bbc8c6412e841755b17e3da2deadc89
[ "MIT" ]
null
null
null
#!/usr/bin/env python # # Generate seeds.txt from Pieter's DNS seeder # NSEEDS=512 MAX_SEEDS_PER_ASN=2 MIN_BLOCKS = 337600 # These are hosts that have been observed to be behaving strangely (e.g. # aggressively connecting to every node). SUSPICIOUS_HOSTS = set([ "130.211.129.106", "178.63.107.226", "83.81.1...
32.788235
186
0.5601
19fd6d5c91ccb2983415b8b90682ed4b8e4104be
32,067
py
Python
docker_stuff/site-packages/partio.py
yannikkellerde/Water-Pouring
82ae82dde8f14452c4c1d0d7defed105ac1fb0c7
[ "MIT" ]
null
null
null
docker_stuff/site-packages/partio.py
yannikkellerde/Water-Pouring
82ae82dde8f14452c4c1d0d7defed105ac1fb0c7
[ "MIT" ]
null
null
null
docker_stuff/site-packages/partio.py
yannikkellerde/Water-Pouring
82ae82dde8f14452c4c1d0d7defed105ac1fb0c7
[ "MIT" ]
1
2021-04-27T09:56:52.000Z
2021-04-27T09:56:52.000Z
# This file was automatically generated by SWIG (http://www.swig.org). # Version 3.0.12 # # Do not make changes to this file unless you know what you are doing--modify # the SWIG interface file instead. from sys import version_info as _swig_python_version_info if _swig_python_version_info >= (2, 7, 0): def swig_im...
32.131263
200
0.675991
19689cab43917be3ec3fe3c2bb8986ec64c9fc79
17,861
py
Python
pythontutorials/Udacity/CS101/Lesson 11 - How to Manage Data/Q43-Finishing Crawl Web.py
JoseALermaIII/python-tutorials
9d6cb78beec0bb55e27c49da1217317ba4d5f4fc
[ "MIT" ]
2
2017-04-20T02:57:19.000Z
2018-10-12T20:15:47.000Z
pythontutorials/Udacity/CS101/Lesson 11 - How to Manage Data/Q43-Finishing Crawl Web.py
JoseALermaIII/python-tutorials
9d6cb78beec0bb55e27c49da1217317ba4d5f4fc
[ "MIT" ]
8
2021-03-18T21:50:16.000Z
2022-03-11T23:38:01.000Z
pythontutorials/Udacity/CS101/Lesson 11 - How to Manage Data/Q43-Finishing Crawl Web.py
JoseALermaIII/python-tutorials
9d6cb78beec0bb55e27c49da1217317ba4d5f4fc
[ "MIT" ]
3
2018-08-30T20:30:50.000Z
2022-01-18T13:40:51.000Z
# Finish crawl web def get_page(url): # This is a simulated get_page procedure so that you can test your # code on two pages "http://xkcd.com/353" and "http://xkcd.com/554". # A procedure which actually grabs a page from the web will be # introduced in unit 4. try: if url == "http://xkcd.c...
302.728814
8,386
0.668776
2b7e4285471db85667d3b52a1c7debb85d01a475
20,063
py
Python
flanker/addresslib/parser.py
meta-x/flanker
1e37baa1db2ecee238ac3de1e36a2948e0a6d3ad
[ "Apache-2.0" ]
null
null
null
flanker/addresslib/parser.py
meta-x/flanker
1e37baa1db2ecee238ac3de1e36a2948e0a6d3ad
[ "Apache-2.0" ]
null
null
null
flanker/addresslib/parser.py
meta-x/flanker
1e37baa1db2ecee238ac3de1e36a2948e0a6d3ad
[ "Apache-2.0" ]
null
null
null
# coding:utf-8 ''' _AddressParser is an implementation of a recursive descent parser for email addresses and urls. While _AddressParser can be used directly it is not recommended, use the the parse() and parse_list() methods which are provided in the address module for convenience. The grammar supported by the parser...
32.517018
83
0.598465
4a7eff8aae3fca1f8d7e3f6770a6f9f9dd04524b
679
py
Python
fehler_auth/urls.py
dhavall13/fehler_core
dd27802d5b227a32aebcc8bfde68e78a69a36d66
[ "MIT" ]
null
null
null
fehler_auth/urls.py
dhavall13/fehler_core
dd27802d5b227a32aebcc8bfde68e78a69a36d66
[ "MIT" ]
null
null
null
fehler_auth/urls.py
dhavall13/fehler_core
dd27802d5b227a32aebcc8bfde68e78a69a36d66
[ "MIT" ]
null
null
null
from django.urls import path from .views import ( CustomObtainAuthToken, RegisterUser, InviteUserApi, VerificationView, UserDetails, ) urlpatterns = [ path("register/", RegisterUser.as_view(), name="create_user"), path("token/", CustomObtainAuthToken.as_view(), name="token_obtain"), #...
28.291667
87
0.659794
198b6514a8a63b0d653453271ac73346a991cd3a
205
py
Python
pyplex/material.py
pyplex/pyplex
66e19acb3efd1a8a69d28022edcb0b6ad5cb6b11
[ "MIT" ]
5
2018-01-17T09:08:38.000Z
2020-09-20T20:38:51.000Z
pyplex/material.py
pyplex/pyplex
66e19acb3efd1a8a69d28022edcb0b6ad5cb6b11
[ "MIT" ]
null
null
null
pyplex/material.py
pyplex/pyplex
66e19acb3efd1a8a69d28022edcb0b6ad5cb6b11
[ "MIT" ]
null
null
null
from pyplex.mesh import Mesh from pyplex.camera import Camera from pyplex.light import Light from typing import List class Material: def render(self, mesh: Mesh): raise NotImplementedError()
20.5
35
0.760976
cb98678d1ef651609aef2cdd13bedb0ab853c7f6
2,434
py
Python
aliyun-python-sdk-emr/aliyunsdkemr/request/v20160408/MetastoreCreateKafkaTopicRequest.py
sdk-team/aliyun-openapi-python-sdk
384730d707e6720d1676ccb8f552e6a7b330ec86
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-emr/aliyunsdkemr/request/v20160408/MetastoreCreateKafkaTopicRequest.py
sdk-team/aliyun-openapi-python-sdk
384730d707e6720d1676ccb8f552e6a7b330ec86
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-emr/aliyunsdkemr/request/v20160408/MetastoreCreateKafkaTopicRequest.py
sdk-team/aliyun-openapi-python-sdk
384730d707e6720d1676ccb8f552e6a7b330ec86
[ "Apache-2.0" ]
null
null
null
# 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"); you may not u...
37.446154
102
0.760477
67c6d8295c564235ab83e10dd20948d709964503
9,170
py
Python
src/common/layers.py
banbiossa/deep-learning-from-scrach
d183a73ad27c68a79500c35a94c174ce0455940c
[ "FTL" ]
null
null
null
src/common/layers.py
banbiossa/deep-learning-from-scrach
d183a73ad27c68a79500c35a94c174ce0455940c
[ "FTL" ]
null
null
null
src/common/layers.py
banbiossa/deep-learning-from-scrach
d183a73ad27c68a79500c35a94c174ce0455940c
[ "FTL" ]
null
null
null
# coding: utf-8 import numpy as np from .functions import sigmoid, softmax, cross_entropy_error from .util import im2col, col2im import logging logger = logging.getLogger(__name__) class Relu: def __init__(self): self.mask = None def forward(self, x): self.mask = (x <...
30.875421
91
0.434024
c4dcb3084fb8a2c3ea1a96798aa85f320a424622
11,228
py
Python
tests/test_imgaug.py
cannon/albumentations
112aaef4e447ba24bf1ebc2a7fdfc40bd342a2be
[ "MIT" ]
null
null
null
tests/test_imgaug.py
cannon/albumentations
112aaef4e447ba24bf1ebc2a7fdfc40bd342a2be
[ "MIT" ]
null
null
null
tests/test_imgaug.py
cannon/albumentations
112aaef4e447ba24bf1ebc2a7fdfc40bd342a2be
[ "MIT" ]
null
null
null
import cv2 import imgaug as ia import numpy as np import pytest from albumentations import Compose from albumentations.augmentations.bbox_utils import ( convert_bboxes_from_albumentations, convert_bboxes_to_albumentations, ) import albumentations as A from albumentations.imgaug.transforms import ( IAAPiece...
36.33657
119
0.652298
0cbaf31872f20d877fa2ae9fd54be33841519ff4
1,069
py
Python
src/chrome/common/extensions/docs/server2/url_constants.py
jxjnjjn/chromium
435c1d02fd1b99001dc9e1e831632c894523580d
[ "Apache-2.0" ]
9
2018-09-21T05:36:12.000Z
2021-11-15T15:14:36.000Z
src/chrome/common/extensions/docs/server2/url_constants.py
jxjnjjn/chromium
435c1d02fd1b99001dc9e1e831632c894523580d
[ "Apache-2.0" ]
null
null
null
src/chrome/common/extensions/docs/server2/url_constants.py
jxjnjjn/chromium
435c1d02fd1b99001dc9e1e831632c894523580d
[ "Apache-2.0" ]
3
2018-11-28T14:54:13.000Z
2020-07-02T07:36:07.000Z
# Copyright (c) 2012 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. GITHUB_URL = 'https://api.github.com/repos/GoogleChrome/chrome-app-samples' GITHUB_BASE = 'https://github.com/GoogleChrome/chrome-app-samples/tree/master...
48.590909
79
0.724977
658f39c4ca2a10c46ee3a3ab3646da50e9094717
4,168
py
Python
src/matchers/structure/s_ind_matchers/s_phipsi.py
MelvinYin/Defined_Proteins
75da20be82a47d85d27176db29580ab87d52b670
[ "BSD-3-Clause" ]
2
2021-01-05T02:55:57.000Z
2021-04-16T15:49:08.000Z
src/matchers/structure/s_ind_matchers/s_phipsi.py
MelvinYin/Defined_Proteins
75da20be82a47d85d27176db29580ab87d52b670
[ "BSD-3-Clause" ]
null
null
null
src/matchers/structure/s_ind_matchers/s_phipsi.py
MelvinYin/Defined_Proteins
75da20be82a47d85d27176db29580ab87d52b670
[ "BSD-3-Clause" ]
1
2021-01-05T08:12:38.000Z
2021-01-05T08:12:38.000Z
import numpy as np import math from sklearn.mixture import BayesianGaussianMixture as GM import sys np.random.seed(1) import random random.seed(1) class _PhipsiMatcher: def __init__(self): # only accept from a single relative_sno, only values. self.to_skip = False self.weight_scaling_facto...
37.214286
77
0.609165
b160932b0fcc2125dc61d024054678955b01906a
386
py
Python
defacto_zips/w9s1_slam/build/hector_slam/hector_slam_launch/catkin_generated/pkg.installspace.context.pc.py
Psyf/WincentPanzer
da546042ce5b22f45e84f3568a9d0825695d5aaa
[ "MIT" ]
null
null
null
defacto_zips/w9s1_slam/build/hector_slam/hector_slam_launch/catkin_generated/pkg.installspace.context.pc.py
Psyf/WincentPanzer
da546042ce5b22f45e84f3568a9d0825695d5aaa
[ "MIT" ]
null
null
null
defacto_zips/w9s1_slam/build/hector_slam/hector_slam_launch/catkin_generated/pkg.installspace.context.pc.py
Psyf/WincentPanzer
da546042ce5b22f45e84f3568a9d0825695d5aaa
[ "MIT" ]
null
null
null
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else [] PROJECT_CATKIN_DEPENDS = "".replace(';', ' ') PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else [] PROJECT_NAME = "hector_slam_launch" PROJECT_SPACE_DIR...
42.888889
68
0.712435
f7f27a4456f17023f481f09eaf68cf69a116aa6e
8,974
py
Python
code/dgrechka/train_mobileNetV2_bottleneck.py
dgrechka/bengaliai-cv19
9ef15c5b140628337ae6efe0d76e7ec5d291dc17
[ "MIT" ]
null
null
null
code/dgrechka/train_mobileNetV2_bottleneck.py
dgrechka/bengaliai-cv19
9ef15c5b140628337ae6efe0d76e7ec5d291dc17
[ "MIT" ]
null
null
null
code/dgrechka/train_mobileNetV2_bottleneck.py
dgrechka/bengaliai-cv19
9ef15c5b140628337ae6efe0d76e7ec5d291dc17
[ "MIT" ]
null
null
null
import tensorflow as tf import sys import os sys.path.append(os.path.join(__file__,'..','..')) from tfDataIngest import tfDataSetParquet as tfDsParquet from tfDataIngest import tfDataSetParquetAnnotateTrain as tfDsParquetAnnotation import os import pandas as pd from tqdm import tqdm from glob import glob from models....
39.359649
130
0.642077
6dc69db7e078fd8ca04b88890e35ac34dc3faf47
30,304
py
Python
adafruit_clue.py
FoamyGuy/Adafruit_CircuitPython_CLUE
89fec08cd82f6f6243f0f448e24c029e78063756
[ "MIT" ]
1
2020-03-02T20:51:47.000Z
2020-03-02T20:51:47.000Z
adafruit_clue.py
FoamyGuy/Adafruit_CircuitPython_CLUE
89fec08cd82f6f6243f0f448e24c029e78063756
[ "MIT" ]
null
null
null
adafruit_clue.py
FoamyGuy/Adafruit_CircuitPython_CLUE
89fec08cd82f6f6243f0f448e24c029e78063756
[ "MIT" ]
2
2020-03-05T19:43:45.000Z
2020-03-08T19:29:57.000Z
# The MIT License (MIT) # # Copyright (c) 2020 Kattni Rembor for Adafruit Industries # # 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 ri...
32.725702
121
0.604937
cc82f34f1f10d07b400ac0e00cfa3e586ad65dee
19,263
py
Python
src/python/bot/minimizer/minimizer.py
kcwu/clusterfuzz
acf85a83e4bbbf3da8d9e377ddf3e7754f74224e
[ "Apache-2.0" ]
4
2019-11-26T01:50:51.000Z
2021-08-14T20:32:43.000Z
src/python/bot/minimizer/minimizer.py
kcwu/clusterfuzz
acf85a83e4bbbf3da8d9e377ddf3e7754f74224e
[ "Apache-2.0" ]
22
2019-12-26T17:02:34.000Z
2022-03-21T22:16:52.000Z
src/python/bot/minimizer/minimizer.py
kcwu/clusterfuzz
acf85a83e4bbbf3da8d9e377ddf3e7754f74224e
[ "Apache-2.0" ]
2
2019-02-09T09:09:20.000Z
2019-02-15T05:25:13.000Z
# Copyright 2019 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 agreed to in writing, ...
34.336898
115
0.700722
6403a9f6a5dbf7e60d210d5e695a587a0880b804
6,085
py
Python
cloudify_azure/workflows/discover.py
cloudify-incubator/cloudify-azure-plugin
49ecc485b70099d6d23dff81f50b17ab31f7fc18
[ "Apache-2.0" ]
2
2018-08-16T01:50:35.000Z
2018-11-17T20:31:37.000Z
cloudify_azure/workflows/discover.py
cloudify-incubator/cloudify-azure-plugin
49ecc485b70099d6d23dff81f50b17ab31f7fc18
[ "Apache-2.0" ]
43
2017-05-18T12:31:42.000Z
2019-01-08T09:20:42.000Z
cloudify_azure/workflows/discover.py
cloudify-cosmo/cloudify-azure-plugin
b9ac49f603d6588685e00d16f19bcfe3f84d5c98
[ "Apache-2.0" ]
13
2015-07-09T10:49:55.000Z
2021-05-06T09:24:30.000Z
# ####### # Copyright (c) 2021 Cloudify Platform Ltd. 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 requ...
36.005917
79
0.606081
75114658f969ab90b006fa27c76b5757329723fb
2,324
py
Python
config.py
adamzwasserman/VirusTotal-Batcher
1a0cb64198b5b1f75d97ee5b8718e89f225f1395
[ "MIT" ]
2
2018-06-10T13:45:09.000Z
2018-11-13T17:14:40.000Z
config.py
adamzwasserman/VirusTotal-Batcher
1a0cb64198b5b1f75d97ee5b8718e89f225f1395
[ "MIT" ]
null
null
null
config.py
adamzwasserman/VirusTotal-Batcher
1a0cb64198b5b1f75d97ee5b8718e89f225f1395
[ "MIT" ]
null
null
null
import os import sys from pathlib import Path # VirusTotal Batch Machine Gun version_info = (2, 0) version = '.'.join(str(c) for c in version_info) # ***General Params used by all (or any) modules**** debug = 0 # Server friendly. If 'yes' program will look for VTlookup.txt in this subdirectory of the user's home di...
30.578947
120
0.684165
2c67b2bbcca54f4a42d3803fda6cde4d9682d9e0
362
py
Python
Company_Based_Questions/Goldman Sachs/Second Most Repeated string.py
Satyam-Bhalla/Competitive-Coding
5814f5f60572f1e76495efe751b94bf4d2845198
[ "MIT" ]
1
2021-12-09T10:36:48.000Z
2021-12-09T10:36:48.000Z
Company_Based_Questions/Goldman Sachs/Second Most Repeated string.py
Satyam-Bhalla/Competitive-Coding
5814f5f60572f1e76495efe751b94bf4d2845198
[ "MIT" ]
null
null
null
Company_Based_Questions/Goldman Sachs/Second Most Repeated string.py
Satyam-Bhalla/Competitive-Coding
5814f5f60572f1e76495efe751b94bf4d2845198
[ "MIT" ]
null
null
null
def sorted_second(val) : return val[1] t= int(input()) for i in range(t): n = int(input()) arr = list(map(str,input().split())) str_dict = {} for ar in arr : if ar not in str_dict : str_dict[ar] = 1 else : str_dict[ar] += 1 print(sorted(str_dict.items(),k...
24.133333
72
0.541436
3ce1ceaecbe5e92c9e57136d886a599c26f3e815
1,879
py
Python
segmentation_models_pytorch/transinunet/model.py
PhilippMarquardt/segmentation_models.pytorch
8a884bdf7a0c92a2eb4f5d85120a83cd13b08a06
[ "MIT" ]
null
null
null
segmentation_models_pytorch/transinunet/model.py
PhilippMarquardt/segmentation_models.pytorch
8a884bdf7a0c92a2eb4f5d85120a83cd13b08a06
[ "MIT" ]
null
null
null
segmentation_models_pytorch/transinunet/model.py
PhilippMarquardt/segmentation_models.pytorch
8a884bdf7a0c92a2eb4f5d85120a83cd13b08a06
[ "MIT" ]
null
null
null
from typing import Optional, Union, List from .decoder import TransInUnetDecoder from ..encoders import get_encoder from ..base import SegmentationModel from ..base import SegmentationHead, ClassificationHead class TransInUnet(SegmentationModel): def __init__( self, encoder_name: str = "resnet34",...
32.964912
71
0.618946
ad583ac0d6d45028af08aabd37e81207cd9ff247
4,290
py
Python
scorched/dates.py
syslabcom/scorched
90e8c04f71657d62f8837b90fad5287004b25d85
[ "MIT" ]
24
2015-02-16T20:08:40.000Z
2022-01-15T18:24:04.000Z
scorched/dates.py
syslabcom/scorched
90e8c04f71657d62f8837b90fad5287004b25d85
[ "MIT" ]
50
2015-03-27T19:17:04.000Z
2021-06-29T06:48:05.000Z
scorched/dates.py
syslabcom/scorched
90e8c04f71657d62f8837b90fad5287004b25d85
[ "MIT" ]
22
2015-03-24T20:54:58.000Z
2021-12-25T22:09:29.000Z
from __future__ import unicode_literals import datetime import fnmatch import math import pytz import re import scorched.exc from scorched.compat import basestring from scorched.compat import python_2_unicode_compatible year = r'[+/-]?\d+' tzd = r'Z|((?P<tzd_sign>[-+])(?P<tzd_hour>\d\d):(?P<tzd_minute>\d\d))' extend...
29.383562
77
0.582751
38ac1b7fda3674af072337fbf4402026b807f57c
2,061
py
Python
fastgc/layers/conv.py
ppmlguy/fastgradclip
0d8bff42ab13fa3471c520a2823050ccf0ff4a21
[ "MIT" ]
2
2020-10-16T10:14:25.000Z
2021-03-25T17:19:34.000Z
fastgc/layers/conv.py
ppmlguy/fastgradclip
0d8bff42ab13fa3471c520a2823050ccf0ff4a21
[ "MIT" ]
null
null
null
fastgc/layers/conv.py
ppmlguy/fastgradclip
0d8bff42ab13fa3471c520a2823050ccf0ff4a21
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F import torch.nn.init as init from .base_layer import BasePGradLayer from fastgc.common.im2col import im2col_indices from fastgc.util import conv_outsize class Conv2d(nn.Conv2d): def __init__(self, in_channels, out_channels, kernel_size, stride=1, ...
34.932203
84
0.639981
f42827e5decf63c69b30914dd34d704f01dca20e
5,830
py
Python
tests/test_adapter.py
coldnight/parameter
70a9f5e21ebb78d526d074eea64a16242b129848
[ "Apache-2.0" ]
2
2017-08-08T03:30:25.000Z
2017-12-02T19:10:38.000Z
tests/test_adapter.py
coldnight/parameter
70a9f5e21ebb78d526d074eea64a16242b129848
[ "Apache-2.0" ]
null
null
null
tests/test_adapter.py
coldnight/parameter
70a9f5e21ebb78d526d074eea64a16242b129848
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding:utf-8 -*- """This module tests adapters.""" from __future__ import print_function, division, unicode_literals import json import unittest try: from urllib import urlencode except ImportError: from urllib.parse import urlencode from tornado import testing from tornado import...
28.719212
79
0.558662
10912837c0beba991784d30a10752f387643eb91
2,303
py
Python
conjure-python-core/src/test/resources/types/expected/package_name/product/__init__.py
gabeboning/conjure-python
f5747b62197703bc898432435407eca419983f17
[ "Apache-2.0" ]
null
null
null
conjure-python-core/src/test/resources/types/expected/package_name/product/__init__.py
gabeboning/conjure-python
f5747b62197703bc898432435407eca419983f17
[ "Apache-2.0" ]
null
null
null
conjure-python-core/src/test/resources/types/expected/package_name/product/__init__.py
gabeboning/conjure-python
f5747b62197703bc898432435407eca419983f17
[ "Apache-2.0" ]
null
null
null
from .._impl import ( product_AliasAsMapKeyExample as AliasAsMapKeyExample, product_AnyExample as AnyExample, product_AnyMapExample as AnyMapExample, product_BearerTokenAliasExample as BearerTokenAliasExample, product_BearerTokenExample as BearerTokenExample, product_BinaryAliasExample as Binary...
47
67
0.83934
8e09bc2674b6e9cd4af1681cc851942f63ba78ca
2,734
py
Python
hazma/pbh.py
LoganAMorrison/Hazma
e9612729767ff48d5ce50633393f81ee021242d2
[ "MIT" ]
6
2019-07-30T18:14:43.000Z
2020-10-25T04:58:44.000Z
hazma/pbh.py
LoganAMorrison/Hazma
e9612729767ff48d5ce50633393f81ee021242d2
[ "MIT" ]
8
2017-12-19T08:06:59.000Z
2021-04-22T02:15:26.000Z
hazma/pbh.py
LoganAMorrison/Hazma
e9612729767ff48d5ce50633393f81ee021242d2
[ "MIT" ]
1
2020-04-01T11:08:49.000Z
2020-04-01T11:08:49.000Z
import numpy as np import pandas as pd from pkg_resources import resource_filename from scipy.interpolate import interp1d from hazma.parameters import g_to_MeV, MeV_to_g from hazma.theory import TheoryDec class PBH(TheoryDec): """ A creative implementation of PBH dark matter as a `TheoryDec`. """ de...
28.185567
88
0.614484
843f98fcc6f99ee68b4a570f40023be50b8c1de5
2,961
py
Python
build.py
skydark/matools
c658dd36bf154482dbe344d5cae0686135a59607
[ "MIT" ]
1
2018-07-12T16:15:50.000Z
2018-07-12T16:15:50.000Z
build.py
skydark/matools
c658dd36bf154482dbe344d5cae0686135a59607
[ "MIT" ]
null
null
null
build.py
skydark/matools
c658dd36bf154482dbe344d5cae0686135a59607
[ "MIT" ]
null
null
null
#/usr/bin/python3 # -*- coding: utf-8 -*- import os from card import MACardList, MACardToDB from generator import MAGenerator from utils import copytree, copyfiles from mapngdecoder import decrypt def build_viewer_face(root_dir, out_dir): copyfiles(os.path.join(root_dir, 'download', 'image', 'face'), out_dir, ...
34.430233
82
0.647754
90f249ec88d23bed7f700e224eb2b7cc94701850
160
py
Python
capcom/census/census.py
rcthomas/capcom
e72c41da046e05d8450dfa7297cb5dee5a206daa
[ "BSD-3-Clause" ]
1
2015-07-24T21:32:22.000Z
2015-07-24T21:32:22.000Z
capcom/census/census.py
rcthomas/capcom
e72c41da046e05d8450dfa7297cb5dee5a206daa
[ "BSD-3-Clause" ]
null
null
null
capcom/census/census.py
rcthomas/capcom
e72c41da046e05d8450dfa7297cb5dee5a206daa
[ "BSD-3-Clause" ]
null
null
null
class Census ( object ) : def __init__( self, selector ) : self.selector = selector def __call__( self ) : raise NotImplementedError
17.777778
36
0.61875
d154c10b0a3dfdaf66a10fc874a61a11a7581a8a
6,683
py
Python
tests/test_ans_devices/driver_controller.py
Miki-Jin/python-openimu
9aa2aab967e7328320053ab335d285415fe49e31
[ "Apache-2.0" ]
null
null
null
tests/test_ans_devices/driver_controller.py
Miki-Jin/python-openimu
9aa2aab967e7328320053ab335d285415fe49e31
[ "Apache-2.0" ]
null
null
null
tests/test_ans_devices/driver_controller.py
Miki-Jin/python-openimu
9aa2aab967e7328320053ab335d285415fe49e31
[ "Apache-2.0" ]
null
null
null
"""This module defines the `ProcessController` class which runs app as a subprocess and can write to it and read from it to get structured output. """ import logging import subprocess from distutils.spawn import find_executable from typing import Union, List, Optional from io_manager import IoManager from constants im...
34.807292
199
0.569056
ebe7efadcec8ee63fe3cf9c85c3cac90bf45cd94
1,248
py
Python
compress_images.py
jmball/compress_images
ca2524e4f28d111cafd1d28207c6eaca0d41d3b3
[ "MIT" ]
null
null
null
compress_images.py
jmball/compress_images
ca2524e4f28d111cafd1d28207c6eaca0d41d3b3
[ "MIT" ]
null
null
null
compress_images.py
jmball/compress_images
ca2524e4f28d111cafd1d28207c6eaca0d41d3b3
[ "MIT" ]
null
null
null
"""Compress image files.""" import argparse import pathlib import PIL.Image def get_args(): """Get CLI arguments.""" parser = argparse.ArgumentParser() parser.add_argument("--path", default="", help="File or folder path.") parser.add_argument( "--quality", type=int, default=30, help="Compres...
24
86
0.608974
f12bf5a95e36bfa3144121510669839521c8100f
15,647
py
Python
scripts/classical/small_verify/script_t1.py
nadiahpk/inferring-undiscovered-species-extinctions
162710eac548a9c869233e5a6a64ed10d60733f5
[ "Unlicense" ]
2
2019-04-22T16:02:15.000Z
2020-12-04T02:39:17.000Z
scripts/classical/small_verify/script_t1.py
nadiahpk/inferring-undiscovered-species-extinctions
162710eac548a9c869233e5a6a64ed10d60733f5
[ "Unlicense" ]
null
null
null
scripts/classical/small_verify/script_t1.py
nadiahpk/inferring-undiscovered-species-extinctions
162710eac548a9c869233e5a6a64ed10d60733f5
[ "Unlicense" ]
null
null
null
import numpy as np import scipy.stats as stats import matplotlib.pyplot as plt import pickle from small_verify_fncs import get_coverage_estimates, get_example import sys sys.path.insert(0,'../../../undetected_extinctions') # so I can import the undetected extinctions package from undetected_extinctions import find_U...
31.294
117
0.440979
438f45499636c44889d35d48998e29037a16cd13
1,153
py
Python
src/logger.py
hunterbly/TalkingBot
683a043af91909728c39eb949d90af55be7c6475
[ "Apache-2.0" ]
null
null
null
src/logger.py
hunterbly/TalkingBot
683a043af91909728c39eb949d90af55be7c6475
[ "Apache-2.0" ]
null
null
null
src/logger.py
hunterbly/TalkingBot
683a043af91909728c39eb949d90af55be7c6475
[ "Apache-2.0" ]
null
null
null
import sys import logging def setup_logger(name = __name__, file_level = "debug", stream_level = "info"): level_dict = {"debug": logging.DEBUG, "info": logging.INFO, "warning": logging.WARNING, "error": logging...
27.452381
62
0.620989
7f07f389bb6e0ba04f7ff1f499f5436bcece1817
1,983
py
Python
scripts/test2.py
ryujaehun/tenset
aaa91e48f997e4659ca318661b7be2cb5237b29d
[ "Zlib", "Unlicense", "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0" ]
null
null
null
scripts/test2.py
ryujaehun/tenset
aaa91e48f997e4659ca318661b7be2cb5237b29d
[ "Zlib", "Unlicense", "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0" ]
null
null
null
scripts/test2.py
ryujaehun/tenset
aaa91e48f997e4659ca318661b7be2cb5237b29d
[ "Zlib", "Unlicense", "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0" ]
null
null
null
#!/usr/bin/env python import subprocess import os from datetime import datetime import torch import threading today = datetime.today().strftime('%Y-%m-%d') sem = threading.Semaphore(torch.cuda.device_count()) idx = 0 os.makedirs(f"log/{today}", exist_ok=True) maml = [False,True] loss = ['rmse','rankNetLoss','lambdaRa...
35.410714
202
0.602118
ac97de89a81c6ea76d190ffb491d72c81b8eebef
2,301
py
Python
apps/accounts/migrations/0001_initial.py
ramseylove/project_management_api
9c76c4464baf7f9af6c977a42ccd7eb3ce205c7b
[ "MIT" ]
null
null
null
apps/accounts/migrations/0001_initial.py
ramseylove/project_management_api
9c76c4464baf7f9af6c977a42ccd7eb3ce205c7b
[ "MIT" ]
null
null
null
apps/accounts/migrations/0001_initial.py
ramseylove/project_management_api
9c76c4464baf7f9af6c977a42ccd7eb3ce205c7b
[ "MIT" ]
null
null
null
# Generated by Django 3.1.7 on 2021-08-24 18:23 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0012_alter_user_first_name_max_length'), ] operations = [ migrations.CreateMode...
52.295455
266
0.633638
4da587a71c7439096cc90e9f67f7f5cfa4f2cabd
88
py
Python
carto_renderer/__init__.py
EdsonGermano/socrata-platform-carto-renderer
675b4abb00317b7bc8fdcb57ff86376e5f044378
[ "Apache-2.0" ]
null
null
null
carto_renderer/__init__.py
EdsonGermano/socrata-platform-carto-renderer
675b4abb00317b7bc8fdcb57ff86376e5f044378
[ "Apache-2.0" ]
7
2015-08-03T21:14:06.000Z
2020-03-31T17:36:03.000Z
carto_renderer/__init__.py
EdsonGermano/socrata-platform-carto-renderer
675b4abb00317b7bc8fdcb57ff86376e5f044378
[ "Apache-2.0" ]
1
2017-09-19T18:40:22.000Z
2017-09-19T18:40:22.000Z
""" Flask service that will take JSON blobs containing vector tiles and style info. """
22
79
0.75
f5f860a5a03fa6a3930810d57e2b491b7f467f07
1,211
py
Python
tests/extmod/vfs_fat_oldproto.py
rodgergr/pycom-micropython-sigfox
50a31befc40a39b1e4c3513f20da968792227b0e
[ "MIT" ]
null
null
null
tests/extmod/vfs_fat_oldproto.py
rodgergr/pycom-micropython-sigfox
50a31befc40a39b1e4c3513f20da968792227b0e
[ "MIT" ]
null
null
null
tests/extmod/vfs_fat_oldproto.py
rodgergr/pycom-micropython-sigfox
50a31befc40a39b1e4c3513f20da968792227b0e
[ "MIT" ]
1
2019-09-22T01:28:52.000Z
2019-09-22T01:28:52.000Z
try: import uerrno try: import uos_vfs as uos except ImportError: import uos except ImportError: print("SKIP") raise SystemExit try: uos.mkfat except AttributeError: print("SKIP") raise SystemExit class RAMFS_OLD: SEC_SIZE = 512 def __init__(self, blocks): ...
19.532258
65
0.58877
d98dc7d08ce94494570839e222ec7e9f497d0034
67
py
Python
ArcFace/__init__.py
liuwuliuyun/CFDS
9e86ace020b1191365e0ee5aca4c8614ebc4911b
[ "MIT" ]
1
2018-12-22T02:19:19.000Z
2018-12-22T02:19:19.000Z
ArcFace/__init__.py
liuwuliuyun/CFDS
9e86ace020b1191365e0ee5aca4c8614ebc4911b
[ "MIT" ]
null
null
null
ArcFace/__init__.py
liuwuliuyun/CFDS
9e86ace020b1191365e0ee5aca4c8614ebc4911b
[ "MIT" ]
null
null
null
from .extractor import extractor from .yliu_aligner import aligner
22.333333
33
0.850746
5dcbdfa65d35818a4dce870eac410d317ed3e93d
11,119
py
Python
tests/python/unittest/test_gluon_rnn.py
IIMarch/mxnet
64c35f2d41f5bad3f9cbf4d4fda9cf3bf3dadb4b
[ "Apache-2.0" ]
4
2017-11-17T07:28:09.000Z
2019-07-23T06:24:16.000Z
tests/python/unittest/test_gluon_rnn.py
IIMarch/mxnet
64c35f2d41f5bad3f9cbf4d4fda9cf3bf3dadb4b
[ "Apache-2.0" ]
null
null
null
tests/python/unittest/test_gluon_rnn.py
IIMarch/mxnet
64c35f2d41f5bad3f9cbf4d4fda9cf3bf3dadb4b
[ "Apache-2.0" ]
2
2019-06-12T12:40:20.000Z
2020-11-03T14:33:14.000Z
# 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"); you may not u...
45.199187
124
0.643763
895c580de251b978ea0bd673d3e79abcc37a9497
1,947
py
Python
utils/train.py
yueatsprograms/UDA_Self_Supervision
b256316283e74b5d1f16777f029c384ee9b6e2e7
[ "Unlicense" ]
77
2019-09-27T02:21:48.000Z
2022-01-22T18:19:47.000Z
utils/train.py
yueatsprograms/UDA_Self_Supervision
b256316283e74b5d1f16777f029c384ee9b6e2e7
[ "Unlicense" ]
7
2019-12-25T06:27:54.000Z
2021-09-28T11:19:28.000Z
utils/train.py
yueatsprograms/UDA_Self_Supervision
b256316283e74b5d1f16777f029c384ee9b6e2e7
[ "Unlicense" ]
18
2019-10-07T02:26:20.000Z
2021-09-19T05:30:32.000Z
import torch from utils.get_mmd import get_mmd def test(dataloader, model): model.eval() correct = 0.0 total = 0.0 for batch_idx, (inputs, labels) in enumerate(dataloader): inputs, labels = inputs.cuda(), labels.cuda() with torch.no_grad(): outputs = model(inputs) _,...
35.4
103
0.608629
90d8ed3b4df760391fa56e3be8df20fb500ed3be
1,569
py
Python
tests/test_registry.py
rafaelrds/python-statemachine
636961d7f23faa66ada62e139cff44dff08f4e8d
[ "MIT" ]
1
2019-12-04T04:39:45.000Z
2019-12-04T04:39:45.000Z
tests/test_registry.py
FelkvnSinnvtel/python-statemachine
636961d7f23faa66ada62e139cff44dff08f4e8d
[ "MIT" ]
null
null
null
tests/test_registry.py
FelkvnSinnvtel/python-statemachine
636961d7f23faa66ada62e139cff44dff08f4e8d
[ "MIT" ]
null
null
null
# coding: utf-8 from __future__ import absolute_import, unicode_literals import mock import pytest def test_should_register_a_state_machine(): from statemachine import StateMachine, State, registry class CampaignMachine(StateMachine): "A workflow machine" draft = State('Draft', initial=True)...
27.051724
94
0.72594
4b483af26b27d5c60b10cc101f5caa6d0b4f4af5
485
py
Python
voxel_globe/ingest/tasks.py
ngageoint/voxel-globe
91f386de652b704942165889c10468b2c4cf4eec
[ "MIT" ]
28
2015-07-27T23:57:24.000Z
2020-04-05T15:10:52.000Z
voxel_globe/ingest/tasks.py
VisionSystemsInc/voxel_globe
6eb3fca5586726428e9d914f7b730ca164c64a52
[ "MIT" ]
50
2016-02-11T15:50:22.000Z
2016-10-27T22:38:27.000Z
voxel_globe/ingest/tasks.py
ngageoint/voxel-globe
91f386de652b704942165889c10468b2c4cf4eec
[ "MIT" ]
8
2015-07-27T19:22:03.000Z
2021-01-04T09:44:48.000Z
from voxel_globe.common_tasks import shared_task, VipTask from celery.utils.log import get_task_logger logger = get_task_logger(__name__) @shared_task(base=VipTask, bind=True) def cleanup(self, upload_session_id): ''' Clean up after successful ingest Currently this only entails removing the upload session ...
28.529412
77
0.802062
f84869c212024707514ed152b3d4cfb91037324d
1,460
py
Python
examples/Old Examples/use_parameter_class.py
ongjj323/DNPLab
09fd9f21c3c48a3f122d0b0295cc982f689a9842
[ "MIT" ]
4
2020-09-23T08:09:33.000Z
2022-02-10T22:02:11.000Z
examples/Old Examples/use_parameter_class.py
ongjj323/DNPLab
09fd9f21c3c48a3f122d0b0295cc982f689a9842
[ "MIT" ]
126
2020-09-16T22:25:59.000Z
2022-03-29T17:15:27.000Z
examples/Old Examples/use_parameter_class.py
ongjj323/DNPLab
09fd9f21c3c48a3f122d0b0295cc982f689a9842
[ "MIT" ]
5
2020-09-24T20:57:31.000Z
2021-08-19T01:52:16.000Z
"""This example shows ways to use Parameter class""" import sys sys.path.append("..") import dnplab from dnplab.dnpHydration import Parameter """1. Create a Child Parameter Class""" class MyParam(Parameter): pass """2. Getting and Setting Parameters""" param = MyParam() # Setting parameter: Class way param.e...
20.56338
83
0.703425
b21783c1a6759d84d4b0b917ce0478ab609ba77b
1,251
py
Python
bottle_beaker.py
Infogroep/bottle-beaker
cc1be70ffc9e83046ae4d59892e92ed5a78d08f6
[ "MIT" ]
18
2015-01-13T09:13:27.000Z
2020-09-07T05:15:21.000Z
bottle_beaker.py
Infogroep/bottle-beaker
cc1be70ffc9e83046ae4d59892e92ed5a78d08f6
[ "MIT" ]
4
2015-11-04T17:45:05.000Z
2019-08-05T17:00:39.000Z
bottle_beaker.py
Infogroep/bottle-beaker
cc1be70ffc9e83046ae4d59892e92ed5a78d08f6
[ "MIT" ]
5
2015-03-20T20:58:20.000Z
2020-01-14T20:58:26.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import bottle import inspect import beaker from beaker import middleware class BeakerPlugin(object): name = 'beaker' def __init__(self, keyword='beaker'): """ :param keyword: Keyword used to inject beaker in a route """ self.keywor...
30.512195
72
0.572342
7e0637d41c809bece8a98c86cb86714e75d8272d
5,920
py
Python
vivisect/analysis/generic/switchcase.py
cmaruti/vivisect
828a9af1b662d6417cf4c78f20a4ba37a1b3b670
[ "ECL-2.0", "Apache-2.0" ]
1
2020-12-23T19:23:17.000Z
2020-12-23T19:23:17.000Z
vivisect/analysis/generic/switchcase.py
cmaruti/vivisect
828a9af1b662d6417cf4c78f20a4ba37a1b3b670
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
vivisect/analysis/generic/switchcase.py
cmaruti/vivisect
828a9af1b662d6417cf4c78f20a4ba37a1b3b670
[ "ECL-2.0", "Apache-2.0" ]
1
2020-12-23T19:23:58.000Z
2020-12-23T19:23:58.000Z
''' Analysis plugin for supporting WorkspaceEmulators during analysis pass. Finds and connects Switch Cases, most specifically from Microsoft. ''' import envi import envi.archs.i386 as e_i386 import vivisect import vivisect.analysis.generic.codeblocks as vagc def analyzeJmp(amod, emu, op, starteip): ''' Top ...
33.446328
132
0.640541
2f2482ed9a963156174688921187259b6062325d
504
py
Python
corehq/messaging/scheduling/migrations/0004_timedschedule_start_offset.py
kkrampa/commcare-hq
d64d7cad98b240325ad669ccc7effb07721b4d44
[ "BSD-3-Clause" ]
1
2020-05-05T13:10:01.000Z
2020-05-05T13:10:01.000Z
corehq/messaging/scheduling/migrations/0004_timedschedule_start_offset.py
kkrampa/commcare-hq
d64d7cad98b240325ad669ccc7effb07721b4d44
[ "BSD-3-Clause" ]
1
2019-12-09T14:00:14.000Z
2019-12-09T14:00:14.000Z
corehq/messaging/scheduling/migrations/0004_timedschedule_start_offset.py
MaciejChoromanski/commcare-hq
fd7f65362d56d73b75a2c20d2afeabbc70876867
[ "BSD-3-Clause" ]
5
2015-11-30T13:12:45.000Z
2019-07-01T19:27:07.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10.7 on 2017-07-26 22:19 from __future__ import unicode_literals from __future__ import absolute_import from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('scheduling', '0003_add_custom_metadata'), ] ...
22.909091
51
0.64881
be0326f7f16dae53e83af335c6e479ea456f230a
6,711
py
Python
parts/manifest.py
ghdrl95/Naver-Speech-Hackathon
10b4526d98ce535415cb91d24338790d9c175b63
[ "Apache-2.0" ]
1
2019-11-11T06:07:31.000Z
2019-11-11T06:07:31.000Z
parts/manifest.py
ghdrl95/Naver-Speech-Hackathon
10b4526d98ce535415cb91d24338790d9c175b63
[ "Apache-2.0" ]
null
null
null
parts/manifest.py
ghdrl95/Naver-Speech-Hackathon
10b4526d98ce535415cb91d24338790d9c175b63
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2019, NVIDIA CORPORATION. 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 ...
39.245614
120
0.550887