hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
⌀
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
⌀
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
⌀
max_issues_repo_path
stringlengths
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
⌀
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
⌀
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
⌀
max_forks_repo_path
stringlengths
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
⌀
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
⌀
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
⌀
content
stringlengths
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
35d49201da8c83491d1bfcceec38311b1770e4bf
8,233
py
Python
tests/models/test_models.py
nastiag67/tools
9989c98acd67ff8fda900d0a2ae3a6d21e2bbd88
[ "MIT" ]
1
2020-12-20T14:58:35.000Z
2020-12-20T14:58:35.000Z
tests/models/test_models.py
nastiag67/tools
9989c98acd67ff8fda900d0a2ae3a6d21e2bbd88
[ "MIT" ]
5
2021-07-13T15:10:39.000Z
2021-07-26T14:44:21.000Z
tests/models/test_models.py
nastiag67/tools
9989c98acd67ff8fda900d0a2ae3a6d21e2bbd88
[ "MIT" ]
null
null
null
"""Tests for `models` module.""" import pytest import pandas as pd from sklearn.linear_model import LogisticRegression from sklearn.neural_network import MLPClassifier from sklearn.preprocessing import StandardScaler from sklearn.datasets import make_classification from pipelitools.models import models as m @pyt...
35.034043
108
0.556176
d9d53cfbee58dd52911a47799a4b931f734bca38
4,961
py
Python
main_pipe.py
dn-ra/RecurM
2ba1c119b62a013a4cef5259e192df276d548945
[ "MIT" ]
1
2020-04-28T05:41:46.000Z
2020-04-28T05:41:46.000Z
main_pipe.py
dn-ra/RecurM
2ba1c119b62a013a4cef5259e192df276d548945
[ "MIT" ]
6
2020-04-23T03:11:43.000Z
2020-04-28T04:43:19.000Z
main_pipe.py
dn-ra/RecurM
2ba1c119b62a013a4cef5259e192df276d548945
[ "MIT" ]
6
2020-03-27T02:55:49.000Z
2021-06-24T00:31:48.000Z
# -*- coding: utf-8 -*- """ For use in RepeatM. See: github.com/wwood/RepeatM Main pipeline for Nucmer_Matching from .delta files to cluster generation author: Daniel Rawlinson, ACE email: daniel.rawlinson@uqconnect.edu.au """ #TODO - implement cluster graphing into pipe # - make as actual name = main python script...
30.435583
145
0.646241
f9b701b1eded389eea2e949e9390363dbcb6996e
21,063
py
Python
nikola/plugins/command/check.py
nemodicto/nikola
2643657148219a2a81b1d34f1ee357cd7cb2ac8d
[ "MIT" ]
null
null
null
nikola/plugins/command/check.py
nemodicto/nikola
2643657148219a2a81b1d34f1ee357cd7cb2ac8d
[ "MIT" ]
null
null
null
nikola/plugins/command/check.py
nemodicto/nikola
2643657148219a2a81b1d34f1ee357cd7cb2ac8d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright © 2012-2022 Roberto Alsina and others. # 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 t...
46.190789
191
0.562123
bd74d680f8861da524c49e6a7512aa1d0cfc420f
298
py
Python
test_app.py
satya200/meta-ds
f2576b77ebeb687ad44892b74b944365f8bdfb47
[ "MIT" ]
null
null
null
test_app.py
satya200/meta-ds
f2576b77ebeb687ad44892b74b944365f8bdfb47
[ "MIT" ]
7
2018-12-04T18:38:01.000Z
2019-02-18T20:46:28.000Z
test_app.py
satya200/meta-ds
f2576b77ebeb687ad44892b74b944365f8bdfb47
[ "MIT" ]
null
null
null
from ctypes import CDLL struct data { int data; }; struct stack_user { size_t stack_size; int stack_idx; struct data *data; //struct stack_operation sop; }; struct stack_user user slibc = './libDataStructure.so' hlibc = CDLL(slibc) iret = print iret
14.190476
37
0.634228
69a12e1c61a4e80a43d8e29dee7d633894c2a2df
156
py
Python
Source/webrequest.py
Mytherin/twitch-alfred-workflow
f03c9141de711b24b7ed9c58b063323e950d0c8d
[ "MIT" ]
1
2019-07-25T04:57:13.000Z
2019-07-25T04:57:13.000Z
Source/webrequest.py
Mytherin/twitch-alfred-workflow
f03c9141de711b24b7ed9c58b063323e950d0c8d
[ "MIT" ]
null
null
null
Source/webrequest.py
Mytherin/twitch-alfred-workflow
f03c9141de711b24b7ed9c58b063323e950d0c8d
[ "MIT" ]
1
2019-07-26T04:46:38.000Z
2019-07-26T04:46:38.000Z
import urllib2 def get_url(url): if url == None: return "{}" url = url.replace(" ", "+") response = urllib2.urlopen(url) return str(response.read())
15.6
32
0.641026
5890b69c7b0ae54402065c0b46fb5978e5fe43d2
18,245
py
Python
crabageprediction/venv/Lib/site-packages/pandas/tests/extension/test_sparse.py
13rianlucero/CrabAgePrediction
92bc7fbe1040f49e820473e33cc3902a5a7177c7
[ "MIT" ]
3
2021-11-23T05:35:28.000Z
2022-02-10T08:05:53.000Z
crabageprediction/venv/Lib/site-packages/pandas/tests/extension/test_sparse.py
13rianlucero/CrabAgePrediction
92bc7fbe1040f49e820473e33cc3902a5a7177c7
[ "MIT" ]
5
2022-02-13T14:38:04.000Z
2022-02-15T00:13:07.000Z
crabageprediction/venv/Lib/site-packages/pandas/tests/extension/test_sparse.py
13rianlucero/CrabAgePrediction
92bc7fbe1040f49e820473e33cc3902a5a7177c7
[ "MIT" ]
4
2022-02-04T22:58:27.000Z
2022-02-14T19:29:18.000Z
""" This file contains a minimal set of tests for compliance with the extension array interface test suite, and should contain no other tests. The test suite for the full functionality of the array is located in `pandas/tests/arrays/`. The tests in this file are inherited from the BaseExtensionTests, and only minimal ...
35.496109
88
0.667087
ce72360fd348fbe0e7a9753155ba0c89b637fd0a
1,024
py
Python
platformio/commands/test/helpers.py
Granjow/platformio-core
71ae579bc07b2e11fec16acda482dea04bc3a359
[ "Apache-2.0" ]
4,744
2016-11-28T14:37:47.000Z
2022-03-31T12:35:56.000Z
platformio/commands/test/helpers.py
Granjow/platformio-core
71ae579bc07b2e11fec16acda482dea04bc3a359
[ "Apache-2.0" ]
3,424
2016-11-27T22:45:41.000Z
2022-03-31T21:40:03.000Z
platformio/commands/test/helpers.py
Granjow/platformio-core
71ae579bc07b2e11fec16acda482dea04bc3a359
[ "Apache-2.0" ]
576
2016-12-01T18:48:22.000Z
2022-03-30T02:27:35.000Z
# Copyright (c) 2014-present PlatformIO <contact@platformio.org> # # 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...
33.032258
74
0.71875
6b9a491b463a87f4400b35ac47845f98a695fc21
5,518
py
Python
test/integration/test_nested.py
jimporter/mopack
e912be11528645f5463e7873b5470c420b698418
[ "BSD-3-Clause" ]
null
null
null
test/integration/test_nested.py
jimporter/mopack
e912be11528645f5463e7873b5470c420b698418
[ "BSD-3-Clause" ]
17
2020-07-23T20:28:36.000Z
2022-03-04T04:33:55.000Z
test/integration/test_nested.py
jimporter/mopack
e912be11528645f5463e7873b5470c420b698418
[ "BSD-3-Clause" ]
1
2020-11-04T03:51:20.000Z
2020-11-04T03:51:20.000Z
import json import os import sys from textwrap import dedent from mopack.path import pushd from mopack.platforms import platform_name from . import * class TestNested(IntegrationTest): name = 'nested' deploy = True def setUp(self): super().setUp() try: '┼'.encode(sys.stdout....
38.055172
77
0.522109
82fadc35dd22827c055b1870524b484a720c757e
28,712
py
Python
tests/helpers/test_device_registry.py
domwillcode/home-assistant
f170c80bea70c939c098b5c88320a1c789858958
[ "Apache-2.0" ]
6
2020-07-18T16:33:25.000Z
2021-09-26T09:52:04.000Z
tests/helpers/test_device_registry.py
domwillcode/home-assistant
f170c80bea70c939c098b5c88320a1c789858958
[ "Apache-2.0" ]
38
2020-07-23T07:14:08.000Z
2022-03-31T06:01:46.000Z
tests/helpers/test_device_registry.py
domwillcode/home-assistant
f170c80bea70c939c098b5c88320a1c789858958
[ "Apache-2.0" ]
5
2020-03-29T00:29:13.000Z
2021-09-06T20:58:40.000Z
"""Tests for the Device Registry.""" import asyncio import pytest from homeassistant.const import EVENT_HOMEASSISTANT_STARTED from homeassistant.core import CoreState, callback from homeassistant.helpers import device_registry, entity_registry from tests.async_mock import patch from tests.common import MockConfigEnt...
34.718259
87
0.650808
e9d7f8b755c0e5a9d9128cfb6104cf96a16f6191
921
py
Python
sped_correcao/_old/rule05.py
teocrono/scripts
2970192e3184c9e1d3dd67390e544d767b809c23
[ "MIT" ]
null
null
null
sped_correcao/_old/rule05.py
teocrono/scripts
2970192e3184c9e1d3dd67390e544d767b809c23
[ "MIT" ]
null
null
null
sped_correcao/_old/rule05.py
teocrono/scripts
2970192e3184c9e1d3dd67390e544d767b809c23
[ "MIT" ]
null
null
null
## arruma D101 e D105 ## ## def exec(conexao): cursor = conexao.cursor() print("RULE 05 - Inicializando",end=' ') update = " update principal set " update = update + " r4 = \"50\", " update = update + " r7 = \"1,6500\", " update = update + " r8 = REPLACE(CAST( ROUND((CAST(replace(r3,',',...
30.7
123
0.517915
b289f872653fe2efc27c7739ab4e47d3e697df14
3,612
py
Python
posda/posdatools/Posda/bin/PathologyScheduleSVSReview.py
UAMS-DBMI/PosdaTools
7d33605da1b88e4787a1368dbecaffda1df95e5b
[ "Apache-2.0" ]
6
2019-01-17T15:47:44.000Z
2022-02-02T16:47:25.000Z
posda/posdatools/Posda/bin/PathologyScheduleSVSReview.py
UAMS-DBMI/PosdaTools
7d33605da1b88e4787a1368dbecaffda1df95e5b
[ "Apache-2.0" ]
23
2016-06-08T21:51:36.000Z
2022-03-02T08:11:44.000Z
posda/posdatools/Posda/bin/PathologyScheduleSVSReview.py
UAMS-DBMI/PosdaTools
7d33605da1b88e4787a1368dbecaffda1df95e5b
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import argparse import csv import sys import os from tifffile import TiffFile from PIL import Image, ImageFile from posda.database import Database from posda.queries import Query from posda.background.process import BackgroundProcess from posda.main.file import insert_file Image.MAX_IMAGE_PIXEL...
41.045455
125
0.615725
7a2e0f1d4186d0f2201505e4139c296b63a3cae0
2,351
py
Python
clase 7/app/__init__.py
JoselynRuiz/Programacion-III
9c09378e1e933372d0dfba2d2261f04c5aee86b3
[ "MIT" ]
null
null
null
clase 7/app/__init__.py
JoselynRuiz/Programacion-III
9c09378e1e933372d0dfba2d2261f04c5aee86b3
[ "MIT" ]
null
null
null
clase 7/app/__init__.py
JoselynRuiz/Programacion-III
9c09378e1e933372d0dfba2d2261f04c5aee86b3
[ "MIT" ]
null
null
null
from model.Participante import Participante #se importo la lista participante import re if __name__ == "__main__": listsParticipantes = [] while(True): print("\n\nASISTENCIA EVENTO") print("1. Ingresar participante") print("2. Ver estadisiticas") print("3. Ver todos los particip...
33.585714
109
0.455125
94d264594f922acf23608c09537c3ebf5542e64f
3,910
py
Python
openrl/algorithms/mbrl/models.py
natetsang/open-rl
426723d0d6759672ce77e02afeb55cbeb68fcfb0
[ "MIT" ]
2
2021-09-10T18:52:35.000Z
2022-01-03T19:48:06.000Z
openrl/algorithms/mbrl/models.py
natetsang/open-rl
426723d0d6759672ce77e02afeb55cbeb68fcfb0
[ "MIT" ]
1
2021-12-28T17:42:23.000Z
2021-12-28T17:42:23.000Z
openrl/algorithms/mbrl/models.py
natetsang/open-rl
426723d0d6759672ce77e02afeb55cbeb68fcfb0
[ "MIT" ]
null
null
null
import tensorflow as tf from tensorflow.keras import layers from util.utils import normalize, unnormalize import numpy as np def fc_network(state_dims: int, action_dims: int, num_hidden_layers: int, hidden_size: int) -> tf.keras.Model: """ Input both normalized sta...
45.465116
107
0.64399
1e46fea114d2d9f9ae697dd5ae147156e7bee2cc
127
py
Python
src/cms/templates/apps.py
UniversitaDellaCalabria/uniCMS
b0af4e1a767867f0a9b3c135a5c84587e713cb71
[ "Apache-2.0" ]
6
2021-01-26T17:22:53.000Z
2022-02-15T10:09:03.000Z
src/cms/templates/apps.py
UniversitaDellaCalabria/uniCMS
b0af4e1a767867f0a9b3c135a5c84587e713cb71
[ "Apache-2.0" ]
5
2020-12-24T14:29:23.000Z
2021-08-10T10:32:18.000Z
src/cms/templates/apps.py
UniversitaDellaCalabria/uniCMS
b0af4e1a767867f0a9b3c135a5c84587e713cb71
[ "Apache-2.0" ]
2
2020-12-24T14:13:39.000Z
2020-12-30T16:48:52.000Z
from django.apps import AppConfig class CmsTemplatesConfig(AppConfig): name = 'cms.templates' label = 'cmstemplates'
18.142857
36
0.740157
830706e54b5690889df1965b77ceb25e323c3211
20,111
py
Python
language/labs/exemplar_decoding/models/attention.py
Ram81/language
cb954c8bf3c9265855b23e768f70abb528ab60a7
[ "Apache-2.0" ]
1
2020-05-27T15:48:09.000Z
2020-05-27T15:48:09.000Z
language/labs/exemplar_decoding/models/attention.py
Ram81/language
cb954c8bf3c9265855b23e768f70abb528ab60a7
[ "Apache-2.0" ]
null
null
null
language/labs/exemplar_decoding/models/attention.py
Ram81/language
cb954c8bf3c9265855b23e768f70abb528ab60a7
[ "Apache-2.0" ]
3
2019-07-08T09:45:51.000Z
2019-10-18T07:19:15.000Z
# coding=utf-8 # Copyright 2018 The Google AI Language Team 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 ...
37.590654
94
0.684302
2d40178976255d9208358a8c36b867b29178a28e
620
py
Python
examples/replace_tracks_in_playlist.py
issyrichards/spartify2
e96a1253bd89df6e1401936c3fb99c791af6afad
[ "MIT" ]
null
null
null
examples/replace_tracks_in_playlist.py
issyrichards/spartify2
e96a1253bd89df6e1401936c3fb99c791af6afad
[ "MIT" ]
null
null
null
examples/replace_tracks_in_playlist.py
issyrichards/spartify2
e96a1253bd89df6e1401936c3fb99c791af6afad
[ "MIT" ]
null
null
null
# Replaces all tracks in a playlist import pprint import sys import spotipy import spotipy.util as util if len(sys.argv) > 3: username = sys.argv[1] playlist_id = sys.argv[2] track_ids = sys.argv[3:] else: print "Usage: %s username playlist_id track_id ..." % (sys.argv[0],) sys.exit() scope = '...
22.142857
79
0.701613
f4ea4732df8c7364261db9587d993426a79d1b69
11,996
py
Python
api/skills_matcher_db/users/api/views.py
WHOIGit/avast-skills-matcher-db
3bb23b585c9e0a13b5e6ecaae7d1a8fdc346cb77
[ "MIT" ]
null
null
null
api/skills_matcher_db/users/api/views.py
WHOIGit/avast-skills-matcher-db
3bb23b585c9e0a13b5e6ecaae7d1a8fdc346cb77
[ "MIT" ]
2
2022-01-21T15:52:43.000Z
2022-02-17T22:58:08.000Z
api/skills_matcher_db/users/api/views.py
WHOIGit/avast-skills-matcher-db
3bb23b585c9e0a13b5e6ecaae7d1a8fdc346cb77
[ "MIT" ]
null
null
null
from django.contrib.auth import get_user_model from django.utils import timezone from templated_email import send_templated_mail from rest_framework.permissions import IsAdminUser, BasePermission, IsAuthenticated from rest_framework import status, response from rest_framework.generics import GenericAPIView, CreateAPIV...
38.08254
113
0.586445
95cb055b3c52add3033b73c8748f73dac80ab4b8
5,012
py
Python
tests/specifications/external_spec_test.py
thundernixon/fontbakery
cff658dd7385179915b4770c42d9ae3ab22fa25d
[ "Apache-2.0" ]
null
null
null
tests/specifications/external_spec_test.py
thundernixon/fontbakery
cff658dd7385179915b4770c42d9ae3ab22fa25d
[ "Apache-2.0" ]
null
null
null
tests/specifications/external_spec_test.py
thundernixon/fontbakery
cff658dd7385179915b4770c42d9ae3ab22fa25d
[ "Apache-2.0" ]
null
null
null
from fontbakery.checkrunner import Section from fontbakery.fonts_spec import spec_factory def check_filter(item_type, item_id, item): # Filter out external tool checks for testing purposes. if item_type == "check" and item_id in ( "com.google.fonts/check/035", # ftxvalidator "com.google.fonts/check/0...
33.637584
81
0.669992
64704ff98b46d49d16d5932d3b192e4cdbc47982
4,416
py
Python
BlueSim/events.py
fberlinger/FISH
ae6b76f5b395fc20e0cdb05357ed384f57ca3145
[ "MIT" ]
null
null
null
BlueSim/events.py
fberlinger/FISH
ae6b76f5b395fc20e0cdb05357ed384f57ca3145
[ "MIT" ]
null
null
null
BlueSim/events.py
fberlinger/FISH
ae6b76f5b395fc20e0cdb05357ed384f57ca3145
[ "MIT" ]
null
null
null
from eventcodes import ( INFO_EXTERNAL, INFO_INTERNAL, PING, HOMING, HOP_COUNT, START_HOP_COUNT, MOVE, LEADER_ELECTION, START_LEADER_ELECTION ) class Ping(): """Ping your beloved neighbor fish """ def __init__(self, id): """Create a ping event to "sense" other fish Arguments: ...
26.285714
79
0.588768
0533b93824f6c147ee50e4e9ea3b390334902c36
1,773
py
Python
openstack/tests/unit/identity/v3/test_policy.py
nicolasochem/openstacksdk
34ea72ce5b0b7f16a038ca57b2a9f1ec2f90ce00
[ "Apache-2.0" ]
null
null
null
openstack/tests/unit/identity/v3/test_policy.py
nicolasochem/openstacksdk
34ea72ce5b0b7f16a038ca57b2a9f1ec2f90ce00
[ "Apache-2.0" ]
null
null
null
openstack/tests/unit/identity/v3/test_policy.py
nicolasochem/openstacksdk
34ea72ce5b0b7f16a038ca57b2a9f1ec2f90ce00
[ "Apache-2.0" ]
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...
34.764706
75
0.684151
549b6fc0d604dbf8e94904b070d02449a2b15e9c
726
py
Python
Main/migrations/0055_lastreview.py
Muhammet-Yildiz/Ecommerce_Website-HepsiOrada
91935014ccc37e0ea57c8cbd2c4891941dcbb917
[ "MIT" ]
10
2021-06-01T19:30:00.000Z
2021-06-28T16:16:20.000Z
Main/migrations/0055_lastreview.py
Muhammet-Yildiz/HepsiOrada
91935014ccc37e0ea57c8cbd2c4891941dcbb917
[ "MIT" ]
null
null
null
Main/migrations/0055_lastreview.py
Muhammet-Yildiz/HepsiOrada
91935014ccc37e0ea57c8cbd2c4891941dcbb917
[ "MIT" ]
null
null
null
# Generated by Django 3.1.4 on 2021-03-12 22:18 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('Main', '0054_auto_20210310_0956'), ] operations = [ migrations.CreateModel( name='LastReview', fields=[ ...
27.923077
114
0.549587
f93ed47cb604fef457ad411bb6c0bc1c158ad593
657
py
Python
pycle/pycle-api/deneme.py
fusuyfusuy/School-Projects
8e38f19da90f63ac9c9ec91e550fc5aaab3d0234
[ "MIT" ]
null
null
null
pycle/pycle-api/deneme.py
fusuyfusuy/School-Projects
8e38f19da90f63ac9c9ec91e550fc5aaab3d0234
[ "MIT" ]
null
null
null
pycle/pycle-api/deneme.py
fusuyfusuy/School-Projects
8e38f19da90f63ac9c9ec91e550fc5aaab3d0234
[ "MIT" ]
null
null
null
# app = Flask(__name__) # api = Api(app) # class Bicycle(Resource): # def get(self): # return 'Use POST' # # return Response(json.dumps(AHP.runAHP(300, 600, 220, [5, 3, 2], [1,1,1,1,1,1,1,1,1,1], [1,1,1])), mimetype='application/json') # def put(self, data): # print('ahanda post', d...
38.647059
180
0.665145
e62e592d5931774fb39c9f1b25f02b81a0f358b8
8,162
py
Python
scripts.py
antofurna/ADM-HW
851359a70720057bca0c7fb748ae5461b3e86148
[ "MIT" ]
1
2019-10-14T16:18:35.000Z
2019-10-14T16:18:35.000Z
scripts.py
antofurna/ADM-HW
851359a70720057bca0c7fb748ae5461b3e86148
[ "MIT" ]
null
null
null
scripts.py
antofurna/ADM-HW
851359a70720057bca0c7fb748ae5461b3e86148
[ "MIT" ]
null
null
null
### 1 - Say Hello with python """ Created on Sun Oct 13 12:13:58 2019 @author: antonio.furnari """ if __name__ == '__main__': print "Hello, World!" ### 2 - Python If-Else """ Created on Sun Oct 13 12:12:29 2019 @author: antonio.furnari """ #!/bin/python import math import os import r...
19.573141
108
0.571796
57abe5c918b0eeb8929b5304cec1b7dab9f84d72
889
py
Python
compiler/astnodes/vardef.py
yangdanny97/chocopy-python-compiler
588cba0cb330bd63f00e06420a32ba47c25c4468
[ "MIT" ]
7
2021-08-28T18:20:45.000Z
2022-02-01T07:35:59.000Z
compiler/astnodes/vardef.py
yangdanny97/chocopy-python-compiler
588cba0cb330bd63f00e06420a32ba47c25c4468
[ "MIT" ]
null
null
null
compiler/astnodes/vardef.py
yangdanny97/chocopy-python-compiler
588cba0cb330bd63f00e06420a32ba47c25c4468
[ "MIT" ]
2
2022-02-05T06:16:16.000Z
2022-02-24T11:07:09.000Z
from .declaration import Declaration from .expr import Expr from .typedvar import TypedVar class VarDef(Declaration): def __init__(self, location:[int], var:TypedVar, value:Expr, isAttr:bool=False): super().__init__(location, "VarDef") self.var = var self.value = value self.isAttr ...
26.939394
84
0.645669
1e3e7606225d51e3c52bc25266053fcb35526a11
1,457
py
Python
tests/factories/test_service.py
FlorianCassayre/invenio-records-resources
80a2f6565653fd00e08c85b5aa8d1b1276cbb4e7
[ "MIT" ]
null
null
null
tests/factories/test_service.py
FlorianCassayre/invenio-records-resources
80a2f6565653fd00e08c85b5aa8d1b1276cbb4e7
[ "MIT" ]
null
null
null
tests/factories/test_service.py
FlorianCassayre/invenio-records-resources
80a2f6565653fd00e08c85b5aa8d1b1276cbb4e7
[ "MIT" ]
null
null
null
from invenio_records_permissions import RecordPermissionPolicy from invenio_records_permissions.generators import AnyUser from invenio_records_resources.factories.factory import RecordTypeFactory from invenio_records_resources.services.records.schema import RecordSchema def test_simple_flow(app, identity_simple, db)...
28.019231
74
0.673988
acdd8cfbb24bbbea53960d56e77dc370614be3c3
15,941
py
Python
caffe2/python/data_workers.py
Hacky-DH/pytorch
80dc4be615854570aa39a7e36495897d8a040ecc
[ "Intel" ]
60,067
2017-01-18T17:21:31.000Z
2022-03-31T21:37:45.000Z
caffe2/python/data_workers.py
Hacky-DH/pytorch
80dc4be615854570aa39a7e36495897d8a040ecc
[ "Intel" ]
66,955
2017-01-18T17:21:38.000Z
2022-03-31T23:56:11.000Z
caffe2/python/data_workers.py
Hacky-DH/pytorch
80dc4be615854570aa39a7e36495897d8a040ecc
[ "Intel" ]
19,210
2017-01-18T17:45:04.000Z
2022-03-31T23:51:56.000Z
## @package data_workers # Module caffe2.python.data_workers ''' This module provides a python-land multithreaded data input mechanism for Caffe2 nets. Basic usage is as follows: coordinator = data_workers.init_data_input_workers( net, ["data", "label"], my_fetch_fun, batch_size=32, ...
34.504329
96
0.6169
3845e7d494177a6a8623e96278c27e9304a66ebd
2,456
py
Python
testQryAns/test_QryAns.py
RIAPS/riaps-tests
44405ce6d7538b0f1c2bccf77a2d8733c5203d99
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
testQryAns/test_QryAns.py
RIAPS/riaps-tests
44405ce6d7538b0f1c2bccf77a2d8733c5203d99
[ "ECL-2.0", "Apache-2.0" ]
3
2019-05-10T15:21:31.000Z
2019-07-19T16:00:19.000Z
testQryAns/test_QryAns.py
RIAPS/riaps-tests
44405ce6d7538b0f1c2bccf77a2d8733c5203d99
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
"""RIAPS Qry Ans messaging model tests """ import riaps_testing def verifyResults(results, numQry): """Verify that test results match the expected behavior of the Qry Ans model Args: results (dictionary): A dictionary in the format provided by riaps_testing.runTest(...) numQry (int): The numb...
40.262295
128
0.590798
6041311513be9151051738b034604dd37a070011
295
py
Python
tests/milvus_benchmark/report.py
ReigenAraka/milvus
b2f19ace0e1dcd431a512141f42b748581d4b92d
[ "Apache-2.0" ]
4
2020-07-29T02:59:53.000Z
2021-11-16T11:07:51.000Z
tests/milvus_benchmark/report.py
liangwlw/milvus
7e7f626b9c7288c1c82f5dafed87d33897f4b64e
[ "Apache-2.0" ]
2
2020-08-20T07:17:50.000Z
2020-08-21T04:21:34.000Z
tests/milvus_benchmark/report.py
liangwlw/milvus
7e7f626b9c7288c1c82f5dafed87d33897f4b64e
[ "Apache-2.0" ]
2
2021-06-09T23:50:48.000Z
2021-06-17T06:24:29.000Z
# from tablereport import Table # from tablereport.shortcut import write_to_excel # RESULT_FOLDER = "results" # def create_table(headers, bodys, table_name): # table = Table(header=[headers], # body=[bodys]) # write_to_excel('%s/%s.xlsx' % (RESULT_FOLDER, table_name), table)
29.5
68
0.698305
7b813c47b3d7395a9982e91533b0db53703077dc
935
py
Python
djongo-clone/facebook_clone/account/serializer.py
Maze-lol/facebook_clone
92d4cf494449035a7b01365ca61baec10b9283a9
[ "MIT" ]
1
2022-03-20T13:04:21.000Z
2022-03-20T13:04:21.000Z
djongo-clone/facebook_clone/account/serializer.py
thukaramvh/Facebook_Clone
92d4cf494449035a7b01365ca61baec10b9283a9
[ "MIT" ]
null
null
null
djongo-clone/facebook_clone/account/serializer.py
thukaramvh/Facebook_Clone
92d4cf494449035a7b01365ca61baec10b9283a9
[ "MIT" ]
1
2022-03-20T13:04:00.000Z
2022-03-20T13:04:00.000Z
from rest_framework import serializers from django.contrib.auth import authenticate, get_user_model class CreateUsersSerializer(serializers.ModelSerializer): username = serializers.CharField() email = serializers.EmailField() password = serializers.CharField(write_only=True, ...
31.166667
73
0.683422
c1789a42183a0e916fcbfb8a5b5c8c8ff31744cc
621
py
Python
var/spack/repos/builtin/packages/py-pycurl/package.py
nkianggiss/spack
3477d3375142a30f5714bb5966a6d8bb22c33c06
[ "ECL-2.0", "Apache-2.0", "MIT" ]
3
2019-06-27T13:26:50.000Z
2019-07-01T16:24:54.000Z
var/spack/repos/builtin/packages/py-pycurl/package.py
openbiox/spack
bb6ec7fb40c14b37e094a860e3625af53f633174
[ "ECL-2.0", "Apache-2.0", "MIT" ]
75
2016-07-27T11:43:00.000Z
2020-12-08T15:56:53.000Z
var/spack/repos/builtin/packages/py-pycurl/package.py
openbiox/spack
bb6ec7fb40c14b37e094a860e3625af53f633174
[ "ECL-2.0", "Apache-2.0", "MIT" ]
8
2015-10-16T13:51:49.000Z
2021-10-18T13:58:03.000Z
# Copyright 2013-2019 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class PyPycurl(PythonPackage): """PycURL is a Python interface to libcurl. PycURL can be used to...
31.05
78
0.708535
6cb1ea1e0b2406d207f1710e967194376b89088f
688
py
Python
cool/util/enc.py
d2verb/cool
8d9f3d3a89877de7941d4a7a32e38a0be6bd050e
[ "MIT" ]
4
2020-07-17T11:37:28.000Z
2022-01-25T04:52:01.000Z
cool/util/enc.py
d2verb/cool
8d9f3d3a89877de7941d4a7a32e38a0be6bd050e
[ "MIT" ]
1
2020-07-02T15:30:36.000Z
2020-07-02T15:30:36.000Z
cool/util/enc.py
d2verb/ctftools
8d9f3d3a89877de7941d4a7a32e38a0be6bd050e
[ "MIT" ]
1
2020-09-29T16:45:29.000Z
2020-09-29T16:45:29.000Z
from base64 import b64decode, b64encode, urlsafe_b64decode, urlsafe_b64encode from typing import Union from urllib.parse import quote, unquote def b64enc(bs: bytes, url: bool = False) -> bytes: if url: return urlsafe_b64encode(bs) else: return b64encode(bs) def b64dec(bs: bytes, url: bool = ...
20.848485
77
0.630814
dd5bd6861cfc3c2e01b4e7405c2decea489bfcbc
84,530
py
Python
LinuxBootImageGenerator.py
robseb/LinuxBootImageGenerator
b537f427adcb62d394d0e94a3d2eef6733c09764
[ "MIT" ]
3
2020-07-21T17:33:33.000Z
2021-02-11T23:52:03.000Z
LinuxBootImageGenerator.py
robseb/LinuxBootImageGenerator
b537f427adcb62d394d0e94a3d2eef6733c09764
[ "MIT" ]
1
2020-10-21T09:48:09.000Z
2021-05-05T22:23:10.000Z
LinuxBootImageGenerator.py
robseb/LinuxBootImageGenerator
b537f427adcb62d394d0e94a3d2eef6733c09764
[ "MIT" ]
2
2020-09-14T16:06:07.000Z
2021-01-06T16:42:23.000Z
#!/usr/bin/env python # # ######## ###### ## ## ####### ###### ######## ####### # ## ## ## ## ## ## ## ## ## ## ## ## ## # ## ## ## #### ## ## ## ## ## ## # #...
45.058635
137
0.53006
e5d4ded92ee470a678cb43291a12d314c3380b32
1,931
py
Python
zeus/networks/faster_backbone.py
shaido987/vega
14d5d49fb8bdf96bd1f3fcfac201ce6b6712c3b6
[ "MIT" ]
240
2020-08-15T15:11:49.000Z
2022-03-28T07:26:23.000Z
zeus/networks/faster_backbone.py
WholeG/vega
d1ccf1c3ce68a118bdb6775594ceed0f895911e7
[ "MIT" ]
20
2020-08-29T06:18:21.000Z
2022-03-21T04:35:57.000Z
zeus/networks/faster_backbone.py
WholeG/vega
d1ccf1c3ce68a118bdb6775594ceed0f895911e7
[ "MIT" ]
69
2020-08-15T15:41:53.000Z
2022-03-16T08:27:47.000Z
# -*- coding:utf-8 -*- # Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved. # This program is free software; you can redistribute it and/or modify # it under the terms of the MIT License. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the ...
40.229167
119
0.684619
66c0288081f9cd9ac1760b991062bfeab87f69f1
1,655
py
Python
python/ray/rllib/examples/custom_env.py
yfletberliac/ray
2fd48afa082af012420c3e1a3240e3904cf72c04
[ "Apache-2.0" ]
29
2019-05-18T12:18:34.000Z
2022-03-30T01:46:48.000Z
ray/rllib/examples/custom_env.py
kivo360/tesp
a77d9c228a6891b304e789ba2758a4cbfdb75ec0
[ "MIT" ]
8
2019-08-15T05:42:10.000Z
2021-05-21T09:41:15.000Z
ray/rllib/examples/custom_env.py
kivo360/tesp
a77d9c228a6891b304e789ba2758a4cbfdb75ec0
[ "MIT" ]
8
2019-07-15T22:36:20.000Z
2020-08-09T07:03:26.000Z
"""Example of a custom gym environment. Run this for a demo.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function import numpy as np import gym from gym.spaces import Discrete, Box from gym.envs.registration import EnvSpec import ray from ray.tune import run...
28.050847
73
0.610272
9dd1bc22ad1c85db4c663cb8bdeebdbb8c73f874
10,160
py
Python
sdks/python/apache_beam/typehints/schemas_test.py
dexterchan/beam
01e500c2dd0d699aea0434154b69fd59d824700f
[ "Apache-2.0" ]
2
2019-12-14T04:24:33.000Z
2020-02-21T07:17:40.000Z
sdks/python/apache_beam/typehints/schemas_test.py
dexterchan/beam
01e500c2dd0d699aea0434154b69fd59d824700f
[ "Apache-2.0" ]
6
2020-09-26T00:28:18.000Z
2022-02-10T01:07:25.000Z
sdks/python/apache_beam/typehints/schemas_test.py
dexterchan/beam
01e500c2dd0d699aea0434154b69fd59d824700f
[ "Apache-2.0" ]
1
2020-02-09T02:51:50.000Z
2020-02-09T02:51: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 us...
37.490775
80
0.582579
0777f040936afbd3ca3e6402062a891d7c43a62b
2,349
py
Python
salt/modules/nfs3.py
skrobul/salt
ef7fb71082cce7a9783e00b9c65062fefae09263
[ "Apache-2.0" ]
2
2017-09-17T21:10:35.000Z
2019-08-26T03:00:12.000Z
salt/modules/nfs3.py
skrobul/salt
ef7fb71082cce7a9783e00b9c65062fefae09263
[ "Apache-2.0" ]
null
null
null
salt/modules/nfs3.py
skrobul/salt
ef7fb71082cce7a9783e00b9c65062fefae09263
[ "Apache-2.0" ]
3
2021-02-23T08:12:48.000Z
2021-02-23T08:13:13.000Z
# -*- coding: utf-8 -*- ''' Module for managing NFS version 3. ''' # Import python libs import logging # Import salt libs import salt.utils log = logging.getLogger(__name__) def __virtual__(): ''' Only work on POSIX-like systems ''' if not salt.utils.which('showmount'): return False ret...
24.726316
74
0.54023
e6b652372bd5ac28d5ab4ae6448187a4ca4c3d76
106
py
Python
contrib/holland-commvault/holland_commvault/__init__.py
crishoj/holland
77dcfe9f23d4254e4c351cdc18f29a8d34945812
[ "BSD-3-Clause" ]
84
2015-02-11T15:14:54.000Z
2022-03-15T23:34:33.000Z
contrib/holland-commvault/holland_commvault/__init__.py
crishoj/holland
77dcfe9f23d4254e4c351cdc18f29a8d34945812
[ "BSD-3-Clause" ]
157
2015-01-30T18:22:24.000Z
2022-03-30T12:15:42.000Z
contrib/holland-commvault/holland_commvault/__init__.py
crishoj/holland
77dcfe9f23d4254e4c351cdc18f29a8d34945812
[ "BSD-3-Clause" ]
49
2015-02-04T18:59:49.000Z
2022-03-22T20:56:54.000Z
""" Wrapper to allow Commvault agent to call Holland """ from .commvault import main __all__ = ["main"]
13.25
48
0.707547
abef36247d60213abe9edff17ed10374435087a8
8,426
py
Python
tests/server/test_app_search.py
elastic/enterprise-search-python
1788413218badc01e2da23ac290698de40117f8c
[ "Apache-2.0" ]
19
2019-09-05T21:14:37.000Z
2022-03-13T00:55:48.000Z
tests/server/test_app_search.py
elastic/enterprise-search-python
1788413218badc01e2da23ac290698de40117f8c
[ "Apache-2.0" ]
77
2019-08-19T19:02:09.000Z
2022-03-29T18:32:27.000Z
tests/server/test_app_search.py
elastic/enterprise-search-python
1788413218badc01e2da23ac290698de40117f8c
[ "Apache-2.0" ]
15
2019-10-17T14:04:09.000Z
2022-03-22T14:04:27.000Z
# Licensed to Elasticsearch B.V. under one or more contributor # license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright # ownership. Elasticsearch B.V. licenses this file to you under # the Apache License, Version 2.0 (the "License"); you may # not use ...
30.864469
96
0.539877
4fbc1ebcb19bd907d24aaebd9722f12d97a7ddac
3,732
py
Python
todo/views.py
developerfitz/todo
8b6e639dfeaa48b1c13b203bc290b87eb37ae511
[ "MIT" ]
null
null
null
todo/views.py
developerfitz/todo
8b6e639dfeaa48b1c13b203bc290b87eb37ae511
[ "MIT" ]
null
null
null
todo/views.py
developerfitz/todo
8b6e639dfeaa48b1c13b203bc290b87eb37ae511
[ "MIT" ]
null
null
null
from todo import app from flask import jsonify, request, url_for from flask import json from todo.database import db_session from todo.models import Entry from todo.error_handlers import InvalidUsage @app.route("/", methods=["GET", "POST", "DELETE"]) def index(): if request.method == "POST": request_json...
34.238532
122
0.634244
ed18ff0277e1f02584a56128f6aca183b304242d
1,218
py
Python
config/urls.py
Amirhoseindzh/django-online-shopping
eb5e650453df72bf286269c756d5ac9baf3c3f6d
[ "Apache-2.0" ]
null
null
null
config/urls.py
Amirhoseindzh/django-online-shopping
eb5e650453df72bf286269c756d5ac9baf3c3f6d
[ "Apache-2.0" ]
null
null
null
config/urls.py
Amirhoseindzh/django-online-shopping
eb5e650453df72bf286269c756d5ac9baf3c3f6d
[ "Apache-2.0" ]
null
null
null
"""mysite URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based ...
34.8
87
0.737274
c01ebf126b0bb68034da1e4625f6c88f14433dcf
2,844
py
Python
ci.py
vonguyenleduy/parametric_lasso_selective_inference
35250fb1774202785bf876d4964c0cf7a3c5f5e9
[ "BSD-3-Clause" ]
2
2021-06-27T05:42:48.000Z
2022-01-12T14:37:27.000Z
ci.py
vonguyenleduy/parametric_lasso_selective_inference
35250fb1774202785bf876d4964c0cf7a3c5f5e9
[ "BSD-3-Clause" ]
null
null
null
ci.py
vonguyenleduy/parametric_lasso_selective_inference
35250fb1774202785bf876d4964c0cf7a3c5f5e9
[ "BSD-3-Clause" ]
null
null
null
import numpy as np from mpmath import mp mp.dps = 500 def f(z_interval, etajTy, mu, tn_sigma): numerator = 0 denominator = 0 for each_interval in z_interval: al = each_interval[0] ar = each_interval[1] denominator = denominator + mp.ncdf((ar - mu) / tn_sigma) - mp.ncdf((al - mu)...
28.727273
101
0.577004
f53239b4f88581395551905004d45a006630d7db
2,480
py
Python
src/idea/search_indexes.py
m3brown/idea-box
3a0300be849be62b138aefd0197f667b980f6e28
[ "CC0-1.0" ]
null
null
null
src/idea/search_indexes.py
m3brown/idea-box
3a0300be849be62b138aefd0197f667b980f6e28
[ "CC0-1.0" ]
null
null
null
src/idea/search_indexes.py
m3brown/idea-box
3a0300be849be62b138aefd0197f667b980f6e28
[ "CC0-1.0" ]
null
null
null
from haystack import indexes from models import Idea, Banner from django.core.urlresolvers import reverse from time import mktime, strptime class IdeaIndex(indexes.SearchIndex, indexes.Indexable): text = indexes.EdgeNgramField(document=True, use_template=True) display = indexes.CharField(model_attr='title') ...
33.972603
91
0.700403
bfaf0a68e2fdd0d7d56eea93a673fa2b754a586d
60,512
py
Python
desktop/core/ext-py/Pygments-1.3.1/pygments/lexers/agile.py
kokosing/hue
2307f5379a35aae9be871e836432e6f45138b3d9
[ "Apache-2.0" ]
5,079
2015-01-01T03:39:46.000Z
2022-03-31T07:38:22.000Z
desktop/core/ext-py/Pygments-1.3.1/pygments/lexers/agile.py
zks888/hue
93a8c370713e70b216c428caa2f75185ef809deb
[ "Apache-2.0" ]
1,623
2015-01-01T08:06:24.000Z
2022-03-30T19:48:52.000Z
desktop/core/ext-py/Pygments-1.3.1/pygments/lexers/agile.py
zks888/hue
93a8c370713e70b216c428caa2f75185ef809deb
[ "Apache-2.0" ]
2,033
2015-01-04T07:18:02.000Z
2022-03-28T19:55:47.000Z
# -*- coding: utf-8 -*- """ pygments.lexers.agile ~~~~~~~~~~~~~~~~~~~~~ Lexers for agile languages. :copyright: Copyright 2006-2010 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ import re from pygments.lexer import Lexer, RegexLexer, ExtendedRegexLexer, \ Le...
40.7214
87
0.462817
1d0a264b7cbde4dbe3acc2f61bc6d5ae2f39060d
100
py
Python
test/unittests/analysis_osr.py
aisk/pyston
ac69cfef0621dbc8901175e84fa2b5cb5781a646
[ "BSD-2-Clause", "Apache-2.0" ]
1
2020-02-06T14:28:45.000Z
2020-02-06T14:28:45.000Z
test/unittests/analysis_osr.py
aisk/pyston
ac69cfef0621dbc8901175e84fa2b5cb5781a646
[ "BSD-2-Clause", "Apache-2.0" ]
null
null
null
test/unittests/analysis_osr.py
aisk/pyston
ac69cfef0621dbc8901175e84fa2b5cb5781a646
[ "BSD-2-Clause", "Apache-2.0" ]
1
2020-02-06T14:29:00.000Z
2020-02-06T14:29:00.000Z
def f(): if True: for i in xrange(20000): pass else: a = 1 f()
11.111111
31
0.38
303b65923a34072b8baf65fd3c8c122b7d376e26
6,213
py
Python
conf.py
wessenstam/se-academy
db71cbf9fdcbe4f67095fa6949586d8246ef7950
[ "MIT" ]
null
null
null
conf.py
wessenstam/se-academy
db71cbf9fdcbe4f67095fa6949586d8246ef7950
[ "MIT" ]
null
null
null
conf.py
wessenstam/se-academy
db71cbf9fdcbe4f67095fa6949586d8246ef7950
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Nutanix Labs documentation build configuration file, created by # sphinx-quickstart on Fri Oct 27 12:18:41 2017. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. ...
32.19171
79
0.68743
a819447dbe0351cd305a433fe6a2f776b1ad89c0
374
py
Python
novelsave/core/services/source/base_meta_source_gateway.py
damare01/novelsave
7896e8393c944e169e3cb52a33ab81ae396dff9f
[ "Apache-2.0" ]
12
2021-08-25T04:37:53.000Z
2022-01-28T03:06:17.000Z
novelsave/core/services/source/base_meta_source_gateway.py
damare01/novelsave
7896e8393c944e169e3cb52a33ab81ae396dff9f
[ "Apache-2.0" ]
18
2021-08-24T20:02:16.000Z
2022-03-29T06:55:53.000Z
novelsave/core/services/source/base_meta_source_gateway.py
damare01/novelsave
7896e8393c944e169e3cb52a33ab81ae396dff9f
[ "Apache-2.0" ]
6
2021-10-03T11:31:08.000Z
2022-03-29T07:28:49.000Z
from abc import ABC, abstractmethod from typing import List from novelsave.core.dtos import MetaDataDTO class BaseMetaSourceGateway(ABC): @property @abstractmethod def name(self): """name of the corresponding metadata source""" @abstractmethod def metadata_by_url(self, url: str) -> List[...
23.375
61
0.705882
6f80e93ca15ddd73942a6e397ddfa43d67c4485b
17,043
py
Python
6_N_manifests.py
CedricTomasini/imprimes_valaisans
505d9a92166ebb20c0e60570cf3993f0d63ae141
[ "Apache-2.0" ]
null
null
null
6_N_manifests.py
CedricTomasini/imprimes_valaisans
505d9a92166ebb20c0e60570cf3993f0d63ae141
[ "Apache-2.0" ]
null
null
null
6_N_manifests.py
CedricTomasini/imprimes_valaisans
505d9a92166ebb20c0e60570cf3993f0d63ae141
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # @author : Cédric Tomasini (cedric.tomasini@epfl.ch) # # Manifestes IIIF # Le but de ce notebook est de générer les manifestes IIIF à partir des 3 csv de metadata qu'on a créé. # In[1]: import pandas as pd import numpy as np import IV_util from tqdm import tqdm # In[2]: m...
28.452421
163
0.607522
f8916fa61f2265ecee8b283684889a8eda87b5b0
9,867
py
Python
tests/_autogen_fixtures.py
acnebs/alembic
d6b16eb3a7b8c6398236d8d227c336726c8a46e5
[ "MIT" ]
null
null
null
tests/_autogen_fixtures.py
acnebs/alembic
d6b16eb3a7b8c6398236d8d227c336726c8a46e5
[ "MIT" ]
null
null
null
tests/_autogen_fixtures.py
acnebs/alembic
d6b16eb3a7b8c6398236d8d227c336726c8a46e5
[ "MIT" ]
null
null
null
from sqlalchemy import CHAR from sqlalchemy import CheckConstraint from sqlalchemy import Column from sqlalchemy import event from sqlalchemy import ForeignKey from sqlalchemy import Index from sqlalchemy import inspect from sqlalchemy import Integer from sqlalchemy import MetaData from sqlalchemy import Numeric from s...
29.541916
77
0.572818
0cd2447b7e114599e8f558265bb0393ec878035d
5,070
py
Python
app.py
mattwrobel/RP-0-Parts-Browser
023acf72bf8f9c488492949dbb0bda579ee26e3c
[ "MIT" ]
1
2018-12-13T21:57:28.000Z
2018-12-13T21:57:28.000Z
app.py
mattwrobel/RP-0-Parts-Browser
023acf72bf8f9c488492949dbb0bda579ee26e3c
[ "MIT" ]
null
null
null
app.py
mattwrobel/RP-0-Parts-Browser
023acf72bf8f9c488492949dbb0bda579ee26e3c
[ "MIT" ]
1
2018-12-10T22:03:42.000Z
2018-12-10T22:03:42.000Z
import os import json from flask import jsonify from part_data import PartData from flask import Flask, g from flask import Blueprint, abort, g, render_template, redirect, request, url_for from slugify import slugify from tree_engine_cfg_generator import generate_engine_tree from tree_parts_cfg_generator import genera...
33.576159
120
0.671598
457c53367aacb7c519cd2df9adf915fc741a0c1c
243
py
Python
hooks/pre_gen_project.py
broadinstitute/gnomad-project-template
1f6255161a0f021e3ade2e4330616fd193423c66
[ "BSD-3-Clause" ]
3
2022-01-13T18:40:20.000Z
2022-01-24T01:36:43.000Z
hooks/pre_gen_project.py
broadinstitute/gnomad-project-template
1f6255161a0f021e3ade2e4330616fd193423c66
[ "BSD-3-Clause" ]
1
2022-01-13T20:33:27.000Z
2022-01-13T20:33:27.000Z
hooks/pre_gen_project.py
broadinstitute/gnomad-project-template
1f6255161a0f021e3ade2e4330616fd193423c66
[ "BSD-3-Clause" ]
null
null
null
import re import sys if not re.match(r"^[a-z][_a-z0-9]+$", "{{ cookiecutter.package_name }}"): print( "package name should contain only lower case letters, underscores, and numbers", file=sys.stderr, ) sys.exit(1)
24.3
88
0.625514
e6d5588aea19eafa64aad4887c5a6592c160a4ad
1,091
py
Python
bin/log.py
sunowYang/AutomationTool
778fe634774c08769ead0110017d8384580c2be7
[ "Unlicense" ]
null
null
null
bin/log.py
sunowYang/AutomationTool
778fe634774c08769ead0110017d8384580c2be7
[ "Unlicense" ]
null
null
null
bin/log.py
sunowYang/AutomationTool
778fe634774c08769ead0110017d8384580c2be7
[ "Unlicense" ]
null
null
null
#! coding=utf8 import os import logging class MyLog: def __init__(self, log_path, log_name, name='YGX'): self.name = name if not os.path.exists(log_path): os.makedirs(log_path) self.log_dir = os.path.join(log_path, log_name) if not os.path.exists(self.log_dir): ...
32.088235
95
0.64528
1c1f5a1ab809f2cc7fa9806bdc83e8250a95349e
639
py
Python
backend/manage.py
crowdbotics-apps/plain-firefly-29827
64b6bfddb1963d048bbe05540bddc7f5a4e247b8
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/manage.py
crowdbotics-apps/plain-firefly-29827
64b6bfddb1963d048bbe05540bddc7f5a4e247b8
[ "FTL", "AML", "RSA-MD" ]
37
2021-08-15T17:21:30.000Z
2022-02-27T17:22:15.000Z
backend/manage.py
crowdbotics-apps/plain-firefly-29827
64b6bfddb1963d048bbe05540bddc7f5a4e247b8
[ "FTL", "AML", "RSA-MD" ]
null
null
null
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'plain_firefly_29827.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: ...
29.045455
83
0.688576
b9521c1a5e6bbbf71e2f53df087ca2bdc2b68945
363
py
Python
01_basic/exercise_024.py
sideroff/python-exercises
6a9cc55735d977a71697204c734b3ade84a0c4fd
[ "MIT" ]
null
null
null
01_basic/exercise_024.py
sideroff/python-exercises
6a9cc55735d977a71697204c734b3ade84a0c4fd
[ "MIT" ]
4
2020-03-24T18:00:07.000Z
2021-06-02T00:51:22.000Z
01_basic/exercise_024.py
sideroff/python-exercises
6a9cc55735d977a71697204c734b3ade84a0c4fd
[ "MIT" ]
null
null
null
def is_vowel(char: str): vowels = ('a', 'e', 'i', 'o', 'u') if len(string_input) > 1: print("More than 1 character received. Choosing the first char as default.") char = string_input[:1] print("Your char is a vowel" if char in vowels else "Your char is not a vowel") string_input = input(...
25.928571
84
0.633609
56b1b923c7079d302701af0d99237949bd9a1c6f
3,148
py
Python
sovtokenfees/sovtokenfees/test/catchup/test_batch_reverting_for_1_node.py
ryanwest6/token-plugin
806ce55517bb545d9a90bfe94bbb0ce250efeb95
[ "Apache-2.0" ]
null
null
null
sovtokenfees/sovtokenfees/test/catchup/test_batch_reverting_for_1_node.py
ryanwest6/token-plugin
806ce55517bb545d9a90bfe94bbb0ce250efeb95
[ "Apache-2.0" ]
null
null
null
sovtokenfees/sovtokenfees/test/catchup/test_batch_reverting_for_1_node.py
ryanwest6/token-plugin
806ce55517bb545d9a90bfe94bbb0ce250efeb95
[ "Apache-2.0" ]
1
2020-05-27T10:06:42.000Z
2020-05-27T10:06:42.000Z
import json from plenum.test.stasher import delay_rules from plenum.test.delayers import cDelay from sovtoken import TOKEN_LEDGER_ID from sovtokenfees.test.helper import get_amount_from_token_txn, \ nyms_with_fees, get_committed_txn_root_for_pool, check_state from stp_core.loop.eventually import eventually from...
46.294118
98
0.688056
477d41ca1c89e9e563388b140b23288438ed0562
7,613
py
Python
Clients/pyClient/GUI.py
JulianWww/AlphaZero
8eb754659793305eba7b9e636eeab37d9ccd45f7
[ "MIT" ]
1
2021-12-05T13:26:17.000Z
2021-12-05T13:26:17.000Z
Clients/pyClient/GUI.py
JulianWww/AlphaZero
8eb754659793305eba7b9e636eeab37d9ccd45f7
[ "MIT" ]
null
null
null
Clients/pyClient/GUI.py
JulianWww/AlphaZero
8eb754659793305eba7b9e636eeab37d9ccd45f7
[ "MIT" ]
null
null
null
import tkinter as tk from PIL import Image, ImageTk from game import Game from threading import Thread import time from gameSaver import sendFull from Client import DummyAgent class ConsoleAgent: """Agent running in the console for testing only""" def render(self, state): "render the state to the conso...
31.853556
104
0.523053
151a9c69030241bb71a9c790dce94dfe4163edfc
6,981
py
Python
wiiu_cdndownload.py
SashLilac/uShop
2323ab7189a67953b87c7a74b7c638738bda680f
[ "MIT" ]
9
2020-10-20T23:48:27.000Z
2021-02-01T19:19:39.000Z
wiiu_cdndownload.py
SashLilac/uShop
2323ab7189a67953b87c7a74b7c638738bda680f
[ "MIT" ]
null
null
null
wiiu_cdndownload.py
SashLilac/uShop
2323ab7189a67953b87c7a74b7c638738bda680f
[ "MIT" ]
3
2020-10-21T16:31:45.000Z
2020-12-13T01:11:17.000Z
#!/usr/bin/env python3 # usage: runDownload(tid: str) OR runDownload(tid: str, version: str) import base64 import binascii import os import sys import struct import zlib import tikgen import shutil from urllib.request import urlretrieve, urlopen # compressed with zlibm encoded with base64 titlecert = 'eJytkvk/E44fx9...
55.404762
2,614
0.713508
15c0c0bb723ed62b3ed889f4067139b3f8d71bcc
1,917
py
Python
pytest_cases/common_mini_six.py
plammens/python-pytest-cases
a9083f2195714c49e5606b5191c6fe26d298a691
[ "BSD-3-Clause" ]
null
null
null
pytest_cases/common_mini_six.py
plammens/python-pytest-cases
a9083f2195714c49e5606b5191c6fe26d298a691
[ "BSD-3-Clause" ]
null
null
null
pytest_cases/common_mini_six.py
plammens/python-pytest-cases
a9083f2195714c49e5606b5191c6fe26d298a691
[ "BSD-3-Clause" ]
null
null
null
# Authors: Sylvain MARIE <sylvain.marie@se.com> # + All contributors to <https://github.com/smarie/python-pytest-cases> # # License: 3-clause BSD, <https://github.com/smarie/python-pytest-cases/blob/master/LICENSE> import sys PY3 = sys.version_info[0] >= 3 PY34 = sys.version_info[0:2] >= (3, 4) if PY3: s...
29.045455
92
0.556077
3a48a0ce5b4b8508985c7b54c0c8e46001fb58ec
591
py
Python
src/mmw/mmw/celery.py
mmcfarland/model-my-watershed
a6bd72e39e6fe3a2f20d192ff04a721d1eac7613
[ "Apache-2.0" ]
1
2015-08-14T15:37:12.000Z
2015-08-14T15:37:12.000Z
src/mmw/mmw/celery.py
mmcfarland/model-my-watershed-1
a6bd72e39e6fe3a2f20d192ff04a721d1eac7613
[ "Apache-2.0" ]
null
null
null
src/mmw/mmw/celery.py
mmcfarland/model-my-watershed-1
a6bd72e39e6fe3a2f20d192ff04a721d1eac7613
[ "Apache-2.0" ]
1
2015-07-20T20:26:34.000Z
2015-07-20T20:26:34.000Z
from __future__ import absolute_import import os from celery import Celery from django.conf import settings # set the default Django settings module for the 'celery' program. os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'mmw.settings.production') app = Celery('mmw') # Using a string here ...
24.625
66
0.751269
672d53b649fa71de5802b75988624e1790d9f3b4
12,738
py
Python
mkt/reviewers/tests/test_api.py
acidburn0zzz/zamboni
780fbeb99e240a569a72a1c15410f49b76b3807c
[ "BSD-3-Clause" ]
1
2017-07-14T19:22:39.000Z
2017-07-14T19:22:39.000Z
mkt/reviewers/tests/test_api.py
Acidburn0zzz/zamboni
780fbeb99e240a569a72a1c15410f49b76b3807c
[ "BSD-3-Clause" ]
6
2021-02-02T23:08:48.000Z
2021-09-08T02:47:17.000Z
mkt/reviewers/tests/test_api.py
Acidburn0zzz/zamboni
780fbeb99e240a569a72a1c15410f49b76b3807c
[ "BSD-3-Clause" ]
null
null
null
import json from datetime import datetime from django.conf import settings from django.contrib.auth.models import User from django.core.cache import cache from django.core.urlresolvers import reverse from cache_nuggets.lib import Token from nose.tools import eq_ from test_utils import RequestFactory import amo impor...
34.427027
79
0.625687
877494175f47b904b745388951ba4d596e46cefd
6,153
py
Python
test/functional/feature_dersig.py
Black-NET/erexcoin-source
f8db1067acf62dabbfb86a90e49410723875ccef
[ "MIT" ]
null
null
null
test/functional/feature_dersig.py
Black-NET/erexcoin-source
f8db1067acf62dabbfb86a90e49410723875ccef
[ "MIT" ]
null
null
null
test/functional/feature_dersig.py
Black-NET/erexcoin-source
f8db1067acf62dabbfb86a90e49410723875ccef
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2015-2018 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test BIP66 (DER SIG). Test that the DERSIG soft-fork activates at (regtest) height 1251. """ from tes...
42.729167
142
0.672192
27dcf7098b08c1dd09527c5b2b1b569950131a57
6,625
py
Python
tests/sentry/api/endpoints/test_dsym_files.py
simeonnetworks/sentry
93e9646acca76f7bd79368ed538605c9920f4e35
[ "BSD-3-Clause" ]
null
null
null
tests/sentry/api/endpoints/test_dsym_files.py
simeonnetworks/sentry
93e9646acca76f7bd79368ed538605c9920f4e35
[ "BSD-3-Clause" ]
null
null
null
tests/sentry/api/endpoints/test_dsym_files.py
simeonnetworks/sentry
93e9646acca76f7bd79368ed538605c9920f4e35
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import import zipfile from six import BytesIO from django.core.files.uploadedfile import SimpleUploadedFile from django.core.urlresolvers import reverse from sentry.testutils import APITestCase from sentry.models import VersionDSymFile # This is obviously a freely generated UUID and...
36.805556
85
0.602868
c68f835e9dc50be2257d6fd5e9d85fed2a1375c8
2,510
py
Python
news/serializers.py
zjnu/zjnucloud-api
0fc0434db3994fdafb5a90c0b9a5ed49f8bf0979
[ "Apache-2.0" ]
null
null
null
news/serializers.py
zjnu/zjnucloud-api
0fc0434db3994fdafb5a90c0b9a5ed49f8bf0979
[ "Apache-2.0" ]
null
null
null
news/serializers.py
zjnu/zjnucloud-api
0fc0434db3994fdafb5a90c0b9a5ed49f8bf0979
[ "Apache-2.0" ]
null
null
null
from rest_framework import serializers from news.models import Type, ZSXW, ZSXWDetail, XSDT, XSDTDetail, TZGG, TZGGDetail, ChuYang, ChuYangDetail class NewsTypeSerializer(serializers.HyperlinkedModelSerializer): class Meta: model = Type fields = ('name', 'category', 'link') extra_kwargs = ...
22.017544
106
0.486056
698de05d7986723b93002eb2659133ecc498068c
3,979
py
Python
custom/icds_reports/tests/test_agg_skipping.py
rochakchauhan/commcare-hq
aa7ab3c2d0c51fe10f2b51b08101bb4b5a376236
[ "BSD-3-Clause" ]
1
2020-07-14T13:00:23.000Z
2020-07-14T13:00:23.000Z
custom/icds_reports/tests/test_agg_skipping.py
rochakchauhan/commcare-hq
aa7ab3c2d0c51fe10f2b51b08101bb4b5a376236
[ "BSD-3-Clause" ]
1
2021-06-02T04:45:16.000Z
2021-06-02T04:45:16.000Z
custom/icds_reports/tests/test_agg_skipping.py
rochakchauhan/commcare-hq
aa7ab3c2d0c51fe10f2b51b08101bb4b5a376236
[ "BSD-3-Clause" ]
null
null
null
import uuid from unittest.mock import patch from django.core import management from django.test import TestCase from corehq.util.test_utils import generate_cases from custom.icds_reports.models.util import AggregationRecord class TestPreviousMonthSkipping(TestCase): def _test_prev_month(self, date_string, prev_...
41.020619
113
0.674793
6b28843dc74280edc4537bc3a448edf5c214b042
17,652
py
Python
asterix.py
tklink/pyasterix
1e4b08d37de038eb3af8ebf8b87366876a27595c
[ "MIT" ]
1
2021-07-20T18:32:09.000Z
2021-07-20T18:32:09.000Z
asterix.py
tklink/pyasterix
1e4b08d37de038eb3af8ebf8b87366876a27595c
[ "MIT" ]
1
2021-07-20T18:01:42.000Z
2021-07-20T18:01:42.000Z
asterix.py
tklink/pyasterix
1e4b08d37de038eb3af8ebf8b87366876a27595c
[ "MIT" ]
1
2021-07-20T13:12:51.000Z
2021-07-20T13:12:51.000Z
''' EUROCONTROL ASTERIX encoder/decoder A library that encodes and decodes in the EUROCONTROL ASTERIX format as specified in the document EUROCONTROL-SPEC-0149. Edition Number: 0.99 Edition Date: 2017.11.11 Category specifications Xml files in the "config/" directory were taken from https://github.com/CroatiaControlL...
35.093439
171
0.542715
8f9ede61dec2f663f0f4713e0ba1db3223d92496
14,682
py
Python
tools/fix_style.py
spco/AtChem2
c76642c692325f45e82b70e24bc969962a4fce95
[ "MIT" ]
null
null
null
tools/fix_style.py
spco/AtChem2
c76642c692325f45e82b70e24bc969962a4fce95
[ "MIT" ]
null
null
null
tools/fix_style.py
spco/AtChem2
c76642c692325f45e82b70e24bc969962a4fce95
[ "MIT" ]
null
null
null
# ----------------------------------------------------------------------------- # # Copyright (c) 2017 Sam Cox, Roberto Sommariva # # This file is part of the AtChem2 software package. # # This file is covered by the MIT license which can be found in the file # LICENSE.md at the top level of the AtChem2 distribution. #...
54.377778
184
0.652023
42fdf38548a7ca3390e061836c2b5cce6d5755d1
167
py
Python
mysite/myapp/admin.py
shelleywong/CINS465-S22-Examples
daeffc7ba8a842a19779cc2ff534062fe0232331
[ "MIT" ]
null
null
null
mysite/myapp/admin.py
shelleywong/CINS465-S22-Examples
daeffc7ba8a842a19779cc2ff534062fe0232331
[ "MIT" ]
null
null
null
mysite/myapp/admin.py
shelleywong/CINS465-S22-Examples
daeffc7ba8a842a19779cc2ff534062fe0232331
[ "MIT" ]
null
null
null
from django.contrib import admin from . import models # Register your models here. admin.site.register(models.QuestionModel) admin.site.register(models.AnswerModel)
20.875
41
0.814371
2d2d89df42d9e1e90144ac7ba5a8fb3cfd8f7d05
6,162
py
Python
test/functional/rpc_bind.py
catracoin/catracoin
0ecd8ec316e2bdb180325e26ff6bcb857ceea6c9
[ "MIT" ]
1
2021-01-23T19:25:39.000Z
2021-01-23T19:25:39.000Z
test/functional/rpc_bind.py
catracoin/catracoin
0ecd8ec316e2bdb180325e26ff6bcb857ceea6c9
[ "MIT" ]
1
2021-01-23T19:29:09.000Z
2021-01-25T03:58:45.000Z
test/functional/rpc_bind.py
catracoin/catracoin
0ecd8ec316e2bdb180325e26ff6bcb857ceea6c9
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2014-2018 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test running catrad with the -rpcbind and -rpcallowip options.""" import sys from test_framework.netu...
48.519685
172
0.635183
2537a38c70f8e220ee213fca40e22bc4de5b87d6
1,266
py
Python
inheritance parent.py
zysundar/Python_programming
51384ecd2dfdb2cfe94b67605ca49bbd7edf49b6
[ "bzip2-1.0.6" ]
null
null
null
inheritance parent.py
zysundar/Python_programming
51384ecd2dfdb2cfe94b67605ca49bbd7edf49b6
[ "bzip2-1.0.6" ]
null
null
null
inheritance parent.py
zysundar/Python_programming
51384ecd2dfdb2cfe94b67605ca49bbd7edf49b6
[ "bzip2-1.0.6" ]
null
null
null
class person: def __init__(self,fname,lname): self.fname=fname self.lname=lname def getname(self): print ("full name=",self.fname+self.lname) # print ("lname=",self.lname) class employee(person): def __init__(self,fname,lname,number): person.__init__(self,fnam...
28.772727
51
0.624803
67534c0aad2b18886cd2c39bf1eff6a49d13aaf5
1,547
py
Python
mayan/apps/tags/models.py
marumadang/mayan-edms
2052caada456306ae29b46c4885e45d9a26baaaa
[ "Apache-2.0" ]
null
null
null
mayan/apps/tags/models.py
marumadang/mayan-edms
2052caada456306ae29b46c4885e45d9a26baaaa
[ "Apache-2.0" ]
null
null
null
mayan/apps/tags/models.py
marumadang/mayan-edms
2052caada456306ae29b46c4885e45d9a26baaaa
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import, unicode_literals from django.db import models from django.urls import reverse from django.utils.encoding import python_2_unicode_compatible from django.utils.translation import ugettext_lazy as _ from colorful.fields import RGBColorField from acls.models import AccessControlLi...
28.127273
75
0.7117
bc639823160f42a67d06e1f252d192c110ecb125
1,020
py
Python
var/spack/repos/builtin/packages/g4neutronxs/package.py
RemoteConnectionManager/spack
f2967b6c16effd26ce007cf86cadbb645c574f50
[ "ECL-2.0", "Apache-2.0", "MIT" ]
2
2019-05-19T12:24:44.000Z
2019-05-24T10:58:09.000Z
var/spack/repos/builtin/packages/g4neutronxs/package.py
openbiox/spack
bb6ec7fb40c14b37e094a860e3625af53f633174
[ "ECL-2.0", "Apache-2.0", "MIT" ]
17
2018-09-20T18:32:50.000Z
2019-12-04T16:58:12.000Z
var/spack/repos/builtin/packages/g4neutronxs/package.py
openbiox/spack
bb6ec7fb40c14b37e094a860e3625af53f633174
[ "ECL-2.0", "Apache-2.0", "MIT" ]
1
2019-09-21T07:45:10.000Z
2019-09-21T07:45:10.000Z
# Copyright 2013-2019 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class G4neutronxs(Package): """Geant4 data for evaluated neutron cross-sections on natural comp...
37.777778
100
0.694118
11d42587c70ca771d274ae8cf0f78ff7da7f017c
16,930
py
Python
paypal/standard/models.py
igloox/django-paypal
65c7002888133c904f0c80cd87d85fc91e0dd78d
[ "Unlicense", "MIT" ]
null
null
null
paypal/standard/models.py
igloox/django-paypal
65c7002888133c904f0c80cd87d85fc91e0dd78d
[ "Unlicense", "MIT" ]
null
null
null
paypal/standard/models.py
igloox/django-paypal
65c7002888133c904f0c80cd87d85fc91e0dd78d
[ "Unlicense", "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from django.db import models from django.conf import settings from paypal.standard.helpers import duplicate_txn_id, check_secret from paypal.standard.conf import RECEIVER_EMAIL, POSTBACK_ENDPOINT, SANDBOX_POSTBACK_ENDPOINT ST_PP_ACTIVE = 'Active' ST_PP_CANCELLED = 'Cancell...
53.0721
231
0.720319
ecaa337dfbd1aaf0b96d7f520d0c00ea0f2ffcf0
5,900
py
Python
utils.py
SaeedNajafi/seq2seq-transliteration
9a3fc9c3bd9d2be12176024d50de8ae11351f7cc
[ "MIT" ]
null
null
null
utils.py
SaeedNajafi/seq2seq-transliteration
9a3fc9c3bd9d2be12176024d50de8ae11351f7cc
[ "MIT" ]
null
null
null
utils.py
SaeedNajafi/seq2seq-transliteration
9a3fc9c3bd9d2be12176024d50de8ae11351f7cc
[ "MIT" ]
null
null
null
import numpy as np import utils as ut def load(config, mode): """ Creates random vectors for source and target characters. Loads train/dev/test data. """ fp = open(config.source_alphabet, 'r') s_chars = [line.strip().decode('utf8') for line in fp.readlines()] s_chars += config.end_symbol ...
30.412371
78
0.468136
09a5ce8c94aa77565b1fc037c80cf240da643edd
59,973
py
Python
src/command_modules/azure-cli-role/azure/cli/command_modules/role/custom.py
JennyLawrance/azure-cli
cb9ca4b694110806b31803a95f9f315b2fde6410
[ "MIT" ]
null
null
null
src/command_modules/azure-cli-role/azure/cli/command_modules/role/custom.py
JennyLawrance/azure-cli
cb9ca4b694110806b31803a95f9f315b2fde6410
[ "MIT" ]
null
null
null
src/command_modules/azure-cli-role/azure/cli/command_modules/role/custom.py
JennyLawrance/azure-cli
cb9ca4b694110806b31803a95f9f315b2fde6410
[ "MIT" ]
null
null
null
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
44.589591
162
0.644207
bfe41c949d55e2e0401814f4f76f41cc9bab6fd1
9,051
py
Python
benchmarks/tpch/Q06/runhyper.py
rahulyesantharao/tuplex
03733a57ccb5a3770eecaf1c3adcfb520ed82138
[ "Apache-2.0" ]
778
2021-06-30T03:40:43.000Z
2022-03-28T20:40:20.000Z
benchmarks/tpch/Q06/runhyper.py
rahulyesantharao/tuplex
03733a57ccb5a3770eecaf1c3adcfb520ed82138
[ "Apache-2.0" ]
41
2021-07-05T17:55:56.000Z
2022-03-31T15:27:19.000Z
benchmarks/tpch/Q06/runhyper.py
rahulyesantharao/tuplex
03733a57ccb5a3770eecaf1c3adcfb520ed82138
[ "Apache-2.0" ]
39
2021-07-01T02:40:33.000Z
2022-03-30T21:46:55.000Z
# Based on Tableau example # altered to work with TPC-H data. from pathlib import Path import time import argparse from tableauhyperapi import __version__ as hyperversion from tableauhyperapi import HyperProcess, Telemetry, \ Connection, CreateMode, \ NOT_NULLABLE, NULLABLE, SqlType, TableDefinition, \ Ins...
41.328767
129
0.657386
d3e4fcf3426f2b747756dfb276ce1a27c2f99592
4,324
py
Python
influxdb_client/domain/member_assignment.py
wasted925/influxdb-client-python
afee531fd1dc244b3d9d270e262b0a1865a7c89d
[ "MIT" ]
380
2019-09-19T20:20:10.000Z
2022-03-31T12:59:33.000Z
influxdb_client/domain/member_assignment.py
mikeldiezs/influxdb-client-python
0c1d1d9ff92dd2b3b4a9b6aa1e8f5b1c02fd48ab
[ "MIT" ]
362
2019-09-16T11:53:29.000Z
2022-03-29T03:11:59.000Z
influxdb_client/domain/member_assignment.py
mikeldiezs/influxdb-client-python
0c1d1d9ff92dd2b3b4a9b6aa1e8f5b1c02fd48ab
[ "MIT" ]
130
2019-09-20T08:02:35.000Z
2022-03-30T16:44:45.000Z
# coding: utf-8 """ Influx OSS API Service. No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six from influxdb_client.do...
26.527607
120
0.56198
75d37598363b64f15d27899606fb59b439ef6df9
1,200
py
Python
userbot/plugins/rose_fed.py
yu9ohde/Marshmellow
145c90470701c972ab458483ac1b9320d1a44e8e
[ "MIT" ]
2
2020-12-06T03:46:08.000Z
2022-02-19T20:34:52.000Z
userbot/plugins/rose_fed.py
pro-boy/Marshmello
4cf6d96b69a7e0617ba5ced96eb5ee557b318b4c
[ "MIT" ]
4
2020-11-07T07:39:51.000Z
2020-11-10T03:46:41.000Z
userbot/plugins/rose_fed.py
pro-boy/Marshmello
4cf6d96b69a7e0617ba5ced96eb5ee557b318b4c
[ "MIT" ]
9
2020-11-28T11:30:44.000Z
2021-06-01T07:11:57.000Z
import datetime import asyncio from telethon import events from telethon.errors.rpcerrorlist import YouBlockedUserError, UserAlreadyParticipantError from telethon.tl.functions.account import UpdateNotifySettingsRequest from telethon.tl.functions.messages import ImportChatInviteRequest from userbot.utils import admin_cm...
36.363636
116
0.683333
6872e61c7f39ffe2f4cd715a56bc6cdf83f0e055
1,783
py
Python
json_analyze_round1.py
e-south/EC552_HW1
2926e1f8179a0651ad8d6b68828ff0d17fe7545b
[ "MIT" ]
null
null
null
json_analyze_round1.py
e-south/EC552_HW1
2926e1f8179a0651ad8d6b68828ff0d17fe7545b
[ "MIT" ]
null
null
null
json_analyze_round1.py
e-south/EC552_HW1
2926e1f8179a0651ad8d6b68828ff0d17fe7545b
[ "MIT" ]
null
null
null
import json import copy import gc # Firstly generate a bunch of new input json files with different coefficients to change parameter values in each input sensor def optimization(data, name1, name2, promoter, rbs): d = copy.deepcopy(data) for x_p in promoter: for x_r in rbs: for i i...
38.76087
127
0.58553
05aa9151b0f1756d704dae1da67039fe662a2f06
23,427
py
Python
mpcomp/core.py
sanjay051099/try2-
2ee165320476184a7390898c7a873844fc79e77a
[ "MIT" ]
199
2019-12-14T02:25:05.000Z
2022-03-31T11:26:12.000Z
mpcomp/core.py
sajib1066/opensource-job-portal
1288046e32f009c38742a28e4552ffafafabf684
[ "MIT" ]
91
2019-12-12T12:19:34.000Z
2022-03-25T05:52:04.000Z
mpcomp/core.py
sajib1066/opensource-job-portal
1288046e32f009c38742a28e4552ffafafabf684
[ "MIT" ]
131
2019-12-13T06:26:06.000Z
2022-03-29T19:45:18.000Z
#!/usr/bin/env python # # Copyright (C) 2008 Google 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...
39.977816
89
0.603321
e76c89b565a2e85bf7b69aefe43bdb07914e61c2
24,465
py
Python
qa/rpc-tests/fundrawtransaction.py
rellanium/DTMIToken
ccbcd7c8c4c41bb07a85f703625c1a2885c2d3db
[ "MIT" ]
null
null
null
qa/rpc-tests/fundrawtransaction.py
rellanium/DTMIToken
ccbcd7c8c4c41bb07a85f703625c1a2885c2d3db
[ "MIT" ]
null
null
null
qa/rpc-tests/fundrawtransaction.py
rellanium/DTMIToken
ccbcd7c8c4c41bb07a85f703625c1a2885c2d3db
[ "MIT" ]
2
2020-02-19T18:45:35.000Z
2020-03-25T01:02:02.000Z
#!/usr/bin/env python2 # Copyright (c) 2014-2015 The Bitcoin 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_framework import BitcoinTestFramework from test_framework.util import * # Creat...
40.438017
214
0.556019
d5d608eb9c11f8eb9e488447237e6edb2ca374b9
3,554
py
Python
utility/ADMM_TV.py
sanghviyashiitb/EmbeddingDLinISP-Github
bddcf5d80f087080c03dd9be1678db0b2f8202cd
[ "MIT" ]
2
2020-05-11T02:31:31.000Z
2021-06-10T06:58:48.000Z
utility/ADMM_TV.py
sanghviyashiitb/EmbeddingDLinISP-Github
bddcf5d80f087080c03dd9be1678db0b2f8202cd
[ "MIT" ]
null
null
null
utility/ADMM_TV.py
sanghviyashiitb/EmbeddingDLinISP-Github
bddcf5d80f087080c03dd9be1678db0b2f8202cd
[ "MIT" ]
6
2020-03-30T12:05:31.000Z
2020-12-31T08:14:10.000Z
import numpy as np import scipy.linalg as la import cv2 from scipy import ndimage import matplotlib.pyplot as plt def ADMM_TV(A, b, lambda_D): N = np.shape(A)[1] L = np.int32(N**0.5) # L is the size of image D_X, D_Y = get_TV_mat(L) D = np.concatenate((D_X, D_Y)) print(np.shape(D)) max_iter = 50 rho = 1e-2 ...
30.376068
107
0.628025
3a6fa274a515ccc062b62338fa82c6ed7d7ceaf6
4,757
py
Python
advanced_functionality/autogluon-tabular/container-training/inference.py
KRKirov/amazon-sagemaker-examples
477e99ceaf50bb3b3cacea18efd6c459ea08200d
[ "Apache-2.0" ]
2
2021-03-31T21:10:44.000Z
2021-04-03T04:27:26.000Z
advanced_functionality/autogluon-tabular/container-training/inference.py
KRKirov/amazon-sagemaker-examples
477e99ceaf50bb3b3cacea18efd6c459ea08200d
[ "Apache-2.0" ]
null
null
null
advanced_functionality/autogluon-tabular/container-training/inference.py
KRKirov/amazon-sagemaker-examples
477e99ceaf50bb3b3cacea18efd6c459ea08200d
[ "Apache-2.0" ]
1
2018-07-13T19:36:41.000Z
2018-07-13T19:36:41.000Z
import sys import os import argparse import logging import warnings import time import json import subprocess import copy warnings.filterwarnings('ignore', category=FutureWarning) import numpy as np import pandas as pd import pickle from io import StringIO from timeit import default_timer as timer from itertools impo...
34.722628
94
0.613412
95dc018b780737f0c724b194a92b77b2893ca86f
141
py
Python
tensorflow/ebook/weight_bias.py
cateto/python4NLP
1d2d5086f907bf75be01762bf0b384c76d8f704e
[ "MIT" ]
2
2021-12-16T22:38:27.000Z
2021-12-17T13:09:49.000Z
tensorflow/ebook/weight_bias.py
cateto/python4NLP
1d2d5086f907bf75be01762bf0b384c76d8f704e
[ "MIT" ]
null
null
null
tensorflow/ebook/weight_bias.py
cateto/python4NLP
1d2d5086f907bf75be01762bf0b384c76d8f704e
[ "MIT" ]
null
null
null
from typing import no_type_check import numpy as np x = np.array([0,1]) w = np.array([0.5, 0.5]) b = -0.7 w*x np.sum(w*x) np.sum(w*x) +b
10.846154
32
0.609929
819acc7fde8061681410921cdb1cf4906d691424
1,464
gyp
Python
ppapi/ppapi_shared_nacl.gyp
kjthegod/chromium
cf940f7f418436b77e15b1ea23e6fa100ca1c91a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
1
2019-11-28T10:46:52.000Z
2019-11-28T10:46:52.000Z
ppapi/ppapi_shared_nacl.gyp
kjthegod/chromium
cf940f7f418436b77e15b1ea23e6fa100ca1c91a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
ppapi/ppapi_shared_nacl.gyp
kjthegod/chromium
cf940f7f418436b77e15b1ea23e6fa100ca1c91a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
2
2015-03-27T11:15:39.000Z
2016-08-17T14:19:56.000Z
# Copyright 2014 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. { 'variables': { 'chromium_code': 1, }, 'includes': [ '../build/common_untrusted.gypi', 'ppapi_shared.gypi', ], 'conditions': [ ['d...
30.5
77
0.546448
1f0fb0cea312454984fd15d8b3a6ffa6875f7d38
343
py
Python
rov/movement/controller_constants.py
jiena76/X11-Core
95aec844822ab4e53c09accc48ef25d70e9b4f08
[ "MIT" ]
9
2017-09-21T22:00:46.000Z
2018-12-26T15:46:40.000Z
rov/movement/controller_constants.py
jiena76/X11-Core
95aec844822ab4e53c09accc48ef25d70e9b4f08
[ "MIT" ]
25
2017-10-06T17:25:51.000Z
2018-04-19T00:51:50.000Z
rov/movement/controller_constants.py
jiena76/X11-Core
95aec844822ab4e53c09accc48ef25d70e9b4f08
[ "MIT" ]
2
2017-10-19T22:41:37.000Z
2018-05-10T20:33:45.000Z
# Thruster controller class initializations THRUST_0 = 1 THRUST_1 = 4 THRUST_2 = 12 THRUST_3 = 2 THRUST_4 = 11 THRUST_5 = 5 THRUST_6 = 13 THRUST_7 = 3 #VERTICAL = TODO define constants for the vertical, horizontal, left, and right thrusters LIST_OF_THRUSTER = [THRUST_0, THRUST_1, THRUST_2, THRUST_3, THRUST_4, THRUST_...
24.5
99
0.772595
044efa0c0a9f854f8bdf438d9d32b45006f0319f
1,308
py
Python
tests/types/test_message.py
muhammedfurkan/aiogram
692c1340b4dda556da640e5f9ea2200848c06840
[ "MIT" ]
null
null
null
tests/types/test_message.py
muhammedfurkan/aiogram
692c1340b4dda556da640e5f9ea2200848c06840
[ "MIT" ]
4
2020-11-04T15:55:55.000Z
2020-11-08T21:36:02.000Z
tests/types/test_message.py
muhammedfurkan/aiogram
692c1340b4dda556da640e5f9ea2200848c06840
[ "MIT" ]
null
null
null
import datetime from aiogram import types from .dataset import MESSAGE message = types.Message(**MESSAGE) def test_export(): exported_chat = message.to_python() if not isinstance(exported_chat, dict): raise AssertionError if exported_chat != MESSAGE: raise AssertionError def test_mess...
24.222222
56
0.672783
97560b40103d6185702961e54e0d6d08323c132c
7,156
py
Python
pettingzoo/atari/base_atari_env.py
LuanAdemi/PettingZoo
176de029cf053095f5e5a705b49401856a76712c
[ "MIT" ]
null
null
null
pettingzoo/atari/base_atari_env.py
LuanAdemi/PettingZoo
176de029cf053095f5e5a705b49401856a76712c
[ "MIT" ]
null
null
null
pettingzoo/atari/base_atari_env.py
LuanAdemi/PettingZoo
176de029cf053095f5e5a705b49401856a76712c
[ "MIT" ]
null
null
null
import multi_agent_ale_py from pathlib import Path from pettingzoo import AECEnv import gym from gym.utils import seeding, EzPickle from pettingzoo.utils import agent_selector, wrappers from gym import spaces import numpy as np from pettingzoo.utils._parallel_env import _parallel_env_wrapper from pettingzoo.utils.to_pa...
36.324873
153
0.61976
ff0c7f532b9f902c13795410580c979a55acd637
1,203
py
Python
src/gradient.py
Quentin18/higgs-boson-challenge
67a85bcdf277a446e06aca5da0f07a123a5e4222
[ "MIT" ]
null
null
null
src/gradient.py
Quentin18/higgs-boson-challenge
67a85bcdf277a446e06aca5da0f07a123a5e4222
[ "MIT" ]
null
null
null
src/gradient.py
Quentin18/higgs-boson-challenge
67a85bcdf277a446e06aca5da0f07a123a5e4222
[ "MIT" ]
null
null
null
""" Gradient functions. """ import numpy as np from helpers import sigmoid def least_squares_gradient(y: np.ndarray, tx: np.ndarray, w: np.ndarray) -> np.ndarray: """Compute the least squares gradient.""" n = len(y) e = y - (tx @ w) return -(tx.T @ e) / n ...
31.657895
78
0.561929
0482d8b4f44f78e178ee066d568435d819054efe
3,206
py
Python
custom/icds/case_relationships.py
satyaakam/commcare-hq
233f255ff20ab3a16013e9fdfdb9c1dcf632e415
[ "BSD-3-Clause" ]
1
2020-07-14T13:00:23.000Z
2020-07-14T13:00:23.000Z
custom/icds/case_relationships.py
satyaakam/commcare-hq
233f255ff20ab3a16013e9fdfdb9c1dcf632e415
[ "BSD-3-Clause" ]
1
2021-06-02T04:45:16.000Z
2021-06-02T04:45:16.000Z
custom/icds/case_relationships.py
satyaakam/commcare-hq
233f255ff20ab3a16013e9fdfdb9c1dcf632e415
[ "BSD-3-Clause" ]
null
null
null
""" Some utility functions for traversing case relationships used in CAS. These utility functions assume the SQL case and form processing backend is used. """ from corehq.form_processor.models import CommCareCaseIndexSQL from custom.icds.exceptions import CaseRelationshipError def _get_exactly_one_parent_case(case, i...
37.27907
110
0.762009
9115a800220f250d2856097b05d26255cb7b02b0
5,796
py
Python
work/tools/train.py
YukSing12/lightweight-OCR
ce171e5ed03a4cbbc363c6adfa51f15f96fa4fc3
[ "MIT" ]
null
null
null
work/tools/train.py
YukSing12/lightweight-OCR
ce171e5ed03a4cbbc363c6adfa51f15f96fa4fc3
[ "MIT" ]
null
null
null
work/tools/train.py
YukSing12/lightweight-OCR
ce171e5ed03a4cbbc363c6adfa51f15f96fa4fc3
[ "MIT" ]
null
null
null
# 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...
36
112
0.65942
b9d08cb052d5e20c4a5526e8d924df11bd1967d4
26,625
py
Python
muranodashboard/tests/unit/environments/test_views.py
openstack/murano-dashboard
5e4429a23a442af215db7de084ee8304c375f715
[ "Apache-2.0" ]
37
2015-04-26T16:05:03.000Z
2021-05-19T15:37:46.000Z
muranodashboard/tests/unit/environments/test_views.py
openstack/murano-dashboard
5e4429a23a442af215db7de084ee8304c375f715
[ "Apache-2.0" ]
1
2018-01-24T14:53:01.000Z
2018-01-24T14:53:01.000Z
muranodashboard/tests/unit/environments/test_views.py
openstack/murano-dashboard
5e4429a23a442af215db7de084ee8304c375f715
[ "Apache-2.0" ]
23
2015-07-20T18:53:02.000Z
2019-04-23T09:54:23.000Z
# Copyright (c) 2016 AT&T 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 writing, so...
42.736758
79
0.679737
10e014ca2b50f4a78cc327d10b222b4dd8cce36b
1,368
py
Python
src/programy/dialog/splitter/nltk.py
motazsaad/fit-bot-fb-clt
580477aa1ec91855b621d9ae276f2705962f6a87
[ "MIT" ]
null
null
null
src/programy/dialog/splitter/nltk.py
motazsaad/fit-bot-fb-clt
580477aa1ec91855b621d9ae276f2705962f6a87
[ "MIT" ]
null
null
null
src/programy/dialog/splitter/nltk.py
motazsaad/fit-bot-fb-clt
580477aa1ec91855b621d9ae276f2705962f6a87
[ "MIT" ]
4
2019-04-01T15:42:23.000Z
2020-11-05T08:14:27.000Z
""" Copyright (c) 2016-2019 Keith Sterling http://www.keithsterling.com 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, m...
45.6
120
0.789474
956d0673bf30025263b2bfdc178e1a42c3a9bcf6
15,487
py
Python
bandit/core/manager.py
e0ne/bandit
7a2ef1bd3e04b2f4e4614d164964e0a7de08921e
[ "Apache-2.0" ]
1
2020-02-14T19:21:00.000Z
2020-02-14T19:21:00.000Z
bandit/core/manager.py
e0ne/bandit
7a2ef1bd3e04b2f4e4614d164964e0a7de08921e
[ "Apache-2.0" ]
null
null
null
bandit/core/manager.py
e0ne/bandit
7a2ef1bd3e04b2f4e4614d164964e0a7de08921e
[ "Apache-2.0" ]
null
null
null
# -*- coding:utf-8 -*- # # Copyright 2014 Hewlett-Packard Development Company, L.P. # # SPDX-License-Identifier: Apache-2.0 import collections import fnmatch import json import logging import os import sys import tokenize import traceback import six from bandit.core import constants as b_constants from bandit.core i...
38.14532
79
0.60328
2be26baf29560f00ef36bc7b083f0f52f50351d0
787
py
Python
src/Trilinear Interpolation/Lagrange.py
Roseck16/Interpolation
20513e02241824e37c9eab6642fc2f3139dd8e00
[ "MIT" ]
1
2021-07-14T03:33:57.000Z
2021-07-14T03:33:57.000Z
src/Trilinear Interpolation/Lagrange.py
Roseck16/Interpolation
20513e02241824e37c9eab6642fc2f3139dd8e00
[ "MIT" ]
null
null
null
src/Trilinear Interpolation/Lagrange.py
Roseck16/Interpolation
20513e02241824e37c9eab6642fc2f3139dd8e00
[ "MIT" ]
null
null
null
import numpy as np def point_lagrange3D(x, y, z, pointX, pointY): n = len(x) m = len(y) s = 0 for i in range(n): for j in range(m): L_x = product(x, pointX, i) L_y = product(y, pointY, j) s += z[i, j] * L_x * L_y return s def lagrange3D(x, y, z, vectX, v...
26.233333
88
0.515883
03a204dc806efc5e518f209e3e2f78005458c335
3,184
py
Python
self_supervised/base/replay_buffer/replay_buffer_base.py
fgitmichael/SelfSupevisedSkillDiscovery
60eee11cfd67046190dd2784bf40e97bdbed9d40
[ "MIT" ]
null
null
null
self_supervised/base/replay_buffer/replay_buffer_base.py
fgitmichael/SelfSupevisedSkillDiscovery
60eee11cfd67046190dd2784bf40e97bdbed9d40
[ "MIT" ]
6
2021-02-02T23:00:02.000Z
2022-01-13T03:13:51.000Z
self_supervised/base/replay_buffer/replay_buffer_base.py
fgitmichael/SelfSupevisedSkillDiscovery
60eee11cfd67046190dd2784bf40e97bdbed9d40
[ "MIT" ]
null
null
null
import abc import os import torch from typing import List import numpy as np from rlkit.data_management.replay_buffer import ReplayBuffer import self_supervised.utils.typed_dicts as td # Adding skills class SequenceReplayBuffer(ReplayBuffer, metaclass=abc.ABCMeta): @abc.abstractmethod def add_sample(self, ...
25.070866
79
0.557789
e75ec46582e91f5c4eabe0bc9a7428840fb7c870
1,317
py
Python
blitz/cifar10_tutorial_0.py
miraclew/pytorch-tutorials
ba30df81d970ecd8bc464e6e87ea8a83e6b48167
[ "MIT" ]
null
null
null
blitz/cifar10_tutorial_0.py
miraclew/pytorch-tutorials
ba30df81d970ecd8bc464e6e87ea8a83e6b48167
[ "MIT" ]
null
null
null
blitz/cifar10_tutorial_0.py
miraclew/pytorch-tutorials
ba30df81d970ecd8bc464e6e87ea8a83e6b48167
[ "MIT" ]
null
null
null
import torch import torchvision import torchvision.transforms as transforms import numpy as np import matplotlib.pyplot as plt transform = transforms.Compose( [transforms.ToTensor(), transforms.Normalize((0.5, 0.5, 0.5), (0.5, 0.5, 0.5))]) trainset = torchvision.datasets.CIFAR10(root='./data', train=True, ...
32.925
75
0.620349
108b5565d5e321ca8bb7d194511b45234021b817
510
py
Python
mmdet/models/necks/__init__.py
Anonymous-px/ID2445_DFFT
89a1a482c1b9d5a664dc9e77536ac8c65dc6b614
[ "Apache-2.0" ]
null
null
null
mmdet/models/necks/__init__.py
Anonymous-px/ID2445_DFFT
89a1a482c1b9d5a664dc9e77536ac8c65dc6b614
[ "Apache-2.0" ]
null
null
null
mmdet/models/necks/__init__.py
Anonymous-px/ID2445_DFFT
89a1a482c1b9d5a664dc9e77536ac8c65dc6b614
[ "Apache-2.0" ]
null
null
null
from .bfp import BFP from .channel_mapper import ChannelMapper from .fpg import FPG from .fpn import FPN from .fpn_carafe import FPN_CARAFE from .hrfpn import HRFPN from .nas_fpn import NASFPN from .nasfcos_fpn import NASFCOS_FPN from .pafpn import PAFPN from .rfp import RFP from .yolo_neck import YOLOV3Neck from .dila...
28.333333
76
0.758824
82b0f427753e72d98d5b0da89daecd0fd9c3d231
18,293
py
Python
homeassistant/components/solaredge/sensor.py
jonasjeeliasson/core
0301706fc631ad1f2cd2532667ba9dfe2f856198
[ "Apache-2.0" ]
4
2020-08-10T20:02:24.000Z
2022-01-31T02:14:22.000Z
homeassistant/components/solaredge/sensor.py
jagadeeshvenkatesh/core
1bd982668449815fee2105478569f8e4b5670add
[ "Apache-2.0" ]
78
2020-07-23T07:13:08.000Z
2022-03-31T06:02:04.000Z
homeassistant/components/solaredge/sensor.py
jagadeeshvenkatesh/core
1bd982668449815fee2105478569f8e4b5670add
[ "Apache-2.0" ]
3
2022-01-17T20:10:54.000Z
2022-01-17T20:17:22.000Z
"""Support for SolarEdge Monitoring API.""" from __future__ import annotations from abc import abstractmethod from datetime import date, datetime, timedelta import logging from typing import Any from requests.exceptions import ConnectTimeout, HTTPError from solaredge import Solaredge from stringcase import snakecase ...
32.842011
89
0.623517
a0a6352ffdb2f7f9a8a3ac04fa0e09b11034b07c
14,609
py
Python
thumbor/engines/pil.py
phantomwhale/thumbor
85d9df9bcb3847f9efb8cbb451d9cc6e13f5c7aa
[ "MIT" ]
null
null
null
thumbor/engines/pil.py
phantomwhale/thumbor
85d9df9bcb3847f9efb8cbb451d9cc6e13f5c7aa
[ "MIT" ]
null
null
null
thumbor/engines/pil.py
phantomwhale/thumbor
85d9df9bcb3847f9efb8cbb451d9cc6e13f5c7aa
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # thumbor imaging service # https://github.com/thumbor/thumbor/wiki # Licensed under the MIT license: # http://www.opensource.org/licenses/mit-license # Copyright (c) 2011 globo.com thumbor@googlegroups.com import os from io import BytesIO from subprocess import PIPE, Popen ...
34.700713
91
0.578958
5d47653906c57d346fcecd5b915a90771a724794
5,307
py
Python
pysnmp/EdgeSwitch-UDLD-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
11
2021-02-02T16:27:16.000Z
2021-08-31T06:22:49.000Z
pysnmp/EdgeSwitch-UDLD-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
75
2021-02-24T17:30:31.000Z
2021-12-08T00:01:18.000Z
pysnmp/EdgeSwitch-UDLD-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module EdgeSwitch-UDLD-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/EdgeSwitch-UDLD-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 18:57:02 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default...
126.357143
671
0.77313
7a785a106498a30956a5cc51c0a1686e0864e0c6
222
py
Python
tests/test_env_var.py
MaayanLab/creeds
7d580c91ca45c03e34bbc0d1928668f266ff13d9
[ "CC0-1.0" ]
2
2019-01-10T18:10:45.000Z
2019-04-05T13:47:01.000Z
tests/test_env_var.py
MaayanLab/creeds
7d580c91ca45c03e34bbc0d1928668f266ff13d9
[ "CC0-1.0" ]
1
2019-05-09T21:25:31.000Z
2019-05-13T14:26:30.000Z
tests/test_env_var.py
MaayanLab/creeds
7d580c91ca45c03e34bbc0d1928668f266ff13d9
[ "CC0-1.0" ]
2
2018-12-21T23:59:27.000Z
2019-10-24T18:26:26.000Z
import os import unittest class TestEnvVar(unittest.TestCase): ''' Test if environmental variable `CONFIG_OBJ` is set ''' def test_env_var(self): self.assertEquals(os.environ['CONFIG_OBJ'], 'config.TestingConfig')
20.181818
69
0.756757