hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
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
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
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
3
239
max_forks_repo_name
stringlengths
5
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
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
796948af7212a6ec14e520be5621b6611ad968f6
3,402
py
Python
autotest/t046_test.py
hansonmcoombs/flopy
49398983c36d381992621d5bf698ea7f78fc0014
[ "CC0-1.0", "BSD-3-Clause" ]
null
null
null
autotest/t046_test.py
hansonmcoombs/flopy
49398983c36d381992621d5bf698ea7f78fc0014
[ "CC0-1.0", "BSD-3-Clause" ]
null
null
null
autotest/t046_test.py
hansonmcoombs/flopy
49398983c36d381992621d5bf698ea7f78fc0014
[ "CC0-1.0", "BSD-3-Clause" ]
null
null
null
""" Test the gmg load and write with an external summary file """ import os import pymake import pytest from ci_framework import FlopyTestSetup, base_test_dir import flopy base_dir = base_test_dir(__file__, rel_path="temp", verbose=True) path = os.path.join("..", "examples", "data", "freyberg") mf_items = ["freybe...
25.2
79
0.595532
79694918881dc18e3aa0cbb3d5e380fa5e94c53f
10,775
py
Python
test/intervaltree_methods/restructure_test.py
mjpieters/intervaltree
6a731f2ce9f658cd6b8da2f7e23e96642643be54
[ "Apache-2.0" ]
1
2018-09-26T07:07:05.000Z
2018-09-26T07:07:05.000Z
test/intervaltree_methods/restructure_test.py
mjpieters/intervaltree
6a731f2ce9f658cd6b8da2f7e23e96642643be54
[ "Apache-2.0" ]
null
null
null
test/intervaltree_methods/restructure_test.py
mjpieters/intervaltree
6a731f2ce9f658cd6b8da2f7e23e96642643be54
[ "Apache-2.0" ]
null
null
null
""" intervaltree: A mutable, self-balancing interval tree for Python 2 and 3. Queries may be by point, by range overlap, or by range envelopment. Test module: IntervalTree, Special methods Copyright 2013-2017 Chaim-Leib Halbert Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file...
25.777512
90
0.615963
796949a0cb46dc38a2ec741b7002039715eca203
24,949
py
Python
test/test_gfa_graph.py
AlgoLab/pygfa
7985e469b193eab7a6fdc9d03b46b681df6c6fa7
[ "MIT" ]
3
2020-06-25T22:47:02.000Z
2022-02-27T15:16:02.000Z
test/test_gfa_graph.py
AlgoLab/pygfa
7985e469b193eab7a6fdc9d03b46b681df6c6fa7
[ "MIT" ]
3
2017-08-08T12:24:23.000Z
2022-02-27T15:17:25.000Z
test/test_gfa_graph.py
AlgoLab/pygfa
7985e469b193eab7a6fdc9d03b46b681df6c6fa7
[ "MIT" ]
4
2019-02-04T20:54:53.000Z
2020-05-14T19:52:24.000Z
import copy import sys sys.path.insert(0, '../') import networkx as nx import unittest import pygfa from pygfa import gfa from pygfa.graph_element.parser import header, segment, link, path, containment from pygfa.graph_element.parser import fragment, edge, gap, group from pygfa.graph_element.parser import line, fiel...
44.001764
113
0.585474
79694a35c7e4f7455471952f76f8277d090e12bf
1,493
py
Python
q2_qemistree/_transformer.py
fedarko/q2-qemistree
611ab6d38fed8f59dda35984e49fa73d7431bc50
[ "BSD-2-Clause" ]
18
2019-08-22T15:57:29.000Z
2022-03-30T20:15:41.000Z
q2_qemistree/_transformer.py
fedarko/q2-qemistree
611ab6d38fed8f59dda35984e49fa73d7431bc50
[ "BSD-2-Clause" ]
71
2019-05-14T22:54:19.000Z
2022-03-04T05:15:41.000Z
q2_qemistree/_transformer.py
fedarko/q2-qemistree
611ab6d38fed8f59dda35984e49fa73d7431bc50
[ "BSD-2-Clause" ]
10
2019-12-18T22:54:32.000Z
2021-07-05T13:35:53.000Z
from .plugin_setup import plugin from ._semantics import TSVMolecules import pandas as pd import qiime2 def _read_dataframe(fh): # Using `dtype=object` and `set_index` to avoid type casting/inference # of any columns or the index. df = pd.read_csv(fh, sep='\t', header=0, dtype='str') return df def _...
30.469388
78
0.687877
79694b48bf01418ad30ca872204cdcc8ee13edaa
433
py
Python
01/python/freq-changes.py
trcooke/adventofcode-2018
6eb2eb04463618432b626ce60c74d0e6406c69a0
[ "MIT" ]
null
null
null
01/python/freq-changes.py
trcooke/adventofcode-2018
6eb2eb04463618432b626ce60c74d0e6406c69a0
[ "MIT" ]
null
null
null
01/python/freq-changes.py
trcooke/adventofcode-2018
6eb2eb04463618432b626ce60c74d0e6406c69a0
[ "MIT" ]
null
null
null
from sets import Set changes = open("input") freqs = [] for line in changes: freqs.append(int(line)) final_freq = 0 for freq in freqs: final_freq = final_freq + freq print final_freq seen = Set([0]) final = 0 keep_going = True while keep_going: for freq in freqs: final = final + freq if...
16.653846
34
0.605081
79694c0a6e0741eaab955cdd3f910df788be649e
10,243
py
Python
pretrainedmodels/imagenet/utils.py
MM-Vision/pretrainedmodels.pytorch
24efb031ad7a9fa2b209286c1fc7ace29a3a8a62
[ "MIT" ]
14
2019-01-07T05:59:18.000Z
2019-11-28T07:17:45.000Z
pretrainedmodels/imagenet/utils.py
Sogou-MM/pretrainedmodels.pytorch
24efb031ad7a9fa2b209286c1fc7ace29a3a8a62
[ "MIT" ]
1
2019-05-14T18:27:20.000Z
2019-05-14T18:27:20.000Z
pretrainedmodels/imagenet/utils.py
Sogou-MM/pretrainedmodels.pytorch
24efb031ad7a9fa2b209286c1fc7ace29a3a8a62
[ "MIT" ]
1
2019-01-25T09:15:31.000Z
2019-01-25T09:15:31.000Z
from functools import partial from math import pi, cos import torch.nn as nn import torch.optim as optim import torch.optim.lr_scheduler as lr_scheduler import torchvision.transforms as transforms from .transforms import ColorJitter, Lighting def create_optimizer(optimizer_config, model, niters=0): """Creates o...
37.520147
117
0.548863
79694ca6183f7d4b82e3c58268887922e88872fe
2,287
py
Python
xbox-one-controller/robot.py
frc2423/2018-examples
2b2b18d84242d9167c1c4bbea351f66d75ea6101
[ "MIT" ]
null
null
null
xbox-one-controller/robot.py
frc2423/2018-examples
2b2b18d84242d9167c1c4bbea351f66d75ea6101
[ "MIT" ]
null
null
null
xbox-one-controller/robot.py
frc2423/2018-examples
2b2b18d84242d9167c1c4bbea351f66d75ea6101
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ This is a good foundation to build your robot code on """ import wpilib import ctre class MyRobot(wpilib.TimedRobot): def robotInit(self): """ This function is called upon program startup and should be used for any initialization code. """ s...
27.890244
104
0.628771
79694cbb6a949aa60f2f99ef62b048dad95dd781
20,341
py
Python
larlib/build/lib/larlib/boundary 2.py
cvdlab/lar-cc
7092965acf7c0c78a5fab4348cf2c2aa01c4b130
[ "MIT", "Unlicense" ]
1
2016-09-20T04:48:12.000Z
2016-09-20T04:48:12.000Z
larlib/build/lib/larlib/boundary 2.py
Ahdhn/lar-cc
7092965acf7c0c78a5fab4348cf2c2aa01c4b130
[ "MIT", "Unlicense" ]
1
2018-02-20T21:57:07.000Z
2018-02-21T07:18:11.000Z
larlib/build/lib/larlib/boundary 2.py
Ahdhn/lar-cc
7092965acf7c0c78a5fab4348cf2c2aa01c4b130
[ "MIT", "Unlicense" ]
7
2016-11-04T10:47:42.000Z
2018-04-10T17:32:50.000Z
""" boundary operators """ from larlib import * """ convex-cells boundary operator --- best implementation """ def larBoundary(cells,facets): lenV = max(max(CAT(cells)),max(CAT(facets)))+1 csrCV = csrCreate(cells,lenV) csrFV = csrCreate(facets,lenV) csrFC = csrFV * csrCV.T facetLengths = [csrFacet.g...
42.201245
104
0.630697
79694cd0884821633faded04fe5cff4e47fc7987
2,938
py
Python
setup.py
91902078/XOPPY
3bd800e4059042c567abd979748491419a5aba3d
[ "BSD-2-Clause" ]
null
null
null
setup.py
91902078/XOPPY
3bd800e4059042c567abd979748491419a5aba3d
[ "BSD-2-Clause" ]
null
null
null
setup.py
91902078/XOPPY
3bd800e4059042c567abd979748491419a5aba3d
[ "BSD-2-Clause" ]
null
null
null
#! /usr/bin/env python3 import os try: from setuptools import find_packages, setup except AttributeError: from setuptools import find_packages, setup NAME = 'OASYS1-XOPPY' VERSION = '1.0.98' ISRELEASED = False DESCRIPTION = 'XOPPY: XOP (X-ray oriented programs) in Python' README_FILE = os.path.join(os.path....
29.38
139
0.621511
79694d068af83c6c929371a1a4e55c3b419af5e0
5,541
py
Python
experiments/statistical-downscaling/precipitation/code/train.py
jgonzalezab/workflow-DL-HPC
773c32d71766c4d046dce4114cb4b2dd61138727
[ "MIT" ]
null
null
null
experiments/statistical-downscaling/precipitation/code/train.py
jgonzalezab/workflow-DL-HPC
773c32d71766c4d046dce4114cb4b2dd61138727
[ "MIT" ]
null
null
null
experiments/statistical-downscaling/precipitation/code/train.py
jgonzalezab/workflow-DL-HPC
773c32d71766c4d046dce4114cb4b2dd61138727
[ "MIT" ]
null
null
null
import os import json import numpy as np from time import time from keras.layers import Input, Conv2D, Flatten, Dense, UpSampling2D, \ Conv2DTranspose, Concatenate, BatchNormalization, \ ZeroPadding2D, LeakyReLU, LocallyConnected2D from keras.models import Model from ke...
33.379518
97
0.608915
79694d6d359499a69274e102c31920dfbb6fb9ec
13,531
py
Python
dqn_memory_priortized_replay_buffer.py
YunqiuXu/H-KGA
694a36baf9e51ffb97be269d8182a2b906eb0da5
[ "MIT" ]
2
2021-10-01T00:41:40.000Z
2022-02-17T03:43:13.000Z
dqn_memory_priortized_replay_buffer.py
YunqiuXu/H-KGA
694a36baf9e51ffb97be269d8182a2b906eb0da5
[ "MIT" ]
null
null
null
dqn_memory_priortized_replay_buffer.py
YunqiuXu/H-KGA
694a36baf9e51ffb97be269d8182a2b906eb0da5
[ "MIT" ]
1
2021-10-19T13:47:53.000Z
2021-10-19T13:47:53.000Z
# part of the code are from https://github.com/hill-a/stable-baselines/ import random from collections import namedtuple import numpy as np import torch from generic import to_np from segment_tree import SumSegmentTree, MinSegmentTree Transition = namedtuple('Transition', ('observation_list', ...
43.648387
197
0.594413
79694ddb7d94b5c4a8e2e0ca105d081a3a9b5baf
833
py
Python
api/course_api.py
elhaidi/fastapi_receng
e9faa1cba354d58dd6df44e0e8a584c0d4ab9d62
[ "MIT" ]
null
null
null
api/course_api.py
elhaidi/fastapi_receng
e9faa1cba354d58dd6df44e0e8a584c0d4ab9d62
[ "MIT" ]
null
null
null
api/course_api.py
elhaidi/fastapi_receng
e9faa1cba354d58dd6df44e0e8a584c0d4ab9d62
[ "MIT" ]
null
null
null
import fastapi from fastapi.responses import JSONResponse from fastapi import Depends from services.db_service import get_one_course, all_courses from models.course import Course router = fastapi.APIRouter() @router.get('/api/rec/{course_id}') def rec(crs: Course = Depends()): result = get_one_course(crs.course_...
34.708333
112
0.656663
79694e9bbbb9b83076b1e82d53e1d7ac4f421b8c
1,378
py
Python
sis_provisioner/management/commands/import_users.py
uw-it-aca/canvas-sis-provisioner
28f54ce101704a8feaaea1e514618aba5a330a25
[ "Apache-2.0" ]
null
null
null
sis_provisioner/management/commands/import_users.py
uw-it-aca/canvas-sis-provisioner
28f54ce101704a8feaaea1e514618aba5a330a25
[ "Apache-2.0" ]
451
2016-10-25T22:08:19.000Z
2022-03-23T20:27:52.000Z
sis_provisioner/management/commands/import_users.py
uw-it-aca/canvas-sis-provisioner
28f54ce101704a8feaaea1e514618aba5a330a25
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 from sis_provisioner.management.commands import SISProvisionerCommand from sis_provisioner.models.user import User from sis_provisioner.exceptions import ( EmptyQueueException, MissingImportPathException) from sis_provisioner.bu...
30.622222
69
0.648041
7969508b7086d15280f26c78c3976704f9687c0b
267
py
Python
python_base/py3_training-master/FTP/MadFtpServer/conf/settings.py
sven820/python
ddb13ffdab45bdb2c8ca8038cfa0c47f2502e554
[ "Apache-2.0" ]
null
null
null
python_base/py3_training-master/FTP/MadFtpServer/conf/settings.py
sven820/python
ddb13ffdab45bdb2c8ca8038cfa0c47f2502e554
[ "Apache-2.0" ]
null
null
null
python_base/py3_training-master/FTP/MadFtpServer/conf/settings.py
sven820/python
ddb13ffdab45bdb2c8ca8038cfa0c47f2502e554
[ "Apache-2.0" ]
null
null
null
import os BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) USER_HOME = "%s/home" % BASE_DIR LOG_DIR = "%s/log" % BASE_DIR LOG_LEVEL = "DEBUG" ACCOUNT_FILE = "%s/conf/accounts.cfg" % BASE_DIR HOST = "0.0.0.0" PORT = 9999
15.705882
71
0.636704
796950a698eb6929a76ba835f6e39cdcc14e0527
5,120
py
Python
obs/export.py
alerque/uw-tools
98e4656a332278ee1f120f6a84fe6088f07e73fd
[ "MIT" ]
null
null
null
obs/export.py
alerque/uw-tools
98e4656a332278ee1f120f6a84fe6088f07e73fd
[ "MIT" ]
null
null
null
obs/export.py
alerque/uw-tools
98e4656a332278ee1f120f6a84fe6088f07e73fd
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf8 -*- # # Copyright (c) 2014 unfoldingWord # http://creativecommons.org/licenses/MIT/ # See LICENSE file for details. # # Contributors: # Jesse Griffin <jesse@distantshores.org> # ''' Exports OBS for given language to specified format. ''' import os import sys import json i...
32.611465
135
0.583203
796950c58ef8e43b8c1b8b1cae09f12150a47859
21
py
Python
python/testData/pyi/inspections/unresolvedModuleAttributes/m1.py
jnthn/intellij-community
8fa7c8a3ace62400c838e0d5926a7be106aa8557
[ "Apache-2.0" ]
2
2019-04-28T07:48:50.000Z
2020-12-11T14:18:08.000Z
python/testData/pyi/inspections/unresolvedModuleAttributes/m1.py
Cyril-lamirand/intellij-community
60ab6c61b82fc761dd68363eca7d9d69663cfa39
[ "Apache-2.0" ]
173
2018-07-05T13:59:39.000Z
2018-08-09T01:12:03.000Z
python/testData/pyi/inspections/unresolvedModuleAttributes/m1.py
Cyril-lamirand/intellij-community
60ab6c61b82fc761dd68363eca7d9d69663cfa39
[ "Apache-2.0" ]
2
2020-03-15T08:57:37.000Z
2020-04-07T04:48:14.000Z
module_only_attr = 0
10.5
20
0.809524
796953a4e27ee32068f6d7a6dbc5388790ae2e24
18,526
py
Python
nt_training/tests.py
newtheatre/nt_training
e080534b9f91e0557b7873cf9609ce0071467c0b
[ "MIT" ]
1
2021-05-16T04:05:00.000Z
2021-05-16T04:05:00.000Z
nt_training/tests.py
newtheatre/nt_training
e080534b9f91e0557b7873cf9609ce0071467c0b
[ "MIT" ]
24
2017-09-10T17:30:03.000Z
2022-02-10T11:03:24.000Z
nt_training/tests.py
samozzy/nt_training
e080534b9f91e0557b7873cf9609ce0071467c0b
[ "MIT" ]
2
2018-12-05T17:53:44.000Z
2018-12-17T15:34:35.000Z
# All the imports ## Global import datetime ## Django from django.test import TestCase from django.template.defaultfilters import slugify from django.utils import timezone from django.urls import reverse ############ NNT Training ########## from .models import Icon, Person, Training_Spec, Training_Session urls = 'n...
39.333333
187
0.737234
79695402048eb3651ff48dc3576def23180a9843
1,639
py
Python
saleor/core/views.py
AkioSky/FishMart
1d01d7e79812dc7cccb1b26ffc6457af6104d9f2
[ "BSD-3-Clause" ]
null
null
null
saleor/core/views.py
AkioSky/FishMart
1d01d7e79812dc7cccb1b26ffc6457af6104d9f2
[ "BSD-3-Clause" ]
null
null
null
saleor/core/views.py
AkioSky/FishMart
1d01d7e79812dc7cccb1b26ffc6457af6104d9f2
[ "BSD-3-Clause" ]
null
null
null
import json from django.contrib import messages from django.template.response import TemplateResponse from django.utils.translation import pgettext_lazy from impersonate.views import impersonate as orig_impersonate from ..account.models import User from ..dashboard.views import staff_member_required from ..product.ut...
31.519231
72
0.734594
7969551468f95dcc0e91a2295b5e7d40cb2623cd
37,130
py
Python
applications/admin/languages/pt-br.py
jessicadelrio/HandyHouse
058e8981da850790c84f990fd2a3bbcf9aa695cc
[ "BSD-3-Clause" ]
3
2017-07-22T18:37:23.000Z
2017-07-29T15:08:28.000Z
applications/admin/languages/pt-br.py
jessicadelrio/HandyHouse
058e8981da850790c84f990fd2a3bbcf9aa695cc
[ "BSD-3-Clause" ]
4
2017-05-04T18:48:36.000Z
2017-05-10T18:48:25.000Z
applications/admin/languages/pt-br.py
jessicadelrio/HandyHouse
058e8981da850790c84f990fd2a3bbcf9aa695cc
[ "BSD-3-Clause" ]
3
2017-04-25T15:58:54.000Z
2020-03-16T20:15:00.000Z
# -*- coding: utf-8 -*- { '!langcode!': 'pt-br', '!langname!': 'Português Brasileiro', '"update" is an optional expression like "field1=\'newvalue\'". You cannot update or delete the results of a JOIN': '"update" é uma expressão opcional como "campo1=\'novo_valor\'". Não é permitido atualizar ou apagar resultados de um...
55.834586
823
0.725236
796955da49eb24551f9973b06c27c6861ce63eeb
4,721
py
Python
padre/ansible_utils.py
krislindgren/padre
56e3342a953fdc472adc11ce301acabf6c595760
[ "MIT" ]
null
null
null
padre/ansible_utils.py
krislindgren/padre
56e3342a953fdc472adc11ce301acabf6c595760
[ "MIT" ]
null
null
null
padre/ansible_utils.py
krislindgren/padre
56e3342a953fdc472adc11ce301acabf6c595760
[ "MIT" ]
null
null
null
import collections import copy import logging import six from padre import process_utils as pu from padre import utils LOG = logging.getLogger(__name__) MAX_FORKS = 44 MAX_VERBOSE = 4 # Only seems to go up to -vvvv TimeoutResult = pu.TimeoutResult class PlaybookRun(object): """Slightly nicer way to interact...
35.765152
77
0.54713
7969563b4a7d74f1c437f741a0d726f3e1746efa
6,757
py
Python
athena/athena/algorithms/NetworkAnalysis/Silhouette.py
aculich/openmappr
c9e5b4cfc974a6eda9cbc8a0ea6f8a96ce35efba
[ "MIT" ]
19
2018-04-05T23:33:33.000Z
2022-03-24T00:18:20.000Z
athena/athena/algorithms/NetworkAnalysis/Silhouette.py
aculich/openmappr
c9e5b4cfc974a6eda9cbc8a0ea6f8a96ce35efba
[ "MIT" ]
13
2018-01-10T23:31:11.000Z
2018-07-20T12:55:02.000Z
athena/athena/algorithms/NetworkAnalysis/Silhouette.py
aculich/openmappr
c9e5b4cfc974a6eda9cbc8a0ea6f8a96ce35efba
[ "MIT" ]
5
2018-02-12T05:33:19.000Z
2019-09-21T22:43:02.000Z
import numpy as np import networkx as nx # algorithms related to comparing cluster and evaluating cluster quality # sim is an n by n similarity matrix # clusters is an n-element array of clsuter assignments of each node # References # .. [1] `Peter J. Rousseeuw (1987). "Silhouettes: a Graphical Aid to the # ...
42.23125
141
0.647181
79695822fba5a18fa98222004105c94875ee9f21
9,381
py
Python
azure/mgmt/resource/subscriptions/v2016_06_01/operations/subscriptions_operations.py
EnjoyLifeFund/macHighSierra-py36-pkgs
5668b5785296b314ea1321057420bcd077dba9ea
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
1
2022-01-25T22:52:58.000Z
2022-01-25T22:52:58.000Z
azure/mgmt/resource/subscriptions/v2016_06_01/operations/subscriptions_operations.py
EnjoyLifeFund/Debian_py36_packages
1985d4c73fabd5f08f54b922e73a9306e09c77a5
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
null
null
null
azure/mgmt/resource/subscriptions/v2016_06_01/operations/subscriptions_operations.py
EnjoyLifeFund/Debian_py36_packages
1985d4c73fabd5f08f54b922e73a9306e09c77a5
[ "BSD-3-Clause", "BSD-2-Clause", "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 ...
41.693333
148
0.641403
7969587ec6e358d2b1262f4c795b961e72593e39
118
py
Python
gmc/bin/gmc-main.py
kapilgarg1996/gmc
9e35126fed662a0a2abf5d91f32b239862341d83
[ "MIT" ]
2
2017-04-28T20:05:05.000Z
2017-05-31T16:12:54.000Z
gmc/bin/gmc-main.py
kapilgarg1996/gmc
9e35126fed662a0a2abf5d91f32b239862341d83
[ "MIT" ]
6
2017-04-26T10:32:15.000Z
2017-05-30T23:51:06.000Z
gmc/bin/gmc-main.py
kapilgarg1996/gmc
9e35126fed662a0a2abf5d91f32b239862341d83
[ "MIT" ]
null
null
null
#!/usr/bin/env python from gmc.core import handler if __name__ == '__main__': handler.execute_from_command_line()
23.6
39
0.754237
7969594e4b5de36217b62b5cc8a37ed0484a1518
605
py
Python
alpyro_msgs/actionlib/testactiongoal.py
rho2/alpyro_msgs
b5a680976c40c83df70d61bb2db1de32a1cde8d3
[ "MIT" ]
1
2020-12-13T13:07:10.000Z
2020-12-13T13:07:10.000Z
alpyro_msgs/actionlib/testactiongoal.py
rho2/alpyro_msgs
b5a680976c40c83df70d61bb2db1de32a1cde8d3
[ "MIT" ]
null
null
null
alpyro_msgs/actionlib/testactiongoal.py
rho2/alpyro_msgs
b5a680976c40c83df70d61bb2db1de32a1cde8d3
[ "MIT" ]
null
null
null
from alpyro_msgs import RosMessage from alpyro_msgs.actionlib.testgoal import TestGoal from alpyro_msgs.actionlib_msgs.goalid import GoalID from alpyro_msgs.std_msgs.header import Header class TestActionGoal(RosMessage): __msg_typ__ = "actionlib/TestActionGoal" __msg_def__ = "c3RkX21zZ3MvSGVhZGVyIGhlYWRlcgogIHVpb...
40.333333
234
0.880992
796959735dcdf29a872b215d2cf87b1a8ccfefdb
1,660
py
Python
core/api/viewsets.py
mhiloca/TourismApi
b9904354f2d249e996d79f7a6ad58269c68363d7
[ "MIT" ]
null
null
null
core/api/viewsets.py
mhiloca/TourismApi
b9904354f2d249e996d79f7a6ad58269c68363d7
[ "MIT" ]
null
null
null
core/api/viewsets.py
mhiloca/TourismApi
b9904354f2d249e996d79f7a6ad58269c68363d7
[ "MIT" ]
null
null
null
from rest_framework import viewsets from rest_framework.filters import SearchFilter from rest_framework.decorators import action from rest_framework.response import Response from core.models import PontoTuristico from teste.api.viewsets import TesteViewSet from .serializers import PontoTuristicoSerializer, CompletePon...
31.923077
83
0.707831
79695aa390fadc6fc595f184f8078634793c41bd
48
py
Python
samcli/__init__.py
ranman/aws-sam-cli
9c0cfd309134bc5f4b0fd867b696974c38391860
[ "Apache-2.0" ]
1
2020-12-19T07:34:23.000Z
2020-12-19T07:34:23.000Z
samcli/__init__.py
imbi7py/aws-sam-cli
9c0cfd309134bc5f4b0fd867b696974c38391860
[ "Apache-2.0" ]
null
null
null
samcli/__init__.py
imbi7py/aws-sam-cli
9c0cfd309134bc5f4b0fd867b696974c38391860
[ "Apache-2.0" ]
1
2020-12-18T14:23:43.000Z
2020-12-18T14:23:43.000Z
""" SAM CLI version """ __version__ = '0.20.0'
8
22
0.583333
79695aa978d9911aab6e082b2c845489fb071ad7
977,768
py
Python
torch/testing/_internal/common_methods_invocations.py
HaoZeke/pytorch
4075972c2675ef34fd85efd60c9bad75ad06d386
[ "Intel" ]
null
null
null
torch/testing/_internal/common_methods_invocations.py
HaoZeke/pytorch
4075972c2675ef34fd85efd60c9bad75ad06d386
[ "Intel" ]
1
2022-01-10T18:39:28.000Z
2022-01-10T19:15:57.000Z
torch/testing/_internal/common_methods_invocations.py
HaoZeke/pytorch
4075972c2675ef34fd85efd60c9bad75ad06d386
[ "Intel" ]
null
null
null
from functools import wraps, partial from itertools import product, chain, islice import itertools import collections import copy from enum import Enum import operator import random import unittest import math import torch import numpy as np from torch._six import inf import collections.abc from typing import Any, Ca...
47.88755
160
0.608748
79695ab44d83ac77a1fadcea1826a5471027d352
25,503
py
Python
tests/vi/test_word.py
uri/Vintageous
d5662872bcf1e7439875fe1c5133010db2ace8fd
[ "MIT" ]
null
null
null
tests/vi/test_word.py
uri/Vintageous
d5662872bcf1e7439875fe1c5133010db2ace8fd
[ "MIT" ]
null
null
null
tests/vi/test_word.py
uri/Vintageous
d5662872bcf1e7439875fe1c5133010db2ace8fd
[ "MIT" ]
null
null
null
import unittest # from Vintageous.vi.constants import _MODE_INTERNAL_NORMAL from Vintageous.vi.constants import MODE_NORMAL # from Vintageous.vi.constants import MODE_VISUAL # from Vintageous.vi.constants import MODE_VISUAL_LINE from Vintageous.tests.commands import BufferTest from Vintageous.tests.commands i...
31.063337
93
0.569306
79695b49b721604f1beb3237bb289de4abfa2a2e
364
py
Python
exercicios-python/curso-python/ex089.py
PabloLanza/curso-python3
34cf44a2467fa239ba4019e085833002ad9b76a1
[ "MIT" ]
null
null
null
exercicios-python/curso-python/ex089.py
PabloLanza/curso-python3
34cf44a2467fa239ba4019e085833002ad9b76a1
[ "MIT" ]
null
null
null
exercicios-python/curso-python/ex089.py
PabloLanza/curso-python3
34cf44a2467fa239ba4019e085833002ad9b76a1
[ "MIT" ]
null
null
null
from time import sleep def maior(* lst): print('-=' * 30) print('ANALISANDO OS VALORES PASSADOS...') print(f'{lst} -- Foram informados {len(lst)} valores ao todo.') print(f'O maior valor informado foi {max(lst)}.') print('-=' * 30) sleep(0.5) maior(1, 2, 3, 4, 5, 6, 7) maior(70, 45, 20, 65) ...
22.75
67
0.585165
79695d43ebee527d44dc931111e85f0faaaff195
30,661
py
Python
modules/pymol/parser.py
telamonian/pymol
8192e75bf3d4c1072d6bd399b7dacd065bf78a06
[ "CNRI-Python" ]
1
2017-10-05T15:25:56.000Z
2017-10-05T15:25:56.000Z
modules/pymol/parser.py
telamonian/pymol
8192e75bf3d4c1072d6bd399b7dacd065bf78a06
[ "CNRI-Python" ]
null
null
null
modules/pymol/parser.py
telamonian/pymol
8192e75bf3d4c1072d6bd399b7dacd065bf78a06
[ "CNRI-Python" ]
null
null
null
#A* ------------------------------------------------------------------- #B* This file contains source code for the PyMOL computer program #C* Copyright (c) Schrodinger, LLC. #D* ------------------------------------------------------------------- #E* It is unlawful to modify or remove this copyright notice. #F* -------...
50.763245
122
0.362089
79695de5587e20e5ca967109a0b4ff54ad9d8a56
2,040
py
Python
python/python/tree_intersection/test_intersection.py
iggy18/data-structures-and-algorithms
700ef727ca7656724120a1873af4bd4bce5962f4
[ "MIT" ]
null
null
null
python/python/tree_intersection/test_intersection.py
iggy18/data-structures-and-algorithms
700ef727ca7656724120a1873af4bd4bce5962f4
[ "MIT" ]
null
null
null
python/python/tree_intersection/test_intersection.py
iggy18/data-structures-and-algorithms
700ef727ca7656724120a1873af4bd4bce5962f4
[ "MIT" ]
null
null
null
from tree import BinaryTree, Node from tree_intersection import tree_intersection import pytest from collections import Counter def test_node(): assert Node def test_binary_tree(): assert BinaryTree def test_tree_intersection(): assert tree_intersection def test_intersections_with_one(): x = BinaryT...
21.030928
47
0.568627
79696037cf9d2b08913a72ae91c6717d10403ff2
14,663
py
Python
survey/features/Batch-steps.py
ericazhou7/uSurvey
1236f33355662957e7e1e769dde1811b910673a5
[ "BSD-3-Clause" ]
5
2016-08-25T12:48:54.000Z
2018-08-16T22:49:43.000Z
survey/features/Batch-steps.py
ericazhou7/uSurvey
1236f33355662957e7e1e769dde1811b910673a5
[ "BSD-3-Clause" ]
2
2016-08-11T06:43:56.000Z
2016-12-08T09:11:36.000Z
survey/features/Batch-steps.py
ericazhou7/uSurvey
1236f33355662957e7e1e769dde1811b910673a5
[ "BSD-3-Clause" ]
7
2016-09-16T11:03:44.000Z
2020-10-28T22:01:20.000Z
from lettuce import * from rapidsms.contrib.locations.models import * from survey.features.page_objects.batches import AddBatchPage from survey.features.page_objects.batches import AssignQuestionToBatchPage from survey.features.page_objects.batches import BatchListPage from survey.features.page_objects.batches import ...
34.828979
91
0.762941
79696250663c93797d0c261fe1fef8461ec4522a
4,052
py
Python
ddosdb/website/settings-dev.py
ddos-clearing-house/ddosdb
bf65d4649cd07d8b097b9dade59860465b0f3634
[ "MIT" ]
6
2019-05-22T11:15:48.000Z
2021-10-02T06:06:53.000Z
ddosdb/website/settings-dev.py
ddos-clearing-house/ddosdb
bf65d4649cd07d8b097b9dade59860465b0f3634
[ "MIT" ]
13
2019-02-25T11:12:22.000Z
2022-01-08T18:16:25.000Z
ddosdb/website/settings-dev.py
ddos-clearing-house/ddosdb
bf65d4649cd07d8b097b9dade59860465b0f3634
[ "MIT" ]
3
2020-09-10T10:14:37.000Z
2022-01-18T19:23:38.000Z
""" Django settings for website project. Generated by 'django-admin startproject' using Django 2.0.5. For more information on this file, see https://docs.djangoproject.com/en/2.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.0/ref/settings/ """ import os im...
25.974359
119
0.67769
796963f05c7d579e1af66255e469f0e09a200dd5
2,647
py
Python
Scripts/size.py
maxmacgregor/OpenATC
31e7f9e33a43669d4656aaa619a399d94b1aaa1a
[ "MIT" ]
1
2016-06-20T16:17:31.000Z
2016-06-20T16:17:31.000Z
Scripts/size.py
maxmacgregor/OpenATC
31e7f9e33a43669d4656aaa619a399d94b1aaa1a
[ "MIT" ]
null
null
null
Scripts/size.py
maxmacgregor/OpenATC
31e7f9e33a43669d4656aaa619a399d94b1aaa1a
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import requests import re import timeit import json from multiprocessing.dummy import Pool as ThreadPool from bs4 import BeautifulSoup as bs from getconf import * size = '11' hasLink = True link = 'https://www.size.co.uk/product/grey-nike-flyknit-free-mercurial/030099/' accEmail = 'maxmacgregor1...
30.425287
115
0.627881
796964578a6b2917cd712088477deecf37832db3
2,372
py
Python
helpers/hp_tuning/epoch_gen.py
ArneRustad/Master-thesis-cf
23b993b2877ff1506896c4181c4151578091b602
[ "MIT" ]
null
null
null
helpers/hp_tuning/epoch_gen.py
ArneRustad/Master-thesis-cf
23b993b2877ff1506896c4181c4151578091b602
[ "MIT" ]
null
null
null
helpers/hp_tuning/epoch_gen.py
ArneRustad/Master-thesis-cf
23b993b2877ff1506896c4181c4151578091b602
[ "MIT" ]
null
null
null
def generate_multiple_datasets_for_multiple_epochs(tabGAN, dataset_dir, n_synthetic_datasets, n_epochs_vec, restart = False, path_finished_epochs_counter = None, redo_n_epochs_vec = [], plot_only_new_progress = True,...
67.771429
112
0.61425
796964590c8bca7ca3b9db674fa6f74fb3828c42
837
py
Python
core/admin.py
abhishekmorya/recipe-app-api
3a76449f2409731ebc33f5204c8a579c4cf69886
[ "MIT" ]
null
null
null
core/admin.py
abhishekmorya/recipe-app-api
3a76449f2409731ebc33f5204c8a579c4cf69886
[ "MIT" ]
null
null
null
core/admin.py
abhishekmorya/recipe-app-api
3a76449f2409731ebc33f5204c8a579c4cf69886
[ "MIT" ]
null
null
null
from django.contrib import admin from django.contrib.auth.admin import UserAdmin as BaseUserAdmin from django.utils.translation import gettext as _ from core import models class UserAdmin(BaseUserAdmin): ordering = ['id'] list_display = ['email', 'name'] fieldsets = ( (None, {'fields': ('email', ...
31
82
0.620072
796965bc030024a5691e96e50c0e79b44b38b64a
1,522
py
Python
setup.py
ellohfin/retro
58ec8f5b698e6140acd215717f051d99e407c4e5
[ "Apache-2.0" ]
null
null
null
setup.py
ellohfin/retro
58ec8f5b698e6140acd215717f051d99e407c4e5
[ "Apache-2.0" ]
null
null
null
setup.py
ellohfin/retro
58ec8f5b698e6140acd215717f051d99e407c4e5
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Installation script for the Retro project """ from __future__ import absolute_import from setuptools import setup, Extension, find_packages from Cython.Build import cythonize import numpy as np import versioneer EXT_MODULES = [ Extension( 'retro.tables.sphbin2cartbin', ...
22.716418
80
0.607096
796965e6f4f405429f44a486407ddb88115345d1
956
py
Python
numpy/f2py/tests/test_crackfortran.py
kishimoto-banana/numpy
9b7e890b014f6ad3b4288246f0565f7afd6eca84
[ "BSD-3-Clause" ]
1
2020-01-09T03:37:16.000Z
2020-01-09T03:37:16.000Z
numpy/f2py/tests/test_crackfortran.py
kishimoto-banana/numpy
9b7e890b014f6ad3b4288246f0565f7afd6eca84
[ "BSD-3-Clause" ]
null
null
null
numpy/f2py/tests/test_crackfortran.py
kishimoto-banana/numpy
9b7e890b014f6ad3b4288246f0565f7afd6eca84
[ "BSD-3-Clause" ]
null
null
null
import pytest import numpy as np from numpy.testing import assert_array_equal from . import util class TestNoSpace(util.F2PyTest): # issue gh-15035: add handling for endsubroutine, endfunction with no space # between "end" and the block name code = """ subroutine subb(k) real(8), intent...
25.157895
79
0.558577
796966929fa97d7ab9d3f62c4e87f7eeb6ad43ab
1,230
py
Python
modules/text/embedding/w2v_sogou_target_bigram-char_dim300/module.py
chunzhang-hub/PaddleHub
c5cfd021f77fd59340fb26e223e09a592e6a345f
[ "Apache-2.0" ]
8,360
2019-01-18T10:46:45.000Z
2022-03-31T14:50:02.000Z
modules/text/embedding/w2v_sogou_target_bigram-char_dim300/module.py
chunzhang-hub/PaddleHub
c5cfd021f77fd59340fb26e223e09a592e6a345f
[ "Apache-2.0" ]
1,158
2019-04-11T09:22:43.000Z
2022-03-31T12:12:09.000Z
modules/text/embedding/w2v_sogou_target_bigram-char_dim300/module.py
chunzhang-hub/PaddleHub
c5cfd021f77fd59340fb26e223e09a592e6a345f
[ "Apache-2.0" ]
1,677
2019-04-09T15:07:40.000Z
2022-03-31T06:41:10.000Z
# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
34.166667
92
0.743089
796966f6e5906213dec2a021de9d277665989b8c
8,995
py
Python
models/dqn.py
BIGBALLON/Hiphop-Gym
c05085c1650c4e2f4f72cfb7bde4fc2d6dc7cd33
[ "MIT" ]
null
null
null
models/dqn.py
BIGBALLON/Hiphop-Gym
c05085c1650c4e2f4f72cfb7bde4fc2d6dc7cd33
[ "MIT" ]
null
null
null
models/dqn.py
BIGBALLON/Hiphop-Gym
c05085c1650c4e2f4f72cfb7bde4fc2d6dc7cd33
[ "MIT" ]
null
null
null
import os import torch import torch.nn as nn import torch.optim as optim import torch.nn.functional as F import numpy as np from gym import logger from .utils import check_reward, plot_figure, weight_init from .utils import ReplayBuffer MEMORY_CAPACITY = 100000 INIT_REPLAY_SIZE = 50000 TARGET_UPDATE_ITER = 1000 BATCH_...
35.27451
106
0.571429
796968ad8aa1262404cb7223f2b1b3671cec23b5
2,383
py
Python
tests/test_apiv2_binary_linear.py
GreenAI-Uppa/deep_learning_mcmc
c3e31cd158fd6011fbc92eae5396db7575b39a92
[ "MIT" ]
null
null
null
tests/test_apiv2_binary_linear.py
GreenAI-Uppa/deep_learning_mcmc
c3e31cd158fd6011fbc92eae5396db7575b39a92
[ "MIT" ]
1
2021-06-17T15:09:02.000Z
2021-06-17T15:09:02.000Z
tests/test_apiv2_binary_linear.py
GreenAI-Uppa/deep_learning_mcmc
c3e31cd158fd6011fbc92eae5396db7575b39a92
[ "MIT" ]
null
null
null
import time, os from torchvision import datasets from torch.utils.data import DataLoader from torchvision.transforms import ToTensor import json import torch import numpy as np, math from deep_learning_mcmc import nets, optimizers, stats, selector training_data = datasets.CIFAR10(root="/home/paul/data/pytorch_cifar10...
39.065574
148
0.736467
796969a32d89e3d0023a7e685002361016aa17d0
934
py
Python
django_social_photostream/templatetags/instagram_photostream.py
softformance/django-social-photostream
0e9e4a2aca906961b1a75d82fbac998febcfad9a
[ "MIT" ]
null
null
null
django_social_photostream/templatetags/instagram_photostream.py
softformance/django-social-photostream
0e9e4a2aca906961b1a75d82fbac998febcfad9a
[ "MIT" ]
null
null
null
django_social_photostream/templatetags/instagram_photostream.py
softformance/django-social-photostream
0e9e4a2aca906961b1a75d82fbac998febcfad9a
[ "MIT" ]
null
null
null
import requests from django import template from django_social_photostream import app_settings from django.urls import reverse register = template.Library() URL_GRAB = app_settings.INSTAGRAM_BASE_URL + reverse('instagram-feed:get-posts') @register.inclusion_tag('django_social_photostream/social_photos.html', takes_co...
40.608696
106
0.731263
79696a5371a1649e4aa7e35406a6102896f679c0
26,492
py
Python
PyNite/Plate3D.py
AmirHosseinNamadchi/PyNite
8cc1fe3262e1efe029c6860394d2436601272e33
[ "MIT" ]
1
2021-03-19T12:02:40.000Z
2021-03-19T12:02:40.000Z
PyNite/Plate3D.py
AmirHosseinNamadchi/PyNite
8cc1fe3262e1efe029c6860394d2436601272e33
[ "MIT" ]
null
null
null
PyNite/Plate3D.py
AmirHosseinNamadchi/PyNite
8cc1fe3262e1efe029c6860394d2436601272e33
[ "MIT" ]
null
null
null
from numpy import zeros, delete, matrix, array, matmul, transpose, insert, cross, divide, add from numpy.linalg import inv, norm from PyNite.LoadCombo import LoadCombo # A rectangular plate bending element class Plate3D(): def __init__(self, Name, iNode, jNode, mNode, nNode, t, E, nu, LoadCombos=...
47.992754
452
0.42677
79696a81e268b9c61f09e6d6307593d9122f6284
24,226
py
Python
zulip_bots/zulip_bots/bots/chessbot/chessbot.py
klfoulk16/python-zulip-api
4d482e0ef30297f716885fd8246f4638a856ba3b
[ "Apache-2.0" ]
1
2021-05-12T02:55:42.000Z
2021-05-12T02:55:42.000Z
zulip_bots/zulip_bots/bots/chessbot/chessbot.py
klfoulk16/python-zulip-api
4d482e0ef30297f716885fd8246f4638a856ba3b
[ "Apache-2.0" ]
1
2021-03-24T12:01:21.000Z
2021-03-24T12:01:21.000Z
zulip_bots/zulip_bots/bots/chessbot/chessbot.py
klfoulk16/python-zulip-api
4d482e0ef30297f716885fd8246f4638a856ba3b
[ "Apache-2.0" ]
null
null
null
import chess import chess.uci import re import copy from typing import Any, Optional, Dict from zulip_bots.lib import BotHandler START_REGEX = re.compile('start with other user$') START_COMPUTER_REGEX = re.compile( 'start as (?P<user_color>white|black) with computer' ) MOVE_REGEX = re.compile('do (?P<move_san>.+)$...
32.431058
82
0.575167
79696b2a480439b918bde3ee5f83a973bdda8176
2,439
py
Python
dataloading.py
cptanalatriste/team-balloon-msr
24b76d022955d3e353cf36d2d4ddcc7242aa588b
[ "MIT" ]
1
2022-03-18T02:34:14.000Z
2022-03-18T02:34:14.000Z
dataloading.py
cptanalatriste/code-review-reciprocity
24b76d022955d3e353cf36d2d4ddcc7242aa588b
[ "MIT" ]
null
null
null
dataloading.py
cptanalatriste/code-review-reciprocity
24b76d022955d3e353cf36d2d4ddcc7242aa588b
[ "MIT" ]
null
null
null
import logging import traceback from datetime import datetime, timedelta import elasticsearch from elasticsearch import Elasticsearch from perceval.backends.core.github import GitHub, CATEGORY_PULL_REQUEST from config import GITHUB_API_TOKEN, ELASTICSEARCH_HOST def create_index(elastic_search: Elasticsearch, pull_r...
41.338983
116
0.710947
79696b81db45ed584f136b5dcabaf58bafdc45c6
6,810
py
Python
mythril/laser/ethereum/transaction/symbolic.py
rjx18/mythril
0325dbfd14ab7f442da6162989c3d40fdffea91f
[ "MIT" ]
null
null
null
mythril/laser/ethereum/transaction/symbolic.py
rjx18/mythril
0325dbfd14ab7f442da6162989c3d40fdffea91f
[ "MIT" ]
null
null
null
mythril/laser/ethereum/transaction/symbolic.py
rjx18/mythril
0325dbfd14ab7f442da6162989c3d40fdffea91f
[ "MIT" ]
null
null
null
"""This module contains functions setting up and executing transactions with symbolic values.""" import logging from typing import Optional from mythril.disassembler.disassembly import Disassembly from mythril.laser.ethereum.cfg import Node, Edge, JumpType from mythril.laser.ethereum.state.account import Account from ...
34.923077
118
0.675624
79696d73ddc1318cee70de23bcc36bfd6c1aa6ba
32,343
py
Python
skbio/alignment/tests/test_pairwise.py
squirrelo/scikit-bio
f9016283638ef49ffccb3bb5f79e5a421462cfd1
[ "BSD-3-Clause" ]
null
null
null
skbio/alignment/tests/test_pairwise.py
squirrelo/scikit-bio
f9016283638ef49ffccb3bb5f79e5a421462cfd1
[ "BSD-3-Clause" ]
null
null
null
skbio/alignment/tests/test_pairwise.py
squirrelo/scikit-bio
f9016283638ef49ffccb3bb5f79e5a421462cfd1
[ "BSD-3-Clause" ]
null
null
null
# ---------------------------------------------------------------------------- # Copyright (c) 2013--, scikit-bio development team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file COPYING.txt, distributed with this software. # --------------------------------------------...
46.670996
79
0.530408
79696e5eff4bddceb6b0ca448a26239a5a2f1315
1,743
py
Python
data/npcs.py
HansGR/WorldsCollide
af227be553e120ee004b130598360c61daf7df59
[ "MIT" ]
7
2022-01-15T02:53:53.000Z
2022-02-17T00:51:32.000Z
data/npcs.py
HansGR/WorldsCollide
af227be553e120ee004b130598360c61daf7df59
[ "MIT" ]
8
2022-01-16T02:45:24.000Z
2022-03-21T02:08:27.000Z
data/npcs.py
HansGR/WorldsCollide
af227be553e120ee004b130598360c61daf7df59
[ "MIT" ]
5
2022-01-15T02:53:38.000Z
2022-01-19T17:42:10.000Z
from data.npc import NPC class NPCs(): NPC_COUNT = 2192 DATA_START_ADDR = 0x041d52 def __init__(self, rom): self.rom = rom self.read() def read(self): self.npcs = [] for npc_index in range(self.NPC_COUNT): npc_data_start = self.DATA_START_ADDR + npc_index ...
31.125
161
0.620195
79696f565f3827fa9013d59e85bf1f9879cc07d5
213
py
Python
67-maior_menor_tupla.py
tainagirotto/exercicios-py
39107c05a0a8e5230cd48876ad8e1ad6f0a2ff59
[ "MIT" ]
null
null
null
67-maior_menor_tupla.py
tainagirotto/exercicios-py
39107c05a0a8e5230cd48876ad8e1ad6f0a2ff59
[ "MIT" ]
null
null
null
67-maior_menor_tupla.py
tainagirotto/exercicios-py
39107c05a0a8e5230cd48876ad8e1ad6f0a2ff59
[ "MIT" ]
null
null
null
from random import randint numeros = (randint(1,10), randint(1,10), randint(1,10), randint(1,10), randint(1,10)) print(numeros) print(f'O maior número é {max(numeros)}') print(f'O menor número é {min(numeros)}')
30.428571
85
0.704225
7969702327ddc355d4f7320e66cb914f098469bc
2,023
py
Python
.venv/lib/python2.7/site-packages/celery/worker/consumer/tasks.py
MansoorHanif/FYP-web-app
918008d3b5eedaa904f3e720296afde9d73ac3f4
[ "BSD-3-Clause" ]
4
2018-10-19T04:36:20.000Z
2020-02-13T16:14:09.000Z
.venv/lib/python2.7/site-packages/celery/worker/consumer/tasks.py
MansoorHanif/FYP-web-app
918008d3b5eedaa904f3e720296afde9d73ac3f4
[ "BSD-3-Clause" ]
3
2020-02-11T23:03:45.000Z
2021-06-10T18:05:11.000Z
oo/lib/python3.5/site-packages/celery/worker/consumer/tasks.py
chunky2808/SPOJ-history-Django-App
490c58b1593cd3626f0ddc27fdd09c6e8d1c56e1
[ "MIT" ]
1
2019-10-26T04:20:52.000Z
2019-10-26T04:20:52.000Z
"""Worker Task Consumer Bootstep.""" from __future__ import absolute_import, unicode_literals from kombu.common import QoS, ignore_errors from celery import bootsteps from celery.utils.log import get_logger from .mingle import Mingle __all__ = ['Tasks'] logger = get_logger(__name__) debug = logger.debug class Tasks(...
31.609375
76
0.635195
796970344bc665677e067d947d80ba69d182aeae
4,574
py
Python
testcases/unit/bar_test.py
ttymck/pyalgotrade
46eefe56b2a823eaf5e2fd822ba4815be60caa8d
[ "Apache-2.0" ]
3
2020-01-12T10:42:09.000Z
2021-02-24T14:58:23.000Z
testcases/unit/bar_test.py
ttymck/pyalgotrade
46eefe56b2a823eaf5e2fd822ba4815be60caa8d
[ "Apache-2.0" ]
14
2019-12-28T05:18:48.000Z
2020-04-16T03:03:43.000Z
testcases/unit/bar_test.py
ttymck/pyalgotrade
46eefe56b2a823eaf5e2fd822ba4815be60caa8d
[ "Apache-2.0" ]
1
2021-03-27T10:36:09.000Z
2021-03-27T10:36:09.000Z
# QuantWorks # # Copyright 2011-2018 Gabriel Martin Becedillas Ruiz # # 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 app...
42.351852
129
0.642326
796970e31eb71994916ba0ce443bf1b393d21fd1
1,814
py
Python
rllib/utils/memory.py
acmore/ray
9f0f54266064e203b0bdcc9d3fa947cb4518ebc0
[ "Apache-2.0" ]
78
2022-02-02T00:23:02.000Z
2022-03-15T11:44:02.000Z
rllib/utils/memory.py
acmore/ray
9f0f54266064e203b0bdcc9d3fa947cb4518ebc0
[ "Apache-2.0" ]
1
2020-06-23T07:54:44.000Z
2020-06-23T08:04:47.000Z
rllib/utils/memory.py
acmore/ray
9f0f54266064e203b0bdcc9d3fa947cb4518ebc0
[ "Apache-2.0" ]
3
2022-01-30T05:10:14.000Z
2022-03-04T21:18:44.000Z
import numpy as np def aligned_array(size, dtype, align=64): """Returns an array of a given size that is 64-byte aligned. The returned array can be efficiently copied into GPU memory by TensorFlow. """ n = size * dtype.itemsize empty = np.empty(n + (align - 1), dtype=np.uint8) data_align = e...
34.884615
79
0.644432
7969723e3f44e22a1fa0a635270af8292d6655f8
12,130
py
Python
cde-root/usr/lib64/python2.4/sre.py
NirBenTalLab/proorigami-cde-package
273379075830a9b94d3f2884661a54f853777ff6
[ "MIT" ]
33
2015-02-16T02:52:08.000Z
2022-02-18T08:46:32.000Z
cde-root/usr/lib64/python2.4/sre.py
NirBenTalLab/proorigami-cde-package
273379075830a9b94d3f2884661a54f853777ff6
[ "MIT" ]
1
2019-09-03T04:11:46.000Z
2019-09-03T04:11:46.000Z
cde-root/usr/lib64/python2.4/sre.py
NirBenTalLab/proorigami-cde-package
273379075830a9b94d3f2884661a54f853777ff6
[ "MIT" ]
31
2015-02-07T16:20:24.000Z
2022-02-23T15:02:43.000Z
# # Secret Labs' Regular Expression Engine # # re-compatible interface for the sre matching engine # # Copyright (c) 1998-2001 by Secret Labs AB. All rights reserved. # # This version of the SRE library can be redistributed under CNRI's # Python 1.6 license. For any other use, please contact Secret Labs # AB (info@py...
39.129032
78
0.655153
79697291b0b16cf8dbfd81477bf90ea314fb4631
19,456
py
Python
common/retrieveEndings.py
Temigo/yuarcuun-api
d28b45700f5a41d95373a4f95babfc16eea8e160
[ "MIT" ]
null
null
null
common/retrieveEndings.py
Temigo/yuarcuun-api
d28b45700f5a41d95373a4f95babfc16eea8e160
[ "MIT" ]
2
2018-10-11T06:03:16.000Z
2018-10-22T21:21:34.000Z
common/retrieveEndings.py
Temigo/yuarcuun-api
d28b45700f5a41d95373a4f95babfc16eea8e160
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import hfst import json from collections import defaultdict demonstrativeEndings = { "over there or going away":{ "extended":(["au͡g[DemPro]"], ["ava[DemAdv]"]), "restricted":(["ing[DemPro]"], ["yaa[DemAdv]"]), "obscured":(["am[DemPro]"], ["ama[DemAdv]"]), }, "acros...
26.32747
128
0.589741
796972d96f546ed2083440ce7579f6daaef71617
68,497
py
Python
mars/dataframe/base/tests/test_base_execution.py
timgates42/mars
bfa3a7d7d8f100b495581c8bab2143c8f261a7f1
[ "Apache-2.0" ]
null
null
null
mars/dataframe/base/tests/test_base_execution.py
timgates42/mars
bfa3a7d7d8f100b495581c8bab2143c8f261a7f1
[ "Apache-2.0" ]
null
null
null
mars/dataframe/base/tests/test_base_execution.py
timgates42/mars
bfa3a7d7d8f100b495581c8bab2143c8f261a7f1
[ "Apache-2.0" ]
null
null
null
# Copyright 1999-2020 Alibaba Group Holding Ltd. # # 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 a...
42.518312
118
0.577806
7969730d74cd557007ac950e82fce4fa0d27862a
906
py
Python
lab6_sln/text_recognizer/line_predictor.py
sergeyktest/fsdl-text-recognizer-project
0a35a2cb5b55cfcc1cde661b305c5c635272657c
[ "MIT" ]
44
2018-08-01T07:39:37.000Z
2021-10-31T10:11:54.000Z
lab6_sln/text_recognizer/line_predictor.py
sanzgiri/fsdl-text-recognizer-project
1bf7b8655f36149e3c1fcd7726be120d6b0e7b63
[ "MIT" ]
1
2018-08-03T19:38:09.000Z
2018-08-03T19:38:09.000Z
lab6_sln/text_recognizer/line_predictor.py
sanzgiri/fsdl-text-recognizer-project
1bf7b8655f36149e3c1fcd7726be120d6b0e7b63
[ "MIT" ]
182
2018-08-01T01:50:40.000Z
2022-03-25T19:45:36.000Z
from typing import Tuple, Union import numpy as np from text_recognizer.models import LineModelCtc from text_recognizer.datasets import EmnistLinesDataset ##### Hide lines below until Lab 5 from text_recognizer.datasets import IamLinesDataset ##### Hide lines above until Lab 5 import text_recognizer.util as util cl...
32.357143
86
0.729581
79697345483ba534ef67ad2b2a0311c35514dd68
9,363
py
Python
databuilder/models/metric_metadata.py
Gusto/amundsendatabuilder-1
d24cba9d51795f908c8325d847e020b3c949f34a
[ "Apache-2.0" ]
1
2020-08-20T16:22:07.000Z
2020-08-20T16:22:07.000Z
databuilder/models/metric_metadata.py
Gusto/amundsendatabuilder-1
d24cba9d51795f908c8325d847e020b3c949f34a
[ "Apache-2.0" ]
2
2020-07-20T16:03:49.000Z
2020-08-14T16:14:10.000Z
databuilder/models/metric_metadata.py
Gusto/amundsendatabuilder-1
d24cba9d51795f908c8325d847e020b3c949f34a
[ "Apache-2.0" ]
null
null
null
# Copyright Contributors to the Amundsen project. # SPDX-License-Identifier: Apache-2.0 from collections import namedtuple from typing import Iterable, Any, Union, Iterator, Dict, Set # noqa: F401 # TODO: We could separate TagMetadata from table_metadata to own module from databuilder.models.table_metadata import T...
39.842553
118
0.639645
7969737eb98bb9fa54d0b27a6372659fdb7869ec
1,961
py
Python
buggy/test/test_models.py
fusionbox/buggy
fb6f4a34f6896b65c843ebe711f5bf3279d33049
[ "BSD-3-Clause" ]
2
2017-05-08T23:11:41.000Z
2017-05-22T19:27:36.000Z
buggy/test/test_models.py
fusionbox/buggy
fb6f4a34f6896b65c843ebe711f5bf3279d33049
[ "BSD-3-Clause" ]
4
2017-05-03T17:46:47.000Z
2017-05-08T17:13:57.000Z
buggy/test/test_models.py
fusionbox/buggy
fb6f4a34f6896b65c843ebe711f5bf3279d33049
[ "BSD-3-Clause" ]
2
2017-05-22T19:28:21.000Z
2017-05-26T17:24:51.000Z
import pytest from django.contrib.auth import get_user_model from buggy.models import Bug, Comment from .fixtures import bug, user, project User = get_user_model() def test_get_by_number(bug): retrieved_bug = Bug.objects.get_by_number(bug.number) assert retrieved_bug == bug @pytest.mark.django_db def test...
27.619718
84
0.652218
7969739d8195358fc871679879f5f1301fd945e2
962
py
Python
bin/scraper.py
jxlil/linkedin-scraper
b631e7c673d129ec64f4d4e9f3a20fc8a687821a
[ "MIT" ]
null
null
null
bin/scraper.py
jxlil/linkedin-scraper
b631e7c673d129ec64f4d4e9f3a20fc8a687821a
[ "MIT" ]
null
null
null
bin/scraper.py
jxlil/linkedin-scraper
b631e7c673d129ec64f4d4e9f3a20fc8a687821a
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from argparse import ArgumentParser from os import path import sys import time try: sys.path.insert(0, path.abspath(path.join(path.dirname(__file__), ".."))) from scraper import __version__ from scraper import main except ModuleNotFoundError as e: print(f"[x] {e}") sys.exit...
26
84
0.62474
796974330e655465915b91844c7178cac816b356
505
py
Python
fetch/exchanges/bitstamp.py
sixify/sixify
6bc1c69114ed5e12cd3afda5786beeb53da35aeb
[ "MIT" ]
1
2016-02-27T19:32:46.000Z
2016-02-27T19:32:46.000Z
fetch/exchanges/bitstamp.py
sixify/sixify
6bc1c69114ed5e12cd3afda5786beeb53da35aeb
[ "MIT" ]
null
null
null
fetch/exchanges/bitstamp.py
sixify/sixify
6bc1c69114ed5e12cd3afda5786beeb53da35aeb
[ "MIT" ]
null
null
null
import logging from feed_grabber import FeedGrabber import api.bitstamp.client logger = logging.getLogger(__name__) class BitStampGrabber(FeedGrabber): def __init__(self, *args, **kwds): super(BitStampGrabber, self).__init__(*args, **kwds) self.api = api.bitstamp.client.Public() def get_pa...
25.25
60
0.675248
7969744820ac30be4067a8a27d64ca0f0e4adfa5
1,071
py
Python
ghostwriter/reporting/migrations/0009_auto_20200915_0011.py
bbhunter/Ghostwriter
1b684ddd119feed9891e83b39c9b314b41d086ca
[ "BSD-3-Clause" ]
601
2019-07-30T17:06:37.000Z
2022-03-31T00:55:31.000Z
ghostwriter/reporting/migrations/0009_auto_20200915_0011.py
chrismaddalena/Ghostwriter
5a938358450cd0e69a42883b1b18e067644744a8
[ "BSD-3-Clause" ]
150
2019-08-01T07:20:22.000Z
2022-03-29T19:18:02.000Z
ghostwriter/reporting/migrations/0009_auto_20200915_0011.py
chrismaddalena/Ghostwriter
5a938358450cd0e69a42883b1b18e067644744a8
[ "BSD-3-Clause" ]
126
2019-07-30T17:42:49.000Z
2022-03-21T20:43:35.000Z
# Generated by Django 2.2.3 on 2020-09-15 00:11 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('reporting', '0008_auto_20200825_1947'), ] operations = [ migrations.AddField( model_name='severity', name='color', ...
36.931034
197
0.638655
79697635a50f6d1b7c89338518d6dec2ebd6f265
3,434
py
Python
lib/python3.9/site-packages/requests/exceptions.py
HumbleSmarts/University-Management-System
5da07c4cf0e9c1d30ab76e4428f010757ffe876a
[ "MIT" ]
7
2022-03-10T07:03:14.000Z
2022-03-24T09:42:46.000Z
lib/python3.9/site-packages/requests/exceptions.py
HumbleSmarts/University-Management-System
5da07c4cf0e9c1d30ab76e4428f010757ffe876a
[ "MIT" ]
27
2022-02-24T11:53:35.000Z
2022-03-13T08:42:02.000Z
lib/python3.9/site-packages/requests/exceptions.py
HumbleSmarts/University-Management-System
5da07c4cf0e9c1d30ab76e4428f010757ffe876a
[ "MIT" ]
2
2021-06-11T19:25:11.000Z
2021-06-11T19:58:11.000Z
# -*- coding: utf-8 -*- """ requests.exceptions ~~~~~~~~~~~~~~~~~~~ This module contains the set of Requests' exceptions. """ from urllib3.exceptions import HTTPError as BaseHTTPError from .compat import JSONDecodeError as CompatJSONDecodeError class RequestException(IOError): """There was an ambiguous excepti...
25.626866
84
0.715492
7969769c36c0f45053ca59f8db4e910d146e9cdf
27,543
py
Python
lib/python3.4/site.py
LChristakis/chalice-hunter
6bffea4620e23ce9ff12ac30526ebafcb9c10058
[ "MIT" ]
168
2015-05-29T13:56:01.000Z
2022-02-17T07:38:17.000Z
lib/python3.4/site.py
LChristakis/chalice-hunter
6bffea4620e23ce9ff12ac30526ebafcb9c10058
[ "MIT" ]
309
2016-10-27T23:47:06.000Z
2017-04-02T04:40:21.000Z
lib/python2.7/site.py
anish03/weather-dash
d517fa9da9028d1fc5d8fd71d77cee829ddee87b
[ "MIT" ]
120
2016-08-18T14:53:03.000Z
2020-06-16T13:27:20.000Z
"""Append module search paths for third-party packages to sys.path. **************************************************************** * This module is automatically imported during initialization. * **************************************************************** In earlier versions of Python (up to 1.5a3), scripts or...
36.288538
117
0.584867
79697780e62189cf437c2a499d8f14353ac37465
2,817
py
Python
trader_watchdog.py
MrChens/hnsTradeMonitor
6b94541451853584af707929523d67e3a5d27425
[ "MIT" ]
null
null
null
trader_watchdog.py
MrChens/hnsTradeMonitor
6b94541451853584af707929523d67e3a5d27425
[ "MIT" ]
null
null
null
trader_watchdog.py
MrChens/hnsTradeMonitor
6b94541451853584af707929523d67e3a5d27425
[ "MIT" ]
null
null
null
#!/usr/bin/python import time from typing import Any import logging from watchdog.observers import Observer from watchdog.events import FileSystemEventHandler class DogHandler(FileSystemEventHandler): def __init__(self): print("Dog handler init") pass def on_modified(self, event): log...
25.151786
97
0.587149
796977c610653829d67b9dd9bd5549bc8d298470
7,476
py
Python
src/qimpy/electrons/_scf.py
shankar1729/qimpy
5a4c1ea1fedc88909d426ce54101d6d07fa82e8c
[ "BSD-3-Clause" ]
3
2021-05-25T00:11:50.000Z
2022-01-30T21:49:00.000Z
src/qimpy/electrons/_scf.py
shankar1729/qimpy
5a4c1ea1fedc88909d426ce54101d6d07fa82e8c
[ "BSD-3-Clause" ]
2
2021-09-28T19:18:38.000Z
2021-11-23T13:23:17.000Z
src/qimpy/electrons/_scf.py
shankar1729/qimpy
5a4c1ea1fedc88909d426ce54101d6d07fa82e8c
[ "BSD-3-Clause" ]
null
null
null
from __future__ import annotations import qimpy as qp import torch from typing import Optional, Sequence class SCF(qp.utils.Pulay[qp.grid.FieldH]): """Electronic self-consistent field iteration.""" __slots__ = ( "mix_fraction_mag", "q_kerker", "q_metric", "q_kappa", "n...
41.303867
85
0.629882
796978464ca7c1191bd391f68a37ebee11804d81
10,665
py
Python
sdk/python/pulumi_azure_native/sql/v20200202preview/elastic_pool.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/sql/v20200202preview/elastic_pool.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/sql/v20200202preview/elastic_pool.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 from...
44.810924
750
0.64632
796978b967fb3de57bfb6fe6ba2f947ab94a58b9
10,574
py
Python
tools/sapp/sapp/ui/tests/trace_test.py
jreese/pyre-check
9f71c27b1b4cfee518841c6e98cd52b006fa712f
[ "MIT" ]
null
null
null
tools/sapp/sapp/ui/tests/trace_test.py
jreese/pyre-check
9f71c27b1b4cfee518841c6e98cd52b006fa712f
[ "MIT" ]
null
null
null
tools/sapp/sapp/ui/tests/trace_test.py
jreese/pyre-check
9f71c27b1b4cfee518841c6e98cd52b006fa712f
[ "MIT" ]
1
2021-02-20T13:09:30.000Z
2021-02-20T13:09:30.000Z
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import unittest from typing import Any, Dict, List from unittest import TestCase from sqlalchemy.orm import Session from sqlalchemy.sql impor...
34.109677
87
0.529223
796978d1593e31edbd27c5be3e3a5c9d62392464
1,352
py
Python
java_testing/reformat_java.py
jfeser/earley
34739e8c1c559c8eba1e1d13a49e9b39aca0aa18
[ "MIT" ]
7
2018-07-20T13:31:46.000Z
2021-07-09T18:11:37.000Z
java_testing/reformat_java.py
jfeser/earley
34739e8c1c559c8eba1e1d13a49e9b39aca0aa18
[ "MIT" ]
null
null
null
java_testing/reformat_java.py
jfeser/earley
34739e8c1c559c8eba1e1d13a49e9b39aca0aa18
[ "MIT" ]
1
2019-10-29T13:33:54.000Z
2019-10-29T13:33:54.000Z
import random def process(grammar, rule, i=0, end=None): # Given a rule, adds auxiliary rules to the grammar to remove "[ { (" symbols. new_rule = [] while i < len(rule): symbol = rule[i] i += 1 if symbol == end: return (i, new_rule) if symbol == '{': i, subrule = process(grammar, rule, i, '}') ...
26
102
0.622781
79697a613b6fcd0d3ada9e71215579756c56861a
12,302
py
Python
test/functional/rpc_part_filtertransactions.py
bleach86/ghost-core
59824a5e00fbc500eeec28950999a05967bad608
[ "MIT" ]
null
null
null
test/functional/rpc_part_filtertransactions.py
bleach86/ghost-core
59824a5e00fbc500eeec28950999a05967bad608
[ "MIT" ]
null
null
null
test/functional/rpc_part_filtertransactions.py
bleach86/ghost-core
59824a5e00fbc500eeec28950999a05967bad608
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2017-2021 The Particl Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. from test_framework.test_particl import GhostTestFramework from test_framework.authproxy import JSONRPCEx...
33.796703
192
0.471549
79697a7b36e79b3a619a1dd9b0c9a82a1a02b02b
460
py
Python
docs/examples/compute/cloudwatt/create_node.py
rgharris/libcloud
90971e17bfd7b6bb97b2489986472c531cc8e140
[ "Apache-2.0" ]
null
null
null
docs/examples/compute/cloudwatt/create_node.py
rgharris/libcloud
90971e17bfd7b6bb97b2489986472c531cc8e140
[ "Apache-2.0" ]
1
2021-12-06T12:29:13.000Z
2021-12-06T12:29:13.000Z
docs/examples/compute/cloudwatt/create_node.py
rgharris/libcloud
90971e17bfd7b6bb97b2489986472c531cc8e140
[ "Apache-2.0" ]
1
2019-08-05T10:12:02.000Z
2019-08-05T10:12:02.000Z
from libcloud.compute.types import Provider from libcloud.compute.providers import get_driver Cloudwatt = get_driver(Provider.CLOUDWATT) driver = Cloudwatt( "your_email", "your_password", "your_tenant_id", tenant_name="your_tenant_name" ) image = [i for i in driver.list_images() if i.name == "Debian Wheezy"][0] si...
41.818182
83
0.75
79697b299a1c041ad7b21cc23ca796e38d2253e4
878
py
Python
oelint_adv/rule_base/rule_vars_bbclassextends.py
Rahix/oelint-adv
b9dc381b181a8bdc7300bb5070f80bf90950efbd
[ "BSD-2-Clause" ]
22
2019-06-10T00:40:07.000Z
2022-01-18T19:59:47.000Z
oelint_adv/rule_base/rule_vars_bbclassextends.py
Rahix/oelint-adv
b9dc381b181a8bdc7300bb5070f80bf90950efbd
[ "BSD-2-Clause" ]
274
2019-03-07T06:00:27.000Z
2022-03-27T10:22:10.000Z
oelint_adv/rule_base/rule_vars_bbclassextends.py
Rahix/oelint-adv
b9dc381b181a8bdc7300bb5070f80bf90950efbd
[ "BSD-2-Clause" ]
17
2019-08-24T23:04:39.000Z
2021-11-02T19:18:19.000Z
from oelint_parser.cls_item import Variable from oelint_adv.cls_rule import Rule class VarBbclassextend(Rule): def __init__(self): super().__init__(id="oelint.var.bbclassextend", severity="info", message="BBCLASSEXTEND should be set if possible") def ...
41.809524
114
0.624146
79697f9392dea5fcefa5e6cf9765c3ff47ea3ce4
14,667
py
Python
src/hardware_indep/controlplane.c.py
IcePhoenX/t4p4s
01203f4fd5dfd193f221131efa8648cccec4c8b6
[ "Apache-2.0" ]
2
2021-09-09T09:50:46.000Z
2022-03-02T12:24:33.000Z
src/hardware_indep/controlplane.c.py
IcePhoenX/t4p4s
01203f4fd5dfd193f221131efa8648cccec4c8b6
[ "Apache-2.0" ]
null
null
null
src/hardware_indep/controlplane.c.py
IcePhoenX/t4p4s
01203f4fd5dfd193f221131efa8648cccec4c8b6
[ "Apache-2.0" ]
1
2021-08-16T16:16:24.000Z
2021-08-16T16:16:24.000Z
# SPDX-License-Identifier: Apache-2.0 # Copyright 2016 Eotvos Lorand University, Budapest, Hungary from compiler_common import unique_everseen, generate_var_name, get_hdr_name, get_hdrfld_name from utils.codegen import format_expr, format_type, gen_format_slice import os #[ #include <unistd.h> #[ #include "dpdk_lib...
36.485075
213
0.597668
7969802be9997b68e9cb2f7e9b1c827c7a380a2e
12,187
py
Python
code/spectrogram_classifier.py
DeqingQu/AudioClassier
0d92aebe295bf94052455106ab946f6f029127b1
[ "MIT" ]
null
null
null
code/spectrogram_classifier.py
DeqingQu/AudioClassier
0d92aebe295bf94052455106ab946f6f029127b1
[ "MIT" ]
null
null
null
code/spectrogram_classifier.py
DeqingQu/AudioClassier
0d92aebe295bf94052455106ab946f6f029127b1
[ "MIT" ]
null
null
null
import tensorflow as tf import numpy as np import os # import matplotlib.pyplot as plt # from PIL import Image import time def get_files(filepath, train_ratio=0.8): train_files = [] train_labels = [] test_files = [] test_labels = [] foldernames = os.listdir(filepath) for folder in foldernames:...
41.172297
146
0.56708
796980a92004e35cc35dd6299494f315c628f6e8
2,950
py
Python
flaskcode/utils.py
imgroot1391/flaskcode
6d94d235fb2f4fbc557594664295c70de2c6a87e
[ "MIT" ]
null
null
null
flaskcode/utils.py
imgroot1391/flaskcode
6d94d235fb2f4fbc557594664295c70de2c6a87e
[ "MIT" ]
null
null
null
flaskcode/utils.py
imgroot1391/flaskcode
6d94d235fb2f4fbc557594664295c70de2c6a87e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import os import sys import shutil from io import StringIO from functools import wraps from flask import request, make_response PY2 = sys.version_info.major == 2 DEFAULT_CHUNK_SIZE = 16 * 1024 if PY2: string_types = basestring # pylint:disable=undefined-variable else: string_types = ...
33.146067
130
0.620339
796980c4a3b33c4b665bdf1e34bc151fb967689c
26,601
py
Python
src/commandhandler/node.py
xdustinface/SmartNodeMonitorBot
d8653b909fbbf1de8936f82adfc26d31d04c4099
[ "MIT" ]
9
2018-02-08T09:58:39.000Z
2018-09-24T15:44:58.000Z
src/commandhandler/node.py
xdustinface/SmartNodeMonitorBot
d8653b909fbbf1de8936f82adfc26d31d04c4099
[ "MIT" ]
1
2018-09-13T23:00:41.000Z
2018-09-13T23:00:41.000Z
src/commandhandler/node.py
xdustinface/SmartNodeMonitorBot
d8653b909fbbf1de8936f82adfc26d31d04c4099
[ "MIT" ]
8
2018-04-03T22:41:53.000Z
2021-05-28T23:07:17.000Z
## # Part of `SmartNodeMonitorBot` # # Copyright 2018 dustinface # # 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,...
33.629583
156
0.566934
796980d80059cea9aa742308743d5741ba78e23a
1,961
py
Python
portality/api/v1/crud/journals.py
glauberm/doaj
dc24dfcbf4a9f02ce5c9b09b611a5766ea5742f7
[ "Apache-2.0" ]
null
null
null
portality/api/v1/crud/journals.py
glauberm/doaj
dc24dfcbf4a9f02ce5c9b09b611a5766ea5742f7
[ "Apache-2.0" ]
null
null
null
portality/api/v1/crud/journals.py
glauberm/doaj
dc24dfcbf4a9f02ce5c9b09b611a5766ea5742f7
[ "Apache-2.0" ]
null
null
null
from portality import models from portality.api.v1.crud.common import CrudApi from portality.api.v1.data_objects.journal import OutgoingJournal from portality.api.v1 import Api401Error, Api404Error from copy import deepcopy class JournalsCrudApi(CrudApi): API_KEY_OPTIONAL = True SWAG_TAG = 'CRUD Journals' ...
35.017857
121
0.648649
796980dec8e3577e477ade3e695c9d5b5e5ad575
1,405
py
Python
glacier_flow_model/data/access.py
amrit-thapa-2044/glacier-flow-model
d66dc2f4f8071db8c2343fa276c2aa99efba18cd
[ "MIT" ]
10
2017-07-12T01:05:38.000Z
2021-07-08T14:17:14.000Z
glacier_flow_model/data/access.py
amrit-thapa-2044/glacier-flow-model
d66dc2f4f8071db8c2343fa276c2aa99efba18cd
[ "MIT" ]
6
2017-07-17T12:52:47.000Z
2020-10-18T00:27:34.000Z
glacier_flow_model/data/access.py
munterfinger/glacier-flow-model
a4d4fcda2bddd03c786d29e016d56388d7968477
[ "MIT" ]
6
2017-07-20T14:19:30.000Z
2021-05-31T10:15:08.000Z
from glacier_flow_model.base import Base from osgeo.gdal import Open, Dataset import importlib.resources as resources class PkgDataAccess(Base): """Package example data bindings.""" def __init__(self, verbose: bool = False) -> None: """ Initializes an instance of the PkgDataAccess c...
25.545455
80
0.535231
79698306418e5b1da23268b4253199e823d17828
361
py
Python
python/src/app/spellchecker.py
Kinnoo/cs404.1-1
0fd2e2fbf02953eb1b2192945ab4107034399a68
[ "MIT" ]
null
null
null
python/src/app/spellchecker.py
Kinnoo/cs404.1-1
0fd2e2fbf02953eb1b2192945ab4107034399a68
[ "MIT" ]
null
null
null
python/src/app/spellchecker.py
Kinnoo/cs404.1-1
0fd2e2fbf02953eb1b2192945ab4107034399a68
[ "MIT" ]
null
null
null
from string import ascii_lowercase from python.src.util.hashset import HashSet class SpellChecker: def __init__(self, words): self.words = words def is_correctly_spelled(self, word): # TODO: complete this function return False def get_suggestions(self, word): # TODO: co...
20.055556
43
0.67867
796983714de8e6138e20a91502779a9b15ccab2a
2,319
py
Python
task_specific_learned_opt/setup_experiment.py
shaun95/google-research
d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5
[ "Apache-2.0" ]
1
2022-03-13T21:48:52.000Z
2022-03-13T21:48:52.000Z
task_specific_learned_opt/setup_experiment.py
shaun95/google-research
d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5
[ "Apache-2.0" ]
null
null
null
task_specific_learned_opt/setup_experiment.py
shaun95/google-research
d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5
[ "Apache-2.0" ]
1
2022-03-30T07:20:29.000Z
2022-03-30T07:20:29.000Z
# coding=utf-8 # Copyright 2022 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
30.92
79
0.705908
796985265bc7924c27b9268efad775f8f1545a99
2,150
py
Python
src/oci/usage_api/models/schedule_report_collection.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
src/oci/usage_api/models/schedule_report_collection.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
src/oci/usage_api/models/schedule_report_collection.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
# coding: utf-8 # Copyright (c) 2016, 2022, 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...
30.28169
245
0.662791
79698571946e547cfe3e265cd677e0a8137ad5fc
313
py
Python
nest_py/core/jobs/jobs_logger.py
KnowEnG/platform
7356fabf5e2db4171ef1f910514436b69ecaa701
[ "MIT" ]
2
2020-02-12T22:20:51.000Z
2020-07-31T03:19:51.000Z
nest_py/core/jobs/jobs_logger.py
KnowEnG/platform
7356fabf5e2db4171ef1f910514436b69ecaa701
[ "MIT" ]
1
2021-06-02T00:29:02.000Z
2021-06-02T00:29:02.000Z
nest_py/core/jobs/jobs_logger.py
KnowEnG/platform
7356fabf5e2db4171ef1f910514436b69ecaa701
[ "MIT" ]
1
2018-01-03T22:56:27.000Z
2018-01-03T22:56:27.000Z
import sys import json def log(msg): #when bash commands are run, even in series, they outputs #will be mixed together unless we flush every time. sys.stdout.flush() sys.stderr.flush() print(msg) sys.stdout.flush() def pretty_print_jdata(jdata): log(json.dumps(jdata, indent=4))
22.357143
61
0.683706
796986c47f3fb46b28378c7bc0b1ed79d81e438b
35,239
py
Python
breveIDE_windows_2.7.2_2/breveIDE_2.7.2/demos/Swarm/SwarmEvolve-2.0.py
Lamouse/Evolutionary-Creativity
9e9a4094285241d0541e0b87a3bd2c5e4ba804d3
[ "MIT" ]
null
null
null
breveIDE_windows_2.7.2_2/breveIDE_2.7.2/demos/Swarm/SwarmEvolve-2.0.py
Lamouse/Evolutionary-Creativity
9e9a4094285241d0541e0b87a3bd2c5e4ba804d3
[ "MIT" ]
null
null
null
breveIDE_windows_2.7.2_2/breveIDE_2.7.2/demos/Swarm/SwarmEvolve-2.0.py
Lamouse/Evolutionary-Creativity
9e9a4094285241d0541e0b87a3bd2c5e4ba804d3
[ "MIT" ]
null
null
null
# Note: this file was automatically converted to Python from the # original steve-language source code. Please see the original # file for more detailed comments and documentation. import breve class Swarm( breve.Control ): def __init__( self ): breve.Control.__init__( self ) self.autoCameraMenu = None self...
29.003292
418
0.689009
796987415e34afbe426f5b971db5d16d9bd6e7c3
593
py
Python
acme/acme/magic_typing.py
luisriverag/certbot
52e207a404ab3600637fc7a24492e2c68512ce2d
[ "Apache-2.0" ]
null
null
null
acme/acme/magic_typing.py
luisriverag/certbot
52e207a404ab3600637fc7a24492e2c68512ce2d
[ "Apache-2.0" ]
null
null
null
acme/acme/magic_typing.py
luisriverag/certbot
52e207a404ab3600637fc7a24492e2c68512ce2d
[ "Apache-2.0" ]
2
2022-03-25T20:23:51.000Z
2022-03-25T21:05:15.000Z
"""Simple shim around the typing module. This was useful when this code supported Python 2 and typing wasn't always available. This code is being kept for now for backwards compatibility. """ import warnings from typing import * # pylint: disable=wildcard-import, unused-wildcard-import from typing import Collection,...
32.944444
89
0.745363
796989fde3646a9f967e8f4f781dd7d1ea87d709
2,867
py
Python
utils/io.py
Jeanselme/SklearnTS
bf2f284bf4f2b3440b0418e89957c488b4eb35ca
[ "MIT" ]
null
null
null
utils/io.py
Jeanselme/SklearnTS
bf2f284bf4f2b3440b0418e89957c488b4eb35ca
[ "MIT" ]
null
null
null
utils/io.py
Jeanselme/SklearnTS
bf2f284bf4f2b3440b0418e89957c488b4eb35ca
[ "MIT" ]
null
null
null
import os import pandas as pd from joblib import Parallel, delayed def readParallel(directory, processor, files = None, read_function = pd.read_csv, **args): """ Reads files located in the given directory in parallel Arguments: directory {str} -- Path where to read the data ...
52.127273
175
0.647018
79698a55044a129deec387a5969ad8374eca6edf
13,610
py
Python
test/jit/test_hooks.py
Glacier-program/pytorch
208b3d1029b465da89e04a95a6c02d1c7fee559b
[ "Intel" ]
null
null
null
test/jit/test_hooks.py
Glacier-program/pytorch
208b3d1029b465da89e04a95a6c02d1c7fee559b
[ "Intel" ]
null
null
null
test/jit/test_hooks.py
Glacier-program/pytorch
208b3d1029b465da89e04a95a6c02d1c7fee559b
[ "Intel" ]
null
null
null
import os import sys import unittest import torch from jit.test_hooks_modules import * # Make the helper files in test/ importable pytorch_test_dir = os.path.dirname(os.path.dirname(os.path.realpath(__file__))) sys.path.append(pytorch_test_dir) from torch.testing._internal.jit_utils import JitTestCase if __name__ ==...
36.983696
86
0.653637
79698b4a75ece70e5dfcd64b1288e8a1af590688
231
py
Python
gsadjust/plots/__init__.py
jkennedy-usgs/sgp-gsadjust
929d650674b942d33168bcdaae7da07db175a1c4
[ "CC0-1.0" ]
5
2019-01-08T13:51:23.000Z
2020-04-22T19:04:20.000Z
gsadjust/plots/__init__.py
jkennedy-usgs/sgp-gsadjust
929d650674b942d33168bcdaae7da07db175a1c4
[ "CC0-1.0" ]
113
2018-06-14T21:39:59.000Z
2022-01-21T19:34:12.000Z
gsadjust/plots/__init__.py
jkennedy-usgs/sgp-gsadjust
929d650674b942d33168bcdaae7da07db175a1c4
[ "CC0-1.0" ]
3
2021-01-26T07:10:42.000Z
2022-03-15T12:39:35.000Z
from .datum import PlotDatumCompare, PlotDatumComparisonTimeSeries from .gravity import PlotGravityChange from .loop import PlotLoopAnimation from .network import PlotNetworkGraph from .residual import PlotDgResidualHistogram
38.5
67
0.861472
79698ba2f6cccb98869e3c0df67507d1654a6cf9
9,536
py
Python
PythonSource/pythoncore/antlr4/atn/Transition.py
dean2191/JavaLove
fb0be1e829b7400aff50334f49bc4e9db7d6cb1a
[ "MIT" ]
1
2021-04-29T06:40:54.000Z
2021-04-29T06:40:54.000Z
src/antlr4/atn/Transition.py
arminnh/ba3-c-to-p-compiler
2c649e1d3643471bac681c2656c1c7d6249be4d7
[ "MIT" ]
2
2021-06-23T21:23:04.000Z
2021-06-23T21:23:11.000Z
src/antlr4/atn/Transition.py
arminnh/ba3-c-to-p-compiler
2c649e1d3643471bac681c2656c1c7d6249be4d7
[ "MIT" ]
1
2019-12-16T07:21:49.000Z
2019-12-16T07:21:49.000Z
# # [The "BSD license"] # Copyright (c) 2012 Terence Parr # Copyright (c) 2012 Sam Harwell # Copyright (c) 2014 Eric Vergnaud # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # 1. Redis...
33.815603
102
0.676909
79698c72e619fa48c42d91d41abab61e2a5902ee
8,095
py
Python
paddle/scripts/cluster_train/paddle.py
errord/Paddle
819fa2fbf1e49aa7ea5f1f2aedcadcc0acdf067f
[ "Apache-2.0" ]
1
2016-10-23T09:31:38.000Z
2016-10-23T09:31:38.000Z
paddle/scripts/cluster_train/paddle.py
adnywei/Paddle
e1f57bfd66245f78d04f47d670cba5592d5734b2
[ "Apache-2.0" ]
3
2016-10-22T16:06:11.000Z
2016-11-07T06:30:37.000Z
paddle/scripts/cluster_train/paddle.py
adnywei/Paddle
e1f57bfd66245f78d04f47d670cba5592d5734b2
[ "Apache-2.0" ]
1
2022-02-15T10:34:41.000Z
2022-02-15T10:34:41.000Z
#!/usr/bin/python # Copyright (c) 2016 Baidu, 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 required b...
33.589212
82
0.592217
79698d948d064c6e5d2cf0d92d919504bb5225c7
1,611
py
Python
classes/sph0/genp.py
rboman/progs
c60b4e0487d01ccd007bcba79d1548ebe1685655
[ "Apache-2.0" ]
2
2021-12-12T13:26:06.000Z
2022-03-03T16:14:53.000Z
classes/sph0/genp.py
rboman/progs
c60b4e0487d01ccd007bcba79d1548ebe1685655
[ "Apache-2.0" ]
5
2019-03-01T07:08:46.000Z
2019-04-28T07:32:42.000Z
classes/sph0/genp.py
rboman/progs
c60b4e0487d01ccd007bcba79d1548ebe1685655
[ "Apache-2.0" ]
2
2017-12-13T13:13:52.000Z
2019-03-13T20:08:15.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # Copyright 2020 University of Liège # # 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 # # ...
30.980769
105
0.545624
79698e9965ab0908c174bb2255949e76b1d411fd
4,819
py
Python
causalnlp/_nbdev.py
vishalbelsare/causalnlp
c21406f3ca40fd951e52e777d923c4331b2d46d1
[ "Apache-2.0" ]
66
2021-05-30T08:15:39.000Z
2022-02-03T11:29:50.000Z
causalnlp/_nbdev.py
vishalbelsare/causalnlp
c21406f3ca40fd951e52e777d923c4331b2d46d1
[ "Apache-2.0" ]
1
2021-10-20T04:51:27.000Z
2021-10-20T04:51:27.000Z
causalnlp/_nbdev.py
vishalbelsare/causalnlp
c21406f3ca40fd951e52e777d923c4331b2d46d1
[ "Apache-2.0" ]
4
2021-08-24T14:24:03.000Z
2022-01-23T03:41:40.000Z
# AUTOGENERATED BY NBDEV! DO NOT EDIT! __all__ = ["index", "modules", "custom_doc_links", "git_url"] index = {"CausalInferenceModel": "00a_core.causalinference.ipynb", "metalearner_cls_dict": "00a_core.causalinference.ipynb", "metalearner_reg_dict": "00a_core.causalinference.ipynb", "platt_...
47.245098
74
0.641627
79698ea4136cafffeeb85ce67287255c002fd3c8
5,610
py
Python
homeassistant/components/philips_js/__init__.py
DoctorU/core
5b218d7e1c4164e32d41473977459cbaf23adf42
[ "Apache-2.0" ]
1
2021-10-01T10:38:31.000Z
2021-10-01T10:38:31.000Z
homeassistant/components/philips_js/__init__.py
DoctorU/core
5b218d7e1c4164e32d41473977459cbaf23adf42
[ "Apache-2.0" ]
66
2020-10-15T06:45:11.000Z
2022-03-30T23:05:28.000Z
homeassistant/components/philips_js/__init__.py
DoctorU/core
5b218d7e1c4164e32d41473977459cbaf23adf42
[ "Apache-2.0" ]
1
2022-02-01T13:19:32.000Z
2022-02-01T13:19:32.000Z
"""The Philips TV integration.""" from __future__ import annotations import asyncio from collections.abc import Callable from datetime import timedelta import logging from typing import Any from haphilipsjs import ConnectionFailure, PhilipsTV from homeassistant.components.automation import AutomationActionType from ...
30.48913
92
0.663102
79698fdbf89a77da79ae19d4f8c1d1d6b9df78b8
50,746
py
Python
tencentcloud/tci/v20190318/tci_client.py
snowxmas/tencentcloud-sdk-python
fb527dcfc6b52a210e79d581f85cb8cde1ea9c85
[ "Apache-2.0" ]
46
2019-03-01T02:19:18.000Z
2021-12-18T12:37:02.000Z
tencentcloud/tci/v20190318/tci_client.py
snowxmas/tencentcloud-sdk-python
fb527dcfc6b52a210e79d581f85cb8cde1ea9c85
[ "Apache-2.0" ]
8
2019-01-22T10:46:43.000Z
2020-12-30T13:03:04.000Z
tencentcloud/tci/v20190318/tci_client.py
snowxmas/tencentcloud-sdk-python
fb527dcfc6b52a210e79d581f85cb8cde1ea9c85
[ "Apache-2.0" ]
67
2018-10-29T09:50:49.000Z
2022-01-06T07:35:56.000Z
# -*- coding: utf8 -*- # Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. 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...
41.561016
170
0.596008
7969908a39ef3deca221bb2c845922e531c7296e
855
py
Python
crx-appengine-packager/pyasn1/codec/der/encoder.py
kurrik/chrome-extensions
ec51754fb5526356e60780b9f0bafdde7c282bca
[ "BSD-3-Clause" ]
26
2015-02-08T20:45:51.000Z
2021-04-08T00:07:56.000Z
crx-appengine-packager/pyasn1/codec/der/encoder.py
wwwwodddd/chrome-extensions
ec51754fb5526356e60780b9f0bafdde7c282bca
[ "BSD-3-Clause" ]
null
null
null
crx-appengine-packager/pyasn1/codec/der/encoder.py
wwwwodddd/chrome-extensions
ec51754fb5526356e60780b9f0bafdde7c282bca
[ "BSD-3-Clause" ]
9
2015-09-02T12:20:18.000Z
2021-10-05T16:03:10.000Z
# DER encoder from pyasn1.type import univ from pyasn1.codec.cer import encoder class SetOfEncoder(encoder.SetOfEncoder): def _cmpSetComponents(self, c1, c2): return cmp( getattr(c1, 'getEffectiveTagSet', c1.getTagSet)(), getattr(c2, 'getEffectiveTagSet', c2.getTagSet)() ...
32.884615
76
0.695906
79699090fa907fc620c9431992dd63ed7291ec34
435
py
Python
img_slider.py
bryanee23/flask-site
ae670032c51e8572d270f542a72655b67a41a667
[ "MIT" ]
null
null
null
img_slider.py
bryanee23/flask-site
ae670032c51e8572d270f542a72655b67a41a667
[ "MIT" ]
null
null
null
img_slider.py
bryanee23/flask-site
ae670032c51e8572d270f542a72655b67a41a667
[ "MIT" ]
null
null
null
import os from directory import MATCHES_DIR match_list = os.listdir(MATCHES_DIR) index = 0 def image_slider(n): global index len_list = len(match_list)-1 if index == len_list and n == 1: index = 0 elif index >= 0 and n == 1: index += n if index <= 0 and n == -1: index = len_list elif index...
17.4
37
0.611494
7969916ff96d997fe927cae125e2c759801fd8a4
13,340
py
Python
Lib/email/Generator.py
deadsnakes/python2.4
f493d5415b662e99a73d017bcafe2148c5bc8fb5
[ "PSF-2.0" ]
33
2015-02-16T02:52:08.000Z
2022-02-18T08:46:32.000Z
lib/IPCE/Lib/email/Generator.py
bensku/MultiversePlatform
7e1aad33d48b9e47f3db2ca638cb57592336ddb7
[ "MIT" ]
1
2017-09-09T18:50:23.000Z
2020-12-29T18:13:56.000Z
lib/IPCE/Lib/email/Generator.py
bensku/MultiversePlatform
7e1aad33d48b9e47f3db2ca638cb57592336ddb7
[ "MIT" ]
31
2015-02-07T16:20:24.000Z
2022-02-23T15:02:43.000Z
# Copyright (C) 2001-2006 Python Software Foundation # Author: Barry Warsaw # Contact: email-sig@python.org """Classes to generate plain text from a message object tree.""" import re import sys import time import random import warnings from cStringIO import StringIO from email.Header import Header UNDERSCORE = '_' ...
37.790368
78
0.592054
79699229710dad638ab93526810521cd112ac683
1,325
py
Python
1.Simple Linear Regression/2.Linear-Regr_SalaryVSYear_OF_Exprnce/salary_linear_regression.py
OkomoJacob/MLAIDS
5f9d3394fede8fd8625577b44844f2626b205844
[ "MIT" ]
null
null
null
1.Simple Linear Regression/2.Linear-Regr_SalaryVSYear_OF_Exprnce/salary_linear_regression.py
OkomoJacob/MLAIDS
5f9d3394fede8fd8625577b44844f2626b205844
[ "MIT" ]
null
null
null
1.Simple Linear Regression/2.Linear-Regr_SalaryVSYear_OF_Exprnce/salary_linear_regression.py
OkomoJacob/MLAIDS
5f9d3394fede8fd8625577b44844f2626b205844
[ "MIT" ]
null
null
null
# Simple Linear Regression # Importing the libraries from sklearn.linear_model import LinearRegression import numpy as np import matplotlib.pyplot as plt import pandas as pd # Importing the dataset dataset = pd.read_csv('Salary_Data.csv') X = dataset.iloc[:, :-1].values y = dataset.iloc[:, 1].values # Splitting the d...
31.547619
92
0.77283
796992b6af7dcd9506b1bc67b9481184578eb53b
1,068
py
Python
carga_usuarios.py
robzoros/tienda_online
86fa8533f068559e845f867330ad2ba24a2d3601
[ "MIT" ]
null
null
null
carga_usuarios.py
robzoros/tienda_online
86fa8533f068559e845f867330ad2ba24a2d3601
[ "MIT" ]
null
null
null
carga_usuarios.py
robzoros/tienda_online
86fa8533f068559e845f867330ad2ba24a2d3601
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from utiles import (random_date, start, end) import random from string import (ascii_lowercase, ascii_uppercase) from cassandra.cluster import Cluster # Conectamos al Cluster cluster = Cluster() session = cluster.connect('tienda_online') session.execute("TRUNCATE usuarios...
46.434783
133
0.702247
7969931e80cdec41a86d726d765e9a5898485ba0
51,954
py
Python
tensorflow/python/ipu/ipu_estimator.py
pierricklee/tensorflow
c6a61d7b19a9242b06f40120ab42f0fdb0b5c462
[ "Apache-2.0" ]
null
null
null
tensorflow/python/ipu/ipu_estimator.py
pierricklee/tensorflow
c6a61d7b19a9242b06f40120ab42f0fdb0b5c462
[ "Apache-2.0" ]
null
null
null
tensorflow/python/ipu/ipu_estimator.py
pierricklee/tensorflow
c6a61d7b19a9242b06f40120ab42f0fdb0b5c462
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 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...
41.5632
113
0.691034
79699401f2948f4c31a9d30f2c783e943ff132c4
316
py
Python
mods/imports.py
hirusha-adi/UnSillyRAT
819cc02d3f357a206f6253637ba92f55727ad30d
[ "MIT" ]
null
null
null
mods/imports.py
hirusha-adi/UnSillyRAT
819cc02d3f357a206f6253637ba92f55727ad30d
[ "MIT" ]
null
null
null
mods/imports.py
hirusha-adi/UnSillyRAT
819cc02d3f357a206f6253637ba92f55727ad30d
[ "MIT" ]
null
null
null
import base64 import io import os import platform import shlex import shutil import signal import socket import subprocess import sys import threading import time from datetime import datetime import ifaddr import psutil import pyscreenshot import requests import tabulate from pynput.keyboard import Key, Listener
15.047619
41
0.85443
7969946627b99d4dece3a9efa2742dc854514f15
669
py
Python
samples/notebooks/M-Admin/extra_user_apps/apps/codeserver_proxy/getcreds.py
dgraeber/aws-orbit-workbench
a277f8cc799ce195765e3975c7f16336bafac1f2
[ "Apache-2.0" ]
null
null
null
samples/notebooks/M-Admin/extra_user_apps/apps/codeserver_proxy/getcreds.py
dgraeber/aws-orbit-workbench
a277f8cc799ce195765e3975c7f16336bafac1f2
[ "Apache-2.0" ]
null
null
null
samples/notebooks/M-Admin/extra_user_apps/apps/codeserver_proxy/getcreds.py
dgraeber/aws-orbit-workbench
a277f8cc799ce195765e3975c7f16336bafac1f2
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import boto3, json, os, fnmatch aws_dir = '/home/jovyan/.aws/' cache_dir=aws_dir +'cli/cache' creds= aws_dir+'credentials' fN = None os.system ("aws s3 ls") for file in os.listdir(cache_dir): if fnmatch.fnmatch(file, '*.json'): fN = file break with open(cache_dir+"/"+fN) ...
23.892857
74
0.632287