hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
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
248
max_issues_repo_name
stringlengths
5
125
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
248
max_forks_repo_name
stringlengths
5
125
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
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
5aecff436e5a3929428f67cdb7fbb6a29d787f25
208
py
Python
wthpython/return_none/nothing.py
Nobodylesszb/python_study
56c419df4c5deffa3d14c2ffb03c6a39a7d945be
[ "MIT" ]
null
null
null
wthpython/return_none/nothing.py
Nobodylesszb/python_study
56c419df4c5deffa3d14c2ffb03c6a39a7d945be
[ "MIT" ]
null
null
null
wthpython/return_none/nothing.py
Nobodylesszb/python_study
56c419df4c5deffa3d14c2ffb03c6a39a7d945be
[ "MIT" ]
null
null
null
some_list = [1, 2, 3] some_dict = { "key_1": 1, "key_2": 2, "key_3": 3 } some_list = some_list.append(4) some_dict = some_dict.update({"key_4": 4}) print(some_list,some_list) """ output: None None """
13.866667
42
0.629808
0
0
0
0
0
0
0
0
53
0.254808
5aed22439a90e2493b4099bcd8a18e6edf2db414
2,254
py
Python
python/LPG/CRUD.py
andreluizdsantos/Curso_ADS
bdff1f96cfc22f91423bc14f383f3e69b93deb6f
[ "MIT" ]
1
2020-08-31T16:53:18.000Z
2020-08-31T16:53:18.000Z
python/LPG/CRUD.py
andreluizdsantos/Curso_ADS
bdff1f96cfc22f91423bc14f383f3e69b93deb6f
[ "MIT" ]
null
null
null
python/LPG/CRUD.py
andreluizdsantos/Curso_ADS
bdff1f96cfc22f91423bc14f383f3e69b93deb6f
[ "MIT" ]
null
null
null
import sqlite3 #importa a bibliotéca sqlite3 desc = ["Código", "Nome", "Telefone"] lista = [None, None] menu = [' 1 - Cadastrar:', ' 2 - Consultar:', ' 3 - Excluir/Criar Tabela:', ' 9 - Sair e Salvar'] conector = sqlite3.connect('teste.db') #conecta o banco de dados cursor = conector.cursor() #inicia o cursor while T...
49
170
0.632209
0
0
0
0
0
0
0
0
1,410
0.623067
5af27277b4b6e81b6335be53146342bffc0587f3
638
py
Python
tests/test_CodonDesign.py
dzhang32/codino
7e799e1ebe52073f26d449a088600769ca46d661
[ "MIT" ]
null
null
null
tests/test_CodonDesign.py
dzhang32/codino
7e799e1ebe52073f26d449a088600769ca46d661
[ "MIT" ]
null
null
null
tests/test_CodonDesign.py
dzhang32/codino
7e799e1ebe52073f26d449a088600769ca46d661
[ "MIT" ]
null
null
null
from codino.data import CodonDesign cd = CodonDesign() def test_default_freq(): assert cd.first.freq == {"A": 0, "T": 0, "C": 0, "G": 0} assert cd.second.freq == {"A": 0, "T": 0, "C": 0, "G": 0} assert cd.third.freq == {"A": 0, "T": 0, "C": 0, "G": 0} def test_set_codon_design(): cd.set_codon_des...
29
67
0.454545
0
0
0
0
0
0
0
0
90
0.141066
5af6d73e24f9be5da73ff272a9a33f09624bf320
125
py
Python
daraja_api/clients/b2c_api_client.py
jakhax/python_daraja_api
7584679d0c5eaa2beafbfa221254e6370f40f12d
[ "MIT" ]
4
2019-10-30T09:19:58.000Z
2020-04-18T12:32:09.000Z
daraja_api/clients/b2c_api_client.py
jakhax/python_daraja_api
7584679d0c5eaa2beafbfa221254e6370f40f12d
[ "MIT" ]
2
2019-10-31T20:39:57.000Z
2019-10-31T20:41:32.000Z
daraja_api/clients/b2c_api_client.py
jakhax/python_daraja_api
7584679d0c5eaa2beafbfa221254e6370f40f12d
[ "MIT" ]
3
2020-04-17T23:03:25.000Z
2021-05-14T08:26:07.000Z
from daraja_api.clients.abstract_api_client import AbstractApiClient class AbstractB2CApiClient(AbstractApiClient): pass
31.25
68
0.872
55
0.44
0
0
0
0
0
0
0
0
5af84c2461053125e4dcea1ce09da4c673cad735
386
py
Python
solutions/748.shortest-completing-word.242496979.ac.py
satu0king/Leetcode-Solutions
2edff60d76c2898d912197044f6284efeeb34119
[ "MIT" ]
78
2020-10-22T11:31:53.000Z
2022-02-22T13:27:49.000Z
solutions/748.shortest-completing-word.242496979.ac.py
satu0king/Leetcode-Solutions
2edff60d76c2898d912197044f6284efeeb34119
[ "MIT" ]
null
null
null
solutions/748.shortest-completing-word.242496979.ac.py
satu0king/Leetcode-Solutions
2edff60d76c2898d912197044f6284efeeb34119
[ "MIT" ]
26
2020-10-23T15:10:44.000Z
2021-11-07T16:13:50.000Z
class Solution(object): def shortestCompletingWord(self, licensePlate, words): words.sort(key = len) s = collections.Counter() for c in licensePlate.lower(): if c.isalpha(): s[c]+=1 for word in words: if len(s - collections.Counter(word.lower...
27.571429
63
0.515544
376
0.974093
0
0
0
0
0
0
2
0.005181
5af8db425d863a789a0d294d5dea7672f67dc1bf
2,085
py
Python
imdbCrawler/items.py
irfanandriansyah1997/imdbCrawler
04206b779735777c9025160f8bd8dad34517edfe
[ "MIT" ]
null
null
null
imdbCrawler/items.py
irfanandriansyah1997/imdbCrawler
04206b779735777c9025160f8bd8dad34517edfe
[ "MIT" ]
null
null
null
imdbCrawler/items.py
irfanandriansyah1997/imdbCrawler
04206b779735777c9025160f8bd8dad34517edfe
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Define here the models for your scraped items # # See documentation in: # http://doc.scrapy.org/en/latest/topics/items.html import scrapy class ActressList(scrapy.Item): actress_id = scrapy.Field() actress_link = scrapy.Field() actress_name = scrapy.Field() actress_photo = s...
27.8
51
0.693046
1,901
0.911751
0
0
0
0
0
0
145
0.069544
5afabc1c92de296fe846af7a2b027458e2772a60
3,355
py
Python
test/query_test.py
mochen1228/PyQuakes
8e57c72d45e33812e9af5bd01fbce6c96bcd936d
[ "MIT" ]
2
2021-06-07T21:23:30.000Z
2021-06-08T17:07:52.000Z
test/query_test.py
mochen1228/PyQuakes
8e57c72d45e33812e9af5bd01fbce6c96bcd936d
[ "MIT" ]
null
null
null
test/query_test.py
mochen1228/PyQuakes
8e57c72d45e33812e9af5bd01fbce6c96bcd936d
[ "MIT" ]
1
2021-06-07T21:30:09.000Z
2021-06-07T21:30:09.000Z
import os import sys import unittest from datetime import datetime import requests sys.path.append(os.path.abspath('..')) from src.earthquake_query import EarthquakeQuery from src.timeframe import TimeFrame from src.location import Rectangle, Circle, RadiusUnit, GeoRectangle from src.enum.contributor import Contribut...
40.914634
112
0.692697
2,980
0.888227
0
0
0
0
0
0
620
0.184799
5afbc89d9111d4e29b3746a8d7c2d9d9aed991d4
476
py
Python
requests_respectful/__init__.py
OpenHumans/oh-rescuetime-source
527aa550d83731521c473a61df385139a8ae75ac
[ "MIT" ]
113
2016-12-14T19:11:22.000Z
2021-12-21T10:57:27.000Z
requests_respectful/__init__.py
OpenHumans/oh-rescuetime-source
527aa550d83731521c473a61df385139a8ae75ac
[ "MIT" ]
39
2020-03-25T09:17:52.000Z
2020-07-23T08:06:42.000Z
requests_respectful/__init__.py
OpenHumans/oh-rescuetime-source
527aa550d83731521c473a61df385139a8ae75ac
[ "MIT" ]
17
2017-02-02T06:27:35.000Z
2021-08-17T08:55:19.000Z
""" requests-respectful A simple but powerful addon to the beloved requests library. Seamlessly respect service rate limits. Be a good Netizen. Keeps track of any amount of realms simultaneously. Split-second precision. :copyright: (c) 2016 by Nicholas Brochu. :license: Apache 2, see LICENSE f...
28
79
0.743697
0
0
0
0
0
0
0
0
364
0.764706
5afbcaba91ba4365de573ce472da35c76ce04cae
23,170
py
Python
intersight/models/sdwan_router_node.py
sdnit-se/intersight-python
551f7685c0f76bb8af60ec83ffb6f9672d49a4ae
[ "Apache-2.0" ]
21
2018-03-29T14:20:35.000Z
2021-10-13T05:11:41.000Z
intersight/models/sdwan_router_node.py
sdnit-se/intersight-python
551f7685c0f76bb8af60ec83ffb6f9672d49a4ae
[ "Apache-2.0" ]
14
2018-01-30T15:45:46.000Z
2022-02-23T14:23:21.000Z
intersight/models/sdwan_router_node.py
sdnit-se/intersight-python
551f7685c0f76bb8af60ec83ffb6f9672d49a4ae
[ "Apache-2.0" ]
18
2018-01-03T15:09:56.000Z
2021-07-16T02:21:54.000Z
# coding: utf-8 """ Cisco Intersight OpenAPI specification. The Cisco Intersight OpenAPI specification. OpenAPI spec version: 1.0.9-1461 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from pprint import pformat from six import iteritems import re class SdwanRouterNode(o...
33.77551
738
0.646137
22,872
0.987139
0
0
16,337
0.705093
0
0
14,559
0.628356
5afce0b13a04c2e681d1b3f1a01d8ccfeafdc806
2,256
py
Python
2021/day_10.py
tony-sappe/aoc-2021
526bec249467c5a28bbf68516c1918b8be9c8045
[ "MIT" ]
1
2022-02-19T10:13:54.000Z
2022-02-19T10:13:54.000Z
2021/day_10.py
tony-sappe/aoc-2021
526bec249467c5a28bbf68516c1918b8be9c8045
[ "MIT" ]
null
null
null
2021/day_10.py
tony-sappe/aoc-2021
526bec249467c5a28bbf68516c1918b8be9c8045
[ "MIT" ]
null
null
null
from pathlib import Path from typing import Iterable, List, Tuple Sample_Input = """[({(<(())[]>[[{[]{<()<>> [(()[<>])]({[<{<<[]>>( {([(<{}[<>[]}>{[]{[(<()> (((({<>}<{<{<>}{[]{[]{} [[<[([]))<([[{}[[()]]] [{[{({}]{}}([{[{{{}}([] {<[[]]>}<{[{[{[]{()[[[] [<(<(<(<{}))><([]([]() <{([([[(<>()){}]>(<<{{ <{([{{}}[<[[[<>{}]]]>...
26.541176
96
0.47828
0
0
0
0
0
0
0
0
522
0.231383
85019f3d7d1cae80676d5bebcb02bf3cf14e54ec
4,028
py
Python
src/maestro_driver.py
EnstaBretagneClubRobo/ros_maestro
dae1f264beb22e1527eb597a2bed854abba91b96
[ "MIT" ]
null
null
null
src/maestro_driver.py
EnstaBretagneClubRobo/ros_maestro
dae1f264beb22e1527eb597a2bed854abba91b96
[ "MIT" ]
null
null
null
src/maestro_driver.py
EnstaBretagneClubRobo/ros_maestro
dae1f264beb22e1527eb597a2bed854abba91b96
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding=utf-8 # Author : Simon # Notes : Utilise un message specifique # Input : Reçois les commandes des autres noeuds pour les moteurs sous la forme d'une pin et d'une commande en pwm import rospy from std_msgs.msg import Float32 from maestro.maestro import Controller # from maestro_sim.maes...
35.964286
126
0.634558
2,447
0.605393
0
0
0
0
0
0
1,357
0.335725
8502fa85f9bc5db59d062f1bedd1d8a262689de3
8,733
py
Python
examples/6tisch/simple-node/simulations/simulation.py
lucasschnugger/contiki-ng
d61a7c60790382168f3ef4823e80a32e1c307f29
[ "BSD-3-Clause" ]
null
null
null
examples/6tisch/simple-node/simulations/simulation.py
lucasschnugger/contiki-ng
d61a7c60790382168f3ef4823e80a32e1c307f29
[ "BSD-3-Clause" ]
null
null
null
examples/6tisch/simple-node/simulations/simulation.py
lucasschnugger/contiki-ng
d61a7c60790382168f3ef4823e80a32e1c307f29
[ "BSD-3-Clause" ]
null
null
null
import os, time, shutil, random, re from xml.etree import cElementTree as ET def run_test(cooja, dir, test, seed): # run test simulation with seed command = f"java -jar {cooja} -nogui={dir}{test} -random-seed={seed}" os.system(command) def remove_command_in_test(dir, test): file = f"{dir}{test}" ...
42.6
169
0.642276
0
0
0
0
0
0
0
0
3,352
0.383831
850420df0410ab05f70f13324e6ce9a306169223
520
py
Python
app/recipe/urls.py
mans-18/recipe-app-api
6263bf90e5923d314b725a1cd6b6919378fc0141
[ "MIT" ]
null
null
null
app/recipe/urls.py
mans-18/recipe-app-api
6263bf90e5923d314b725a1cd6b6919378fc0141
[ "MIT" ]
null
null
null
app/recipe/urls.py
mans-18/recipe-app-api
6263bf90e5923d314b725a1cd6b6919378fc0141
[ "MIT" ]
null
null
null
from django.urls import path, include from rest_framework.routers import DefaultRouter from recipe import views # The DefaultRouter auto generates the urls for a viewset. # One viewset may have multiple urls. router = DefaultRouter() router.register('tags', views.TagViewSet) router.register('ingredients', views.Ingre...
27.368421
58
0.769231
0
0
0
0
0
0
0
0
190
0.365385
8506b84f31a4d3a7cbcf45361a19e0b5e9647f9e
5,217
py
Python
web2py-appliances-master/TinyWebsite/controllers/pages.py
wantsomechocolate/WantsomeBeanstalk
8c8a0a80490d04ea52661a3114fd3db8de65a01e
[ "BSD-3-Clause" ]
null
null
null
web2py-appliances-master/TinyWebsite/controllers/pages.py
wantsomechocolate/WantsomeBeanstalk
8c8a0a80490d04ea52661a3114fd3db8de65a01e
[ "BSD-3-Clause" ]
null
null
null
web2py-appliances-master/TinyWebsite/controllers/pages.py
wantsomechocolate/WantsomeBeanstalk
8c8a0a80490d04ea52661a3114fd3db8de65a01e
[ "BSD-3-Clause" ]
null
null
null
#from gluon.debug import dbg def show_page(): """ Show the requested page """ from gluon.tools import prettydate manager_toolbar = ManagerToolbar('page') if request.args(0) and request.args(0).isdigit(): page = db.page(request.args(0)) else: page = db(db.page.url==reque...
44.589744
115
0.593253
0
0
0
0
2,944
0.564309
0
0
969
0.185739
850800f055d743a3abfb7230c39b201f6bb9fe52
4,307
py
Python
tests/unit/test_units.py
timothygebhard/hsr4hci
0b38c26fac2fee9e564a9ab981fca715d5577e1e
[ "BSD-3-Clause" ]
1
2022-03-24T04:33:06.000Z
2022-03-24T04:33:06.000Z
tests/unit/test_units.py
timothygebhard/hsr4hci
0b38c26fac2fee9e564a9ab981fca715d5577e1e
[ "BSD-3-Clause" ]
null
null
null
tests/unit/test_units.py
timothygebhard/hsr4hci
0b38c26fac2fee9e564a9ab981fca715d5577e1e
[ "BSD-3-Clause" ]
null
null
null
""" Tests for units.py """ # ----------------------------------------------------------------------------- # IMPORTS # ----------------------------------------------------------------------------- from astropy.units import Quantity, UnitsError, UnitConversionError import numpy as np import pytest from hsr4hci.units...
34.18254
79
0.618296
0
0
0
0
0
0
0
0
1,441
0.334572
8508ac206895abe5c9050cca651b7662bc4d25d1
2,309
py
Python
bpn_init.py
praneethnamburi/blender-ScriptViz
95554873ecebc0aa6b151d90d2ecf952be4b8880
[ "MIT" ]
10
2020-06-12T06:39:11.000Z
2022-02-03T00:24:28.000Z
bpn_init.py
praneethnamburi/blender-ScriptViz
95554873ecebc0aa6b151d90d2ecf952be4b8880
[ "MIT" ]
null
null
null
bpn_init.py
praneethnamburi/blender-ScriptViz
95554873ecebc0aa6b151d90d2ecf952be4b8880
[ "MIT" ]
1
2021-04-13T01:55:16.000Z
2021-04-13T01:55:16.000Z
""" Initialization code for apps using Praneeth's blender python module. Also useful for initalizing blender's workspace. Usage: from bpn_init import * pn.reload() # useful when developing the module alongside the app env.reset() # if you want to delete objects, this is useful! """ #pylint:disable=unused-i...
29.227848
118
0.725422
0
0
0
0
0
0
0
0
1,639
0.709831
850acd6db723d84ce7aaa424a7eb7c331b08e2c7
81
py
Python
main.py
iuliansimion/Chevalley
9122b1002db99c352533c99f7e143f5be8f8c34b
[ "MIT" ]
null
null
null
main.py
iuliansimion/Chevalley
9122b1002db99c352533c99f7e143f5be8f8c34b
[ "MIT" ]
null
null
null
main.py
iuliansimion/Chevalley
9122b1002db99c352533c99f7e143f5be8f8c34b
[ "MIT" ]
null
null
null
import chevalley as chv tmp = chv.LieType("a", 2) tmp.curtis.report_latex_all()
16.2
29
0.740741
0
0
0
0
0
0
0
0
3
0.037037
850ce0650d166e24edaa3081144f34f40dfdab65
45,045
py
Python
pynmrstar/entry.py
uwbmrb/PyNMRSTAR
c6e3cdccb4aa44dfbc3b4e984837a6bcde3cf171
[ "MIT" ]
16
2017-02-02T05:00:50.000Z
2021-05-25T11:13:15.000Z
pynmrstar/entry.py
uwbmrb/PyNMRSTAR
c6e3cdccb4aa44dfbc3b4e984837a6bcde3cf171
[ "MIT" ]
29
2016-07-14T21:02:18.000Z
2021-06-26T17:24:07.000Z
pynmrstar/entry.py
bmrb-io/PyNMRSTAR
55df5bf7de192e7a6c95f37e0756f09e3f504170
[ "MIT" ]
4
2016-04-14T16:29:49.000Z
2017-02-28T02:01:57.000Z
import hashlib import json import logging import warnings from io import StringIO from typing import TextIO, BinaryIO, Union, List, Optional, Dict, Any, Tuple from pynmrstar import definitions, utils, loop as loop_mod, parser as parser_mod, saveframe as saveframe_mod from pynmrstar._internal import _json_serialize, _i...
47.971246
120
0.561772
44,580
0.989677
192
0.004262
8,656
0.192163
0
0
17,565
0.389943
850e1110baca1c14a7d48fb08c645b57e4e9158c
2,862
py
Python
tests/compilation/yaml/test_yaml_load_inclusion.py
lasta/preacher
5e50f8eb930fac72a788e7614eb5a85903f7bde6
[ "MIT" ]
null
null
null
tests/compilation/yaml/test_yaml_load_inclusion.py
lasta/preacher
5e50f8eb930fac72a788e7614eb5a85903f7bde6
[ "MIT" ]
null
null
null
tests/compilation/yaml/test_yaml_load_inclusion.py
lasta/preacher
5e50f8eb930fac72a788e7614eb5a85903f7bde6
[ "MIT" ]
null
null
null
import os from io import StringIO from pytest import mark, raises from preacher.compilation.yaml import YamlError, load @mark.parametrize(('content', 'expected_message'), [ ('!include []', '", line 1, column 1'), ('!include {}', '", line 1, column 1'), ]) def test_given_invalid_inclusion(content, expected_m...
33.670588
87
0.636268
0
0
0
0
351
0.122642
0
0
1,166
0.407407
850f175e41fd56a4797f57b9509f4632b0f87cf8
657
py
Python
death_functions.py
Yamgrenade/Gou
fa4fea253ef1a7d6fdc4f59b51d27d7442cc3ded
[ "MIT" ]
null
null
null
death_functions.py
Yamgrenade/Gou
fa4fea253ef1a7d6fdc4f59b51d27d7442cc3ded
[ "MIT" ]
9
2019-08-30T15:02:25.000Z
2019-10-03T17:33:54.000Z
death_functions.py
Yamgrenade/Gou
fa4fea253ef1a7d6fdc4f59b51d27d7442cc3ded
[ "MIT" ]
1
2020-07-13T16:29:19.000Z
2020-07-13T16:29:19.000Z
import tcod as libtcod from render_functions import RenderOrder from game_states import GameStates from game_messages import Message def kill_player(player): player.char = '%' player.color = libtcod.dark_red return Message('YOU DIED', libtcod.red), GameStates.PLAYER_DEAD def kill_monster(monster): ...
26.28
87
0.730594
0
0
0
0
0
0
0
0
47
0.071537
850fc416eea9a42898354a3b01b19081bd0c187e
2,370
py
Python
facebook_post_scrapper.py
dev-strender/facebook_scrapper
400a16bf54e2b3dcb3fd3bac62df96e5fe418b15
[ "MIT" ]
2
2015-03-08T12:27:22.000Z
2015-03-08T12:27:24.000Z
facebook_post_scrapper.py
dev-strender/facebook_scrapper
400a16bf54e2b3dcb3fd3bac62df96e5fe418b15
[ "MIT" ]
null
null
null
facebook_post_scrapper.py
dev-strender/facebook_scrapper
400a16bf54e2b3dcb3fd3bac62df96e5fe418b15
[ "MIT" ]
null
null
null
#-*- coding: utf-8 -*- #from datetime import datetime #import facebook import urllib2 import mechanize import json import sys, os from config import fb_email, fb_pass, app_id, group_id, limit BASE_DIR = os.path.dirname(os.path.abspath(__file__)) facebook_app_link='https://www.facebook.com/dialog/oauth?scope=manage_...
34.852941
340
0.693249
0
0
0
0
0
0
0
0
1,189
0.501688
85105c4f6fcd9260004a2cb0b270501f073f2833
77
py
Python
curfuel/__init__.py
tamentis/curfuel
0cf2d06efc452f05d5eedbe53fb48c86c5ec4023
[ "ISC", "MIT" ]
1
2020-11-30T10:38:07.000Z
2020-11-30T10:38:07.000Z
curfuel/__init__.py
tamentis/curfuel
0cf2d06efc452f05d5eedbe53fb48c86c5ec4023
[ "ISC", "MIT" ]
null
null
null
curfuel/__init__.py
tamentis/curfuel
0cf2d06efc452f05d5eedbe53fb48c86c5ec4023
[ "ISC", "MIT" ]
null
null
null
from daemonapp import DaemonApp from tank import Tank __version__ = "0.1.1"
15.4
31
0.779221
0
0
0
0
0
0
0
0
7
0.090909
8515a99b3eb2ef4eb36f62853a3bd0233a514cfc
4,458
py
Python
tests/cache_test.py
arnib/ssm-cache-python
298bfc38a15cfd4b0de42412a335b61b9971ba22
[ "MIT" ]
1
2020-05-25T08:26:55.000Z
2020-05-25T08:26:55.000Z
tests/cache_test.py
benkehoe/ssm-cache-python
c21c536b7ba38494bfccafea311a853f50360609
[ "MIT" ]
null
null
null
tests/cache_test.py
benkehoe/ssm-cache-python
c21c536b7ba38494bfccafea311a853f50360609
[ "MIT" ]
null
null
null
import os import sys from datetime import datetime, timedelta import boto3 from moto import mock_ssm from . import TestBase sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))) from ssm_cache import SSMParameter, InvalidParam @mock_ssm class TestSSMCache(TestBase): def setUp(self): ...
35.951613
82
0.651189
4,189
0.939659
0
0
4,199
0.941902
0
0
689
0.154554
851700e39249d084847a674d19f6747456e04470
8,797
py
Python
bk7084/graphics/util.py
bk7084/framework
c364174409c63dbee90e36d8b08fde17df482e8c
[ "Apache-2.0" ]
1
2022-03-29T10:25:10.000Z
2022-03-29T10:25:10.000Z
bk7084/graphics/util.py
bk7084/framework
c364174409c63dbee90e36d8b08fde17df482e8c
[ "Apache-2.0" ]
3
2021-11-18T23:35:40.000Z
2021-12-02T20:00:06.000Z
bk7084/graphics/util.py
bk7084/framework
c364174409c63dbee90e36d8b08fde17df482e8c
[ "Apache-2.0" ]
null
null
null
import abc import atexit import enum import re import OpenGL.error from .variable import glsl_types from .. import gl import uuid class BindSemanticObject(metaclass=abc.ABCMeta): def __enter__(self): self._activate() return self def __exit__(self, exc_type, exc_val, exc_tb): self._de...
33.704981
125
0.636353
8,420
0.957144
0
0
7,493
0.851768
0
0
3,188
0.362396
85184c796f1842707b6d4adf1b17e780221e13fb
1,403
py
Python
autograd/optim.py
brandontrabucco/autograd
38687c67d253a1347c1bba6445169e43f1db63e4
[ "MIT" ]
null
null
null
autograd/optim.py
brandontrabucco/autograd
38687c67d253a1347c1bba6445169e43f1db63e4
[ "MIT" ]
null
null
null
autograd/optim.py
brandontrabucco/autograd
38687c67d253a1347c1bba6445169e43f1db63e4
[ "MIT" ]
null
null
null
"""Author: Brandon Trabucco, Copyright 2019 Implements dynamic computational graphs with an interface like pytorch. Also uses the ADAM optimizer.""" import numpy as np import autograd.nodes #################### #### OPTIMIZERS #### #################### class Adam(autograd.nodes.Optimizer): de...
31.886364
82
0.570919
1,128
0.803991
0
0
0
0
0
0
345
0.245902
85193cd46f2b51d89264d567ad17c94fb2c3a891
1,524
py
Python
src/lcmap/client/api/auth.py
lcmap/client-py
fc356d9b2917f8e2d0e73048c9bf86982caa6676
[ "NASA-1.3" ]
null
null
null
src/lcmap/client/api/auth.py
lcmap/client-py
fc356d9b2917f8e2d0e73048c9bf86982caa6676
[ "NASA-1.3" ]
null
null
null
src/lcmap/client/api/auth.py
lcmap/client-py
fc356d9b2917f8e2d0e73048c9bf86982caa6676
[ "NASA-1.3" ]
null
null
null
""" The authentication module holds the Auth class which is is not only responsible for the action of logging in, but also providing accessor method to the data obtained upon a successful login. """ import logging from lcmap.client.api import routes log = logging.getLogger(__name__) context = routes.auth_context lo...
27.214286
79
0.629265
1,137
0.746063
0
0
0
0
0
0
319
0.209318
851a2df4a087af1647dab5ee2a5866f9b05132bb
1,132
py
Python
epsilon/projects/models.py
ulyssesalmeida/epsilon
3d322a883f976d5ec0ae399f4dbbad955fc7f354
[ "MIT" ]
null
null
null
epsilon/projects/models.py
ulyssesalmeida/epsilon
3d322a883f976d5ec0ae399f4dbbad955fc7f354
[ "MIT" ]
null
null
null
epsilon/projects/models.py
ulyssesalmeida/epsilon
3d322a883f976d5ec0ae399f4dbbad955fc7f354
[ "MIT" ]
null
null
null
from django.db import models from django.utils.translation import ugettext as _ from datetime import date # Create your models here. class Pip(models.Model): class Meta: ordering = ['pipId'] pipId = models.CharField(_('Id'), max_length=8, unique=True) title = models.CharField(_('Título'), max_leng...
39.034483
91
0.672261
999
0.88173
0
0
0
0
0
0
149
0.131509
851ada71457a99d2701c22836c3b69a5e678b2e0
872
py
Python
src/code_challenges/8_5_20.py
rupol/Hash-Tables-Lecture
5b692ad08a0604e81c7d12d09e912925fa12c512
[ "MIT" ]
null
null
null
src/code_challenges/8_5_20.py
rupol/Hash-Tables-Lecture
5b692ad08a0604e81c7d12d09e912925fa12c512
[ "MIT" ]
null
null
null
src/code_challenges/8_5_20.py
rupol/Hash-Tables-Lecture
5b692ad08a0604e81c7d12d09e912925fa12c512
[ "MIT" ]
null
null
null
''' Print out all of the strings in the following array in alphabetical order, each on a separate line. ['Waltz', 'Tango', 'Viennese Waltz', 'Foxtrot', 'Cha Cha', 'Samba', 'Rumba', 'Paso Doble', 'Jive'] The expected output is: 'Cha Cha' 'Foxtrot' 'Jive' 'Paso Doble' 'Rumba' 'Samba' 'Tango' 'Viennese Waltz' 'Waltz' You ...
27.25
164
0.683486
0
0
0
0
0
0
0
0
687
0.787844
851b02d0eb709b35d28a8b9da557a4b933cbb342
7,740
py
Python
builders/layers/scenegenerators.py
leosampaio/scene-designer
8a7276067acfde1997d386942aabc44d92436a1a
[ "MIT" ]
9
2021-08-18T17:49:42.000Z
2022-02-22T02:15:07.000Z
builders/layers/scenegenerators.py
leosampaio/scene-designer
8a7276067acfde1997d386942aabc44d92436a1a
[ "MIT" ]
null
null
null
builders/layers/scenegenerators.py
leosampaio/scene-designer
8a7276067acfde1997d386942aabc44d92436a1a
[ "MIT" ]
1
2021-10-02T19:53:03.000Z
2021-10-02T19:53:03.000Z
import tensorflow as tf import tensorflow_addons as tfa import builders from builders.layers.helpers import build_cnn, get_normalization_2d from builders.layers import stylegan from builders.layers.spectral import SNConv2D from builders.layers.syncbn import SyncBatchNormalization def build_mask_net(hidden_channel_di...
40.736842
166
0.624548
6,785
0.876615
0
0
0
0
0
0
350
0.04522
851ccf02531e4e7ff2823ea6d2824dfc6a043bbd
3,993
py
Python
nbviewer/tests/base.py
AI-Collaboratory/nbviewer
1a40e04cc8aad67aa96bb840603f8f568c08d44d
[ "BSD-3-Clause-Clear" ]
1,840
2015-01-01T13:25:44.000Z
2022-03-17T08:33:01.000Z
nbviewer/tests/base.py
AI-Collaboratory/nbviewer
1a40e04cc8aad67aa96bb840603f8f568c08d44d
[ "BSD-3-Clause-Clear" ]
605
2015-01-01T16:45:01.000Z
2022-03-14T15:25:25.000Z
nbviewer/tests/base.py
AI-Collaboratory/nbviewer
1a40e04cc8aad67aa96bb840603f8f568c08d44d
[ "BSD-3-Clause-Clear" ]
513
2015-01-07T20:54:49.000Z
2022-02-17T16:04:30.000Z
"""Base class for nbviewer tests. Derived from IPython.html notebook test case in 2.0 """ # ----------------------------------------------------------------------------- # Copyright (C) Jupyter Development Team # # Distributed under the terms of the BSD License. The full license is in # the file COPYING, distribut...
27.163265
79
0.604308
2,056
0.514901
383
0.095918
1,777
0.445029
0
0
1,280
0.320561
851d822d8861c61e39a3e49eb1c83275bf94c9b9
1,311
py
Python
versions/2.0/datasets/weapons/imfdb/imfdb_gun_urls/ExtractImfdbGunUrls.py
Lituta/dig-alignment
812ab0e4a181953d23024ef9df92eec1d40559cb
[ "Apache-2.0" ]
5
2015-04-26T19:39:44.000Z
2018-12-24T13:17:42.000Z
versions/2.0/datasets/weapons/imfdb/imfdb_gun_urls/ExtractImfdbGunUrls.py
Lituta/dig-alignment
812ab0e4a181953d23024ef9df92eec1d40559cb
[ "Apache-2.0" ]
7
2016-03-23T16:52:32.000Z
2018-07-24T03:08:05.000Z
versions/2.0/datasets/weapons/imfdb/imfdb_gun_urls/ExtractImfdbGunUrls.py
Lituta/dig-alignment
812ab0e4a181953d23024ef9df92eec1d40559cb
[ "Apache-2.0" ]
28
2015-04-08T22:39:07.000Z
2021-12-25T22:16:36.000Z
import sys import codecs import json import os from extraction.Landmark import RuleSet from extraction import Landmark def main(argv=None): baseUrl = 'http://www.imfdb.org' rules_file = '/Users/bamana/Documents/InferLink/workspace/memex/memexpython/input/_rules/imfdb_gun_urls_rules.txt' imfdb_gun_urls_dir ...
31.97561
118
0.606407
0
0
0
0
0
0
0
0
260
0.198322
851eb3b01fc05359defcd79a79da1cdab1358706
322
py
Python
server.py
cloxichjc/python-web
5949472af291053243c2f4348a20795ca62f9ddb
[ "Apache-2.0" ]
null
null
null
server.py
cloxichjc/python-web
5949472af291053243c2f4348a20795ca62f9ddb
[ "Apache-2.0" ]
null
null
null
server.py
cloxichjc/python-web
5949472af291053243c2f4348a20795ca62f9ddb
[ "Apache-2.0" ]
null
null
null
# server.py # coding:utf-8 # 从wsgiref模块导入 from wsgiref.simple_server import make_server # 导入我们自己编写的application函数: from wsgi import application # 创建一个服务器,IP地址为空,端口是8000,处理函数是application: httpd = make_server('', 8000, application) print("Serving HTTP on port 8000...") # 开始监听HTTP请求: httpd.serve_forever() print("Listening...
24.769231
45
0.785714
0
0
0
0
0
0
0
0
250
0.609756
851edb7f446fce929abe41c0aa3fb8e6f6bcca40
481
py
Python
src/bxgateway/services/gateway_broadcast_service.py
blockchain-development-resources/bxgateway
761b5085f9c7c6527f0b9aaae06d2f70f3786db2
[ "MIT" ]
1
2021-11-26T07:49:24.000Z
2021-11-26T07:49:24.000Z
src/bxgateway/services/gateway_broadcast_service.py
beepool/bxgateway
761b5085f9c7c6527f0b9aaae06d2f70f3786db2
[ "MIT" ]
null
null
null
src/bxgateway/services/gateway_broadcast_service.py
beepool/bxgateway
761b5085f9c7c6527f0b9aaae06d2f70f3786db2
[ "MIT" ]
1
2021-09-06T02:10:08.000Z
2021-09-06T02:10:08.000Z
from bxcommon.connections.abstract_connection import AbstractConnection from bxcommon.messages.abstract_message import AbstractMessage from bxcommon.services.broadcast_service import BroadcastService class GatewayBroadcastService(BroadcastService[AbstractMessage, AbstractConnection]): def should_broadcast_to_conn...
48.1
111
0.837838
278
0.577963
0
0
0
0
0
0
52
0.108108
85226a980a1a03102f137cc51fddc714bf4ccf38
78
py
Python
vk_advanced_api/__init__.py
Ar4ikov/vk_advanced_api
73bd2770f987441fa6b0db8c87e108cbc2b226e8
[ "MIT" ]
11
2018-03-14T07:51:41.000Z
2022-02-16T08:20:23.000Z
vk_advanced_api/__init__.py
Ar4ikov/vk_advanced_api
73bd2770f987441fa6b0db8c87e108cbc2b226e8
[ "MIT" ]
1
2018-04-10T21:12:07.000Z
2018-04-17T07:36:41.000Z
vk_advanced_api/__init__.py
Ar4ikov/vk_advanced_api
73bd2770f987441fa6b0db8c87e108cbc2b226e8
[ "MIT" ]
1
2018-03-30T07:28:45.000Z
2018-03-30T07:28:45.000Z
from vk_advanced_api.vkapi import VKAPI from vk_advanced_api.Auth import Auth
39
40
0.871795
0
0
0
0
0
0
0
0
0
0
8523860c41be0e36cd1d844b36558c0d7b16343b
4,960
py
Python
active_reward_learning/common/policy.py
david-lindner/idrl
54cfad330b0598ad4f6621796f2411644e50a6ba
[ "MIT" ]
9
2021-11-20T18:14:38.000Z
2022-03-20T16:29:48.000Z
active_reward_learning/common/policy.py
david-lindner/idrl
54cfad330b0598ad4f6621796f2411644e50a6ba
[ "MIT" ]
null
null
null
active_reward_learning/common/policy.py
david-lindner/idrl
54cfad330b0598ad4f6621796f2411644e50a6ba
[ "MIT" ]
null
null
null
import datetime import os import pickle from abc import ABC, abstractmethod import gym import numpy as np class BasePolicy(ABC): @abstractmethod def get_action(self, obs, deterministic=True): raise NotImplementedError() def evaluate(self, env, N=10, rollout=True): if not rollout: ...
30.060606
87
0.599194
4,829
0.973589
0
0
413
0.083266
0
0
215
0.043347
8524f725e1219424eff7106f2965054cd2eeb4a1
8,384
py
Python
raft/servers/zre_server.py
adsharma/raft
49c7bfd472af4c97cc69d7e7e4ffc26808ed88db
[ "MIT" ]
4
2021-01-20T20:29:19.000Z
2021-09-21T18:20:08.000Z
raft/servers/zre_server.py
adsharma/raft
49c7bfd472af4c97cc69d7e7e4ffc26808ed88db
[ "MIT" ]
11
2021-01-07T19:06:42.000Z
2021-08-22T17:57:27.000Z
raft/servers/zre_server.py
adsharma/raft
49c7bfd472af4c97cc69d7e7e4ffc26808ed88db
[ "MIT" ]
null
null
null
import asyncio import logging import threading import uuid from cachetools import TTLCache from pyre import Pyre from serde.msgpack import from_msgpack, to_msgpack from typing import List, Union from ..boards.memory_board import MemoryBoard from ..messages.append_entries import AppendEntriesMessage, LogEntry, Command...
35.982833
87
0.563216
7,907
0.943106
0
0
0
0
5,343
0.637285
1,021
0.12178
8525422df5c9d907c2e3e52b44632726d4428acd
6,828
py
Python
loops/ornekUygulama.py
mrtyasar/PythonLearn
b8fa5d97b9c811365db8457f42f1e1d04e4dc8a4
[ "Apache-2.0" ]
null
null
null
loops/ornekUygulama.py
mrtyasar/PythonLearn
b8fa5d97b9c811365db8457f42f1e1d04e4dc8a4
[ "Apache-2.0" ]
null
null
null
loops/ornekUygulama.py
mrtyasar/PythonLearn
b8fa5d97b9c811365db8457f42f1e1d04e4dc8a4
[ "Apache-2.0" ]
null
null
null
#----------------------------------------------# # Karakter Dizilerinin İçeriğini Karşılaştırma #----------------------------------------------# #elimizde iki farklı metin var ilkMetin = "asdasfddgdhfjfdgdşfkgjdfklgşjdfklgjdfkghdfjghjklsdhajlsdhjkjhkhjjh" ikinciMetin = "sdfsuıdoryeuıfsjkdfhdjklghjdfklruseldhfjlkdshflj...
35.936842
747
0.733304
0
0
0
0
0
0
0
0
6,262
0.858749
8527867363759e9aaf795447f6ea1b7805273895
476
py
Python
tests/constraints/test_minLength.py
vincentchevrier/tableschema-py
d47b6d73ab3ea1051c866b93b6e2b9202bbd40b1
[ "MIT" ]
224
2017-04-11T11:29:48.000Z
2022-03-26T18:34:50.000Z
tests/constraints/test_minLength.py
vincentchevrier/tableschema-py
d47b6d73ab3ea1051c866b93b6e2b9202bbd40b1
[ "MIT" ]
111
2017-03-28T19:02:01.000Z
2021-12-20T08:42:21.000Z
tests/constraints/test_minLength.py
vincentchevrier/tableschema-py
d47b6d73ab3ea1051c866b93b6e2b9202bbd40b1
[ "MIT" ]
40
2017-04-01T08:21:57.000Z
2021-02-28T23:52:07.000Z
# -*- coding: utf-8 -*- from __future__ import division from __future__ import print_function from __future__ import absolute_import from __future__ import unicode_literals import pytest from tableschema import constraints # Tests @pytest.mark.parametrize('constraint, value, result', [ (0, [1], True), (1, [...
23.8
67
0.735294
0
0
0
0
240
0.504202
0
0
57
0.119748
85284fae5ffd5fddbef7db877d1222f08e75fa2f
16,667
py
Python
bubble/bubble_runner.py
cp105/ai611_project
2d0bbd8052a6425eefc7301e18ddf9ad4404a8fb
[ "Apache-2.0" ]
1
2020-05-18T03:18:11.000Z
2020-05-18T03:18:11.000Z
bubble/bubble_runner.py
cp105/ai611_project
2d0bbd8052a6425eefc7301e18ddf9ad4404a8fb
[ "Apache-2.0" ]
null
null
null
bubble/bubble_runner.py
cp105/ai611_project
2d0bbd8052a6425eefc7301e18ddf9ad4404a8fb
[ "Apache-2.0" ]
1
2020-11-02T08:46:32.000Z
2020-11-02T08:46:32.000Z
# coding=utf-8 # Copyright 2018 The Dopamine Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
42.845758
122
0.638927
14,550
0.872983
0
0
6,021
0.361253
0
0
3,723
0.223376
8528bb78af4c1e85b701d3605f8b9052440870fe
10,830
py
Python
Packs/HatchingTriage/Integrations/HatchingTriage/HatchingTriage.py
hatching/content
5e00808969b9d56c3f5cbdcb9068b65ac1a6de84
[ "MIT" ]
1
2021-04-20T10:58:15.000Z
2021-04-20T10:58:15.000Z
Packs/HatchingTriage/Integrations/HatchingTriage/HatchingTriage.py
hatching/content
5e00808969b9d56c3f5cbdcb9068b65ac1a6de84
[ "MIT" ]
null
null
null
Packs/HatchingTriage/Integrations/HatchingTriage/HatchingTriage.py
hatching/content
5e00808969b9d56c3f5cbdcb9068b65ac1a6de84
[ "MIT" ]
1
2021-04-20T20:02:06.000Z
2021-04-20T20:02:06.000Z
import demistomock as demisto from CommonServerPython import * from CommonServerUserPython import * import json class Client(BaseClient): def __init__(self, base_url, *args, **kwarg): super().__init__(base_url, *args, **kwarg) def test_module(client: Client) -> str: r = client._http_request( ...
27.912371
113
0.634257
126
0.011634
0
0
0
0
0
0
3,279
0.30277
85292da369d136efa8309c43f2e4a8b1ef5317f0
557
py
Python
medgen/vocab.py
reece/medgen
8d57c058315f77769f2a2827737d56682e15dc91
[ "Apache-2.0" ]
null
null
null
medgen/vocab.py
reece/medgen
8d57c058315f77769f2a2827737d56682e15dc91
[ "Apache-2.0" ]
null
null
null
medgen/vocab.py
reece/medgen
8d57c058315f77769f2a2827737d56682e15dc91
[ "Apache-2.0" ]
null
null
null
NCBI_GeneID = "NCBI:GeneID" HGNC_GeneName = "HGNC:Symbol" UMLS_ConceptID = "UMLS:CUI" MedGen_ConceptID= "MedGen:UID" class Vocab: """ Annotator Vocabulary source and type of concept. examples: ncbi:GeneID, hgnc:GeneName, snomed:ClinicalTerm """ def __init__(self, qualified_label, entry=None): ...
26.52381
61
0.664273
436
0.782765
0
0
0
0
0
0
175
0.314183
852c0ab02a12f08a6f0bb83704cd9fe9581e2543
7,390
py
Python
typeddfs/_mixins/_retype_mixin.py
dmyersturnbull/typed-dfs
57504da6cf2085e96ef62f35afcc2f733a9910e0
[ "Apache-2.0" ]
5
2020-07-14T14:03:35.000Z
2022-01-15T03:34:15.000Z
typeddfs/_mixins/_retype_mixin.py
kokellab/typed-dfs
11c80080446a28e618a379569606f1c1ba387062
[ "Apache-2.0" ]
83
2021-01-06T06:19:12.000Z
2022-03-28T03:06:18.000Z
typeddfs/_mixins/_retype_mixin.py
kokellab/typed-dfs
11c80080446a28e618a379569606f1c1ba387062
[ "Apache-2.0" ]
null
null
null
""" Mixin that overrides Pandas functions to retype. """ import pandas as pd from pandas.core.frame import DataFrame as _InternalDataFrame from typeddfs.df_errors import UnsupportedOperationError class _RetypeMixin: def __add__(self, other): x = super().__add__(other) return self._change_if_df(x...
31.313559
94
0.620568
7,160
0.968877
0
0
542
0.073342
0
0
516
0.069824
852c717ab6013f61566b41226504075417ed71cd
551
py
Python
djbver/db/models.py
springkjw/djbver
671de8090fec885c15ded7a1a8aacc19d544d094
[ "MIT" ]
null
null
null
djbver/db/models.py
springkjw/djbver
671de8090fec885c15ded7a1a8aacc19d544d094
[ "MIT" ]
5
2021-03-30T13:47:57.000Z
2021-09-22T19:15:26.000Z
djbver/db/models.py
springkjw/djbver
671de8090fec885c15ded7a1a8aacc19d544d094
[ "MIT" ]
null
null
null
from django.db import models __all__ = [ 'GenericModel', 'GenericAtiveModel', ] class GenericModel(models.Model): created = models.DateTimeField('생성일', auto_now_add=True) updated = models.DateTimeField('수정일', auto_now=True) class Meta: abstract = True class GenericActiveModel(models.M...
21.192308
60
0.68784
489
0.835897
0
0
0
0
0
0
95
0.162393
852cff807d09b429ab0d23969412105f94b87e2b
89
py
Python
citrination_client/util/quote_finder.py
matSciMalcolm/python-citrination-client
a59a2ddd49b3a4323a3393ce13c81172c9b1b645
[ "Apache-2.0" ]
20
2016-06-15T18:40:50.000Z
2022-03-21T11:59:13.000Z
citrination_client/util/quote_finder.py
matSciMalcolm/python-citrination-client
a59a2ddd49b3a4323a3393ce13c81172c9b1b645
[ "Apache-2.0" ]
91
2015-12-23T18:13:43.000Z
2020-07-21T21:33:13.000Z
citrination_client/util/quote_finder.py
matSciMalcolm/python-citrination-client
a59a2ddd49b3a4323a3393ce13c81172c9b1b645
[ "Apache-2.0" ]
18
2016-07-19T15:33:18.000Z
2022-03-02T19:42:24.000Z
try: from urllib.parse import quote except ImportError: from urllib import quote
17.8
34
0.752809
0
0
0
0
0
0
0
0
0
0
516b7b328aa661fb5cfc6cbe4557688406fd3782
488
py
Python
doi_request/controller.py
joffilyfe/doi_request
870c6b346d7b28789e45cfdae01dcc0f47dafd43
[ "BSD-2-Clause" ]
null
null
null
doi_request/controller.py
joffilyfe/doi_request
870c6b346d7b28789e45cfdae01dcc0f47dafd43
[ "BSD-2-Clause" ]
null
null
null
doi_request/controller.py
joffilyfe/doi_request
870c6b346d7b28789e45cfdae01dcc0f47dafd43
[ "BSD-2-Clause" ]
null
null
null
import logging from tasks.celery import registry_dispatcher_document logger = logging.getLogger(__name__) class Depositor(object): def deposit_by_pids(self, pids_list): """ Receive a list of pids and collection to registry their dois. scl """ for item in pids_list: ...
23.238095
69
0.651639
375
0.768443
0
0
0
0
0
0
127
0.260246
516f59ae351411499e663fe5fdd1c79c63235791
181
py
Python
tasks/read_txt_file.py
Adamage/python-training
dd58868420656dc575c4a32304028bdd0215f415
[ "Apache-2.0" ]
2
2018-09-06T15:29:25.000Z
2019-09-18T08:59:24.000Z
tasks/read_txt_file.py
Adamage/python-training
dd58868420656dc575c4a32304028bdd0215f415
[ "Apache-2.0" ]
1
2017-09-13T17:31:43.000Z
2021-03-15T14:59:50.000Z
tasks/read_txt_file.py
Adamage/python-training
dd58868420656dc575c4a32304028bdd0215f415
[ "Apache-2.0" ]
null
null
null
with open('example.txt') as file: all_lines = file.readlines() print(all_lines) for line in all_lines: if line == "\n": continue print(line)
22.625
33
0.563536
0
0
0
0
0
0
0
0
17
0.093923
51700dec9f70b821831074e4298daf70b42e93d4
698
py
Python
tests/common.py
VFXetc/sgsession
6ae016e376fda26ac8c2fbb48d96b878bd446da2
[ "BSD-3-Clause" ]
9
2017-04-05T12:38:53.000Z
2021-06-25T15:41:07.000Z
tests/common.py
vfxetc/sgsession
6ae016e376fda26ac8c2fbb48d96b878bd446da2
[ "BSD-3-Clause" ]
null
null
null
tests/common.py
vfxetc/sgsession
6ae016e376fda26ac8c2fbb48d96b878bd446da2
[ "BSD-3-Clause" ]
3
2017-07-04T22:59:15.000Z
2018-05-19T22:47:26.000Z
from pprint import pprint, pformat import datetime import os from sgmock import Fixture from sgmock import TestCase _shotgun_server = os.environ.get('SHOTGUN', 'mock') if _shotgun_server == 'mock': from sgmock import Shotgun, ShotgunError, Fault else: from shotgun_api3 import ShotgunError, Fault import sh...
24.928571
87
0.739255
0
0
0
0
0
0
0
0
67
0.095989
5170d881c7a8df80f7334c36da539ccea741fdfe
1,729
py
Python
PI_SimData1.py
pbuckner/xppython3-demos
8b6441da93c8982faa90d84d81f7c8b1ba7b1571
[ "MIT" ]
1
2021-09-21T18:48:38.000Z
2021-09-21T18:48:38.000Z
PI_SimData1.py
pbuckner/xppython3-demos
8b6441da93c8982faa90d84d81f7c8b1ba7b1571
[ "MIT" ]
1
2022-01-11T05:56:15.000Z
2022-01-16T15:53:21.000Z
PI_SimData1.py
pbuckner/xppython3-demos
8b6441da93c8982faa90d84d81f7c8b1ba7b1571
[ "MIT" ]
null
null
null
""" SimData1.py Ported to Python by Sandy Barbour - 28/04/2005 Ported to XPPython3 by Peter Buckner - 2-Aug-2020 This example demonstrates how to interact with X-Plane by reading and writing data. This example creates menus items that change the nav-1 radio frequency. """ import xp class PythonInterf...
35.285714
116
0.651822
1,425
0.824176
0
0
0
0
0
0
769
0.444766
5173842aa5e2f1c4e322cf90b90360c1906a92d2
2,964
py
Python
chimera_app/config.py
lennyhans/steam-buddy
73a6c820a33302c86ef5c5988550dd48bc110ed5
[ "MIT" ]
76
2019-11-30T17:35:55.000Z
2021-06-06T23:12:31.000Z
chimera_app/config.py
tsimouris/AppHub
8925366da6cb001117be5f39af5417a3107ff3b4
[ "MIT" ]
130
2019-11-16T00:34:12.000Z
2021-06-13T13:14:01.000Z
chimera_app/config.py
tsimouris/AppHub
8925366da6cb001117be5f39af5417a3107ff3b4
[ "MIT" ]
15
2019-11-07T18:32:25.000Z
2021-06-12T20:55:40.000Z
import os from chimera_app.settings import Settings import chimera_app.context as context from chimera_app.ftp.server import Server as FTPServer from chimera_app.authenticator import Authenticator, generate_password from chimera_app.ssh_keys import SSHKeys from chimera_app.steamgrid.steamgrid import Steamgrid from chim...
31.870968
71
0.661943
0
0
0
0
0
0
0
0
1,055
0.355938
5173f3bf7eb06fb274030ee5d5c05a3722df00ba
18,234
py
Python
main.py
KlaudijaMedeksaite/GBUI-voice-project
bd2cd979483e3ac43de5009d148e2e0403f50eda
[ "MIT" ]
null
null
null
main.py
KlaudijaMedeksaite/GBUI-voice-project
bd2cd979483e3ac43de5009d148e2e0403f50eda
[ "MIT" ]
null
null
null
main.py
KlaudijaMedeksaite/GBUI-voice-project
bd2cd979483e3ac43de5009d148e2e0403f50eda
[ "MIT" ]
null
null
null
import time import playsound import os import random from gtts.lang import tts_langs from deep_translator import (GoogleTranslator) import pickle import json # my classes import random_test import mike import lang_tests import level_one import level_two import level_three import extras # game progress vars parts = {"...
27.585477
111
0.530109
0
0
0
0
0
0
0
0
5,555
0.304651
517478985ae408d05857add2bf5a7f8926b3712f
268
py
Python
ztlearn/datasets/__init__.py
jefkine/zeta-learn
04388f90093b52f5df2f334c898f3a1224f5a13f
[ "MIT" ]
30
2018-03-12T19:16:27.000Z
2021-12-16T05:32:38.000Z
ztlearn/datasets/__init__.py
jefkine/zeta-learn
04388f90093b52f5df2f334c898f3a1224f5a13f
[ "MIT" ]
4
2018-06-13T03:47:15.000Z
2018-11-05T21:33:34.000Z
ztlearn/datasets/__init__.py
jefkine/zeta-learn
04388f90093b52f5df2f334c898f3a1224f5a13f
[ "MIT" ]
4
2018-04-30T07:42:47.000Z
2022-01-31T11:35:53.000Z
# -*- coding: utf-8 -*- # import module(s) from . import pima from . import iris from . import mnist from . import cifar from . import digits from . import boston from . import fashion from . import data_set # import from data_utils.py from .data_set import DataSet
17.866667
29
0.727612
0
0
0
0
0
0
0
0
68
0.253731
51754b6a4b3d3608f20c547765de1308a45663f9
2,135
py
Python
changes/utils/shards.py
vault-the/changes
37e23c3141b75e4785cf398d015e3dbca41bdd56
[ "Apache-2.0" ]
443
2015-01-03T16:28:39.000Z
2021-04-26T16:39:46.000Z
changes/utils/shards.py
vault-the/changes
37e23c3141b75e4785cf398d015e3dbca41bdd56
[ "Apache-2.0" ]
12
2015-07-30T19:07:16.000Z
2016-11-07T23:11:21.000Z
changes/utils/shards.py
vault-the/changes
37e23c3141b75e4785cf398d015e3dbca41bdd56
[ "Apache-2.0" ]
47
2015-01-09T10:04:00.000Z
2020-11-18T17:58:19.000Z
import heapq from flask import current_app from typing import Any, Callable, cast, Dict, List, Tuple, TypeVar # NOQA Normalized = TypeVar('Normalized') def shard(objects, max_shards, object_stats, avg_time, normalize_object_name=cast(Callable[[str], Normalized], lambda x: x)): # type: (List[str], int, Dict[No...
41.862745
125
0.671194
0
0
0
0
0
0
0
0
1,073
0.502576
51773f027e0351f9e76dd4ae0f17318c0af9c884
2,250
py
Python
lpd/metrics/metric_base.py
RoySadaka/lpd
921454d9730d8228f4b0ca5349b0558ebd123c65
[ "MIT" ]
4
2020-10-02T10:04:19.000Z
2022-01-19T12:45:02.000Z
lpd/metrics/metric_base.py
RoySadaka/lpd
921454d9730d8228f4b0ca5349b0558ebd123c65
[ "MIT" ]
1
2020-10-06T17:43:57.000Z
2020-10-06T17:47:43.000Z
lpd/metrics/metric_base.py
RoySadaka/lpd
921454d9730d8228f4b0ca5349b0558ebd123c65
[ "MIT" ]
1
2020-10-03T17:21:32.000Z
2020-10-03T17:21:32.000Z
from lpd.enums.metric_method import MetricMethod import torch as T from lpd.enums.confusion_matrix_based_metric import ConfusionMatrixBasedMetric class MetricBase: """ Args: metric_method - from lpd.enums.MetricMethod, use this to dictate how this metric is behaving over the batches, ...
45.918367
164
0.725778
2,099
0.932889
0
0
0
0
0
0
740
0.328889
5177c744c2f039219154881a88b3bbbb875e7877
5,989
py
Python
main.py
Joeization/pyGaen
172db8a1609da7d6c698d552e5d915df912e9e2d
[ "MIT" ]
1
2019-06-16T16:13:18.000Z
2019-06-16T16:13:18.000Z
main.py
Joeization/pyGaen
172db8a1609da7d6c698d552e5d915df912e9e2d
[ "MIT" ]
null
null
null
main.py
Joeization/pyGaen
172db8a1609da7d6c698d552e5d915df912e9e2d
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- import pygame try: import pygame._view except ImportError: pass from choice import * from bgm import * from dialog import * from settings import * from text import * from log import * def main(): pygame.init() pygame.font.init() screen = pygame.display.s...
27.855814
85
0.393054
0
0
0
0
0
0
0
0
324
0.054099
5178c24558ef71ed70c83cdfa68e492916a169e6
3,045
py
Python
ModelDGI.py
shiqitao/AutoGraph
41f5956c859ff0fb6f87109d5f8731276bdcc2ef
[ "MIT" ]
null
null
null
ModelDGI.py
shiqitao/AutoGraph
41f5956c859ff0fb6f87109d5f8731276bdcc2ef
[ "MIT" ]
null
null
null
ModelDGI.py
shiqitao/AutoGraph
41f5956c859ff0fb6f87109d5f8731276bdcc2ef
[ "MIT" ]
null
null
null
import numpy as np import torch from sklearn.linear_model import LogisticRegression from sklearn.metrics import accuracy_score from torch.nn import PReLU from torch_geometric.nn import GCNConv, DeepGraphInfomax from Result import Result class Encoder(torch.nn.Module): def __init__(self, hidden, data): s...
34.602273
104
0.60821
318
0.104433
0
0
0
0
0
0
13
0.004269
51792436ea974d474c1f1d84607900ce05ba5464
4,496
py
Python
conf/views.py
OnlineJudgeNextGeneration/qduoj2
c4889d70850bd91ae7f662c02524d0555b6a3ce7
[ "MIT" ]
1
2018-01-28T07:48:13.000Z
2018-01-28T07:48:13.000Z
conf/views.py
OnlineJudgeNextGeneration/qduoj2
c4889d70850bd91ae7f662c02524d0555b6a3ce7
[ "MIT" ]
null
null
null
conf/views.py
OnlineJudgeNextGeneration/qduoj2
c4889d70850bd91ae7f662c02524d0555b6a3ce7
[ "MIT" ]
null
null
null
import hashlib from django.utils import timezone from account.decorators import super_admin_required from judge.dispatcher import process_pending_task from judge.languages import languages, spj_languages from options.options import SysOptions from utils.api import APIView, CSRFExemptAPIView, validate_serializer from ...
37.466667
101
0.627002
3,903
0.859313
0
0
3,281
0.722369
0
0
530
0.116689
517946e1d2fb85e5f713dbfc6bcd270e2147f166
15,026
py
Python
gamse/pipelines/__init__.py
wangleon/gamse
ed2a3730469a1eeef3def1beca990e9d2641a53b
[ "Apache-2.0" ]
10
2019-04-10T15:05:50.000Z
2021-11-28T15:31:38.000Z
gamse/pipelines/__init__.py
wangleon/gamse
ed2a3730469a1eeef3def1beca990e9d2641a53b
[ "Apache-2.0" ]
15
2020-04-07T07:29:27.000Z
2022-02-19T15:47:04.000Z
gamse/pipelines/__init__.py
wangleon/gamse
ed2a3730469a1eeef3def1beca990e9d2641a53b
[ "Apache-2.0" ]
2
2020-04-02T09:04:27.000Z
2020-10-14T15:29:10.000Z
import os import re import sys import shutil import logging logger = logging.getLogger(__name__) import configparser import numpy as np import astropy.io.fits as fits import matplotlib.pyplot as plt import matplotlib.ticker as tck from ..utils.obslog import read_obslog from ..utils.misc import write_system_info fr...
34.542529
80
0.535605
0
0
0
0
0
0
0
0
3,599
0.239518
51799bf4b379e2c4be804aba7006121b1c6cccf6
2,137
py
Python
smartmin/csv_imports/models.py
nickhargreaves/smartmin
660a67ec2619af2a766970b3fe3b4369fffb5741
[ "BSD-3-Clause" ]
166
2015-01-13T13:40:17.000Z
2022-03-23T09:40:52.000Z
smartmin/csv_imports/models.py
nickhargreaves/smartmin
660a67ec2619af2a766970b3fe3b4369fffb5741
[ "BSD-3-Clause" ]
71
2015-01-08T17:02:31.000Z
2022-02-10T12:43:27.000Z
smartmin/csv_imports/models.py
nickhargreaves/smartmin
660a67ec2619af2a766970b3fe3b4369fffb5741
[ "BSD-3-Clause" ]
34
2015-01-14T07:19:27.000Z
2021-02-19T20:41:02.000Z
import os from django.db import models from django.utils import timezone from django.utils.module_loading import import_string from smartmin.models import SmartModel def generate_file_path(instance, filename): file_path_prefix = 'csv_imports/' name, extension = os.path.splitext(filename) if len(name)...
30.971014
119
0.685073
1,666
0.779598
0
0
0
0
0
0
348
0.162845
517c72830a031351a68c7d69fc4b0b87b4a8a950
975
py
Python
src/django/api/management/commands/processfixtures.py
azavea/open-apparel-registry
20f7a6d502d9152c85ee7f2696b25b6badf98924
[ "MIT" ]
32
2019-01-26T05:04:03.000Z
2022-03-11T15:09:09.000Z
src/django/api/management/commands/processfixtures.py
azavea/open-apparel-registry
20f7a6d502d9152c85ee7f2696b25b6badf98924
[ "MIT" ]
1,586
2019-01-15T21:54:42.000Z
2022-03-31T17:38:14.000Z
src/django/api/management/commands/processfixtures.py
azavea/open-apparel-registry
20f7a6d502d9152c85ee7f2696b25b6badf98924
[ "MIT" ]
7
2019-02-28T03:32:46.000Z
2021-11-04T17:03:46.000Z
from django.core.management import call_command from django.core.management.base import BaseCommand class Command(BaseCommand): help = 'Run all processing steps on data loaded from fixtures' def add_arguments(self, parser): parser.add_argument( '-s', '--startid', t...
29.545455
66
0.524103
872
0.894359
0
0
0
0
0
0
242
0.248205
517de1b2145783b157190e784d0cdca748f5eaca
4,835
py
Python
processfiles.py
peterfabakker/zipline-utils
07ad6f56910b7c34c2cb45442b282213eae0efc6
[ "MIT" ]
null
null
null
processfiles.py
peterfabakker/zipline-utils
07ad6f56910b7c34c2cb45442b282213eae0efc6
[ "MIT" ]
null
null
null
processfiles.py
peterfabakker/zipline-utils
07ad6f56910b7c34c2cb45442b282213eae0efc6
[ "MIT" ]
null
null
null
#!/usr/bin/env python # encoding: utf-8 """ changefiles.py Created by Peter Bakker on 2017-10-04. Copyright (c) 2017 . All rights reserved. """ import sys import os import numpy as np import pandas as pd import datetime from pytz import timezone import pytz import zipline.utils.calendars as cal from zipline.data.ses...
43.954545
131
0.657704
0
0
0
0
0
0
0
0
1,321
0.273216
517e5c58602149b79c48537ced18f8cf6bd13fb7
1,422
py
Python
walking_char/char_coords.py
phao/topshooter_xp
e5cc75e47751fa116ca106580b5b4d46cf781c4c
[ "MIT" ]
4
2018-07-09T19:38:27.000Z
2021-03-02T19:31:38.000Z
walking_char/char_coords.py
phao/topshooter_xp
e5cc75e47751fa116ca106580b5b4d46cf781c4c
[ "MIT" ]
null
null
null
walking_char/char_coords.py
phao/topshooter_xp
e5cc75e47751fa116ca106580b5b4d46cf781c4c
[ "MIT" ]
2
2020-04-25T18:05:30.000Z
2020-07-14T21:19:17.000Z
# Goes through coordinates of body pieces and find where they are # relative to the head. # # The coordinate values were manually found out by looking at the image # in gimp. There was a fully "mounted" character at ~2400,~370 on the image # (y goes up from top->bottom in these coordinates). The values were looked up #...
35.55
78
0.653305
0
0
0
0
0
0
0
0
938
0.659634
517f77cbabf48a0a733c8e41ba122363120f82f4
3,773
py
Python
src/FreeShadownSocks.py
flyou/FreeSSClient
7dfe7272bfb19c8799e1c25957cd66b97dbdb9c2
[ "Apache-2.0" ]
17
2017-07-24T12:05:38.000Z
2019-03-30T19:18:14.000Z
src/FreeShadownSocks.py
flyou/FreeSSClient
7dfe7272bfb19c8799e1c25957cd66b97dbdb9c2
[ "Apache-2.0" ]
3
2017-07-25T09:18:09.000Z
2017-12-05T17:00:31.000Z
src/FreeShadownSocks.py
flyou/FreeSSClient
7dfe7272bfb19c8799e1c25957cd66b97dbdb9c2
[ "Apache-2.0" ]
8
2017-07-24T09:24:29.000Z
2021-05-01T04:55:07.000Z
#!/usr/bin/python # -*- coding: UTF-8 -*- # -------------------------- # Author fzl # Date 2017/7/20 15:13 # EMAIL fangjalylong@qq.com # Desc # -------------------------- import json import requests import sys from ExeUtil import ExeUtil type = sys.getfilesystemencoding() print( "**********************************...
36.990196
102
0.424331
0
0
0
0
0
0
0
0
2,731
0.700795
51830277eec8fa5abb205846898e8caf0f167a74
3,651
py
Python
tests/test_status.py
Nulifier/hp-status
a97132d9c9e037ceb601a506c2742d3dd8610f9b
[ "MIT" ]
null
null
null
tests/test_status.py
Nulifier/hp-status
a97132d9c9e037ceb601a506c2742d3dd8610f9b
[ "MIT" ]
null
null
null
tests/test_status.py
Nulifier/hp-status
a97132d9c9e037ceb601a506c2742d3dd8610f9b
[ "MIT" ]
null
null
null
import unittest from unittest import mock from tests import mocks from hpstatus import status class SystemTest(unittest.TestCase): @mock.patch("hpstatus.status._get_system_feature", side_effect=mocks._get_system_feature) def test_get_fans(self, mock_get_system_feature): data = status.get_fans() self.assertIsIns...
34.121495
104
0.751301
3,507
0.960559
0
0
3,411
0.934265
0
0
594
0.162695
518478984b76dc79b0984af18a409fa92718c2e2
10,703
py
Python
ngram/language_model.py
brightp-py/rnng-and-rts
c1251de9bd4c35531cb46dbfb8b2c989ab5a1f33
[ "MIT" ]
null
null
null
ngram/language_model.py
brightp-py/rnng-and-rts
c1251de9bd4c35531cb46dbfb8b2c989ab5a1f33
[ "MIT" ]
null
null
null
ngram/language_model.py
brightp-py/rnng-and-rts
c1251de9bd4c35531cb46dbfb8b2c989ab5a1f33
[ "MIT" ]
null
null
null
#!/bin/env python """ language_model.py. Written by joshualoehr. https://github.com/joshualoehr/ngram-language-model Edited by Brighton Pauli, 4/20/2022. """ import argparse from itertools import product from pathlib import Path import numpy as np import nltk from preprocess import preprocess, EOS, UNK def load_d...
36.780069
79
0.608521
8,024
0.749696
1,313
0.122676
0
0
0
0
5,441
0.508362
51854f42a0ad4da0db518cc4b31ddad382a8ad3b
11,484
py
Python
code/pyorg/globals/mt_seg.py
anmartinezs/pyseg_system
5bb07c7901062452a34b73f376057cabc15a13c3
[ "Apache-2.0" ]
12
2020-01-08T01:33:02.000Z
2022-03-16T00:25:34.000Z
code/pyorg/globals/mt_seg.py
anmartinezs/pyseg_system
5bb07c7901062452a34b73f376057cabc15a13c3
[ "Apache-2.0" ]
8
2019-12-19T19:34:56.000Z
2022-03-10T10:11:28.000Z
code/pyorg/globals/mt_seg.py
anmartinezs/pyseg_system
5bb07c7901062452a34b73f376057cabc15a13c3
[ "Apache-2.0" ]
2
2022-03-30T13:12:22.000Z
2022-03-30T18:12:10.000Z
""" Collection of functions for helping to segment microtubes in tomograms # Author: Antonio Martinez-Sanchez (Max Planck Institute for Biochemistry) # Date: 1.07.17 """ import csv import vtk from .utils import * from sklearn.cluster import MeanShift __author__ = 'Antonio Martinez-Sanchez' # Clean an directory con...
36.113208
120
0.638628
0
0
0
0
0
0
0
0
3,929
0.342128
5185cdb155f8a40b6e352433978a230edcb7bda5
2,518
py
Python
beast.py
Sahil1923/Hacking-Tools
d1d891f84f766a2aee2d579ef16b08136dac1cc6
[ "Apache-2.0" ]
null
null
null
beast.py
Sahil1923/Hacking-Tools
d1d891f84f766a2aee2d579ef16b08136dac1cc6
[ "Apache-2.0" ]
null
null
null
beast.py
Sahil1923/Hacking-Tools
d1d891f84f766a2aee2d579ef16b08136dac1cc6
[ "Apache-2.0" ]
null
null
null
import os import time import pyfiglet os.system("clear") time.sleep(1) print(" ############################") print(" # Script By Mr.Jøhñ #") print(" # INDIAN HACKERS #") print(" ############################") print() print(" ##################################") print() char1 = input(...
38.738462
85
0.605639
0
0
0
0
0
0
0
0
722
0.286167
518655f8a3ef06d9584a599c64e86a70b2d75a88
1,725
py
Python
Medium/396.py
Hellofafar/Leetcode
7a459e9742958e63be8886874904e5ab2489411a
[ "CNRI-Python" ]
6
2017-09-25T18:05:50.000Z
2019-03-27T00:23:15.000Z
Medium/396.py
Hellofafar/Leetcode
7a459e9742958e63be8886874904e5ab2489411a
[ "CNRI-Python" ]
1
2017-10-29T12:04:41.000Z
2018-08-16T18:00:37.000Z
Medium/396.py
Hellofafar/Leetcode
7a459e9742958e63be8886874904e5ab2489411a
[ "CNRI-Python" ]
null
null
null
# ------------------------------ # 396. Rotate Function # # Description: # Given an array of integers A and let n to be its length. # # Assume Bk to be an array obtained by rotating the array A k positions clock-wise, # we define a "rotation function" F on A as follow: # # F(k) = 0 * Bk[0] + 1 * Bk[1] + ... + (n-1)...
28.278689
84
0.441159
612
0.354783
0
0
0
0
0
0
1,106
0.641159
5186a078b3e41d3d4070e1fffd53ee9e9fbf03e2
1,482
py
Python
python/932.beautiful-array.py
Zhenye-Na/leetcode
95196a45f5709ccf7b970ee5ac84a4bf8fe2301e
[ "MIT" ]
10
2019-09-15T00:23:57.000Z
2022-01-05T12:53:42.000Z
python/932.beautiful-array.py
Zhenye-Na/leetcode
95196a45f5709ccf7b970ee5ac84a4bf8fe2301e
[ "MIT" ]
3
2021-06-30T00:39:26.000Z
2021-08-01T07:13:59.000Z
python/932.beautiful-array.py
Zhenye-Na/leetcode
95196a45f5709ccf7b970ee5ac84a4bf8fe2301e
[ "MIT" ]
6
2020-02-08T02:55:22.000Z
2022-01-02T22:48:18.000Z
# # @lc app=leetcode id=932 lang=python3 # # [932] Beautiful Array # # https://leetcode.com/problems/beautiful-array/description/ # # algorithms # Medium (61.61%) # Likes: 650 # Dislikes: 933 # Total Accepted: 29K # Total Submissions: 46K # Testcase Example: '4' # # An array nums of length n is beautiful if: # ...
21.794118
79
0.571525
669
0.451417
0
0
0
0
0
0
766
0.516869
51874c89c5717dcfb607658189272652ac7ef4e4
892
py
Python
word2vec_train.py
kyucheolsim/gs-word2vec
14a08f4320cd913694dab5980a5c4467c0ed9613
[ "MIT" ]
null
null
null
word2vec_train.py
kyucheolsim/gs-word2vec
14a08f4320cd913694dab5980a5c4467c0ed9613
[ "MIT" ]
2
2021-03-31T20:05:56.000Z
2021-12-13T20:46:58.000Z
word2vec_train.py
kyucheolsim/gs-word2vec
14a08f4320cd913694dab5980a5c4467c0ed9613
[ "MIT" ]
null
null
null
from konlpy.tag import Mecab from gensim.models.word2vec import Word2Vec from W2VData import tokenize, W2VData import logging logging.basicConfig(format='%(asctime)s : %(levelname)s : %(message)s', level=logging.INFO) ADD_POS = True LOWER = True SG = 0 ITER = 10 MIN_COUNT = 3 EMBED_SIZE = 100 VOCAB_SIZE = 10000 tok...
30.758621
187
0.748879
0
0
0
0
0
0
0
0
245
0.274664
518975b5241f59261c929bcb2590e0efbd096746
94
py
Python
NicBot/errors.py
nicdgonzalez/NicBot-discord.py
3a21510c1e4e2c933f48708478ae792159324a7c
[ "MIT" ]
null
null
null
NicBot/errors.py
nicdgonzalez/NicBot-discord.py
3a21510c1e4e2c933f48708478ae792159324a7c
[ "MIT" ]
null
null
null
NicBot/errors.py
nicdgonzalez/NicBot-discord.py
3a21510c1e4e2c933f48708478ae792159324a7c
[ "MIT" ]
null
null
null
class NicBotException(Exception): pass class UpdateNewFile(NicBotException): pass
10.444444
37
0.744681
88
0.93617
0
0
0
0
0
0
0
0
518a5d915b98f8e18ba518f211b0e46a72f71a18
3,338
py
Python
india-covid19india-py/main.py
vpt101/covid-19_data_analysis
1d02385ad75b650e584e119a8891433aa70e90d8
[ "CC0-1.0" ]
null
null
null
india-covid19india-py/main.py
vpt101/covid-19_data_analysis
1d02385ad75b650e584e119a8891433aa70e90d8
[ "CC0-1.0" ]
null
null
null
india-covid19india-py/main.py
vpt101/covid-19_data_analysis
1d02385ad75b650e584e119a8891433aa70e90d8
[ "CC0-1.0" ]
null
null
null
# encoding: utf-8 import sys sys.path.append(r'./Ind') from IndStatePlotter import IndStatePlotter from IndTypes import IndType from ModellingMode import ModellingMode import Meta as cc from Ind import IndParser from Ind import IndStateAnalyzer as Isa # from IndStateAnalyzer import IndStateAnalyzer DEFAULT_MODE...
30.623853
123
0.639305
0
0
0
0
0
0
0
0
1,018
0.304973
518bffc883589adb5a823d3a5c5dcc651a157b64
4,203
py
Python
test/test.py
mtdsousa/antlr4-verilog
c2238beb56a38ac098cd6e06e0ac8d7de7c1eaad
[ "MIT" ]
3
2022-02-15T15:51:43.000Z
2022-02-21T13:18:09.000Z
test/test.py
mtdsousa/antlr4-verilog
c2238beb56a38ac098cd6e06e0ac8d7de7c1eaad
[ "MIT" ]
1
2022-02-21T12:35:10.000Z
2022-02-21T16:45:56.000Z
test/test.py
mtdsousa/antlr4-verilog-python
c2238beb56a38ac098cd6e06e0ac8d7de7c1eaad
[ "MIT" ]
null
null
null
''' Copyright (c) 2022 Marco Diniz Sousa Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribu...
38.916667
109
0.655722
3,255
0.774447
0
0
0
0
0
0
1,060
0.252201
518e296fcd47480555619d28da9b1f803d91b6a5
543
py
Python
test/ep/file_test.py
alanjimenez1/qualibrate-api
d005e35029303ac9dfd8e66cb09c79393a472cad
[ "MIT" ]
null
null
null
test/ep/file_test.py
alanjimenez1/qualibrate-api
d005e35029303ac9dfd8e66cb09c79393a472cad
[ "MIT" ]
null
null
null
test/ep/file_test.py
alanjimenez1/qualibrate-api
d005e35029303ac9dfd8e66cb09c79393a472cad
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Test module for User endpoint responses """ __author__ = "@canimus" __license__ = "MIT" __revision__ = "1.0" import unittest from test.ep.utils import ApiRequest as http_client class FileEndPointTest(unittest.TestCase): '''Files endpoint tests''' def test_file_upload(self): ...
25.857143
108
0.664825
335
0.616943
0
0
0
0
0
0
244
0.449355
518f9bd6632a478fd29c87c47bda80684e792457
1,286
py
Python
ZDF/CSCI 6212/QuickSelect.py
zdf0221/leetcode
66e92e29e6619d138401658fa656f41404ccabe3
[ "MIT" ]
null
null
null
ZDF/CSCI 6212/QuickSelect.py
zdf0221/leetcode
66e92e29e6619d138401658fa656f41404ccabe3
[ "MIT" ]
null
null
null
ZDF/CSCI 6212/QuickSelect.py
zdf0221/leetcode
66e92e29e6619d138401658fa656f41404ccabe3
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ ------------------------------------------------- File Name: QuickSelect Description : Author : zdf date: 2018/9/26 ------------------------------------------------- Change Activity: 2018/9/26:13:11 ----------------------------------------...
27.361702
88
0.452566
0
0
0
0
0
0
0
0
388
0.300775
5194f2f707886fc733209274dbe61c98c74c61c8
3,009
py
Python
main.py
ResByte/torch-gcp-fn
eb343dd144c6a5d828e666db084cb39b70896ff8
[ "Apache-2.0" ]
1
2020-03-31T21:49:37.000Z
2020-03-31T21:49:37.000Z
main.py
ResByte/torch-gcp-fn
eb343dd144c6a5d828e666db084cb39b70896ff8
[ "Apache-2.0" ]
null
null
null
main.py
ResByte/torch-gcp-fn
eb343dd144c6a5d828e666db084cb39b70896ff8
[ "Apache-2.0" ]
null
null
null
import os import io import json import torch import torch.nn as nn import torch.nn.functional as F from torchvision import models,transforms from PIL import Image import time from flask import jsonify import logging logging.basicConfig(level=logging.INFO) # lazy global device = None model = None imagenet_clas...
27.605505
78
0.627119
0
0
0
0
0
0
0
0
1,114
0.370223
519570b06f319b34b830bc38363fe48ded0d8966
3,686
py
Python
ressonantes/core/models/organization/organization.py
ag-castro/brazil-ongs-mapping
80f7542d437913ad92cd74b6e456760f61be32ad
[ "Unlicense" ]
1
2020-09-07T17:33:42.000Z
2020-09-07T17:33:42.000Z
ressonantes/core/models/organization/organization.py
ag-castro/brazil-ongs-mapping
80f7542d437913ad92cd74b6e456760f61be32ad
[ "Unlicense" ]
null
null
null
ressonantes/core/models/organization/organization.py
ag-castro/brazil-ongs-mapping
80f7542d437913ad92cd74b6e456760f61be32ad
[ "Unlicense" ]
null
null
null
import random import string from datetime import date from django.db import models from django.core.validators import validate_email from django.core.validators import validate_slug from django.core.validators import validate_unicode_slug from django.contrib.auth import get_user_model from django.utils.translation impo...
30.213115
69
0.645958
3,261
0.881828
0
0
0
0
0
0
588
0.159005
5196b7f30facdbb359a3288ac6d9df2fd67191b7
988
py
Python
source/svlib/tests/conftest.py
DomBalint/SecureVision
311e4744fdc8513079c2e7dcfbc2316035f92793
[ "MIT" ]
null
null
null
source/svlib/tests/conftest.py
DomBalint/SecureVision
311e4744fdc8513079c2e7dcfbc2316035f92793
[ "MIT" ]
null
null
null
source/svlib/tests/conftest.py
DomBalint/SecureVision
311e4744fdc8513079c2e7dcfbc2316035f92793
[ "MIT" ]
null
null
null
import os import pytest files = ['test1.yaml', 'test2.yaml', 'test3.yaml'] @pytest.fixture(scope='module') def desired_config_files(): return [os.path.join(os.getcwd(), 'data_test', file) for file in files] params_configs = [ { 'mail_server': { 'host': 'example11.securevison.intra.net...
20.163265
75
0.574899
0
0
0
0
383
0.387652
0
0
290
0.293522
5196f9c7d01c0adec8869c697882fc216857847d
643
py
Python
app.py
miccarrer/copbot
44c549afd6d80ae516c8615d6b18518b745f9020
[ "MIT" ]
null
null
null
app.py
miccarrer/copbot
44c549afd6d80ae516c8615d6b18518b745f9020
[ "MIT" ]
null
null
null
app.py
miccarrer/copbot
44c549afd6d80ae516c8615d6b18518b745f9020
[ "MIT" ]
null
null
null
import logging from src.config import get_env_var, get_yaml_file from src.discord.bot import DiscordBot from src.service import AppService if __name__ == '__main__': base_config = get_yaml_file('base') logging.basicConfig(**base_config['logging']) try: logging.info('Starting Bot') discord...
29.227273
59
0.698289
0
0
0
0
0
0
0
0
97
0.150855
51984836ae6425428be2132a8038261f69705e21
3,691
py
Python
app/views/user.py
WishesFire/Epam-Python-Project
d54bbe48d539b0810d9b42b0839a64b035021c6d
[ "Apache-2.0" ]
1
2021-11-18T11:57:02.000Z
2021-11-18T11:57:02.000Z
app/views/user.py
WishesFire/Epam-project
d54bbe48d539b0810d9b42b0839a64b035021c6d
[ "Apache-2.0" ]
null
null
null
app/views/user.py
WishesFire/Epam-project
d54bbe48d539b0810d9b42b0839a64b035021c6d
[ "Apache-2.0" ]
null
null
null
""" Views: - `sign_up (/signup)`: Register a new user in the system - `login (/login)`: Sign in to an existing account - `logout (/logout)`: Sing out from current account - `profile (/profile)`: User profile with functions: - Shows user vacancies - Create a new vacancy """ # pylint: disa...
30.504132
96
0.666486
514
0.139258
0
0
2,286
0.619344
0
0
1,441
0.390409
51992a037bb72c62719a2b885a904c938dc3ece2
9,821
py
Python
main.py
zypangpang/example_of_lightgbm
c4862253cbb4233f1143c21608f3dd6ff9f59d78
[ "MIT" ]
null
null
null
main.py
zypangpang/example_of_lightgbm
c4862253cbb4233f1143c21608f3dd6ff9f59d78
[ "MIT" ]
null
null
null
main.py
zypangpang/example_of_lightgbm
c4862253cbb4233f1143c21608f3dd6ff9f59d78
[ "MIT" ]
1
2021-10-22T02:36:10.000Z
2021-10-22T02:36:10.000Z
import numpy as np import pandas as pd import lightgbm as lgb from pathlib import Path from functools import reduce from sklearn.metrics import roc_auc_score import hyperopt from hyperopt import STATUS_OK, Trials, hp, space_eval, tpe import utils, feature_selector, preprocess global_params = { 'CK_var_threshold': ...
38.363281
112
0.68099
0
0
0
0
391
0.039813
0
0
2,929
0.298238
5199e96e2dc3b8315e0ada1e424873f01260bd26
174
py
Python
visualdl/server/log.py
gmhou/VisualDL
fa7b30e09b91c336b1eb900ad799f71cf0db9f94
[ "Apache-2.0" ]
1
2018-01-19T10:54:38.000Z
2018-01-19T10:54:38.000Z
visualdl/server/log.py
gmhou/VisualDL
fa7b30e09b91c336b1eb900ad799f71cf0db9f94
[ "Apache-2.0" ]
null
null
null
visualdl/server/log.py
gmhou/VisualDL
fa7b30e09b91c336b1eb900ad799f71cf0db9f94
[ "Apache-2.0" ]
null
null
null
import logging logger = logging logger.basicConfig( format='[%(levelname)s %(asctime)s %(filename)s:%(lineno)s] %(message)s') logger.getLogger().setLevel(logging.INFO)
21.75
77
0.718391
0
0
0
0
0
0
0
0
65
0.373563
5199f14fdf88726ac3b8eabf6653de80b8972703
103
py
Python
rcnn/dataset/__init__.py
qilei123/MASK_4_RETINA2
c02a516f37877c52abc6df9d69bb2ac34ab85950
[ "Apache-2.0" ]
null
null
null
rcnn/dataset/__init__.py
qilei123/MASK_4_RETINA2
c02a516f37877c52abc6df9d69bb2ac34ab85950
[ "Apache-2.0" ]
null
null
null
rcnn/dataset/__init__.py
qilei123/MASK_4_RETINA2
c02a516f37877c52abc6df9d69bb2ac34ab85950
[ "Apache-2.0" ]
null
null
null
from imdb import IMDB from pascal_voc import PascalVOC from coco import coco from retina import retina
20.6
32
0.84466
0
0
0
0
0
0
0
0
0
0
519bee9e5276c118445215e895dd293662cda568
2,693
py
Python
heic-conv.py
shihaocao/heic-converter
5a6b068dfbf69c982397d20b69d9c67e260eee82
[ "MIT" ]
null
null
null
heic-conv.py
shihaocao/heic-converter
5a6b068dfbf69c982397d20b69d9c67e260eee82
[ "MIT" ]
1
2021-12-24T07:36:25.000Z
2021-12-25T23:17:20.000Z
heic-conv.py
shihaocao/heic-converter
5a6b068dfbf69c982397d20b69d9c67e260eee82
[ "MIT" ]
1
2021-12-24T01:06:11.000Z
2021-12-24T01:06:11.000Z
'''A python script for batch converting heic files.''' import argparse import os import subprocess import time CMD = "heif-convert" QUALITY = "-q" QUALITY_ARG = "99" AUX_FILE_SUFFIX = "-urn:com:apple:photo:2020:aux:hdrgainmap" def parse_args() -> argparse.Namespace: '''Get the args from the command line''' ...
34.525641
112
0.678054
0
0
0
0
0
0
0
0
869
0.322688
519d2e3dfdf9c558c8b3e16c368955fda216a00c
1,251
py
Python
generate_images.py
rwg1234/sticks
4d1398c0a659bbc1b4c9e44ae8ea5a5429a96c0f
[ "MIT" ]
null
null
null
generate_images.py
rwg1234/sticks
4d1398c0a659bbc1b4c9e44ae8ea5a5429a96c0f
[ "MIT" ]
null
null
null
generate_images.py
rwg1234/sticks
4d1398c0a659bbc1b4c9e44ae8ea5a5429a96c0f
[ "MIT" ]
null
null
null
# Script to create www/assets/sprites/{box,stack}_*.png # This file is NOT a part of the www/ folder and DOES NOT need to be deployed. It is used for development only. from PIL import Image SOURCE_DIRECTORY = "www/assets/matches gens_1-12" DEST_DIRECTORY = "www/assets/sprites" for i in range(1, 13): original_fil...
43.137931
135
0.692246
0
0
0
0
0
0
0
0
542
0.433253
519e717718802250addcc03ae24b702964950e74
15,237
py
Python
api/backend/app/namespace/api.py
radsec/ottr
411559a2bac307594c92d4d14667143cd04625ff
[ "Apache-2.0" ]
207
2021-10-29T20:35:04.000Z
2022-03-02T08:04:06.000Z
api/backend/app/namespace/api.py
wngn123/ottr
411559a2bac307594c92d4d14667143cd04625ff
[ "Apache-2.0" ]
3
2021-11-05T05:50:57.000Z
2022-01-03T06:07:18.000Z
api/backend/app/namespace/api.py
wngn123/ottr
411559a2bac307594c92d4d14667143cd04625ff
[ "Apache-2.0" ]
19
2021-11-03T06:34:46.000Z
2022-03-21T14:06:54.000Z
""" Copyright 2021-present Airbnb, 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, sof...
50.121711
800
0.64829
12,230
0.802651
0
0
12,725
0.835138
0
0
4,131
0.271116
519f171ce6f44a916c5bc406a1cd821a75880bb1
2,803
py
Python
my_robot/launch/robot_description.launch.py
arpit6232/ros2_gazebo_integration
a57c781824166722d68b555e21fc48fcf856a0bd
[ "Apache-2.0" ]
null
null
null
my_robot/launch/robot_description.launch.py
arpit6232/ros2_gazebo_integration
a57c781824166722d68b555e21fc48fcf856a0bd
[ "Apache-2.0" ]
null
null
null
my_robot/launch/robot_description.launch.py
arpit6232/ros2_gazebo_integration
a57c781824166722d68b555e21fc48fcf856a0bd
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import os import yaml from ament_index_python.packages import get_package_share_directory from launch import LaunchDescription from launch.actions import DeclareLaunchArgument from launch.actions import IncludeLaunchDescription from launch.conditions import IfCondition from launch.launch_descri...
30.139785
99
0.699251
0
0
0
0
0
0
0
0
750
0.26757
51a0718e8863a5231ddc644bc610b93556c2f43d
1,429
py
Python
wouso/games/grandchallenge/views.py
AlexandruGhergut/wouso
f26244ff58ae626808ae8c58ccc93d21f9f2666f
[ "Apache-2.0" ]
117
2015-01-02T18:07:33.000Z
2021-01-06T22:36:25.000Z
wouso/games/grandchallenge/views.py
AlexandruGhergut/wouso
f26244ff58ae626808ae8c58ccc93d21f9f2666f
[ "Apache-2.0" ]
229
2015-01-12T07:07:58.000Z
2019-10-12T08:27:01.000Z
wouso/games/grandchallenge/views.py
AlexandruGhergut/wouso
f26244ff58ae626808ae8c58ccc93d21f9f2666f
[ "Apache-2.0" ]
96
2015-01-07T05:26:09.000Z
2020-06-25T07:28:51.000Z
from django.contrib import messages from django.contrib.auth.decorators import login_required from django.shortcuts import render, render_to_response from django.template import RequestContext from models import GrandChallengeGame, GrandChallengeUser from wouso.core.ui import register_sidebar_block from wouso.interfac...
42.029412
110
0.748775
0
0
0
0
671
0.469559
0
0
270
0.188943
51a2c3962a3a17215f77501362d5256d9fd5774a
4,091
py
Python
day_16.py
JamesOwers/aoc2017
682e73c3c80562e59cb9a3ce44c152fbd1994b97
[ "MIT" ]
null
null
null
day_16.py
JamesOwers/aoc2017
682e73c3c80562e59cb9a3ce44c152fbd1994b97
[ "MIT" ]
null
null
null
day_16.py
JamesOwers/aoc2017
682e73c3c80562e59cb9a3ce44c152fbd1994b97
[ "MIT" ]
null
null
null
from __future__ import division, print_function import os from my_utils.tests import test_function import string def spin(inst_string, programs): nr = int(inst_string) if nr == 0: return programs old_programs = programs[:] programs[0:nr] = old_programs[-nr:] programs[nr:] = old_programs[0:-...
30.080882
94
0.615742
0
0
0
0
0
0
0
0
1,095
0.267661
51a358ddac445393325f7c09b1e0d7e668772ee9
1,513
py
Python
index/handler.py
googleglass/mirror-catfacts-python
31d957cf9236128f8f4606668ce168b5e1470030
[ "Apache-2.0" ]
4
2016-10-13T22:17:52.000Z
2020-08-08T18:29:23.000Z
index/handler.py
googleglass/mirror-catfacts-python
31d957cf9236128f8f4606668ce168b5e1470030
[ "Apache-2.0" ]
null
null
null
index/handler.py
googleglass/mirror-catfacts-python
31d957cf9236128f8f4606668ce168b5e1470030
[ "Apache-2.0" ]
5
2015-02-21T09:04:13.000Z
2020-02-02T00:01:38.000Z
# Copyright (C) 2014 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 applicable law or agreed to in writ...
28.018519
74
0.708526
630
0.416391
0
0
0
0
0
0
851
0.562459
51a49a4995bff223d947f29602fdc6e1a5d73c32
208
py
Python
main.py
syqu22/discord-bot-wow-helper
b1d5426b683c41dfe2c7d6742a671e6d209b6e42
[ "MIT" ]
1
2021-12-14T17:23:12.000Z
2021-12-14T17:23:12.000Z
main.py
syqu22/discord-bot-wow-helper
b1d5426b683c41dfe2c7d6742a671e6d209b6e42
[ "MIT" ]
null
null
null
main.py
syqu22/discord-bot-wow-helper
b1d5426b683c41dfe2c7d6742a671e6d209b6e42
[ "MIT" ]
null
null
null
import os from bot import bot from dotenv import load_dotenv # Read environment variables from .env load_dotenv() if __name__ == "__main__": # Start the bot bot.bot.run(os.getenv("DISCORD_TOKEN"))
17.333333
43
0.730769
0
0
0
0
0
0
0
0
78
0.375
51a6290e44551eff196c9b9eb2b8f69ed8a8403e
346
py
Python
third_party/WebKit/LayoutTests/http/tests/websocket/delayed-handshake_wsh.py
google-ar/chromium
2441c86a5fd975f09a6c30cddb57dfb7fc239699
[ "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
777
2017-08-29T15:15:32.000Z
2022-03-21T05:29:41.000Z
third_party/WebKit/LayoutTests/http/tests/websocket/delayed-handshake_wsh.py
harrymarkovskiy/WebARonARCore
2441c86a5fd975f09a6c30cddb57dfb7fc239699
[ "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
66
2017-08-30T18:31:18.000Z
2021-08-02T10:59:35.000Z
third_party/WebKit/LayoutTests/http/tests/websocket/delayed-handshake_wsh.py
harrymarkovskiy/WebARonARCore
2441c86a5fd975f09a6c30cddb57dfb7fc239699
[ "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
123
2017-08-30T01:19:34.000Z
2022-03-17T22:55:31.000Z
# Copyright 2015 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. import time def web_socket_do_extra_handshake(request): time.sleep(1) # Wait for 1 second and then always accept. def web_socket_transfer_data(reques...
24.714286
72
0.763006
0
0
0
0
0
0
0
0
214
0.618497
51a8565b769000f11b09672e6d238626a93895dc
61,477
py
Python
generated-libraries/python/netapp/fpolicy/__init__.py
radekg/netapp-ontap-lib-get
6445ebb071ec147ea82a486fbe9f094c56c5c40d
[ "MIT" ]
2
2017-03-28T15:31:26.000Z
2018-08-16T22:15:18.000Z
generated-libraries/python/netapp/fpolicy/__init__.py
radekg/netapp-ontap-lib-get
6445ebb071ec147ea82a486fbe9f094c56c5c40d
[ "MIT" ]
null
null
null
generated-libraries/python/netapp/fpolicy/__init__.py
radekg/netapp-ontap-lib-get
6445ebb071ec147ea82a486fbe9f094c56c5c40d
[ "MIT" ]
null
null
null
from netapp.connection import NaConnection from extension_list_info import ExtensionListInfo # 1 properties from event_name import EventName # 0 properties from fpolicy_policy_get_iter_key_td import FpolicyPolicyGetIterKeyTd # 2 properties from monitored_operation_info import MonitoredOperationInfo # 1 properties from ...
51.748316
450
0.606422
59,356
0.965499
0
0
0
0
0
0
42,276
0.687672
51a89957c30ea223d6bc40f4ff382714eaea3515
6,970
py
Python
classes_and_tests/src/TemplateFileCreator.py
anconaesselmann/LiveUnit
8edebb49cb02fa898550cbafdf87af7fc22f106b
[ "MIT" ]
null
null
null
classes_and_tests/src/TemplateFileCreator.py
anconaesselmann/LiveUnit
8edebb49cb02fa898550cbafdf87af7fc22f106b
[ "MIT" ]
null
null
null
classes_and_tests/src/TemplateFileCreator.py
anconaesselmann/LiveUnit
8edebb49cb02fa898550cbafdf87af7fc22f106b
[ "MIT" ]
null
null
null
DEBUG = False import os import sys import re import ast try: from MirroredDirectory import MirroredDirectory from Std import Std from FileSystem import FileSystem from Importer import Importer except ImportError: from .MirroredDirectory import MirroredDirectory from .Std import Std from .F...
43.024691
162
0.654232
6,586
0.944907
0
0
0
0
0
0
1,211
0.173745
51a987bb42f9129c3d434e226fa501c00fe36edf
9,801
py
Python
sportrefpy/nfl/player.py
alexkahan/sports_stats
6fbc435c8fa0dffb0b7152ce42c055a252858c54
[ "MIT" ]
null
null
null
sportrefpy/nfl/player.py
alexkahan/sports_stats
6fbc435c8fa0dffb0b7152ce42c055a252858c54
[ "MIT" ]
null
null
null
sportrefpy/nfl/player.py
alexkahan/sports_stats
6fbc435c8fa0dffb0b7152ce42c055a252858c54
[ "MIT" ]
null
null
null
import requests import os from bs4 import BeautifulSoup, Comment import pandas as pd import numpy as np import enchant from sportrefpy.nfl.league import NFL from sportrefpy.errors.not_found import PlayerNotFound class NFLPlayer(NFL): def __init__(self, player): super().__init__() player_dict = ...
42.986842
107
0.531374
9,584
0.977859
0
0
0
0
0
0
7,653
0.780839
51acd2ce8f5fd62db4d35ce9e5d03738c3f8c0ff
2,395
py
Python
undiscord/server/__main__.py
nklapste/undiscord
221b8387561494f1c721db21ef05729e0abb6b08
[ "MIT" ]
3
2019-06-14T21:36:08.000Z
2020-12-21T09:25:30.000Z
undiscord/server/__main__.py
nklapste/undiscord
221b8387561494f1c721db21ef05729e0abb6b08
[ "MIT" ]
3
2019-01-13T21:06:04.000Z
2019-01-14T06:56:44.000Z
undiscord/server/__main__.py
nklapste/undiscord
221b8387561494f1c721db21ef05729e0abb6b08
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """argparse and entry point script for undiscord flask/cheroot server""" import argparse import os import sys from logging import getLogger from cheroot.wsgi import Server as WSGIServer, PathInfoDispatcher import undiscord.server.server from undiscord.common import add_...
31.933333
108
0.65261
0
0
0
0
0
0
0
0
668
0.278914
51ae04a6cf49cbb0f24fa3e18989871f944277d7
943
py
Python
src/yellowdog_client/compute/__init__.py
yellowdog/yellowdog-sdk-python-public
da69a7d6e45c92933e34fefcaef8b5d98dcd6036
[ "Apache-2.0" ]
null
null
null
src/yellowdog_client/compute/__init__.py
yellowdog/yellowdog-sdk-python-public
da69a7d6e45c92933e34fefcaef8b5d98dcd6036
[ "Apache-2.0" ]
null
null
null
src/yellowdog_client/compute/__init__.py
yellowdog/yellowdog-sdk-python-public
da69a7d6e45c92933e34fefcaef8b5d98dcd6036
[ "Apache-2.0" ]
null
null
null
from .compute_changed_event_data import ComputeChangedEventData from .compute_client import ComputeClient from .compute_client_impl import ComputeClientImpl from .compute_requirement_helper import ComputeRequirementHelper from .compute_requirement_instances_changed_event_listener import \ ComputeRequirementInstance...
42.863636
102
0.869565
0
0
0
0
0
0
0
0
252
0.267232
51af100bd940df7f4472f28df5f3cb8e0fc2b56d
8,943
py
Python
logic/core/game.py
rdelacrz/connect-four
7123d6e649aadcb76f429c61dde405527211c5b2
[ "MIT" ]
null
null
null
logic/core/game.py
rdelacrz/connect-four
7123d6e649aadcb76f429c61dde405527211c5b2
[ "MIT" ]
null
null
null
logic/core/game.py
rdelacrz/connect-four
7123d6e649aadcb76f429c61dde405527211c5b2
[ "MIT" ]
null
null
null
""" Contains the logic needed to run a game of Connect Four. """ # Built-in modules from copy import deepcopy # User-defined modules from .components import ConnectFourGrid, Disc from .exceptions import IllegalAction, IllegalState, InvalidSpace from ..utilities import js_callback DISC_COLORS = [ '#F5473E', # re...
39.570796
120
0.634015
8,543
0.955272
0
0
4,484
0.501398
0
0
3,876
0.433412
51afeaf4f55a43d53e19bc0e60acc3ffda999e63
317
py
Python
tests/text/test_textfilter.py
evendrow/ifcc
ae6ea6f19028ba5d367c086fe94cfe4237829059
[ "Apache-2.0" ]
43
2020-10-21T03:25:21.000Z
2022-03-26T08:13:06.000Z
tests/text/test_textfilter.py
evendrow/ifcc
ae6ea6f19028ba5d367c086fe94cfe4237829059
[ "Apache-2.0" ]
8
2020-12-04T15:06:45.000Z
2022-03-28T12:18:14.000Z
tests/text/test_textfilter.py
evendrow/ifcc
ae6ea6f19028ba5d367c086fe94cfe4237829059
[ "Apache-2.0" ]
10
2020-11-13T03:46:09.000Z
2022-02-05T21:39:52.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import unittest from clinicgen.text.textfilter import LowerTextFilter class TestLowerTextFilter(unittest.TestCase): def test_filter(self): text = 'Hello NLP!' tfilter = LowerTextFilter() self.assertEqual(tfilter.filter(text), 'hello nlp!')
24.384615
60
0.690852
197
0.621451
0
0
0
0
0
0
68
0.214511
51b196fb1c16109226ea07074ed93a9af4c9a3cb
3,321
py
Python
rdflib/plugins/parsers/pyRdfa/transform/DublinCore.py
gromgull/rdflib
7c90f646e3734ee6d3081b5d3f699f0f501f6a39
[ "BSD-3-Clause" ]
8
2019-05-29T09:38:30.000Z
2021-01-20T03:36:59.000Z
rdflib/plugins/parsers/pyRdfa/transform/DublinCore.py
gromgull/rdflib
7c90f646e3734ee6d3081b5d3f699f0f501f6a39
[ "BSD-3-Clause" ]
12
2021-03-09T03:01:16.000Z
2022-03-11T23:59:36.000Z
rdflib/plugins/parsers/pyRdfa/transform/DublinCore.py
gromgull/rdflib
7c90f646e3734ee6d3081b5d3f699f0f501f6a39
[ "BSD-3-Clause" ]
4
2021-06-10T18:54:16.000Z
2021-10-25T00:42:22.000Z
# -*- coding: utf-8 -*- """ Transfomer: handles the Dublin Core recommendation for XHTML for adding DC values. What this means is that: - DC namespaces are defined via C{<link rel="schema.XX" value="...."/>} - The 'XX.term' is used much like QNames in C{<link>} and C{<meta>} elements. For the latter, the namespaced ...
33.887755
154
0.6486
0
0
0
0
0
0
0
0
1,832
0.551475
51b20a17b8a9bcfd086180a80e748d7889e0c7e7
478
py
Python
run.py
aquamarinn/console-snake
aabd6c8cc9b4d2d903abfb107a47eab74806e094
[ "MIT" ]
null
null
null
run.py
aquamarinn/console-snake
aabd6c8cc9b4d2d903abfb107a47eab74806e094
[ "MIT" ]
null
null
null
run.py
aquamarinn/console-snake
aabd6c8cc9b4d2d903abfb107a47eab74806e094
[ "MIT" ]
null
null
null
from snake import Environment, GUI, PlayerController if __name__ == '__main__': try: env = Environment() gui = GUI(env) controller = PlayerController(env) running, _ = env.reset() while running: running, snake_pos = env.step() print('running', runnin...
25.157895
52
0.546025
0
0
0
0
0
0
0
0
19
0.039749