hexsha
stringlengths
40
40
size
int64
2
1.02M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
245
max_stars_repo_name
stringlengths
6
130
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
245
max_issues_repo_name
stringlengths
6
130
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
245
max_forks_repo_name
stringlengths
6
130
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
2
1.02M
avg_line_length
float64
1
958k
max_line_length
int64
1
987k
alphanum_fraction
float64
0
1
content_no_comment
stringlengths
0
1.01M
is_comment_constant_removed
bool
2 classes
is_sharp_comment_removed
bool
1 class
f7368bbc050950d0d9166ce07494a26c550aff3f
3,604
py
Python
sdk/python/pulumi_azure_native/apimanagement/v20191201/get_tag_by_product.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/apimanagement/v20191201/get_tag_by_product.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/apimanagement/v20191201/get_tag_by_product.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables __a...
32.468468
145
0.636515
import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables __all__ = [ 'GetTagByProductResult', 'AwaitableGetTagByProductResult', 'get_tag_by_product', ] @pulumi.output_type class GetTagByProductResult: def __i...
true
true
f7368d7d9df588d75941fb2cac77d3eec5ade79d
2,257
py
Python
ap_third_semester/compact_objects/figures/roche-lobe-radius.py
jacopok/notes
805ebe1be49bbd14c6b46b24055f9fc7d1cd2586
[ "Apache-2.0" ]
6
2019-10-10T13:10:57.000Z
2022-01-13T14:52:50.000Z
ap_third_semester/compact_objects/figures/roche-lobe-radius.py
jacopok/notes
805ebe1be49bbd14c6b46b24055f9fc7d1cd2586
[ "Apache-2.0" ]
null
null
null
ap_third_semester/compact_objects/figures/roche-lobe-radius.py
jacopok/notes
805ebe1be49bbd14c6b46b24055f9fc7d1cd2586
[ "Apache-2.0" ]
3
2019-10-03T16:20:19.000Z
2021-08-06T16:11:07.000Z
#%% import numpy as np import matplotlib.pyplot as plt from astropy.visualization import astropy_mpl_style plt.style.use(astropy_mpl_style) from matplotlib import rc rc('font',**{'family':'serif','serif':['Palatino']}) rc('text', usetex=True) rc('text.latex', preamble=r'''\usepackage{amsmath} \usepackage{phy...
23.030612
123
0.51883
import numpy as np import matplotlib.pyplot as plt from astropy.visualization import astropy_mpl_style plt.style.use(astropy_mpl_style) from matplotlib import rc rc('font',**{'family':'serif','serif':['Palatino']}) rc('text', usetex=True) rc('text.latex', preamble=r'''\usepackage{amsmath} \usepackage{physic...
true
true
f7368e09b14dc6684b57afb09e9f7492ed3db638
169
py
Python
teamcat_service/docker_build/target/one_step_build/teamcat/doraemon/userauthority/urls.py
zhangyin2088/Teamcat
be9be8d7c1e58c8d2d22ab78d25783d9aee4de71
[ "Apache-2.0" ]
6
2018-11-26T08:42:52.000Z
2020-06-01T08:33:48.000Z
teamcat_service/docker_build/target/one_step_build/teamcat/doraemon/userauthority/urls.py
zhangyin2088/Teamcat
be9be8d7c1e58c8d2d22ab78d25783d9aee4de71
[ "Apache-2.0" ]
null
null
null
teamcat_service/docker_build/target/one_step_build/teamcat/doraemon/userauthority/urls.py
zhangyin2088/Teamcat
be9be8d7c1e58c8d2d22ab78d25783d9aee4de71
[ "Apache-2.0" ]
1
2019-01-22T06:45:36.000Z
2019-01-22T06:45:36.000Z
#coding=utf-8 # coding=utf-8 ''' Created on 2014-1-5 @author: ETHAN ''' from django.conf.urls import patterns,url urlpatterns = patterns( )
10.5625
41
0.591716
from django.conf.urls import patterns,url urlpatterns = patterns( )
true
true
f7368e7258b8fca34fe7355cadbf4b4365596283
1,203
py
Python
lambda/lambda_function.py
kykasper/konomania-bot
0649d4f9c7ee47717e79f96558ba914b81ea5ec2
[ "MIT" ]
null
null
null
lambda/lambda_function.py
kykasper/konomania-bot
0649d4f9c7ee47717e79f96558ba914b81ea5ec2
[ "MIT" ]
null
null
null
lambda/lambda_function.py
kykasper/konomania-bot
0649d4f9c7ee47717e79f96558ba914b81ea5ec2
[ "MIT" ]
null
null
null
import random import boto3 import tweepy import twitter_config # 先ほど取得した各種キーを代入する CK=twitter_config.CONSUMER_KEY CS=twitter_config.CONSUMER_SECRET AT=twitter_config.ACCESS_TOKEN AS=twitter_config.ACCESS_TOKEN_SECRET # Twitterオブジェクトの生成 auth = tweepy.OAuthHandler(CK, CS) auth.set_access_token(AT, AS) api = tweepy.API...
22.277778
58
0.686617
import random import boto3 import tweepy import twitter_config CK=twitter_config.CONSUMER_KEY CS=twitter_config.CONSUMER_SECRET AT=twitter_config.ACCESS_TOKEN AS=twitter_config.ACCESS_TOKEN_SECRET auth = tweepy.OAuthHandler(CK, CS) auth.set_access_token(AT, AS) api = tweepy.API(auth) TABLENAME = 'konomania-twee...
true
true
f7368ec2b4775aaf8bb0ac3b38ac65be9ce467a6
4,135
py
Python
src/qt/qtwebkit/Tools/Scripts/webkitpy/style/patchreader_unittest.py
viewdy/phantomjs
eddb0db1d253fd0c546060a4555554c8ee08c13c
[ "BSD-3-Clause" ]
1
2015-05-27T13:52:20.000Z
2015-05-27T13:52:20.000Z
src/qt/qtwebkit/Tools/Scripts/webkitpy/style/patchreader_unittest.py
mrampersad/phantomjs
dca6f77a36699eb4e1c46f7600cca618f01b0ac3
[ "BSD-3-Clause" ]
null
null
null
src/qt/qtwebkit/Tools/Scripts/webkitpy/style/patchreader_unittest.py
mrampersad/phantomjs
dca6f77a36699eb4e1c46f7600cca618f01b0ac3
[ "BSD-3-Clause" ]
1
2017-03-19T13:03:23.000Z
2017-03-19T13:03:23.000Z
# Copyright (C) 2010 Google Inc. All rights reserved. # Copyright (C) 2009 Torch Mobile Inc. # Copyright (C) 2009 Apple Inc. All rights reserved. # Copyright (C) 2010 Chris Jerdonek (chris.jerdonek@gmail.com) # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided t...
40.539216
78
0.698912
import unittest2 as unittest from webkitpy.common.system.filesystem_mock import MockFileSystem from webkitpy.style.patchreader import PatchReader class PatchReaderTest(unittest.TestCase): class MockTextFileReader(object): def __init__(self): self.passed_to_pr...
true
true
f7368f0142b75a58a4a5ca792952e50e33b0190d
1,180
py
Python
tests/test.py
RickBarretto/toCase
13720f3bcef017951c76dc41ba0dbe0fb355b66a
[ "MIT" ]
3
2021-04-20T00:36:09.000Z
2022-01-10T06:34:59.000Z
tests/test.py
RickBarretto/toCase
13720f3bcef017951c76dc41ba0dbe0fb355b66a
[ "MIT" ]
3
2022-01-10T07:27:25.000Z
2022-01-11T19:03:49.000Z
tests/test.py
RickBarretto/toCase
13720f3bcef017951c76dc41ba0dbe0fb355b66a
[ "MIT" ]
null
null
null
from rb_tocase import Case STRINGS = [ "Hello World Haha", "hello world haha", "HELLO WORLD HAHA", "Hello-World-Haha", "hello-world-haha", "HELLO-WORLD-HAHA", "Hello_World_Haha", "hello_world_haha", "HELLO_WORLD_HAHA", "HelloWorldHaha", "helloWorldHaha" ] for s in STRI...
20.344828
59
0.491525
from rb_tocase import Case STRINGS = [ "Hello World Haha", "hello world haha", "HELLO WORLD HAHA", "Hello-World-Haha", "hello-world-haha", "HELLO-WORLD-HAHA", "Hello_World_Haha", "hello_world_haha", "HELLO_WORLD_HAHA", "HelloWorldHaha", "helloWorldHaha" ] for s in STRI...
true
true
f7368fc63beb6a039e40aa6591c00659166ee1c4
100,108
py
Python
sdk/python/pulumi_azure/compute/scale_set.py
henriktao/pulumi-azure
f1cbcf100b42b916da36d8fe28be3a159abaf022
[ "ECL-2.0", "Apache-2.0" ]
109
2018-06-18T00:19:44.000Z
2022-02-20T05:32:57.000Z
sdk/python/pulumi_azure/compute/scale_set.py
henriktao/pulumi-azure
f1cbcf100b42b916da36d8fe28be3a159abaf022
[ "ECL-2.0", "Apache-2.0" ]
663
2018-06-18T21:08:46.000Z
2022-03-31T20:10:11.000Z
sdk/python/pulumi_azure/compute/scale_set.py
henriktao/pulumi-azure
f1cbcf100b42b916da36d8fe28be3a159abaf022
[ "ECL-2.0", "Apache-2.0" ]
41
2018-07-19T22:37:38.000Z
2022-03-14T10:56:26.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import...
55.064906
514
0.6852
import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import _utilities from . import outputs from ._inputs import * __all__ = ['ScaleSetArgs', 'ScaleSet'] @pulumi.input_type class ScaleSetArgs: def __init__(__self__, *, ...
true
true
f73690586d5e8f1f4408286c3b7cdd7949573d25
1,359
py
Python
nipype/interfaces/slicer/filtering/tests/test_auto_HistogramMatching.py
abelalez/nipype
878271bd906768f11c4cabd04e5d1895551ce8a7
[ "Apache-2.0" ]
8
2019-05-29T09:38:30.000Z
2021-01-20T03:36:59.000Z
nipype/interfaces/slicer/filtering/tests/test_auto_HistogramMatching.py
abelalez/nipype
878271bd906768f11c4cabd04e5d1895551ce8a7
[ "Apache-2.0" ]
12
2021-03-09T03:01:16.000Z
2022-03-11T23:59:36.000Z
nipype/interfaces/slicer/filtering/tests/test_auto_HistogramMatching.py
abelalez/nipype
878271bd906768f11c4cabd04e5d1895551ce8a7
[ "Apache-2.0" ]
1
2020-07-17T12:49:49.000Z
2020-07-17T12:49:49.000Z
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT from __future__ import unicode_literals from ..histogrammatching import HistogramMatching def test_HistogramMatching_inputs(): input_map = dict( args=dict(argstr='%s', ), environ=dict( nohash=True, usedefault=True, ...
32.357143
78
0.604121
from __future__ import unicode_literals from ..histogrammatching import HistogramMatching def test_HistogramMatching_inputs(): input_map = dict( args=dict(argstr='%s', ), environ=dict( nohash=True, usedefault=True, ), inputVolume=dict( argstr='%...
true
true
f73690b1f6595eaa7cdf4b609a365803b2d5007b
305
py
Python
api.py
PocketOfWeird/payoff-api
a28ad0e096f7b3678176bbe4a2942ce55e50a38a
[ "MIT" ]
null
null
null
api.py
PocketOfWeird/payoff-api
a28ad0e096f7b3678176bbe4a2942ce55e50a38a
[ "MIT" ]
null
null
null
api.py
PocketOfWeird/payoff-api
a28ad0e096f7b3678176bbe4a2942ce55e50a38a
[ "MIT" ]
null
null
null
# api.py from dotenv import load_dotenv load_dotenv() import flask from mongo import load_db app = flask.Flask(__name__) app.config["DEBUG"] = True db = load_db() @app.route("/", methods=["GET"]) def home(): return "<h1>Payoff API</h1><p>Back-end to the Payoff Budget Application</p>" app.run()
16.052632
80
0.691803
from dotenv import load_dotenv load_dotenv() import flask from mongo import load_db app = flask.Flask(__name__) app.config["DEBUG"] = True db = load_db() @app.route("/", methods=["GET"]) def home(): return "<h1>Payoff API</h1><p>Back-end to the Payoff Budget Application</p>" app.run()
true
true
f7369130a3ae90390c4f9f9366b7cb66ec5a2af2
27,920
py
Python
twilio/rest/api/v2010/account/usage/record/daily.py
angmunpri/twilio-python
d6ed1098f4bc06529d68f965eabdf87642ac441c
[ "MIT" ]
1
2022-03-12T08:56:51.000Z
2022-03-12T08:56:51.000Z
twilio/rest/api/v2010/account/usage/record/daily.py
angmunpri/twilio-python
d6ed1098f4bc06529d68f965eabdf87642ac441c
[ "MIT" ]
1
2022-03-12T06:00:21.000Z
2022-03-12T07:07:55.000Z
env/lib/python3.9/site-packages/twilio/rest/api/v2010/account/usage/record/daily.py
giannicrivello/AudioShack_BE
b50ba91b6904ac069fc37c98a691729932297b6a
[ "MIT" ]
null
null
null
# coding=utf-8 r""" This code was generated by \ / _ _ _| _ _ | (_)\/(_)(_|\/| |(/_ v1.0.0 / / """ from twilio.base import deserialize from twilio.base import serialize from twilio.base import values from twilio.base.instance_resource import InstanceResource from twilio.base.list_resource import L...
46.14876
121
0.688574
from twilio.base import deserialize from twilio.base import serialize from twilio.base import values from twilio.base.instance_resource import InstanceResource from twilio.base.list_resource import ListResource from twilio.base.page import Page class DailyList(ListResource): def __init__(self, version, account...
true
true
f73691c075bf67a53c8250db67cb736af7e0407e
2,610
py
Python
plugin/PyDemoPlugin.py
Rucadi/A64DBG_unofficial_git
10c721912dfe36db2bd8d1f0f3d5c9fec888f86c
[ "MIT" ]
3
2021-07-28T02:53:56.000Z
2022-03-03T18:11:28.000Z
plugin/PyDemoPlugin.py
Rucadi/A64DBG_unofficial_git
10c721912dfe36db2bd8d1f0f3d5c9fec888f86c
[ "MIT" ]
null
null
null
plugin/PyDemoPlugin.py
Rucadi/A64DBG_unofficial_git
10c721912dfe36db2bd8d1f0f3d5c9fec888f86c
[ "MIT" ]
4
2021-07-12T02:37:13.000Z
2022-02-09T08:43:55.000Z
''' This is really a very simple a64dbg python adp demo. ''' # import basic adp definition like error/event code from adpdef import * # import adp api entries from adp import * import os # adcpp output handler for api send2py def adcpp_output(data): print(data) # auto attach the Calculator process def attach_calc...
34.8
80
0.590805
from adpdef import * from adp import * import os def adcpp_output(data): print(data) def attach_calculator(name): procs = command2('plat shell ps -ef|grep %s' % (name)) lines = procs.split('\n') for l in lines: if l.find(name) < 0: continue print('Checking line: %s...
true
true
f73691cd9c4d84b3f0a8796e6cae56b20059b9c9
521
py
Python
awwardapp/forms.py
Gakur/awwardsapp1
994ed6cdec618c688b2b281e6dbd302a0aab39b1
[ "MIT" ]
null
null
null
awwardapp/forms.py
Gakur/awwardsapp1
994ed6cdec618c688b2b281e6dbd302a0aab39b1
[ "MIT" ]
null
null
null
awwardapp/forms.py
Gakur/awwardsapp1
994ed6cdec618c688b2b281e6dbd302a0aab39b1
[ "MIT" ]
null
null
null
from .models import Projects,Rates,Comments,Profile from django import forms class RateForm(forms.ModelForm): class Meta: model=Rates exclude=['user','project'] class PostForm(forms.ModelForm): class Meta: model=Projects exclude=['user','design','usability','content'] class ...
20.84
55
0.652591
from .models import Projects,Rates,Comments,Profile from django import forms class RateForm(forms.ModelForm): class Meta: model=Rates exclude=['user','project'] class PostForm(forms.ModelForm): class Meta: model=Projects exclude=['user','design','usability','content'] class ...
true
true
f736921b910f40a58969432b92bbceb379a8d101
2,290
py
Python
Examples/Image/Detection/utils/annotations/LabelMeConverter.py
burhandodhy/CNTK
fcdeef63d0192c7b4b7428b14c1f9750d6c1de2e
[ "MIT" ]
17,702
2016-01-25T14:03:01.000Z
2019-05-06T09:23:41.000Z
Examples/Image/Detection/utils/annotations/LabelMeConverter.py
burhandodhy/CNTK
fcdeef63d0192c7b4b7428b14c1f9750d6c1de2e
[ "MIT" ]
3,489
2016-01-25T13:32:09.000Z
2019-05-03T11:29:15.000Z
Examples/Image/Detection/utils/annotations/LabelMeConverter.py
burhandodhy/CNTK
fcdeef63d0192c7b4b7428b14c1f9750d6c1de2e
[ "MIT" ]
5,180
2016-01-25T14:02:12.000Z
2019-05-06T04:24:28.000Z
import os import xml.etree.ElementTree as ET import csv filepath = "C:/Your/Folder/Labelme/Files/" # set path of Labelme XML Files here include slash at end of path for filename in os.listdir(filepath): try: file = filepath + filename tree = ET.parse(file) root = tree.getroot() o...
33.676471
117
0.484279
import os import xml.etree.ElementTree as ET import csv filepath = "C:/Your/Folder/Labelme/Files/" for filename in os.listdir(filepath): try: file = filepath + filename tree = ET.parse(file) root = tree.getroot() outputpath = filepath + "Parsed/" if not os.path.exists(o...
true
true
f736923381dfd439c1e66c2dcea9e5600c2a52c6
10,995
py
Python
ucsmsdk/mometa/mgmt/MgmtEntity.py
Kego/ucsmsdk
244f283a5c295cf746110bb96686d079b19927ce
[ "Apache-2.0" ]
78
2015-11-30T14:10:05.000Z
2022-02-13T00:29:08.000Z
ucsmsdk/mometa/mgmt/MgmtEntity.py
Kego/ucsmsdk
244f283a5c295cf746110bb96686d079b19927ce
[ "Apache-2.0" ]
113
2015-11-20T09:42:46.000Z
2022-03-16T16:53:29.000Z
ucsmsdk/mometa/mgmt/MgmtEntity.py
Kego/ucsmsdk
244f283a5c295cf746110bb96686d079b19927ce
[ "Apache-2.0" ]
86
2015-12-12T08:22:18.000Z
2022-01-23T03:56:34.000Z
"""This module contains the general information for MgmtEntity ManagedObject.""" from ...ucsmo import ManagedObject from ...ucscoremeta import MoPropertyMeta, MoMeta from ...ucsmeta import VersionMeta class MgmtEntityConsts: CHASSIS_DEVICE_IO_STATE1_OK = "ok" CHASSIS_DEVICE_IO_STATE1_OPEN_ERROR = "openError"...
64.298246
374
0.703774
from ...ucsmo import ManagedObject from ...ucscoremeta import MoPropertyMeta, MoMeta from ...ucsmeta import VersionMeta class MgmtEntityConsts: CHASSIS_DEVICE_IO_STATE1_OK = "ok" CHASSIS_DEVICE_IO_STATE1_OPEN_ERROR = "openError" CHASSIS_DEVICE_IO_STATE1_READ_ERROR = "readError" CHASSIS_DEVICE_IO_STAT...
true
true
f736929e011696afd656cd65172379c9bf511215
1,057
py
Python
tests/test_TestSong.py
fabian-thomas/python-odesli
1cac20dfa2fc88ea855028124265dbde611e3cff
[ "MIT" ]
null
null
null
tests/test_TestSong.py
fabian-thomas/python-odesli
1cac20dfa2fc88ea855028124265dbde611e3cff
[ "MIT" ]
null
null
null
tests/test_TestSong.py
fabian-thomas/python-odesli
1cac20dfa2fc88ea855028124265dbde611e3cff
[ "MIT" ]
null
null
null
import unittest from odesli.Odesli import Odesli from odesli.entity.song.Song import Song EXPECTED_YOUTUBE_SONG = Song('VHb_XIql_gU', 'youtube', 'Kids', 'MGMT - Topic', 'https://i.ytimg.com/vi/VHb_XIql_gU/hqdefault.jpg', 480, 360, { 'youtube': 'https://www.youtube.com/watch?v=VHb_XIql_gU', 'youtubeMusic': 'https://mu...
37.75
267
0.687796
import unittest from odesli.Odesli import Odesli from odesli.entity.song.Song import Song EXPECTED_YOUTUBE_SONG = Song('VHb_XIql_gU', 'youtube', 'Kids', 'MGMT - Topic', 'https://i.ytimg.com/vi/VHb_XIql_gU/hqdefault.jpg', 480, 360, { 'youtube': 'https://www.youtube.com/watch?v=VHb_XIql_gU', 'youtubeMusic': 'https://mu...
true
true
f736936449f80682b0362945dd83c40eb0e8b0bd
25,824
py
Python
examples/distillation/distiller.py
deepbluesea/transformers
11a2317986aad6e9a72f542e31344cfb7c94cbab
[ "Apache-2.0" ]
1
2020-03-02T14:09:14.000Z
2020-03-02T14:09:14.000Z
examples/distillation/distiller.py
deepbluesea/transformers
11a2317986aad6e9a72f542e31344cfb7c94cbab
[ "Apache-2.0" ]
1
2021-06-02T00:34:50.000Z
2021-06-02T00:34:50.000Z
examples/distillation/distiller.py
deepbluesea/transformers
11a2317986aad6e9a72f542e31344cfb7c94cbab
[ "Apache-2.0" ]
1
2021-09-21T12:02:15.000Z
2021-09-21T12:02:15.000Z
# coding=utf-8 # Copyright 2019-present, the HuggingFace Inc. team and Facebook, Inc. # # 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 # # Un...
48
163
0.619114
import os import math import psutil import time from tensorboardX import SummaryWriter from tqdm import trange, tqdm import numpy as np import psutil import torch import torch.nn as nn import torch.nn.functional as F from torch.optim import AdamW from torch.utils.data.distributed import DistributedSample...
true
true
f73693a4682bea4ed02bdb055520c7339d597c43
26,017
py
Python
openpharmacophore/pharmacophore/dynophore.py
uibcdf/openpharmacophore
4f563fa206f6e7c081502acab97bb795d27bdeb9
[ "MIT" ]
14
2021-11-12T10:09:25.000Z
2022-03-18T08:24:16.000Z
openpharmacophore/pharmacophore/dynophore.py
uibcdf/openpharmacophore
4f563fa206f6e7c081502acab97bb795d27bdeb9
[ "MIT" ]
7
2021-11-05T01:37:57.000Z
2022-01-18T06:03:39.000Z
openpharmacophore/pharmacophore/dynophore.py
uibcdf/openpharmacophore
4f563fa206f6e7c081502acab97bb795d27bdeb9
[ "MIT" ]
3
2021-11-05T01:22:47.000Z
2021-12-12T03:57:09.000Z
# OpenPharmacophore from openpharmacophore._private_tools.exceptions import InvalidFileFormat, NoLigandsError, OpenPharmacophoreTypeError from openpharmacophore.pharmacophore.pharmacophoric_point import UniquePharmacophoricPoint from openpharmacophore import StructuredBasedPharmacophore from openpharmacophore import Ph...
41.827974
117
0.611523
from openpharmacophore._private_tools.exceptions import InvalidFileFormat, NoLigandsError, OpenPharmacophoreTypeError from openpharmacophore.pharmacophore.pharmacophoric_point import UniquePharmacophoricPoint from openpharmacophore import StructuredBasedPharmacophore from openpharmacophore import Pharmacophore from op...
true
true
f73694082f6555a6ed7e3da03bdda34c33f127d4
210
py
Python
tests/classes/simple_score.py
WiosoftCrafts/jsonclasses-pymongo
c76fdfc072705484b47b09e23c5498aea757dad7
[ "MIT" ]
2
2021-11-02T02:54:01.000Z
2021-12-02T10:38:18.000Z
tests/classes/simple_score.py
WiosoftCrafts/jsonclasses-pymongo
c76fdfc072705484b47b09e23c5498aea757dad7
[ "MIT" ]
1
2021-12-15T13:50:48.000Z
2021-12-15T13:50:48.000Z
tests/classes/simple_score.py
zhichao-github/jsonclasses-pymongo
eaf08e4342a08f484bf99d06a3bceae447925189
[ "MIT" ]
5
2021-07-22T06:30:05.000Z
2021-12-09T02:02:30.000Z
from __future__ import annotations from jsonclasses import jsonclass, types from jsonclasses_pymongo import pymongo @pymongo @jsonclass(class_graph='simple') class SimpleScore: name: str score: float
19.090909
40
0.8
from __future__ import annotations from jsonclasses import jsonclass, types from jsonclasses_pymongo import pymongo @pymongo @jsonclass(class_graph='simple') class SimpleScore: name: str score: float
true
true
f736941a68ff8e23204fe23f650e5b8157bc3b80
6,047
py
Python
eod/utils/general/saver_helper.py
scott-mao/EOD
f10e64de86c0f356ebf5c7e923f4042eec4207b1
[ "Apache-2.0" ]
1
2022-01-12T01:51:39.000Z
2022-01-12T01:51:39.000Z
eod/utils/general/saver_helper.py
YZW-explorer/EOD
f10e64de86c0f356ebf5c7e923f4042eec4207b1
[ "Apache-2.0" ]
null
null
null
eod/utils/general/saver_helper.py
YZW-explorer/EOD
f10e64de86c0f356ebf5c7e923f4042eec4207b1
[ "Apache-2.0" ]
null
null
null
# Standard Library import json import os import shutil # Import from third library import torch # Import from local from .log_helper import default_logger as logger from .registry_factory import SAVER_REGISTRY __all__ = ['Saver'] @SAVER_REGISTRY.register('base') class Saver(object): def __init__(self, save_cf...
38.762821
102
0.616339
import json import os import shutil import torch from .log_helper import default_logger as logger from .registry_factory import SAVER_REGISTRY __all__ = ['Saver'] @SAVER_REGISTRY.register('base') class Saver(object): def __init__(self, save_cfg, yml_path=None, work_dir='./'): self.save_cfg...
true
true
f7369443fb51db9f04c2745e818b9e65d0c03c5f
514
py
Python
test.py
messense/flake-network-timeout
53070048fd8b33dcdbf84f73df45c0d1a72bd4b7
[ "MIT" ]
null
null
null
test.py
messense/flake-network-timeout
53070048fd8b33dcdbf84f73df45c0d1a72bd4b7
[ "MIT" ]
null
null
null
test.py
messense/flake-network-timeout
53070048fd8b33dcdbf84f73df45c0d1a72bd4b7
[ "MIT" ]
null
null
null
from redis import Redis, StrictRedis r0 = StrictRedis.from_url('redis://localhost/0') r1 = StrictRedis.from_url('redis://localhost/0', socket_timeout=10) r2 = StrictRedis.from_url('redis://localhost/0?socket_timeout=10') r3 = StrictRedis() url1 = 'redis://localhost/0' r4 = StrictRedis.from_url(url1) r5 = StrictRedis....
25.7
67
0.717899
from redis import Redis, StrictRedis r0 = StrictRedis.from_url('redis://localhost/0') r1 = StrictRedis.from_url('redis://localhost/0', socket_timeout=10) r2 = StrictRedis.from_url('redis://localhost/0?socket_timeout=10') r3 = StrictRedis() url1 = 'redis://localhost/0' r4 = StrictRedis.from_url(url1) r5 = StrictRedis....
true
true
f736947afa737a0f0a193a290d69538e6c08baa1
28,733
py
Python
sdk/network/azure-mgmt-network/azure/mgmt/network/v2018_07_01/operations/_public_ip_prefixes_operations.py
vbarbaresi/azure-sdk-for-python
397ba46c51d001ff89c66b170f5576cf8f49c05f
[ "MIT" ]
8
2021-01-13T23:44:08.000Z
2021-03-17T10:13:36.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2018_07_01/operations/_public_ip_prefixes_operations.py
vbarbaresi/azure-sdk-for-python
397ba46c51d001ff89c66b170f5576cf8f49c05f
[ "MIT" ]
null
null
null
sdk/network/azure-mgmt-network/azure/mgmt/network/v2018_07_01/operations/_public_ip_prefixes_operations.py
vbarbaresi/azure-sdk-for-python
397ba46c51d001ff89c66b170f5576cf8f49c05f
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
48.128978
200
0.659312
from typing import TYPE_CHECKING import warnings from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.paging import ItemPaged from azure.core.pipeline import PipelineResponse from azure.core.pipeline.transport impor...
true
true
f736947fd033510d384b64e5023fa3cb054be305
252
py
Python
src/yafowil/plone/interfaces.py
gogobd/yafowil.plone
633a28dc3bbf018d84c6e399c31e26b8125399a5
[ "BSD-3-Clause" ]
1
2019-07-09T12:46:54.000Z
2019-07-09T12:46:54.000Z
src/yafowil/plone/interfaces.py
gogobd/yafowil.plone
633a28dc3bbf018d84c6e399c31e26b8125399a5
[ "BSD-3-Clause" ]
18
2015-10-09T22:39:00.000Z
2021-09-06T07:01:42.000Z
src/yafowil/plone/interfaces.py
gogobd/yafowil.plone
633a28dc3bbf018d84c6e399c31e26b8125399a5
[ "BSD-3-Clause" ]
3
2018-01-20T18:31:55.000Z
2021-06-10T14:00:01.000Z
from zope.publisher.interfaces.browser import IDefaultBrowserLayer class IYafowilLayer(IDefaultBrowserLayer): """YAFOWIL related browser layer. """ class IYafowilDemoLayer(IYafowilLayer): """YAFOWIL demos related browser layer. """
21
66
0.753968
from zope.publisher.interfaces.browser import IDefaultBrowserLayer class IYafowilLayer(IDefaultBrowserLayer): class IYafowilDemoLayer(IYafowilLayer):
true
true
f73694a4e9e1db43beb7442bfe545c1eaeee88b0
181
py
Python
lib/pylint/test/input/func_noerror_builtin_module_test.py
willemneal/Docky
d3504e1671b4a6557468234c263950bfab461ce4
[ "MIT" ]
3
2018-11-25T01:09:55.000Z
2021-08-24T01:56:36.000Z
lib/pylint/test/input/func_noerror_builtin_module_test.py
willemneal/Docky
d3504e1671b4a6557468234c263950bfab461ce4
[ "MIT" ]
null
null
null
lib/pylint/test/input/func_noerror_builtin_module_test.py
willemneal/Docky
d3504e1671b4a6557468234c263950bfab461ce4
[ "MIT" ]
3
2018-11-09T03:38:09.000Z
2020-02-24T06:26:10.000Z
"""test import from a builtin module""" from __future__ import absolute_import __revision__ = None from math import log10 def log10_2(): """bla bla bla""" return log10(2)
18.1
39
0.712707
from __future__ import absolute_import __revision__ = None from math import log10 def log10_2(): return log10(2)
true
true
f7369619cd01529ee372590cea33f5f73b48f876
5,341
py
Python
spikeforest_analysis/compare_sortings_with_truth.py
tjd2002/spikeforest2
2e393564b858b2995aa2ccccd9bd73065681b5de
[ "Apache-2.0" ]
null
null
null
spikeforest_analysis/compare_sortings_with_truth.py
tjd2002/spikeforest2
2e393564b858b2995aa2ccccd9bd73065681b5de
[ "Apache-2.0" ]
null
null
null
spikeforest_analysis/compare_sortings_with_truth.py
tjd2002/spikeforest2
2e393564b858b2995aa2ccccd9bd73065681b5de
[ "Apache-2.0" ]
null
null
null
import spikeextractors as si #import spikewidgets as sw import spiketoolkit as st import mlprocessors as mlpr import json from cairio import client as ca import numpy as np from copy import deepcopy def compare_sortings_with_truth(sortings,compute_resource,num_workers=None): print('>>>>>> compare sortings with tru...
39.272059
138
0.67684
import spikeextractors as si import spiketoolkit as st import mlprocessors as mlpr import json from cairio import client as ca import numpy as np from copy import deepcopy def compare_sortings_with_truth(sortings,compute_resource,num_workers=None): print('>>>>>> compare sortings with truth') container='sha1:/...
true
true
f7369630d3cb8bb5dfbc51e5029c0582cfc8043a
40,331
py
Python
imgaug/augmenters/weather.py
dynamicguy/imgaug
f58c06323eb04416c76de1f18952ca5875caf883
[ "MIT" ]
4
2018-11-24T15:31:36.000Z
2020-06-23T02:52:45.000Z
imgaug/augmenters/weather.py
LU-K-Brant/imgaug
f58c06323eb04416c76de1f18952ca5875caf883
[ "MIT" ]
null
null
null
imgaug/augmenters/weather.py
LU-K-Brant/imgaug
f58c06323eb04416c76de1f18952ca5875caf883
[ "MIT" ]
null
null
null
""" Augmenters that create wheather effects. Do not import directly from this file, as the categorization is not final. Use instead:: from imgaug import augmenters as iaa and then e.g.:: seq = iaa.Sequential([iaa.Snowflakes()]) List of augmenters: * FastSnowyLandscape * Clouds * Fog * Clou...
51.972938
153
0.67008
from __future__ import print_function, division, absolute_import import numpy as np import cv2 from . import meta, arithmetic, blur, contrast from .. import imgaug as ia from .. import parameters as iap class FastSnowyLandscape(meta.Augmenter): def __init__(self, lightness_threshold=(100, 255), lightness_multi...
true
true
f736973def1f41cb86774b9f7de381b49169e3ec
54,706
py
Python
numpy/core/multiarray.py
mprinc/numpy
73298871d6cb3f4e9c69cecd71ad1797ddad5c57
[ "BSD-3-Clause" ]
2
2021-06-11T12:31:32.000Z
2021-08-17T10:56:54.000Z
numpy/core/multiarray.py
mprinc/numpy
73298871d6cb3f4e9c69cecd71ad1797ddad5c57
[ "BSD-3-Clause" ]
null
null
null
numpy/core/multiarray.py
mprinc/numpy
73298871d6cb3f4e9c69cecd71ad1797ddad5c57
[ "BSD-3-Clause" ]
1
2021-01-04T06:47:33.000Z
2021-01-04T06:47:33.000Z
""" Create the numpy.core.multiarray namespace for backward compatibility. In v1.16 the multiarray and umath c-extension modules were merged into a single _multiarray_umath extension module. So we replicate the old namespace by importing from the extension module. """ import functools import warnings from . import o...
32.73848
128
0.616989
import functools import warnings from . import overrides from . import _multiarray_umath from ._multiarray_umath import * from ._multiarray_umath import ( _fastCopyAndTranspose, _flagdict, _insert, _reconstruct, _vec_string, _ARRAY_API, _monotonicity, _get_ndarray_c_version, _set_madvise_hugepage, ) ...
true
true
f7369800c65b85ddbc90b1daced3ea75009f89de
3,435
py
Python
sshgui_ext/python/test_dll.py
A-Little-Tiny-Cloud/SSH-GUI
c6808eac910397f89608343de93bd7fcb7fdbd96
[ "MIT" ]
null
null
null
sshgui_ext/python/test_dll.py
A-Little-Tiny-Cloud/SSH-GUI
c6808eac910397f89608343de93bd7fcb7fdbd96
[ "MIT" ]
null
null
null
sshgui_ext/python/test_dll.py
A-Little-Tiny-Cloud/SSH-GUI
c6808eac910397f89608343de93bd7fcb7fdbd96
[ "MIT" ]
null
null
null
''' python代码调用dll例程 dll功能为读写剪切板(自定义格式) ''' from ctypes import cdll, c_void_p, c_int, c_wchar_p class CExtDll: ''' 封装dll导出功能 1.写入格式是自定义的RemoteFileName,因此写入后,操作系统的粘贴不能操作. 2.读出格式支持两种,自定义的和系统的.因此操作系统的复制/剪切操作后,也可以读出. 3.系统剪切板同一类数据只保存一个,因此写入剪切板后,之前的自定义数据会被清空. 4.如果剪切板中存在两种可读数据(目前未出现,操作系统复制/剪切前会清空自定义...
27.261905
110
0.621543
''' python代码调用dll例程 dll功能为读写剪切板(自定义格式) ''' from ctypes import cdll, c_void_p, c_int, c_wchar_p class CExtDll: ''' 封装dll导出功能 1.写入格式是自定义的RemoteFileName,因此写入后,操作系统的粘贴不能操作. 2.读出格式支持两种,自定义的和系统的.因此操作系统的复制/剪切操作后,也可以读出. 3.系统剪切板同一类数据只保存一个,因此写入剪切板后,之前的自定义数据会被清空. 4.如果剪切板中存在两种可读数据(目前未出现,操作系统复制/剪切前会清空自定义...
false
true
f73698e4a7fa3c38471416e94c84cde618bd7112
15,979
py
Python
numpyro/infer/svi.py
vishalbelsare/numpyro
de94469f19388ff09b705754f407461163030fbe
[ "Apache-2.0" ]
1,394
2019-03-19T16:28:45.000Z
2022-03-31T18:03:26.000Z
numpyro/infer/svi.py
vishalbelsare/numpyro
de94469f19388ff09b705754f407461163030fbe
[ "Apache-2.0" ]
964
2019-03-21T05:02:01.000Z
2022-03-31T18:27:31.000Z
numpyro/infer/svi.py
vishalbelsare/numpyro
de94469f19388ff09b705754f407461163030fbe
[ "Apache-2.0" ]
163
2019-03-20T17:23:15.000Z
2022-03-31T13:39:29.000Z
# Copyright Contributors to the Pyro project. # SPDX-License-Identifier: Apache-2.0 from functools import namedtuple, partial import warnings import tqdm import jax from numpyro.util import _versiontuple if _versiontuple(jax.__version__) >= (0, 2, 25): from jax.example_libraries import optimizers else: fro...
39.9475
111
0.592403
from functools import namedtuple, partial import warnings import tqdm import jax from numpyro.util import _versiontuple if _versiontuple(jax.__version__) >= (0, 2, 25): from jax.example_libraries import optimizers else: from jax.experimental import optimizers from jax import jit, lax, random import jax....
true
true
f7369a79578fc82ca20769d486ae002da3e44f53
16,563
py
Python
src/optics_numpy.py
computational-imaging/DeepOpticsHDR
1180749b028dd21f6b7140c0538fe332bd29bb46
[ "BSD-3-Clause" ]
33
2020-08-19T05:54:02.000Z
2022-03-15T02:38:30.000Z
src/optics_numpy.py
computational-imaging/DeepOpticsHDR
1180749b028dd21f6b7140c0538fe332bd29bb46
[ "BSD-3-Clause" ]
null
null
null
src/optics_numpy.py
computational-imaging/DeepOpticsHDR
1180749b028dd21f6b7140c0538fe332bd29bb46
[ "BSD-3-Clause" ]
4
2020-09-16T14:26:47.000Z
2022-03-04T07:30:15.000Z
#Julie Chang and Chris Metzler 2020 import abc # import tensorflow as tf import numpy as np # import matplotlib as mpl # mpl.use('TKAgg') import matplotlib.pyplot as plt from PIL import Image from numpy.fft import ifftshift import fractions # import layers.optics_no_transpose as optics #import optics_no_transpose as ...
41.825758
161
0.613476
import abc import numpy as np import matplotlib.pyplot as plt from PIL import Image from numpy.fft import ifftshift import fractions from skimage.transform import resize from skimage.measure import block_reduce from scipy.ndimage import gaussian_filter import scipy.interpolate as interp from skimage.io import ...
true
true
f7369b3bc7c15d50e187bd0fc4166c97b810664c
6,406
py
Python
simba/process_data_log_old.py
justinshenk/simba
a58ccd0ceeda201c1452d186033ce6b25fbab564
[ "MIT" ]
172
2019-12-18T22:19:42.000Z
2022-03-29T01:58:25.000Z
simba/process_data_log_old.py
justinshenk/simba
a58ccd0ceeda201c1452d186033ce6b25fbab564
[ "MIT" ]
165
2020-01-10T19:05:16.000Z
2022-03-31T16:08:36.000Z
simba/process_data_log_old.py
justinshenk/simba
a58ccd0ceeda201c1452d186033ce6b25fbab564
[ "MIT" ]
80
2019-12-20T00:01:43.000Z
2022-03-29T16:20:10.000Z
import pandas as pd import os from configparser import ConfigParser from datetime import datetime import numpy as np def analyze_process_data_log(configini,chosenlist): dateTime = datetime.now().strftime('%Y%m%d%H%M%S') config = ConfigParser() configFile = str(configini) config.read(confi...
42.706667
146
0.568998
import pandas as pd import os from configparser import ConfigParser from datetime import datetime import numpy as np def analyze_process_data_log(configini,chosenlist): dateTime = datetime.now().strftime('%Y%m%d%H%M%S') config = ConfigParser() configFile = str(configini) config.read(confi...
true
true
f7369d706e35c6b3d484b5d59ae9bf2e31b5ddbb
2,014
py
Python
picpost/settings.py
kowito/picpost
d710b1a0db988f979aa711c79e1e4cf84eed26a7
[ "MIT" ]
null
null
null
picpost/settings.py
kowito/picpost
d710b1a0db988f979aa711c79e1e4cf84eed26a7
[ "MIT" ]
null
null
null
picpost/settings.py
kowito/picpost
d710b1a0db988f979aa711c79e1e4cf84eed26a7
[ "MIT" ]
null
null
null
import os BASE_DIR = os.path.dirname(os.path.dirname(__file__)) SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https') # Quick-start development settings - unsuitable for production # See https://docs.djangoproject.com/en/1.6/howto/deployment/checklist/ # SECURITY WARNING: keep the secret key used in product...
24.26506
71
0.726415
import os BASE_DIR = os.path.dirname(os.path.dirname(__file__)) SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https') SECRET_KEY = 'tk$i&&s(v*wu3l1$)p7*2@4w#d0dxev6%8v6$e$e!kf=j7y==_' DEBUG = True TEMPLATE_DEBUG = True TEMPLATE_DIRS = ( os.path.join(BASE_DIR, 'templates/'), ) ALLOWED_HOSTS = ['*']...
true
true
f7369d79a83366796cc1c9349b904d4c6c4934ce
846
py
Python
ML/learn/intro_convolution.py
qrsforever/workspace
53c7ce7ca7da62c9fbb3d991ae9e4e34d07ece5f
[ "MIT" ]
2
2017-06-07T03:20:42.000Z
2020-01-07T09:14:26.000Z
ML/learn/intro_convolution.py
qrsforever/workspace
53c7ce7ca7da62c9fbb3d991ae9e4e34d07ece5f
[ "MIT" ]
null
null
null
ML/learn/intro_convolution.py
qrsforever/workspace
53c7ce7ca7da62c9fbb3d991ae9e4e34d07ece5f
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # -*- coding: utf-8 -*- # @file intro_convolution.py # @brief # @author QRS # @blog qrsforever.github.io # @version 1.0 # @date 2019-06-03 20:52:26 ################################ jupyter-vim ####################################### # https://github.com/qrsforever/vim/blob/master/bundle/.configs/j...
28.2
85
0.41253
true
true
f7369d912ebf51f29680276faf3ab8e08c6cb647
279
py
Python
docs/guide/tutorial/chatbot/bot.py
teaglebuilt/bocadillo
b2138e77747d3ab9f87e4b352f6b7c1e72520fe1
[ "MIT" ]
434
2018-11-19T15:16:05.000Z
2022-02-19T03:18:52.000Z
docs/guide/tutorial/chatbot/bot.py
teaglebuilt/bocadillo
b2138e77747d3ab9f87e4b352f6b7c1e72520fe1
[ "MIT" ]
295
2018-11-20T15:11:17.000Z
2020-03-14T19:42:03.000Z
docs/guide/tutorial/chatbot/bot.py
teaglebuilt/bocadillo
b2138e77747d3ab9f87e4b352f6b7c1e72520fe1
[ "MIT" ]
62
2018-11-17T22:41:06.000Z
2021-09-11T17:45:59.000Z
# chatbot/bot.py from chatterbot import ChatBot from chatterbot.trainers import ChatterBotCorpusTrainer diego = ChatBot("Diego") trainer = ChatterBotCorpusTrainer(diego) trainer.train( "chatterbot.corpus.english.greetings", "chatterbot.corpus.english.conversations", )
23.25
55
0.795699
from chatterbot import ChatBot from chatterbot.trainers import ChatterBotCorpusTrainer diego = ChatBot("Diego") trainer = ChatterBotCorpusTrainer(diego) trainer.train( "chatterbot.corpus.english.greetings", "chatterbot.corpus.english.conversations", )
true
true
f7369da700db4433f77f08fc995b58f9c3d51fe1
3,373
py
Python
setup.py
cloudcomputingabc/volttron
6495e26e3185a7af8d0d79ad2586bdf8ea83992d
[ "Apache-2.0", "BSD-2-Clause" ]
406
2015-01-20T03:08:53.000Z
2022-03-31T20:59:07.000Z
setup.py
cloudcomputingabc/volttron
6495e26e3185a7af8d0d79ad2586bdf8ea83992d
[ "Apache-2.0", "BSD-2-Clause" ]
2,031
2015-01-05T21:35:45.000Z
2022-03-29T21:44:36.000Z
setup.py
cloudcomputingabc/volttron
6495e26e3185a7af8d0d79ad2586bdf8ea83992d
[ "Apache-2.0", "BSD-2-Clause" ]
219
2015-01-20T14:53:57.000Z
2022-03-06T00:37:41.000Z
# -*- coding: utf-8 -*- {{{ # vim: set fenc=utf-8 ft=python sw=4 ts=4 sts=4 et: # # Copyright 2020, Battelle Memorial Institute. # # 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...
43.24359
86
0.701749
import contextlib from setuptools import setup, find_packages from requirements import extras_require, install_requires with open('volttron/platform/__init__.py') as file: for line in file: if line.startswith('__version__'): with contextlib.suppress(IndexE...
true
true
f7369e481ec201e74c733b94b5e71e737efe3f28
399
py
Python
epibox/common/create_folder.py
anascacais/EpiBOX
23f8963c4a2f5457dd8773e6092b86b0db35e2c7
[ "MIT" ]
1
2021-07-14T10:03:54.000Z
2021-07-14T10:03:54.000Z
epibox/common/create_folder.py
anascacais/epibox
23f8963c4a2f5457dd8773e6092b86b0db35e2c7
[ "MIT" ]
null
null
null
epibox/common/create_folder.py
anascacais/epibox
23f8963c4a2f5457dd8773e6092b86b0db35e2c7
[ "MIT" ]
null
null
null
import os def create_folder(initial_dir, nb, service): directory = os.path.join(initial_dir, nb) directory = os.path.join(directory, service) if not os.path.exists(directory): os.makedirs(directory) print('Created patient directory -- ' + directory) else: prin...
24.9375
68
0.636591
import os def create_folder(initial_dir, nb, service): directory = os.path.join(initial_dir, nb) directory = os.path.join(directory, service) if not os.path.exists(directory): os.makedirs(directory) print('Created patient directory -- ' + directory) else: prin...
true
true
f7369e6db45ae6c0416bb4373eb5fe6cf60fab68
4,172
py
Python
conflowgen/tests/posthoc_analyses/test_inbound_to_outbound_capacity_utilization_analysis.py
1grasse/conflowgen
142330ab6427254109af3b86102a30a13144ba0c
[ "MIT" ]
5
2022-02-16T11:44:42.000Z
2022-02-24T20:02:17.000Z
conflowgen/tests/posthoc_analyses/test_inbound_to_outbound_capacity_utilization_analysis.py
1grasse/conflowgen
142330ab6427254109af3b86102a30a13144ba0c
[ "MIT" ]
90
2021-12-08T14:05:44.000Z
2022-03-24T08:53:31.000Z
conflowgen/tests/posthoc_analyses/test_inbound_to_outbound_capacity_utilization_analysis.py
1grasse/conflowgen
142330ab6427254109af3b86102a30a13144ba0c
[ "MIT" ]
5
2021-12-07T16:05:15.000Z
2022-02-16T08:24:07.000Z
import datetime import unittest from conflowgen.domain_models.container import Container from conflowgen.domain_models.data_types.container_length import ContainerLength from conflowgen.domain_models.data_types.mode_of_transport import ModeOfTransport from conflowgen.domain_models.data_types.storage_requirement import...
46.355556
115
0.736337
import datetime import unittest from conflowgen.domain_models.container import Container from conflowgen.domain_models.data_types.container_length import ContainerLength from conflowgen.domain_models.data_types.mode_of_transport import ModeOfTransport from conflowgen.domain_models.data_types.storage_requirement import...
true
true
f7369ed232cff0673f5390e0bdb8dc9dd0b644fd
855
py
Python
conftest.py
atac-bham/c10-tools
1562de718a92f4c4e0e30b4e6673dd9108f7077c
[ "BSD-3-Clause" ]
5
2021-06-10T01:32:06.000Z
2021-12-22T23:05:52.000Z
conftest.py
atac-bham/c10-tools
1562de718a92f4c4e0e30b4e6673dd9108f7077c
[ "BSD-3-Clause" ]
17
2020-08-03T16:35:26.000Z
2022-03-30T17:29:41.000Z
conftest.py
atac/c10-tools
278acfaab8bb42dff448fe1fbe08e7b7f75b1752
[ "BSD-3-Clause" ]
null
null
null
from unittest.mock import patch import os from chapter10 import C10 import pytest TESTDIR = os.path.join(os.path.dirname(__file__), 'tests') def pytest_configure(): pytest.SAMPLE = os.path.join(TESTDIR, '1.c10') pytest.EVENTS = os.path.join(TESTDIR, 'event.c10') pytest.ETHERNET = os.path.join(TESTDIR,...
21.923077
59
0.680702
from unittest.mock import patch import os from chapter10 import C10 import pytest TESTDIR = os.path.join(os.path.dirname(__file__), 'tests') def pytest_configure(): pytest.SAMPLE = os.path.join(TESTDIR, '1.c10') pytest.EVENTS = os.path.join(TESTDIR, 'event.c10') pytest.ETHERNET = os.path.join(TESTDIR,...
true
true
f736a105ea05b86e1c0fe4433a250e92c347dfc6
4,007
py
Python
checkout/models.py
PiotrWojniak/MS4
66e63dcf74b7f80c7d95c1500a9350e59b755104
[ "CNRI-Python", "Naumen", "Condor-1.1", "MS-PL" ]
2
2021-08-20T12:19:48.000Z
2021-11-07T12:42:40.000Z
checkout/models.py
PiotrWojniak/MS4
66e63dcf74b7f80c7d95c1500a9350e59b755104
[ "CNRI-Python", "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
checkout/models.py
PiotrWojniak/MS4
66e63dcf74b7f80c7d95c1500a9350e59b755104
[ "CNRI-Python", "Naumen", "Condor-1.1", "MS-PL" ]
2
2022-01-28T17:40:34.000Z
2022-01-29T09:07:33.000Z
"""Import uuid to create unique order number""" import uuid from django.db import models from django.db.models import Sum from django.conf import settings from django_countries.fields import CountryField from products.models import Product from profiles.models import UserProfile class Order(models.Model): """ ...
38.902913
79
0.666583
import uuid from django.db import models from django.db.models import Sum from django.conf import settings from django_countries.fields import CountryField from products.models import Product from profiles.models import UserProfile class Order(models.Model): order_number = models.CharField(max_length=32, null=...
true
true
f736a1321831b3ded99642a3274807966618052e
7,202
py
Python
micronet/compression/quantization/wbwtab/bn_fuse/bn_fuse.py
wmkai/quantization
280976311ea7ed95b29662405189f36fa154f85d
[ "MIT" ]
1
2021-07-30T08:34:19.000Z
2021-07-30T08:34:19.000Z
micronet/compression/quantization/wbwtab/bn_fuse/bn_fuse.py
jay757425789/micronet
351d184527e9867e0394878cf91b64ffd5c6b109
[ "MIT" ]
null
null
null
micronet/compression/quantization/wbwtab/bn_fuse/bn_fuse.py
jay757425789/micronet
351d184527e9867e0394878cf91b64ffd5c6b109
[ "MIT" ]
null
null
null
import copy import sys sys.path.append("..") sys.path.append("../../../..") import os import argparse import numpy as np import torch import torch.nn as nn from models import nin_gc, nin import quantize # ******************** 是否保存模型完整参数 ******************** #torch.set_printoptions(precision=8, edgeitems=sys.maxsize,...
43.648485
114
0.574701
import copy import sys sys.path.append("..") sys.path.append("../../../..") import os import argparse import numpy as np import torch import torch.nn as nn from models import nin_gc, nin import quantize def bn_fuse(conv, bn): global bn_counter, bin_bn_fuse_num bn_counter = bn_counter + 1 mea...
true
true
f736a1bbdce036a5414adc38804039cbc6539f9a
879
py
Python
manage.py
299hannah/Pitch
7a8c0f4358c79f5d58d2056a790c05c7476d66bf
[ "MIT" ]
null
null
null
manage.py
299hannah/Pitch
7a8c0f4358c79f5d58d2056a790c05c7476d66bf
[ "MIT" ]
null
null
null
manage.py
299hannah/Pitch
7a8c0f4358c79f5d58d2056a790c05c7476d66bf
[ "MIT" ]
null
null
null
from app import create_app,db from flask_script import Manager,Server from app.models import User, Joke, Commentjoke, Debate, Commentdebate, Pickup, Commentlines from flask_migrate import Migrate, MigrateCommand #Creating app instance # app = create_app('development') app = create_app('production') # app = create_ap...
29.3
148
0.74744
from app import create_app,db from flask_script import Manager,Server from app.models import User, Joke, Commentjoke, Debate, Commentdebate, Pickup, Commentlines from flask_migrate import Migrate, MigrateCommand app = create_app('production') manager = Manager(app) migrate = Migrate(app,db) manager.add_command...
true
true
f736a229bcdcef49e1e562a0a7b325367968498b
371
py
Python
psy/__init__.py
cegfdb/IRT
20fcde3b385bce1644fecab7cdc8bda5beacda03
[ "MIT" ]
8
2018-11-25T12:57:53.000Z
2022-03-28T10:48:16.000Z
psy/__init__.py
glan-wxl/IRT
1eed348fd3a8b9c27ea72d476ab2844113468eb8
[ "MIT" ]
null
null
null
psy/__init__.py
glan-wxl/IRT
1eed348fd3a8b9c27ea72d476ab2844113468eb8
[ "MIT" ]
2
2019-09-28T09:09:41.000Z
2020-11-19T02:23:23.000Z
from psy.cdm.irm import McmcHoDina, McmcDina, EmDina, MlDina from psy.mirt.irm import Irt2PL, Mirt2PL from psy.mirt.grm import Grm from psy.cat.tirt import SimAdaptiveTirt from psy.fa.rotations import GPForth from psy.fa.factors import Factor from psy.sem.cfa import cfa from psy.sem.sem import sem from psy.sem.ccfa imp...
41.222222
72
0.824798
from psy.cdm.irm import McmcHoDina, McmcDina, EmDina, MlDina from psy.mirt.irm import Irt2PL, Mirt2PL from psy.mirt.grm import Grm from psy.cat.tirt import SimAdaptiveTirt from psy.fa.rotations import GPForth from psy.fa.factors import Factor from psy.sem.cfa import cfa from psy.sem.sem import sem from psy.sem.ccfa imp...
true
true
f736a27b89edc6e8b2b7656f69ea9bb351e3eda5
5,958
py
Python
src/poliastro/plotting/tisserand.py
havi121/poliastro-AU
98889b36892622b43cb284f64e6ecf72e3f01c6f
[ "MIT" ]
null
null
null
src/poliastro/plotting/tisserand.py
havi121/poliastro-AU
98889b36892622b43cb284f64e6ecf72e3f01c6f
[ "MIT" ]
null
null
null
src/poliastro/plotting/tisserand.py
havi121/poliastro-AU
98889b36892622b43cb284f64e6ecf72e3f01c6f
[ "MIT" ]
null
null
null
""" Generates Tisserand plots """ from enum import Enum import numpy as np from astropy import units as u from matplotlib import pyplot as plt from poliastro.plotting._base import BODY_COLORS from poliastro.twobody.mean_elements import get_mean_elements from poliastro.util import norm class TisserandKind(Enum): ...
30.090909
81
0.588117
from enum import Enum import numpy as np from astropy import units as u from matplotlib import pyplot as plt from poliastro.plotting._base import BODY_COLORS from poliastro.twobody.mean_elements import get_mean_elements from poliastro.util import norm class TisserandKind(Enum): APSIS = "apsis" ENERGY = "en...
true
true
f736a3517e3c5f420c40d3bfa794b57a3d8b2046
17,362
py
Python
balance.py
Charterhouse/random_forest
b842f08fee1054dbff78b6fb3afd4006a7f14a6d
[ "MIT" ]
2
2019-10-24T07:22:46.000Z
2019-11-18T12:32:26.000Z
balance.py
Charterhouse/random_forest
b842f08fee1054dbff78b6fb3afd4006a7f14a6d
[ "MIT" ]
null
null
null
balance.py
Charterhouse/random_forest
b842f08fee1054dbff78b6fb3afd4006a7f14a6d
[ "MIT" ]
2
2020-03-03T18:30:14.000Z
2021-09-06T13:55:06.000Z
from mpyc.runtime import mpc from src.dataset import ObliviousDataset, Sample from src.output import output from src.secint import secint as s from src.forest import train_forest def sample(ins, out): return Sample([s(i) for i in ins], s(out)) samples = ObliviousDataset.create( sample([1, 1, 1, 2], 1), ...
26.669739
77
0.388722
from mpyc.runtime import mpc from src.dataset import ObliviousDataset, Sample from src.output import output from src.secint import secint as s from src.forest import train_forest def sample(ins, out): return Sample([s(i) for i in ins], s(out)) samples = ObliviousDataset.create( sample([1, 1, 1, 2], 1), ...
true
true
f736a38632ad7968c777a3b31c417244b1106c9c
731
py
Python
python/readme_prog_change_sub.py
romanstrazanec/ChaosEquations
cff505832b3ef8db2e3dc05e299a30f52b8e6473
[ "MIT" ]
null
null
null
python/readme_prog_change_sub.py
romanstrazanec/ChaosEquations
cff505832b3ef8db2e3dc05e299a30f52b8e6473
[ "MIT" ]
null
null
null
python/readme_prog_change_sub.py
romanstrazanec/ChaosEquations
cff505832b3ef8db2e3dc05e299a30f52b8e6473
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt n = 5 T = [-1, -.5, 0., .5, 1] x = [1] * len(T) y = [1] * len(T) plt.subplot(122) for i in range(1, n+1): for j in range(len(T)): x[j], y[j] = (x[j] + y[j]*T[j], x[j] - y[j]*T[j]) for j in range(len(T)-1): plt.arrow(x[j], y[j], x[j+1]-x[j], y[j+1]-y[j], head_wid...
22.84375
106
0.492476
import matplotlib.pyplot as plt n = 5 T = [-1, -.5, 0., .5, 1] x = [1] * len(T) y = [1] * len(T) plt.subplot(122) for i in range(1, n+1): for j in range(len(T)): x[j], y[j] = (x[j] + y[j]*T[j], x[j] - y[j]*T[j]) for j in range(len(T)-1): plt.arrow(x[j], y[j], x[j+1]-x[j], y[j+1]-y[j], head_wid...
true
true
f736a3f7a63e1b1fe8e6efa421cc4735f2835d7d
636
py
Python
iac/settings/aws_glue.py
InfrastructureHQ/AWS-CDK-Accelerators-Template
107f881af741240fe67e687854b79e440d232efb
[ "Apache-2.0" ]
null
null
null
iac/settings/aws_glue.py
InfrastructureHQ/AWS-CDK-Accelerators-Template
107f881af741240fe67e687854b79e440d232efb
[ "Apache-2.0" ]
null
null
null
iac/settings/aws_glue.py
InfrastructureHQ/AWS-CDK-Accelerators-Template
107f881af741240fe67e687854b79e440d232efb
[ "Apache-2.0" ]
null
null
null
from typing import Dict, Optional import pydantic from settings.globalsettings import GlobalSettings globalsettings = GlobalSettings() AWS_ACCOUNT_ID = globalsettings.AWS_ACCOUNT_ID AWS_REGION = globalsettings.AWS_REGION class GlueSettings( pydantic.BaseSettings ): # pylint: disable=too-few-public-methods ...
25.44
50
0.738994
from typing import Dict, Optional import pydantic from settings.globalsettings import GlobalSettings globalsettings = GlobalSettings() AWS_ACCOUNT_ID = globalsettings.AWS_ACCOUNT_ID AWS_REGION = globalsettings.AWS_REGION class GlueSettings( pydantic.BaseSettings ): stack_name: str = "APIStack" desc...
true
true
f736a462e2911ac70d4200ae6272f14b7e399bed
865
py
Python
molecule/default/tests/test_default.py
darkwizard242/ansible-role-logrotate
cc4c61f7fc2c1f26a23db609e41396c90b6d469a
[ "MIT" ]
1
2021-09-18T16:08:27.000Z
2021-09-18T16:08:27.000Z
molecule/default/tests/test_default.py
darkwizard242/ansible-role-logrotate
cc4c61f7fc2c1f26a23db609e41396c90b6d469a
[ "MIT" ]
5
2020-03-31T17:52:41.000Z
2022-02-09T18:42:42.000Z
molecule/default/tests/test_default.py
darkwizard242/ansible-role-logrotate
cc4c61f7fc2c1f26a23db609e41396c90b6d469a
[ "MIT" ]
null
null
null
import os import testinfra.utils.ansible_runner testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner( os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all') PACKAGE = 'logrotate' PACKAGE_BINARY = '/usr/sbin/logrotate' def test_logrotate_package_installed(host): """ Tests if logrotate packag...
22.179487
65
0.726012
import os import testinfra.utils.ansible_runner testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner( os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all') PACKAGE = 'logrotate' PACKAGE_BINARY = '/usr/sbin/logrotate' def test_logrotate_package_installed(host): assert host.package("logrotate")....
true
true
f736a4d870cd3dd7db742978f719215d4f7f36b4
3,091
py
Python
calibrate.py
josephko91/checkers-ai
e5963ffebf9a64724604a620d2432c1798505c22
[ "MIT" ]
null
null
null
calibrate.py
josephko91/checkers-ai
e5963ffebf9a64724604a620d2432c1798505c22
[ "MIT" ]
null
null
null
calibrate.py
josephko91/checkers-ai
e5963ffebf9a64724604a620d2432c1798505c22
[ "MIT" ]
null
null
null
from board import Board from algorithm import minimax_alpha_beta import time from statistics import mean from math import sqrt, floor board_list_start = [[".", "b", ".", "b", ".", "b", ".", "b"], ["b", ".", "b", ".", "b", ".", "b", "."], [".", "b", ".", "b", ".", "b", ".", "b"], ...
39.126582
79
0.421546
from board import Board from algorithm import minimax_alpha_beta import time from statistics import mean from math import sqrt, floor board_list_start = [[".", "b", ".", "b", ".", "b", ".", "b"], ["b", ".", "b", ".", "b", ".", "b", "."], [".", "b", ".", "b", ".", "b", ".", "b"], ...
true
true
f736a58b37452a4a8cfec128efabf5850633138b
3,425
py
Python
pmaso_tools.py
Jordan-M-Young/Port_Maso
eb9c137ce79004ae218ef6c721f0c9b54d099f68
[ "MIT" ]
3
2020-08-15T00:52:43.000Z
2020-08-29T18:57:04.000Z
pmaso_tools.py
Jordan-M-Young/Pmaso
eb9c137ce79004ae218ef6c721f0c9b54d099f68
[ "MIT" ]
null
null
null
pmaso_tools.py
Jordan-M-Young/Pmaso
eb9c137ce79004ae218ef6c721f0c9b54d099f68
[ "MIT" ]
1
2020-07-21T17:56:56.000Z
2020-07-21T17:56:56.000Z
import csv def parse_tickers(tickers): """accepts tickers string input i.e. 'GOOG,AAPL,MSFT' and outputs tickers list ['GOOG','AAPL','MSFT']""" num_commas = tickers.find(',') tickers = tickers.rsplit(',',num_commas+1) return tickers def write_portfolio(portfolio,tickers,file_p...
27.845528
78
0.588613
import csv def parse_tickers(tickers): num_commas = tickers.find(',') tickers = tickers.rsplit(',',num_commas+1) return tickers def write_portfolio(portfolio,tickers,file_path): if '.csv' not in file_path: file_path = file_path + '.csv' port = {'Portfol...
true
true
f736a64f7969709ed96b686f0de0dd7294ecab2a
2,169
py
Python
listings/migrations/0001_initial.py
RodrigoMachado9/django
b7c1b6e05af509f264bdb7c5096db4cbcc8efc5f
[ "MIT" ]
1
2019-06-23T00:49:45.000Z
2019-06-23T00:49:45.000Z
listings/migrations/0001_initial.py
RodrigoMachado9/django-web
b7c1b6e05af509f264bdb7c5096db4cbcc8efc5f
[ "MIT" ]
1
2019-06-23T00:54:24.000Z
2019-06-23T00:54:24.000Z
listings/migrations/0001_initial.py
RodrigoMachado9/django
b7c1b6e05af509f264bdb7c5096db4cbcc8efc5f
[ "MIT" ]
null
null
null
# Generated by Django 3.1.1 on 2020-09-28 19:21 import datetime from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('realtors', '0001_initial'), ] operations = [ migrations.CreateModel( ...
47.152174
118
0.576302
import datetime from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('realtors', '0001_initial'), ] operations = [ migrations.CreateModel( name='Listing', fields=[ ...
true
true
f736a69a2ffc52c26ca8303f21a5e0717f53ab72
41,427
py
Python
project/utils/modules.py
amorehead/Equivariant-GNNs
4e81136242a4c8905b0e5fc39be5f704a42cc5e1
[ "Apache-2.0" ]
2
2021-10-07T12:53:51.000Z
2022-01-04T19:26:08.000Z
project/utils/modules.py
amorehead/Equivariant-GNNs
4e81136242a4c8905b0e5fc39be5f704a42cc5e1
[ "Apache-2.0" ]
null
null
null
project/utils/modules.py
amorehead/Equivariant-GNNs
4e81136242a4c8905b0e5fc39be5f704a42cc5e1
[ "Apache-2.0" ]
null
null
null
from typing import Dict import dgl import dgl.function as fn # for graphs import numpy as np import torch import torch.nn as nn from dgl.nn.pytorch.glob import AvgPooling, MaxPooling from dgl.nn.pytorch.softmax import edge_softmax from einops import rearrange from packaging import version from torch import Tensor, ei...
35.34727
135
0.556207
from typing import Dict import dgl import dgl.function as fn import numpy as np import torch import torch.nn as nn from dgl.nn.pytorch.glob import AvgPooling, MaxPooling from dgl.nn.pytorch.softmax import edge_softmax from einops import rearrange from packaging import version from torch import Tensor, einsum, broadc...
true
true
f736a73c419ca895e86b294fb0a1f7568fe06235
5,281
py
Python
site-packages/pskf/tools/run/pythonmodule.py
jjokella/pyshemkf
61a6329f7aa5739a38a68504fd6a44568fcd833b
[ "MIT" ]
5
2019-02-06T10:52:52.000Z
2021-05-21T09:32:45.000Z
site-packages/pskf/tools/run/pythonmodule.py
jjokella/pyshemkf
61a6329f7aa5739a38a68504fd6a44568fcd833b
[ "MIT" ]
null
null
null
site-packages/pskf/tools/run/pythonmodule.py
jjokella/pyshemkf
61a6329f7aa5739a38a68504fd6a44568fcd833b
[ "MIT" ]
1
2018-12-04T11:39:10.000Z
2018-12-04T11:39:10.000Z
""" pythonmodule ============ Provides utility functions for working with SHEMAT-Suite output in Python. """ import os import shutil ############################################################################### # Directories # #########################...
28.392473
79
0.514675
import os import shutil
true
true
f736a75f3739344c19eb83880c8470b6c22cdbf3
3,490
py
Python
crtk/mapping.py
hao-n/crtk
e63d70ed2abfc70964618f666c5b2ae422aa4128
[ "MIT" ]
1
2020-09-23T09:06:52.000Z
2020-09-23T09:06:52.000Z
crtk/mapping.py
hao-n/crtk
e63d70ed2abfc70964618f666c5b2ae422aa4128
[ "MIT" ]
null
null
null
crtk/mapping.py
hao-n/crtk
e63d70ed2abfc70964618f666c5b2ae422aa4128
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Smart Contract Reverse Engineering Toolkit: Mapping # # Copyright (C) 2019-2020 CRTK Project # Author: Hao-Nan Zhu <hao-n.zhu@outlook.com> # URL: <https://github.com/hao-n/crtk> # For license information, see LICENSE opcode_mapping = { '00': 'STOP', '01': 'ADD', '02': 'MUL', '...
18.763441
53
0.401146
opcode_mapping = { '00': 'STOP', '01': 'ADD', '02': 'MUL', '03': 'SUB', '04': 'DIV', '05': 'SDIV', '06': 'MOD', '07': 'SMOD', '08': 'ADDMOD', '09': 'MULMOD', '0a': 'EXP', '0b': 'SIGNEXTEND', '10': 'LT', '11': 'GT', '12': 'SLT', '13': 'SGT', '14...
true
true
f736a7d8c53160ea30ccc4f917fe829d5743fd83
20,814
py
Python
cinder/tests/unit/test_v7000_fcp.py
UbuntuEvangelist/cinder
cbb55074de48176cbaa3f31a5b1d595b8aad7aa8
[ "Apache-2.0" ]
null
null
null
cinder/tests/unit/test_v7000_fcp.py
UbuntuEvangelist/cinder
cbb55074de48176cbaa3f31a5b1d595b8aad7aa8
[ "Apache-2.0" ]
null
null
null
cinder/tests/unit/test_v7000_fcp.py
UbuntuEvangelist/cinder
cbb55074de48176cbaa3f31a5b1d595b8aad7aa8
[ "Apache-2.0" ]
15
2017-01-12T10:35:10.000Z
2019-04-19T08:22:10.000Z
# Copyright 2015 Violin Memory, Inc. # 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 requi...
36.07279
79
0.642356
import mock from cinder import exception from cinder import test from cinder.tests.unit import fake_vmem_client as vmemclient from cinder.volume import configuration as conf from cinder.volume.drivers.violin import v7000_common from cinder.volume.drivers.violin import v7000_fcp VOLUME_ID = "abcdabcd-1...
true
true
f736a971a77ec4dbef874d6e5e2b4a879b5e0f32
965
py
Python
contents/apis/accounts.py
williamlagos/contents-api
d501d343396af7aec8d5dfa6092136ba689d8565
[ "MIT" ]
null
null
null
contents/apis/accounts.py
williamlagos/contents-api
d501d343396af7aec8d5dfa6092136ba689d8565
[ "MIT" ]
3
2021-04-24T20:50:16.000Z
2021-05-24T17:46:55.000Z
contents/apis/accounts.py
williamlagos/contents-api
d501d343396af7aec8d5dfa6092136ba689d8565
[ "MIT" ]
null
null
null
#!/usr/bin/python # # This file is part of django-emporio project. # # Copyright (C) 2011-2020 William Oliveira de Lagos <william.lagos@icloud.com> # # Emporio is free software: you can redistribute it and/or modify # it under the terms of the Lesser GNU General Public License as published by # the Free Software Founda...
32.166667
78
0.772021
from socialize.socialize.services import SocialService from .default import DefaultServiceResource class AccountResource(DefaultServiceResource): service = SocialService()
true
true
f736a98872d1e12416941d26320a083bc986237d
13,347
py
Python
bin/node.py
SauravMaheshkar/rtdl
c3f8051210d1cd7fdffc5a63221e3c4e84415ed8
[ "Apache-2.0" ]
1
2022-01-24T13:35:03.000Z
2022-01-24T13:35:03.000Z
bin/node.py
SauravMaheshkar/rtdl
c3f8051210d1cd7fdffc5a63221e3c4e84415ed8
[ "Apache-2.0" ]
null
null
null
bin/node.py
SauravMaheshkar/rtdl
c3f8051210d1cd7fdffc5a63221e3c4e84415ed8
[ "Apache-2.0" ]
null
null
null
# %% import gc import itertools import math import typing as ty from copy import deepcopy from pathlib import Path import numpy as np import torch import torch.nn as nn import torch.nn.functional as F import torch.optim.swa_utils as swa_utils import zero from torch import Tensor import wandb import lib import lib.nod...
31.553191
96
0.611373
import gc import itertools import math import typing as ty from copy import deepcopy from pathlib import Path import numpy as np import torch import torch.nn as nn import torch.nn.functional as F import torch.optim.swa_utils as swa_utils import zero from torch import Tensor import wandb import lib import lib.node as...
true
true
f736ac424182660035d1847d61e82b2d381b5bcc
2,098
py
Python
dephell_shells/_shells.py
jayvdb/dephell_shells
e3c6bdbd6f97542bfd1224e37a515eba044d616b
[ "MIT" ]
null
null
null
dephell_shells/_shells.py
jayvdb/dephell_shells
e3c6bdbd6f97542bfd1224e37a515eba044d616b
[ "MIT" ]
2
2019-06-03T21:28:31.000Z
2020-05-29T07:53:26.000Z
dephell_shells/_shells.py
jayvdb/dephell_shells
e3c6bdbd6f97542bfd1224e37a515eba044d616b
[ "MIT" ]
1
2020-01-03T12:40:45.000Z
2020-01-03T12:40:45.000Z
# built-in from typing import List, Type # app from ._base import BaseShell from ._manager import Shells from ._utils import is_windows def _register_shell(cls: Type[BaseShell]) -> Type[BaseShell]: if cls.name in Shells.shells: raise NameError('already registered: ' + cls.name) Shells.shells[cls.name...
20.772277
108
0.64919
from typing import List, Type from ._base import BaseShell from ._manager import Shells from ._utils import is_windows def _register_shell(cls: Type[BaseShell]) -> Type[BaseShell]: if cls.name in Shells.shells: raise NameError('already registered: ' + cls.name) Shells.shells[cls.name] = cls ret...
true
true
f736ac8b2d77860fe7695f47b5c2ac5c4fabad2e
104
py
Python
app/forms.py
vikramjeet007/epochconverter123
f104d65d4de12c46a60e3c16748714c0c374b05e
[ "bzip2-1.0.6" ]
null
null
null
app/forms.py
vikramjeet007/epochconverter123
f104d65d4de12c46a60e3c16748714c0c374b05e
[ "bzip2-1.0.6" ]
7
2020-06-05T20:53:51.000Z
2021-09-22T18:31:25.000Z
app/forms.py
vikramjeet007/epochconverter123
f104d65d4de12c46a60e3c16748714c0c374b05e
[ "bzip2-1.0.6" ]
null
null
null
from django import forms class EpochForm(forms.Form): epochtime = forms.IntegerField(required=True)
26
49
0.788462
from django import forms class EpochForm(forms.Form): epochtime = forms.IntegerField(required=True)
true
true
f736acb9cc6e2195ae0b177fda76b60d0fabe9c4
14,218
py
Python
src/oci/management_agent/models/management_agent_install_key_summary.py
Manny27nyc/oci-python-sdk
de60b04e07a99826254f7255e992f41772902df7
[ "Apache-2.0", "BSD-3-Clause" ]
249
2017-09-11T22:06:05.000Z
2022-03-04T17:09:29.000Z
src/oci/management_agent/models/management_agent_install_key_summary.py
Manny27nyc/oci-python-sdk
de60b04e07a99826254f7255e992f41772902df7
[ "Apache-2.0", "BSD-3-Clause" ]
228
2017-09-11T23:07:26.000Z
2022-03-23T10:58:50.000Z
src/oci/management_agent/models/management_agent_install_key_summary.py
Manny27nyc/oci-python-sdk
de60b04e07a99826254f7255e992f41772902df7
[ "Apache-2.0", "BSD-3-Clause" ]
224
2017-09-27T07:32:43.000Z
2022-03-25T16:55:42.000Z
# coding: utf-8 # Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c...
36.45641
245
0.69201
from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs class ManagementAgentInstallKeySummary(object): LIFECYCLE_STATE_CREATING = "CREATING" LIFECYCLE_STATE_...
true
true
f736ada9c145d4dc0ff1a5804684ae347bb3fe91
5,120
py
Python
AndroLabServer/app.py
Sptimus/BAWIM
4870d51c31889d9c9a33537e7587bb3a548ce526
[ "MIT" ]
852
2015-01-08T13:59:33.000Z
2022-03-31T13:57:49.000Z
AndroLabServer/app.py
romanshyadav/Android-InsecureBankv2
3c8cc3a3ce45ed56d0f58f236b541b41f992e51f
[ "MIT" ]
24
2015-04-30T23:37:58.000Z
2022-02-21T11:48:23.000Z
AndroLabServer/app.py
romanshyadav/Android-InsecureBankv2
3c8cc3a3ce45ed56d0f58f236b541b41f992e51f
[ "MIT" ]
365
2015-01-05T16:04:14.000Z
2022-03-24T03:29:57.000Z
import getopt import web import sys #from web.wsgiserver import CherryPyWSGIServer #from cherrypy import wsgiserver from cheroot import wsgi # This replaces the 2 above from flask import Flask, request, request_started from functools import wraps from models import User, Account from database import db_session import s...
32.201258
101
0.670898
import getopt import web import sys from cheroot import wsgi from flask import Flask, request, request_started from functools import wraps from models import User, Account from database import db_session import simplejson as json makejson = json.dumps app = Flask(__name__) makejson = json.dumps DEFAULT_PORT_NO = 88...
false
true
f736adaf616c91406e862b13dd34b5ab14501dad
771
py
Python
v1/tnb_faucet/factories/tnb_faucet.py
picko1990/Bank
d35b0a76c1dd6ceb37155b6af32e3043c63d33f5
[ "MIT" ]
1
2021-07-24T06:54:11.000Z
2021-07-24T06:54:11.000Z
v1/tnb_faucet/factories/tnb_faucet.py
picko1990/Bank
d35b0a76c1dd6ceb37155b6af32e3043c63d33f5
[ "MIT" ]
4
2021-10-01T20:23:14.000Z
2021-10-01T20:57:42.000Z
v1/tnb_faucet/factories/tnb_faucet.py
picko1990/Bank
d35b0a76c1dd6ceb37155b6af32e3043c63d33f5
[ "MIT" ]
3
2021-02-23T01:09:05.000Z
2021-09-12T15:52:56.000Z
from factory import Faker from factory.django import DjangoModelFactory from ..models.tnb_faucet import FaucetModel, FaucetOption, PostModel class FaucetOptionFactory(DjangoModelFactory): # account_number = Faker('pystr', max_chars=VERIFY_KEY_LENGTH) coins = Faker('pyint', max_value=1500, min_value=1) de...
24.09375
68
0.723735
from factory import Faker from factory.django import DjangoModelFactory from ..models.tnb_faucet import FaucetModel, FaucetOption, PostModel class FaucetOptionFactory(DjangoModelFactory): coins = Faker('pyint', max_value=1500, min_value=1) delay = Faker('pyint', max_value=(30 * 24), min_value=1) cl...
true
true
f736ae56f85e9231991f5384d9498595803c4cdd
331
py
Python
okta/models/factor/Verification.py
xmercury-qb/okta-sdk-python
a668a963b13fc61177b36c5438c6ec5fa6f17c4e
[ "ECL-2.0", "Apache-2.0" ]
1
2020-09-09T12:59:19.000Z
2020-09-09T12:59:19.000Z
okta/models/factor/Verification.py
xmercury-qb/okta-sdk-python
a668a963b13fc61177b36c5438c6ec5fa6f17c4e
[ "ECL-2.0", "Apache-2.0" ]
3
2018-10-09T22:14:33.000Z
2018-10-09T23:10:40.000Z
okta/models/factor/Verification.py
xmercury-qb/okta-sdk-python
a668a963b13fc61177b36c5438c6ec5fa6f17c4e
[ "ECL-2.0", "Apache-2.0" ]
2
2018-11-08T19:32:46.000Z
2021-03-30T06:35:48.000Z
class Verification: types = { 'activationToken': str, 'answer': str, 'passCode': str, 'nextPassCode': str } def __init__(self): self.activationToken = None # str self.answer = None # str self.passCode = None # str self.nextPassCode = N...
17.421053
42
0.528701
class Verification: types = { 'activationToken': str, 'answer': str, 'passCode': str, 'nextPassCode': str } def __init__(self): self.activationToken = None self.answer = None self.passCode = None self.nextPassCode = None
true
true
f736aef1b0fa433e7b740b92d4db0cf32848e82a
4,159
py
Python
locations/spiders/pigglywiggly.py
thismakessand/alltheplaces
b6116199844c9e88bff3a691290f07a7457470ba
[ "MIT" ]
1
2019-08-19T10:00:55.000Z
2019-08-19T10:00:55.000Z
locations/spiders/pigglywiggly.py
thismakessand/alltheplaces
b6116199844c9e88bff3a691290f07a7457470ba
[ "MIT" ]
null
null
null
locations/spiders/pigglywiggly.py
thismakessand/alltheplaces
b6116199844c9e88bff3a691290f07a7457470ba
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import scrapy import json import re import logging from locations.items import GeojsonPointItem class PigglyWigglySpider(scrapy.Spider): ''' This spider scrapes from two different places, an api which has their stores in Wisconsin and Illinois, and a page which has all of their oth...
42.010101
147
0.560231
import scrapy import json import re import logging from locations.items import GeojsonPointItem class PigglyWigglySpider(scrapy.Spider): name = "pigglywiggly" allowed_domains = ["pigglywiggly.com"] def start_requests(self): url = 'https://www.shopthepig.com/api/m_store_location' headers ...
true
true
f736af9878abfb41476fe970b23b2a9fa03030a1
3,751
py
Python
models/custom_models.py
ColdFrenzy/Adaptive_Learning
02cdd519a7e224fe5f2a49b0c21baa3dac5ce0e1
[ "MIT" ]
null
null
null
models/custom_models.py
ColdFrenzy/Adaptive_Learning
02cdd519a7e224fe5f2a49b0c21baa3dac5ce0e1
[ "MIT" ]
null
null
null
models/custom_models.py
ColdFrenzy/Adaptive_Learning
02cdd519a7e224fe5f2a49b0c21baa3dac5ce0e1
[ "MIT" ]
null
null
null
import tensorflow as tf def dense_model(in_shape, hidden_layer_shapes, num_outputs, name): x = None inputs = tf.keras.layers.Input(shape=(in_shape,), name="observations") for i,layer_shape in enumerate(hidden_layer_shapes): x = tf.keras.layers.Dense( layer_shape, name="dense_" + str(i)...
42.146067
97
0.666756
import tensorflow as tf def dense_model(in_shape, hidden_layer_shapes, num_outputs, name): x = None inputs = tf.keras.layers.Input(shape=(in_shape,), name="observations") for i,layer_shape in enumerate(hidden_layer_shapes): x = tf.keras.layers.Dense( layer_shape, name="dense_" + str(i)...
true
true
f736b01602f379c31ea80e661458f27572a3c2bd
23,029
py
Python
utils_nvidia.py
kcyu2014/nas-landmarkreg
a00c3619bf4042e446e1919087f0b09fe9fa3a65
[ "MIT" ]
8
2021-04-13T01:52:11.000Z
2022-03-30T03:53:12.000Z
utils_nvidia.py
kcyu2014/nas-landmarkreg
a00c3619bf4042e446e1919087f0b09fe9fa3a65
[ "MIT" ]
4
2021-05-29T01:41:00.000Z
2021-08-24T09:40:43.000Z
utils_nvidia.py
kcyu2014/nas-landmarkreg
a00c3619bf4042e446e1919087f0b09fe9fa3a65
[ "MIT" ]
null
null
null
import argparse import os import shutil import time import math import logging import torch import torch.nn as nn import torch.nn.parallel import torch.backends.cudnn as cudnn import torch.distributed as dist import torch.optim import torch.utils.data import torch.utils.data.distributed import torchvision.transforms a...
40.544014
124
0.574146
import argparse import os import shutil import time import math import logging import torch import torch.nn as nn import torch.nn.parallel import torch.backends.cudnn as cudnn import torch.distributed as dist import torch.optim import torch.utils.data import torch.utils.data.distributed import torchvision.transforms a...
true
true
f736b02876ffd51c2b3784b5eda8b3e828d376ff
792
py
Python
Examples/ControlFlowExamples/functions.py
AbdullahNoori/CS-1.1-Intro-to-Programming
3b3ab4a7ff5c44ce9d74df767a8d5d3cf2a3ee2e
[ "MIT" ]
13
2018-08-27T18:17:13.000Z
2018-10-30T06:33:45.000Z
Examples/ControlFlowExamples/functions.py
AbdullahNoori/CS-1.1-Intro-to-Programming
3b3ab4a7ff5c44ce9d74df767a8d5d3cf2a3ee2e
[ "MIT" ]
3
2018-09-14T09:33:26.000Z
2018-10-01T17:30:25.000Z
Examples/ControlFlowExamples/functions.py
AbdullahNoori/CS-1.1-Intro-to-Programming
3b3ab4a7ff5c44ce9d74df767a8d5d3cf2a3ee2e
[ "MIT" ]
83
2019-09-02T19:15:00.000Z
2020-02-29T23:58:16.000Z
"""Program to make a peanut butter and jelly sandwich.""" def go_to_store(): """Go to the store and buy sandwich ingredients.""" print("Buying bread...") print("Buying peanut butter and jelly...\n") def prepare_ingredients(): """Prepare sandwich ingredients.""" print("Toasting bread...") pri...
23.294118
57
0.656566
def go_to_store(): print("Buying bread...") print("Buying peanut butter and jelly...\n") def prepare_ingredients(): print("Toasting bread...") print("Getting a knife...") print("Opening peanut butter jar...\n") def assemble_sandwich(): print("Stick knife in peanut butter jar...") prin...
true
true
f736b1152645836d3c818a4e475a399ae85a10a9
936
py
Python
pyro/__init__.py
jrmcornish/pyro
38914d5eb596dc140e226031534ff4ea7903dc35
[ "MIT" ]
null
null
null
pyro/__init__.py
jrmcornish/pyro
38914d5eb596dc140e226031534ff4ea7903dc35
[ "MIT" ]
null
null
null
pyro/__init__.py
jrmcornish/pyro
38914d5eb596dc140e226031534ff4ea7903dc35
[ "MIT" ]
null
null
null
import pyro.poutine as poutine from pyro.logger import log from pyro.poutine import condition, do, markov from pyro.primitives import (clear_param_store, enable_validation, factor, get_param_store, iarange, irange, module, param, plate, plate_stack, random_module, sample, validation_enabled...
24
116
0.669872
import pyro.poutine as poutine from pyro.logger import log from pyro.poutine import condition, do, markov from pyro.primitives import (clear_param_store, enable_validation, factor, get_param_store, iarange, irange, module, param, plate, plate_stack, random_module, sample, validation_enabled...
true
true
f736b12bd8cbb9754835b65f80a155dd4d218497
1,816
py
Python
sec/test.py
pygongnlp/gramcorrector
1b5b7f46f7185675b46341e40b2a866fd6d1d7ad
[ "MIT" ]
5
2022-02-07T12:35:18.000Z
2022-03-09T05:10:33.000Z
sec/test.py
pygongnlp/gramcorrector
1b5b7f46f7185675b46341e40b2a866fd6d1d7ad
[ "MIT" ]
null
null
null
sec/test.py
pygongnlp/gramcorrector
1b5b7f46f7185675b46341e40b2a866fd6d1d7ad
[ "MIT" ]
null
null
null
import argparse import torch import os from transformers import AutoTokenizer, AutoModelForMaskedLM from utils import load_data, write_to_file from metric import compute_metrics if __name__ == "__main__": parser = argparse.ArgumentParser() parser.add_argument("--model_name_or_path", default="model/chinese_be...
31.310345
94
0.693833
import argparse import torch import os from transformers import AutoTokenizer, AutoModelForMaskedLM from utils import load_data, write_to_file from metric import compute_metrics if __name__ == "__main__": parser = argparse.ArgumentParser() parser.add_argument("--model_name_or_path", default="model/chinese_be...
true
true
f736b1fa87bbe89634f2f6829979f3e2c6684b78
10,309
py
Python
rising/transforms/spatial.py
NKPmedia/rising
2a580e9c74c8fb690e27e8bacf09ab97184ab1ee
[ "MIT" ]
null
null
null
rising/transforms/spatial.py
NKPmedia/rising
2a580e9c74c8fb690e27e8bacf09ab97184ab1ee
[ "MIT" ]
null
null
null
rising/transforms/spatial.py
NKPmedia/rising
2a580e9c74c8fb690e27e8bacf09ab97184ab1ee
[ "MIT" ]
null
null
null
# from __future__ import annotations import torch from itertools import combinations from typing import Union, Sequence, Callable, Optional from torch.multiprocessing import Value from rising.random import AbstractParameter, DiscreteParameter from rising.transforms.abstract import AbstractTransform, BaseTransform fro...
38.181481
93
0.584829
import torch from itertools import combinations from typing import Union, Sequence, Callable, Optional from torch.multiprocessing import Value from rising.random import AbstractParameter, DiscreteParameter from rising.transforms.abstract import AbstractTransform, BaseTransform from rising.transforms.functional.spati...
true
true
f736b27b0ae813ad8751187037300ecb4adfc454
746
py
Python
examples/jsonknife/library/customloader/loader.py
podhmo/dictknife
a172220c1adc8411b69f31646ea2154932d71516
[ "MIT" ]
13
2018-11-23T15:55:18.000Z
2021-11-24T02:42:44.000Z
examples/jsonknife/library/customloader/loader.py
podhmo/dictknife
a172220c1adc8411b69f31646ea2154932d71516
[ "MIT" ]
105
2017-01-09T02:05:48.000Z
2021-07-26T03:39:22.000Z
examples/jsonknife/library/customloader/loader.py
podhmo/dictknife
a172220c1adc8411b69f31646ea2154932d71516
[ "MIT" ]
4
2017-07-19T12:34:47.000Z
2019-06-20T10:32:13.000Z
from dictknife import loading from dictknife.jsonknife import get_resolver from dictknife import DictWalker def run(*, filename): def onload(d, resolver, w=DictWalker(["$include"])): for _, sd, in w.walk(d): subresolver, jsref = resolver.resolve(sd.pop("$include")) sd.update(subres...
23.3125
69
0.680965
from dictknife import loading from dictknife.jsonknife import get_resolver from dictknife import DictWalker def run(*, filename): def onload(d, resolver, w=DictWalker(["$include"])): for _, sd, in w.walk(d): subresolver, jsref = resolver.resolve(sd.pop("$include")) sd.update(subres...
true
true
f736b2f22b1aa2eb400e9f17f05c8b763bc44569
3,046
py
Python
src/HABApp/core/event_bus_listener.py
pailloM/HABApp
3e0defd99ede9b91c164cb9d1ee011fd74e801c3
[ "Apache-2.0" ]
44
2018-12-13T08:46:44.000Z
2022-03-07T03:23:21.000Z
src/HABApp/core/event_bus_listener.py
pailloM/HABApp
3e0defd99ede9b91c164cb9d1ee011fd74e801c3
[ "Apache-2.0" ]
156
2019-03-02T20:53:31.000Z
2022-03-23T13:13:58.000Z
src/HABApp/core/event_bus_listener.py
pailloM/HABApp
3e0defd99ede9b91c164cb9d1ee011fd74e801c3
[ "Apache-2.0" ]
18
2019-03-08T07:13:21.000Z
2022-03-22T19:52:31.000Z
import HABApp from HABApp.core.events import AllEvents from . import WrappedFunction from typing import Optional, Any class EventBusListener: def __init__(self, topic, callback, event_type=AllEvents, attr_name1: Optional[str] = None, attr_value1: Optional[Any] = None, attr_name2:...
37.146341
92
0.588641
import HABApp from HABApp.core.events import AllEvents from . import WrappedFunction from typing import Optional, Any class EventBusListener: def __init__(self, topic, callback, event_type=AllEvents, attr_name1: Optional[str] = None, attr_value1: Optional[Any] = None, attr_name2:...
true
true
f736b3c641da105cd867f21cb3c29970c91b52bd
18,928
py
Python
contrib/python/office.py
dinisAbranches/nwchem
21cb07ff634475600ab687882652b823cad8c0cd
[ "ECL-2.0" ]
317
2017-11-20T21:29:11.000Z
2022-03-28T11:48:24.000Z
contrib/python/office.py
dinisAbranches/nwchem
21cb07ff634475600ab687882652b823cad8c0cd
[ "ECL-2.0" ]
356
2017-12-05T01:38:12.000Z
2022-03-31T02:28:21.000Z
contrib/python/office.py
dinisAbranches/nwchem
21cb07ff634475600ab687882652b823cad8c0cd
[ "ECL-2.0" ]
135
2017-11-19T18:36:44.000Z
2022-03-31T02:28:49.000Z
''' Stuff for driving MS office applications from Python using COM Currently just Excel but Word will come soon. ''' from win32com.client import Dispatch from types import * from string import uppercase class Excel: ''' Wrapper for MS Excel derived from that in Python Programming on Win32 ''...
38.238384
106
0.558273
from win32com.client import Dispatch from types import * from string import uppercase class Excel: def __init__(self,filename=None): self.xlApp = Dispatch("Excel.Application") if filename: self.filename = filename self.xlBook = self.xlApp.Workbooks.Open(filename) ...
true
true
f736b3e4a1461fec901125852e3ec5227efb4016
3,272
py
Python
server/dive_server/event.py
maxpark/dive
5dce25822d9b53d96ff0c2c8fb02265e4b43911e
[ "Apache-2.0" ]
null
null
null
server/dive_server/event.py
maxpark/dive
5dce25822d9b53d96ff0c2c8fb02265e4b43911e
[ "Apache-2.0" ]
null
null
null
server/dive_server/event.py
maxpark/dive
5dce25822d9b53d96ff0c2c8fb02265e4b43911e
[ "Apache-2.0" ]
null
null
null
from datetime import datetime import os from bson.objectid import ObjectId from girder import logger from girder.models.folder import Folder from girder.models.item import Item from girder.models.setting import Setting from girder.models.user import User from girder.settings import SettingKey from girder.utility.mail_...
31.161905
96
0.638447
from datetime import datetime import os from bson.objectid import ObjectId from girder import logger from girder.models.folder import Folder from girder.models.item import Item from girder.models.setting import Setting from girder.models.user import User from girder.settings import SettingKey from girder.utility.mail_...
true
true
f736b3f1946605f01b563fe73648afab91e143dc
9,404
py
Python
sdks/python/http_client/v1/polyaxon_sdk/models/v1_connection_response.py
rimon-safesitehq/polyaxon
c456d5bec00b36d75feabdccffa45b2be9a6346e
[ "Apache-2.0" ]
null
null
null
sdks/python/http_client/v1/polyaxon_sdk/models/v1_connection_response.py
rimon-safesitehq/polyaxon
c456d5bec00b36d75feabdccffa45b2be9a6346e
[ "Apache-2.0" ]
null
null
null
sdks/python/http_client/v1/polyaxon_sdk/models/v1_connection_response.py
rimon-safesitehq/polyaxon
c456d5bec00b36d75feabdccffa45b2be9a6346e
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # # Copyright 2018-2021 Polyaxon, Inc. # # 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 ...
27.179191
193
0.594853
import pprint import re import six from polyaxon_sdk.configuration import Configuration class V1ConnectionResponse(object): openapi_types = { 'uuid': 'str', 'name': 'str', 'agent': 'str', 'description': 'str', 'tags': 'list[str]', 'created_a...
true
true
f736b4392a145415cae7783285455aed127f741d
2,005
py
Python
architectures/__init__.py
Battelle/patchwerk
ff035f080b5c46f758c20010d1a5103608d05e6f
[ "Apache-2.0" ]
23
2019-01-20T18:51:23.000Z
2022-02-02T09:08:39.000Z
architectures/__init__.py
Battelle/patchwerk
ff035f080b5c46f758c20010d1a5103608d05e6f
[ "Apache-2.0" ]
1
2021-06-05T09:25:59.000Z
2021-06-05T09:25:59.000Z
architectures/__init__.py
Battelle/patchwerk
ff035f080b5c46f758c20010d1a5103608d05e6f
[ "Apache-2.0" ]
8
2019-03-30T04:37:36.000Z
2022-01-14T08:04:16.000Z
import os import enum def __init__(): global __all__ global arch import sys import importlib __all__ = [] arch = dict() CurModule = sys.modules[__name__] for entry in os.listdir(os.path.dirname(__file__)): if os.path.isdir(os.path.dirname(__file__) + "/" + entry): ...
33.983051
168
0.617456
import os import enum def __init__(): global __all__ global arch import sys import importlib __all__ = [] arch = dict() CurModule = sys.modules[__name__] for entry in os.listdir(os.path.dirname(__file__)): if os.path.isdir(os.path.dirname(__file__) + "/" + entry): ...
false
true
f736b49432a859a4eb8649edb0a8749a6f71de2f
5,908
py
Python
cards/views/gui.py
mhndlsz/memodrop
7ba39143c8e4fbe67881b141accedef535e936e6
[ "MIT" ]
18
2018-04-15T14:01:25.000Z
2022-03-16T14:57:28.000Z
cards/views/gui.py
mhndlsz/memodrop
7ba39143c8e4fbe67881b141accedef535e936e6
[ "MIT" ]
null
null
null
cards/views/gui.py
mhndlsz/memodrop
7ba39143c8e4fbe67881b141accedef535e936e6
[ "MIT" ]
4
2018-04-15T14:16:12.000Z
2020-08-10T14:31:48.000Z
from django.contrib import messages from django.contrib.auth.mixins import LoginRequiredMixin from django.http import HttpResponseRedirect from django.urls import reverse_lazy, reverse from django.utils.safestring import mark_safe from django.views.generic.detail import DetailView from django.views.generic.edit import ...
35.377246
103
0.578707
from django.contrib import messages from django.contrib.auth.mixins import LoginRequiredMixin from django.http import HttpResponseRedirect from django.urls import reverse_lazy, reverse from django.utils.safestring import mark_safe from django.views.generic.detail import DetailView from django.views.generic.edit import ...
true
true
f736b538d2107df08b7a4282e3685e2626d1ed3a
25,638
py
Python
kCoreBots/CoreBotEN/MachineLearning/NaiveBayes/PythonScripts/NaiveBayesClassifier.py
sai6kiran/TwitterBotFarms
cf6bfddda9fac1e27477186fd4f4b086ac711781
[ "MIT" ]
null
null
null
kCoreBots/CoreBotEN/MachineLearning/NaiveBayes/PythonScripts/NaiveBayesClassifier.py
sai6kiran/TwitterBotFarms
cf6bfddda9fac1e27477186fd4f4b086ac711781
[ "MIT" ]
null
null
null
kCoreBots/CoreBotEN/MachineLearning/NaiveBayes/PythonScripts/NaiveBayesClassifier.py
sai6kiran/TwitterBotFarms
cf6bfddda9fac1e27477186fd4f4b086ac711781
[ "MIT" ]
null
null
null
from contractionsDict import contractionsDict import pandas as pd import time import numpy as np import re from pattern.en import pluralize, singularize import sys import csv from LemmitizationandStemConverter import ObtainStemAndLemmatizationWord def priorProb(scv): pct = 0 #positive count total nct = 0 #negative c...
39.687307
305
0.646111
from contractionsDict import contractionsDict import pandas as pd import time import numpy as np import re from pattern.en import pluralize, singularize import sys import csv from LemmitizationandStemConverter import ObtainStemAndLemmatizationWord def priorProb(scv): pct = 0 nct = 0 Nct = 0 ntt = 0 for index,...
true
true
f736b6565c1bb8f5de982ca3207e4f6379fedba3
1,792
py
Python
v1/bin/delete_listner.py
badassops/ops-aws
2e6b76e62e7b9edaa3ba43ff57df90b75c75aba7
[ "BSD-3-Clause" ]
2
2019-02-28T06:49:19.000Z
2019-12-30T09:41:17.000Z
v1/bin/delete_listner.py
badassops/ops-aws
2e6b76e62e7b9edaa3ba43ff57df90b75c75aba7
[ "BSD-3-Clause" ]
null
null
null
v1/bin/delete_listner.py
badassops/ops-aws
2e6b76e62e7b9edaa3ba43ff57df90b75c75aba7
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 """ for testing the module awsbuild """ import sys import logging from bao_config import AwsConfig from bao_connector import AwsConnector def main(): """ main """ my_logfile = 'logs/awsbuild.log' my_region = 'us-east-1' #my_vpc = 'vpc-xxx' #my_tag = 'momo-us-east-1' # s...
32.581818
100
0.648438
import sys import logging from bao_config import AwsConfig from bao_connector import AwsConnector def main(): my_logfile = 'logs/awsbuild.log' my_region = 'us-east-1' log_formatter = logging.Formatter("%(asctime)s %(filename)s %(name)s %(levelname)s %(message)s") root_logger = logging...
true
true
f736b6902a0e16ebbc62a35381f3cd87fc7fc6a4
612,396
py
Python
toontown/chat/WhiteListData.py
DankMickey/Project-Altis-Educational-Source
0a74999fb52d4e690a41b984703119f63c372d20
[ "Apache-2.0" ]
1
2021-06-25T02:56:32.000Z
2021-06-25T02:56:32.000Z
toontown/chat/WhiteListData.py
kool601/Project-Altis-Educational-Source
0a74999fb52d4e690a41b984703119f63c372d20
[ "Apache-2.0" ]
null
null
null
toontown/chat/WhiteListData.py
kool601/Project-Altis-Educational-Source
0a74999fb52d4e690a41b984703119f63c372d20
[ "Apache-2.0" ]
2
2017-12-20T17:46:56.000Z
2021-06-25T02:56:36.000Z
WHITELIST = [ '', ' pages', '!', '"', '#blamebarks', '#blamebethy', '#blamedan', '#blamedrew', '#blamedubito', '#blamegeezer', '#blamelimeymouse', '#blameloopy', '#blameremote', '#blameskipps', '#blamesmirky', '#blametubby', '#smirkbump', '#smirkyc...
16.118653
62
0.498176
WHITELIST = [ '', ' pages', '!', '"', '#blamebarks', '#blamebethy', '#blamedan', '#blamedrew', '#blamedubito', '#blamegeezer', '#blamelimeymouse', '#blameloopy', '#blameremote', '#blameskipps', '#blamesmirky', '#blametubby', '#smirkbump', '#smirkyc...
true
true
f736b69cf3117e2bde9314a2d47c671dcdbc4263
1,722
py
Python
userAuthentication/models.py
Jeremiahjacinth13/tradex
80c0024017c35531bad4042ad199dc9dddcad54a
[ "MIT" ]
1
2020-09-22T16:09:49.000Z
2020-09-22T16:09:49.000Z
userAuthentication/models.py
Jeremiahjacinth13/tradex
80c0024017c35531bad4042ad199dc9dddcad54a
[ "MIT" ]
null
null
null
userAuthentication/models.py
Jeremiahjacinth13/tradex
80c0024017c35531bad4042ad199dc9dddcad54a
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth.models import AbstractUser import json # Create your models here. class User(AbstractUser): USERTYPE_CHOICES = ( ('buyer', 'Buyer'), ('seller', 'Seller') ) userType = models.CharField(choices=USERTYPE_CHOICES, default='buyer', max_length=9) profile_...
41
412
0.704994
from django.db import models from django.contrib.auth.models import AbstractUser import json class User(AbstractUser): USERTYPE_CHOICES = ( ('buyer', 'Buyer'), ('seller', 'Seller') ) userType = models.CharField(choices=USERTYPE_CHOICES, default='buyer', max_length=9) profile_picture = models.ImageFiel...
true
true
f736b6f61677ea8db1df2c211cae042863c5beca
3,935
py
Python
tests/easier68k/core/opcodes/test_subq.py
bpas247/Easier68k
30a39883f1e73cd2bd848cf7bd356c96b8664ff4
[ "MIT" ]
16
2018-03-03T21:00:14.000Z
2021-11-04T09:16:08.000Z
tests/easier68k/core/opcodes/test_subq.py
bpas247/Easier68k
30a39883f1e73cd2bd848cf7bd356c96b8664ff4
[ "MIT" ]
99
2018-02-27T19:02:59.000Z
2019-10-29T22:39:26.000Z
tests/easier68k/core/opcodes/test_subq.py
bpas247/Easier68k
30a39883f1e73cd2bd848cf7bd356c96b8664ff4
[ "MIT" ]
5
2018-04-04T02:03:10.000Z
2019-11-19T17:42:42.000Z
""" Test method for Sub opcode """ from easier68k.simulator.m68k import M68K from easier68k.core.opcodes.subq import Subq from easier68k.core.models.assembly_parameter import AssemblyParameter from easier68k.core.enum.ea_mode import EAMode from easier68k.core.enum.register import Register from easier68k.core.enum.op_...
23.993902
94
0.67014
from easier68k.simulator.m68k import M68K from easier68k.core.opcodes.subq import Subq from easier68k.core.models.assembly_parameter import AssemblyParameter from easier68k.core.enum.ea_mode import EAMode from easier68k.core.enum.register import Register from easier68k.core.enum.op_size import OpSize from easier68k.co...
true
true
f736b6f6f60ebbb068ffdf173d88b321ee06190e
880
py
Python
ELAB09/09-04.py
tawanchaiii/01204111_63
edf1174f287f5174d93729d9b5c940c74d3b6553
[ "WTFPL" ]
null
null
null
ELAB09/09-04.py
tawanchaiii/01204111_63
edf1174f287f5174d93729d9b5c940c74d3b6553
[ "WTFPL" ]
null
null
null
ELAB09/09-04.py
tawanchaiii/01204111_63
edf1174f287f5174d93729d9b5c940c74d3b6553
[ "WTFPL" ]
null
null
null
class py_solution: def __init__(self,L): self.L = L self.stack = [] self.A = ['(','[','{'] self.B = [')',']','}'] def is_valid_parentheses(self): for i in self.L : if i in self.A : self.stack.append(i) else : ...
31.428571
61
0.445455
class py_solution: def __init__(self,L): self.L = L self.stack = [] self.A = ['(','[','{'] self.B = [')',']','}'] def is_valid_parentheses(self): for i in self.L : if i in self.A : self.stack.append(i) else : ...
true
true
f736b814c11d6a2e7707ec1540b0664a45130c58
8,174
py
Python
tests/test-upgrade.py
panlinux/microk8s
500e5f48f1080cae8aab79619c8d7ae16d4111ca
[ "Apache-2.0" ]
1
2020-08-09T18:58:38.000Z
2020-08-09T18:58:38.000Z
tests/test-upgrade.py
thegirlintheroom613/microk8s
56a91115b40378952f3b16b8bb9bd4b5ed37901c
[ "Apache-2.0" ]
16
2020-08-25T17:02:09.000Z
2022-03-02T03:03:55.000Z
tests/test-upgrade.py
thegirlintheroom613/microk8s
56a91115b40378952f3b16b8bb9bd4b5ed37901c
[ "Apache-2.0" ]
null
null
null
import pytest import os import platform import time import requests from validators import ( validate_dns_dashboard, validate_storage, validate_ingress, validate_ambassador, validate_gpu, validate_registry, validate_forward, validate_metrics_server, validate_prometheus, validate_...
35.53913
97
0.589308
import pytest import os import platform import time import requests from validators import ( validate_dns_dashboard, validate_storage, validate_ingress, validate_ambassador, validate_gpu, validate_registry, validate_forward, validate_metrics_server, validate_prometheus, validate_...
true
true
f736b989a20a38aa334c0842fad73b91270d1165
4,189
py
Python
apps/operation/migrations/0001_initial.py
wusri66666/Demo_Study
0d2e6c506fba90bc144b29e2c44555f7fe83c8ac
[ "Apache-2.0" ]
null
null
null
apps/operation/migrations/0001_initial.py
wusri66666/Demo_Study
0d2e6c506fba90bc144b29e2c44555f7fe83c8ac
[ "Apache-2.0" ]
null
null
null
apps/operation/migrations/0001_initial.py
wusri66666/Demo_Study
0d2e6c506fba90bc144b29e2c44555f7fe83c8ac
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.7 on 2019-01-04 08:34 from __future__ import unicode_literals import datetime from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ...
46.032967
137
0.577226
from __future__ import unicode_literals import datetime from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ...
true
true
f736b9b9799e47cbbfa10c26164b065ef169814c
584
py
Python
Linux-Operation0605/app/utils/domain_session.py
zhouli121018/nodejsgm
0ccbc8acf61badc812f684dd39253d55c99f08eb
[ "MIT" ]
null
null
null
Linux-Operation0605/app/utils/domain_session.py
zhouli121018/nodejsgm
0ccbc8acf61badc812f684dd39253d55c99f08eb
[ "MIT" ]
18
2020-06-05T18:17:40.000Z
2022-03-11T23:25:21.000Z
Linux-Operation0605/app/utils/domain_session.py
zhouli121018/nodejsgm
0ccbc8acf61badc812f684dd39253d55c99f08eb
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from app.core.models import Domain def get_domainid_bysession(request): """ 获取操作域名ID :param request: :return: """ try: domain_id = int(request.session.get('domain_id', None)) except: domain_id = 0 if not domain_id: obj = Domain.objects.order_b...
26.545455
63
0.623288
from app.core.models import Domain def get_domainid_bysession(request): try: domain_id = int(request.session.get('domain_id', None)) except: domain_id = 0 if not domain_id: obj = Domain.objects.order_by('id').first() if obj: domain_id = obj.id reques...
true
true
f736ba506e1db4cd229deabcd56464863bde4f78
132
py
Python
src/home/admin.py
pandeydivesh15/item_sharing_portal
c814d5cf0a7b34d73d8155e508a0cf4f334af199
[ "MIT" ]
1
2019-11-04T16:45:27.000Z
2019-11-04T16:45:27.000Z
src/home/admin.py
pandeydivesh15/item_sharing_portal
c814d5cf0a7b34d73d8155e508a0cf4f334af199
[ "MIT" ]
null
null
null
src/home/admin.py
pandeydivesh15/item_sharing_portal
c814d5cf0a7b34d73d8155e508a0cf4f334af199
[ "MIT" ]
null
null
null
from django.contrib import admin # Register your models here. from .models import feedback_data admin.site.register(feedback_data)
22
34
0.825758
from django.contrib import admin from .models import feedback_data admin.site.register(feedback_data)
true
true
f736ba8e434c0a446055bf225b513f600d7b732a
3,173
py
Python
app/models/users.py
larryTheGeek/ride_my_way_v2
b5f20095308a9230dc4fc63fcacae278c8f8ed71
[ "MIT" ]
null
null
null
app/models/users.py
larryTheGeek/ride_my_way_v2
b5f20095308a9230dc4fc63fcacae278c8f8ed71
[ "MIT" ]
5
2021-03-18T20:54:03.000Z
2022-03-11T23:27:31.000Z
app/models/users.py
LarryKarani/ride_my_way_v2
b5f20095308a9230dc4fc63fcacae278c8f8ed71
[ "MIT" ]
null
null
null
"""This module contains the user model that regesters a new user """ import os import datetime from .db import Db from werkzeug.security import generate_password_hash class User(): def __init__(self, username, email, password, designation): self.username = username self.email = email self....
31.415842
76
0.532934
import os import datetime from .db import Db from werkzeug.security import generate_password_hash class User(): def __init__(self, username, email, password, designation): self.username = username self.email = email self.password = generate_password_hash(password.strip()) self.desi...
true
true
f736bf59d0f7748a75d7f375e3061bb8208a79b4
6,221
py
Python
sentinel2_processing/georasteR_converter.py
JonathanLehner/cassini_2021_nature_discoverer
41e1e7ec01400d16bd34baf0763adce0383f3841
[ "Apache-2.0" ]
1
2021-06-20T14:04:14.000Z
2021-06-20T14:04:14.000Z
sentinel2_processing/georasteR_converter.py
JonathanLehner/cassini_2021_nature_discoverer
41e1e7ec01400d16bd34baf0763adce0383f3841
[ "Apache-2.0" ]
null
null
null
sentinel2_processing/georasteR_converter.py
JonathanLehner/cassini_2021_nature_discoverer
41e1e7ec01400d16bd34baf0763adce0383f3841
[ "Apache-2.0" ]
2
2021-06-23T15:27:10.000Z
2021-06-28T20:48:22.000Z
""" now using https://towardsdatascience.com/reading-and-visualizing-geotiff-images-with-python-8dcca7a74510 https://github.com/GeoUtils/georaster/blob/master/georaster/georaster.py https://rasterio.readthedocs.io/en/latest/topics/color.html """ import os import pprint as pp import time from datetime import datetime f...
40.660131
108
0.634142
import os import pprint as pp import time from datetime import datetime from os import listdir from os.path import join, isfile import georaster from osgeo import gdal import matplotlib.pyplot as plt import wordninja from cleantext import clean from natsort import natsorted from tqdm import tqdm tif_dir_path = str(i...
true
true
f736c2f98e04eecb89ffda818d0aed23fa7d8694
85
py
Python
api/immfly/environments/local_settings.py
pollitosabroson/fly
2f0846d26e4482f723a990bbd18b43220b3c4521
[ "Apache-2.0" ]
null
null
null
api/immfly/environments/local_settings.py
pollitosabroson/fly
2f0846d26e4482f723a990bbd18b43220b3c4521
[ "Apache-2.0" ]
null
null
null
api/immfly/environments/local_settings.py
pollitosabroson/fly
2f0846d26e4482f723a990bbd18b43220b3c4521
[ "Apache-2.0" ]
null
null
null
from immfly.settings import * # NOQA INSTALLED_APPS += [ # NOQA 'drf_yasg', ]
14.166667
37
0.635294
from immfly.settings import * INSTALLED_APPS += [ 'drf_yasg', ]
true
true
f736c33e21dacfcd6131ef5e31914f56c754e7d8
747
py
Python
terra_qry_discord_bot.py
ngmisl/terra-python-query
b42d87bd806f6fcd275152b4e4c4c769eb0c2cd9
[ "MIT" ]
3
2022-01-23T06:59:55.000Z
2022-01-23T09:33:59.000Z
terra_qry_discord_bot.py
ngmisl/terra-python-query
b42d87bd806f6fcd275152b4e4c4c769eb0c2cd9
[ "MIT" ]
null
null
null
terra_qry_discord_bot.py
ngmisl/terra-python-query
b42d87bd806f6fcd275152b4e4c4c769eb0c2cd9
[ "MIT" ]
2
2022-01-23T06:59:57.000Z
2022-01-23T09:34:33.000Z
import discord import requests import os my_secret = os.environ['TOKEN'] glow = 'terra1tu9yjssxslh3fd6fe908ntkquf3nd3xt8kp2u2' client = discord.Client() @client.event async def on_ready(): print('We have logged in as {0.user}'.format(client)) @client.event async def on_message(message): if message.author == cl...
24.096774
87
0.69344
import discord import requests import os my_secret = os.environ['TOKEN'] glow = 'terra1tu9yjssxslh3fd6fe908ntkquf3nd3xt8kp2u2' client = discord.Client() @client.event async def on_ready(): print('We have logged in as {0.user}'.format(client)) @client.event async def on_message(message): if message.author == cl...
true
true
f736c4711122603da5cb790791c0fc789c9401ee
103,746
py
Python
research/object_detection/core/preprocessor.py
imcwx/models
523ff5d0d50c3181329e62509270d4d778734000
[ "Apache-2.0" ]
null
null
null
research/object_detection/core/preprocessor.py
imcwx/models
523ff5d0d50c3181329e62509270d4d778734000
[ "Apache-2.0" ]
null
null
null
research/object_detection/core/preprocessor.py
imcwx/models
523ff5d0d50c3181329e62509270d4d778734000
[ "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...
39.031603
99
0.668623
import sys import tensorflow as tf import numpy as np from tensorflow.python.ops import control_flow_ops from object_detection.core import box_list from object_detection.core import box_list_ops from object_detection.core import keypoint_ops from object_detection.core import standard_fields as fields ...
true
true
f736c558fdfca3270d670899f7bfc0b45578046f
2,718
py
Python
src/gdalos/__util__.py
talos-gis/gdalos
8ba3d8c512c9c13adee2287d0f254f35b3b74b57
[ "MIT" ]
null
null
null
src/gdalos/__util__.py
talos-gis/gdalos
8ba3d8c512c9c13adee2287d0f254f35b3b74b57
[ "MIT" ]
null
null
null
src/gdalos/__util__.py
talos-gis/gdalos
8ba3d8c512c9c13adee2287d0f254f35b3b74b57
[ "MIT" ]
null
null
null
from functools import wraps from inspect import Parameter, signature from itertools import chain from typing import Mapping, Sequence class CallParamDict: def __init__( self, func, args: tuple, kwargs: dict, pos_param_names: Sequence[str], all_params: Mapping[str, P...
28.914894
88
0.566225
from functools import wraps from inspect import Parameter, signature from itertools import chain from typing import Mapping, Sequence class CallParamDict: def __init__( self, func, args: tuple, kwargs: dict, pos_param_names: Sequence[str], all_params: Mapping[str, P...
true
true
f736c660effd8b5895693520368dddb51a4ea7b9
4,020
py
Python
setup.py
llvm-mirror/lnt
8c57bba3687ada10de5653ae46c537e957525bdb
[ "Apache-2.0" ]
12
2015-10-29T19:28:02.000Z
2020-02-04T21:25:32.000Z
setup.py
llvm-mirror/lnt
8c57bba3687ada10de5653ae46c537e957525bdb
[ "Apache-2.0" ]
3
2017-03-04T14:23:14.000Z
2019-11-02T21:56:51.000Z
setup.py
llvm-mirror/lnt
8c57bba3687ada10de5653ae46c537e957525bdb
[ "Apache-2.0" ]
14
2015-04-03T03:36:06.000Z
2019-10-23T14:09:08.000Z
try: from pip.req import parse_requirements except ImportError: # The req module has been moved to pip._internal in the 10 release. from pip._internal.req import parse_requirements import lnt import os from sys import platform as _platform import sys from setuptools import setup, find_packages, Extension i...
30.225564
77
0.597512
try: from pip.req import parse_requirements except ImportError: from pip._internal.req import parse_requirements import lnt import os from sys import platform as _platform import sys from setuptools import setup, find_packages, Extension if sys.version_info < (2, 7): raise RuntimeError("Python 2.7 or ...
true
true
f736c670b872bb5fafda18c985b34fa9f433811e
447
py
Python
test/test.py
huangjunxiong11/Change-Grounp
f265df1141a951bc2f7d4a87fadaad247d7114e3
[ "MIT" ]
2
2020-12-23T15:58:38.000Z
2020-12-23T15:59:25.000Z
test/test.py
huangjunxiong11/Change-Grounp
f265df1141a951bc2f7d4a87fadaad247d7114e3
[ "MIT" ]
null
null
null
test/test.py
huangjunxiong11/Change-Grounp
f265df1141a951bc2f7d4a87fadaad247d7114e3
[ "MIT" ]
1
2020-11-04T15:05:15.000Z
2020-11-04T15:05:15.000Z
from moviepy.editor import VideoFileClip import os def setbitrate(inputvideo, bitrate): """ 改变视频码率,降低码率也可以实现对视频大小的最优化压缩 :param inputvideo: :param bitrate: 例如600k :return: """ path, _ = os.path.splitext(inputvideo) a = '设置码率{}.mp4'.format(bitrate) name = path + a cmd = 'ffmpeg -...
21.285714
75
0.626398
from moviepy.editor import VideoFileClip import os def setbitrate(inputvideo, bitrate): path, _ = os.path.splitext(inputvideo) a = '设置码率{}.mp4'.format(bitrate) name = path + a cmd = 'ffmpeg -i ' + inputvideo + ' -b:v ' + str(bitrate) + 'k ' + name os.system(cmd) setbitrate('output有音频视频.mp4'...
true
true
f736c6794b84f1e36bf7856de283b96e698d0546
136
py
Python
src/scenery/model/SceneFile.py
Dachaz/scenery
e64199eb064b192bbbad2aa3944f136c24048866
[ "MIT" ]
9
2019-02-18T23:07:08.000Z
2020-08-24T02:17:35.000Z
src/scenery/model/SceneFile.py
Dachaz/scenery
e64199eb064b192bbbad2aa3944f136c24048866
[ "MIT" ]
1
2020-08-08T16:52:12.000Z
2020-08-08T16:52:12.000Z
src/scenery/model/SceneFile.py
Dachaz/scenery
e64199eb064b192bbbad2aa3944f136c24048866
[ "MIT" ]
null
null
null
class SceneFile: def __init__(self, fileName, root): self.root = root self.file = fileName self.meta = None
22.666667
39
0.595588
class SceneFile: def __init__(self, fileName, root): self.root = root self.file = fileName self.meta = None
true
true
f736c7ee25f80c9c01427982f19ab5291706222f
1,241
py
Python
src/ethereum/frontier/vm/error.py
norswap/execution-specs
c2274790e8ac2d637c7dbe092477a1b21243916c
[ "CC0-1.0" ]
1
2021-09-07T21:30:14.000Z
2021-09-07T21:30:14.000Z
src/ethereum/frontier/vm/error.py
KenMan79/execution-specs
ac8e65a422032a8ebb4077068627bbfb2fce6eda
[ "CC0-1.0" ]
null
null
null
src/ethereum/frontier/vm/error.py
KenMan79/execution-specs
ac8e65a422032a8ebb4077068627bbfb2fce6eda
[ "CC0-1.0" ]
null
null
null
""" Ethereum Virtual Machine (EVM) Errors ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ .. contents:: Table of Contents :backlinks: none :local: Introduction ------------ Errors which cause the EVM to halt exceptionally. """ class StackUnderflowError(Exception): """ Occurs when a pop is executed on an empt...
18.80303
75
0.641418
class StackUnderflowError(Exception): pass class StackOverflowError(Exception): pass class OutOfGasError(Exception): pass class InvalidOpcode(Exception): pass class InvalidJumpDestError(Exception): class StackDepthLimitError(Exception): pass
true
true
f736c82e74565020361811d21f1cd08ec4a3f895
465
py
Python
src/setup.py
mr-niels-christensen/pyrules
807b2d9afe0fb540ecb5a2302cc1bcdc9733a89e
[ "MIT" ]
null
null
null
src/setup.py
mr-niels-christensen/pyrules
807b2d9afe0fb540ecb5a2302cc1bcdc9733a89e
[ "MIT" ]
19
2015-08-26T13:59:50.000Z
2016-05-16T15:27:44.000Z
src/setup.py
mr-niels-christensen/pyrules
807b2d9afe0fb540ecb5a2302cc1bcdc9733a89e
[ "MIT" ]
null
null
null
from distutils.core import setup setup( name='pyrules', version='0.2', packages=['pyrules2'], package_dir={'': 'src'}, url='https://github.com/mr-niels-christensen/pyrules', license='MIT', author='Niels Christensen', author_email='nhc@mayacs.com', description='pyrules is a pure-Pyth...
25.833333
98
0.63871
from distutils.core import setup setup( name='pyrules', version='0.2', packages=['pyrules2'], package_dir={'': 'src'}, url='https://github.com/mr-niels-christensen/pyrules', license='MIT', author='Niels Christensen', author_email='nhc@mayacs.com', description='pyrules is a pure-Pyth...
true
true
f736c82fdd13410b5006180443ed9fb5d2275d3b
496
py
Python
examples/cc/h2o_ccsd_t.py
seunghoonlee89/pyscf-ecCC-TCC
2091566fb83c1474e40bf74f271be2ce4611f60c
[ "Apache-2.0" ]
2
2021-09-17T06:10:17.000Z
2022-01-22T23:37:22.000Z
examples/cc/h2o_ccsd_t.py
seunghoonlee89/pyscf-ecCC-TCC
2091566fb83c1474e40bf74f271be2ce4611f60c
[ "Apache-2.0" ]
null
null
null
examples/cc/h2o_ccsd_t.py
seunghoonlee89/pyscf-ecCC-TCC
2091566fb83c1474e40bf74f271be2ce4611f60c
[ "Apache-2.0" ]
2
2021-09-16T23:37:42.000Z
2021-10-14T23:00:39.000Z
#!/usr/bin/env python # # Author: Qiming Sun <osirpt.sun@gmail.com> # ''' A simple example to run CCSD(T) and UCCSD(T) calculation. ''' import pyscf mol = pyscf.M( atom = 'O -0.26677564 -0.27872083 0.00000000;\ H -0.26677564 0.82127917 0.00000000;\ H -0.266775...
21.565217
63
0.574597
import pyscf mol = pyscf.M( atom = 'O -0.26677564 -0.27872083 0.00000000;\ H -0.26677564 0.82127917 0.00000000;\ H -0.26677564 -0.64538753 1.03708994', basis = 'ccpvtz') mf = mol.RHF().run() mycc = mf.CCSD().run() et = mycc.ccsd_t() print('CCSD...
true
true
f736c918bf41087689867b9a502ccd0940fcd521
1,294
py
Python
fileSystem/school-projects/development/softwaredesignandcomputerlogiccis122/cis122lab3/python/testresponse.py
nomad-mystic/nomadmystic
7814c1f7c1a45464df5896d03dd3c3bed0f763d0
[ "MIT" ]
1
2016-06-15T08:36:56.000Z
2016-06-15T08:36:56.000Z
fileSystem/school-projects/development/softwaredesignandcomputerlogiccis122/cis122lab3/python/testresponse.py
nomad-mystic/nomadmystic
7814c1f7c1a45464df5896d03dd3c3bed0f763d0
[ "MIT" ]
1
2016-06-08T13:05:41.000Z
2016-06-08T13:06:07.000Z
fileSystem/school-projects/development/softwaredesignandcomputerlogiccis122/cis122lab3/python/testresponse.py
nomad-mystic/nomadmystic
7814c1f7c1a45464df5896d03dd3c3bed0f763d0
[ "MIT" ]
null
null
null
__author__ = 'pather' import urllib.request import re africa_url_response = urllib.request.urlopen('http://worldpopulationreview.com/continents/africa-population/') africa_url_html = africa_url_response.read() africa_url_text = africa_url_html.decode('UTF-8') africa_current_population = re.search('<span>([^<]*)', afr...
34.052632
110
0.742658
__author__ = 'pather' import urllib.request import re africa_url_response = urllib.request.urlopen('http://worldpopulationreview.com/continents/africa-population/') africa_url_html = africa_url_response.read() africa_url_text = africa_url_html.decode('UTF-8') africa_current_population = re.search('<span>([^<]*)', afr...
true
true
f736ca658d4562bd6ffedbbd40c676eef04de781
8,708
py
Python
sdk/python/pulumi_azure_native/apimanagement/latest/api_issue_comment.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/apimanagement/latest/api_issue_comment.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/apimanagement/latest/api_issue_comment.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables __a...
52.775758
1,526
0.673404
import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables __all__ = ['ApiIssueComment'] warnings.warn("""The 'latest' version is deprecated. Please migrate to the resource in the top-level module: 'azure-native:apimanagement:...
true
true
f736caa58345d44b679f5da0f0f74b98382e2f08
5,473
py
Python
spotty/providers/gcp/gcp_resources/instance.py
Inculus/spotty
56863012668a6c13ad13c2a04f900047e229fbe6
[ "MIT" ]
1
2020-07-17T07:02:09.000Z
2020-07-17T07:02:09.000Z
spotty/providers/gcp/gcp_resources/instance.py
Inculus/spotty
56863012668a6c13ad13c2a04f900047e229fbe6
[ "MIT" ]
null
null
null
spotty/providers/gcp/gcp_resources/instance.py
Inculus/spotty
56863012668a6c13ad13c2a04f900047e229fbe6
[ "MIT" ]
null
null
null
from datetime import datetime from spotty.providers.gcp.helpers.ce_client import CEClient class Instance(object): def __init__(self, ce: CEClient, data: dict): """ Args: data (dict): Example: {'canIpForward': False, 'cpuPlatform': 'Intel Haswell', ...
48.433628
155
0.494975
from datetime import datetime from spotty.providers.gcp.helpers.ce_client import CEClient class Instance(object): def __init__(self, ce: CEClient, data: dict): self._ce = ce self._data = data @staticmethod def get_by_name(ce: CEClient, machine_name: str): res = ce.list_instances(...
true
true