hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
78
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
3
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
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
3
972
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
78
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
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
662fe6f68a55d85e9597ae12654d37b5f53a2e7f
1,460
py
Python
otp/avatar/AvatarDetail.py
TheFamiliarScoot/open-toontown
678313033174ea7d08e5c2823bd7b473701ff547
[ "BSD-3-Clause" ]
99
2019-11-02T22:25:00.000Z
2022-02-03T03:48:00.000Z
otp/avatar/AvatarDetail.py
TheFamiliarScoot/open-toontown
678313033174ea7d08e5c2823bd7b473701ff547
[ "BSD-3-Clause" ]
42
2019-11-03T05:31:08.000Z
2022-03-16T22:50:32.000Z
otp/avatar/AvatarDetail.py
TheFamiliarScoot/open-toontown
678313033174ea7d08e5c2823bd7b473701ff547
[ "BSD-3-Clause" ]
57
2019-11-03T07:47:37.000Z
2022-03-22T00:41:49.000Z
from direct.directnotify.DirectNotifyGlobal import directNotify from otp.avatar import Avatar class AvatarDetail: notify = directNotify.newCategory('AvatarDetail') def __init__(self, doId, callWhenDone): self.id = doId self.callWhenDone = callWhenDone self.enterQuery() def isReady...
28.076923
90
0.609589
229e8055614b00fc0adab1549e85a0f80a5c5f5e
885
py
Python
okta/models/network_zone_usage.py
corylevine/okta-sdk-python
c86b8fdc4525e84199143c27213c0aebc6b2af8f
[ "Apache-2.0" ]
145
2017-06-13T21:54:04.000Z
2022-02-25T05:44:34.000Z
okta/models/network_zone_usage.py
corylevine/okta-sdk-python
c86b8fdc4525e84199143c27213c0aebc6b2af8f
[ "Apache-2.0" ]
146
2017-06-02T17:46:12.000Z
2022-03-29T15:52:15.000Z
okta/models/network_zone_usage.py
corylevine/okta-sdk-python
c86b8fdc4525e84199143c27213c0aebc6b2af8f
[ "Apache-2.0" ]
98
2017-06-27T03:44:51.000Z
2022-03-23T04:58:18.000Z
# flake8: noqa """ Copyright 2020 - Present Okta, 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 law or agreed to in ...
26.029412
72
0.749153
7e6f108c88f3d6dc4104d1cceb0ad718e92ecb3e
115
py
Python
Problem/PeopleFund/check_strict_superset.py
yeojin-dev/coding-test
30ce8507838beaa9232c6fc6c62a7dcb62d51464
[ "MIT" ]
2
2018-07-11T08:13:06.000Z
2018-07-11T08:47:12.000Z
Problem/PeopleFund/check_strict_superset.py
yeojin-dev/coding-test
30ce8507838beaa9232c6fc6c62a7dcb62d51464
[ "MIT" ]
null
null
null
Problem/PeopleFund/check_strict_superset.py
yeojin-dev/coding-test
30ce8507838beaa9232c6fc6c62a7dcb62d51464
[ "MIT" ]
null
null
null
superset = set(input().split()) print(all(superset.issuperset(set(input().split())) for _ in range(int(input()))))
38.333333
82
0.686957
fdf3e60b74ec754e7d94203ea13b37192b99f63e
2,050
py
Python
easy_lmfit/__init__.py
AndrewOriani/Easy-LMFit
ade0f76354710c3d810ea9c854e5d7ed5b4867bb
[ "BSD-3-Clause" ]
2
2021-06-12T04:24:06.000Z
2022-03-12T13:14:30.000Z
easy_lmfit/__init__.py
AndrewOriani/Easy-LMFit
ade0f76354710c3d810ea9c854e5d7ed5b4867bb
[ "BSD-3-Clause" ]
null
null
null
easy_lmfit/__init__.py
AndrewOriani/Easy-LMFit
ade0f76354710c3d810ea9c854e5d7ed5b4867bb
[ "BSD-3-Clause" ]
null
null
null
############################################################################## # Python header __author__ = "Andrew Oriani" __copyright__ = "Copyright 2020" __credits__ = ["Andrew E. Oriani"] __license__ = "BSD-3-Clause" __version__ = "1.0" __maintainer__ = "Andrew Oriani Schusterlab" __email__ = "oriani@uchicago.edu"...
32.539683
152
0.745366
27a31caf133727d57d96d316dfd40cd6c5fc189a
2,919
py
Python
datastore/tests/system/utils/populate_datastore.py
MatiasApi/CourseBV11
7a291238d5b0879e97acdabe037afaf1b0b7d60b
[ "Apache-2.0" ]
null
null
null
datastore/tests/system/utils/populate_datastore.py
MatiasApi/CourseBV11
7a291238d5b0879e97acdabe037afaf1b0b7d60b
[ "Apache-2.0" ]
null
null
null
datastore/tests/system/utils/populate_datastore.py
MatiasApi/CourseBV11
7a291238d5b0879e97acdabe037afaf1b0b7d60b
[ "Apache-2.0" ]
null
null
null
# Copyright 2014 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
27.027778
74
0.560808
ad908b438a5936defedab18816de05bb4bda54df
3,491
py
Python
customSDK/servicefabric/models/application_upgrade_complete_event.py
leikong/service-fabric-cli
6ec1b1c8445b7cc5a889f3b172b47a6017c8888c
[ "MIT" ]
1
2020-06-16T22:32:27.000Z
2020-06-16T22:32:27.000Z
customSDK/servicefabric/models/application_upgrade_complete_event.py
leikong/service-fabric-cli
6ec1b1c8445b7cc5a889f3b172b47a6017c8888c
[ "MIT" ]
null
null
null
customSDK/servicefabric/models/application_upgrade_complete_event.py
leikong/service-fabric-cli
6ec1b1c8445b7cc5a889f3b172b47a6017c8888c
[ "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 ...
49.169014
197
0.689487
6b0e37c9b2c0cf6ded95100e7dbda6c6fc7df959
567
py
Python
mylibrary/booksmanager/migrations/0002_book_type.py
DrageKongen/my-library
9f90e83ecd40d3c3edc65b9fab50109403412eee
[ "MIT" ]
null
null
null
mylibrary/booksmanager/migrations/0002_book_type.py
DrageKongen/my-library
9f90e83ecd40d3c3edc65b9fab50109403412eee
[ "MIT" ]
null
null
null
mylibrary/booksmanager/migrations/0002_book_type.py
DrageKongen/my-library
9f90e83ecd40d3c3edc65b9fab50109403412eee
[ "MIT" ]
null
null
null
# Generated by Django 3.1.7 on 2021-05-08 15:59 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('booksmanager', '0001_initial'), ] operations = [ migrations.AddField( model_name='book', name='type', fi...
29.842105
243
0.606702
2e830a4529c2062ff698c33d4344939ffae31a46
12,416
py
Python
augmentor.py
cfwelch/longitudinal_dialog
9f2de780026565df6447301a134a3f2126b0e64b
[ "MIT" ]
13
2019-04-23T20:24:52.000Z
2020-05-21T12:55:02.000Z
augmentor.py
cfwelch/longitudinal_dialog
9f2de780026565df6447301a134a3f2126b0e64b
[ "MIT" ]
null
null
null
augmentor.py
cfwelch/longitudinal_dialog
9f2de780026565df6447301a134a3f2126b0e64b
[ "MIT" ]
null
null
null
import operator, msgpack, nltk, math, sys, os from nltk.corpus import stopwords from datetime import datetime from tqdm import tqdm from argparse import ArgumentParser import numpy as np import dateutil.parser from utils import settings, liwc_keys, lsm_keys, open_for_write, DEFAULT_TIMEZONE from normalizer import e...
45.647059
265
0.573615
be1e9021c46401acc553266772223f05e6893e8b
870
py
Python
mathgenerator/funcs/algebra/distance_two_points.py
Sankari-K/mathgenerator
712c74fbe34fe594c4c0f7e3b3057b01d85112ba
[ "MIT" ]
40
2020-10-14T17:29:51.000Z
2020-11-01T04:41:03.000Z
mathgenerator/funcs/algebra/distance_two_points.py
Sankari-K/mathgenerator
712c74fbe34fe594c4c0f7e3b3057b01d85112ba
[ "MIT" ]
209
2020-10-14T15:32:08.000Z
2020-11-03T19:08:19.000Z
mathgenerator/funcs/algebra/distance_two_points.py
Sankari-K/mathgenerator
712c74fbe34fe594c4c0f7e3b3057b01d85112ba
[ "MIT" ]
179
2020-10-14T15:36:55.000Z
2020-10-29T19:26:16.000Z
from .__init__ import * def gen_func(maxValXY=20, minValXY=-20, format='string'): point1X = random.randint(minValXY, maxValXY + 1) point1Y = random.randint(minValXY, maxValXY + 1) point2X = random.randint(minValXY, maxValXY + 1) point2Y = random.randint(minValXY, maxValXY + 1) distanceSq = (point...
34.8
96
0.612644
19e97a8cbf11025a635129f49f247a439e4e8d12
351
py
Python
mulkeysdict.py
maurendeviia/pythoncharmers
b5775d0f51a6f2e5dc0365345e0436dea4c72c14
[ "MIT" ]
37
2020-10-01T15:20:12.000Z
2021-10-04T14:17:06.000Z
mulkeysdict.py
maurendeviia/pythoncharmers
b5775d0f51a6f2e5dc0365345e0436dea4c72c14
[ "MIT" ]
27
2020-10-01T12:32:41.000Z
2021-10-04T11:05:34.000Z
mulkeysdict.py
maurendeviia/pythoncharmers
b5775d0f51a6f2e5dc0365345e0436dea4c72c14
[ "MIT" ]
57
2020-10-01T11:24:26.000Z
2022-02-16T05:09:50.000Z
# Python code to demonstrate a dictionary with multiple inputs in a key. import random as rn # creating an empty dictionary dict = {} # Insert first triplet in dictionary x, y, z = 10, 20, 30 dict[x, y, z] = x + y - z; # Insert second triplet in dictionary x, y, z = 5, 2, 4 dict[x, y, z] = x + y - z; # prin...
20.647059
73
0.643875
8fbb418d34cddcd1b66e222afe07806d181b63e1
4,162
py
Python
lab/lab08/lab08.py
tingjunwong/cs88-python-data-structure
6d0da2c1468b9a571c742a62ab0b8cf625688591
[ "MIT" ]
null
null
null
lab/lab08/lab08.py
tingjunwong/cs88-python-data-structure
6d0da2c1468b9a571c742a62ab0b8cf625688591
[ "MIT" ]
null
null
null
lab/lab08/lab08.py
tingjunwong/cs88-python-data-structure
6d0da2c1468b9a571c742a62ab0b8cf625688591
[ "MIT" ]
null
null
null
# Lambda def compose(f, g): """Write a function that takes in 2 single-argument functions, f and g, and returns another lambda function that takes in a single argument x. The returned function should return the output of applying f(g(x)). Hint: The staff solution is only 1 line! Return the compositio...
23.251397
112
0.484863
50c52521e0c7c440b95bb577a8986398a5fc6812
4,878
py
Python
salt/utils/atomicfile.py
d--j/salt
579f900be67a80e1a77674bc6aa21fec836c1c4c
[ "Apache-2.0" ]
1
2015-06-05T13:47:02.000Z
2015-06-05T13:47:02.000Z
salt/utils/atomicfile.py
epoelke/salt
80ae64e54f9f336d3cdb6e03e42f2a50469ec8f2
[ "Apache-2.0" ]
null
null
null
salt/utils/atomicfile.py
epoelke/salt
80ae64e54f9f336d3cdb6e03e42f2a50469ec8f2
[ "Apache-2.0" ]
null
null
null
''' A module written originally by Armin Ronacher to manage file transfers in an atomic way ''' # Import python libs import os import tempfile import sys import errno import time import random CAN_RENAME_OPEN_FILE = False if os.name == 'nt': # pragma: no cover _rename = lambda src, dst: False # pylin...
32.52
81
0.543255
c90198236047808e84f9a69a93d9c120f13384a5
72
py
Python
scripts/run_local_site.py
hoogamaphone/world-manager
8d4515b93d303cf91626f69257e7cf00e200807a
[ "MIT" ]
null
null
null
scripts/run_local_site.py
hoogamaphone/world-manager
8d4515b93d303cf91626f69257e7cf00e200807a
[ "MIT" ]
null
null
null
scripts/run_local_site.py
hoogamaphone/world-manager
8d4515b93d303cf91626f69257e7cf00e200807a
[ "MIT" ]
null
null
null
from world_manager.app import create_app app = create_app() app.run()
12
40
0.763889
2ea431fe0864b37e367fc820ede5beac9ce6f412
645
py
Python
faker/providers/ssn/tr_TR/__init__.py
StabbarN/faker
57882ff73255cb248d8f995b2abfce5cfee45ab3
[ "MIT" ]
14
2020-08-01T21:30:04.000Z
2022-01-24T19:13:14.000Z
faker/providers/ssn/tr_TR/__init__.py
StabbarN/faker
57882ff73255cb248d8f995b2abfce5cfee45ab3
[ "MIT" ]
10
2020-03-24T10:47:53.000Z
2021-04-08T19:51:44.000Z
faker/providers/ssn/tr_TR/__init__.py
StabbarN/faker
57882ff73255cb248d8f995b2abfce5cfee45ab3
[ "MIT" ]
3
2021-02-08T22:30:17.000Z
2022-01-12T14:58:56.000Z
from .. import Provider as BaseProvider class Provider(BaseProvider): # Source: # Turkey Republic National Number is identity number. # Identity number contains 11 numbers, # First number can't be zero # Eleventh number is result of division after sum first number def ssn(self): """ ...
33.947368
97
0.617054
8afad768bbd850440cdca2e31955ae52ec78e823
91
py
Python
aerosandbox/tools/optimization_algorithms/patternsearch.py
SzymonSzyszko/AeroSandbox
d4084899b665f735c1ec218282b2e4aee08eacff
[ "MIT" ]
null
null
null
aerosandbox/tools/optimization_algorithms/patternsearch.py
SzymonSzyszko/AeroSandbox
d4084899b665f735c1ec218282b2e4aee08eacff
[ "MIT" ]
null
null
null
aerosandbox/tools/optimization_algorithms/patternsearch.py
SzymonSzyszko/AeroSandbox
d4084899b665f735c1ec218282b2e4aee08eacff
[ "MIT" ]
null
null
null
def patternsearch( fun, x0, callback=None, max_iter=100, )
13
22
0.483516
10bf4a813cfb29a5cd4a0e1056e60b6b218d0212
10,147
py
Python
trunks/generator/generator_test.py
Toromino/chromiumos-platform2
97e6ba18f0e5ab6723f3448a66f82c1a07538d87
[ "BSD-3-Clause" ]
null
null
null
trunks/generator/generator_test.py
Toromino/chromiumos-platform2
97e6ba18f0e5ab6723f3448a66f82c1a07538d87
[ "BSD-3-Clause" ]
null
null
null
trunks/generator/generator_test.py
Toromino/chromiumos-platform2
97e6ba18f0e5ab6723f3448a66f82c1a07538d87
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # Copyright 2014 The Chromium OS Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Unit tests for the TPM 2.0 code generator.""" from __future__ import print_function import io import u...
41.416327
80
0.690845
52631dd13a2b5898c23d7a3ff43548df329ff4fb
372
py
Python
RipperProject/RipperApp/urls.py
shadowstriker15/Online_Ripper
0a78cb9d5955a9889baa57f33d5281b99707f640
[ "MIT" ]
null
null
null
RipperProject/RipperApp/urls.py
shadowstriker15/Online_Ripper
0a78cb9d5955a9889baa57f33d5281b99707f640
[ "MIT" ]
null
null
null
RipperProject/RipperApp/urls.py
shadowstriker15/Online_Ripper
0a78cb9d5955a9889baa57f33d5281b99707f640
[ "MIT" ]
null
null
null
from django.urls import path from . import views urlpatterns = [ path('', views.home_view, name='index'), path('edit/', views.song_edit_view, name='edit'), path('next/', views.next_page), path('home/', views.home_view), path('about/', views.about_view), path('download/', views.download_view), ...
24.8
53
0.647849
2f909e5e92c97c340e4cbf642ad3c093a8dac85f
1,162
py
Python
Script/Commands/Messages/Useful/direct_message.py
AIDRI/Clash-Of-Clans-Discord-Bot
2a9f0495e30ae22ca487886fa48f9d206a545b99
[ "BSD-3-Clause" ]
null
null
null
Script/Commands/Messages/Useful/direct_message.py
AIDRI/Clash-Of-Clans-Discord-Bot
2a9f0495e30ae22ca487886fa48f9d206a545b99
[ "BSD-3-Clause" ]
null
null
null
Script/Commands/Messages/Useful/direct_message.py
AIDRI/Clash-Of-Clans-Discord-Bot
2a9f0495e30ae22ca487886fa48f9d206a545b99
[ "BSD-3-Clause" ]
null
null
null
from Script.import_functions import create_embed # TODO : Allow users to refuse DM async def direct_message_role(ctx, role, text): if ctx.author.guild_permissions.administrator: for member in role.members: if not member.bot: await member.send(f"{text}\n*Sent by {ctx.author} ({c...
48.416667
136
0.667814
b4503a8315c61f604cc3c36755ca4fd31adfedf0
39,033
py
Python
qa/rpc-tests/test_framework/mininode.py
AnonymousDo/Helpico
7b912a593b4863f113e4b1c1d1922df77831253f
[ "MIT" ]
2
2019-12-30T23:16:45.000Z
2021-01-10T21:27:27.000Z
qa/rpc-tests/test_framework/mininode.py
AnonymousDo/Helpico
7b912a593b4863f113e4b1c1d1922df77831253f
[ "MIT" ]
null
null
null
qa/rpc-tests/test_framework/mininode.py
AnonymousDo/Helpico
7b912a593b4863f113e4b1c1d1922df77831253f
[ "MIT" ]
2
2020-03-09T01:20:31.000Z
2021-01-24T19:47:14.000Z
# mininode.py - Helpico P2P network half-a-node # # Distributed under the MIT/X11 software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # # This python code was modified from ArtForz' public domain half-a-node, as # found in the mini-node branch of http://github.c...
29.172646
184
0.570235
2880eacc30aa1d75da93e29c16591016abd81b25
3,667
py
Python
data/job_spider/process.py
LJIJCJ/front_page
84993e2dded2d14cb2411e9cfd60e2437baf9ad1
[ "MIT" ]
null
null
null
data/job_spider/process.py
LJIJCJ/front_page
84993e2dded2d14cb2411e9cfd60e2437baf9ad1
[ "MIT" ]
4
2019-12-04T15:22:22.000Z
2019-12-13T11:22:30.000Z
data/job_spider/process.py
LJIJCJ/front_page
84993e2dded2d14cb2411e9cfd60e2437baf9ad1
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from multiprocessing import Process from .spider import LaGouSpider from .config import LOGGING_CONF from .dbop import SqlOperator import logging from logging.config import dictConfig from faker import Faker from datetime import datetime, timedelta import queue ...
37.040404
271
0.499864
43efc84fe6522c723722f08fdd84aa442a806216
1,573
py
Python
pygame_geometry/tests/test4.py
MarcPartensky/Pygame-Geometry
61abbbeac0fd351253e06b19736d9939fd5b316e
[ "MIT" ]
3
2021-01-03T18:13:02.000Z
2021-06-27T21:29:11.000Z
pygame_geometry/tests/test4.py
MarcPartensky/Pygame-Geometry
61abbbeac0fd351253e06b19736d9939fd5b316e
[ "MIT" ]
null
null
null
pygame_geometry/tests/test4.py
MarcPartensky/Pygame-Geometry
61abbbeac0fd351253e06b19736d9939fd5b316e
[ "MIT" ]
null
null
null
from myabstract import Segment, Line, Point, Vector from mymanager import Manager import mycolors import math class Tester(Manager): def __init__(self): super().__init__() self.l1=Line(Point.null(),0) self.l2=Line.random(borns=[-10,10]) self.intersection=None def show(self): ...
30.25
83
0.632549
8ccc4d94b8e0faee370304fb7fdb311a9fb3af5e
9,337
py
Python
isp2/innovate2cvs.py
elliotta/hephaestus
67efe7490e1ef5572537627c3278d0cf9256960d
[ "MIT" ]
null
null
null
isp2/innovate2cvs.py
elliotta/hephaestus
67efe7490e1ef5572537627c3278d0cf9256960d
[ "MIT" ]
null
null
null
isp2/innovate2cvs.py
elliotta/hephaestus
67efe7490e1ef5572537627c3278d0cf9256960d
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import sys import datetime from sys import stderr from collections import OrderedDict import isp2_serial class Tc4DataWriter(object): """Write data to disk, and manage file rollover and cleanup. """ def __init__(self, filename_format='%Y%m%d-tc4.tsv', output_directory='',...
44.674641
171
0.592696
116bc7b72ea202610fb94540141da4c731b06097
4,333
py
Python
datasets/subset_image_folder.py
msr-fiddle/folded-cnns
c87ac633b0b700f6085018f1aeb2c3ca615d73bf
[ "MIT" ]
2
2021-08-30T05:55:39.000Z
2021-10-04T17:31:06.000Z
datasets/subset_image_folder.py
msr-fiddle/folded-cnns
c87ac633b0b700f6085018f1aeb2c3ca615d73bf
[ "MIT" ]
null
null
null
datasets/subset_image_folder.py
msr-fiddle/folded-cnns
c87ac633b0b700f6085018f1aeb2c3ca615d73bf
[ "MIT" ]
null
null
null
from torchvision.datasets import ImageFolder class SubsetImageFolder(ImageFolder): """ A PyTorch dataset that gradually introduces classes of a dataset throughout training. Usage: dataset = SubsetImageFolder(...) dataset.begin() for epoch in range(num_epochs): for...
37.034188
103
0.607662
4211b3ef6b1c8701a1805db8a01a904c081b8d15
46
py
Python
__init__.py
antonvino/inmoov-basic
9937a71fdca2e5eb59bb61331dee7731ad62b052
[ "MIT" ]
null
null
null
__init__.py
antonvino/inmoov-basic
9937a71fdca2e5eb59bb61331dee7731ad62b052
[ "MIT" ]
null
null
null
__init__.py
antonvino/inmoov-basic
9937a71fdca2e5eb59bb61331dee7731ad62b052
[ "MIT" ]
null
null
null
import maestro_lib.py import inmoov_joints.py
15.333333
23
0.869565
440ce223cc6190b71a849ee8e255f4898c924cea
2,980
py
Python
swagger_client/models/privacy_email.py
klaviyo/klaviyo-python
8f95cdaf1469711ab99ecfbfb64ce743451c490d
[ "MIT" ]
10
2021-12-21T02:08:00.000Z
2022-02-24T05:37:20.000Z
swagger_client/models/privacy_email.py
klaviyo/klaviyo-python
8f95cdaf1469711ab99ecfbfb64ce743451c490d
[ "MIT" ]
3
2022-02-02T09:07:40.000Z
2022-03-04T15:31:11.000Z
swagger_client/models/privacy_email.py
klaviyo/klaviyo-python
8f95cdaf1469711ab99ecfbfb64ce743451c490d
[ "MIT" ]
2
2021-12-21T02:07:53.000Z
2022-02-22T08:05:41.000Z
# coding: utf-8 """ Klaviyo API Empowering creators to own their destiny # noqa: E501 OpenAPI spec version: 2022.03.29 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six class PrivacyEmail(object): """NOTE: This class is ...
26.846847
80
0.544295
b4ee81239ead96dfde21f112130e3b980ed0cda7
1,136
py
Python
pyvisdk/do/host_profile_manager_config_task_list.py
Infinidat/pyvisdk
f2f4e5f50da16f659ccc1d84b6a00f397fa997f8
[ "MIT" ]
null
null
null
pyvisdk/do/host_profile_manager_config_task_list.py
Infinidat/pyvisdk
f2f4e5f50da16f659ccc1d84b6a00f397fa997f8
[ "MIT" ]
null
null
null
pyvisdk/do/host_profile_manager_config_task_list.py
Infinidat/pyvisdk
f2f4e5f50da16f659ccc1d84b6a00f397fa997f8
[ "MIT" ]
null
null
null
import logging from pyvisdk.exceptions import InvalidArgumentError ######################################## # Automatically generated, do not edit. ######################################## log = logging.getLogger(__name__) def HostProfileManagerConfigTaskList(vim, *args, **kwargs): '''The HostProfileManagerConf...
33.411765
124
0.632042
ed6e518e7c69933499a5165b52e7c6ec97bde6f4
990
py
Python
explainaboard/tests/test_text_classification.py
lyuyangh/ExplainaBoard
8d194545c02055b452f8a5a4a4b88ec881b73f09
[ "MIT" ]
null
null
null
explainaboard/tests/test_text_classification.py
lyuyangh/ExplainaBoard
8d194545c02055b452f8a5a4a4b88ec881b73f09
[ "MIT" ]
null
null
null
explainaboard/tests/test_text_classification.py
lyuyangh/ExplainaBoard
8d194545c02055b452f8a5a4a4b88ec881b73f09
[ "MIT" ]
null
null
null
import pathlib import os import unittest from explainaboard import FileType, Source, TaskType, get_loader, get_processor from explainaboard.tests.utils import load_file_as_str artifacts_path = os.path.dirname(pathlib.Path(__file__)) + "/artifacts/" class TestTextClassification(unittest.TestCase): def test_e2e(se...
31.935484
79
0.676768
1841e1a06a042fc597fddbcf31039a9dd60b1b4c
4,005
py
Python
tests/test_subscriptions.py
scottbarstow/iris-python
328f34dc6ef6bc791e485c48d96ccc3ce5cccb25
[ "MIT" ]
null
null
null
tests/test_subscriptions.py
scottbarstow/iris-python
328f34dc6ef6bc791e485c48d96ccc3ce5cccb25
[ "MIT" ]
null
null
null
tests/test_subscriptions.py
scottbarstow/iris-python
328f34dc6ef6bc791e485c48d96ccc3ce5cccb25
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import sys # For coverage. if __package__ is None: sys.path.append(os.path.dirname(os.path.abspath(__file__)) + "/..") from unittest import main, TestCase import requests import requests_mock from iris_sdk.client import Client from iris_sdk.models.account import Account XML_RES...
32.560976
78
0.633208
6db3a131cfb0c1d12c5c9d0c650ea583f39508f8
4,436
py
Python
test_utils/crawler/base.py
zen4ever/django-test-utils
6962e9a2a1c31cf99a064a135e9f9ed65d83e97e
[ "MIT" ]
1
2015-11-08T11:32:37.000Z
2015-11-08T11:32:37.000Z
test_utils/crawler/base.py
zen4ever/django-test-utils
6962e9a2a1c31cf99a064a135e9f9ed65d83e97e
[ "MIT" ]
null
null
null
test_utils/crawler/base.py
zen4ever/django-test-utils
6962e9a2a1c31cf99a064a135e9f9ed65d83e97e
[ "MIT" ]
null
null
null
import cgi import urlparse import logging from BeautifulSoup import BeautifulSoup from django.conf import settings from django.db import transaction from django.test.client import Client from django.test.utils import setup_test_environment, teardown_test_environment from test_utils.crawler import signals as test_sig...
32.144928
110
0.614292
bd6c3cb9e283334e23c1d14d22ea6c63c7bd2d27
9,645
py
Python
backend/places/models.py
AC-Dap/savingchinatown-backend
223b5cff88a114b3894062f11c57b9410e56134b
[ "MIT" ]
null
null
null
backend/places/models.py
AC-Dap/savingchinatown-backend
223b5cff88a114b3894062f11c57b9410e56134b
[ "MIT" ]
3
2021-06-04T23:59:26.000Z
2021-09-22T19:38:35.000Z
backend/places/models.py
DaPurpleDerple/savingchinatown-backend
223b5cff88a114b3894062f11c57b9410e56134b
[ "MIT" ]
null
null
null
import json from django.db.models import Q from django.contrib.gis.db import models from django.contrib.gis.geos import Point from django.contrib.gis.db.models.functions import Distance from django.contrib.gis.measure import D import logging logger = logging.getLogger('django') class EmailSubscription(models.Model):...
39.207317
107
0.619285
6eb770855df509b4aed5b295eb5319f53329b2f9
3,467
py
Python
release/stubs.min/System/Windows/Controls/__init___parts/ItemContainerGenerator.py
htlcnn/ironpython-stubs
780d829e2104b2789d5f4d6f32b0ec9f2930ca03
[ "MIT" ]
182
2017-06-27T02:26:15.000Z
2022-03-30T18:53:43.000Z
release/stubs.min/System/Windows/Controls/__init___parts/ItemContainerGenerator.py
htlcnn/ironpython-stubs
780d829e2104b2789d5f4d6f32b0ec9f2930ca03
[ "MIT" ]
28
2017-06-27T13:38:23.000Z
2022-03-15T11:19:44.000Z
release/stubs.min/System/Windows/Controls/__init___parts/ItemContainerGenerator.py
htlcnn/ironpython-stubs
780d829e2104b2789d5f4d6f32b0ec9f2930ca03
[ "MIT" ]
67
2017-06-28T09:43:59.000Z
2022-03-20T21:17:10.000Z
class ItemContainerGenerator(object,IRecyclingItemContainerGenerator,IItemContainerGenerator,IWeakEventListener): """ Generates the user interface (UI) on behalf of its host,such as an�System.Windows.Controls.ItemsControl. """ def ContainerFromIndex(self,index): """ ContainerFromIndex(self: ItemContainerGener...
30.412281
215
0.734641
6185ab829354dd8fc4b0e8ecd5412dbcb250f93f
3,401
py
Python
whdenovo/assemble.py
shilpagarg/WHdenovo
7a03798397ee0f131f100402d12ad53eab4334dc
[ "MIT" ]
45
2019-03-18T06:57:23.000Z
2021-06-24T12:24:48.000Z
whdenovo/assemble.py
shilpagarg/WHdenovo
7a03798397ee0f131f100402d12ad53eab4334dc
[ "MIT" ]
2
2019-05-06T22:11:22.000Z
2020-01-10T15:14:40.000Z
whdenovo/assemble.py
shilpagarg/WHdenovo
7a03798397ee0f131f100402d12ad53eab4334dc
[ "MIT" ]
7
2019-05-06T22:07:47.000Z
2020-12-11T08:48:26.000Z
''' Get partitioned FASTA/FASTQ from "partition", and run diploid assembly from them. ''' import subprocess import argparse import sys from Bio import SeqIO ''' Usage whdenovo assemble -f son.inputreads.fa -0 path/to/output/HP0.reads -1 path/to/output/HP1.reads --assemble -s 15k -t 40 ''' def run(args): son_all = ...
40.975904
178
0.595413
3cdae984bf78d354e563bed59c26ecc6372ae156
3,500
py
Python
cheapodb/utils.py
wchatx/cheapodb
185675e32134ab5779b038cabfc52c4758e1cad2
[ "MIT" ]
null
null
null
cheapodb/utils.py
wchatx/cheapodb
185675e32134ab5779b038cabfc52c4758e1cad2
[ "MIT" ]
1
2021-06-01T23:51:41.000Z
2021-06-01T23:51:41.000Z
cheapodb/utils.py
wchatx/cheapodb
185675e32134ab5779b038cabfc52c4758e1cad2
[ "MIT" ]
1
2019-06-15T19:27:26.000Z
2019-06-15T19:27:26.000Z
import os import json import time import logging from datetime import datetime import boto3 log = logging.getLogger(__name__) def create_session(**kwargs): return boto3.session.Session( region_name=kwargs.get('aws_default_region', os.getenv('AWS_DEFAULT_REGION')), aws_access_key_id=kwargs.get('aw...
32.110092
106
0.487714
eb816ecf2de2a19c192367d76e72e9cebfba8fbb
1,536
py
Python
packages/opal-common/opal_common/fetcher/engine/fetch_worker.py
permitio/opal
05610352765a1bb0f95c86dd3a449b47275f51b4
[ "Apache-2.0" ]
106
2021-12-12T20:59:18.000Z
2022-03-31T18:43:36.000Z
packages/opal-common/opal_common/fetcher/engine/fetch_worker.py
permitio/opal
05610352765a1bb0f95c86dd3a449b47275f51b4
[ "Apache-2.0" ]
14
2021-12-14T05:33:58.000Z
2022-03-29T17:39:02.000Z
packages/opal-common/opal_common/fetcher/engine/fetch_worker.py
permitio/opal
05610352765a1bb0f95c86dd3a449b47275f51b4
[ "Apache-2.0" ]
10
2021-12-10T13:35:55.000Z
2022-03-20T10:36:00.000Z
import asyncio from typing import Coroutine from ..events import FetchEvent from ..fetcher_register import FetcherRegister from ..logger import get_logger from .base_fetching_engine import BaseFetchingEngine logger = get_logger("fetch_worker") async def fetch_worker(queue: asyncio.Queue, engine): """The worker ...
32.680851
73
0.623047
7fe26020ff78cce8af62cff7910282894164a717
366
py
Python
cart/api/serializers.py
CAPSLOCKFURY/django-eshop
18d47be47e568800e51c4b6ff868138a7350893b
[ "MIT" ]
2
2021-05-28T11:39:36.000Z
2021-08-20T04:43:00.000Z
cart/api/serializers.py
CAPSLOCKFURY/django-eshop
18d47be47e568800e51c4b6ff868138a7350893b
[ "MIT" ]
null
null
null
cart/api/serializers.py
CAPSLOCKFURY/django-eshop
18d47be47e568800e51c4b6ff868138a7350893b
[ "MIT" ]
null
null
null
""" Author : Vadim Dembitskii (CAPSLOCKFURY) License : The MIT License """ from rest_framework import serializers from ..models import Cart from main.api.serializers import ProductSerializer class CartSerializer(serializers.ModelSerializer): product_id = ProductSerializer() class Meta: model = Car...
21.529412
50
0.729508
c252baab1b4fa250e7f896ffcf732ac56d537028
2,600
py
Python
doc/source/conf.py
dtroyer/python-novaclient
4c483322fe5454c8ece66cc9c86cbc0702e14368
[ "Apache-1.1" ]
null
null
null
doc/source/conf.py
dtroyer/python-novaclient
4c483322fe5454c8ece66cc9c86cbc0702e14368
[ "Apache-1.1" ]
null
null
null
doc/source/conf.py
dtroyer/python-novaclient
4c483322fe5454c8ece66cc9c86cbc0702e14368
[ "Apache-1.1" ]
null
null
null
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under t...
33.333333
79
0.693077
bd25428d608d256267166c9017947220a7925236
562
py
Python
ocr.py
faustusdotbe/bionat
08cc5f46caeab6692d0441756a464ae3683e5d64
[ "MIT" ]
null
null
null
ocr.py
faustusdotbe/bionat
08cc5f46caeab6692d0441756a464ae3683e5d64
[ "MIT" ]
null
null
null
ocr.py
faustusdotbe/bionat
08cc5f46caeab6692d0441756a464ae3683e5d64
[ "MIT" ]
1
2020-10-22T13:44:09.000Z
2020-10-22T13:44:09.000Z
"""Evaluate OCR quality""" import os import PyPDF2 from random import seed, randint seed(42) roots = ["data/bn/", "data/nbn/"] for root in roots: for fn in sorted(os.listdir(root)): filename = root+fn pdf_file = open(filename, 'rb') pdf_reader = PyPDF2.PdfFileReader(pdf_file) nb_p...
26.761905
68
0.617438
1a6c49eae13d53cb21c2cb403ad905a5c66b41e0
142
py
Python
redecanais/version.py
cleitonleonel/redecanais
4d60f57769d71a4b92c35fb3bbd0824c5dd33cfc
[ "MIT" ]
10
2021-01-19T06:06:05.000Z
2022-02-20T18:23:25.000Z
redecanais/version.py
cleitonleonel/redecanais
4d60f57769d71a4b92c35fb3bbd0824c5dd33cfc
[ "MIT" ]
2
2021-01-29T01:54:57.000Z
2021-07-17T23:24:06.000Z
redecanais/version.py
cleitonleonel/redecanais
4d60f57769d71a4b92c35fb3bbd0824c5dd33cfc
[ "MIT" ]
7
2021-02-28T07:54:36.000Z
2022-01-29T13:11:00.000Z
# -*- coding: utf-8 -*- # # __version_info__ = '1.0.6' __author_info__ = 'Cleiton Leonel Creton' __email__info__ = 'cleiton.leonel@gmail.com'
20.285714
44
0.697183
a56147a5bf14dd8a8bcea2395ebd49428fb4bdd1
2,749
py
Python
venv/lib/python3.6/site-packages/ansible_collections/dellemc/enterprise_sonic/plugins/module_utils/network/sonic/argspec/radius_server/radius_server.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
1
2020-01-22T13:11:23.000Z
2020-01-22T13:11:23.000Z
venv/lib/python3.6/site-packages/ansible_collections/dellemc/enterprise_sonic/plugins/module_utils/network/sonic/argspec/radius_server/radius_server.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
12
2020-02-21T07:24:52.000Z
2020-04-14T09:54:32.000Z
venv/lib/python3.6/site-packages/ansible_collections/dellemc/enterprise_sonic/plugins/module_utils/network/sonic/argspec/radius_server/radius_server.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
2
2020-03-11T12:19:45.000Z
2020-03-11T15:37:53.000Z
# # -*- coding: utf-8 -*- # © Copyright 2021 Dell Inc. or its subsidiaries. All Rights Reserved # GNU General Public License v3.0+ # (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) ############################################# # WARNING # ####################################...
32.72619
75
0.37359
f8fb380e754c4c8a618eedf38334def9134c27d0
4,720
py
Python
Components/Set default figures.py
pedroarilla/glyphs-scripts
ccb1efaa10effe7159a9af93199e36e175d98ad5
[ "Apache-2.0" ]
11
2017-12-05T10:22:19.000Z
2021-01-30T19:45:55.000Z
Components/Set default figures.py
pedroarilla/glyphs-scripts
ccb1efaa10effe7159a9af93199e36e175d98ad5
[ "Apache-2.0" ]
null
null
null
Components/Set default figures.py
pedroarilla/glyphs-scripts
ccb1efaa10effe7159a9af93199e36e175d98ad5
[ "Apache-2.0" ]
null
null
null
#MenuTitle: Set default figures # -*- coding: utf-8 -*- # by Pedro Arilla from __future__ import division, print_function, unicode_literals __doc__=""" UI (Vanilla required) for setting the set of numerals selected by the user as default figures. Inserts the figures as components in the ‘Decimal Digit’ cells, enables a...
42.909091
233
0.712076
31d302b4e48f9b046c8b0434a54d933dd2a17e71
1,953
py
Python
cmake/target/version/generate_version_header.py
mauro-balades/fprime
ab6b8ade39967843e256841bffabb43129e290d8
[ "Apache-2.0" ]
null
null
null
cmake/target/version/generate_version_header.py
mauro-balades/fprime
ab6b8ade39967843e256841bffabb43129e290d8
[ "Apache-2.0" ]
1
2021-08-07T20:28:53.000Z
2021-08-07T20:28:53.000Z
cmake/target/version/generate_version_header.py
gifhuppp/fprime
ab6b8ade39967843e256841bffabb43129e290d8
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 """ # =============================================================================== # NAME: generate_version_header.py # # DESCRIPTION: Creates a version header file of specified name. # It takes as input a filename and creates a header file # with a constant string...
28.304348
83
0.571429
e981280329ecabe0b39e14f3586555804a110fa8
3,483
py
Python
disc.py
ArkaneOnline/discord-life360-bot
01a6e3d5e0ed08ae517b6da6ca2a61bb1f089694
[ "Unlicense" ]
2
2019-06-21T15:36:01.000Z
2021-03-09T06:10:00.000Z
disc.py
ArkaneOnline/discord-life360-bot
01a6e3d5e0ed08ae517b6da6ca2a61bb1f089694
[ "Unlicense" ]
null
null
null
disc.py
ArkaneOnline/discord-life360-bot
01a6e3d5e0ed08ae517b6da6ca2a61bb1f089694
[ "Unlicense" ]
2
2022-03-16T04:49:57.000Z
2022-03-27T12:47:47.000Z
import os import discord import life360_api import maps LIFE360_TOKEN = "cFJFcXVnYWJSZXRyZTRFc3RldGhlcnVmcmVQdW1hbUV4dWNyRUh1YzptM2ZydXBSZXRSZXN3ZXJFQ2hBUHJFOTZxYWtFZHI0Vg==" DISCORD_TOKEN = os.environ["disc_key"] LIFE360_usr = os.environ["life360_usr"] LIFE360_psw = os.environ["life360_psw"] client = disco...
44.088608
154
0.571059
015133a1b870de9eb523b706c8e2a105daf53925
188
py
Python
something-learned/Algorithms and Data-Structures/Competitive-programming-library/CP/codechef/prefix_power_of_2.py
gopala-kr/CR-101
dd27b767cdc0c667655ab8e32e020ed4248bd112
[ "MIT" ]
5
2018-05-09T04:02:04.000Z
2021-02-21T19:27:56.000Z
something-learned/Algorithms and Data-Structures/Competitive-programming-library/CP/codechef/prefix_power_of_2.py
gopala-kr/CR-101
dd27b767cdc0c667655ab8e32e020ed4248bd112
[ "MIT" ]
null
null
null
something-learned/Algorithms and Data-Structures/Competitive-programming-library/CP/codechef/prefix_power_of_2.py
gopala-kr/CR-101
dd27b767cdc0c667655ab8e32e020ed4248bd112
[ "MIT" ]
5
2018-02-23T22:08:28.000Z
2020-08-19T08:31:47.000Z
n = 1 m = {} for i in range(40): t = n while t!=0: if str(t) in m.keys(): print n else: m[str(t)] = n t /= 10 n *= 2
15.666667
31
0.31383
c2b660551b4e26ed893d87130e7f1a124e4f30a6
6,059
py
Python
curie/name_util.py
mike0615/curie
e25691f465c23cf53c39be157fcfa2eea4978b26
[ "MIT" ]
4
2019-02-26T05:18:13.000Z
2020-07-15T00:34:41.000Z
curie/name_util.py
nutanix/curie
e25691f465c23cf53c39be157fcfa2eea4978b26
[ "MIT" ]
3
2021-03-31T18:55:50.000Z
2021-04-20T17:13:31.000Z
curie/name_util.py
mike0615/curie
e25691f465c23cf53c39be157fcfa2eea4978b26
[ "MIT" ]
2
2020-01-09T02:24:00.000Z
2020-11-04T23:09:02.000Z
# # Copyright (c) 2015 Nutanix Inc. All rights reserved. # import re from curie.log import CHECK_EQ # VM name prefix to use for all VMs created by curie. CURIE_VM_NAME_PREFIX = "__curie" # VM name prefixes for goldimage VMs and test VMs created by curie. CURIE_GOLDIMAGE_VM_NAME_PREFIX = "%s_goldimage" % CURIE_VM_NA...
34.426136
79
0.699455
ab545607e4f2fe04d092373ca2e6549b67c0115b
2,273
py
Python
pycessing/app.py
kitao/pycessing
ab59dfbef7f52712e894f5b4d869c27f68bf3685
[ "MIT" ]
null
null
null
pycessing/app.py
kitao/pycessing
ab59dfbef7f52712e894f5b4d869c27f68bf3685
[ "MIT" ]
null
null
null
pycessing/app.py
kitao/pycessing
ab59dfbef7f52712e894f5b4d869c27f68bf3685
[ "MIT" ]
null
null
null
import sketch_info from processing.core import PApplet class App(PApplet): _instances = [] def __init__(self, title=None, topmost=None, pos=None): App._instances.append(self) PApplet.__init__(self) self._title = title or sketch_info.basename self._topmost = topmost self._pos = pos print ...
22.73
79
0.622525
ac2744c1986540f922db703f7b7d8d3031f3f5b1
4,228
py
Python
tests/test_publish_heroku.py
ghing/datasette
5a184a5d211d3226e0417ee5cf8476cd887cd35e
[ "Apache-2.0" ]
null
null
null
tests/test_publish_heroku.py
ghing/datasette
5a184a5d211d3226e0417ee5cf8476cd887cd35e
[ "Apache-2.0" ]
null
null
null
tests/test_publish_heroku.py
ghing/datasette
5a184a5d211d3226e0417ee5cf8476cd887cd35e
[ "Apache-2.0" ]
null
null
null
from click.testing import CliRunner from datasette import cli from unittest import mock @mock.patch("shutil.which") def test_publish_heroku_requires_heroku(mock_which): mock_which.return_value = False runner = CliRunner() with runner.isolated_filesystem(): open("test.db", "w").write("data") ...
35.233333
88
0.541391
ab8a9b0c93fb8e0849cf6e5975316ee343822ac0
3,811
bzl
Python
tensorflow/core/platform/build_config.bzl
kenfranko/tensorflow
76c93e5e1bf04ee970d7fc73b23319ca0501fe31
[ "Apache-2.0" ]
1
2016-09-09T06:15:48.000Z
2016-09-09T06:15:48.000Z
tensorflow/core/platform/build_config.bzl
kenfranko/tensorflow
76c93e5e1bf04ee970d7fc73b23319ca0501fe31
[ "Apache-2.0" ]
null
null
null
tensorflow/core/platform/build_config.bzl
kenfranko/tensorflow
76c93e5e1bf04ee970d7fc73b23319ca0501fe31
[ "Apache-2.0" ]
null
null
null
"""Provides a redirection point for platform specific implementations of starlark utilities.""" load( "//tensorflow/core/platform:default/build_config.bzl", _pyx_library = "pyx_library", _tf_additional_all_protos = "tf_additional_all_protos", _tf_additional_binary_deps = "tf_additional_binary_deps", ...
50.813333
95
0.855943
223ea7cfa4e803b3477fc4ec46d5bfe8b4101c10
24,763
py
Python
cubes/database.py
lmjohns3/cube-experiment
ab6d1a9df95efebc369d184ab1c748d73d5c3313
[ "MIT" ]
null
null
null
cubes/database.py
lmjohns3/cube-experiment
ab6d1a9df95efebc369d184ab1c748d73d5c3313
[ "MIT" ]
null
null
null
cubes/database.py
lmjohns3/cube-experiment
ab6d1a9df95efebc369d184ab1c748d73d5c3313
[ "MIT" ]
null
null
null
import climate import collections import datetime import fnmatch import gzip import io import itertools import numpy as np import os import pandas as pd import re logging = climate.get_logger(__name__) class TimedMixin: '''This mixin is for handling filenames that start with timestamps. ''' FORMAT = '%Y...
34.250346
84
0.576101
739bc5cc19ecd9ddaedc4a181b44b9a0a1d218c7
4,997
py
Python
src/plugins/ETL/task_operator.py
duke-lv/fastapi-apscheduler
d8f9a9615158b3f382c3338de829d413698efe46
[ "MIT" ]
2
2021-03-11T03:03:11.000Z
2022-01-06T17:09:00.000Z
src/plugins/ETL/task_operator.py
duke-lv/fastapi-apscheduler
d8f9a9615158b3f382c3338de829d413698efe46
[ "MIT" ]
null
null
null
src/plugins/ETL/task_operator.py
duke-lv/fastapi-apscheduler
d8f9a9615158b3f382c3338de829d413698efe46
[ "MIT" ]
null
null
null
from typing import Optional, Any from src.helpers.common_helper import CommonHelper from datetime import datetime, timedelta import json from src.core.base_operator import BaseOperator from src.helpers.airflow_helper import api_prefix, airflow_api_module, request_headers from src.helpers.aps_scheduler_helper impo...
34.462069
143
0.562337
3910b5e79c73cdf1110b0b641f589559cb2d1181
189
py
Python
katas/beta/palindrome_checker.py
the-zebulan/CodeWars
1eafd1247d60955a5dfb63e4882e8ce86019f43a
[ "MIT" ]
40
2016-03-09T12:26:20.000Z
2022-03-23T08:44:51.000Z
katas/beta/palindrome_checker.py
akalynych/CodeWars
1eafd1247d60955a5dfb63e4882e8ce86019f43a
[ "MIT" ]
null
null
null
katas/beta/palindrome_checker.py
akalynych/CodeWars
1eafd1247d60955a5dfb63e4882e8ce86019f43a
[ "MIT" ]
36
2016-11-07T19:59:58.000Z
2022-03-31T11:18:27.000Z
def is_palindrome(string): try: string = ''.join(a for a in string.lower() if a.isalnum()) return string == string[::-1] except AttributeError: return False
27
66
0.597884
2cd6870d289a8f5b5ed6f139cb69ab44f6514e6f
5,246
py
Python
stino/pyarduino/base/serial_port.py
huangxuantao/MyStino
7421d4bb2620716a0ed5c9d695e5f2727ea68aee
[ "MIT" ]
2
2015-03-05T00:16:47.000Z
2015-07-31T05:43:54.000Z
stino/pyarduino/base/serial_port.py
huangxuantao/MyStino
7421d4bb2620716a0ed5c9d695e5f2727ea68aee
[ "MIT" ]
null
null
null
stino/pyarduino/base/serial_port.py
huangxuantao/MyStino
7421d4bb2620716a0ed5c9d695e5f2727ea68aee
[ "MIT" ]
null
null
null
#!/usr/bin/env python #-*- coding: utf-8 -*- # 1. Copyright # 2. Lisence # 3. Author """ Documents """ from __future__ import absolute_import from __future__ import print_function from __future__ import division from __future__ import unicode_literals import glob import time from . import pyserial from . import sy...
26.23
74
0.626382
31fa42e986dc60fbb7c8b8bb5544d3fd879b1e3c
2,086
py
Python
source/controllers/default.py
pjwoodard/larry
1b2c9eb6ab841949beb12ef88228f873dc1b4499
[ "MIT" ]
2
2018-05-05T22:04:25.000Z
2018-05-25T05:43:13.000Z
source/controllers/default.py
pjwoodard/larry
1b2c9eb6ab841949beb12ef88228f873dc1b4499
[ "MIT" ]
40
2018-05-05T22:01:49.000Z
2018-06-11T19:37:16.000Z
source/controllers/default.py
pjwoodard/larry
1b2c9eb6ab841949beb12ef88228f873dc1b4499
[ "MIT" ]
2
2018-05-05T22:14:48.000Z
2018-05-20T22:29:51.000Z
# -*- coding: utf-8 -*- # ------------------------------------------------------------------------- # This is a sample controller # this file is released under public domain and you can use without limitations # ------------------------------------------------------------------------- # ---- example index page ---- de...
35.965517
102
0.608821
21641e1ab7035ea5d5d89393a6ed075f39af1b67
3,845
py
Python
tools/demo.py
BryantLJ/py-faster-rcnn-pedestrian
fa9cdd9a2c075ab5f507fce4356a2ec3abc78331
[ "BSD-2-Clause" ]
4
2017-08-05T07:02:35.000Z
2018-04-15T12:47:02.000Z
tools/demo.py
BryantLJ/py-faster-rcnn-pedestrian
fa9cdd9a2c075ab5f507fce4356a2ec3abc78331
[ "BSD-2-Clause" ]
null
null
null
tools/demo.py
BryantLJ/py-faster-rcnn-pedestrian
fa9cdd9a2c075ab5f507fce4356a2ec3abc78331
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python # -------------------------------------------------------- # Faster R-CNN # Copyright (c) 2015 Microsoft # Licensed under The MIT License [see LICENSE for details] # Written by Ross Girshick # -------------------------------------------------------- """ Demo script showing detections in sample i...
30.039063
105
0.560208
386fe366c2eedd9a8c4039e4b79728bb31347534
75
py
Python
model/nethandler/__init__.py
MrKelisi/battle-python
379214f57e540a1b57917ebfec75a49596fefb28
[ "MIT" ]
null
null
null
model/nethandler/__init__.py
MrKelisi/battle-python
379214f57e540a1b57917ebfec75a49596fefb28
[ "MIT" ]
null
null
null
model/nethandler/__init__.py
MrKelisi/battle-python
379214f57e540a1b57917ebfec75a49596fefb28
[ "MIT" ]
null
null
null
__all__ = ["battle_net_handler", "battle_net_client", "battle_net_server"]
37.5
74
0.786667
77c57be410f2fe59b8c492d351e53bcb507a6df8
1,106
py
Python
setup.py
smurfix/asyncwebsockets
92fa334febedc823a3d953fe78f3fe852731e963
[ "MIT" ]
null
null
null
setup.py
smurfix/asyncwebsockets
92fa334febedc823a3d953fe78f3fe852731e963
[ "MIT" ]
null
null
null
setup.py
smurfix/asyncwebsockets
92fa334febedc823a3d953fe78f3fe852731e963
[ "MIT" ]
null
null
null
import sys from pathlib import Path from setuptools import setup if sys.version_info[0:2] < (3, 6): raise RuntimeError("This package requires Python 3.6+.") setup( name="asyncwebsockets", use_scm_version={"version_scheme": "guess-next-dev", "local_scheme": "dirty-tag"}, packages=["asyncwebsockets"], ...
32.529412
88
0.647378
492001511f195f49a610c8b73416240adc8cff7e
2,026
py
Python
app/webapp.py
h-amg/Android-app-website-and-backend
925dc4ef6aa7b0e43ddd25589afb8a173b279ebd
[ "Apache-2.0" ]
null
null
null
app/webapp.py
h-amg/Android-app-website-and-backend
925dc4ef6aa7b0e43ddd25589afb8a173b279ebd
[ "Apache-2.0" ]
1
2021-06-02T00:37:24.000Z
2021-06-02T00:37:24.000Z
app/webapp.py
h-amg/XHominid-website-and-backend
925dc4ef6aa7b0e43ddd25589afb8a173b279ebd
[ "Apache-2.0" ]
null
null
null
# app/webapp.py # This script used as an alternative to __init__.py (in app module) # to create the app module deployed to gooogle cloud appp engiune import os from flask import Flask, render_template from flask_login import LoginManager from flask_bcrypt import Bcrypt from flask_debugtoolbar import DebugToolbarExte...
27.378378
67
0.803554
c9fa7fd286f22796bc3f6966b9a08dbcdcb84ccc
2,361
py
Python
python/pySimE/space/exp/pykep/lambert_Fit_4.py
ProkopHapala/SimpleSimulationEngine
240f9b7e85b3a6eda7a27dc15fe3f7b8c08774c5
[ "MIT" ]
26
2016-12-04T04:45:12.000Z
2022-03-24T09:39:28.000Z
python/pySimE/space/exp/pykep/lambert_Fit_4.py
Aki78/FlightAI
9c5480f2392c9c89b9fee4902db0c4cde5323a6c
[ "MIT" ]
null
null
null
python/pySimE/space/exp/pykep/lambert_Fit_4.py
Aki78/FlightAI
9c5480f2392c9c89b9fee4902db0c4cde5323a6c
[ "MIT" ]
2
2019-02-09T12:31:06.000Z
2019-04-28T02:24:50.000Z
from pylab import * import matplotlib.ticker as ticker from scipy.optimize import minimize,bisect from PyKEP import lambert_problem ax = subplot(111) ax.xaxis.set_major_locator( ticker.MaxNLocator(nbins=10) ) ax.xaxis.set_minor_locator( ticker.AutoMinorLocator(n=10) ) ax.yaxis.set_major_locator( ticker.MaxNLoc...
20.893805
100
0.568827
0bbcf6a5bc15b98563ec5a0235c9e14e418fcfd1
64,027
py
Python
test/functional/feature_block.py
BlockMechanic/rain
e8818b75240ff9277b0d14d38769378f05d0b525
[ "MIT" ]
null
null
null
test/functional/feature_block.py
BlockMechanic/rain
e8818b75240ff9277b0d14d38769378f05d0b525
[ "MIT" ]
null
null
null
test/functional/feature_block.py
BlockMechanic/rain
e8818b75240ff9277b0d14d38769378f05d0b525
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2015-2019 The Rain Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test block processing.""" import copy import struct import time from test_framework.blocktools import ( ...
46.632921
184
0.584909
db5d7dcead6f0b58043f5557a8a459a95f95f92f
3,458
py
Python
making__/text_game_maker_editor/text_editor.py
sairash/text_game_maker
94702b24eacb0d27e9e77d86daba76b88f0faaf9
[ "MIT" ]
null
null
null
making__/text_game_maker_editor/text_editor.py
sairash/text_game_maker
94702b24eacb0d27e9e77d86daba76b88f0faaf9
[ "MIT" ]
null
null
null
making__/text_game_maker_editor/text_editor.py
sairash/text_game_maker
94702b24eacb0d27e9e77d86daba76b88f0faaf9
[ "MIT" ]
null
null
null
import sys import tkinter as tk from tkinter import scrolledtext, Canvas from tkinter.filedialog import askopenfilename from tkinter.font import Font from PIL import ImageTk,Image import webbrowser import os previous_text_starts_at=0 def open_git_page(event): webbrowser.open_new(r"https://github.com/sairash/tex...
29.810345
93
0.681897
fa49e89df1b4ecbc22314d0c3f245b3d534f978a
11,648
py
Python
recipes/mongo-c-driver/all/conanfile.py
nicraMarcin/conan-center-index
c31521c29eaf309f91d2efffb7f27c7795302420
[ "MIT" ]
2
2022-01-04T11:30:41.000Z
2022-01-04T11:31:32.000Z
recipes/mongo-c-driver/all/conanfile.py
nicraMarcin/conan-center-index
c31521c29eaf309f91d2efffb7f27c7795302420
[ "MIT" ]
2
2021-07-12T11:40:14.000Z
2022-03-04T13:15:54.000Z
recipes/mongo-c-driver/all/conanfile.py
nicraMarcin/conan-center-index
c31521c29eaf309f91d2efffb7f27c7795302420
[ "MIT" ]
null
null
null
from conans import ConanFile, CMake, tools from conans.errors import ConanInvalidConfiguration import os required_conan_version = ">=1.28.0" class MongoCDriverConan(ConanFile): name = "mongo-c-driver" license = "Apache-2.0" url = "https://github.com/conan-io/conan-center-index" homepage = "https://mo...
48.941176
138
0.63556
05ac678d5a60cb7f96b574032abec73e0d037d2e
1,818
py
Python
ib/ext/cfg/EReader.py
keven/ibpy
3a96091e1f798d60001c47dc731ffd65c12c0797
[ "BSD-3-Clause" ]
1
2016-11-23T23:55:35.000Z
2016-11-23T23:55:35.000Z
ib/ext/cfg/EReader.py
keven/ibpy
3a96091e1f798d60001c47dc731ffd65c12c0797
[ "BSD-3-Clause" ]
null
null
null
ib/ext/cfg/EReader.py
keven/ibpy
3a96091e1f798d60001c47dc731ffd65c12c0797
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ ib.ext.cfg.EReader -> config module for EReader.java. """ modulePreamble = [ 'from ib.lib import Boolean, Double, DataInputStream, Integer, Long, StringBuffer, Thread', 'from ib.lib.overloading import overloaded', '', 'from ib.ext.Contract import Contra...
31.344828
95
0.59956
ad336802b8ac3d5844ea5fda26c099ee6e97e772
10,666
py
Python
platform/gsutil/third_party/boto/tests/integration/route53/test_health_check.py
IsaacHuang/google-cloud-sdk
52afa5d1a75dff08f4f5380c5cccc015bf796ca5
[ "Apache-2.0" ]
1
2019-06-22T23:31:13.000Z
2019-06-22T23:31:13.000Z
platform/gsutil/third_party/boto/tests/integration/route53/test_health_check.py
IsaacHuang/google-cloud-sdk
52afa5d1a75dff08f4f5380c5cccc015bf796ca5
[ "Apache-2.0" ]
null
null
null
platform/gsutil/third_party/boto/tests/integration/route53/test_health_check.py
IsaacHuang/google-cloud-sdk
52afa5d1a75dff08f4f5380c5cccc015bf796ca5
[ "Apache-2.0" ]
2
2020-07-25T05:03:06.000Z
2020-11-04T04:55:57.000Z
# Copyright (c) 2014 Tellybug, Matt Millar # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation the rights to use, copy, modify, merge, publis...
60.259887
131
0.687043
3830452ccfb58c60a33f7c624d666aaa7e6d2297
697
py
Python
pycord/ext/alternatives/category_channel.py
alexyy802/utilitys
5c9eb9f3477fea53c69fafbff25127ecd46f97ea
[ "MIT" ]
null
null
null
pycord/ext/alternatives/category_channel.py
alexyy802/utilitys
5c9eb9f3477fea53c69fafbff25127ecd46f97ea
[ "MIT" ]
null
null
null
pycord/ext/alternatives/category_channel.py
alexyy802/utilitys
5c9eb9f3477fea53c69fafbff25127ecd46f97ea
[ "MIT" ]
null
null
null
import random from discord import CategoryChannel async def _sort(self, *, key=None, reverse=False): payload = [ {"id": channel.id, "position": index} for index, channel in enumerate(sorted(self.channels, key=key, reverse=reverse)) ] await self._state.http.bulk_channel_update(...
26.807692
89
0.708752
bad7332aff7b9b6217c5bcbf90e87aaa08c52b3c
1,599
py
Python
kafkalearn/com.py
1067511899/tornado-learn
497cc8f7816f15e2eab834a758f192d50704fe05
[ "Apache-2.0" ]
1
2017-12-27T09:05:23.000Z
2017-12-27T09:05:23.000Z
kafkalearn/com.py
1067511899/tornado-learn
497cc8f7816f15e2eab834a758f192d50704fe05
[ "Apache-2.0" ]
null
null
null
kafkalearn/com.py
1067511899/tornado-learn
497cc8f7816f15e2eab834a758f192d50704fe05
[ "Apache-2.0" ]
null
null
null
from kafka import KafkaConsumer import json import msgpack # To consume latest messages and auto-commit offsets consumer = KafkaConsumer('test', group_id='my-group', bootstrap_servers=['192.168.1.157:9092']) count = 0 for message in consumer: count += 1 # messa...
37.186047
75
0.627267
e6047476d895805f8a14d330b417824f06b78f6d
2,718
py
Python
motion-detector.py
d0n0/Motion-Timeline
ad2b64eced7f0f7cb0c9d60c4cc89814981837c0
[ "MIT" ]
null
null
null
motion-detector.py
d0n0/Motion-Timeline
ad2b64eced7f0f7cb0c9d60c4cc89814981837c0
[ "MIT" ]
1
2017-11-01T12:55:36.000Z
2017-11-01T12:56:56.000Z
motion-detector.py
d0n0/Motion-Timeline
ad2b64eced7f0f7cb0c9d60c4cc89814981837c0
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import cv2 import numpy as np import time import datetime import os import sys import logging import threading import requests device = 0 # Device number of webcam. Numbers are assigned from 0. threshold = 30 # Threshold of mask image. T...
27.734694
113
0.600442
1e89cda9416be8b66d67d30c224efab271d68f41
1,831
py
Python
methylcheck/__init__.py
FOXOBioScience/methylcheck
1f8fe668f5ffb728daa1f413d997da52ef08a488
[ "MIT" ]
1
2020-07-30T14:16:47.000Z
2020-07-30T14:16:47.000Z
methylcheck/__init__.py
FOXOBioScience/methylcheck
1f8fe668f5ffb728daa1f413d997da52ef08a488
[ "MIT" ]
7
2020-08-10T15:16:54.000Z
2020-09-29T13:23:28.000Z
methylcheck/__init__.py
FOXOBioScience/methylcheck
1f8fe668f5ffb728daa1f413d997da52ef08a488
[ "MIT" ]
1
2020-08-10T11:46:25.000Z
2020-08-10T11:46:25.000Z
# Lib from logging import NullHandler, getLogger import warnings warnings.simplefilter(action='ignore', category=FutureWarning) warnings.simplefilter(action='ignore', category=PendingDeprecationWarning) warnings.simplefilter(action='ignore', category=DeprecationWarning) # App from .cli import detect_array from .probes...
24.743243
74
0.737302
ce9a5974454ad8cc9b497ef3913107a1f27b7324
4,720
py
Python
main.py
Rafael-Cirino/Detonando-letreco-termo
d4b30dd494a6f72773a27dbd64de52fb3b28d8ad
[ "MIT" ]
null
null
null
main.py
Rafael-Cirino/Detonando-letreco-termo
d4b30dd494a6f72773a27dbd64de52fb3b28d8ad
[ "MIT" ]
null
null
null
main.py
Rafael-Cirino/Detonando-letreco-termo
d4b30dd494a6f72773a27dbd64de52fb3b28d8ad
[ "MIT" ]
null
null
null
from tkinter import * from matplotlib.pyplot import text from functools import partial from termo_func import * import random import json # Inicializador master = Tk() list_button = [] tentativa = 0 word_parcial = "01234" list_block, list_in, list_in_id, list_words = [], [], [], [] def create_label(): with open...
27.283237
86
0.570975
aaa0b40b2f7480ef504e6b07eb9482b3577fd23a
34,853
py
Python
tests/models/test_dag.py
Quimstr/airflow
05e66570cb66895e1d8842c95a6e8a534d419551
[ "Apache-2.0" ]
null
null
null
tests/models/test_dag.py
Quimstr/airflow
05e66570cb66895e1d8842c95a6e8a534d419551
[ "Apache-2.0" ]
3
2020-03-08T15:43:38.000Z
2021-09-29T17:26:10.000Z
tests/models/test_dag.py
upjohnc/airflow-upjohn-k8s
caadbc1618d73e054de99138b0892cea3a9327c4
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
1
2019-07-30T17:12:34.000Z
2019-07-30T17:12:34.000Z
# -*- coding: utf-8 -*- # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the #...
34.714143
101
0.581241
9c31b66e0db4c4cceaaa2cdcec65d4b828616a2f
12,351
py
Python
src/pynwb/misc.py
q0j0p/pynwb
6c3a864662f2cce63b542f9f614cc632903f9bc1
[ "BSD-3-Clause-LBNL" ]
null
null
null
src/pynwb/misc.py
q0j0p/pynwb
6c3a864662f2cce63b542f9f614cc632903f9bc1
[ "BSD-3-Clause-LBNL" ]
1
2021-06-01T22:25:36.000Z
2021-06-01T22:25:36.000Z
src/pynwb/misc.py
q0j0p/pynwb
6c3a864662f2cce63b542f9f614cc632903f9bc1
[ "BSD-3-Clause-LBNL" ]
null
null
null
import numpy as np from collections import Iterable from .form.utils import docval, getargs, popargs, call_docval_func from . import register_class, CORE_NAMESPACE from .base import TimeSeries, _default_conversion, _default_resolution from .core import NWBContainer @register_class('AnnotationSeries', CORE_NAMESPACE...
51.03719
114
0.615011
23f0e5e5084f277b55be951f38e80ce6b31791fe
2,553
py
Python
examples/custom-scripts/dilate.py
aviogit/depthai-python
ffeb646dff0819177b09f0dd8eb9720b154e7845
[ "MIT" ]
null
null
null
examples/custom-scripts/dilate.py
aviogit/depthai-python
ffeb646dff0819177b09f0dd8eb9720b154e7845
[ "MIT" ]
null
null
null
examples/custom-scripts/dilate.py
aviogit/depthai-python
ffeb646dff0819177b09f0dd8eb9720b154e7845
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from __future__ import print_function import cv2 as cv import numpy as np import argparse src = None erosion_size = 0 max_elem = 2 max_kernel_size = 21 title_trackbar_element_shape = 'Element:\n 0: Rect \n 1: Cross \n 2: Ellipse' title_trackbar_kernel_size = 'Kernel size:\n 2n +1' title_erosion_...
41.852459
106
0.732472
49c55410f53c49718bd0ca5dfb8bbdb32483b007
2,077
py
Python
engine/2.80/scripts/startup/bl_ui/space_info.py
byteinc/Phasor
f7d23a489c2b4bcc3c1961ac955926484ff8b8d9
[ "Unlicense" ]
2
2019-03-20T13:10:46.000Z
2019-05-15T20:00:31.000Z
engine/2.80/scripts/startup/bl_ui/space_info.py
byteinc/Phasor
f7d23a489c2b4bcc3c1961ac955926484ff8b8d9
[ "Unlicense" ]
null
null
null
engine/2.80/scripts/startup/bl_ui/space_info.py
byteinc/Phasor
f7d23a489c2b4bcc3c1961ac955926484ff8b8d9
[ "Unlicense" ]
null
null
null
# ##### BEGIN GPL LICENSE BLOCK ##### # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distrib...
30.544118
129
0.691382
a92fadaaed4e66c2002c1949566485d2bdb22e19
3,565
py
Python
kinow_client/models/customer_group_video_stats_1.py
kinow-io/kinow-python-sdk
4c1699a3c78048b84287bd049a669651a5b4e2d5
[ "Apache-2.0" ]
1
2019-06-26T14:24:54.000Z
2019-06-26T14:24:54.000Z
kinow_client/models/customer_group_video_stats_1.py
kinow-io/kinow-python-sdk
4c1699a3c78048b84287bd049a669651a5b4e2d5
[ "Apache-2.0" ]
null
null
null
kinow_client/models/customer_group_video_stats_1.py
kinow-io/kinow-python-sdk
4c1699a3c78048b84287bd049a669651a5b4e2d5
[ "Apache-2.0" ]
1
2018-02-01T10:08:40.000Z
2018-02-01T10:08:40.000Z
# coding: utf-8 """ Server API Reference for Server API (REST/Json) OpenAPI spec version: 1.4.58 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from pprint import pformat from six import iteritems import re class CustomerGroupVideoStats1(object): """ NOTE: This ...
26.021898
77
0.552034
6487d3f17652aff7776451f82bd01cfd479e9ce6
1,388
py
Python
agents/craftassist/tests/test_coref_resolve.py
ali-senguel/fairo
1ec5d8ecbdfc782de63a92aad9bf8534110ce762
[ "MIT" ]
669
2020-11-21T01:20:20.000Z
2021-09-13T13:25:16.000Z
agents/craftassist/tests/test_coref_resolve.py
ali-senguel/fairo
1ec5d8ecbdfc782de63a92aad9bf8534110ce762
[ "MIT" ]
324
2020-12-07T18:20:34.000Z
2021-09-14T17:17:18.000Z
agents/craftassist/tests/test_coref_resolve.py
ali-senguel/fairo
1ec5d8ecbdfc782de63a92aad9bf8534110ce762
[ "MIT" ]
56
2021-01-04T19:57:40.000Z
2021-09-13T21:20:08.000Z
""" Copyright (c) Facebook, Inc. and its affiliates. """ import unittest import droidlet.base_util import droidlet.lowlevel.minecraft.shape_util import droidlet.lowlevel.minecraft.shapes from agents.craftassist.tests.base_craftassist_test_case import BaseCraftassistTestCase from droidlet.interpreter.tests.all_test_co...
33.047619
107
0.68732
a15d58ea896468c53dc051a9c4f643be748e2a67
2,136
py
Python
Enemy.py
KRHS-GameProgramming-2014/SUPER-AWESOME-NINJA-GAME
4c02677958dbe8e273b7824e124a61979284d2db
[ "BSD-2-Clause" ]
null
null
null
Enemy.py
KRHS-GameProgramming-2014/SUPER-AWESOME-NINJA-GAME
4c02677958dbe8e273b7824e124a61979284d2db
[ "BSD-2-Clause" ]
null
null
null
Enemy.py
KRHS-GameProgramming-2014/SUPER-AWESOME-NINJA-GAME
4c02677958dbe8e273b7824e124a61979284d2db
[ "BSD-2-Clause" ]
null
null
null
import pygame, math class Enemy(): def __init__(self, image, speed = [0,0], pos = [0,0]): self.image = pygame.image.load(image) self.rect = self.image.get_rect() self.speedx = speed[0] self.speedy = speed[1] self.speed = [self.speedx, self.speedy] self.place(pos) self.didBounceX = False self.didBounce...
25.73494
79
0.64279
b434e12caab7b8236f232b9cc017d246392c6985
337
py
Python
idb/ipc/screenshot.py
sergey-plevako-badoo/FBSimulatorControl
117af8508ba7405bdbacd29ec95a0523b3926ad3
[ "MIT" ]
1
2019-06-12T16:46:25.000Z
2019-06-12T16:46:25.000Z
idb/ipc/screenshot.py
BalestraPatrick/idb
9deac2af129e7595c303c121944034c556202454
[ "MIT" ]
null
null
null
idb/ipc/screenshot.py
BalestraPatrick/idb
9deac2af129e7595c303c121944034c556202454
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. from idb.grpc.types import CompanionClient from idb.grpc.idb_pb2 import ScreenshotRequest async def client(client: CompanionClient) -> bytes: response = await client.stub.screenshot(ScreenshotRequest()) return res...
28.083333
71
0.777448
e70ee6806e8d3c3528a47b97de7ca486ea5241b8
1,489
py
Python
Student_management/code.py
mekala89/greyatom-python-for-data-science
d84e7d925e96c20e533df2c268ec2c777f390877
[ "MIT" ]
null
null
null
Student_management/code.py
mekala89/greyatom-python-for-data-science
d84e7d925e96c20e533df2c268ec2c777f390877
[ "MIT" ]
null
null
null
Student_management/code.py
mekala89/greyatom-python-for-data-science
d84e7d925e96c20e533df2c268ec2c777f390877
[ "MIT" ]
null
null
null
# -------------- # Code starts here # Create the lists class_1=['Geoffrey Hinton','Andrew Ng','Sebastian Raschka','Yoshua Bengio'] class_2=['Hilary Mason','Carla Gentry','Corinna Cortes'] # Concatenate both the strings new_class=class_1+class_2 print(new_class) # Append the list new_class.append('Peter Warden'...
32.369565
148
0.743452
f20e011d32861049ada02cf5cff4cef6e91e76ec
832
py
Python
openfasoc/generators/cryo-gen/tools/cryo_netlist.py
Elon-J/OpenFASOC
f59127eb72ef715f60d4ad7031c098c8ac9ae08e
[ "Apache-2.0" ]
1
2021-12-23T18:48:14.000Z
2021-12-23T18:48:14.000Z
openfasoc/generators/cryo-gen/tools/cryo_netlist.py
Elon-J/OpenFASOC
f59127eb72ef715f60d4ad7031c098c8ac9ae08e
[ "Apache-2.0" ]
null
null
null
openfasoc/generators/cryo-gen/tools/cryo_netlist.py
Elon-J/OpenFASOC
f59127eb72ef715f60d4ad7031c098c8ac9ae08e
[ "Apache-2.0" ]
null
null
null
##for HSPICE netlist import function # import os def gen_cryo_netlist(ninv, aux1, aux2, srcDir) -> None: r_netlist = open(srcDir + "/cryo_ro.v", "r") lines = list(r_netlist.readlines()) w_netlist = open(srcDir + "/cryo_ro.nl.v", "w") port = "X" netmap1 = function.netmap() # modify here netm...
29.714286
56
0.603365
a869d896065f6e52cd8e04bc227df18b48ca479a
961
py
Python
kubernetes/test/test_v1_daemon_endpoint.py
kevingessner/python
3f4d09d260cf0839fae8173852c69e0419188454
[ "Apache-2.0" ]
null
null
null
kubernetes/test/test_v1_daemon_endpoint.py
kevingessner/python
3f4d09d260cf0839fae8173852c69e0419188454
[ "Apache-2.0" ]
null
null
null
kubernetes/test/test_v1_daemon_endpoint.py
kevingessner/python
3f4d09d260cf0839fae8173852c69e0419188454
[ "Apache-2.0" ]
1
2018-07-19T16:37:20.000Z
2018-07-19T16:37:20.000Z
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.9.3 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import os import sys im...
21.355556
105
0.708637
805ada4d613c0efd1f09f165db064ecad79401c8
2,313
py
Python
modules/image/Image_editing/super_resolution/falsr_b/processor.py
chunzhang-hub/PaddleHub
c5cfd021f77fd59340fb26e223e09a592e6a345f
[ "Apache-2.0" ]
8,360
2019-01-18T10:46:45.000Z
2022-03-31T14:50:02.000Z
modules/image/Image_editing/super_resolution/falsr_b/processor.py
dwuping/PaddleHub
9a3b23295947e22149cc85c17cb4cf23c03f9e06
[ "Apache-2.0" ]
1,158
2019-04-11T09:22:43.000Z
2022-03-31T12:12:09.000Z
modules/image/Image_editing/super_resolution/falsr_b/processor.py
dwuping/PaddleHub
9a3b23295947e22149cc85c17cb4cf23c03f9e06
[ "Apache-2.0" ]
1,677
2019-04-09T15:07:40.000Z
2022-03-31T06:41:10.000Z
# -*- coding:utf-8 -*- import os import time import base64 import cv2 import numpy as np __all__ = ['cv2_to_base64', 'base64_to_cv2', 'postprocess'] def cv2_to_base64(image): data = cv2.imencode('.jpg', image)[1] return base64.b64encode(data.tostring()).decode('utf8') def base64_to_cv2(b64str): data =...
28.555556
101
0.641159
2e8635e689bf38150c359fcc4062c01be0e6922f
16,612
py
Python
salt/cloud/clouds/softlayer.py
zircote/saltstack
abf389743ab8c33c8923833430594ae1e6fab01f
[ "Apache-2.0" ]
2
2015-08-04T21:54:38.000Z
2019-04-25T21:47:08.000Z
salt/cloud/clouds/softlayer.py
zircote/saltstack
abf389743ab8c33c8923833430594ae1e6fab01f
[ "Apache-2.0" ]
null
null
null
salt/cloud/clouds/softlayer.py
zircote/saltstack
abf389743ab8c33c8923833430594ae1e6fab01f
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' SoftLayer Cloud Module ====================== The SoftLayer cloud module is used to control access to the SoftLayer VPS system. Use of this module only requires the ``apikey`` parameter. Set up the cloud configuration at: ``/etc/salt/cloud.providers`` or ``/etc/salt/cloud.providers.d/soft...
29.041958
131
0.595172
529a00ef1927f7562b7d1d9d561792e6a3ff0d1b
5,874
py
Python
plugins/modules/panos_admpwd.py
itdependsnetworks/pan-os-ansible
ce8f01170a50d9da5fbf16418b67b03b775f336b
[ "Apache-2.0" ]
null
null
null
plugins/modules/panos_admpwd.py
itdependsnetworks/pan-os-ansible
ce8f01170a50d9da5fbf16418b67b03b775f336b
[ "Apache-2.0" ]
null
null
null
plugins/modules/panos_admpwd.py
itdependsnetworks/pan-os-ansible
ce8f01170a50d9da5fbf16418b67b03b775f336b
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright 2016 Palo Alto Networks, 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...
28.514563
108
0.664113
3e90442d6ee8fe8c034c53359993fdfa8c55e0a7
26,311
py
Python
tests/python/unittest/test_hybrid_script.py
yongfeng-nv/incubator-tvm
a6cb4b8d3778db5341f991db9adf76ff735b72ea
[ "Apache-2.0" ]
4
2018-01-09T07:35:33.000Z
2021-04-20T05:52:50.000Z
tests/python/unittest/test_hybrid_script.py
yongfeng-nv/incubator-tvm
a6cb4b8d3778db5341f991db9adf76ff735b72ea
[ "Apache-2.0" ]
null
null
null
tests/python/unittest/test_hybrid_script.py
yongfeng-nv/incubator-tvm
a6cb4b8d3778db5341f991db9adf76ff735b72ea
[ "Apache-2.0" ]
3
2020-12-10T23:21:18.000Z
2020-12-11T01:04:50.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
31.100473
95
0.561134
2a5a64aed20accf4d42cb6fb05a93c6d4534d633
23,193
py
Python
sql_server/pyodbc/base.py
monkeyclass/django-mssql-backend
aeeb5afb99a85ae70d49af197842859e2a3c4c4c
[ "BSD-3-Clause" ]
1
2022-03-12T11:15:10.000Z
2022-03-12T11:15:10.000Z
sql_server/pyodbc/base.py
monkeyclass/django-mssql-backend
aeeb5afb99a85ae70d49af197842859e2a3c4c4c
[ "BSD-3-Clause" ]
null
null
null
sql_server/pyodbc/base.py
monkeyclass/django-mssql-backend
aeeb5afb99a85ae70d49af197842859e2a3c4c4c
[ "BSD-3-Clause" ]
1
2021-07-05T13:04:50.000Z
2021-07-05T13:04:50.000Z
""" MS SQL Server database backend for Django. """ import os import re import time from django.core.exceptions import ImproperlyConfigured try: import pyodbc as Database except ImportError as e: raise ImproperlyConfigured("Error loading pyodbc module: %s" % e) from django.utils.version import get_version_tup...
37.529126
157
0.595956
813dc8a5d565639f0aba93d03f1934ace7971fe6
432
py
Python
blog/migrations/0006_auto_20200418_2034.py
AndriiOshtuk/MDN-DIY-mini-blog
957e2b75f7aa302bf50fc22cd799e8b30a17fc61
[ "MIT" ]
null
null
null
blog/migrations/0006_auto_20200418_2034.py
AndriiOshtuk/MDN-DIY-mini-blog
957e2b75f7aa302bf50fc22cd799e8b30a17fc61
[ "MIT" ]
5
2020-06-23T06:37:49.000Z
2021-06-10T18:55:51.000Z
blog/migrations/0006_auto_20200418_2034.py
AndriiOshtuk/MDN-DIY-mini-blog
957e2b75f7aa302bf50fc22cd799e8b30a17fc61
[ "MIT" ]
null
null
null
# Generated by Django 3.0.3 on 2020-04-18 17:34 import datetime from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('blog', '0005_auto_20200418_2031'), ] operations = [ migrations.AlterField( model_name='post', name='...
21.6
82
0.613426
348a70396ccd9d86485fd98963c23da85c07c466
3,470
py
Python
continuous_delivery/continuous_delivery_stack.py
titanjer/aws-cdk-fargate-batch
e0e8c2e7d69dbc6e9ed475112170f8e34fd881b0
[ "MIT" ]
null
null
null
continuous_delivery/continuous_delivery_stack.py
titanjer/aws-cdk-fargate-batch
e0e8c2e7d69dbc6e9ed475112170f8e34fd881b0
[ "MIT" ]
null
null
null
continuous_delivery/continuous_delivery_stack.py
titanjer/aws-cdk-fargate-batch
e0e8c2e7d69dbc6e9ed475112170f8e34fd881b0
[ "MIT" ]
null
null
null
from aws_cdk import core from aws_cdk import aws_iam from aws_cdk import app_delivery from aws_cdk import aws_codebuild from aws_cdk import aws_codecommit from aws_cdk import aws_codepipeline from aws_cdk import aws_codepipeline_actions import boto3 class ContinuousDeliveryStack(core.Stack): def __init__(self, sc...
31.545455
99
0.539193
e9155dd17b5bf713e9eb08cce5245053087cb89d
7,631
py
Python
homeassistant/components/elkm1/alarm_control_panel.py
VirtualL/home-assistant
301829d02be8d865ab46c8901ac046d060849320
[ "Apache-2.0" ]
2
2017-10-26T19:43:55.000Z
2017-12-30T23:29:00.000Z
homeassistant/components/elkm1/alarm_control_panel.py
VirtualL/home-assistant
301829d02be8d865ab46c8901ac046d060849320
[ "Apache-2.0" ]
3
2021-09-08T03:34:57.000Z
2022-03-12T00:59:48.000Z
homeassistant/components/elkm1/alarm_control_panel.py
VirtualL/home-assistant
301829d02be8d865ab46c8901ac046d060849320
[ "Apache-2.0" ]
1
2019-06-19T07:43:11.000Z
2019-06-19T07:43:11.000Z
"""Each ElkM1 area will be created as a separate alarm_control_panel.""" import voluptuous as vol import homeassistant.components.alarm_control_panel as alarm from homeassistant.const import ( ATTR_CODE, ATTR_ENTITY_ID, STATE_ALARM_ARMED_AWAY, STATE_ALARM_ARMED_HOME, STATE_ALARM_ARMED_NIGHT, STATE_ALARM_ARMING...
38.155
78
0.680645
93a017328686762d7e8bc08fead93abbaddb5136
12,700
py
Python
src/virtual-wan/azext_vwan/vendored_sdks/v2020_05_01/v2020_05_01/operations/__init__.py
Mannan2812/azure-cli-extensions
e2b34efe23795f6db9c59100534a40f0813c3d95
[ "MIT" ]
2
2021-06-05T17:51:26.000Z
2021-11-17T11:17:56.000Z
src/virtual-wan/azext_vwan/vendored_sdks/v2020_05_01/v2020_05_01/operations/__init__.py
Mannan2812/azure-cli-extensions
e2b34efe23795f6db9c59100534a40f0813c3d95
[ "MIT" ]
3
2020-05-27T20:16:26.000Z
2020-07-23T19:46:49.000Z
src/virtual-wan/azext_vwan/vendored_sdks/v2020_05_01/v2020_05_01/operations/__init__.py
Mannan2812/azure-cli-extensions
e2b34efe23795f6db9c59100534a40f0813c3d95
[ "MIT" ]
5
2020-05-09T17:47:09.000Z
2020-10-01T19:52:06.000Z
# 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 ...
57.990868
136
0.877008
1acf174f52942727a829f2aec4fc7cb2fecf0ce9
267
py
Python
examples/update_status.py
vaidashwin/twython
cf01359855fecc28d300e4ae396ca8a984d3657d
[ "MIT" ]
1,154
2015-01-02T02:39:41.000Z
2022-03-30T12:04:03.000Z
examples/update_status.py
antrofranc-ai/twython
0c405604285364457f3c309969f11ba68163bd05
[ "MIT" ]
213
2015-01-26T18:04:40.000Z
2021-12-31T00:29:52.000Z
examples/update_status.py
antrofranc-ai/twython
0c405604285364457f3c309969f11ba68163bd05
[ "MIT" ]
294
2015-01-04T22:33:20.000Z
2022-03-29T16:47:36.000Z
from twython import Twython, TwythonError # Requires Authentication as of Twitter API v1.1 twitter = Twython(APP_KEY, APP_SECRET, OAUTH_TOKEN, OAUTH_TOKEN_SECRET) try: twitter.update_status(status='See how easy this was?') except TwythonError as e: print e
26.7
71
0.779026
81bd99d38bfcd5de81aa2756470c63617c5ef112
11,285
py
Python
library/vkapi.py
alexeycv/vk4xmpp
1d2f970ecc188b702cda13626cc3faf31910f909
[ "MIT" ]
null
null
null
library/vkapi.py
alexeycv/vk4xmpp
1d2f970ecc188b702cda13626cc3faf31910f909
[ "MIT" ]
null
null
null
library/vkapi.py
alexeycv/vk4xmpp
1d2f970ecc188b702cda13626cc3faf31910f909
[ "MIT" ]
null
null
null
# coding: utf-8 # © simpleApps, 2013 — 2014. import cookielib import httplib import logging import mimetools import socket import ssl import time import re import urllib import urllib2 import webtools SOCKET_TIMEOUT = 30 REQUEST_RETRIES = 6 socket.setdefaulttimeout(SOCKET_TIMEOUT) logger = logging.getLogger("vk4xmp...
26.062356
118
0.664688
ed49c22d48633e48bd644524cd1a7a0fbb511321
741
py
Python
settings.py
alexandster/LK2AD
f7379a6d3cbc5053fd071f85c9d156df4406aecc
[ "Apache-2.0" ]
1
2020-02-25T13:17:28.000Z
2020-02-25T13:17:28.000Z
settings.py
alexandster/LK2AD
f7379a6d3cbc5053fd071f85c9d156df4406aecc
[ "Apache-2.0" ]
null
null
null
settings.py
alexandster/LK2AD
f7379a6d3cbc5053fd071f85c9d156df4406aecc
[ "Apache-2.0" ]
null
null
null
# settings.py def init(): global hs_binsize, hs_numbins, hs_max, ht_binsize, ht_numbins, ht_max, xyRes, tRes, xmin, xmax, ymin, ymax, tmin, tmax, xdim, ydim, tdim hs_binsize = [...] # spatial bin size hs_numbins = [...] # number of spatial bins hs_ma...
49.4
141
0.500675
c45fabb5527e1d2513cfd056db4a65258232ae26
1,058
py
Python
two_children.py
daniel2019-max/HackerRank-preparation-month
400f8c0cfaa9fc8e13a683c15ecb5d2341d9c209
[ "MIT" ]
null
null
null
two_children.py
daniel2019-max/HackerRank-preparation-month
400f8c0cfaa9fc8e13a683c15ecb5d2341d9c209
[ "MIT" ]
null
null
null
two_children.py
daniel2019-max/HackerRank-preparation-month
400f8c0cfaa9fc8e13a683c15ecb5d2341d9c209
[ "MIT" ]
null
null
null
# Two children, Lily and Ron, want to share a chocolate bar. Each of the squares has an integer on it. # Lily decides to share a contiguous segment of the bar selected such that: # The length of the segment matches Ron's birth month, and, # The sum of the integers on the squares is equal to his birth day. # Determine...
31.117647
102
0.670132
fb7a06d1ed15769b82168489cbb5af212914e09e
1,330
py
Python
cbp/models.py
ig-rudenko/CbP
a6799a6db926f9726f24bcce4c9a52c6bbe0ceac
[ "Apache-2.0" ]
1
2021-12-20T12:33:18.000Z
2021-12-20T12:33:18.000Z
cbp/models.py
ig-rudenko/cbp
a6799a6db926f9726f24bcce4c9a52c6bbe0ceac
[ "Apache-2.0" ]
null
null
null
cbp/models.py
ig-rudenko/cbp
a6799a6db926f9726f24bcce4c9a52c6bbe0ceac
[ "Apache-2.0" ]
1
2020-07-11T12:37:30.000Z
2020-07-11T12:37:30.000Z
from django.db import models from django.contrib.auth.models import User class FtpGroup(models.Model): name = models.CharField(max_length=128, null=True) host = models.GenericIPAddressField() login = models.CharField(max_length=128, null=True) password = models.CharField(max_length=128, null=True) ...
38
87
0.757143
413f2ff3d98c9eb73227a459fbcd65e63dcf16f6
1,314
py
Python
scripts/random_plots.py
JLans/jl_spectra_2_structure
d62fc7c210e0bf8cbac019cc923732b5ff33a761
[ "MIT" ]
null
null
null
scripts/random_plots.py
JLans/jl_spectra_2_structure
d62fc7c210e0bf8cbac019cc923732b5ff33a761
[ "MIT" ]
null
null
null
scripts/random_plots.py
JLans/jl_spectra_2_structure
d62fc7c210e0bf8cbac019cc923732b5ff33a761
[ "MIT" ]
2
2021-01-29T14:28:10.000Z
2021-12-06T10:10:05.000Z
# -*- coding: utf-8 -*- """ Created on Tue Dec 17 19:33:16 2019 @author: lansf """ from __future__ import division import os import matplotlib.pyplot as plt import matplotlib.gridspec as gridspec from jl_spectra_2_structure import IR_GEN from jl_spectra_2_structure.plotting_tools import set_figure_settings set_figure...
36.5
89
0.745053
2e30e3cccd174c9993b4eef735c6d4c6e7b24960
21,399
py
Python
src/sqlfluff/rules/L016.py
1337Lurker/sqlfluff
26564b7bb4a76aec3a8b560b4c7e663cd04a0808
[ "MIT" ]
null
null
null
src/sqlfluff/rules/L016.py
1337Lurker/sqlfluff
26564b7bb4a76aec3a8b560b4c7e663cd04a0808
[ "MIT" ]
null
null
null
src/sqlfluff/rules/L016.py
1337Lurker/sqlfluff
26564b7bb4a76aec3a8b560b4c7e663cd04a0808
[ "MIT" ]
1
2021-08-29T20:59:03.000Z
2021-08-29T20:59:03.000Z
"""Implementation of Rule L016.""" from typing import Tuple from sqlfluff.core.parser import NewlineSegment, WhitespaceSegment from sqlfluff.core.rules.base import LintFix, LintResult from sqlfluff.core.rules.doc_decorators import ( document_fix_compatible, document_configuration, ) from sqlfluff.rules.L003 ...
41.551456
108
0.485911
d4c42c63afd339f284535295db612e52b15ca748
868
py
Python
setup.py
liuchang0523/tfrecord
9551b289df288479c0e64d6ac275ffbe4e76628a
[ "MIT" ]
null
null
null
setup.py
liuchang0523/tfrecord
9551b289df288479c0e64d6ac275ffbe4e76628a
[ "MIT" ]
null
null
null
setup.py
liuchang0523/tfrecord
9551b289df288479c0e64d6ac275ffbe4e76628a
[ "MIT" ]
1
2022-01-18T09:21:56.000Z
2022-01-18T09:21:56.000Z
import os import sys from distutils.core import setup from setuptools import find_packages # List of runtime dependencies required by this built package install_requires = [] if sys.version_info <= (2, 7): install_requires += ['future', 'typing'] install_requires += ['numpy', 'protobuf', 'crc32c'] # read the co...
27.125
61
0.724654
3b56c2900f4ac4982253d6acb3a4c00a3cee90c6
199
py
Python
Groups/Group_ID_40/code.py
sonaldangi12/DataScience
3d7cd529a96f37c2ef179ee408e2c6d8744d746a
[ "MIT" ]
null
null
null
Groups/Group_ID_40/code.py
sonaldangi12/DataScience
3d7cd529a96f37c2ef179ee408e2c6d8744d746a
[ "MIT" ]
null
null
null
Groups/Group_ID_40/code.py
sonaldangi12/DataScience
3d7cd529a96f37c2ef179ee408e2c6d8744d746a
[ "MIT" ]
null
null
null
from vcca import fit import torch from torch.autograd import Variable x_view = Variable(torch.randn(10000, 100)) y_view = Variable(torch.randn(10000, 100)) epochs=1 fit(x_view,y_view,10,100,epochs)
22.111111
42
0.78392
554f45fba2185a7d748e67190f57097d20cbb4ff
757
py
Python
massloss.py
mjenks/FLASH_visuals
2e2d17d6acb6e3993521608c993c6abebd7aec81
[ "CC0-1.0" ]
null
null
null
massloss.py
mjenks/FLASH_visuals
2e2d17d6acb6e3993521608c993c6abebd7aec81
[ "CC0-1.0" ]
null
null
null
massloss.py
mjenks/FLASH_visuals
2e2d17d6acb6e3993521608c993c6abebd7aec81
[ "CC0-1.0" ]
null
null
null
#This code is for making a plot of mass loss #Created by Malia Jenks import numpy as np import pylab from math import sqrt runname = '32node_77_cgs_spitzer' datfile = runname + '/relax.dat' time, mass, = np.loadtxt(datfile,skiprows=1,usecols=(0,1),unpack=True) golden = (1.0 + sqrt(5.0)) / 2.0 figprops = dict(figsi...
24.419355
87
0.698811
90b04545a084e0a8f0a9a60ae63c406511425d0e
21,024
py
Python
tensorflow_data_validation/utils/anomalies_util_test.py
Bobgy/data-validation
630279df72755c7ec68e74fb862e52b1f03a1bd6
[ "Apache-2.0" ]
null
null
null
tensorflow_data_validation/utils/anomalies_util_test.py
Bobgy/data-validation
630279df72755c7ec68e74fb862e52b1f03a1bd6
[ "Apache-2.0" ]
null
null
null
tensorflow_data_validation/utils/anomalies_util_test.py
Bobgy/data-validation
630279df72755c7ec68e74fb862e52b1f03a1bd6
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
39.078067
83
0.539574
fde54f404ec56455e5ca279d8f15ae7947275ef7
18,097
py
Python
examples/incompressible_lbm_example.py
eljoelopez/simscale-python-sdk
189f1337b2ab40feed123111ddead0cdecf83c93
[ "MIT" ]
1
2022-01-03T08:59:39.000Z
2022-01-03T08:59:39.000Z
examples/incompressible_lbm_example.py
eljoelopez/simscale-python-sdk
189f1337b2ab40feed123111ddead0cdecf83c93
[ "MIT" ]
null
null
null
examples/incompressible_lbm_example.py
eljoelopez/simscale-python-sdk
189f1337b2ab40feed123111ddead0cdecf83c93
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import time import zipfile import isodate import urllib3 from simscale_sdk import Configuration, ApiClient, ProjectsApi, StorageApi, GeometryImportsApi, GeometriesApi, \ SimulationsApi, SimulationRunsApi, ReportsApi, Project, GeometryImportRequest, ApiException, TableImportsApi fro...
44.464373
121
0.744985
4e7cab5154eee85dda4c2aeddb1f17b1aada8c3c
1,364
py
Python
vk_messages_bot/__main__.py
zaynetro/vk-messages-bot
10ec37b99611e391f768a361864127e5de81e93c
[ "MIT" ]
43
2016-01-17T18:24:14.000Z
2020-09-19T13:53:07.000Z
vk_messages_bot/__main__.py
zaynetro/vk-messages-bot
10ec37b99611e391f768a361864127e5de81e93c
[ "MIT" ]
13
2016-01-17T18:24:33.000Z
2018-01-25T15:39:17.000Z
vk_messages_bot/__main__.py
zaynetro/vk-messages-bot
10ec37b99611e391f768a361864127e5de81e93c
[ "MIT" ]
14
2016-05-18T06:30:23.000Z
2019-05-27T17:13:00.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import logging import os import sys from logging.handlers import SysLogHandler from vk_messages_bot.bot import Bot from vk_messages_bot.db import db console_handler = logging.StreamHandler() handlers = [console_handler] SYSLOG_ADDRESS = os.getenv('SYSLOG_ADDRESS', '') ...
27.836735
112
0.667155