hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
a468f94f90b538e6063d22b864046aaa4cbcff6c
120,167
py
Python
plotly/graph_objs/layout/_yaxis.py
malmaud/plotly.py
bcf4a2a0ca01b2568ccc521fc0cd6fd78c2edb0f
[ "MIT" ]
1
2019-04-16T08:12:54.000Z
2019-04-16T08:12:54.000Z
plotly/graph_objs/layout/_yaxis.py
Abd-Elrazek/plotly.py
568f577cbee3ecca3fd7b6493b7f0c9901acfb65
[ "MIT" ]
27
2020-04-28T21:23:12.000Z
2021-06-25T15:36:38.000Z
plotly/graph_objs/layout/_yaxis.py
Abd-Elrazek/plotly.py
568f577cbee3ecca3fd7b6493b7f0c9901acfb65
[ "MIT" ]
null
null
null
from plotly.basedatatypes import BaseLayoutHierarchyType import copy class YAxis(BaseLayoutHierarchyType): # anchor # ------ @property def anchor(self): """ If set to an opposite-letter axis id (e.g. `x2`, `y`), this axis is bound to the corresponding opposite-letter axis. If ...
38.626487
89
0.580958
06332b65d1fe554b3883387ac8877f38db1270d6
690
py
Python
benchmarks/ccmaes/objective.py
dettmann/bolero
fa88be1a1d4ab1e2855d20f5429ac83ed5eb4925
[ "BSD-3-Clause" ]
51
2017-05-19T13:33:29.000Z
2022-01-21T10:59:57.000Z
benchmarks/ccmaes/objective.py
dettmann/bolero
fa88be1a1d4ab1e2855d20f5429ac83ed5eb4925
[ "BSD-3-Clause" ]
94
2017-05-19T19:44:07.000Z
2021-12-15T13:40:59.000Z
benchmarks/ccmaes/objective.py
dettmann/bolero
fa88be1a1d4ab1e2855d20f5429ac83ed5eb4925
[ "BSD-3-Clause" ]
31
2017-05-19T19:41:39.000Z
2021-08-25T14:14:19.000Z
from bolero.environment.contextual_objective_functions import \ ContextualObjectiveFunction from bolero.environment.objective_functions import rosenbrock class Sphere(ContextualObjectiveFunction): def __init__(self, random_state, n_dims, n_context_dims): self.G = random_state.randn(n_dims, n_context_d...
30
63
0.721739
4d5f83ceec94d4886c33994123ccbe36d4da2f2b
803
py
Python
examples/modular_commands_basic.py
crotwell/cmd2
5ce3a64e41258b6a694ad45bb1c604be53a1e974
[ "MIT" ]
469
2016-02-16T16:18:48.000Z
2022-03-31T15:24:40.000Z
examples/modular_commands_basic.py
crotwell/cmd2
5ce3a64e41258b6a694ad45bb1c604be53a1e974
[ "MIT" ]
1,076
2016-02-19T02:50:47.000Z
2022-03-22T03:08:06.000Z
examples/modular_commands_basic.py
crotwell/cmd2
5ce3a64e41258b6a694ad45bb1c604be53a1e974
[ "MIT" ]
138
2016-02-19T02:46:23.000Z
2022-03-30T13:13:01.000Z
#!/usr/bin/env python3 # coding=utf-8 """ Simple example demonstrating basic CommandSet usage. """ import cmd2 from cmd2 import ( CommandSet, with_default_category, ) @with_default_category('My Category') class AutoLoadCommandSet(CommandSet): def __init__(self): super().__init__() def do_hel...
19.585366
67
0.663761
0b97bf482282543bff13b50a5e9845cadb1766b0
2,570
py
Python
main.py
TocuRazvan/GamePython
e84346e2635b41af294130575b3fd8cb2369b8b3
[ "MIT" ]
1
2021-02-04T19:02:17.000Z
2021-02-04T19:02:17.000Z
main.py
TocuRazvan/GamePython
e84346e2635b41af294130575b3fd8cb2369b8b3
[ "MIT" ]
null
null
null
main.py
TocuRazvan/GamePython
e84346e2635b41af294130575b3fd8cb2369b8b3
[ "MIT" ]
null
null
null
#!/usr/bin/python3.4 # Setup Python ----------------------------------------------- # import pygame, sys # Setup pygame/window ---------------------------------------- # from snake.snake_game import snake_welcome from spaceinvaders import * from tetris.Tetris import tetris_game mainClock = pygame.time.Clock() from py...
27.340426
76
0.54786
bbf72216e430efbf5809690567d4562c1de0f796
671
py
Python
migrations/versions/574b20804fab_.py
duyong6380/flask_web_dev
ffcca763854fb4ac546ebed5ac9f6126e149a4c3
[ "MIT" ]
null
null
null
migrations/versions/574b20804fab_.py
duyong6380/flask_web_dev
ffcca763854fb4ac546ebed5ac9f6126e149a4c3
[ "MIT" ]
null
null
null
migrations/versions/574b20804fab_.py
duyong6380/flask_web_dev
ffcca763854fb4ac546ebed5ac9f6126e149a4c3
[ "MIT" ]
null
null
null
"""empty message Revision ID: 574b20804fab Revises: 7688bbf44c42 Create Date: 2018-09-13 03:36:35.165677 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '574b20804fab' down_revision = '7688bbf44c42' branch_labels = None depends_on = None def upgrade(): # ...
23.137931
88
0.698957
2efdc57acd7936defb604815341f55882fb29a63
589
py
Python
app/text_utils/__init__.py
mateuk/lindat-translation
8b5d70aaddfecc49aad1d6c3b68f422695fc3cb9
[ "BSD-2-Clause" ]
5
2019-06-05T13:14:02.000Z
2019-07-24T15:07:02.000Z
app/text_utils/__init__.py
mateuk/lindat-translation
8b5d70aaddfecc49aad1d6c3b68f422695fc3cb9
[ "BSD-2-Clause" ]
7
2019-02-04T16:27:39.000Z
2019-09-26T15:15:03.000Z
app/text_utils/__init__.py
mateuk/lindat-translation
8b5d70aaddfecc49aad1d6c3b68f422695fc3cb9
[ "BSD-2-Clause" ]
null
null
null
from collections import defaultdict import os from sentence_splitter import SentenceSplitter pwd = os.path.dirname(os.path.abspath(__file__)) prefix_dir = os.path.join(pwd, 'non_breaking_prefixes') _lang2file = defaultdict(lambda: None) _lang2file['uk'] = os.path.join(prefix_dir, 'uk.txt') _instances = {} def spli...
28.047619
67
0.747029
216ceb04e1f9b1a21fc8a0b2dc2c2706a25d04e9
7,011
py
Python
django/core/cache/backends/memcached.py
fizista/django
16f3a6a4c7bab11644d11c2be029374e5095cb56
[ "BSD-3-Clause" ]
1
2019-02-10T19:33:27.000Z
2019-02-10T19:33:27.000Z
django/core/cache/backends/memcached.py
fizista/django
16f3a6a4c7bab11644d11c2be029374e5095cb56
[ "BSD-3-Clause" ]
null
null
null
django/core/cache/backends/memcached.py
fizista/django
16f3a6a4c7bab11644d11c2be029374e5095cb56
[ "BSD-3-Clause" ]
1
2020-05-03T20:42:29.000Z
2020-05-03T20:42:29.000Z
"Memcached cache backend" import time import pickle from django.core.cache.backends.base import BaseCache, DEFAULT_TIMEOUT from django.utils import six from django.utils.deprecation import RenameMethodsBase from django.utils.encoding import force_str from django.utils.functional import cached_property class BaseMe...
36.706806
98
0.628156
cca013a84d3fee04a3b0d9dee054c048e80e6023
10,629
py
Python
sdk/python/pulumi_azure_native/kusto/v20200215/database.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/kusto/v20200215/database.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/kusto/v20200215/database.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities fro...
44.848101
1,367
0.648321
15d48bb0b5c3f0a48ec6736f35d04d84d3fbaa56
313
py
Python
config/databases.py
za-creature/puls
3fa9c23f4219c9123d407bfabf64a8c9a6507270
[ "MIT" ]
1
2016-05-06T21:30:02.000Z
2016-05-06T21:30:02.000Z
config/databases.py
za-creature/puls
3fa9c23f4219c9123d407bfabf64a8c9a6507270
[ "MIT" ]
null
null
null
config/databases.py
za-creature/puls
3fa9c23f4219c9123d407bfabf64a8c9a6507270
[ "MIT" ]
null
null
null
# coding=utf-8 from __future__ import absolute_import, unicode_literals, division # database settings MONGODB_SETTINGS = {"host": "localhost", "port": 27017, "db": "puls"} REDIS_SETTINGS = {"host": "localhost", "port": 6379, "db": 6}
24.076923
66
0.533546
ba4c9faf17e609182a5cffee4d8b9dbbbe6a3aa6
8,226
py
Python
cdp_backend/pipeline/transcript_model.py
Shak2000/cdp-backend
b3d342e39bd8144172af54448f2abbf2180d8f63
[ "MIT" ]
null
null
null
cdp_backend/pipeline/transcript_model.py
Shak2000/cdp-backend
b3d342e39bd8144172af54448f2abbf2180d8f63
[ "MIT" ]
null
null
null
cdp_backend/pipeline/transcript_model.py
Shak2000/cdp-backend
b3d342e39bd8144172af54448f2abbf2180d8f63
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from dataclasses import dataclass from datetime import datetime from typing import List, Optional from dataclasses_json import dataclass_json ############################################################################### # Annotation Definitions # # Developers please do...
28.171233
87
0.589472
8bd180f9a60a01e09023f4543b08d72c6ac5c289
1,013
py
Python
bin/extensions/ping.py
rscarson/Lavendeux
a7248b1bd724df32122c018c09fbf8901bfe9685
[ "MIT" ]
28
2016-02-16T19:43:29.000Z
2021-09-04T14:53:23.000Z
bin/extensions/ping.py
rscarson/Lavendeux
a7248b1bd724df32122c018c09fbf8901bfe9685
[ "MIT" ]
2
2016-02-28T19:01:55.000Z
2016-07-09T23:02:07.000Z
bin/extensions/ping.py
rscarson/Lavendeux
a7248b1bd724df32122c018c09fbf8901bfe9685
[ "MIT" ]
3
2016-02-28T18:26:21.000Z
2016-08-12T13:47:48.000Z
from lavendeux import Types, Errors import socket import datetime TYPE_ICMP = 1 ICMP_PORT = 7 PAYLOAD = "\x08\x00\x19\x2f\x00\x00\x00\x00\x70\x69\x6e\x67" def _ping(host): s = socket.socket(socket.AF_INET, socket.SOCK_RAW, TYPE_ICMP) s.settimeout(0.5) s.connect( (host, ICMP_PORT) ) before = datetime.datetime.now...
22.511111
106
0.720632
4e31a6049946a3ed86e863bed819a9b4b0ca0295
484
py
Python
Puk pakc/Puk/puk.py
Shtuks/Puk
4525ddf61121dc5632695e73928716003dcab37d
[ "Unlicense" ]
1
2021-11-09T15:51:49.000Z
2021-11-09T15:51:49.000Z
Puk pakc/Puk/puk.py
Shtuks/Puk
4525ddf61121dc5632695e73928716003dcab37d
[ "Unlicense" ]
null
null
null
Puk pakc/Puk/puk.py
Shtuks/Puk
4525ddf61121dc5632695e73928716003dcab37d
[ "Unlicense" ]
null
null
null
er = "ОШЫПКА" erp = "ОШЫПКА В ПУКЕ" puk = input("Напиши ПУК: ") if puk =="ПУК": print ("ЭТО ПУК cmd") com = input ("НАПИШИ ПУК И КОМАНДУ: ") if com == "ПУК": print (erp) elif com == "ПУК ПИШИ ПУК": print ("ПУК") elif com == "ПУК ПУК1": import addon_for_puk.py elif com == "ПУК ПУК2": import...
20.166667
40
0.599174
d986ff7de135a7b6cbcf565b9a4de2263c69faeb
1,329
py
Python
picopt/png.py
JonyBepary/hysterical-hammer-under-construction
1303aba6348316008ab3444aa2bba40f1e806d7d
[ "MIT" ]
1
2018-12-10T17:37:07.000Z
2018-12-10T17:37:07.000Z
picopt/png.py
JonyBepary/hysterical-hammer
1303aba6348316008ab3444aa2bba40f1e806d7d
[ "MIT" ]
null
null
null
picopt/png.py
JonyBepary/hysterical-hammer
1303aba6348316008ab3444aa2bba40f1e806d7d
[ "MIT" ]
null
null
null
"""PNG format.""" from __future__ import absolute_import, division, print_function try: import extern except ModuleNotFoundError: from picopt import extern _PNG_FORMAT = 'PNG' FORMATS = set([_PNG_FORMAT]) LOSSLESS_FORMATS = set(('PNM', 'PPM', 'BMP', 'GIF')) CONVERTABLE_FORMATS = LOSSLESS_FORMATS | FORMATS OUT...
26.58
75
0.668924
09fbd81e2ec1247abf8171f6642a97d568cfc8b3
1,634
py
Python
siteLogs/admin.py
ashsaym/Django-RestAPI-Starter-template
141b1ed4074144008c5675d4c4607fef0c9895c9
[ "MIT" ]
null
null
null
siteLogs/admin.py
ashsaym/Django-RestAPI-Starter-template
141b1ed4074144008c5675d4c4607fef0c9895c9
[ "MIT" ]
null
null
null
siteLogs/admin.py
ashsaym/Django-RestAPI-Starter-template
141b1ed4074144008c5675d4c4607fef0c9895c9
[ "MIT" ]
null
null
null
from django.contrib import admin from django.contrib.admin.models import LogEntry, DELETION from django.urls import reverse from django.utils.html import escape from django.utils.safestring import mark_safe admin.site.site_header = 'Lemken Online Management' admin.site.index_title = 'Features area' # default: "Site a...
27.233333
95
0.641371
10b7a43763526393f277a93c8bd962e95d2de0bc
1,161
py
Python
tag_generator.py
anupambhatnagar/ab-github
76c2f12cfd8a8fec05e1ef8a55f342aaccb15377
[ "MIT" ]
null
null
null
tag_generator.py
anupambhatnagar/ab-github
76c2f12cfd8a8fec05e1ef8a55f342aaccb15377
[ "MIT" ]
null
null
null
tag_generator.py
anupambhatnagar/ab-github
76c2f12cfd8a8fec05e1ef8a55f342aaccb15377
[ "MIT" ]
null
null
null
#!/usr/bin/env python ''' tag_generator.py This script creates tags for your Jekyll blog hosted by Github page. No plugins required. ''' import glob import os post_dir = '_posts/' tag_dir = 'tag/' filenames = glob.glob(post_dir + '*md') total_tags = [] for filename in filenames: f = open(filename, 'r', encodi...
23.22
109
0.564169
f8edd468fff03da2ff08099f01f5976931f66bff
677
py
Python
ulearn_scoring/_config.py
daniel55411/ulearn-scoring
ba78ed2a632021d8023b19f70851105f2a860bce
[ "Apache-2.0" ]
null
null
null
ulearn_scoring/_config.py
daniel55411/ulearn-scoring
ba78ed2a632021d8023b19f70851105f2a860bce
[ "Apache-2.0" ]
null
null
null
ulearn_scoring/_config.py
daniel55411/ulearn-scoring
ba78ed2a632021d8023b19f70851105f2a860bce
[ "Apache-2.0" ]
null
null
null
from decimal import Decimal from typing import List from typing import Optional from pydantic import BaseModel from pydantic import FilePath from pydantic import Field from pydantic_yaml import VersionedYamlModel from ._common import ALL_MODULES from ._typing import Modules class Statement(BaseModel): file: Fil...
22.566667
70
0.759232
ba4bc62d7bdabeec74b16609e5a4b6c72ab8a62f
2,612
py
Python
homeassistant/components/nissan_leaf/binary_sensor.py
learn-home-automation/core
c5d8792c3487e9b418b1e7d623bf59e7dbddd6b7
[ "Apache-2.0" ]
1
2021-12-30T16:03:02.000Z
2021-12-30T16:03:02.000Z
homeassistant/components/nissan_leaf/binary_sensor.py
learn-home-automation/core
c5d8792c3487e9b418b1e7d623bf59e7dbddd6b7
[ "Apache-2.0" ]
79
2020-07-17T18:08:40.000Z
2022-03-22T17:06:34.000Z
homeassistant/components/nissan_leaf/binary_sensor.py
learn-home-automation/core
c5d8792c3487e9b418b1e7d623bf59e7dbddd6b7
[ "Apache-2.0" ]
2
2021-12-18T20:56:22.000Z
2021-12-19T15:43:29.000Z
"""Plugged In Status Support for the Nissan Leaf.""" from __future__ import annotations import logging from pycarwings2.pycarwings2 import Leaf from homeassistant.components.binary_sensor import ( BinarySensorDeviceClass, BinarySensorEntity, ) from homeassistant.core import HomeAssistant from homeassistant.h...
29.022222
76
0.687979
61bce4ed50769a9cff89c742e9500e0f6a015b1f
1,302
py
Python
water_store/api_register/state_api.py
anthonycarlos92/seedLA_HTB_2015
a3e5bb03ee00760413d49a1074289f51149222ca
[ "MIT" ]
1
2021-08-04T18:34:48.000Z
2021-08-04T18:34:48.000Z
water_store/api_register/state_api.py
SeedCG/waterlog_rest_api
a3e5bb03ee00760413d49a1074289f51149222ca
[ "MIT" ]
3
2020-06-05T17:18:26.000Z
2021-06-10T18:34:31.000Z
water_store/api_register/state_api.py
SeedCG/waterlog_rest_api
a3e5bb03ee00760413d49a1074289f51149222ca
[ "MIT" ]
null
null
null
# __author__ = 'anthonymendoza' # # from rest_framework import status # from rest_framework.decorators import api_view # from rest_framework.response import Response # from django.apps import apps # from django.db.models import Q # from water_store.serializers import StateSerializer # from helpers.location_helpers impo...
42
101
0.675883
7e8093a11ca915fa4e9a49562289c959f3e8deed
698
py
Python
twitoff/models.py
crsanderford/twitoff-app
438429dc3bd92af279da791007d63b6480e3314c
[ "MIT" ]
null
null
null
twitoff/models.py
crsanderford/twitoff-app
438429dc3bd92af279da791007d63b6480e3314c
[ "MIT" ]
5
2021-06-02T01:13:03.000Z
2022-03-12T00:15:53.000Z
twitoff/models.py
crsanderford/twitoff-app
438429dc3bd92af279da791007d63b6480e3314c
[ "MIT" ]
null
null
null
from flask_sqlalchemy import SQLAlchemy DB = SQLAlchemy() class User(DB.Model): id = DB.Column(DB.Integer, primary_key=True) name = DB.Column(DB.String(20), nullable=False) newest_tweet_id = DB.Column(DB.BigInteger) def __repr__(self): return f'<user {self.name}>' class Tweet(DB.Model): ...
33.238095
80
0.687679
9cb1dcec95f84f42fdb3caadf321a93132ba6205
859
py
Python
pcg_libraries/src/pcg_gazebo/parsers/sdf/iyz.py
boschresearch/pcg_gazebo_pkgs
1c112d01847ca4f8da61ce9b273e13d13bc7eb73
[ "Apache-2.0", "BSD-3-Clause" ]
42
2019-06-26T09:46:03.000Z
2022-03-18T17:56:26.000Z
pcg_libraries/src/pcg_gazebo/parsers/sdf/iyz.py
boschresearch/pcg_gazebo_pkgs
1c112d01847ca4f8da61ce9b273e13d13bc7eb73
[ "Apache-2.0", "BSD-3-Clause" ]
9
2019-07-18T10:36:05.000Z
2020-10-02T15:26:32.000Z
pcg_libraries/src/pcg_gazebo/parsers/sdf/iyz.py
boschresearch/pcg_gazebo_pkgs
1c112d01847ca4f8da61ce9b273e13d13bc7eb73
[ "Apache-2.0", "BSD-3-Clause" ]
2
2019-11-01T03:20:11.000Z
2020-10-15T23:23:44.000Z
# Copyright (c) 2019 - The Procedural Generation for Gazebo authors # For information on the respective copyright owner see the NOTICE file # # 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 # #...
34.36
74
0.740396
198151ea2ccb213d5d743c34afd57f67f8730b98
678
py
Python
ex40b.py
Csurlee/Python
1e8cd09a009f50c2459879517ca2a170b3235e33
[ "MIT" ]
null
null
null
ex40b.py
Csurlee/Python
1e8cd09a009f50c2459879517ca2a170b3235e33
[ "MIT" ]
null
null
null
ex40b.py
Csurlee/Python
1e8cd09a009f50c2459879517ca2a170b3235e33
[ "MIT" ]
null
null
null
class Song(object): def __init__(self, lyrics): self.lyrics = lyrics def sing_me_a_song(self): for line in self.lyrics: print(line) easter_day = Song(["Lallallalla and laaaa", "Eastern is the best", "session of the world "]) separator = Song(["-#-#-#-#-#-#-#-#-#-#-#-#-#-"]) ha...
21.1875
55
0.647493
233ee08169e98dc12202eb713c6c37d6ca5fb3df
102,565
py
Python
electrumx/lib/coins.py
project-mynt/electrumx
ff492d307624b655ad1ab485dc3a1e4f00d24ecf
[ "MIT" ]
null
null
null
electrumx/lib/coins.py
project-mynt/electrumx
ff492d307624b655ad1ab485dc3a1e4f00d24ecf
[ "MIT" ]
null
null
null
electrumx/lib/coins.py
project-mynt/electrumx
ff492d307624b655ad1ab485dc3a1e4f00d24ecf
[ "MIT" ]
null
null
null
# Copyright (c) 2016-2017, Neil Booth # Copyright (c) 2017, the ElectrumX authors # # All rights reserved. # # The MIT License (MIT) # # 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 ...
31.005139
95
0.648048
4ae305c8505d615cfa98897e3eb844e866fdd81b
1,307
py
Python
spyne/util/protocol.py
edustaff/spyne
27f2061325d29a55803fb47b1b37978ab21ea240
[ "BSD-3-Clause" ]
786
2015-01-04T10:46:28.000Z
2022-03-31T19:24:35.000Z
spyne/util/protocol.py
edustaff/spyne
27f2061325d29a55803fb47b1b37978ab21ea240
[ "BSD-3-Clause" ]
248
2015-01-01T21:52:47.000Z
2022-03-09T08:55:04.000Z
spyne/util/protocol.py
edustaff/spyne
27f2061325d29a55803fb47b1b37978ab21ea240
[ "BSD-3-Clause" ]
210
2015-01-10T14:20:31.000Z
2022-03-09T08:38:43.000Z
# # spyne - Copyright (C) Spyne contributors. # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your option) any later version. # # This libra...
33.512821
78
0.759755
0479847c85e5b7a81c3dc1c53fc75443f27a4e53
5,819
py
Python
shhh/api/utils.py
cyborgflashtime/shhh
5c64c4ef75c1ff2456eaf5b7f232484e71958616
[ "MIT" ]
1
2021-01-09T01:01:18.000Z
2021-01-09T01:01:18.000Z
shhh/api/utils.py
JUSTIN-BOLAND/shhh
5c64c4ef75c1ff2456eaf5b7f232484e71958616
[ "MIT" ]
2
2021-04-06T18:32:09.000Z
2021-06-02T04:02:26.000Z
shhh/api/utils.py
cyborgflashtime/shhh
5c64c4ef75c1ff2456eaf5b7f232484e71958616
[ "MIT" ]
null
null
null
import html import secrets from base64 import urlsafe_b64decode, urlsafe_b64encode from datetime import datetime, timedelta, timezone from http import HTTPStatus from typing import Dict, Tuple from cryptography.fernet import Fernet, InvalidToken from cryptography.hazmat.backends import default_backend from cryptograph...
33.251429
83
0.613507
16a22081b44b5f451a3afd2cb24359367d854e03
2,134
py
Python
native/jni/external/selinux/python/sepolicy/sepolicy/templates/spec.py
Joyoe/Magisk-nosbin_magisk-nohide
449441921740bf85926c14f41b3532822ca0eb65
[ "MIT" ]
2
2022-01-16T00:59:54.000Z
2022-02-09T12:00:48.000Z
native/jni/external/selinux/python/sepolicy/sepolicy/templates/spec.py
Joyoe/Magisk-nosbin_magisk-nohide
449441921740bf85926c14f41b3532822ca0eb65
[ "MIT" ]
null
null
null
native/jni/external/selinux/python/sepolicy/sepolicy/templates/spec.py
Joyoe/Magisk-nosbin_magisk-nohide
449441921740bf85926c14f41b3532822ca0eb65
[ "MIT" ]
2
2022-02-09T12:00:39.000Z
2022-02-21T18:34:46.000Z
header_comment_section="""\ # vim: sw=4:ts=4:et """ base_section="""\ %define selinux_policyver VERSION Name: MODULENAME_selinux Version: 1.0 Release: 1%{?dist} Summary: SELinux policy module for MODULENAME Group: System Environment/Base License: GPLv2+ # This is an example. You will need to change it. URL: h...
25.404762
87
0.747423
7e80e3453a03c5280647aeb51a9dd5eac80fbc8a
64,497
py
Python
sdk/python/pulumi_aws/servicecatalog/provisioned_product.py
chivandikwa/pulumi-aws
19c08bf9dcb90544450ffa4eec7bf6751058fde2
[ "ECL-2.0", "Apache-2.0" ]
1
2021-11-10T16:33:40.000Z
2021-11-10T16:33:40.000Z
sdk/python/pulumi_aws/servicecatalog/provisioned_product.py
chivandikwa/pulumi-aws
19c08bf9dcb90544450ffa4eec7bf6751058fde2
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws/servicecatalog/provisioned_product.py
chivandikwa/pulumi-aws
19c08bf9dcb90544450ffa4eec7bf6751058fde2
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import...
56.625988
327
0.698312
f775ba214f2cd28aebab80df1550e120b0801ac7
943
py
Python
test/test_login_response.py
peacemakr-io/peacemakr-python-sdk
180bbc2e480ea855dddf0e28c2f27e83a17bfb84
[ "Apache-2.0" ]
3
2020-01-27T10:07:29.000Z
2021-05-17T16:45:59.000Z
test/test_login_response.py
peacemakr-io/peacemakr-python-sdk
180bbc2e480ea855dddf0e28c2f27e83a17bfb84
[ "Apache-2.0" ]
7
2020-06-24T03:55:36.000Z
2021-03-30T00:43:51.000Z
test/test_login_response.py
peacemakr-io/peacemakr-python-sdk
180bbc2e480ea855dddf0e28c2f27e83a17bfb84
[ "Apache-2.0" ]
1
2021-04-27T04:12:30.000Z
2021-04-27T04:12:30.000Z
# coding: utf-8 """ Peacemakr This API describes the Peacemakr services, which enable seamless application layer encryption and verification. # noqa: E501 OpenAPI spec version: 1.0.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import i...
23
129
0.711559
8e077f3ef47512d8091b7f84aa0e15668e4a1c2e
26,874
py
Python
src/sage/structure/sequence.py
fredstro/sage
c936d2cda81ec7ec3552a3bdb29c994b40d1bb24
[ "BSL-1.0" ]
null
null
null
src/sage/structure/sequence.py
fredstro/sage
c936d2cda81ec7ec3552a3bdb29c994b40d1bb24
[ "BSL-1.0" ]
null
null
null
src/sage/structure/sequence.py
fredstro/sage
c936d2cda81ec7ec3552a3bdb29c994b40d1bb24
[ "BSL-1.0" ]
null
null
null
r""" Finite Homogenous Sequences A mutable sequence of elements with a common guaranteed category, which can be set immutable. Sequence derives from list, so has all the functionality of lists and can be used wherever lists are used. When a sequence is created without explicitly given the common universe of the elem...
30.297632
160
0.541936
209333819c013f35e8d8fb8ec194de41682ee3b8
4,693
py
Python
hw/ip/otbn/dv/rig/rig/gens/branch_gen.py
asb/opentitan
af68ff5041b10c81e97adc075a4d042f8ac7ab20
[ "Apache-2.0" ]
1,375
2019-11-05T15:11:00.000Z
2022-03-28T17:50:43.000Z
hw/ip/otbn/dv/rig/rig/gens/branch_gen.py
asb/opentitan
af68ff5041b10c81e97adc075a4d042f8ac7ab20
[ "Apache-2.0" ]
7,045
2019-11-05T16:05:45.000Z
2022-03-31T23:08:08.000Z
hw/ip/otbn/dv/rig/rig/gens/branch_gen.py
asb/opentitan
af68ff5041b10c81e97adc075a4d042f8ac7ab20
[ "Apache-2.0" ]
428
2019-11-05T15:00:20.000Z
2022-03-28T15:34:57.000Z
# Copyright lowRISC contributors. # Licensed under the Apache License, Version 2.0, see LICENSE for details. # SPDX-License-Identifier: Apache-2.0 import random from typing import Optional, List, Tuple from ..model import Model from ..program import ProgInsn, Program from shared.operand import ImmOperandType, RegOpe...
35.55303
79
0.595568
7a5464b93ef0b14ca5140d21bbea3de69513070d
18,001
py
Python
backend_components/Electric-Vehicle-Route-Planning-on-Google-Map-Reinforcement-Learning/Environment.py
getsantanupathak/prayan-mutli-mode-transportation
3bfaece3a96d16c8e084124710ba00fa42e43dc6
[ "MIT" ]
null
null
null
backend_components/Electric-Vehicle-Route-Planning-on-Google-Map-Reinforcement-Learning/Environment.py
getsantanupathak/prayan-mutli-mode-transportation
3bfaece3a96d16c8e084124710ba00fa42e43dc6
[ "MIT" ]
null
null
null
backend_components/Electric-Vehicle-Route-Planning-on-Google-Map-Reinforcement-Learning/Environment.py
getsantanupathak/prayan-mutli-mode-transportation
3bfaece3a96d16c8e084124710ba00fa42e43dc6
[ "MIT" ]
null
null
null
from datetime import datetime import urllib.parse import requests from haversine import haversine from battery import lithium_ion_battery from motor import need_energy import math class environment(): def __init__(self, origin_adr, destination_adr): self.origin = origin_adr self.destinat...
58.255663
229
0.58669
57f27b800f78bca867ceab749096adf9f8403755
7,714
py
Python
cornflow/models/roles.py
baobabsoluciones/cornflow-server
704f23be569a95b62c88b598742963d71361781b
[ "MIT" ]
5
2021-11-24T02:43:22.000Z
2021-12-10T09:28:32.000Z
cornflow/models/roles.py
baobabsoluciones/cornflow-server
704f23be569a95b62c88b598742963d71361781b
[ "MIT" ]
125
2021-09-01T12:06:48.000Z
2022-03-30T11:32:57.000Z
cornflow/models/roles.py
baobabsoluciones/cornflow-server
704f23be569a95b62c88b598742963d71361781b
[ "MIT" ]
1
2022-03-23T17:57:59.000Z
2022-03-23T17:57:59.000Z
""" Models defined for the roles and the assignation of roles to users. """ # Import from internal modules from .meta_model import TraceAttributes from ..shared.const import ADMIN_ROLE, SERVICE_ROLE from ..shared.utils import db class RoleModel(TraceAttributes): # TODO: Should have a user_id to store the user th...
30.611111
107
0.62056
3f8bf9276775a21374bbbc413271630112bfdfa4
1,185
py
Python
reviewboard/accounts/search_indexes.py
mnoorenberghe/reviewboard
b8ba9d662c250cb5ec704a50f619adbf3be8cbf0
[ "MIT" ]
null
null
null
reviewboard/accounts/search_indexes.py
mnoorenberghe/reviewboard
b8ba9d662c250cb5ec704a50f619adbf3be8cbf0
[ "MIT" ]
null
null
null
reviewboard/accounts/search_indexes.py
mnoorenberghe/reviewboard
b8ba9d662c250cb5ec704a50f619adbf3be8cbf0
[ "MIT" ]
null
null
null
from __future__ import unicode_literals from django.contrib.auth.models import User from haystack import indexes from reviewboard.search.indexes import BaseSearchIndex class UserIndex(BaseSearchIndex, indexes.Indexable): """A Haystack search index for users.""" model = User local_site_attr = 'local_sit...
31.184211
72
0.70211
8e80ae55ec95421a64f50bb65c46956ce2f9eddd
795
py
Python
thundra/wrappers/tornado/middleware.py
sturmianseq/thundra-agent-python
4cee02d790eb7b8e4dea4e2e9dcd1f67533b1c56
[ "Apache-2.0" ]
22
2018-03-05T20:02:46.000Z
2021-04-09T12:00:18.000Z
thundra/wrappers/tornado/middleware.py
sturmianseq/thundra-agent-python
4cee02d790eb7b8e4dea4e2e9dcd1f67533b1c56
[ "Apache-2.0" ]
13
2018-03-26T07:57:57.000Z
2021-06-29T14:22:52.000Z
thundra/wrappers/tornado/middleware.py
thundra-io/thundra-agent-python
448e18c17d8730c381b2e2a773782cf80c5a7cfb
[ "Apache-2.0" ]
3
2021-08-07T14:19:23.000Z
2021-12-08T15:35:40.000Z
from thundra.wrappers.tornado.tornado_wrapper import TornadoWrapper, logger class ThundraMiddleware(object): def __init__(self): super(ThundraMiddleware, self).__init__() self._wrapper = TornadoWrapper() def execute(self, handler): try: request = handler.request ...
36.136364
88
0.642767
ef100da1bf645021e1df9faa08a5b9da0c42cea5
4,006
py
Python
TFLearn/best_state_saver.py
osmr/utct
7cf32823a83812d2eadce66d3effea6bee538109
[ "MIT" ]
null
null
null
TFLearn/best_state_saver.py
osmr/utct
7cf32823a83812d2eadce66d3effea6bee538109
[ "MIT" ]
null
null
null
TFLearn/best_state_saver.py
osmr/utct
7cf32823a83812d2eadce66d3effea6bee538109
[ "MIT" ]
null
null
null
import tensorflow as tf import tflearn from tflearn.utils import fix_saver from utct.common.overfitting_detector import OverfittingDetector from utct.common.train_controller_stop_exception import TrainControllerStopException class BestStateSaverCallback(tflearn.callbacks.Callback): """ Train controller, that...
38.519231
218
0.664004
950faa46cb39ea3791b37a0dff4a072ba32a6b04
1,269
py
Python
scanner/plugins/cms/trs/trs_wcm_default_user.py
UgOrange/onlinetools
06205282965395e37fb3a7fed806682196ad9ccc
[ "MIT" ]
1,207
2018-01-31T06:36:34.000Z
2022-03-31T07:35:35.000Z
scanner/plugins/cms/trs/trs_wcm_default_user.py
UgOrange/onlinetools
06205282965395e37fb3a7fed806682196ad9ccc
[ "MIT" ]
21
2018-07-30T03:01:49.000Z
2022-03-28T08:20:39.000Z
scanner/plugins/cms/trs/trs_wcm_default_user.py
UgOrange/onlinetools
06205282965395e37fb3a7fed806682196ad9ccc
[ "MIT" ]
310
2018-02-22T01:23:20.000Z
2022-03-28T08:51:37.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' name: TRS wcm系统默认账户漏洞 referer: unknown author: Lucifer description: TRS wcm系统中存在"依申请公开"这个默认用户,默认密码是trsadmin,可直接登录。 ''' import sys import json import requests class trs_wcm_default_user_BaseVerify: def __init__(self, url): self.url = url def run(self)...
30.214286
150
0.613869
5a92a202a7a4b8e09ceb1dc0e5e237eea05d4cb2
20,113
py
Python
dopamine/atari/run_experiment.py
zafarali/dopamine
32d23e11e68ae0543aec99765398c3e05196603d
[ "Apache-2.0" ]
1
2022-03-16T10:19:36.000Z
2022-03-16T10:19:36.000Z
dopamine/atari/run_experiment.py
zafarali/dopamine
32d23e11e68ae0543aec99765398c3e05196603d
[ "Apache-2.0" ]
null
null
null
dopamine/atari/run_experiment.py
zafarali/dopamine
32d23e11e68ae0543aec99765398c3e05196603d
[ "Apache-2.0" ]
null
null
null
# 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...
39.360078
80
0.702133
fa2de5b1fb1b1a5a4c797771f40e28f7ffa58e95
497
py
Python
conda/get-sys-exec.py
madanadit/dataproc-initialization-actions
41df2a910d0b85568073087d9e288d4397143b51
[ "Apache-2.0" ]
null
null
null
conda/get-sys-exec.py
madanadit/dataproc-initialization-actions
41df2a910d0b85568073087d9e288d4397143b51
[ "Apache-2.0" ]
null
null
null
conda/get-sys-exec.py
madanadit/dataproc-initialization-actions
41df2a910d0b85568073087d9e288d4397143b51
[ "Apache-2.0" ]
null
null
null
import pyspark import sys import os pyhashseed = os.environ['PYTHONHASHSEED'] print(pyhashseed) print(type(pyhashseed)) print(sys.version) if sys.version >= '3.3' and 'PYTHONHASHSEED' not in os.environ: raise Exception( "Randomness of hash of string should be disabled via PYTHONHASHSEED") else: sc = ...
24.85
79
0.726358
7b125c70a43f6fb1979587247b8cc98a1f782ca7
34
py
Python
test.py
damao-liu/test02
3df190a62bee677476220ec4c7a3a05d0d847a23
[ "MIT" ]
null
null
null
test.py
damao-liu/test02
3df190a62bee677476220ec4c7a3a05d0d847a23
[ "MIT" ]
null
null
null
test.py
damao-liu/test02
3df190a62bee677476220ec4c7a3a05d0d847a23
[ "MIT" ]
null
null
null
num=1 num3=13 num2=12 num4=14
3.777778
7
0.647059
6650bd5353dd89b1aa8f55d0e7a3e322cedbd24b
11,958
py
Python
util/loss_bank.py
marcelampc/aerial_mtl
c6a2033ec89a89ff06836014c619d66bc907d958
[ "BSD-3-Clause" ]
58
2019-07-23T09:01:58.000Z
2022-03-31T23:12:37.000Z
util/loss_bank.py
marcelampc/mtl_aerial_images
c6a2033ec89a89ff06836014c619d66bc907d958
[ "BSD-3-Clause" ]
5
2019-12-09T12:20:35.000Z
2021-06-23T12:41:48.000Z
util/loss_bank.py
marcelampc/aerial_mtl
c6a2033ec89a89ff06836014c619d66bc907d958
[ "BSD-3-Clause" ]
8
2019-08-05T11:13:23.000Z
2021-04-26T00:57:40.000Z
import sys import os import torch import torch.nn as nn import torch.nn.functional as F from torch.autograd import Variable, Function from ipdb import set_trace as st import numpy as np from .rank_loss import image_rank_4d sys.path.append(os.getcwd()) def _assert_no_grad(variable): assert not variable.require...
34.165714
140
0.610888
b1ab6342f6fbfbb15450b881ba8a64f9563ac8e8
1,028
py
Python
v1/leastSquareConvert.py
Los-Phoenix/Word2vec_LP
c645bdc08bb81d5b70afe3f3e0b6a1549c1a1802
[ "MIT" ]
1
2018-09-09T08:34:02.000Z
2018-09-09T08:34:02.000Z
v1/leastSquareConvert.py
Los-Phoenix/Word2vec_LP
c645bdc08bb81d5b70afe3f3e0b6a1549c1a1802
[ "MIT" ]
null
null
null
v1/leastSquareConvert.py
Los-Phoenix/Word2vec_LP
c645bdc08bb81d5b70afe3f3e0b6a1549c1a1802
[ "MIT" ]
null
null
null
#coding:utf-8 #最小二乘法拟合,用y=ax+b a=weight b=biases from __future__ import print_function import tensorflow as tf import numpy as np # create data 生成100个0-1之间的随机数 np.random.rand(100) 1*100的矩阵 #np.random.rand(3,3) 3*3的矩阵,其每个元素为0-1的随机数 x_data = np.random.rand(100, 3).astype(np.float32) y_data = [0.2, 0.4, 0.3] * x_data ...
26.358974
60
0.706226
f04f0350dc383ed6ad58fb0ce59a509177aa7f12
101,358
py
Python
googleads/adwords.py
khanhnhk/googleads-python-lib
1e882141b8eb663b55dd582ce0f4fbf3cd2f672d
[ "Apache-2.0" ]
1
2021-12-30T15:21:42.000Z
2021-12-30T15:21:42.000Z
googleads/adwords.py
benlistyg/googleads-python-lib
1e882141b8eb663b55dd582ce0f4fbf3cd2f672d
[ "Apache-2.0" ]
null
null
null
googleads/adwords.py
benlistyg/googleads-python-lib
1e882141b8eb663b55dd582ce0f4fbf3cd2f672d
[ "Apache-2.0" ]
null
null
null
# Copyright 2013 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
38.642013
96
0.684149
8624c093ab5cb335dbfdfa1e7674cff34fd6ff82
45,725
py
Python
sympy/polys/agca/modules.py
tachycline/sympy
abf6fec12012852c7e6fae38461da9723cadc8b9
[ "BSD-3-Clause" ]
null
null
null
sympy/polys/agca/modules.py
tachycline/sympy
abf6fec12012852c7e6fae38461da9723cadc8b9
[ "BSD-3-Clause" ]
null
null
null
sympy/polys/agca/modules.py
tachycline/sympy
abf6fec12012852c7e6fae38461da9723cadc8b9
[ "BSD-3-Clause" ]
null
null
null
""" Computations with modules over polynomial rings. This module implements various classes that encapsulate groebner basis computations for modules. Most of them should not be instantiated by hand. Instead, use the constructing routines on objects you already have. For example, to construct a free module over ``QQ[x...
33.062184
98
0.553898
d1cc02341fc29b32a67bc7072f7f5df9b251dce7
1,642
py
Python
test/processing_scripts/nimbus/test_3/make_all_figure.py
schinmayee/nimbus
170cd15e24a7a88243a6ea80aabadc0fc0e6e177
[ "BSD-3-Clause" ]
20
2017-07-03T19:09:09.000Z
2021-09-10T02:53:56.000Z
test/processing_scripts/nimbus/test_3/make_all_figure.py
schinmayee/nimbus
170cd15e24a7a88243a6ea80aabadc0fc0e6e177
[ "BSD-3-Clause" ]
null
null
null
test/processing_scripts/nimbus/test_3/make_all_figure.py
schinmayee/nimbus
170cd15e24a7a88243a6ea80aabadc0fc0e6e177
[ "BSD-3-Clause" ]
9
2017-09-17T02:05:06.000Z
2020-01-31T00:12:01.000Z
#!/usr/bin/env python import numpy as np import matplotlib.pyplot as plt import sys def break_line(line): contents = line.split(" ") return float(contents[0]), int(contents[1]), int(contents[2]), \ int(contents[3]), int(contents[4]), int(contents[5]), int(contents[6]) def cal_color(e0, e1, e2, e3, e4...
27.830508
78
0.588307
7c4a631481013776cbc38f7ecf85e690856208e6
2,641
py
Python
utils/Downloaders/KittiStereoDownloader.py
jiafeng5513/BinocularNet
c26262cef69f99f9db832ec5610cc03bf50aed88
[ "MIT" ]
21
2019-07-23T06:42:08.000Z
2021-09-26T12:14:13.000Z
utils/Downloaders/KittiStereoDownloader.py
jiafeng5513/BinocularNet
c26262cef69f99f9db832ec5610cc03bf50aed88
[ "MIT" ]
1
2021-09-26T13:33:40.000Z
2021-09-26T13:33:40.000Z
utils/Downloaders/KittiStereoDownloader.py
jiafeng5513/BinocularNet
c26262cef69f99f9db832ec5610cc03bf50aed88
[ "MIT" ]
6
2019-10-04T02:55:55.000Z
2022-02-12T03:36:44.000Z
# -*- coding: utf-8 -*- import wget, tarfile import os import urllib import tqdm import sys import requests stereo2012=['https://s3.eu-central-1.amazonaws.com/avg-kitti/data_stereo_flow.zip', 'https://s3.eu-central-1.amazonaws.com/avg-kitti/data_stereo_flow_calib.zip', 'https://s3.eu-central-...
34.298701
113
0.646725
73c8e26a133e574a7528a022da7a3769cecd71f8
4,652
py
Python
html5lib/treewalkers/etree.py
mindw/html5lib-python
46dae3d9f471468da5890803e80115db246ea6b6
[ "MIT" ]
null
null
null
html5lib/treewalkers/etree.py
mindw/html5lib-python
46dae3d9f471468da5890803e80115db246ea6b6
[ "MIT" ]
null
null
null
html5lib/treewalkers/etree.py
mindw/html5lib-python
46dae3d9f471468da5890803e80115db246ea6b6
[ "MIT" ]
null
null
null
from __future__ import absolute_import, division, unicode_literals try: from collections import OrderedDict except ImportError: try: from ordereddict import OrderedDict except ImportError: OrderedDict = dict import re from six import string_types from . import _base from ..utils import m...
33.710145
81
0.505589
f62d430bf1cccdd6b05b9e0b1c1aad97dd932ae0
3,041
py
Python
.venv/lib/python2.7/site-packages/ansible/executor/task_result.py
Achraf-Ben/Ansible-
a271b4c32948a7f8726e3f3174e12fe6ff491619
[ "MIT" ]
null
null
null
.venv/lib/python2.7/site-packages/ansible/executor/task_result.py
Achraf-Ben/Ansible-
a271b4c32948a7f8726e3f3174e12fe6ff491619
[ "MIT" ]
null
null
null
.venv/lib/python2.7/site-packages/ansible/executor/task_result.py
Achraf-Ben/Ansible-
a271b4c32948a7f8726e3f3174e12fe6ff491619
[ "MIT" ]
null
null
null
# (c) 2012-2014, Michael DeHaan <michael.dehaan@gmail.com> # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) an...
35.360465
118
0.656363
96b49fc8ce435533c20de9ab4a75bbac128a4a77
2,223
py
Python
sktime/contrib/dictionary_based/bop.py
pabworks/sktime
3ab1ecc20ab2e5d2a19f3df13f07fa88b7c8d652
[ "BSD-3-Clause" ]
1
2021-02-18T06:26:10.000Z
2021-02-18T06:26:10.000Z
sktime/contrib/dictionary_based/bop.py
atasoluki/sktime
bb5e21614f05a9757559a569f34aa44888c3cf61
[ "BSD-3-Clause" ]
null
null
null
sktime/contrib/dictionary_based/bop.py
atasoluki/sktime
bb5e21614f05a9757559a569f34aa44888c3cf61
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from sklearn.model_selection import GridSearchCV from sktime.base import BaseEstimator from sktime.classification.distance_based._time_series_neighbors import ( KNeighborsTimeSeriesClassifier, ) from sktime.datasets import load_italy_power_demand from sklearn.pipeline import Pipeline from s...
30.452055
88
0.613585
0fe1df94b88eb6202308ad41c3f03d8d8ea31d16
509
py
Python
board/mk3239/ucube.py
jinlongliu/AliOS-Things
ce051172a775f987183e7aca88bb6f3b809ea7b0
[ "Apache-2.0" ]
4
2019-03-12T11:04:48.000Z
2019-10-22T06:06:53.000Z
board/mk3239/ucube.py
IamBaoMouMou/AliOS-Things
195a9160b871b3d78de6f8cf6c2ab09a71977527
[ "Apache-2.0" ]
3
2018-12-17T13:06:46.000Z
2018-12-28T01:40:59.000Z
board/mk3239/ucube.py
IamBaoMouMou/AliOS-Things
195a9160b871b3d78de6f8cf6c2ab09a71977527
[ "Apache-2.0" ]
2
2018-01-23T07:54:08.000Z
2018-01-23T11:38:59.000Z
src =Split(''' board.c wifi_nvram.c ''') component =aos_component('board_mk3239', src) global_includes =Split(''' ./ ''') for i in global_includes: component.add_global_includes(i) global_macros =Split(''' HSE_VALUE=26000000 STDIO_UART=0 CONFIG_NO_TCPIP RHINO_CONFI...
17.551724
58
0.656189
180f5861c05c1a3b010c2d4aafe140fc9b134961
11,673
py
Python
code/python/ProcuretoPayAPISCIM/v1/fds/sdk/ProcuretoPayAPISCIM/model/user_resource_list.py
factset/enterprise-sdk
3fd4d1360756c515c9737a0c9a992c7451d7de7e
[ "Apache-2.0" ]
6
2022-02-07T16:34:18.000Z
2022-03-30T08:04:57.000Z
code/python/ProcuretoPayAPISCIM/v1/fds/sdk/ProcuretoPayAPISCIM/model/user_resource_list.py
factset/enterprise-sdk
3fd4d1360756c515c9737a0c9a992c7451d7de7e
[ "Apache-2.0" ]
2
2022-02-07T05:25:57.000Z
2022-03-07T14:18:04.000Z
code/python/ProcuretoPayAPISCIM/v1/fds/sdk/ProcuretoPayAPISCIM/model/user_resource_list.py
factset/enterprise-sdk
3fd4d1360756c515c9737a0c9a992c7451d7de7e
[ "Apache-2.0" ]
null
null
null
""" FactSet SCIM API FactSet's SCIM API implementation. # noqa: E501 The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech """ import re # noqa: F401 import sys # noqa: F401 from fds.sdk.ProcuretoPayAPISCIM.model_utils import ( # noqa: F401 ApiTypeError, ...
43.233333
121
0.570205
d66b8abf30d143baa9d95fc4b938dc5f531d2105
2,374
py
Python
Current/merge-to-db.py
daugherty-lab/SLiME-Tools
e03c4f77009e31e4a88d479bb5272bd995055d63
[ "MIT" ]
null
null
null
Current/merge-to-db.py
daugherty-lab/SLiME-Tools
e03c4f77009e31e4a88d479bb5272bd995055d63
[ "MIT" ]
null
null
null
Current/merge-to-db.py
daugherty-lab/SLiME-Tools
e03c4f77009e31e4a88d479bb5272bd995055d63
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import argparse import configparser import json # import logging import pandas as pd # set logging # logger=logging.getLogger(__name__) # logger.setLevel(logging.DEBUG) # formatter=logging.Formatter('[%(asctime)s:%(levelname)s:%(lineno)d %(message)s', datefmt='%H:%M:%S') #time:levelname:message...
38.918033
356
0.707666
7797ce08981cf9bb6da215a8cfb9904a0d9000ab
27,430
py
Python
Cerra.py
wexnot/Personal-Security
02532d6458bc399f103b74175cf85db71fc69b9f
[ "MIT" ]
null
null
null
Cerra.py
wexnot/Personal-Security
02532d6458bc399f103b74175cf85db71fc69b9f
[ "MIT" ]
null
null
null
Cerra.py
wexnot/Personal-Security
02532d6458bc399f103b74175cf85db71fc69b9f
[ "MIT" ]
null
null
null
import sys import base64 import os import json import ctypes import tkinter as tk from tkinter import messagebox import gspread import pyperclip import logging from cryptography.hazmat.backends import default_backend from cryptography.hazmat.primitives import hashes from cryptography.hazmat.primitives.kdf.pbkdf2 import...
38.150209
167
0.625374
2b6209a9f4da6d2ae2723f0b5a848de87c61b39f
2,369
py
Python
auto_generated_scripts/gp_kernel_combinations.py
patel-zeel/pyprobml-fork
4b1757c41223c36a8e7bcef729a220a23b7c5217
[ "MIT" ]
null
null
null
auto_generated_scripts/gp_kernel_combinations.py
patel-zeel/pyprobml-fork
4b1757c41223c36a8e7bcef729a220a23b7c5217
[ "MIT" ]
5
2022-03-23T12:03:49.000Z
2022-03-24T12:18:17.000Z
auto_generated_scripts/gp_kernel_combinations.py
patel-zeel/pyprobml-fork
4b1757c41223c36a8e7bcef729a220a23b7c5217
[ "MIT" ]
1
2022-03-23T06:02:01.000Z
2022-03-23T06:02:01.000Z
#!/usr/bin/env python # coding: utf-8 # In[1]: try: import tinygp except ModuleNotFoundError: get_ipython().run_line_magic('pip', 'install -qqq tinygp') import tinygp kernels = tinygp.kernels from tinygp import GaussianProcess try: import jax except: get_ipython().run_line_magic('pip', 'install ...
23.929293
85
0.677501
6bb9d5a9309831b72f84bcc9c59133c143395547
1,386
py
Python
psidialogs/util.py
ponty/psidialogs
381a34f5e732f199013073501ee7976f0c2a9a7f
[ "BSD-2-Clause" ]
17
2015-01-11T20:41:45.000Z
2021-09-08T16:48:08.000Z
psidialogs/util.py
ponty/psidialogs
381a34f5e732f199013073501ee7976f0c2a9a7f
[ "BSD-2-Clause" ]
2
2017-09-19T15:24:06.000Z
2021-01-02T16:16:47.000Z
psidialogs/util.py
ponty/psidialogs
381a34f5e732f199013073501ee7976f0c2a9a7f
[ "BSD-2-Clause" ]
2
2017-02-21T14:51:42.000Z
2020-06-17T06:59:13.000Z
import sys from easyprocess import EasyProcess def py_minor(): return sys.version_info[1] def platform_is_osx(): return sys.platform == "darwin" def platform_is_win(): return sys.platform == "win32" def platform_is_linux(): return sys.platform.startswith("linux") def run_mod_as_subproc(name, ...
19.521127
75
0.582973
defd9518ab6df5296ff2d1bcb3f61ff5629dae3e
1,425
py
Python
Kai/crab/NANOv7_Fri13/2017/El/crab_cfg_2017_El_E.py
NJManganelli/FourTopNAOD
9743d5b49bdbad27a74abb7b2d5b7295f678a0e3
[ "Apache-2.0" ]
1
2022-01-17T17:29:38.000Z
2022-01-17T17:29:38.000Z
Kai/crab/NANOv7_Fri13/2017/El/crab_cfg_2017_El_E.py
NJManganelli/FourTopNAOD
9743d5b49bdbad27a74abb7b2d5b7295f678a0e3
[ "Apache-2.0" ]
null
null
null
Kai/crab/NANOv7_Fri13/2017/El/crab_cfg_2017_El_E.py
NJManganelli/FourTopNAOD
9743d5b49bdbad27a74abb7b2d5b7295f678a0e3
[ "Apache-2.0" ]
1
2021-12-15T10:56:50.000Z
2021-12-15T10:56:50.000Z
import os from WMCore.Configuration import Configuration from CRABClient.UserUtilities import config, getUsernameFromCRIC config = Configuration() config.section_("General") config.General.requestName = '2017_El_E' config.General.transferOutputs = True config.General.transferLogs = True config.section_("JobType") con...
36.538462
120
0.762807
34b596391909c952a2cfe6c1ed1f5532d47b1637
297,666
py
Python
dbReports/iondb/rundb/models.py
konradotto/TS
bf088bd8432b1e3f4b8c8c083650a30d9ef2ae2e
[ "Apache-2.0" ]
null
null
null
dbReports/iondb/rundb/models.py
konradotto/TS
bf088bd8432b1e3f4b8c8c083650a30d9ef2ae2e
[ "Apache-2.0" ]
null
null
null
dbReports/iondb/rundb/models.py
konradotto/TS
bf088bd8432b1e3f4b8c8c083650a30d9ef2ae2e
[ "Apache-2.0" ]
1
2020-04-18T13:00:23.000Z
2020-04-18T13:00:23.000Z
# Copyright (C) 2014 Ion Torrent Systems, Inc. All Rights Reserved """ Models ====== Django database models for the Torrent Analysis Suite. ``models`` defines the way the frontend database stores information about Personal Genome Machine experiments. This information includes... * The location of experiment data (t...
37.06001
272
0.610832
1275e41706d22d77c8a75494542a53fa9f36c9c9
690
py
Python
tests/market/test_trader.py
DeathAdder1999/Pizdyuk
3fd7c71508c79b36e3cc801d78cd1a87eee5aa0b
[ "Apache-2.0" ]
1
2021-05-06T20:23:08.000Z
2021-05-06T20:23:08.000Z
tests/market/test_trader.py
aufdnb/Pizdyuk
75096ffa54df831eb05360d7b39f49000d466f80
[ "Apache-2.0" ]
null
null
null
tests/market/test_trader.py
aufdnb/Pizdyuk
75096ffa54df831eb05360d7b39f49000d466f80
[ "Apache-2.0" ]
null
null
null
import pizdyuk from pizdyuk.market.trader import get_trader def test_handle_order(mocker): mocker.patch("pizdyuk.market.trader.stock_manager") mocker.patch("pizdyuk.market.trader.user_manager") valid_data = { "user_id": "mock_user_id", "symbol": "mock_symbol", "num_shares": 10 }...
28.75
70
0.65942
7c460e88486a06065f44608ea0d8cd1485e58a51
375
py
Python
service/api/migrations/0004_playlist_description.py
mohammedyousuf051/playlist
21c570fcff6d58855e139b4ecdaf91b92aba37e3
[ "MIT" ]
null
null
null
service/api/migrations/0004_playlist_description.py
mohammedyousuf051/playlist
21c570fcff6d58855e139b4ecdaf91b92aba37e3
[ "MIT" ]
null
null
null
service/api/migrations/0004_playlist_description.py
mohammedyousuf051/playlist
21c570fcff6d58855e139b4ecdaf91b92aba37e3
[ "MIT" ]
null
null
null
# Generated by Django 3.2.12 on 2022-02-09 20:10 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('api', '0003_playlist'), ] operations = [ migrations.AddField( model_name='playlist', name='description', ...
19.736842
48
0.581333
a6de82940e59ad1a5e3671389f8649a320a97563
804
py
Python
algorithms/dbscan-outlier-detection.py
JOPloume/Outlier-detection-2D-feature-space
1072535581f673b4bcc271e7298602fbf5785c46
[ "MIT" ]
2
2021-09-05T21:16:04.000Z
2021-09-06T08:08:41.000Z
algorithms/dbscan-outlier-detection.py
JOPloume/Outlier-detection-2D-feature-space
1072535581f673b4bcc271e7298602fbf5785c46
[ "MIT" ]
null
null
null
algorithms/dbscan-outlier-detection.py
JOPloume/Outlier-detection-2D-feature-space
1072535581f673b4bcc271e7298602fbf5785c46
[ "MIT" ]
1
2019-09-26T06:42:11.000Z
2019-09-26T06:42:11.000Z
import pandas as pd import sys from sklearn.cluster import DBSCAN from collections import Counter # Reading in 2D Feature Space feature_space = pd.read_csv("../datasets/wine-data.csv", header=None, sep=",") data = feature_space.iloc[:, 0:2].values # DBSCAN model with parameters model = DBSCAN(eps=0.8, min_samples=10)...
28.714286
78
0.768657
e709bf0a355570cf57dff378e3c6a61818162544
8,835
py
Python
src/sms_verifier_app/views_api.py
ArieLevs/sms-verifier-backend
b687f0426e7fc871a7ba50d95499187e72089dce
[ "MIT" ]
null
null
null
src/sms_verifier_app/views_api.py
ArieLevs/sms-verifier-backend
b687f0426e7fc871a7ba50d95499187e72089dce
[ "MIT" ]
10
2020-02-12T02:51:31.000Z
2022-02-10T13:33:43.000Z
src/sms_verifier_app/views_api.py
ArieLevs/sms-verifier-backend
b687f0426e7fc871a7ba50d95499187e72089dce
[ "MIT" ]
1
2022-02-22T18:56:22.000Z
2022-02-22T18:56:22.000Z
import datetime import logging from uuid import UUID from sms_verifier_app.models import Contacts, BroadcastList, EventAttendances from sms_verifier_app.serializers import ApproveGuestSerializer from sms_verifier_app.views import context from django.conf import settings from django.shortcuts import render # REST Fra...
32.843866
106
0.587663
4588ea71c7792aef3946ddd020029b8c0994a81c
38,142
py
Python
python/mxnet/model.py
bill-teng/mxnet-test
39a2c0cff1be8b8277b2e0a8c55214acc186a49c
[ "Apache-2.0" ]
1
2021-04-07T17:00:20.000Z
2021-04-07T17:00:20.000Z
python/mxnet/model.py
dmmiller612/mxnet
3f410c23cb02df64625d7c8f9f299b580236f6a5
[ "Apache-2.0" ]
null
null
null
python/mxnet/model.py
dmmiller612/mxnet
3f410c23cb02df64625d7c8f9f299b580236f6a5
[ "Apache-2.0" ]
null
null
null
# pylint: disable=fixme, invalid-name, too-many-arguments, too-many-locals, too-many-lines # pylint: disable=too-many-branches, too-many-statements """MXNet model module""" from __future__ import absolute_import, print_function import time import logging import warnings from collections import namedtuple import numpy ...
40.70651
98
0.590216
6c851183c3b9cdcc30e8391697fb2625e79c26a0
21,229
py
Python
cores/PTX/data_race/direct_nd/ptxILAdirect_nd_lockstep_warp.py
tinochinamora/iw_imdb
89964024bee7f8eaaa25530a8d40155251345be0
[ "MIT" ]
3
2021-09-10T08:14:45.000Z
2022-02-25T04:53:12.000Z
cores/PTX/data_race/direct_nd/ptxILAdirect_nd_lockstep_warp.py
PrincetonUniversity/ILA-Modeling-Verification
88964aad8c465c9da82f1ec66425da9f16fc8d29
[ "MIT" ]
1
2018-06-25T08:49:22.000Z
2018-06-25T08:49:22.000Z
cores/PTX/data_race/direct_nd/ptxILAdirect_nd_lockstep_warp.py
PrincetonUniversity/ILA-Modeling-Verification
88964aad8c465c9da82f1ec66425da9f16fc8d29
[ "MIT" ]
3
2018-06-26T11:31:40.000Z
2021-12-01T20:16:21.000Z
import ila import time import pickle import Instruction_Format import re ila.setloglevel(3, '') ila.enablelog('BMCResult') ptx_declaration_obj = open('ptx_declaration_file', 'r') ptx_declaration = pickle.load(ptx_declaration_obj) program_obj = open('ptx_add_neighbor', 'r') program = pickle.load(program_obj) instruction...
45.458244
211
0.585049
646e52ab34ddb59606d284cc1c06e3f568f94667
545
py
Python
infovoid/manage.py
wes-o/infovoid
8cdb99b8d5ae1c9ee03283c6d9a5416c675c6e5e
[ "Apache-2.0" ]
null
null
null
infovoid/manage.py
wes-o/infovoid
8cdb99b8d5ae1c9ee03283c6d9a5416c675c6e5e
[ "Apache-2.0" ]
null
null
null
infovoid/manage.py
wes-o/infovoid
8cdb99b8d5ae1c9ee03283c6d9a5416c675c6e5e
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "infovoid.settings.dev") try: from django.core.management import execute_from_command_line except ImportError as exc: raise ImportError( "Couldn't import Django...
34.0625
76
0.686239
a6668774b570371fd3b8af039abeea1edeabaa61
84,044
py
Python
VirtualBox-5.0.0/src/VBox/Devices/EFI/Firmware/BaseTools/Source/Python/Workspace/MetaFileParser.py
egraba/vbox_openbsd
6cb82f2eed1fa697d088cecc91722b55b19713c2
[ "MIT" ]
1
2015-04-30T14:18:45.000Z
2015-04-30T14:18:45.000Z
VirtualBox-5.0.0/src/VBox/Devices/EFI/Firmware/BaseTools/Source/Python/Workspace/MetaFileParser.py
egraba/vbox_openbsd
6cb82f2eed1fa697d088cecc91722b55b19713c2
[ "MIT" ]
null
null
null
VirtualBox-5.0.0/src/VBox/Devices/EFI/Firmware/BaseTools/Source/Python/Workspace/MetaFileParser.py
egraba/vbox_openbsd
6cb82f2eed1fa697d088cecc91722b55b19713c2
[ "MIT" ]
null
null
null
## @file # This file is used to parse meta files # # Copyright (c) 2008 - 2010, Intel Corporation. All rights reserved.<BR> # This program and the accompanying materials # are licensed and made available under the terms and conditions of the BSD License # which accompanies this distribution. The full text of the licen...
46.717065
149
0.563919
31968b7317af8a6515d96e5d7f6e3e17f2dd8fc2
467
py
Python
watchweb.py
sleep1661/PyWebMonitor
dfea89e3f6c40a81cf42d8723506227b90ccbe42
[ "Apache-2.0" ]
11
2015-04-19T04:13:21.000Z
2021-01-24T12:59:08.000Z
watchweb.py
sleep1661/PyWebMonitor
dfea89e3f6c40a81cf42d8723506227b90ccbe42
[ "Apache-2.0" ]
null
null
null
watchweb.py
sleep1661/PyWebMonitor
dfea89e3f6c40a81cf42d8723506227b90ccbe42
[ "Apache-2.0" ]
3
2015-06-30T15:02:46.000Z
2019-09-28T07:07:32.000Z
import ConfigParser import codecs URL = 'url' REGEX = 'regex' CONDITION = 'condition' MAIL_RECEIVER = 'mail_receiver' MAIL_MSG = 'mail_msg' INTERVAL_SECONDS = 'interval_seconds' WATCH_WEBS = 'watchweb.ini' def get_watch_webs(): config = ConfigParser.ConfigParser() config.readfp(codecs.open(WATCH_WEBS, ...
23.35
71
0.719486
cf3c3b39fe7511e658aa61bb676ff7c66ab492d0
1,379
py
Python
options.py
sujoyp/wtalc-tensorflow
73a92310779c042a2cfa51faa2696ea28fd787d0
[ "MIT" ]
6
2018-12-22T02:56:29.000Z
2021-04-12T14:31:58.000Z
options.py
sujoyp/wtalc-tensorflow
73a92310779c042a2cfa51faa2696ea28fd787d0
[ "MIT" ]
1
2019-12-16T20:04:18.000Z
2019-12-17T00:03:06.000Z
options.py
sujoyp/wtalc-tensorflow
73a92310779c042a2cfa51faa2696ea28fd787d0
[ "MIT" ]
3
2019-07-20T22:28:57.000Z
2021-04-12T14:31:58.000Z
import argparse parser = argparse.ArgumentParser(description='WTALC') parser.add_argument('--lr', type=float, default=0.0001,help='learning rate (default: 0.0001)') parser.add_argument('--batch-size', type=int, default=10, help='number of instances in a batch of data (default: 10)') parser.add_argument('--model-n...
76.611111
119
0.730964
c63206ec75eeee54012d85b0a8b8855e73191877
122,697
py
Python
salt/modules/lxc.py
jbq/pkg-salt
b6742e03cbbfb82f4ce7db2e21a3ff31b270cdb3
[ "Apache-2.0" ]
1
2020-09-16T21:31:02.000Z
2020-09-16T21:31:02.000Z
salt/modules/lxc.py
jbq/pkg-salt
b6742e03cbbfb82f4ce7db2e21a3ff31b270cdb3
[ "Apache-2.0" ]
null
null
null
salt/modules/lxc.py
jbq/pkg-salt
b6742e03cbbfb82f4ce7db2e21a3ff31b270cdb3
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' Control Linux Containers via Salt :depends: lxc package for distribution lxc >= 1.0 (even beta alpha) is required ''' # Import python libs from __future__ import absolute_import, print_function import datetime import pipes import copy import difflib import logging import tempfile import ...
33.027456
150
0.558253
1012a46692180f6781c19bd6d58d6f992d4d1080
24,670
py
Python
mfem/_par/pfespace.py
mfem/PyMFEM
b7b7c3d3de1082eac1015e3a313cf513db06fd7b
[ "BSD-3-Clause" ]
93
2017-03-01T16:45:33.000Z
2022-03-27T22:10:33.000Z
mfem/_par/pfespace.py
mfem/PyMFEM
b7b7c3d3de1082eac1015e3a313cf513db06fd7b
[ "BSD-3-Clause" ]
64
2017-03-15T21:47:31.000Z
2022-03-31T23:59:00.000Z
mfem/_par/pfespace.py
mfem/PyMFEM
b7b7c3d3de1082eac1015e3a313cf513db06fd7b
[ "BSD-3-Clause" ]
32
2017-03-02T22:13:38.000Z
2022-03-26T13:09:31.000Z
# This file was automatically generated by SWIG (http://www.swig.org). # Version 4.0.2 # # Do not make changes to this file unless you know what you are doing--modify # the SWIG interface file instead. from sys import version_info as _swig_python_version_info if _swig_python_version_info < (2, 7, 0): raise Runtime...
50.346939
198
0.784556
beee81de7412305b0b59f1aa192bb0d35553ad40
7,338
py
Python
acceptance/python/src/test_divisible_asset.py
jaromil/bigchaindb
ad4c64923af49b69ba15b98b3b1af14ceaaac40f
[ "Apache-2.0" ]
4,196
2016-02-10T13:45:27.000Z
2022-03-31T23:28:59.000Z
acceptance/python/src/test_divisible_asset.py
jaromil/bigchaindb
ad4c64923af49b69ba15b98b3b1af14ceaaac40f
[ "Apache-2.0" ]
2,527
2016-02-10T15:00:53.000Z
2022-03-30T07:24:15.000Z
acceptance/python/src/test_divisible_asset.py
jaromil/bigchaindb
ad4c64923af49b69ba15b98b3b1af14ceaaac40f
[ "Apache-2.0" ]
934
2016-02-10T23:55:15.000Z
2022-03-27T03:51:08.000Z
# Copyright © 2020 Interplanetary Database Association e.V., # BigchainDB and IPDB software contributors. # SPDX-License-Identifier: (Apache-2.0 AND CC-BY-4.0) # Code is Apache-2.0 and docs are CC-BY-4.0 # # Divisible assets integration testing # This test checks if we can successfully divide assets. # The script test...
40.318681
85
0.672254
1a4bea274aca87f35a2e6c36ca14e6bf94a770dc
4,673
py
Python
tests/generic_json/test_runner.py
niradler/checkov
2628c6f28a5604efe3877d6eacc3044d2b66b7b1
[ "Apache-2.0" ]
4,013
2019-12-09T13:16:54.000Z
2022-03-31T14:31:01.000Z
tests/generic_json/test_runner.py
niradler/checkov
2628c6f28a5604efe3877d6eacc3044d2b66b7b1
[ "Apache-2.0" ]
1,258
2019-12-17T09:55:51.000Z
2022-03-31T19:17:17.000Z
tests/generic_json/test_runner.py
niradler/checkov
2628c6f28a5604efe3877d6eacc3044d2b66b7b1
[ "Apache-2.0" ]
638
2019-12-19T08:57:38.000Z
2022-03-30T21:38:37.000Z
import unittest import os from checkov.json_doc.runner import Runner from checkov.runner_filter import RunnerFilter class TestRunnerValid(unittest.TestCase): def test_runner_object_failing_check(self): current_dir = os.path.dirname(os.path.realpath(__file__)) valid_dir_path = os.path.join(curre...
42.099099
82
0.655254
3abd725823df939b56c8f24fbf64e80804bcf919
7,089
py
Python
dqn/cnn.py
prabhatnagarajan/dqn
63334abf645d4d29b2b940e7add65207c9df1266
[ "MIT" ]
8
2017-04-17T20:50:06.000Z
2021-06-28T05:11:11.000Z
dqn/cnn.py
prabhatnagarajan/dqn_atari
63334abf645d4d29b2b940e7add65207c9df1266
[ "MIT" ]
2
2017-03-29T00:12:06.000Z
2017-12-05T09:17:17.000Z
dqn/cnn.py
prabhatnagarajan/dqn_atari
63334abf645d4d29b2b940e7add65207c9df1266
[ "MIT" ]
1
2017-10-09T08:14:26.000Z
2017-10-09T08:14:26.000Z
import tensorflow as tf import math from pdb import set_trace def linear_weight_var(shape): stdv = 1.0/math.sqrt(shape[0]) initial = tf.random_uniform(shape, minval = -stdv, maxval = stdv) return tf.Variable(initial) def linear_bias_var(shape, input_size): stdv = 1.0/math.sqrt(input_size) initial = tf....
44.30625
147
0.745662
620eee1fd3c564f999b9adb6ab3be7734d4b50ab
809
py
Python
Leetcode/Python Solutions/Binary Trees/findBottomLeftTreeValue.py
Mostofa-Najmus-Sakib/Applied-Algorithm
bc656fd655617407856e0ce45b68585fa81c5035
[ "MIT" ]
1
2020-01-06T02:21:56.000Z
2020-01-06T02:21:56.000Z
Leetcode/Python Solutions/Binary Trees/findBottomLeftTreeValue.py
Mostofa-Najmus-Sakib/Applied-Algorithm
bc656fd655617407856e0ce45b68585fa81c5035
[ "MIT" ]
null
null
null
Leetcode/Python Solutions/Binary Trees/findBottomLeftTreeValue.py
Mostofa-Najmus-Sakib/Applied-Algorithm
bc656fd655617407856e0ce45b68585fa81c5035
[ "MIT" ]
3
2021-02-22T17:41:01.000Z
2022-01-13T05:03:19.000Z
""" LeetCode Problem: 513. Find Bottom Left Tree Value Link: https://leetcode.com/problems/find-bottom-left-tree-value/ Language: Python Written by: Mostofa Adib Shakib Time Complexity: O(N) Space Complexity: O(N) """ class Solution: def findBottomLeftValue(self, root: TreeNode) -> int: queue = [root] ...
25.28125
64
0.477132
9a3164afdf477417658b617f7c10430f21e67bb0
530
py
Python
day08/main2.py
djhoese/adventofcode_2019
edc09ca8573034c0141d9ecfda6862e9c3b18eb1
[ "Unlicense" ]
null
null
null
day08/main2.py
djhoese/adventofcode_2019
edc09ca8573034c0141d9ecfda6862e9c3b18eb1
[ "Unlicense" ]
null
null
null
day08/main2.py
djhoese/adventofcode_2019
edc09ca8573034c0141d9ecfda6862e9c3b18eb1
[ "Unlicense" ]
1
2019-12-05T20:41:24.000Z
2019-12-05T20:41:24.000Z
import numpy as np IMAGE_WIDTH = 25 IMAGE_HEIGHT = 6 def main(): with open('input.txt') as img_text: img_data = np.array([int(x) for x in img_text.read().strip()], dtype=np.uint8) img_data = img_data.reshape((-1, IMAGE_HEIGHT, IMAGE_WIDTH)) final_img = np.ones((IMAGE_HEIGHT, IMAGE_WIDTH), np.uint...
26.5
89
0.649057
d090e1ebe63875346aff63146eaf7c7811e50909
2,276
py
Python
conversation/configuration.py
birkschmithuesen/SpeculativeAI_Dodeca
b2d230a6c94774cebad7176b7d0b884d4a0adec0
[ "MIT" ]
null
null
null
conversation/configuration.py
birkschmithuesen/SpeculativeAI_Dodeca
b2d230a6c94774cebad7176b7d0b884d4a0adec0
[ "MIT" ]
32
2019-06-28T12:31:46.000Z
2022-03-11T23:53:09.000Z
conversation/configuration.py
birkschmithuesen/SpeculativeAI_Dodeca
b2d230a6c94774cebad7176b7d0b884d4a0adec0
[ "MIT" ]
1
2019-03-29T18:49:27.000Z
2019-03-29T18:49:27.000Z
""" This module saves and writes configuration files for the configuration of the vision system. """ from configparser import SafeConfigParser LIST_OPTIONS = ["maxs", "mins"] # options in config to be interpreted as list def list_to_string(lst): """ convert a list to string format for config files """ ...
30.346667
78
0.58348
e64905741104b4cb57217f9226333097eece9666
1,690
py
Python
tests/journaler_tests.py
christian-oudard/AIOPyFix
cb9e9372075e6119c0ef363d2095b3b6fddafcf3
[ "CC0-1.0" ]
null
null
null
tests/journaler_tests.py
christian-oudard/AIOPyFix
cb9e9372075e6119c0ef363d2095b3b6fddafcf3
[ "CC0-1.0" ]
null
null
null
tests/journaler_tests.py
christian-oudard/AIOPyFix
cb9e9372075e6119c0ef363d2095b3b6fddafcf3
[ "CC0-1.0" ]
null
null
null
import unittest from aiopyfix.connection import MessageDirection from aiopyfix.journaler import Journaler from aiopyfix.message import FIXMessage, FIXContext from aiopyfix.session import FIXSession class JournalerTests(unittest.TestCase): def testAddExtractMsg(self): journal = Journaler() msg = F...
31.886792
76
0.605917
ffd4064b7c23dc1feede1f023e28243acaf86d8f
2,443
py
Python
v1/decorators/nodes.py
shahraizali/Bank
d9cb926dd51af91e00199444b523f97c1b5fa3c7
[ "MIT" ]
1
2021-05-14T11:38:07.000Z
2021-05-14T11:38:07.000Z
v1/decorators/nodes.py
shahraizali/Bank
d9cb926dd51af91e00199444b523f97c1b5fa3c7
[ "MIT" ]
null
null
null
v1/decorators/nodes.py
shahraizali/Bank
d9cb926dd51af91e00199444b523f97c1b5fa3c7
[ "MIT" ]
null
null
null
import logging from functools import wraps from nacl.exceptions import BadSignatureError from rest_framework import status from rest_framework.response import Response from thenewboston.blocks.signatures import verify_signature from thenewboston.constants.errors import BAD_SIGNATURE, ERROR, UNKNOWN from thenewboston.u...
28.406977
93
0.703643
7077c684c1e07c139256c5a1348873899d3b2dbc
787
py
Python
test/test_pdi/conftest.py
cmc333333/parsons
50804a3627117797570f1e9233c9bbad583f7831
[ "Apache-2.0" ]
3
2019-09-05T16:57:15.000Z
2019-10-01T19:56:58.000Z
test/test_pdi/conftest.py
cmc333333/parsons
50804a3627117797570f1e9233c9bbad583f7831
[ "Apache-2.0" ]
22
2019-09-03T13:23:37.000Z
2019-10-03T20:32:48.000Z
test/test_pdi/conftest.py
cmc333333/parsons
50804a3627117797570f1e9233c9bbad583f7831
[ "Apache-2.0" ]
2
2019-09-01T18:30:10.000Z
2019-10-03T20:07:46.000Z
from parsons.pdi.pdi import PDI import os import pytest @pytest.fixture def live_pdi(): # Generate a live PDI connection based on these env vars username = os.environ['PDI_USERNAME'] password = os.environ['PDI_PASSWORD'] api_token = os.environ['PDI_API_TOKEN'] pdi = PDI(username, password, api_...
21.27027
60
0.66582
2a2e8a237d392e1a33285478092d47f39e55d39c
13,924
py
Python
log_casp_inh/model_577.py
LoLab-VU/Bayesian_Inference_of_Network_Dynamics
54a5ef7e868be34289836bbbb024a2963c0c9c86
[ "MIT" ]
null
null
null
log_casp_inh/model_577.py
LoLab-VU/Bayesian_Inference_of_Network_Dynamics
54a5ef7e868be34289836bbbb024a2963c0c9c86
[ "MIT" ]
null
null
null
log_casp_inh/model_577.py
LoLab-VU/Bayesian_Inference_of_Network_Dynamics
54a5ef7e868be34289836bbbb024a2963c0c9c86
[ "MIT" ]
null
null
null
# exported from PySB model 'model' from pysb import Model, Monomer, Parameter, Expression, Compartment, Rule, Observable, Initial, MatchOnce, Annotation, ANY, WILD Model() Monomer('C6A', ['C8pro']) Monomer('BaxA', ['BaxM', 'BaxA_1', 'BaxA_2', 'SmacM']) Monomer('Ligand', ['Receptor']) Monomer('C6pro', ['C3A']) Monome...
85.423313
598
0.808532
cc43d9fed9e3658b436bdfcc1229cb0355812cfc
4,459
py
Python
tests/e2e/performance/csi_tests/test_pvc_multi_snapshot_performance.py
suchita-g/ocs-ci
4e05f1eb67a69ed91e642c597121f4827a178d48
[ "MIT" ]
null
null
null
tests/e2e/performance/csi_tests/test_pvc_multi_snapshot_performance.py
suchita-g/ocs-ci
4e05f1eb67a69ed91e642c597121f4827a178d48
[ "MIT" ]
null
null
null
tests/e2e/performance/csi_tests/test_pvc_multi_snapshot_performance.py
suchita-g/ocs-ci
4e05f1eb67a69ed91e642c597121f4827a178d48
[ "MIT" ]
null
null
null
import os import logging import subprocess import pytest from ocs_ci.ocs import constants, exceptions from ocs_ci.ocs.cluster import CephCluster from ocs_ci.utility.utils import ocsci_log_path from ocs_ci.framework.testlib import ( skipif_ocs_version, skipif_ocp_version, E2ETest, performance, ) log =...
35.959677
87
0.641399
b2247a66f9cb7ff225b1ce00777e17fea6569a9d
4,395
py
Python
pypdflite/pdfobjects/pdflinegraph.py
tjoneslo/pypdflite
ac2501f30d6619eae9dea5644717575ca9263d0a
[ "MIT" ]
null
null
null
pypdflite/pdfobjects/pdflinegraph.py
tjoneslo/pypdflite
ac2501f30d6619eae9dea5644717575ca9263d0a
[ "MIT" ]
null
null
null
pypdflite/pdfobjects/pdflinegraph.py
tjoneslo/pypdflite
ac2501f30d6619eae9dea5644717575ca9263d0a
[ "MIT" ]
null
null
null
from pdfgraph import PDFGraph from pdfcolor import PDFColor from pdfcursor import PDFCursor from pdfline import PDFLine from pdftext import PDFText from pdfellipse import PDFEllipse class PDFLineGraph(PDFGraph): def __init__(self, session, page, cursor, data, width, height, title, x_axis_limits, y_axis_limits, fr...
39.954545
153
0.602275
a6a13fc626779ff12dd8376d7e69e2e395192d36
10,032
py
Python
website/project/views/register.py
chennan47/osf.io
270608592b39a94941a3e329c0dc16d295a82472
[ "Apache-2.0" ]
null
null
null
website/project/views/register.py
chennan47/osf.io
270608592b39a94941a3e329c0dc16d295a82472
[ "Apache-2.0" ]
null
null
null
website/project/views/register.py
chennan47/osf.io
270608592b39a94941a3e329c0dc16d295a82472
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import httplib as http import itertools from flask import request from framework import status from framework.exceptions import HTTPError from framework.flask import redirect # VOL-aware redirect from framework.auth.decorators import must_be_signed from website.archiver import ARCHIVER_SUCC...
39.035019
166
0.69059
d4ba468b9b21ea222e7a365c7b0c026be848b723
547
py
Python
edesia_main/edesia_main/products/migrations/0013_auto_20201229_0111.py
radugaf/application-development-2
c10c8ecc0a93a394e79fd9af61f1864657818999
[ "MIT" ]
null
null
null
edesia_main/edesia_main/products/migrations/0013_auto_20201229_0111.py
radugaf/application-development-2
c10c8ecc0a93a394e79fd9af61f1864657818999
[ "MIT" ]
null
null
null
edesia_main/edesia_main/products/migrations/0013_auto_20201229_0111.py
radugaf/application-development-2
c10c8ecc0a93a394e79fd9af61f1864657818999
[ "MIT" ]
null
null
null
# Generated by Django 3.0.8 on 2020-12-29 01:11 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('products', '0012_remove_orderitem_final_quantity'), ] operations = [ migrations.AlterField( model_name='orderitem', ...
28.789474
187
0.628885
c709fdd0436ba57a1728fbcddfb0058da382df86
1,411
py
Python
toledo/input/mouse.py
toboso-team/toledo
fb45177f04e2e2e836f48cf53913a3279dee9b5b
[ "MIT" ]
1
2017-03-31T15:25:44.000Z
2017-03-31T15:25:44.000Z
toledo/input/mouse.py
toboso-team/toledo
fb45177f04e2e2e836f48cf53913a3279dee9b5b
[ "MIT" ]
null
null
null
toledo/input/mouse.py
toboso-team/toledo
fb45177f04e2e2e836f48cf53913a3279dee9b5b
[ "MIT" ]
null
null
null
import pygame class Mouse: ''' Representa al mouse y tiene todo lo necesario para leerlo. Más abajo se pueden ver las constantes que se pueden usar. Cada una representa a un botón. ''' M_LEFT = 0 M_MIDDLE = 1 M_RIGHT = 2 def get_position(self): ''' Devuelve un ...
25.196429
80
0.546421
e17863196e77de0126d2f4b9aba6ab2dbbad6d4f
2,877
py
Python
basics/mysite/polls/views.py
lugubru/kinetic
520b9e407c122d2277164cf1e19f90a464e617aa
[ "MIT" ]
null
null
null
basics/mysite/polls/views.py
lugubru/kinetic
520b9e407c122d2277164cf1e19f90a464e617aa
[ "MIT" ]
null
null
null
basics/mysite/polls/views.py
lugubru/kinetic
520b9e407c122d2277164cf1e19f90a464e617aa
[ "MIT" ]
null
null
null
from django.shortcuts import render,get_object_or_404 from django.http import HttpResponse,Http404,HttpResponseRedirect from django.core.urlresolvers import reverse from polls.models import Poll from django.template import RequestContext,loader from django.views import generic from django.utils import timezone # Crea...
33.453488
199
0.75113
6ba810a5e989b88ce431827cf6137ef461f400c5
1,423
py
Python
src/lm/tokentrain.py
source-data/soda-roberta
28f23ae68a1bb17c9844815a7c36d4c590e8c3d0
[ "MIT" ]
3
2021-04-23T05:06:23.000Z
2021-09-03T21:10:25.000Z
src/lm/tokentrain.py
source-data/soda-roberta
28f23ae68a1bb17c9844815a7c36d4c590e8c3d0
[ "MIT" ]
1
2021-12-14T15:21:16.000Z
2021-12-14T15:21:16.000Z
src/lm/tokentrain.py
source-data/soda-roberta
28f23ae68a1bb17c9844815a7c36d4c590e8c3d0
[ "MIT" ]
1
2022-03-29T08:03:25.000Z
2022-03-29T08:03:25.000Z
from pathlib import Path from argparse import ArgumentParser from tokenizers import ByteLevelBPETokenizer from tokenizers.pre_tokenizers import ByteLevel from common.config import config from common import TOKENIZER_PATH def main(): parser = ArgumentParser(description="Training tokenizer on text files.") pars...
36.487179
128
0.644413
e7208dbe73303d377b818e2df2b46bd9bcf1bc9d
44,499
py
Python
lib/core/config.py
jz462/ContrastiveLosses4VRD
454128b5e9cd03f2e79c2f6212db79eb0e2d1345
[ "MIT" ]
14
2019-04-18T11:09:44.000Z
2019-12-10T08:11:43.000Z
lib/core/config.py
jz462/ContrastiveLosses4VRD
454128b5e9cd03f2e79c2f6212db79eb0e2d1345
[ "MIT" ]
4
2019-07-12T13:39:58.000Z
2019-09-25T05:24:42.000Z
lib/core/config.py
jz462/ContrastiveLosses4VRD
454128b5e9cd03f2e79c2f6212db79eb0e2d1345
[ "MIT" ]
2
2019-05-16T05:37:24.000Z
2019-11-11T04:09:29.000Z
# Based on Detectron.pytorch/lib/core/config.py # -------------------------------------------------------- # Detectron.pytorch # Licensed under The MIT License [see LICENSE for details] # Written by roytseng-tw # -------------------------------------------------------- from __future__ import absolute_import from __fut...
35.066194
101
0.685341
58182b77403534cd215a2ca6fe0c40baa8d84253
578
py
Python
python/fun_messagedic.py
FireflyTang/WoQu
9f1763b1971e8fce99d123584e803fac36821756
[ "MIT" ]
null
null
null
python/fun_messagedic.py
FireflyTang/WoQu
9f1763b1971e8fce99d123584e803fac36821756
[ "MIT" ]
null
null
null
python/fun_messagedic.py
FireflyTang/WoQu
9f1763b1971e8fce99d123584e803fac36821756
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -* #!/usr/bin/python import urllib.parse #string->bytes:decode(str,'utf-8') #bytes->string:encode(str,'utf-8') def message2dic(message): #message='TYPE=1_1&name=%E4%BD%A0%26%E5%A5%BD' #将消息按url拆成不同的字段,自动完成转义,返回值为字典,key=>value value为列表 dic= urllib.parse.parse_qs(message,True) #将val...
19.266667
53
0.640138
5c95e072f706a9019304b09a2a60613ddbf248dc
403
py
Python
ch06_dash_layout/dash_layout_style_margin.py
Ethan0621/plotly-dash-dev
abe478824db1ee511a2d92f88e5dad49f5d6e27e
[ "MIT" ]
21
2020-10-02T08:17:33.000Z
2022-03-22T06:10:17.000Z
ch06_dash_layout/dash_layout_style_margin.py
Ethan0621/plotly-dash-dev
abe478824db1ee511a2d92f88e5dad49f5d6e27e
[ "MIT" ]
4
2019-07-18T04:43:31.000Z
2021-10-31T10:30:25.000Z
ch06_dash_layout/dash_layout_style_margin.py
Ethan0621/plotly-dash-dev
abe478824db1ee511a2d92f88e5dad49f5d6e27e
[ "MIT" ]
12
2019-07-23T05:36:57.000Z
2021-07-11T08:57:47.000Z
import dash import dash_html_components as html app = dash.Dash(__name__) app.layout = html.P( "こんにちは。昨日は雪が降りました。", # スタイルの設定 style={ "fontSize": 50, # フォントサイズ "color": "white", # 文字色 "backgroundColor": "#000000", # 背景色 "width": 400, # 横幅 "margin": "auto", # ➊ ...
20.15
45
0.573201
7021f5e6dfec9cec0385cee8cc64cc86297a71ff
3,145
py
Python
smsbot.py
djq47r/TGPars
c900d28f0e107cd55a55fc35dd4e0fc4a00a90ac
[ "MIT" ]
123
2020-10-29T01:43:30.000Z
2022-03-26T04:58:16.000Z
smsbot.py
far-rainbow/TGPars
8017684102b733c0ef19fb34858bc0677cbe7795
[ "MIT" ]
4
2021-03-08T10:09:05.000Z
2022-03-12T11:04:44.000Z
smsbot.py
far-rainbow/TGPars
8017684102b733c0ef19fb34858bc0677cbe7795
[ "MIT" ]
111
2020-10-31T03:35:58.000Z
2022-03-29T10:20:20.000Z
#!/bin/env python3 from telethon.sync import TelegramClient from telethon.tl.types import InputPeerUser from telethon.errors.rpcerrorlist import PeerFloodError import configparser import os, sys import csv import random import time re="\033[1;31m" gr="\033[1;32m" cy="\033[1;36m" SLEEP_TIME = 30 class main(): def...
32.091837
136
0.493164
ddb4ddf34a05d501513ea1acbb936e4758e35997
959
py
Python
testPython/class6_module/python6_1_use_module.py
yang1006/PythonLearning
4f507c4dd770da93240bb7fd7d34f751b1dd039a
[ "Apache-2.0" ]
null
null
null
testPython/class6_module/python6_1_use_module.py
yang1006/PythonLearning
4f507c4dd770da93240bb7fd7d34f751b1dd039a
[ "Apache-2.0" ]
null
null
null
testPython/class6_module/python6_1_use_module.py
yang1006/PythonLearning
4f507c4dd770da93240bb7fd7d34f751b1dd039a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- ' a test module ' __author__ = 'yll' # 第4行是一个字符串,表示模块的文档注释,任何模块代码的第一个字符串都被视为模块的文档注释 # 导入sys模块后,我们就有了变量sys指向该模块,利用sys这个变量,就可以访问sys模块的所有功能。 # sys模块有一个argv变量,用list存储了命令行的所有参数。argv至少有一个元素,因为第一个参数永远是该.py文件的名称,例如: # 运行python3 python6_1_use_module.py 获得的sys.argv就是['hello.py']...
25.236842
79
0.726799
64cd4b05e42a74e392f3db1c221962a926370417
994
py
Python
pysc2/bin/map_list.py
rdacomp/pysc2
d1e7700762723e1ad55bcea4dbb5cc95bcf86e65
[ "Apache-2.0" ]
3
2018-07-04T08:29:58.000Z
2022-01-22T13:13:34.000Z
pysc2/bin/map_list.py
rdacomp/pysc2
d1e7700762723e1ad55bcea4dbb5cc95bcf86e65
[ "Apache-2.0" ]
null
null
null
pysc2/bin/map_list.py
rdacomp/pysc2
d1e7700762723e1ad55bcea4dbb5cc95bcf86e65
[ "Apache-2.0" ]
2
2020-03-09T07:10:36.000Z
2022-01-22T13:13:40.000Z
#!/usr/bin/python # Copyright 2017 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ...
28.4
74
0.740443
44c5853da58026ef74f1ae739ad07533d8ee98af
271
py
Python
firestore_odm/helpers.py
billyrrr/firestore-odm
1a63c51a13a6025d7dd05630091619644c41cba0
[ "MIT" ]
1
2021-05-01T11:58:52.000Z
2021-05-01T11:58:52.000Z
firestore_odm/helpers.py
billyrrr/firestore-odm
1a63c51a13a6025d7dd05630091619644c41cba0
[ "MIT" ]
null
null
null
firestore_odm/helpers.py
billyrrr/firestore-odm
1a63c51a13a6025d7dd05630091619644c41cba0
[ "MIT" ]
null
null
null
from collections import namedtuple RelationshipReference = namedtuple( "RelationshipReference", ['doc_ref', 'nested', 'obj'], defaults=(None, None, None,) ) EmbeddedElement = namedtuple( "EmbeddedElement", ['d', 'obj'], defaults=(None, None) )
18.066667
35
0.660517
4aca8623722b4a6f8804a76568049320da6ff77d
403
py
Python
tests/resources/serializers/ui/fields/conftest.py
tu-graz-library/invenio-records-marc21
af94dbb1101826b4fcc848a8df107247dc15ccbd
[ "MIT" ]
1
2022-03-30T11:59:46.000Z
2022-03-30T11:59:46.000Z
tests/resources/serializers/ui/fields/conftest.py
philippgualdi/invenio-records-marc21
6a4d17692649d8256ec8c9671d023e1065ce6063
[ "MIT" ]
14
2021-01-11T09:31:46.000Z
2022-03-15T21:55:55.000Z
tests/resources/serializers/ui/fields/conftest.py
philippgualdi/invenio-records-marc21
6a4d17692649d8256ec8c9671d023e1065ce6063
[ "MIT" ]
4
2021-01-07T11:13:58.000Z
2021-11-08T09:35:28.000Z
# -*- coding: utf-8 -*- # # This file is part of Invenio. # # Copyright (C) 2021 Graz University of Technology. # # Invenio-Records-Marc21 is free software; you can redistribute it and/or # modify it under the terms of the MIT License; see LICENSE file for more # details. """Pytest configuration. See https://pytest-i...
25.1875
74
0.734491
a94b36ef47335bd21971d5921daa66eb1191cc37
340
py
Python
pyramid/scaffolds/zodb/+package+/models.py
danielpronych/pyramid-doxygen
ad95a8c151c2c4e029e03aed2feda2993380f36f
[ "BSD-2-Clause" ]
null
null
null
pyramid/scaffolds/zodb/+package+/models.py
danielpronych/pyramid-doxygen
ad95a8c151c2c4e029e03aed2feda2993380f36f
[ "BSD-2-Clause" ]
null
null
null
pyramid/scaffolds/zodb/+package+/models.py
danielpronych/pyramid-doxygen
ad95a8c151c2c4e029e03aed2feda2993380f36f
[ "BSD-2-Clause" ]
null
null
null
from persistent.mapping import PersistentMapping class MyModel(PersistentMapping): __parent__ = __name__ = None def appmaker(zodb_root): if not 'app_root' in zodb_root: app_root = MyModel() zodb_root['app_root'] = app_root import transaction transaction.commit() return zo...
22.666667
48
0.694118
b8c59c77e9859f7452dc0e9064eb192403566ed3
88,065
py
Python
cinder/volume/drivers/hpe/hpe_lefthand_iscsi.py
SaumyaRackspace/cinder
08cfa44d353f84019cab529ca6f13362ba2808ea
[ "Apache-2.0" ]
1
2019-01-22T05:37:38.000Z
2019-01-22T05:37:38.000Z
cinder/volume/drivers/hpe/hpe_lefthand_iscsi.py
SaumyaRackspace/cinder
08cfa44d353f84019cab529ca6f13362ba2808ea
[ "Apache-2.0" ]
null
null
null
cinder/volume/drivers/hpe/hpe_lefthand_iscsi.py
SaumyaRackspace/cinder
08cfa44d353f84019cab529ca6f13362ba2808ea
[ "Apache-2.0" ]
null
null
null
# (c) Copyright 2014-2016 Hewlett Packard Enterprise Development LP # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/lic...
43.105727
79
0.578289
c262c96f770dcf3232bd461173b7bcba4154f807
1,344
py
Python
ooobuild/lo/io/sequence_output_stream.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/lo/io/sequence_output_stream.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/lo/io/sequence_output_stream.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # # Copyright 2022 :Barry-Thomas-Paul: Moss # # Licensed under the Apache License, Version 2.0 (the "License") # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http: // www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
33.6
139
0.758185
05806b8865fdb077a58bfb03b09bca891ab42ab8
1,312
py
Python
test/perf/test_cuda_nearest.py
Karbo123/torch_kdtree
8887531831c4ec59f0d1dfb21a360a8abe21bd62
[ "MIT" ]
20
2021-06-30T14:14:47.000Z
2022-03-31T15:00:15.000Z
test/perf/test_cuda_nearest.py
Karbo123/torch_kdtree
8887531831c4ec59f0d1dfb21a360a8abe21bd62
[ "MIT" ]
1
2021-07-14T17:16:23.000Z
2021-07-16T03:40:39.000Z
test/perf/test_cuda_nearest.py
Karbo123/torch_kdtree
8887531831c4ec59f0d1dfb21a360a8abe21bd62
[ "MIT" ]
1
2021-07-12T06:56:13.000Z
2021-07-12T06:56:13.000Z
import torch try: import torch_kdtree # if built with setuptools except: import os, sys; sys.path.append(os.path.join(os.path.dirname(__file__), "../../build")) # if built with cmake import torch_kdtree from torch_cluster import knn from time import time if __name__ == "__main__": NUM = int(2**18) ...
32
113
0.552591
30476326a4be302186ecc69943f96c43f32e0352
686
py
Python
model/LearnedPositionalEmbedding.py
Sun694/minimalist-transformer
e88cda1f5b3b47eed6a49ff673894c1dbda85727
[ "MIT" ]
5
2020-08-28T22:34:09.000Z
2020-09-30T16:18:23.000Z
model/LearnedPositionalEmbedding.py
Sun694/minimalist-transformer
e88cda1f5b3b47eed6a49ff673894c1dbda85727
[ "MIT" ]
null
null
null
model/LearnedPositionalEmbedding.py
Sun694/minimalist-transformer
e88cda1f5b3b47eed6a49ff673894c1dbda85727
[ "MIT" ]
1
2020-08-28T22:38:22.000Z
2020-08-28T22:38:22.000Z
import torch import torch.nn as nn from .utils import device class LearnedPositionalEmbedding(nn.Module): def __init__(self, d_model, max_len=512): """ Learned positional encoding function. Args: d_model: d_model of transformer max_len: the absolute maximum expecte...
28.583333
87
0.642857
e37baf9f517d566922fa679fd35a26710f4b3f19
5,142
py
Python
applications/graph/GNN/test/test_integration_GCN.py
jonesholger/lbann
3214f189a1438565d695542e076c4fa8e7332d34
[ "Apache-2.0" ]
194
2016-07-19T15:40:21.000Z
2022-03-19T08:06:10.000Z
applications/graph/GNN/test/test_integration_GCN.py
jonesholger/lbann
3214f189a1438565d695542e076c4fa8e7332d34
[ "Apache-2.0" ]
1,021
2016-07-19T12:56:31.000Z
2022-03-29T00:41:47.000Z
applications/graph/GNN/test/test_integration_GCN.py
jonesholger/lbann
3214f189a1438565d695542e076c4fa8e7332d34
[ "Apache-2.0" ]
74
2016-07-28T18:24:00.000Z
2022-01-24T19:41:04.000Z
import functools import operator import os import os.path import re import sys import pytest import lbann current_file = os.path.realpath(__file__) current_dir = os.path.dirname(current_file) root_dir = os.path.dirname(current_dir) sys.path.append(root_dir) import data.PROTEINS import Sparse_Graph_Trainer graph...
33.38961
141
0.619798
0aa49f35ad39b9de6920f94fa198c9d4db0c2ac0
240
py
Python
bigchaindb/upsert_validator/__init__.py
AbhishaB/bigchaindb
edcd59e235776755e08219ba7e72fc110ba7b001
[ "Apache-2.0" ]
474
2020-02-05T06:22:58.000Z
2022-03-29T00:02:10.000Z
packages/p2lara/src/storages/bigchaindb/upsert_validator/__init__.py
Imranashraf101/Decentralized-Internet
5c3b0e30fcc0f78f5434fdfdc1d0557fb8cf91ca
[ "MIT" ]
1,823
2019-12-18T19:36:48.000Z
2022-03-31T20:24:51.000Z
packages/p2lara/src/storages/bigchaindb/upsert_validator/__init__.py
Imranashraf101/Decentralized-Internet
5c3b0e30fcc0f78f5434fdfdc1d0557fb8cf91ca
[ "MIT" ]
174
2019-12-18T19:33:23.000Z
2022-03-24T12:40:56.000Z
# Copyright BigchainDB GmbH and BigchainDB contributors # SPDX-License-Identifier: (Apache-2.0 AND CC-BY-4.0) # Code is Apache-2.0 and docs are CC-BY-4.0 from bigchaindb.upsert_validator.validator_election import ValidatorElection # noqa
34.285714
83
0.795833
6b35ed187879e3e6438b74fe43e10c4e2bdab5fe
830
py
Python
MITx-6.00.1x/pset3/midterm/closest_power.py
Sam-Gao-Xin/Courses-
122810e56024e6e72d378317b4f98c5a9d97e5f8
[ "Apache-2.0" ]
622
2018-07-17T09:05:41.000Z
2022-03-29T02:57:02.000Z
MITx-6.00.1x/pset3/midterm/closest_power.py
thientvse/Courses-
263ff4680ed1dfd253be3652f7f13ad707af1a36
[ "Apache-2.0" ]
21
2019-11-10T02:06:09.000Z
2022-01-22T23:54:11.000Z
MITx-6.00.1x/pset3/midterm/closest_power.py
thientvse/Courses-
263ff4680ed1dfd253be3652f7f13ad707af1a36
[ "Apache-2.0" ]
906
2018-07-17T09:05:43.000Z
2022-03-31T12:55:49.000Z
# -*- coding: utf-8 -*- """ @author: salimt """ def closest_power(base, num): """ base: base of the exponential, integer > 1 num: number you want to be closest to, integer > 0 Find the integer exponent such that base**exponent is closest to num. Note that the base**exponent may be eithe...
26.774194
76
0.615663