hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
239
max_forks_repo_name
stringlengths
5
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
4a0986067f7cb2442b4c612b34da27fa8d958d7f
536
py
Python
36.py
JohnOmena/PPA_algorithms
64c043a969ff4959b924b5a34eaafad18aacbd4b
[ "MIT" ]
null
null
null
36.py
JohnOmena/PPA_algorithms
64c043a969ff4959b924b5a34eaafad18aacbd4b
[ "MIT" ]
null
null
null
36.py
JohnOmena/PPA_algorithms
64c043a969ff4959b924b5a34eaafad18aacbd4b
[ "MIT" ]
null
null
null
def menor_i_esimo(strA, strB, i): if len(strA) == 0: return strB[i] elif len(strB) == 0: return StrA[i] mid_strB = len(strB) // 2 mid_strA = len(strA) // 2 if mid_srtA + mid_strB < i: if st1[mid_strA] > st2[mid_strB]: return menor_i_esimo(strA, strB[mid_strB+1:], i - mid_strB - 1) else: ...
26.8
67
0.641791
4a09871a3c42329aa0e9b78327c54c22d955ccd5
4,715
py
Python
conf/settings.py
pincoin/django-summernote-demo
928cccf3bcf33aaed2953818718c49339ddc1f76
[ "MIT" ]
null
null
null
conf/settings.py
pincoin/django-summernote-demo
928cccf3bcf33aaed2953818718c49339ddc1f76
[ "MIT" ]
null
null
null
conf/settings.py
pincoin/django-summernote-demo
928cccf3bcf33aaed2953818718c49339ddc1f76
[ "MIT" ]
null
null
null
import os from django.utils.translation import ugettext_lazy as _ # Build paths inside the project like this: os.path.join(BASE_DIR, ...) BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) # SECURITY WARNING: keep the secret key used in production secret! SECRET_KEY = '(h^8r(h9dme(g!atw*x8@(amp50...
30.419355
91
0.657052
4a098753a488ca1468c33e5a8ac7047f2b25612a
527
py
Python
packages/merlin/components/Spell.py
lijun99/pyre
004dfd4c06489b4ba5b32877338ca6440f2d523b
[ "BSD-3-Clause" ]
3
2019-08-02T21:02:47.000Z
2021-09-08T13:59:43.000Z
packages/merlin/components/Spell.py
lijun99/pyre
004dfd4c06489b4ba5b32877338ca6440f2d523b
[ "BSD-3-Clause" ]
null
null
null
packages/merlin/components/Spell.py
lijun99/pyre
004dfd4c06489b4ba5b32877338ca6440f2d523b
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # michael a.g. aïvázis # orthologue # (c) 1998-2019 all rights reserved # # framework access import pyre # my superclass from .Dashboard import Dashboard # my protocol from .Action import Action # class declaration class Spell(pyre.panel(), Dashboard): """ Base class for merlin spe...
15.057143
47
0.624288
4a0987d108a2976717c1cbabfb14f27dbe7d0743
3,775
py
Python
test_5a.py
RaulAstudillo06/BOCF
68d19984385cdb27c9f6c5002c67fc9467bbe705
[ "BSD-3-Clause" ]
9
2019-06-16T01:18:52.000Z
2021-11-03T15:43:55.000Z
test_5a.py
RaulAstudillo06/BOCF
68d19984385cdb27c9f6c5002c67fc9467bbe705
[ "BSD-3-Clause" ]
3
2020-09-09T06:12:51.000Z
2021-06-01T23:46:18.000Z
test_5a.py
RaulAstudillo06/BOCF
68d19984385cdb27c9f6c5002c67fc9467bbe705
[ "BSD-3-Clause" ]
5
2019-07-07T13:17:44.000Z
2020-09-09T06:06:17.000Z
import numpy as np import scipy import GPyOpt import GPy from multi_objective import MultiObjective from multi_outputGP import multi_outputGP from maEI import maEI from uEI_noiseless import uEI_noiseless from parameter_distribution import ParameterDistribution from utility import Utility from expectation_utility import...
29.724409
117
0.666755
4a098858f769263c29306e17646a43b79bce276e
3,051
py
Python
core/model/commands/board.py
the-dalee/gnome-2048
1a461409ee1b99d142446df73a55a9b5f4a9a3ae
[ "MIT" ]
1
2016-05-10T03:10:53.000Z
2016-05-10T03:10:53.000Z
core/model/commands/board.py
the-dalee/gnome-2048
1a461409ee1b99d142446df73a55a9b5f4a9a3ae
[ "MIT" ]
11
2015-01-02T00:00:52.000Z
2015-01-13T00:01:26.000Z
core/model/commands/board.py
the-dalee/gnome-2048
1a461409ee1b99d142446df73a55a9b5f4a9a3ae
[ "MIT" ]
null
null
null
class BoardTile(object): type = "Board" description = "Do nothing with board" def execute(self): pass def undo(self): pass class MoveTile(BoardTile): source = None destination = None board = None description = "Move tile" def __init__(self, board, source, destina...
26.530435
82
0.549656
4a0988b27ded3586961dc3c8064ae658e0c7c2a3
4,679
py
Python
ui.py
calzoneman/python-chatui
421d389811e58e4f33e68fb6edb6e75eb3252092
[ "MIT" ]
30
2015-01-13T07:00:22.000Z
2021-09-16T15:15:13.000Z
ui.py
toipacoelho/Crypto-Chat
a9079a5f175a2773f25ed140499c8f67a72363dd
[ "MIT" ]
null
null
null
ui.py
toipacoelho/Crypto-Chat
a9079a5f175a2773f25ed140499c8f67a72363dd
[ "MIT" ]
6
2015-08-19T20:52:13.000Z
2022-01-18T20:48:06.000Z
import curses class ChatUI: def __init__(self, stdscr, userlist_width=16): curses.use_default_colors() for i in range(0, curses.COLORS): curses.init_pair(i, i, -1); self.stdscr = stdscr self.userlist = [] self.inputbuffer = "" self.linebuffer = [] ...
32.047945
74
0.549904
4a0989261f2857ff059263b1c9d375de6ee0133a
4,095
py
Python
storyscript/compiler/lowering/Faketree.py
edvald/storyscript
a912586a65c1ee31cb634092e952767da6215269
[ "Apache-2.0" ]
null
null
null
storyscript/compiler/lowering/Faketree.py
edvald/storyscript
a912586a65c1ee31cb634092e952767da6215269
[ "Apache-2.0" ]
null
null
null
storyscript/compiler/lowering/Faketree.py
edvald/storyscript
a912586a65c1ee31cb634092e952767da6215269
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from lark.lexer import Token from storyscript.parser import Tree class FakeTree: # unique prefix for all compiler-inserted paths prefix = '__p-' """ Creates fake trees that are not in the original story source. """ def __init__(self, block): self.block = block...
31.992188
77
0.569963
4a098980ce6af836f139286d9b4c580b7b0b28e3
609
py
Python
catalog/migrations/0009_bookinstance_borrower.py
Abravobolado/django_local_library
7ad640d16b746fe4870b1648d07714edb5535656
[ "Apache-2.0" ]
null
null
null
catalog/migrations/0009_bookinstance_borrower.py
Abravobolado/django_local_library
7ad640d16b746fe4870b1648d07714edb5535656
[ "Apache-2.0" ]
null
null
null
catalog/migrations/0009_bookinstance_borrower.py
Abravobolado/django_local_library
7ad640d16b746fe4870b1648d07714edb5535656
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.2.6 on 2021-10-12 08:04 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('catalog', '0008_auto_202...
27.681818
134
0.683087
4a0989b5fa413ed57b15a19f0543adb7812e26c7
11,850
py
Python
saleor/graphql/payment/mutations.py
avantrio/saleor
29735afc16fa07012a74d6116ca59eb6f920bbff
[ "CC-BY-4.0" ]
null
null
null
saleor/graphql/payment/mutations.py
avantrio/saleor
29735afc16fa07012a74d6116ca59eb6f920bbff
[ "CC-BY-4.0" ]
null
null
null
saleor/graphql/payment/mutations.py
avantrio/saleor
29735afc16fa07012a74d6116ca59eb6f920bbff
[ "CC-BY-4.0" ]
null
null
null
import graphene import opp.core from django.core.exceptions import ValidationError from ... import settings from ...checkout.calculations import calculate_checkout_total_with_gift_cards from ...checkout.checkout_cleaner import clean_billing_address, clean_checkout_shipping from ...checkout.utils import cancel_active_p...
37.147335
88
0.621772
4a098c457da6f7bdd925fa9bf4cc0a00aa85244a
1,863
py
Python
files/downloader/my_images.py
AzureBlueCobalt/analyze-gelbooru
694b6e843c06942b3d6110e79e083b9ab71214b9
[ "MIT" ]
null
null
null
files/downloader/my_images.py
AzureBlueCobalt/analyze-gelbooru
694b6e843c06942b3d6110e79e083b9ab71214b9
[ "MIT" ]
null
null
null
files/downloader/my_images.py
AzureBlueCobalt/analyze-gelbooru
694b6e843c06942b3d6110e79e083b9ab71214b9
[ "MIT" ]
null
null
null
''' TODO call downloader.download_all_info_vectors("id: {}".format(id)) for every image, because the filenames seemed to have been truncated ''' def get_info_vectors(): from os import listdir from os.path import isfile, join, splitext mypath = "res/images_mine" onlyfiles = [f for f in li...
26.614286
132
0.633387
4a098c61c325cbe12fee2677ab0e1d4b04e5fc77
3,212
py
Python
app/buildhistory/migrations/0001_initial.py
Dhruv-Sachdev1313/macports-webapp
ed3d8efceac4cfb694a51241cf81023ed10aade6
[ "BSD-2-Clause" ]
39
2018-05-09T02:14:52.000Z
2022-03-07T20:31:44.000Z
app/buildhistory/migrations/0001_initial.py
Dhruv-Sachdev1313/macports-webapp
ed3d8efceac4cfb694a51241cf81023ed10aade6
[ "BSD-2-Clause" ]
337
2018-05-07T20:09:07.000Z
2022-03-31T14:16:01.000Z
app/buildhistory/migrations/0001_initial.py
Dhruv-Sachdev1313/macports-webapp
ed3d8efceac4cfb694a51241cf81023ed10aade6
[ "BSD-2-Clause" ]
28
2018-05-09T18:03:07.000Z
2022-03-30T02:21:56.000Z
# Generated by Django 2.2.10 on 2020-05-01 11:56 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Builder', fields=[ ...
40.658228
140
0.578456
4a098da1db7e793c14e93b6b0ab900be7dac7a69
5,505
py
Python
rpython/rlib/test/test_rgil.py
olliemath/pypy
8b873bd0b8bf76075aba3d915c260789f26f5788
[ "Apache-2.0", "OpenSSL" ]
null
null
null
rpython/rlib/test/test_rgil.py
olliemath/pypy
8b873bd0b8bf76075aba3d915c260789f26f5788
[ "Apache-2.0", "OpenSSL" ]
null
null
null
rpython/rlib/test/test_rgil.py
olliemath/pypy
8b873bd0b8bf76075aba3d915c260789f26f5788
[ "Apache-2.0", "OpenSSL" ]
null
null
null
from __future__ import print_function from rpython.rlib import rgil from rpython.rlib.debug import debug_print from rpython.translator.c.test.test_standalone import StandaloneTests from rpython.config.translationoption import get_combined_translation_config class BaseTestGIL(StandaloneTests): def test_simple(sel...
32.767857
78
0.520981
4a098e3314d42292ac3451ae6899e242c972e14a
3,828
py
Python
fbchat/_thread.py
PapitomasterDeveloper/fbchat
b8f83610e7c1381f1783f010a6953381bb553c42
[ "BSD-3-Clause" ]
1
2019-11-02T14:44:05.000Z
2019-11-02T14:44:05.000Z
fbchat/_thread.py
PapitomasterDeveloper/fbchat
b8f83610e7c1381f1783f010a6953381bb553c42
[ "BSD-3-Clause" ]
null
null
null
fbchat/_thread.py
PapitomasterDeveloper/fbchat
b8f83610e7c1381f1783f010a6953381bb553c42
[ "BSD-3-Clause" ]
null
null
null
import attr from ._core import Enum class ThreadType(Enum): """Used to specify what type of Facebook thread is being used. See :ref:`intro_threads` for more info. """ USER = 1 GROUP = 2 PAGE = 3 def _to_class(self): """Convert this enum value to the corresponding class.""" ...
30.624
111
0.576803
4a098eac2fb571ad759df8dcb2f2573a8a0414fe
3,049
py
Python
fhir/resources/tests/test_guidanceresponse.py
mmabey/fhir.resources
cc73718e9762c04726cd7de240c8f2dd5313cbe1
[ "BSD-3-Clause" ]
null
null
null
fhir/resources/tests/test_guidanceresponse.py
mmabey/fhir.resources
cc73718e9762c04726cd7de240c8f2dd5313cbe1
[ "BSD-3-Clause" ]
null
null
null
fhir/resources/tests/test_guidanceresponse.py
mmabey/fhir.resources
cc73718e9762c04726cd7de240c8f2dd5313cbe1
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ Profile: http://hl7.org/fhir/StructureDefinition/GuidanceResponse Release: R4 Version: 4.0.1 Build ID: 9346c8cc45 Last updated: 2019-11-01T09:29:23.356+11:00 """ import io import json import os import unittest import pytest from .. import guidanceresponse from ..fhirdate import FHIRDate f...
36.73494
92
0.659233
4a09904c29032b64547bda625f50de972d48cfd9
6,050
py
Python
postman.py
ssttkkl/nonebot-plugin-pixiv
f2276c923f45ceececd42474f43b5e60d1d9e504
[ "MIT" ]
5
2022-02-10T11:10:49.000Z
2022-03-31T05:25:30.000Z
postman.py
ssttkkl/nonebot-plugin-pixiv
f2276c923f45ceececd42474f43b5e60d1d9e504
[ "MIT" ]
1
2022-01-16T10:50:00.000Z
2022-01-16T11:41:28.000Z
postman.py
ssttkkl/nonebot-plugin-pixiv
f2276c923f45ceececd42474f43b5e60d1d9e504
[ "MIT" ]
null
null
null
from asyncio import create_task import dataclasses from io import BytesIO import json import typing from h11 import Data from nonebot.adapters.onebot.v11 import Bot, Message, MessageSegment from nonebot.adapters.onebot.v11.event import MessageEvent, GroupMessageEvent from nonebot.utils import DataclassEncoder from ....
40.878378
120
0.527107
4a09907de4677706eb0623812673b4fc946422bc
14,911
py
Python
frille-lang/lib/python3.6/site-packages/ipykernel/tests/test_message_spec.py
frillecode/CDS-spring-2021-language
a0b2116044cd20d4a34b98f23bd2663256c90c5d
[ "MIT" ]
3
2021-04-03T18:20:56.000Z
2021-09-09T17:44:46.000Z
frille-lang/lib/python3.6/site-packages/ipykernel/tests/test_message_spec.py
frillecode/CDS-spring-2021-language
a0b2116044cd20d4a34b98f23bd2663256c90c5d
[ "MIT" ]
1
2021-04-26T11:00:23.000Z
2021-04-26T11:00:23.000Z
frille-lang/lib/python3.6/site-packages/ipykernel/tests/test_message_spec.py
frillecode/CDS-spring-2021-language
a0b2116044cd20d4a34b98f23bd2663256c90c5d
[ "MIT" ]
3
2021-01-31T16:40:52.000Z
2021-08-29T18:32:34.000Z
"""Test suite for our zeromq-based message specification.""" # Copyright (c) IPython Development Team. # Distributed under the terms of the Modified BSD License. import re import sys from distutils.version import LooseVersion as V from queue import Empty import nose.tools as nt from nose.plugins.skip import SkipTest...
27.259598
114
0.632553
4a0990cd888dc881e749dfc7bfd106750af2169a
613
py
Python
tests/functional/exporters/testing/dummy_programmatic_test_plan.py
francoisverbeek/testplan
eec61d396627f24fc4c7135e3938c83b01311ff1
[ "Apache-2.0" ]
null
null
null
tests/functional/exporters/testing/dummy_programmatic_test_plan.py
francoisverbeek/testplan
eec61d396627f24fc4c7135e3938c83b01311ff1
[ "Apache-2.0" ]
64
2019-04-15T20:56:40.000Z
2021-03-23T01:00:30.000Z
tests/functional/exporters/testing/dummy_programmatic_test_plan.py
LevyForchh/testplan
3cca8821acd4df569ae495009317deeb8ba5f3f0
[ "Apache-2.0" ]
null
null
null
import sys from testplan import test_plan from testplan.testing.multitest import MultiTest, testsuite, testcase from testplan import defaults from testplan.exporters.testing import WebServerExporter @testsuite class Alpha(object): @testcase def test_comparison(self, env, result): result.equal(1, 1, '...
22.703704
69
0.717781
4a0990d39c0bd02a8d0b0aa3e71b4c4bbfdd0e42
1,685
py
Python
sumo/helper.py
wenke727/RoadNetworkCreator
a359d2e5c5f0921b1af514c3a88b5e3a25707407
[ "MIT" ]
1
2021-04-24T07:56:46.000Z
2021-04-24T07:56:46.000Z
sumo/helper.py
wenke727/RoadNetworkCreator
a359d2e5c5f0921b1af514c3a88b5e3a25707407
[ "MIT" ]
null
null
null
sumo/helper.py
wenke727/RoadNetworkCreator
a359d2e5c5f0921b1af514c3a88b5e3a25707407
[ "MIT" ]
null
null
null
from pyproj import CRS, Transformer def proj_trans(x, y, in_sys=4326, out_sys=32649, offset=(-799385.77,-2493897.75), precision=2 ): """proj trans Args: x ([type]): [description] y ([type]): [description] in_sys (int, optional): [description]. Defaults to 4326. out_sys (int, o...
40.119048
245
0.660534
4a09910d45470c4d7af0d9a642f988e3eaf07b73
5,710
py
Python
library/avi_update_se_data_vnics.py
kumaresanhm/Ansible-roleSDK
4fe1d53a3738a9ac0644ff57e5f5182eb1d5a319
[ "Apache-2.0" ]
null
null
null
library/avi_update_se_data_vnics.py
kumaresanhm/Ansible-roleSDK
4fe1d53a3738a9ac0644ff57e5f5182eb1d5a319
[ "Apache-2.0" ]
null
null
null
library/avi_update_se_data_vnics.py
kumaresanhm/Ansible-roleSDK
4fe1d53a3738a9ac0644ff57e5f5182eb1d5a319
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # # @author: Gaurav Rastogi (grastogi@avinetworks.com) # Eric Anderson (eanderson@avinetworks.com) # module_check: supported # # Copyright: (c) 2017 Gaurav Rastogi, <grastogi@avinetworks.com> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # ANSIB...
34.606061
115
0.608932
4a0991d3ef6682e8949c7392ab615d8dfb15811d
4,354
py
Python
backend/api/python_http_client/test/test_api_list_runs_response.py
FrancisLfg/pipelines
b0466cb9626407f125bf7ce2c9de37991e654a6d
[ "Apache-2.0" ]
null
null
null
backend/api/python_http_client/test/test_api_list_runs_response.py
FrancisLfg/pipelines
b0466cb9626407f125bf7ce2c9de37991e654a6d
[ "Apache-2.0" ]
null
null
null
backend/api/python_http_client/test/test_api_list_runs_response.py
FrancisLfg/pipelines
b0466cb9626407f125bf7ce2c9de37991e654a6d
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
40.691589
138
0.532384
4a0991e43cb810f29660b5181aac27aaf518f228
446
py
Python
picross_generator/model/Image.py
samuel-flynn/picross-generator
b94d42574451e39d703047b95d75da6364db9e58
[ "MIT" ]
null
null
null
picross_generator/model/Image.py
samuel-flynn/picross-generator
b94d42574451e39d703047b95d75da6364db9e58
[ "MIT" ]
null
null
null
picross_generator/model/Image.py
samuel-flynn/picross-generator
b94d42574451e39d703047b95d75da6364db9e58
[ "MIT" ]
null
null
null
from typing import List from picross_generator.model.ImageMatrix import ImageMatrix from picross_generator.model.RowColumnMetadata import RowColumnMetadata class Image: name : str image_matrix : ImageMatrix column_metadata : List[RowColumnMetadata] row_metadata : List[RowColumnMetadata] def __in...
27.875
71
0.73991
4a0992574dd69d00806313ca57d8108332c14b19
5,619
py
Python
example/example.py
hozblok/DjangoChannelsGraphqlWs
77b406fb19053fcb9220a5bb23e1349fde4fbda3
[ "MIT" ]
null
null
null
example/example.py
hozblok/DjangoChannelsGraphqlWs
77b406fb19053fcb9220a5bb23e1349fde4fbda3
[ "MIT" ]
null
null
null
example/example.py
hozblok/DjangoChannelsGraphqlWs
77b406fb19053fcb9220a5bb23e1349fde4fbda3
[ "MIT" ]
null
null
null
# # coding: utf-8 # Copyright (c) 2019 DATADVANCE # # 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,...
30.873626
88
0.662395
4a0993434b61b40b22a6f91f674c8961c670ffe3
893
py
Python
Python_projects/project10/proj10-app.py
helpmoeny/pythoncode
0e2a0a3d3243323dd9e970daaf3b6c347900c694
[ "Unlicense" ]
null
null
null
Python_projects/project10/proj10-app.py
helpmoeny/pythoncode
0e2a0a3d3243323dd9e970daaf3b6c347900c694
[ "Unlicense" ]
null
null
null
Python_projects/project10/proj10-app.py
helpmoeny/pythoncode
0e2a0a3d3243323dd9e970daaf3b6c347900c694
[ "Unlicense" ]
null
null
null
import currency print("A bank account named 'account' has $1000, you may enter a deduction amount") print("(In the format 'XXX YYY', where xxx is the amount and yyy is the currencycode)") print("or type 'q' to quit") account=currency.Currency(1000,'USD') while True: fo=input("expense amount: ") if fo=="q" or f...
28.806452
87
0.576708
4a0993fffece1d7ec91557d694969ebed80d1163
8,395
py
Python
py_librus_api/librus.py
TheAmazingRak/python-librus
2e9e112d38d62df80708a2af9efae5c086d8da65
[ "MIT" ]
4
2020-04-14T21:33:00.000Z
2021-02-24T08:23:51.000Z
py_librus_api/librus.py
TheAmazingRak/python-librus
2e9e112d38d62df80708a2af9efae5c086d8da65
[ "MIT" ]
6
2020-04-28T23:56:59.000Z
2021-05-16T14:45:05.000Z
py_librus_api/librus.py
TheAmazingRak/python-librus
2e9e112d38d62df80708a2af9efae5c086d8da65
[ "MIT" ]
4
2021-10-10T19:59:06.000Z
2021-12-12T21:48:04.000Z
import requests import sys class Librus: host = "https://api.librus.pl/" headers = { "Authorization": "Basic Mjg6ODRmZGQzYTg3YjAzZDNlYTZmZmU3NzdiNThiMzMyYjE=" } logged_in = False lucky_number = None grades = None subjects = None categories = None students = None teache...
32.041985
118
0.491126
4a09942be567aabd51a845f4faefdf2b347d0aa3
477
py
Python
OpenAttack/data/universal_sentence_encoder.py
zangy17/OpenAttack
9114a8af12680f14684d2bf1bc6a5c5e34f8932c
[ "MIT" ]
10
2021-12-01T15:35:05.000Z
2022-03-16T16:10:24.000Z
OpenAttack/data/universal_sentence_encoder.py
zangy17/OpenAttack
9114a8af12680f14684d2bf1bc6a5c5e34f8932c
[ "MIT" ]
null
null
null
OpenAttack/data/universal_sentence_encoder.py
zangy17/OpenAttack
9114a8af12680f14684d2bf1bc6a5c5e34f8932c
[ "MIT" ]
null
null
null
""" :type: str :Size: 916.57MB Model files for Universal Sentence Encoder in tensorflow_hub. `[pdf] <https://arxiv.org/pdf/1803.11175>`__ `[page] <https://tfhub.dev/google/universal-sentence-encoder/4>`__ """ from OpenAttack.utils import make_zip_downloader import os NAME = "AttackAssist.UniversalSentenceEncoder" UR...
23.85
66
0.754717
4a0994932dd96f5c4f7cc2abf77ed71dc6e79399
153,935
py
Python
venv/lib/python3.8/site-packages/IPython/core/interactiveshell.py
amcclead7336/Enterprise_Data_Science_Final
ccdc0aa08d4726bf82d71c11a1cc0c63eb301a28
[ "Unlicense", "MIT" ]
null
null
null
venv/lib/python3.8/site-packages/IPython/core/interactiveshell.py
amcclead7336/Enterprise_Data_Science_Final
ccdc0aa08d4726bf82d71c11a1cc0c63eb301a28
[ "Unlicense", "MIT" ]
null
null
null
venv/lib/python3.8/site-packages/IPython/core/interactiveshell.py
amcclead7336/Enterprise_Data_Science_Final
ccdc0aa08d4726bf82d71c11a1cc0c63eb301a28
[ "Unlicense", "MIT" ]
2
2021-05-23T16:46:31.000Z
2021-05-26T23:51:09.000Z
# -*- coding: utf-8 -*- """Main IPython class.""" #----------------------------------------------------------------------------- # Copyright (C) 2001 Janko Hauser <jhauser@zscout.de> # Copyright (C) 2001-2007 Fernando Perez. <fperez@colorado.edu> # Copyright (C) 2008-2011 The IPython Development Team # # Distribu...
40.244444
147
0.592153
4a0995529456bb4d32909dd01ee19bf838748c93
17,048
py
Python
virtual/lib/python3.8/site-packages/sqlalchemy/dialects/postgresql/pg8000.py
vyonna6519/pitches
4fa0d56051f5f7761984fdedd61337a0a6195a17
[ "MIT" ]
null
null
null
virtual/lib/python3.8/site-packages/sqlalchemy/dialects/postgresql/pg8000.py
vyonna6519/pitches
4fa0d56051f5f7761984fdedd61337a0a6195a17
[ "MIT" ]
null
null
null
virtual/lib/python3.8/site-packages/sqlalchemy/dialects/postgresql/pg8000.py
vyonna6519/pitches
4fa0d56051f5f7761984fdedd61337a0a6195a17
[ "MIT" ]
null
null
null
# postgresql/pg8000.py # Copyright (C) 2005-2022 the SQLAlchemy authors and contributors <see AUTHORS # file> # # This module is part of SQLAlchemy and is released under # the MIT License: https://www.opensource.org/licenses/mit-license.php r""" .. dialect:: postgresql+pg8000 :name: pg8000 :dbapi: pg8000 :c...
28.652101
95
0.626115
4a0995dd276672ffbbe3b1bf3c32f103dba8e105
3,979
py
Python
app/recipe/tests/test_tags_api.py
kukkikkpl/recipe-app-api
94212e4ca9ca79c886b699d7be12163c0baa09a6
[ "MIT" ]
null
null
null
app/recipe/tests/test_tags_api.py
kukkikkpl/recipe-app-api
94212e4ca9ca79c886b699d7be12163c0baa09a6
[ "MIT" ]
null
null
null
app/recipe/tests/test_tags_api.py
kukkikkpl/recipe-app-api
94212e4ca9ca79c886b699d7be12163c0baa09a6
[ "MIT" ]
null
null
null
from django.contrib.auth import get_user_model from django.urls import reverse from django.test import TestCase from rest_framework import status from rest_framework.test import APIClient from core.models import Tag, Recipe from recipe.serializers import TagSerializer TAGS_URL = reverse('recipe:tag-list') class ...
31.579365
71
0.631063
4a099759891491e43e2c994da4b8134bfa068231
412
py
Python
aliexpress/api/rest/OfferRedefiningGetcanusedproductbysizetemplateid.py
bayborodin/aliexpress-sdk
89935adf46412d8d054fa80a19153971279c4106
[ "MIT" ]
3
2021-03-10T16:46:43.000Z
2022-03-29T15:28:50.000Z
aliexpress/api/rest/OfferRedefiningGetcanusedproductbysizetemplateid.py
bayborodin/aliexpress-sdk
89935adf46412d8d054fa80a19153971279c4106
[ "MIT" ]
null
null
null
aliexpress/api/rest/OfferRedefiningGetcanusedproductbysizetemplateid.py
bayborodin/aliexpress-sdk
89935adf46412d8d054fa80a19153971279c4106
[ "MIT" ]
2
2021-10-30T17:09:34.000Z
2021-11-25T11:50:52.000Z
from aliexpress.api.base import RestApi class AliexpressOfferRedefiningGetcanusedproductbysizetemplateidRequest( RestApi ): def __init__(self, domain="gw.api.taobao.com", port=80): RestApi.__init__(self, domain, port) self.current_page = None self.size_template_id = None def getap...
29.428571
78
0.742718
4a099998fc72f23e3937765a9e872dd60ad6e2af
1,520
py
Python
samples/shareItems.py
travisbutcher/ago-tools
09572cedf0dd5517cd9c88941409144c91439462
[ "Apache-2.0" ]
56
2015-01-07T12:10:10.000Z
2021-11-28T21:22:41.000Z
samples/shareItems.py
travisbutcher/ago-tools
09572cedf0dd5517cd9c88941409144c91439462
[ "Apache-2.0" ]
20
2015-01-07T19:01:44.000Z
2018-01-26T16:47:53.000Z
samples/shareItems.py
travisbutcher/ago-tools
09572cedf0dd5517cd9c88941409144c91439462
[ "Apache-2.0" ]
47
2015-01-08T15:29:21.000Z
2022-03-28T11:33:30.000Z
import csv import argparse import sys from agoTools.admin import Admin from agoTools.admin import AGOLItems def _raw_input(prompt=None, stream=None, input=None): # A raw_input() replacement that doesn't save the string in the # GNU readline history. if not stream: stream = sys.stderr if not i...
24.516129
76
0.669079
4a0999b1396c4bf9052536989a7c1c746dd9d5c3
684
py
Python
migrations/versions/a9078456e117_added_next_update_to_sensor_model.py
frangiz/walter-server
0c9ab88a9cc6cf446ba86b1b06bcf9f8c64cf639
[ "MIT" ]
null
null
null
migrations/versions/a9078456e117_added_next_update_to_sensor_model.py
frangiz/walter-server
0c9ab88a9cc6cf446ba86b1b06bcf9f8c64cf639
[ "MIT" ]
21
2019-09-16T08:08:17.000Z
2020-05-27T06:49:34.000Z
migrations/versions/a9078456e117_added_next_update_to_sensor_model.py
frangiz/walter-server
0c9ab88a9cc6cf446ba86b1b06bcf9f8c64cf639
[ "MIT" ]
1
2019-10-16T11:23:38.000Z
2019-10-16T11:23:38.000Z
"""Added next_update to Sensor model. Revision ID: a9078456e117 Revises: a100346c698b Create Date: 2019-10-07 20:30:43.880157 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'a9078456e117' down_revision = 'a100346c698b' branch_labels = None depends_on = None ...
23.586207
83
0.69883
4a0999ccf931c788b281f7847449bdc6e4a738f2
9,208
py
Python
cla.py
owenps/Chess-Line-Analysis
bd1902df0733bdeec78d08aa7b977179e6826941
[ "MIT" ]
1
2021-07-21T04:28:28.000Z
2021-07-21T04:28:28.000Z
cla.py
owenps/Chess-Line-Analysis
bd1902df0733bdeec78d08aa7b977179e6826941
[ "MIT" ]
null
null
null
cla.py
owenps/Chess-Line-Analysis
bd1902df0733bdeec78d08aa7b977179e6826941
[ "MIT" ]
null
null
null
import requests import pandas as pd import json import time import random from chess import pgn opening_db = {} data = None request_err_msg = True # ------------ Settings --------------- with open('settings.json') as f: settings = json.load(f) ratings, speeds = [], [] for r in settings['Average Ratings']: if...
33.97786
143
0.55821
4a099a9675df540b97461b2f1513340aba0d12d6
7,573
py
Python
datadog_checks_dev/datadog_checks/dev/tooling/manifest_validator/v1/validator.py
flowcommerce/integrations-core
c562b0d423ec1a5dd4073b703d6a8d3a9ab23c72
[ "BSD-3-Clause" ]
null
null
null
datadog_checks_dev/datadog_checks/dev/tooling/manifest_validator/v1/validator.py
flowcommerce/integrations-core
c562b0d423ec1a5dd4073b703d6a8d3a9ab23c72
[ "BSD-3-Clause" ]
null
null
null
datadog_checks_dev/datadog_checks/dev/tooling/manifest_validator/v1/validator.py
flowcommerce/integrations-core
c562b0d423ec1a5dd4073b703d6a8d3a9ab23c72
[ "BSD-3-Clause" ]
null
null
null
# (C) Datadog, Inc. 2021-present # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) import os import uuid import datadog_checks.dev.tooling.manifest_validator.common.validator as common from ...constants import get_root from ...manifest_validator.common.validator import BaseManifestVali...
38.441624
113
0.589198
4a099b3392d1f54354f7a38229734ce0361df64e
21,120
py
Python
examples/example_retromoco_motion.py
GReguig/torchio
0cd4f3105408410adda4fddf4873eb8c12883ecc
[ "Apache-2.0" ]
null
null
null
examples/example_retromoco_motion.py
GReguig/torchio
0cd4f3105408410adda4fddf4873eb8c12883ecc
[ "Apache-2.0" ]
null
null
null
examples/example_retromoco_motion.py
GReguig/torchio
0cd4f3105408410adda4fddf4873eb8c12883ecc
[ "Apache-2.0" ]
null
null
null
from pprint import pprint from torchio import Image, transforms, INTENSITY, LABEL, Subject, SubjectsDataset import torchio from torchvision.transforms import Compose import matplotlib.pyplot as plt import numpy as np import os import pandas as pd from torchio.transforms import RandomMotionFromTimeCourse, RandomAffine, ...
39.256506
153
0.640152
4a099ba3bb212b848ef9fea96b45077edcbe3bf4
24,157
py
Python
nncf/quantization/init_precision.py
gnomonsis/nncf_pytorch
9fc4a92b5cb1b2c240e633c4ffa69b4fae1917fb
[ "Apache-2.0" ]
null
null
null
nncf/quantization/init_precision.py
gnomonsis/nncf_pytorch
9fc4a92b5cb1b2c240e633c4ffa69b4fae1917fb
[ "Apache-2.0" ]
4
2020-07-17T11:12:35.000Z
2021-12-15T15:20:24.000Z
nncf/quantization/init_precision.py
gnomonsis/nncf_pytorch
9fc4a92b5cb1b2c240e633c4ffa69b4fae1917fb
[ "Apache-2.0" ]
null
null
null
import itertools from collections import OrderedDict from typing import List, Dict, Union import os import shutil import torch from torch import Tensor, nn from torch.nn.modules.loss import _Loss from nncf.debug import is_debug from nncf.dynamic_graph.context import no_nncf_trace from nncf.nncf_logger import logger a...
49.705761
120
0.640394
4a099c9242184ae4f4ba2e4d3829c30185210dd0
55
py
Python
Examples/hello2.py
tariqueameer7/course-python
f1252e82471f7e34d66beb30d9236850df1bd8d4
[ "Apache-2.0" ]
1
2021-02-04T16:59:11.000Z
2021-02-04T16:59:11.000Z
Examples/hello2.py
tariqueameer7/course-python
f1252e82471f7e34d66beb30d9236850df1bd8d4
[ "Apache-2.0" ]
null
null
null
Examples/hello2.py
tariqueameer7/course-python
f1252e82471f7e34d66beb30d9236850df1bd8d4
[ "Apache-2.0" ]
1
2019-10-30T14:37:48.000Z
2019-10-30T14:37:48.000Z
print("hello world") for i in range(10): print(i)
11
20
0.618182
4a099cb840e7831ba90ef54d8c108f02725f5fdd
1,990
py
Python
blog/blogsettings.py
mkdika/pyniblog
0612836f7c91076a386d5d64ae22cc4fe9443964
[ "Apache-2.0" ]
1
2018-08-14T06:30:10.000Z
2018-08-14T06:30:10.000Z
blog/blogsettings.py
mkdika/pyniblog
0612836f7c91076a386d5d64ae22cc4fe9443964
[ "Apache-2.0" ]
7
2019-10-22T21:37:16.000Z
2021-09-08T00:01:00.000Z
blog/blogsettings.py
mkdika/pyniblog
0612836f7c91076a386d5d64ae22cc4fe9443964
[ "Apache-2.0" ]
null
null
null
class BlogSetting(): # blog short name, to be appear on upper left conner of each page. name = 'PyniBlog' # blog title, for main page. title = 'Simple Blog' # blog sub, for main page. sub_title = 'A Django 2 Based Blog Engine' # social media account link, to be apper on bottom section o...
49.75
105
0.656281
4a099d36b2d7bb1bb2b287a2cf483e8c888835c0
1,629
py
Python
src/tests/test_direct.py
ndejong/env-alias
0047098ebfc3be08b426b78a5cb9e747c87c28cf
[ "BSD-2-Clause" ]
2
2020-12-11T23:01:53.000Z
2021-07-02T05:49:25.000Z
src/tests/test_direct.py
ndejong/env-alias
0047098ebfc3be08b426b78a5cb9e747c87c28cf
[ "BSD-2-Clause" ]
null
null
null
src/tests/test_direct.py
ndejong/env-alias
0047098ebfc3be08b426b78a5cb9e747c87c28cf
[ "BSD-2-Clause" ]
null
null
null
import os import tempfile import random import string from env_alias.EnvAliasGenerator import EnvAliasGenerator def test_sample_direct_01(capsys): yaml = ''' sample_direct_01: value: 'somevalue' ''' configuration_file = __generate_config_file(yaml) EnvAliasGenerator().main(configuration...
26.704918
116
0.712093
4a099deaf688028c190f0947e5ed0539a6ef7d12
8,527
py
Python
welcome.py
Hemphill39/jetson-service
27a22a53b337500447d9076c9f50189eaa232e65
[ "Apache-2.0" ]
null
null
null
welcome.py
Hemphill39/jetson-service
27a22a53b337500447d9076c9f50189eaa232e65
[ "Apache-2.0" ]
30
2017-10-03T21:53:59.000Z
2017-12-05T22:18:01.000Z
welcome.py
Hemphill39/jetson-service
27a22a53b337500447d9076c9f50189eaa232e65
[ "Apache-2.0" ]
2
2017-09-25T21:26:11.000Z
2017-12-07T18:14:30.000Z
# Copyright 2015 IBM Corp. 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed...
37.073913
239
0.644424
4a099e901a1f2baa5221a42cc2d3b4e301ed328e
32,446
py
Python
src/ggrc/converters/handlers/handlers.py
sfarbotka/ggrc-core
ef7aae6bc09ad2f53a2414f643572e07d689784a
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/ggrc/converters/handlers/handlers.py
sfarbotka/ggrc-core
ef7aae6bc09ad2f53a2414f643572e07d689784a
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/ggrc/converters/handlers/handlers.py
sfarbotka/ggrc-core
ef7aae6bc09ad2f53a2414f643572e07d689784a
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Copyright (C) 2019 Google Inc. # Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> """Generic handlers for imports and exports.""" import json import re from logging import getLogger from datetime import date from datetime import datetime from dateutil.parser import parse from sqlalchemy i...
31.562257
79
0.672317
4a099edf1b9f36df43c09574f013246142a9dcb0
439
py
Python
geodescriber/config/base.py
Skydipper/Geodescriber
04b5160e5fe9a1a0bf4635276669f0de4ceb8ea7
[ "MIT" ]
null
null
null
geodescriber/config/base.py
Skydipper/Geodescriber
04b5160e5fe9a1a0bf4635276669f0de4ceb8ea7
[ "MIT" ]
null
null
null
geodescriber/config/base.py
Skydipper/Geodescriber
04b5160e5fe9a1a0bf4635276669f0de4ceb8ea7
[ "MIT" ]
1
2021-02-18T13:16:46.000Z
2021-02-18T13:16:46.000Z
import os from geodescriber.utils.files import BASE_DIR, PROJECT_DIR SETTINGS = { 'logging': { 'level': 'DEBUG' }, 'service': { 'port': 4501 }, 'gee': { 'service_account': 'skydipper@skydipper-196010.iam.gserviceaccount.com', 'privatekey_file': BASE_DIR + '/privateke...
23.105263
80
0.57631
4a099efb2258dce4e6026873f030aaf2714a5737
1,865
py
Python
generate_data.py
CaoDuyThanh/TIES_DataGeneration
31640fe992631802300efbdc53a0ef4a84cedff3
[ "MIT" ]
null
null
null
generate_data.py
CaoDuyThanh/TIES_DataGeneration
31640fe992631802300efbdc53a0ef4a84cedff3
[ "MIT" ]
null
null
null
generate_data.py
CaoDuyThanh/TIES_DataGeneration
31640fe992631802300efbdc53a0ef4a84cedff3
[ "MIT" ]
null
null
null
import argparse from TFGeneration.GenerateTFRecord import * def parse_args(): parser = argparse.ArgumentParser(description='Tool to generate synthetic tables data.') parser.add_argument('--filesize', type=int, default=1, help='Number of images to store in one tfrecord. Default: 1.') parser.add_argument('-...
62.166667
166
0.741555
4a099f09f076eda76f85a4f19e76b3bbea5a74d3
14,643
py
Python
Lib/test/test_multibytecodec_support.py
jimmyyu2004/jython
5b4dc2d54d01a6fda8c55d07b2608167e7a40769
[ "CNRI-Jython" ]
332
2015-08-22T12:43:56.000Z
2022-03-17T01:05:43.000Z
Lib/test/test_multibytecodec_support.py
Pandinosaurus/jython3
def4f8ec47cb7a9c799ea4c745f12badf92c5769
[ "CNRI-Jython" ]
36
2015-05-30T08:39:19.000Z
2022-03-04T20:42:33.000Z
Lib/test/test_multibytecodec_support.py
Pandinosaurus/jython3
def4f8ec47cb7a9c799ea4c745f12badf92c5769
[ "CNRI-Jython" ]
74
2015-05-29T17:18:53.000Z
2022-01-15T14:06:44.000Z
#!/usr/bin/env python # # test_multibytecodec_support.py # Common Unittest Routines for CJK codecs # import codecs import os import re import sys import unittest from http.client import HTTPException from test import support from io import StringIO class TestBase: encoding = '' # codec name codec ...
38.944149
99
0.51779
4a099f9b031d810ab3dd38b11cbee24e546bd4ad
555
py
Python
ch11ex8_rdupl.py
jerzyjerzy8/j-zelle
0e945091523ee074c3ab1f3eb0110e25744ccee4
[ "MIT" ]
null
null
null
ch11ex8_rdupl.py
jerzyjerzy8/j-zelle
0e945091523ee074c3ab1f3eb0110e25744ccee4
[ "MIT" ]
null
null
null
ch11ex8_rdupl.py
jerzyjerzy8/j-zelle
0e945091523ee074c3ab1f3eb0110e25744ccee4
[ "MIT" ]
null
null
null
# ch11ex8_rdupl """The remove_duplicates function and its tests.""" def remove_duplicates(ls): """Remove duplicate values from the list ls.""" d = {} for el in ls: d[el] = d.get(el, 0) + 1 for key in d: for i in range(d[key] - 1): ls.remove(key) def remove_duplicates_tests...
19.821429
51
0.540541
4a099fe403f13906da120d907cd5e7dbcc3d6d3d
6,716
py
Python
gcn/utils.py
floregol/gcn
23cad65c4f77a4eb007cf5f85a16d428d0928826
[ "MIT" ]
1
2018-07-09T20:08:07.000Z
2018-07-09T20:08:07.000Z
gcn/utils.py
floregol/gcn
23cad65c4f77a4eb007cf5f85a16d428d0928826
[ "MIT" ]
null
null
null
gcn/utils.py
floregol/gcn
23cad65c4f77a4eb007cf5f85a16d428d0928826
[ "MIT" ]
null
null
null
import numpy as np import pickle as pkl import networkx as nx import scipy.sparse as sp from scipy.sparse.linalg.eigen.arpack import eigsh import sys import os current_dir = os.getcwd() project_dir = os.path.abspath(os.path.join(os.getcwd(), os.pardir)) data_dir = os.path.join(current_dir, "data") def parse_index_fi...
36.699454
115
0.672722
4a09a13418ba1bff75a788fefdf65a5d63085eeb
1,752
py
Python
test.py
graehu/confply
4471b520b3685d587a89d31dee7eec9ca7bf85de
[ "MIT" ]
null
null
null
test.py
graehu/confply
4471b520b3685d587a89d31dee7eec9ca7bf85de
[ "MIT" ]
null
null
null
test.py
graehu/confply
4471b520b3685d587a89d31dee7eec9ca7bf85de
[ "MIT" ]
null
null
null
#!/usr/bin/env python # _____ .__ # ____ ____ _____/ ____\_____ | | ___.__. # _/ ___\/ _ \ / \ __\\____ \| |< | | # \ \__( <_> ) | \ | | |_> > |_\___ | # \___ >____/|___| /__| | __/|____/ ____| # \/ \/ |__| \/ # launcher generated usi...
38.933333
93
0.587329
4a09a1a8a56deaf26d1c9d3741a12d6adb8bcfb3
2,437
py
Python
Code/problems/pom3/helper/pom3_teams.py
rahlk/Experimental-Algorithms
d04a2d3ec5a4c54ff3ebff5cf003b93d2a983061
[ "MIT" ]
null
null
null
Code/problems/pom3/helper/pom3_teams.py
rahlk/Experimental-Algorithms
d04a2d3ec5a4c54ff3ebff5cf003b93d2a983061
[ "MIT" ]
9
2015-09-14T21:07:06.000Z
2015-12-08T01:38:08.000Z
Code/problems/pom3/helper/pom3_teams.py
rahlk/Experimental-Algorithms
d04a2d3ec5a4c54ff3ebff5cf003b93d2a983061
[ "MIT" ]
null
null
null
__author__ = 'joe krall' from pom3_team import * import math class pom3_teams: def __init__(p3t, requirements, decisions): p3t.teams = [] p3t.decisions = decisions # Build Each Team total_size = 0 while (total_size < requirements.count): #specific sized teams ...
38.68254
146
0.583094
4a09a22306582a21c4c34d2a6f386bb740e79fbb
1,735
py
Python
lnbits/extensions/lnurlpayout/crud.py
blackcoffeexbt/lnbits-legend
a9f2877af77ea56d1900e2b5bc1c21b9b7ac2f64
[ "MIT" ]
null
null
null
lnbits/extensions/lnurlpayout/crud.py
blackcoffeexbt/lnbits-legend
a9f2877af77ea56d1900e2b5bc1c21b9b7ac2f64
[ "MIT" ]
null
null
null
lnbits/extensions/lnurlpayout/crud.py
blackcoffeexbt/lnbits-legend
a9f2877af77ea56d1900e2b5bc1c21b9b7ac2f64
[ "MIT" ]
null
null
null
from typing import List, Optional, Union from lnbits.helpers import urlsafe_short_hash from . import db from .models import lnurlpayout, CreateLnurlPayoutData async def create_lnurlpayout(wallet_id: str, admin_key: str, data: CreateLnurlPayoutData) -> lnurlpayout: lnurlpayout_id = urlsafe_short_hash() await...
37.717391
105
0.707781
4a09a2bb923728684a2938057954486f10ad4cf3
3,976
py
Python
examples/python.asyncio/gen-py.asyncio/v1/music/f_AlbumWinners_publisher.py
dustyholmes-wf/frugal
915ccfc58fcc9baabc4549c522e3acd2975a2e0b
[ "Apache-2.0" ]
null
null
null
examples/python.asyncio/gen-py.asyncio/v1/music/f_AlbumWinners_publisher.py
dustyholmes-wf/frugal
915ccfc58fcc9baabc4549c522e3acd2975a2e0b
[ "Apache-2.0" ]
null
null
null
examples/python.asyncio/gen-py.asyncio/v1/music/f_AlbumWinners_publisher.py
dustyholmes-wf/frugal
915ccfc58fcc9baabc4549c522e3acd2975a2e0b
[ "Apache-2.0" ]
null
null
null
# # Autogenerated by Frugal Compiler (3.4.7) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # import inspect import sys import traceback from thrift.Thrift import TApplicationException from thrift.Thrift import TMessageType from thrift.Thrift import TType from frugal.exceptions import TApplica...
31.555556
83
0.652918
4a09a341cf9daaba18edc1c5b9d1571e89482381
855
py
Python
plotly/validators/histogram/_stream.py
fcollonval/plotly.py
5c7f100db1af8c82bb740a38ef684955a8ed6d0e
[ "MIT" ]
2
2020-03-24T11:41:14.000Z
2021-01-14T07:59:43.000Z
plotly/validators/histogram/_stream.py
fcollonval/plotly.py
5c7f100db1af8c82bb740a38ef684955a8ed6d0e
[ "MIT" ]
null
null
null
plotly/validators/histogram/_stream.py
fcollonval/plotly.py
5c7f100db1af8c82bb740a38ef684955a8ed6d0e
[ "MIT" ]
4
2019-06-03T14:49:12.000Z
2022-01-06T01:05:12.000Z
import _plotly_utils.basevalidators class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): def __init__( self, plotly_name='stream', parent_name='histogram', **kwargs ): super(StreamValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_...
32.884615
70
0.578947
4a09a34297d659c6841d679a0258041a434a6094
12,940
py
Python
Arvore AVL (TP3 A1)/mainA1AVL-v3.py
DFTF-PConsole/AED-Labs-Arvores-LEI
2149b4f6058fb581282c5c5d813ae99e233e453b
[ "MIT" ]
null
null
null
Arvore AVL (TP3 A1)/mainA1AVL-v3.py
DFTF-PConsole/AED-Labs-Arvores-LEI
2149b4f6058fb581282c5c5d813ae99e233e453b
[ "MIT" ]
null
null
null
Arvore AVL (TP3 A1)/mainA1AVL-v3.py
DFTF-PConsole/AED-Labs-Arvores-LEI
2149b4f6058fb581282c5c5d813ae99e233e453b
[ "MIT" ]
null
null
null
# v3 - Melhoramentos: Retirei "in" em "x in array"; implementei pesquisa binaria; print_array; etc. # v3 Abordagem Ate as folhas, depois de Baixo-para-Cima, Recursiva # pai.direcao = return no filho da recursividade # #### BIBLIOTECAS #### import sys # #### CONSTANTES #### CMD_IN_LINHAS = "LINHAS" CMD_OUT_NULO = "-...
49.201521
196
0.510433
4a09a39bce9a405eaa36f82c73bc421f5d766569
58,620
py
Python
idb/idapython.py
chubbymaggie/python-idb
027068f992a56b99468db52226910031e1b818a6
[ "Apache-2.0" ]
null
null
null
idb/idapython.py
chubbymaggie/python-idb
027068f992a56b99468db52226910031e1b818a6
[ "Apache-2.0" ]
null
null
null
idb/idapython.py
chubbymaggie/python-idb
027068f992a56b99468db52226910031e1b818a6
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import re import logging import weakref import functools import collections import six import idb.netnode import idb.analysis logger = logging.getLogger(__name__) # via: https://stackoverflow.com/a/33672499/87207 def memoized_method(*lru_args, **lru_kwargs): def decorator(func): ...
29.847251
176
0.58289
4a09a41d00838f0fd853d6df78833b7643c38945
16,444
py
Python
python/craftassist/test/fake_agent.py
boldsort/craftassist
8058d115a250e30deb60d969b7b1a5fefd6e974c
[ "MIT" ]
626
2019-07-18T18:40:44.000Z
2022-03-29T17:34:43.000Z
python/craftassist/test/fake_agent.py
boldsort/craftassist
8058d115a250e30deb60d969b7b1a5fefd6e974c
[ "MIT" ]
42
2019-07-27T11:04:15.000Z
2021-02-23T03:15:14.000Z
python/craftassist/test/fake_agent.py
boldsort/craftassist
8058d115a250e30deb60d969b7b1a5fefd6e974c
[ "MIT" ]
89
2019-07-19T15:07:39.000Z
2022-02-15T18:44:24.000Z
""" Copyright (c) Facebook, Inc. and its affiliates. """ import logging import numpy as np from typing import List from mc_util import XYZ, IDM, Block from utils import Look, Pos, Item, Player from base_agent.loco_mc_agent import LocoMCAgent from base_agent.base_util import TICKS_PER_SEC from mc_memory import MCAgent...
31.684008
95
0.59803
4a09a4300d42478f62d25067130d23f982222301
1,389
py
Python
examples/ex_toy.py
tonyduan/glm-lib
2afcbb3b22a5c9377735511d8d0b09eed7fe722c
[ "MIT" ]
2
2020-01-29T08:56:50.000Z
2020-02-03T13:06:17.000Z
examples/ex_toy.py
tonyduan/glm-lib
2afcbb3b22a5c9377735511d8d0b09eed7fe722c
[ "MIT" ]
null
null
null
examples/ex_toy.py
tonyduan/glm-lib
2afcbb3b22a5c9377735511d8d0b09eed7fe722c
[ "MIT" ]
null
null
null
import numpy as np from argparse import ArgumentParser from sklearn.datasets import load_breast_cancer, load_iris, load_boston, load_wine from sklearn.model_selection import train_test_split from sklearn.metrics import r2_score, roc_auc_score from glm_lib.distns import Bernoulli, Gaussian, Categorical from glm_lib.mode...
29.553191
82
0.684665
4a09a4beb2668ee8ccb9c0cf498e4140b2593e15
881
py
Python
libraries/botbuilder-ai/botbuilder/ai/qna/qnamaker_telemetry_client.py
Fl4v/botbuilder-python
4003d713beb8fb986a01cfd11632eabc65858618
[ "MIT" ]
388
2019-05-07T15:53:21.000Z
2022-03-28T20:29:46.000Z
libraries/botbuilder-ai/botbuilder/ai/qna/qnamaker_telemetry_client.py
Fl4v/botbuilder-python
4003d713beb8fb986a01cfd11632eabc65858618
[ "MIT" ]
1,286
2019-05-07T23:38:19.000Z
2022-03-31T10:44:16.000Z
libraries/botbuilder-ai/botbuilder/ai/qna/qnamaker_telemetry_client.py
Fl4v/botbuilder-python
4003d713beb8fb986a01cfd11632eabc65858618
[ "MIT" ]
168
2019-05-14T20:23:25.000Z
2022-03-16T06:49:14.000Z
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. from abc import ABC, abstractmethod from typing import Dict from botbuilder.core import BotTelemetryClient, TurnContext from .qnamaker_options import QnAMakerOptions class QnAMakerTelemetryClient(ABC): def __init__( ...
31.464286
82
0.715096
4a09a5764487b5a59045966b271eeed0e3369cbe
5,409
py
Python
lib/mnemonic_utils.py
bluzelle/blzpy
9b3084673913992375a0ae18270cb8edd8165352
[ "MIT" ]
1
2021-02-03T11:38:50.000Z
2021-02-03T11:38:50.000Z
lib/mnemonic_utils.py
bluzelle/blzpy
9b3084673913992375a0ae18270cb8edd8165352
[ "MIT" ]
null
null
null
lib/mnemonic_utils.py
bluzelle/blzpy
9b3084673913992375a0ae18270cb8edd8165352
[ "MIT" ]
2
2020-07-11T22:00:58.000Z
2021-11-20T06:05:49.000Z
#!/usr/bin/env python3 # https://raw.githubusercontent.com/vergl4s/ethereum-mnemonic-utils/master/mnemonic_utils.py import binascii import hashlib import hmac import struct from base58 import b58encode_check from ecdsa.curves import SECP256k1 BIP39_PBKDF2_ROUNDS = 2048 BIP39_SALT_MODIFIER = "mnemonic" BIP32_PRIVDEV...
32.781818
105
0.660935
4a09a577fbe51441490bbbbdd0e96624cc679309
1,197
py
Python
nr.pylang.bundle/src/nr/pylang/bundle/nativedeps/_base.py
NiklasRosenstein/nr-python
dc5b31ae5773ea4522a6f35112792dde9e872bef
[ "MIT" ]
3
2018-11-20T22:19:35.000Z
2020-10-31T09:23:53.000Z
nr.pylang.bundle/src/nr/pylang/bundle/nativedeps/_base.py
NiklasRosenstein/python-nr
dc5b31ae5773ea4522a6f35112792dde9e872bef
[ "MIT" ]
3
2021-08-09T00:14:26.000Z
2021-08-09T00:28:27.000Z
nr.pylang.bundle/src/nr/pylang/bundle/nativedeps/_base.py
NiklasRosenstein/nr-python
dc5b31ae5773ea4522a6f35112792dde9e872bef
[ "MIT" ]
3
2019-03-22T06:15:17.000Z
2020-10-31T09:23:53.000Z
# Copyright (c) 2018 Niklas Rosenstein # # 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, d...
42.75
78
0.778613
4a09a7eed506cced70822a07faa8ca267de876d6
3,198
py
Python
examples/scripts/misc/regression.py
vishalbelsare/sporco
afc3dae3ab81d84a23e8487812670ecb7457e869
[ "BSD-3-Clause" ]
217
2016-06-13T16:41:26.000Z
2022-03-22T06:31:05.000Z
examples/scripts/misc/regression.py
vishalbelsare/sporco
afc3dae3ab81d84a23e8487812670ecb7457e869
[ "BSD-3-Clause" ]
21
2016-06-13T23:28:35.000Z
2022-02-17T23:20:01.000Z
examples/scripts/misc/regression.py
vishalbelsare/sporco
afc3dae3ab81d84a23e8487812670ecb7457e869
[ "BSD-3-Clause" ]
47
2016-12-14T13:08:33.000Z
2021-12-12T01:59:49.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # This file is part of the SPORCO package. Details of the copyright # and user license can be found in the 'LICENSE.txt' file distributed # with the package. """ Linear Regression ================= This example demonstrates the use of classes :func:`.interp.lstabsdev` and...
30.75
289
0.654472
4a09a80ae8b9be3b671f9d925c87cdc555886351
2,714
py
Python
src/modules/critics/coma.py
yuchen-x/pymarl
d918408c7b190dd9c3c0a01c28afd992680241a7
[ "Apache-2.0" ]
null
null
null
src/modules/critics/coma.py
yuchen-x/pymarl
d918408c7b190dd9c3c0a01c28afd992680241a7
[ "Apache-2.0" ]
null
null
null
src/modules/critics/coma.py
yuchen-x/pymarl
d918408c7b190dd9c3c0a01c28afd992680241a7
[ "Apache-2.0" ]
null
null
null
import torch as th import torch.nn as nn import torch.nn.functional as F class COMACritic(nn.Module): def __init__(self, scheme, args): super(COMACritic, self).__init__() self.args = args self.n_actions = args.n_actions self.n_agents = args.n_agents input_shape = self._ge...
38.225352
127
0.600958
4a09a8e8550c3eae8086c469d02b67cc2b468dc1
3,613
py
Python
blog/mixins.py
ThePokerFaCcCe/myblog
9b24f381148b7f3262dd59e320f5e1600d1af68f
[ "MIT" ]
4
2021-11-24T21:48:29.000Z
2021-12-07T00:44:44.000Z
blog/mixins.py
ThePokerFaCcCe/myblog
9b24f381148b7f3262dd59e320f5e1600d1af68f
[ "MIT" ]
null
null
null
blog/mixins.py
ThePokerFaCcCe/myblog
9b24f381148b7f3262dd59e320f5e1600d1af68f
[ "MIT" ]
null
null
null
from django_filters.rest_framework.backends import DjangoFilterBackend from django.db.models import Q from rest_framework.generics import get_object_or_404 from rest_framework.mixins import DestroyModelMixin, RetrieveModelMixin, UpdateModelMixin from rest_framework.parsers import MultiPartParser, JSONParser from rest_f...
35.772277
121
0.651536
4a09a8fa5d52f4c353b39ebf3918d4d568e491fd
5,552
py
Python
builder/modules/load.py
antonkurenkov/hub-builder
80c885b35952f8df567e80c4a67da2f5d8bc0b5b
[ "Apache-2.0" ]
null
null
null
builder/modules/load.py
antonkurenkov/hub-builder
80c885b35952f8df567e80c4a67da2f5d8bc0b5b
[ "Apache-2.0" ]
null
null
null
builder/modules/load.py
antonkurenkov/hub-builder
80c885b35952f8df567e80c4a67da2f5d8bc0b5b
[ "Apache-2.0" ]
null
null
null
import os import json import datetime import re import requests import subprocess from pymongo import MongoClient from ruamel.yaml import YAML from builder.color_print import * yaml = YAML() root_dir = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) package_path = os.path.join(root_dir, ...
38.825175
118
0.613112
4a09a9a474faf81e1759f73a9c64b4123df41196
193
py
Python
scripts/writeX1.py
vibhatha/digitalocean_7
2c14e6b543e76f65a84c9ca91dbec8725f6e7e22
[ "MIT" ]
null
null
null
scripts/writeX1.py
vibhatha/digitalocean_7
2c14e6b543e76f65a84c9ca91dbec8725f6e7e22
[ "MIT" ]
null
null
null
scripts/writeX1.py
vibhatha/digitalocean_7
2c14e6b543e76f65a84c9ca91dbec8725f6e7e22
[ "MIT" ]
null
null
null
def write(text): fo = open("X.txt", "a") #fo.write(bytes(text, 'UTF-8')) #fo.write(bytes('\n', 'UTF-8')) fo.write(text) fo.write('\n') # Close opend file fo.close()
21.444444
35
0.518135
4a09a9cc04647d9ee4ac9b72a5b89f2bba294ac3
55,516
py
Python
discord/state.py
MrKomodoDragon/discord.py
1c40d43fd1289238a2184e7f106b908b2a1b4381
[ "MIT" ]
null
null
null
discord/state.py
MrKomodoDragon/discord.py
1c40d43fd1289238a2184e7f106b908b2a1b4381
[ "MIT" ]
null
null
null
discord/state.py
MrKomodoDragon/discord.py
1c40d43fd1289238a2184e7f106b908b2a1b4381
[ "MIT" ]
null
null
null
""" The MIT License (MIT) Copyright (c) 2015-present Rapptz 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, merg...
38.795248
132
0.616507
4a09aaa9b9837294054ca9b234bc0d207d4099f7
3,107
py
Python
warc.py
valschneider/exfire
c6d0b7cdb7eb8bb03fe38729d420e1ab28c352b7
[ "MIT" ]
null
null
null
warc.py
valschneider/exfire
c6d0b7cdb7eb8bb03fe38729d420e1ab28c352b7
[ "MIT" ]
null
null
null
warc.py
valschneider/exfire
c6d0b7cdb7eb8bb03fe38729d420e1ab28c352b7
[ "MIT" ]
null
null
null
import requests import gzip import json from urllib.parse import urlparse from bs4 import BeautifulSoup def warc_url(url): """ Search the WARC archived version of the URL :returns: The WARC URL if found, else None """ query = "http://archive.org/wayback/available?url={}".format(url) respons...
27.741071
182
0.61281
4a09ac0434fbab150074df74c2643eed1cb917e9
6,239
py
Python
ginza_util/train_word2vec.py
polm/ginza
b868823f793057ac3976fa343fd9bd14ebe1c75e
[ "MIT" ]
1
2020-04-08T04:45:20.000Z
2020-04-08T04:45:20.000Z
ginza_util/train_word2vec.py
joreyolo/ginza
b868823f793057ac3976fa343fd9bd14ebe1c75e
[ "MIT" ]
null
null
null
ginza_util/train_word2vec.py
joreyolo/ginza
b868823f793057ac3976fa343fd9bd14ebe1c75e
[ "MIT" ]
null
null
null
# coding: utf8 from __future__ import unicode_literals, print_function import plac from pathlib import Path import pickle import sys import spacy from gensim.models import Word2Vec from ginza.sudachipy_tokenizer import read_sudachi_a, read_sudachi_b, read_sudachi_c from .corpus import sentence_iter from .bccwj_ud_corp...
33.543011
117
0.619651
4a09ac5cd2374750efb040401f3d5c77d9dec9cb
17,031
py
Python
Code/autopkglib/__init__.py
timsutton/autopkg
55810ad388aef4a1b62bfd68c256949963935414
[ "Apache-2.0" ]
2
2016-01-02T09:35:03.000Z
2020-05-24T16:56:34.000Z
Code/autopkglib/__init__.py
timsutton/autopkg
55810ad388aef4a1b62bfd68c256949963935414
[ "Apache-2.0" ]
null
null
null
Code/autopkglib/__init__.py
timsutton/autopkg
55810ad388aef4a1b62bfd68c256949963935414
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # Copyright 2010 Per Olofsson # # 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 ...
35.334025
86
0.589983
4a09ac8a4cdc31d2e7f71256c3f4ec52ae62113d
6,623
py
Python
main.py
kikei/gbookmark-to-raindropio
b108bbfa03b6e2e429b5ecb67f361dadce51ca9a
[ "MIT" ]
null
null
null
main.py
kikei/gbookmark-to-raindropio
b108bbfa03b6e2e429b5ecb67f361dadce51ca9a
[ "MIT" ]
null
null
null
main.py
kikei/gbookmark-to-raindropio
b108bbfa03b6e2e429b5ecb67f361dadce51ca9a
[ "MIT" ]
null
null
null
import datetime import json import sys import traceback from html.parser import HTMLParser GBOOKMARK_XML = 'GoogleBookmarks.html' INTERMEDIATE_JSON = 'intermediate.json' RAINDROP_XML = 'Raindrop-out.html' RAINDROP_COLLECTION_NAME = 'main' class LinkItem(object): def __init__(self): self.title = None ...
35.228723
80
0.58161
4a09acf4bfe4eff43a38be9f3ad1332bf9c176e1
23,214
py
Python
tests/test_multioutput.py
informaton/GPflow
6ee199f4ca1b02a83218578b94fef219b428ca04
[ "Apache-2.0" ]
1
2020-01-27T19:05:28.000Z
2020-01-27T19:05:28.000Z
tests/test_multioutput.py
sdeepaknarayanan/GPflow
164d90d78c1c6fd966ae19ebaee59b9241bcba39
[ "Apache-2.0" ]
null
null
null
tests/test_multioutput.py
sdeepaknarayanan/GPflow
164d90d78c1c6fd966ae19ebaee59b9241bcba39
[ "Apache-2.0" ]
null
null
null
import gpflow import numpy as np import pytest import scipy import tensorflow as tf import gpflow.multioutput.features as mf import gpflow.multioutput.kernels as mk from gpflow.features import InducingPoints from gpflow.kernels import RBF from gpflow.likelihoods import Gaussian from gpflow.models import SVGP from gpf...
42.438757
107
0.65594
4a09ae38df0ab682c40c94f4be0fcbee8c7f7f35
936
py
Python
scoreboard.py
mvanderblom/yahtzee
6b5feb94b0268c133ea379981bcd7e927e6c0430
[ "MIT" ]
null
null
null
scoreboard.py
mvanderblom/yahtzee
6b5feb94b0268c133ea379981bcd7e927e6c0430
[ "MIT" ]
null
null
null
scoreboard.py
mvanderblom/yahtzee
6b5feb94b0268c133ea379981bcd7e927e6c0430
[ "MIT" ]
null
null
null
from dataclasses import dataclass from typing import List from exceptions import GameException from rules import Rule class ScoreBoard: rules: List[Rule] = [] scores: List[int] = [] def register_rules(self, rules: List[Rule]): self.rules = rules self.scores = [None] * len(rules) def...
30.193548
86
0.655983
4a09aeee23b94f89b6df7967d364f6f14ede37d9
4,125
py
Python
addons/wiki/tests/test_models.py
listinc/osf.io
b9a0357f3e9b6e905b732e750a16e9452c459d78
[ "Apache-2.0" ]
null
null
null
addons/wiki/tests/test_models.py
listinc/osf.io
b9a0357f3e9b6e905b732e750a16e9452c459d78
[ "Apache-2.0" ]
5
2017-02-13T19:38:59.000Z
2018-10-17T20:38:08.000Z
addons/wiki/tests/test_models.py
listinc/osf.io
b9a0357f3e9b6e905b732e750a16e9452c459d78
[ "Apache-2.0" ]
null
null
null
import pytest import pytz import datetime from addons.wiki.exceptions import NameMaximumLengthError from addons.wiki.models import WikiPage, WikiVersion from addons.wiki.tests.factories import WikiFactory, WikiVersionFactory from osf_tests.factories import NodeFactory, UserFactory, ProjectFactory from tests.base impor...
38.915094
94
0.68097
4a09b053f2ceb17d113ec27053b9b5849876eef4
459
py
Python
AlienInvasion/ai_settings.py
severovlink/PythonPyGame
71157ba666631c7c4bc98adb1fcd7c4b37041b34
[ "MIT" ]
1
2020-05-02T16:12:57.000Z
2020-05-02T16:12:57.000Z
AlienInvasion/ai_settings.py
severovlink/PythonPyGame
71157ba666631c7c4bc98adb1fcd7c4b37041b34
[ "MIT" ]
null
null
null
AlienInvasion/ai_settings.py
severovlink/PythonPyGame
71157ba666631c7c4bc98adb1fcd7c4b37041b34
[ "MIT" ]
null
null
null
class Settings: def __init__(self): self.screen_width = 1000 self.screen_height = 600 self.bg_color = (230, 230, 230) self.ship_speed_factor = 1 self.bullet_speed_factor = 1 self.bullet_width = 5 self.bullet_height = 10 self.bullet_color = (10, 10, 10...
28.6875
40
0.605664
4a09b1ead39bccb20cd15562cc7ed4acb59e829b
4,176
py
Python
Take Home Exams/egemenkilic_the2.py
egmnklc/Sabanci
31eaeedb01010879b5d62dee84130bd88e7e5bdf
[ "MIT" ]
null
null
null
Take Home Exams/egemenkilic_the2.py
egmnklc/Sabanci
31eaeedb01010879b5d62dee84130bd88e7e5bdf
[ "MIT" ]
null
null
null
Take Home Exams/egemenkilic_the2.py
egmnklc/Sabanci
31eaeedb01010879b5d62dee84130bd88e7e5bdf
[ "MIT" ]
null
null
null
courses = input("Please enter the courses you have taken previously with letter grades: ") courses_replace = courses.replace(":", ";") courses_purified = courses_replace.split(";") if courses.count(";") + 1 == courses.count(":"): taken_courses = input("Please enter the courses you have taken this semester with ...
73.263158
193
0.642241
4a09b2e7d4cc1721b0d8e84441fbc153952198d0
3,683
py
Python
HP Code Wars Documents/2014/Solutions/prob07_GreekAcro.py
p473lr/i-urge-mafia-gear
ae19efb1af2e85ed8bcbbcc3d12ae0f024f3565e
[ "Apache-2.0" ]
null
null
null
HP Code Wars Documents/2014/Solutions/prob07_GreekAcro.py
p473lr/i-urge-mafia-gear
ae19efb1af2e85ed8bcbbcc3d12ae0f024f3565e
[ "Apache-2.0" ]
null
null
null
HP Code Wars Documents/2014/Solutions/prob07_GreekAcro.py
p473lr/i-urge-mafia-gear
ae19efb1af2e85ed8bcbbcc3d12ae0f024f3565e
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python #CodeWars 2014 # # Greek Acrophonic Numerals # # The earliest alphabet-related system of numerals used with Greek letters # was the set of acrophonic Attic numerals. These numerals operated much like # Roman numerals (which derived from this scheme), # with: ? = 1, ? = 5, ? = 10, ? = 100, ? = ...
26.307143
90
0.499321
4a09b37fad23ebe0f4d6f6db5c415b9738538734
2,377
py
Python
ESN/esn.py
hhnam96/Reservoir-Computing-in-PyTorch
e349f6d8ed51a1157ca14e41e44bc015524a8c40
[ "MIT" ]
null
null
null
ESN/esn.py
hhnam96/Reservoir-Computing-in-PyTorch
e349f6d8ed51a1157ca14e41e44bc015524a8c40
[ "MIT" ]
null
null
null
ESN/esn.py
hhnam96/Reservoir-Computing-in-PyTorch
e349f6d8ed51a1157ca14e41e44bc015524a8c40
[ "MIT" ]
null
null
null
import torch import torch.nn as nn def to_sparse(tensor, density): return tensor * (torch.rand_like(tensor) <= density).type(tensor.dtype) def random_matrix(size): return torch.rand(size) class ESN(torch.nn.Module): """ Implements an Echo State Network. Parameters: - input_size: size of th...
34.449275
117
0.631048
4a09b3ea6cd563a8a426c8fdec82bda8183d1960
7,546
py
Python
cisco-ios-xr/ydk/models/cisco_ios_xr/Cisco_IOS_XR_lib_keychain_act.py
CiscoDevNet/ydk-py
073731fea50694d0bc6cd8ebf10fec308dcc0aa9
[ "ECL-2.0", "Apache-2.0" ]
177
2016-03-15T17:03:51.000Z
2022-03-18T16:48:44.000Z
cisco-ios-xr/ydk/models/cisco_ios_xr/Cisco_IOS_XR_lib_keychain_act.py
CiscoDevNet/ydk-py
073731fea50694d0bc6cd8ebf10fec308dcc0aa9
[ "ECL-2.0", "Apache-2.0" ]
18
2016-03-30T10:45:22.000Z
2020-07-14T16:28:13.000Z
cisco-ios-xr/ydk/models/cisco_ios_xr/Cisco_IOS_XR_lib_keychain_act.py
CiscoDevNet/ydk-py
073731fea50694d0bc6cd8ebf10fec308dcc0aa9
[ "ECL-2.0", "Apache-2.0" ]
85
2016-03-16T20:38:57.000Z
2022-02-22T04:26:02.000Z
""" Cisco_IOS_XR_lib_keychain_act This module contains a collection of YANG definitions for Cisco IOS\-XR action package configuration. Copyright (c) 2017 by Cisco Systems, Inc. All rights reserved. """ import sys from collections import OrderedDict from ydk.types import Entity as _Entity_ from ydk.types import En...
29.476563
126
0.601246
4a09b448d29ab23628d694d20d10e222d9e2a4e4
33,395
py
Python
src/lib/models/networks/pose_dla_dcn_no_bias.py
StudentWong/CenterNet
d20640d40db522b14813e21febff187bd4d75738
[ "MIT" ]
null
null
null
src/lib/models/networks/pose_dla_dcn_no_bias.py
StudentWong/CenterNet
d20640d40db522b14813e21febff187bd4d75738
[ "MIT" ]
null
null
null
src/lib/models/networks/pose_dla_dcn_no_bias.py
StudentWong/CenterNet
d20640d40db522b14813e21febff187bd4d75738
[ "MIT" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function import os import math import logging import numpy as np from os.path import join import torch from torch import nn import torch.nn.functional as F import torch.utils.model_zoo as model_zoo try: from .DCNv...
38.65162
156
0.552807
4a09b480089b9a2514ed5071816bafba48a9e25c
2,301
py
Python
live-explorer/gauss_laws.py
tychon/redpitaya-measurements
84efc3a91e23e8baac8559d576077cf791b536d2
[ "MIT" ]
null
null
null
live-explorer/gauss_laws.py
tychon/redpitaya-measurements
84efc3a91e23e8baac8559d576077cf791b536d2
[ "MIT" ]
null
null
null
live-explorer/gauss_laws.py
tychon/redpitaya-measurements
84efc3a91e23e8baac8559d576077cf791b536d2
[ "MIT" ]
1
2020-06-04T08:26:09.000Z
2020-06-04T08:26:09.000Z
import numpy as np from scipy.signal import find_peaks from scipy.interpolate import interp1d def slice_intersect(slices, data=None): """Calculate intersection of slices. Optionally return data inside intersection (first axis) of every slice.""" inters = slice( max(s.start for s in slices), ...
31.958333
78
0.523251
4a09b49990dd6c9dcae41a816a6bb3565b0fb8a2
10,474
py
Python
QAStrategy/qastockbase.py
xiaopge/QAStrategy
3418324572287d3d61485309b0f1fdea344bfd59
[ "MIT" ]
1
2019-12-24T03:57:42.000Z
2019-12-24T03:57:42.000Z
QAStrategy/qastockbase.py
xiaopge/QAStrategy
3418324572287d3d61485309b0f1fdea344bfd59
[ "MIT" ]
null
null
null
QAStrategy/qastockbase.py
xiaopge/QAStrategy
3418324572287d3d61485309b0f1fdea344bfd59
[ "MIT" ]
null
null
null
# """ stock_base """ import uuid import datetime import json import os import threading import pandas as pd import pymongo from qaenv import (eventmq_ip, eventmq_password, eventmq_port, eventmq_username, mongo_ip) import QUANTAXIS as QA from QUANTAXIS.QAARP import QA_Risk, QA_User from QUANTAXIS....
40.440154
208
0.607027
4a09b648b2b7c0b3335c23621864eecff34233d3
766
py
Python
amc/__init__.py
mchen910/amc-prep
67cd16a56e64700c63e3353f0e2e666b5d4933a5
[ "MIT" ]
1
2021-12-31T23:36:40.000Z
2021-12-31T23:36:40.000Z
amc/__init__.py
mchen910/amc-prep
67cd16a56e64700c63e3353f0e2e666b5d4933a5
[ "MIT" ]
1
2022-01-01T21:06:46.000Z
2022-01-01T21:06:46.000Z
amc/__init__.py
mchen910/amc-prep
67cd16a56e64700c63e3353f0e2e666b5d4933a5
[ "MIT" ]
null
null
null
""" amc-prep ======== A tool to prepare for the AMC and AIME competitions. To create a practice test, run (as an example): >>> PROBLEMS = 25 >>> TEX_DIR = "tex" >>> PDF_DIR = "pdf" >>> EXAMS = ["AMC 12A", "AMC 10B"] >>> P_FILENAME = "problems_1" >>> S_FILENAME = "solutions_1" >>> A_FILENAME = "answers_1" >>> P_TITLE...
25.533333
88
0.693211
4a09b6fa3148bf85babce826d769c5b202ff2105
802
py
Python
petersen/app/base.py
TRManderson/petersen
477a2403c21033d8c901ab555efc4e1045fdd4bc
[ "MIT" ]
null
null
null
petersen/app/base.py
TRManderson/petersen
477a2403c21033d8c901ab555efc4e1045fdd4bc
[ "MIT" ]
null
null
null
petersen/app/base.py
TRManderson/petersen
477a2403c21033d8c901ab555efc4e1045fdd4bc
[ "MIT" ]
null
null
null
from flask import Flask from mako.lookup import TemplateLookup import pkg_resources import os module_path = os.path.join(pkg_resources.get_distribution('petersen').location, 'petersen') app = Flask("petersen.app") app.config['db_url'] = 'sqlite:///dev.db' app.secret_key = 'TRMISAVATARAANGCONFIRMED' # TODO Move to en...
30.846154
99
0.726933
4a09b8df8bbfadf6668e7cb13f81a2c9ca202e42
19,545
py
Python
Instagram_bot/main.py
Mimoza-23/Instagram_bot
29e201165b34e1e8440c60928ea4c63f3da5ca3f
[ "Unlicense" ]
null
null
null
Instagram_bot/main.py
Mimoza-23/Instagram_bot
29e201165b34e1e8440c60928ea4c63f3da5ca3f
[ "Unlicense" ]
null
null
null
Instagram_bot/main.py
Mimoza-23/Instagram_bot
29e201165b34e1e8440c60928ea4c63f3da5ca3f
[ "Unlicense" ]
null
null
null
from selenium.webdriver.common.keys import Keys from selenium import webdriver import time import random from selenium.common.exceptions import NoSuchElementException from selenium.webdriver.firefox.options import Options import os import requests import re import sys username = input('Введите ваш логин: '...
43.627232
265
0.542696
4a09b93f27fde985fca4c351ac143902f84ae746
760
py
Python
var/spack/repos/builtin/packages/octave-quaternion/package.py
LiamBindle/spack
e90d5ad6cfff2ba3de7b537d6511adccd9d5fcf1
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2,360
2017-11-06T08:47:01.000Z
2022-03-31T14:45:33.000Z
var/spack/repos/builtin/packages/octave-quaternion/package.py
LiamBindle/spack
e90d5ad6cfff2ba3de7b537d6511adccd9d5fcf1
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
13,838
2017-11-04T07:49:45.000Z
2022-03-31T23:38:39.000Z
var/spack/repos/builtin/packages/octave-quaternion/package.py
LiamBindle/spack
e90d5ad6cfff2ba3de7b537d6511adccd9d5fcf1
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
1,793
2017-11-04T07:45:50.000Z
2022-03-30T14:31:53.000Z
# Copyright 2013-2021 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 OctaveQuaternion(OctavePackage, SourceforgePackage): """Quaternion package for GNU Octave,...
36.190476
95
0.764474
4a09babc92bbc515ab40ed1fb92e9a3f6846b333
1,606
py
Python
codigo/desafio_iafront/jobs/conversao/job_conversao.py
gabilew/desafio-iafront
bd9f10389608f3fb40cbd9208b9d12ab0bf75c95
[ "MIT" ]
null
null
null
codigo/desafio_iafront/jobs/conversao/job_conversao.py
gabilew/desafio-iafront
bd9f10389608f3fb40cbd9208b9d12ab0bf75c95
[ "MIT" ]
null
null
null
codigo/desafio_iafront/jobs/conversao/job_conversao.py
gabilew/desafio-iafront
bd9f10389608f3fb40cbd9208b9d12ab0bf75c95
[ "MIT" ]
null
null
null
from functools import partial import click import numpy as np import pandas as pd from codigo.desafio_iafront.data.saving import save_partitioned from codigo.desafio_iafront.jobs.clusters.clusters import kmeans from codigo.desafio_iafront.data.dataframe_utils import read_partitioned_json from codigo.desafio_iafront.jo...
37.348837
111
0.724159
4a09bacda19761df74805679be633f72d8c59b97
237
py
Python
raissyon/raissyon/doctype/interested_parties_requirement/test_interested_parties_requirement.py
mhbu50/raissyon
73d5d7498e3e7f74b07e4c0a1c979ad10f9c37ce
[ "MIT" ]
null
null
null
raissyon/raissyon/doctype/interested_parties_requirement/test_interested_parties_requirement.py
mhbu50/raissyon
73d5d7498e3e7f74b07e4c0a1c979ad10f9c37ce
[ "MIT" ]
null
null
null
raissyon/raissyon/doctype/interested_parties_requirement/test_interested_parties_requirement.py
mhbu50/raissyon
73d5d7498e3e7f74b07e4c0a1c979ad10f9c37ce
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2021, Accurate Systems and Contributors # See license.txt from __future__ import unicode_literals # import frappe import unittest class TestInterestedPartiesRequirement(unittest.TestCase): pass
21.545455
58
0.78481
4a09bb400ce61a5f1ac9a18f435d876c23545ff7
7,060
py
Python
pkg/suggestion/v1alpha2/bayesianoptimization/src/algorithm_manager.py
zhenghuiwang/katib
de96a52dd9e9c8cf4165927b7fb17023cfd652fd
[ "Apache-2.0" ]
null
null
null
pkg/suggestion/v1alpha2/bayesianoptimization/src/algorithm_manager.py
zhenghuiwang/katib
de96a52dd9e9c8cf4165927b7fb17023cfd652fd
[ "Apache-2.0" ]
null
null
null
pkg/suggestion/v1alpha2/bayesianoptimization/src/algorithm_manager.py
zhenghuiwang/katib
de96a52dd9e9c8cf4165927b7fb17023cfd652fd
[ "Apache-2.0" ]
null
null
null
""" module for algorithm manager """ import numpy as np from pkg.api.v1alpha2.python import api_pb2 from .utils import get_logger def deal_with_discrete(feasible_values, current_value): """ function to embed the current values to the feasible discrete space""" diff = np.subtract(feasible_values, current_val...
34.950495
101
0.561615
4a09bb68bf52be660796e8f4d8e077b053587479
2,388
py
Python
herby.py
joykrupinski/Herbywebsite
71a17931207496dfe2c77791c845833ce961c6a6
[ "MIT" ]
null
null
null
herby.py
joykrupinski/Herbywebsite
71a17931207496dfe2c77791c845833ce961c6a6
[ "MIT" ]
null
null
null
herby.py
joykrupinski/Herbywebsite
71a17931207496dfe2c77791c845833ce961c6a6
[ "MIT" ]
null
null
null
import time from mraa import getGpioLookup from upm import pyupm_buzzer as upmBuzzer import pandas as pd import datetime #Moisture and buzzer from grove.grove_moisture_sensor import GroveMoistureSensor from grove.display.jhd1802 import JHD1802 #TDS from TDS import GroveTDS #Light sensor from grove.grove_light_sensor...
22.961538
90
0.55737
4a09bb74835749ddef15ce2fea34d5d5e193345d
1,712
py
Python
app/core/migrations/0001_initial.py
DrTruong/recipe-app-api
605126943ced62d506e7e4a156a1f6b8b083772f
[ "MIT" ]
null
null
null
app/core/migrations/0001_initial.py
DrTruong/recipe-app-api
605126943ced62d506e7e4a156a1f6b8b083772f
[ "MIT" ]
null
null
null
app/core/migrations/0001_initial.py
DrTruong/recipe-app-api
605126943ced62d506e7e4a156a1f6b8b083772f
[ "MIT" ]
null
null
null
# Generated by Django 3.2.6 on 2021-08-19 09:17 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0012_alter_user_first_name_max_length'), ] operations = [ migrations.CreateModel( name='User', ...
50.352941
266
0.639603
4a09bce1083e71752b83a6bdaff19617535760d5
113,278
py
Python
src/bot_data/bot2.py
PolarisVoid/EvoAI
7a7cacd4b4382613b5fb56a389a47677d8d476b3
[ "MIT" ]
null
null
null
src/bot_data/bot2.py
PolarisVoid/EvoAI
7a7cacd4b4382613b5fb56a389a47677d8d476b3
[ "MIT" ]
null
null
null
src/bot_data/bot2.py
PolarisVoid/EvoAI
7a7cacd4b4382613b5fb56a389a47677d8d476b3
[ "MIT" ]
null
null
null
bot2_wieght_layer_one = [[0.06164539460362484, 0.11759471334368621, 0.17893658817359204, 0.28249387564514794, 0.33749921883077205, 0.003398909401950423, 0.5455878097874893, 0.6117000886611348, 0.43536487655162326, 0.5100973424460118, 0.8588695566361971, 0.1728339016872269, 0.23927759750481115, 0.25663709275524227, 0.33...
12,586.444444
72,305
0.850624
4a09bce66e2657721252a9dfb0b252080db584c7
3,837
py
Python
gcloud/tasktmpl3/validators.py
springborland/bk-sops
a9057672c10efb5f2414a805a30ead4092429c76
[ "Apache-2.0" ]
null
null
null
gcloud/tasktmpl3/validators.py
springborland/bk-sops
a9057672c10efb5f2414a805a30ead4092429c76
[ "Apache-2.0" ]
null
null
null
gcloud/tasktmpl3/validators.py
springborland/bk-sops
a9057672c10efb5f2414a805a30ead4092429c76
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available. Copyright (C) 2017-2020 THL A29 Limited, a Tencent company. All rights reserved. Licensed under the MIT License (the "License"); you may not use this file except in co...
31.975
115
0.665624
4a09c001ece36ee46492be68949dc635aa05d858
192
py
Python
iniciante/python/2160-nome-no-formulario.py
tfn10/beecrowd
1ebf19ca9a253eb326160f03145d20be33064969
[ "MIT" ]
null
null
null
iniciante/python/2160-nome-no-formulario.py
tfn10/beecrowd
1ebf19ca9a253eb326160f03145d20be33064969
[ "MIT" ]
null
null
null
iniciante/python/2160-nome-no-formulario.py
tfn10/beecrowd
1ebf19ca9a253eb326160f03145d20be33064969
[ "MIT" ]
null
null
null
def nome_no_formulario(): nome = input() tamanho_de_caracteres = len(nome) if tamanho_de_caracteres > 80: print('NO') else: print('YES') nome_no_formulario()
17.454545
37
0.625
4a09c0b8b83d08d50da4727ba0892b0db77910f5
3,679
py
Python
datasheet_generator/datasheet_generator.py
peterpolidoro/HRIM
148a6a5f88543ad1b62efecdccf7bbb2b744877b
[ "Apache-2.0" ]
32
2018-02-05T15:32:19.000Z
2019-02-14T03:16:38.000Z
datasheet_generator/datasheet_generator.py
peterpolidoro/HRIM
148a6a5f88543ad1b62efecdccf7bbb2b744877b
[ "Apache-2.0" ]
24
2018-02-06T15:41:56.000Z
2019-02-18T15:42:35.000Z
datasheet_generator/datasheet_generator.py
peterpolidoro/HRIM
148a6a5f88543ad1b62efecdccf7bbb2b744877b
[ "Apache-2.0" ]
17
2019-02-21T17:27:31.000Z
2022-01-21T02:28:16.000Z
import argparse import subprocess import xml.etree.ElementTree as et from defusedxml.ElementTree import parse component_type_array = ['arm', 'battery', "camera", "converyor", "depthsensor", "encoder", "force", "forcetoque", "gasdetector", "gps", "gripper", "hygrometer", ...
36.068627
79
0.480565
4a09c0ca1faebdb4855862ad532ac903827b4160
10,334
py
Python
pytorch_lightning/loops/fit_loop.py
Tshimanga/pytorch-lightning
ff7305f74d4e097a45b6a4d8c0fff6d4f5aaa386
[ "Apache-2.0" ]
null
null
null
pytorch_lightning/loops/fit_loop.py
Tshimanga/pytorch-lightning
ff7305f74d4e097a45b6a4d8c0fff6d4f5aaa386
[ "Apache-2.0" ]
null
null
null
pytorch_lightning/loops/fit_loop.py
Tshimanga/pytorch-lightning
ff7305f74d4e097a45b6a4d8c0fff6d4f5aaa386
[ "Apache-2.0" ]
null
null
null
# Copyright The PyTorch Lightning team. # # 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 i...
40.84585
119
0.683569
4a09c1cf08c3c16d2942cef6e2824c49da151e33
411
py
Python
examples/web_counter/tdmf_pipelines.py
cmdimkpa/test-driven-modular-framework
3006557ddc5a9e52c59fb492f5d01a130ab1c759
[ "MIT" ]
null
null
null
examples/web_counter/tdmf_pipelines.py
cmdimkpa/test-driven-modular-framework
3006557ddc5a9e52c59fb492f5d01a130ab1c759
[ "MIT" ]
null
null
null
examples/web_counter/tdmf_pipelines.py
cmdimkpa/test-driven-modular-framework
3006557ddc5a9e52c59fb492f5d01a130ab1c759
[ "MIT" ]
null
null
null
# applicable tests testEngine.add_test("package", "download_webpage", "string_only") testEngine.add_test("unit", "download_webpage", ("download_test", ["https://cmdimkpa.github.io/test.txt"], ["test\n"])) # initiate application flags flags.set("byte_counter", 0) # pipelines download_web_page = Pipeline...
27.4
120
0.695864
4a09c20d0fd51ab1796ba15e38996e0b6b7f22ec
23
py
Python
py-flask/venv/Lib/site-packages/virtualenv/version.py
tienduy-nguyen/python-learning
3f91482638e11bb19f877a8044c11bce7e91aefc
[ "MIT" ]
null
null
null
py-flask/venv/Lib/site-packages/virtualenv/version.py
tienduy-nguyen/python-learning
3f91482638e11bb19f877a8044c11bce7e91aefc
[ "MIT" ]
5
2021-03-19T11:01:43.000Z
2022-02-10T12:02:58.000Z
py-flask/venv/Lib/site-packages/virtualenv/version.py
tienduy-nguyen/python-learning
3f91482638e11bb19f877a8044c11bce7e91aefc
[ "MIT" ]
null
null
null
__version__ = "20.0.20"
23
23
0.695652
4a09c2d86f4737e006fb6123681956ea55952910
605
py
Python
leetcode/325.py
windniw/just-for-fun
54e5c2be145f3848811bfd127f6a89545e921570
[ "Apache-2.0" ]
1
2019-08-28T23:15:25.000Z
2019-08-28T23:15:25.000Z
leetcode/325.py
windniw/just-for-fun
54e5c2be145f3848811bfd127f6a89545e921570
[ "Apache-2.0" ]
null
null
null
leetcode/325.py
windniw/just-for-fun
54e5c2be145f3848811bfd127f6a89545e921570
[ "Apache-2.0" ]
null
null
null
""" link: https://leetcode-cn.com/problems/maximum-size-subarray-sum-equals-k problem: 求数组中最长子数组,满足其和为 k,子数组必然连续。时间O(n) solution: 遍历时记录 sum(nums[:i+1]) 的首次出现位置,并检查 sum(nums[:i+1]) - k 是否在之前出现过, 若有,记该值对应位置 j,[j:i+1] 为一个满足条件的子数组 """ class Solution: def maxSubArrayLen(self, nums: List[int], k: int) -> i...
26.304348
73
0.494215
4a09c3207584daed52b331459707b9cd84028996
704
py
Python
evidence/refs/Pfam.py
dprada/evidence
d8400fe1a3c662be01f6f9f658fc5b92b894556d
[ "MIT" ]
null
null
null
evidence/refs/Pfam.py
dprada/evidence
d8400fe1a3c662be01f6f9f658fc5b92b894556d
[ "MIT" ]
null
null
null
evidence/refs/Pfam.py
dprada/evidence
d8400fe1a3c662be01f6f9f658fc5b92b894556d
[ "MIT" ]
1
2021-11-06T16:03:46.000Z
2021-11-06T16:03:46.000Z
class Pfam(): def __init__(self, id=None): self.database = 'Pfam' self.id = id self._long_name = 'Pfam: The protein families database' self._web = 'http://pfam.xfam.org/' def __call__(self): tmp_dict = { 'database' : 'Pfam', 'id' : self...
18.051282
74
0.517045
4a09c33f5f37074f4ddbbaa47f669ce5c287e9ab
317
py
Python
my/transformer_tutorial_tf2/__init__.py
notyetend/annotated-transformer
9c4fdbbbc5ab4d3bff931b540be5f1d811de3ea0
[ "MIT" ]
null
null
null
my/transformer_tutorial_tf2/__init__.py
notyetend/annotated-transformer
9c4fdbbbc5ab4d3bff931b540be5f1d811de3ea0
[ "MIT" ]
null
null
null
my/transformer_tutorial_tf2/__init__.py
notyetend/annotated-transformer
9c4fdbbbc5ab4d3bff931b540be5f1d811de3ea0
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created at 2020-01-03 @author: dongwan.kim References - https://www.tensorflow.org/tutorials/text/transformer - https://blog.tensorflow.org/2019/05/transformer_annotated-chatbot-tutorial-with-tensorflow-2.html Summary - translation Portuguese to English - Question - eager tensor? """
17.611111
99
0.747634
4a09c6ba4762050bc9265fa3a3384f9f9ab017fd
1,838
py
Python
examples/moderngl_logo.py
minuJeong/moderngl-window
6386478f1e6b07cefda8f4d9324d972ab88b34ec
[ "MIT" ]
142
2019-11-11T23:14:28.000Z
2022-03-29T08:37:03.000Z
examples/moderngl_logo.py
minuJeong/moderngl-window
6386478f1e6b07cefda8f4d9324d972ab88b34ec
[ "MIT" ]
107
2019-10-31T20:31:45.000Z
2022-03-23T15:01:41.000Z
examples/moderngl_logo.py
minuJeong/moderngl-window
6386478f1e6b07cefda8f4d9324d972ab88b34ec
[ "MIT" ]
36
2019-12-12T16:14:10.000Z
2022-01-18T22:58:21.000Z
import numpy as np import moderngl import moderngl_window as mglw class ModernglLogo(mglw.WindowConfig): title = "ModernGL Logo" def __init__(self, **kwargs): super().__init__(**kwargs) self.prog = self.ctx.program( vertex_shader=''' #version 330 i...
26.257143
90
0.476605
4a09c6be6275abd91c10db3f60de2b434d2e5b0a
485
py
Python
backend/migrations/0004_auto_20170816_2053.py
romic-kid/project-kfsystem
3ed63c5c063493dc0dd7e0c4b62ba7481bf63311
[ "BSD-3-Clause" ]
2
2018-03-22T08:42:41.000Z
2018-07-03T09:22:28.000Z
backend/migrations/0004_auto_20170816_2053.py
romic-kid/project-kfsystem
3ed63c5c063493dc0dd7e0c4b62ba7481bf63311
[ "BSD-3-Clause" ]
2
2019-04-25T02:10:10.000Z
2022-03-02T01:11:28.000Z
backend/migrations/0004_auto_20170816_2053.py
romic-kid/project-kfsystem
3ed63c5c063493dc0dd7e0c4b62ba7481bf63311
[ "BSD-3-Clause" ]
1
2019-03-14T03:13:05.000Z
2019-03-14T03:13:05.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.3 on 2017-08-16 12:53 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('backend', '0003_auto_20170816_1729'), ] operations = [ migrations.AlterFiel...
23.095238
80
0.626804
4a09c87d5e778065c7477a67ceb662c8099a5854
2,997
py
Python
momentumopt/python/momentumopt/kinoptpy/qp.py
machines-in-motion/kino-dynamic-opt
ba9188eea6b80b102b1d0880470bedc0faa5e243
[ "BSD-3-Clause" ]
26
2019-11-18T17:39:43.000Z
2021-12-18T00:38:22.000Z
momentumopt/python/momentumopt/kinoptpy/qp.py
machines-in-motion/kino_dynamic_opt
ba9188eea6b80b102b1d0880470bedc0faa5e243
[ "BSD-3-Clause" ]
25
2019-11-11T19:54:51.000Z
2021-04-07T13:41:47.000Z
momentumopt/python/momentumopt/kinoptpy/qp.py
machines-in-motion/kino-dynamic-opt
ba9188eea6b80b102b1d0880470bedc0faa5e243
[ "BSD-3-Clause" ]
10
2019-12-15T14:36:51.000Z
2021-09-29T10:42:19.000Z
''' @file qp.py @package momentumopt @author Brahayam Ponton (brahayam.ponton@tuebingen.mpg.de) @license License BSD-3-Clause @copyright Copyright (c) 2019, New York University and Max Planck Gesellschaft. @date 2019-10-08 ''' from numpy import * # from cvxopt import matrix, spmatrix # from cvxopt.solvers import optio...
32.576087
85
0.541208