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
79656fd22fe3133dab08791ecd2b145993820e93
3,397
py
Python
engine/sawtooth_poet_engine/main.py
raneja14/sawtooth-poet
96d5994b91805b1580f73fd5ecdbde53a3b39d09
[ "Apache-2.0" ]
14
2018-07-27T06:06:31.000Z
2021-12-03T00:30:39.000Z
engine/sawtooth_poet_engine/main.py
raneja14/sawtooth-poet
96d5994b91805b1580f73fd5ecdbde53a3b39d09
[ "Apache-2.0" ]
20
2018-07-24T00:58:10.000Z
2021-12-05T22:42:14.000Z
engine/sawtooth_poet_engine/main.py
raneja14/sawtooth-poet
96d5994b91805b1580f73fd5ecdbde53a3b39d09
[ "Apache-2.0" ]
38
2018-07-20T19:54:48.000Z
2022-03-20T07:27:46.000Z
# Copyright 2018 Intel Corporation # # 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 wri...
30.881818
80
0.666765
7965701f1015c9e83a1c7404186c3b22601d3255
8,215
py
Python
chia/cmds/configure.py
13thProgression/lucky-blockchain
ba9ecc990aa8ed630aff4ce59c2b0f127786fdb8
[ "Apache-2.0" ]
11
2021-08-14T15:46:18.000Z
2022-02-09T04:29:53.000Z
chia/cmds/configure.py
13thProgression/lucky-blockchain
ba9ecc990aa8ed630aff4ce59c2b0f127786fdb8
[ "Apache-2.0" ]
11
2021-08-22T19:48:11.000Z
2021-11-19T22:50:39.000Z
chia/cmds/configure.py
13thProgression/lucky-blockchain
ba9ecc990aa8ed630aff4ce59c2b0f127786fdb8
[ "Apache-2.0" ]
6
2021-08-19T13:27:46.000Z
2022-03-15T08:37:56.000Z
from pathlib import Path from typing import Dict import click from chia.util.config import load_config, save_config, str2bool from chia.util.default_root import DEFAULT_ROOT_PATH def configure( root_path: Path, set_farmer_peer: str, set_node_introducer: str, set_fullnode_port: str, set_log_level...
40.870647
100
0.602678
796571129dbff644365e657aa705e7ef03365a1d
3,480
py
Python
weather_models/flo2d/outflowdat/gen_old_outflow.py
CUrW-SL/DSS-Framework
43a39b322ffb0eb92dd116e77cf9a8479357a121
[ "MIT" ]
null
null
null
weather_models/flo2d/outflowdat/gen_old_outflow.py
CUrW-SL/DSS-Framework
43a39b322ffb0eb92dd116e77cf9a8479357a121
[ "MIT" ]
null
null
null
weather_models/flo2d/outflowdat/gen_old_outflow.py
CUrW-SL/DSS-Framework
43a39b322ffb0eb92dd116e77cf9a8479357a121
[ "MIT" ]
null
null
null
import json import os import sys from datetime import datetime, timedelta from curwmysqladapter import MySQLAdapter CSV_NUM_METADATA_LINES = 2 DAT_WIDTH = 12 TIDAL_FORECAST_ID = "ebcc2df39aea35de15cca81bc5f15baffd94bcebf3f169add1fd43ee1611d367" CONTROL_INTERVAL = 8 * 24 * 60 # In minutes (6 day) def get_forecast_ti...
47.671233
111
0.620977
79657170e80eaf581c15b17245617e6fe265a2f1
72,992
py
Python
datablock.py
dials/dx2
94a5e2fd048b4133241c5a528ffaf7c504f22f8b
[ "BSD-3-Clause" ]
null
null
null
datablock.py
dials/dx2
94a5e2fd048b4133241c5a528ffaf7c504f22f8b
[ "BSD-3-Clause" ]
null
null
null
datablock.py
dials/dx2
94a5e2fd048b4133241c5a528ffaf7c504f22f8b
[ "BSD-3-Clause" ]
null
null
null
import collections import errno import itertools import json import logging import math import operator import os.path import pickle from urllib.parse import urlparse import libtbx from scitbx import matrix import dxtbx.imageset import dxtbx.model from dxtbx.format.Format import Format from dxtbx.format.FormatMultiIm...
39.285253
118
0.555609
796571776723e8a37a7c5f5a3154545e267ad03d
6,842
py
Python
django/contrib/gis/geos/polygon.py
Yoann-Vie/esgi-hearthstone
115d03426c7e8e80d89883b78ac72114c29bed12
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
django/contrib/gis/geos/polygon.py
Yoann-Vie/esgi-hearthstone
115d03426c7e8e80d89883b78ac72114c29bed12
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
django/contrib/gis/geos/polygon.py
Yoann-Vie/esgi-hearthstone
115d03426c7e8e80d89883b78ac72114c29bed12
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
from ctypes import byref, c_uint from django.contrib.gis.geos import prototypes as capi from django.contrib.gis.geos.geometry import GEOSGeometry from django.contrib.gis.geos.libgeos import GEOM_PTR from django.contrib.gis.geos.linestring import LinearRing class Polygon(GEOSGeometry): _minlength = 1 ...
38.223464
107
0.592371
796571d40726245aafa7816db271f88fb6c184ae
5,521
py
Python
tests/engine/test_ports.py
azadoks/aiida-core
b806b7fef8fc79090deccfe2019b77cb922e0581
[ "MIT", "BSD-3-Clause" ]
180
2019-07-12T07:45:26.000Z
2022-03-22T13:16:57.000Z
tests/engine/test_ports.py
azadoks/aiida-core
b806b7fef8fc79090deccfe2019b77cb922e0581
[ "MIT", "BSD-3-Clause" ]
2,325
2019-07-04T13:41:44.000Z
2022-03-31T12:17:10.000Z
tests/engine/test_ports.py
azadoks/aiida-core
b806b7fef8fc79090deccfe2019b77cb922e0581
[ "MIT", "BSD-3-Clause" ]
88
2019-07-06T01:42:39.000Z
2022-03-18T14:20:09.000Z
# -*- coding: utf-8 -*- ########################################################################### # Copyright (c), The AiiDA team. All rights reserved. # # This file is part of the AiiDA code. # # ...
44.524194
118
0.642275
796571fec00c33243a521ebd83ae25f0c99587d6
573,776
py
Python
src/sage/combinat/finite_state_machine.py
sbt4104/sage
2cbd93e0b78dec701f4b7ad9271d3b1e967bcd6c
[ "BSL-1.0" ]
1
2020-03-29T18:28:05.000Z
2020-03-29T18:28:05.000Z
src/sage/combinat/finite_state_machine.py
sbt4104/sage
2cbd93e0b78dec701f4b7ad9271d3b1e967bcd6c
[ "BSL-1.0" ]
null
null
null
src/sage/combinat/finite_state_machine.py
sbt4104/sage
2cbd93e0b78dec701f4b7ad9271d3b1e967bcd6c
[ "BSL-1.0" ]
null
null
null
# -*- coding: utf-8 -*- r""" Finite State Machines, Automata, Transducers This module adds support for finite state machines, automata and transducers. For creating automata and transducers you can use classes - :class:`Automaton` and :class:`Transducer` (or the more general class :class:`FiniteStateMachine`) or ...
37.005869
208
0.516221
79657226841566325d095676f5bf1b81d9a20b30
6,001
py
Python
django_sshkey/models.py
rantecki/django-sshkey
5da8c3836163b27a853a907f7a27f84569923e9a
[ "BSD-3-Clause" ]
null
null
null
django_sshkey/models.py
rantecki/django-sshkey
5da8c3836163b27a853a907f7a27f84569923e9a
[ "BSD-3-Clause" ]
null
null
null
django_sshkey/models.py
rantecki/django-sshkey
5da8c3836163b27a853a907f7a27f84569923e9a
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2014, Clemson University # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above copyright notice, this # list of conditions an...
40.275168
80
0.674888
79657235b885f9411f7fcd29fb525a2cdc8206d8
3,133
py
Python
isi_sdk_9_0_0/isi_sdk_9_0_0/models/create_snapshot_lock_response.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
24
2018-06-22T14:13:23.000Z
2022-03-23T01:21:26.000Z
isi_sdk_9_0_0/isi_sdk_9_0_0/models/create_snapshot_lock_response.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
46
2018-04-30T13:28:22.000Z
2022-03-21T21:11:07.000Z
isi_sdk_9_0_0/isi_sdk_9_0_0/models/create_snapshot_lock_response.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
29
2018-06-19T00:14:04.000Z
2022-02-08T17:51:19.000Z
# coding: utf-8 """ Isilon SDK Isilon SDK - Language bindings for the OneFS API # noqa: E501 OpenAPI spec version: 10 Contact: sdk@isilon.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six class CreateSnapshotLockRespons...
27.008621
88
0.557293
796572b05933ca3c87e0a5a2b7c3d6c54aa3baa3
52
py
Python
tests/unit/__init__.py
tonchik-tm/yandex-checkout-payout-sdk-python
84c4ecf7eec822c82928c33cecce7860f5f1b326
[ "MIT" ]
null
null
null
tests/unit/__init__.py
tonchik-tm/yandex-checkout-payout-sdk-python
84c4ecf7eec822c82928c33cecce7860f5f1b326
[ "MIT" ]
null
null
null
tests/unit/__init__.py
tonchik-tm/yandex-checkout-payout-sdk-python
84c4ecf7eec822c82928c33cecce7860f5f1b326
[ "MIT" ]
null
null
null
"""Unit test package for yandex_checkout_payout."""
26
51
0.769231
7965757e4dc66af3d0bf889d7dd024e2ff57d831
4,344
py
Python
contrib/testgen/gen_base58_test_vectors.py
AyzeGamingFR/marscoin-1
537a60bb1713a36e75eb37b3f86fc81aebe85d39
[ "MIT" ]
41
2016-10-13T01:04:08.000Z
2022-02-15T08:21:53.000Z
contrib/testgen/gen_base58_test_vectors.py
roarmed/marscoin
0f8f05088015cb392cc1bb4223a901f8505b7eee
[ "MIT" ]
13
2018-04-13T21:11:12.000Z
2022-01-28T15:48:11.000Z
contrib/testgen/gen_base58_test_vectors.py
roarmed/marscoin
0f8f05088015cb392cc1bb4223a901f8505b7eee
[ "MIT" ]
22
2016-02-02T20:30:19.000Z
2022-01-15T16:25:34.000Z
#!/usr/bin/env python ''' Generate valid and invalid base58 address and private key test vectors. Usage: gen_base58_test_vectors.py valid 50 > ../../src/test/data/base58_keys_valid.json gen_base58_test_vectors.py invalid 50 > ../../src/test/data/base58_keys_invalid.json ''' # 2012 Wladimir J. van der Laan # R...
34.204724
97
0.607044
796576a149e0e4b7f10ee0454e9136021496afde
17,503
py
Python
hs_core/hydroshare/users.py
hydroshare/hydroshare
bf9888bbe61507aff070b1dfcec2fdec1921468d
[ "BSD-3-Clause" ]
178
2015-01-08T23:03:36.000Z
2022-03-03T13:56:45.000Z
hs_core/hydroshare/users.py
hydroshare/hydroshare
bf9888bbe61507aff070b1dfcec2fdec1921468d
[ "BSD-3-Clause" ]
4,125
2015-01-01T14:26:15.000Z
2022-03-31T16:38:55.000Z
hs_core/hydroshare/users.py
hydroshare/hydroshare
bf9888bbe61507aff070b1dfcec2fdec1921468d
[ "BSD-3-Clause" ]
53
2015-03-15T17:56:51.000Z
2022-03-17T00:32:16.000Z
import json import logging from django.core.exceptions import PermissionDenied, ObjectDoesNotExist, ValidationError from django.contrib.auth.models import User, Group from django.contrib.gis.geos import Polygon, Point from django.core.files import File from django.core.files.uploadedfile import UploadedFile from djang...
36.313278
126
0.634634
796576c22f2cad5517a32aad451cc9cd9267312f
4,586
py
Python
paicli/intereactive.py
sotetsuk/paicli
0eade63bf832cb1c7bd0652878ca65e4765487f7
[ "MIT" ]
11
2018-08-03T08:58:32.000Z
2020-07-27T10:43:20.000Z
paicli/intereactive.py
sotetsuk/paicli
0eade63bf832cb1c7bd0652878ca65e4765487f7
[ "MIT" ]
40
2018-06-20T19:43:05.000Z
2019-07-22T07:56:09.000Z
paicli/intereactive.py
sotetsuk/paicli
0eade63bf832cb1c7bd0652878ca65e4765487f7
[ "MIT" ]
2
2020-04-18T13:30:51.000Z
2022-03-22T09:20:20.000Z
"""paicli: A CLI tool for PAI (Platform for AI). Author: Sotetsu KOYAMADA """ from __future__ import unicode_literals from prompt_toolkit.application import Application from prompt_toolkit.interface import CommandLineInterface from prompt_toolkit.key_binding.manager import KeyBindingManager from prompt_toolkit...
33.474453
156
0.634976
7965773001cfd1e04e81cdacef128feddab7f323
126,123
py
Python
src/sage/rings/invariant_theory.py
fredstro/sage
c936d2cda81ec7ec3552a3bdb29c994b40d1bb24
[ "BSL-1.0" ]
2
2018-06-30T01:37:35.000Z
2018-06-30T01:37:39.000Z
src/sage/rings/invariant_theory.py
boothby/sage
1b1e6f608d1ef8ee664bb19e991efbbc68cbd51f
[ "BSL-1.0" ]
null
null
null
src/sage/rings/invariant_theory.py
boothby/sage
1b1e6f608d1ef8ee664bb19e991efbbc68cbd51f
[ "BSL-1.0" ]
null
null
null
r""" Classical Invariant Theory This module lists classical invariants and covariants of homogeneous polynomials (also called algebraic forms) under the action of the special linear group. That is, we are dealing with polynomials of degree `d` in `n` variables. The special linear group `SL(n,\CC)` acts on the variable...
37.391936
108
0.519564
796577c93ee6c608923cc0a786afedc87db312dc
3,300
py
Python
alphatwirl/collector/ToTupleListWithDatasetColumn.py
shane-breeze/AlphaTwirl
59dbd5348af31d02e133d43fd5bfaad6b99a155e
[ "BSD-3-Clause" ]
null
null
null
alphatwirl/collector/ToTupleListWithDatasetColumn.py
shane-breeze/AlphaTwirl
59dbd5348af31d02e133d43fd5bfaad6b99a155e
[ "BSD-3-Clause" ]
null
null
null
alphatwirl/collector/ToTupleListWithDatasetColumn.py
shane-breeze/AlphaTwirl
59dbd5348af31d02e133d43fd5bfaad6b99a155e
[ "BSD-3-Clause" ]
null
null
null
# Tai Sakuma <tai.sakuma@gmail.com> ##__________________________________________________________________|| class ToTupleListWithDatasetColumn(object): def __init__(self, summaryColumnNames, datasetColumnName='component' ): self.summaryColumnNames = summaryColumnNames ...
33
106
0.473636
796577e31ea93d9d7fcdaf329be45e28176cb6a3
4,333
py
Python
src/analytics/database/utils/contrail-cassandra-repair.py
biswajit-mandal/contrail-controller
80c4a7e8515f7296b18ba4c21a439bd3daefcc4a
[ "Apache-2.0" ]
3
2019-01-11T06:16:40.000Z
2021-02-24T23:48:21.000Z
src/analytics/database/utils/contrail-cassandra-repair.py
biswajit-mandal/contrail-controller
80c4a7e8515f7296b18ba4c21a439bd3daefcc4a
[ "Apache-2.0" ]
2
2018-12-04T02:20:52.000Z
2018-12-22T06:16:30.000Z
src/analytics/database/utils/contrail-cassandra-repair.py
biswajit-mandal/contrail-controller
80c4a7e8515f7296b18ba4c21a439bd3daefcc4a
[ "Apache-2.0" ]
18
2017-01-12T09:28:44.000Z
2019-04-18T20:47:42.000Z
#!/usr/bin/env python # # Copyright (c) 2015 Juniper Networks, Inc. All rights reserved. # import logging import subprocess import sys import platform import os import argparse from sandesh_common.vns.constants import RepairNeededKeyspaces def repair(options): returncode = 0 for keyspace in RepairNeededKeyspa...
37.034188
104
0.652896
796577f922fd7a3477515d7ec9b16f518ec1f0a5
1,424
py
Python
apps/base_app.py
bellachp/DashTut
3ff19d52f34aea14a5e0c332fd18878cbf04279a
[ "MIT" ]
null
null
null
apps/base_app.py
bellachp/DashTut
3ff19d52f34aea14a5e0c332fd18878cbf04279a
[ "MIT" ]
null
null
null
apps/base_app.py
bellachp/DashTut
3ff19d52f34aea14a5e0c332fd18878cbf04279a
[ "MIT" ]
null
null
null
# base_app.py # for dash tutorial import dash_core_components as dcc import dash_html_components as html from app import app from urls import url_paths colors = { 'background': '#F8FFEC', 'text': '#4F3939' } layout = html.Div(style={'backgroundColor': colors["background"]}, children=[ html.H2( ...
23.733333
89
0.455758
796578d0f876e971122d8361486f0c344df21dc8
2,555
py
Python
pipelines/config.py
Soj447/hikari
ad3a903b2ac0a69d08615636ba7376aa067eb820
[ "MIT" ]
null
null
null
pipelines/config.py
Soj447/hikari
ad3a903b2ac0a69d08615636ba7376aa067eb820
[ "MIT" ]
null
null
null
pipelines/config.py
Soj447/hikari
ad3a903b2ac0a69d08615636ba7376aa067eb820
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2020 Nekokatt # Copyright (c) 2021 davfsa # # 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 right...
25.55
96
0.669667
796579b8cb529068c4ad709dd2ec5fb5b3cd3e3c
2,465
py
Python
tests/test_multiworld.py
sseol11/ParlAI_blender_persona
b4af11a03b628de1a4c7507a0d0cc4c2b4a3aeab
[ "MIT" ]
2
2020-07-07T16:55:53.000Z
2020-09-19T09:01:13.000Z
tests/test_multiworld.py
sseol11/ParlAI_blender_persona
b4af11a03b628de1a4c7507a0d0cc4c2b4a3aeab
[ "MIT" ]
1
2021-07-05T04:43:58.000Z
2021-07-05T04:43:58.000Z
tests/test_multiworld.py
sseol11/ParlAI_blender_persona
b4af11a03b628de1a4c7507a0d0cc4c2b4a3aeab
[ "MIT" ]
2
2021-10-05T00:18:22.000Z
2021-11-08T22:16:49.000Z
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import unittest from parlai.core.agents import create_agent from parlai.core.params import ParlaiParser from parlai.core...
29.698795
79
0.612982
79657ab9de5eaae8a75bc0b681f1d0a2d7a7212a
1,595
py
Python
poem/Poem/poem/dbmodels/services.py
kevangel79/poem-2
75cda3cdd302df9c85b963bd91b7ce7182dfa220
[ "Apache-2.0" ]
null
null
null
poem/Poem/poem/dbmodels/services.py
kevangel79/poem-2
75cda3cdd302df9c85b963bd91b7ce7182dfa220
[ "Apache-2.0" ]
null
null
null
poem/Poem/poem/dbmodels/services.py
kevangel79/poem-2
75cda3cdd302df9c85b963bd91b7ce7182dfa220
[ "Apache-2.0" ]
null
null
null
from django.db import models class Service(models.Model): id = models.CharField(max_length=1024, primary_key=True) service_id = models.CharField(max_length=1024) service_name = models.CharField(max_length=128, null=True) service_category = models.CharField(max_length=1024, null=True) service_versi...
33.229167
74
0.700313
79657af6fd4be7d77a014657fc362cfc75f0785e
1,001
py
Python
setup.py
Olamyy/pyrave
741bd0f68f29b0fd075b1060d53de99d91938224
[ "RSA-MD", "MIT" ]
11
2018-02-22T06:35:49.000Z
2019-10-19T04:16:21.000Z
setup.py
Olamyy/pyrave
741bd0f68f29b0fd075b1060d53de99d91938224
[ "RSA-MD", "MIT" ]
2
2018-04-12T23:29:52.000Z
2021-03-25T21:39:31.000Z
setup.py
Olamyy/pyrave
741bd0f68f29b0fd075b1060d53de99d91938224
[ "RSA-MD", "MIT" ]
5
2018-02-22T10:59:53.000Z
2019-10-19T04:18:46.000Z
from os import path import six from pyrave import __version__, __author__, __license__ from setuptools import setup here = path.abspath(path.dirname(__file__)) if six.PY2: import io with io.open(path.join(here, 'README.rst'), encoding='utf-8') as f: long_description = f.read() elif six.PY3: with ...
30.333333
73
0.667333
79657b32b8bb5626f4849e5bb40a8f6a476a4f09
96
py
Python
venv/lib/python3.8/site-packages/poetry/core/json/__init__.py
Retraces/UkraineBot
3d5d7f8aaa58fa0cb8b98733b8808e5dfbdb8b71
[ "MIT" ]
2
2022-03-13T01:58:52.000Z
2022-03-31T06:07:54.000Z
venv/lib/python3.8/site-packages/poetry/core/json/__init__.py
DesmoSearch/Desmobot
b70b45df3485351f471080deb5c785c4bc5c4beb
[ "MIT" ]
19
2021-11-20T04:09:18.000Z
2022-03-23T15:05:55.000Z
venv/lib/python3.8/site-packages/poetry/core/json/__init__.py
DesmoSearch/Desmobot
b70b45df3485351f471080deb5c785c4bc5c4beb
[ "MIT" ]
null
null
null
/home/runner/.cache/pip/pool/cf/51/87/081859125ac61d66adfb1d357b2ec91e5949ae249cbddb8b7be2fea115
96
96
0.895833
79657bc2a9414c1bf25989c9c0722c29a74c2989
1,664
py
Python
devices/ms2109.py
Informatic/ms210x-tools
e9dd1a550ca7e20caeead50973120d199268daea
[ "MIT" ]
8
2020-08-03T20:02:22.000Z
2022-03-01T12:40:45.000Z
devices/ms2109.py
Informatic/ms210x-tools
e9dd1a550ca7e20caeead50973120d199268daea
[ "MIT" ]
null
null
null
devices/ms2109.py
Informatic/ms210x-tools
e9dd1a550ca7e20caeead50973120d199268daea
[ "MIT" ]
1
2020-10-04T21:01:16.000Z
2020-10-04T21:01:16.000Z
class Device(): def __init__(self, hidraw): self._hidraw = hidraw def status(self): # Used as test by MacroSilicon if self.read_xdata_byte(0xF800) == 0xA7: state = 'OK' else: state = 'Incorrect test byte' print('MS2109 at {}, {}'.format(self._hidr...
30.254545
95
0.557692
79657bd9525589aebe51c65056c7e1a8a5a9d1c0
2,664
py
Python
guilded/activity.py
ThomasJRyan/guilded.py
e1bb5cab839c80c851d4538111e4f1563bb15187
[ "MIT" ]
79
2020-09-19T22:48:04.000Z
2022-03-25T03:49:26.000Z
guilded/activity.py
ThomasJRyan/guilded.py
e1bb5cab839c80c851d4538111e4f1563bb15187
[ "MIT" ]
19
2020-09-07T21:54:42.000Z
2022-02-08T05:08:05.000Z
guilded/activity.py
ThomasJRyan/guilded.py
e1bb5cab839c80c851d4538111e4f1563bb15187
[ "MIT" ]
24
2020-09-05T16:28:42.000Z
2022-03-16T02:31:10.000Z
""" MIT License Copyright (c) 2020-present shay (shayypy) 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,...
43.672131
104
0.757132
79657d450db49dfced49fde7eb9f4f678cb758ab
16,780
py
Python
Pythonbot/helpers/functions.py
LEGEND-LX/PYTHONBOT.py.pkg
897b05528990acf76fbb2a05538429cd5d178733
[ "CC0-1.0" ]
2
2021-09-09T06:50:21.000Z
2021-10-01T16:59:30.000Z
Pythonbot/helpers/functions.py
LEGEND-LX/PYTHONBOT.py.pkg
897b05528990acf76fbb2a05538429cd5d178733
[ "CC0-1.0" ]
null
null
null
Pythonbot/helpers/functions.py
LEGEND-LX/PYTHONBOT.py.pkg
897b05528990acf76fbb2a05538429cd5d178733
[ "CC0-1.0" ]
null
null
null
import os try: pass except: os.system("pip install colour") import asyncio import re import time import PIL.ImageOps import requests from bs4 import BeautifulSoup from PIL import Image from telethon.errors.rpcerrorlist import YouBlockedUserError from validators.url import url MARGINS = [50, 150, 250, 350, 4...
30.453721
157
0.628605
79657d7028fc7571c7cf5ff14d7fd9a9a3ed21b1
827
py
Python
papers/CVPR2021-MOSI/configs/pretrain_mosi_hmdb51_r2d3d_r18.py
huang-ziyuan/EssentialMC2
87141df94c1ac8e426ceec071720b97f5b9d3b88
[ "MIT" ]
69
2021-11-01T11:18:13.000Z
2022-03-28T04:27:17.000Z
papers/CVPR2021-MOSI/configs/pretrain_mosi_hmdb51_r2d3d_r18.py
huang-ziyuan/EssentialMC2
87141df94c1ac8e426ceec071720b97f5b9d3b88
[ "MIT" ]
6
2021-11-01T09:28:13.000Z
2022-02-11T09:49:58.000Z
papers/CVPR2021-MOSI/configs/pretrain_mosi_hmdb51_r2d3d_r18.py
huang-ziyuan/EssentialMC2
87141df94c1ac8e426ceec071720b97f5b9d3b88
[ "MIT" ]
16
2021-11-11T06:26:18.000Z
2022-03-20T13:32:15.000Z
_base_ = ['./data/hmdb51_mosi.py', './model/r2d3d_r18.py', './solver/default_solver.py'] data = dict( train=dict( samples_per_gpu=10, dataset=dict( data_root_dir='datasets/hmdb51/videos', annotation_dir='datasets/hmdb51/annotations' ) ), eval=dict( sa...
25.060606
88
0.616687
79657d79466fdf824d05225b9755fa2bd108dcfa
5,266
py
Python
examples/ex_multi_backprojection_hand_tracking_gaming/ex_multi_backprojection_hand_tracking_gaming.py
Himanshu44626748/Design-Project
01c3121c172d0d77102bfbc91f43a9a2c7e0f484
[ "MIT" ]
null
null
null
examples/ex_multi_backprojection_hand_tracking_gaming/ex_multi_backprojection_hand_tracking_gaming.py
Himanshu44626748/Design-Project
01c3121c172d0d77102bfbc91f43a9a2c7e0f484
[ "MIT" ]
null
null
null
examples/ex_multi_backprojection_hand_tracking_gaming/ex_multi_backprojection_hand_tracking_gaming.py
Himanshu44626748/Design-Project
01c3121c172d0d77102bfbc91f43a9a2c7e0f484
[ "MIT" ]
null
null
null
#!/usr/bin/env python #The MIT License (MIT) #Copyright (c) 2016 Massimiliano Patacchiola # #THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF #MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE ...
43.883333
141
0.728826
79657de866e05fe95daa51272f95e41700809d6b
7,115
py
Python
kubernetes_asyncio/client/models/v1beta1_pod_disruption_budget_list.py
icamposrivera/kubernetes_asyncio
f028cc793e3a2c519be6a52a49fb77ff0b014c9b
[ "Apache-2.0" ]
null
null
null
kubernetes_asyncio/client/models/v1beta1_pod_disruption_budget_list.py
icamposrivera/kubernetes_asyncio
f028cc793e3a2c519be6a52a49fb77ff0b014c9b
[ "Apache-2.0" ]
null
null
null
kubernetes_asyncio/client/models/v1beta1_pod_disruption_budget_list.py
icamposrivera/kubernetes_asyncio
f028cc793e3a2c519be6a52a49fb77ff0b014c9b
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Kubernetes No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v1.19.15 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six f...
34.877451
312
0.641321
79657e214255e990c13df5b5eba3ab4022150291
1,685
py
Python
Processors/Visualizer.py
EthanGeekFan/wuhan-coronavirus-data
ad0e8cade1a102c27ea2032c4ba3a59a0d7665eb
[ "MIT" ]
null
null
null
Processors/Visualizer.py
EthanGeekFan/wuhan-coronavirus-data
ad0e8cade1a102c27ea2032c4ba3a59a0d7665eb
[ "MIT" ]
null
null
null
Processors/Visualizer.py
EthanGeekFan/wuhan-coronavirus-data
ad0e8cade1a102c27ea2032c4ba3a59a0d7665eb
[ "MIT" ]
null
null
null
from pyecharts.charts import Map, Pie from pyecharts import options as opts from pyecharts.render import make_snapshot from snapshot_selenium import snapshot import csv # def sort(target: dict): # result = {} # for i in len(target): # index = target.keys()[] # for key in target: # ...
24.779412
80
0.592285
79657ef6cbe2a8701be822e028fa40d90607beb0
4,381
py
Python
contrib/seeds/generate-seeds.py
vuicash/qtum
fbc207749ed96e64073b96bd8768356e6b16ecf6
[ "MIT" ]
null
null
null
contrib/seeds/generate-seeds.py
vuicash/qtum
fbc207749ed96e64073b96bd8768356e6b16ecf6
[ "MIT" ]
null
null
null
contrib/seeds/generate-seeds.py
vuicash/qtum
fbc207749ed96e64073b96bd8768356e6b16ecf6
[ "MIT" ]
1
2022-01-10T00:08:47.000Z
2022-01-10T00:08:47.000Z
#!/usr/bin/env python3 # Copyright (c) 2014-2017 Wladimir J. van der Laan # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. ''' Script to generate list of seed nodes for chainparams.cpp. This script expects two text files in the dir...
31.517986
99
0.583657
79657f37c2057a8a17cfc1edae89fa21a175b1b6
8,710
py
Python
test/unittests/ARMInstrs/inst-test.py
rcorcs/llvm-mctoll
1d7f74153b283fe733a1698d0b1de0c5fb7d0502
[ "Apache-2.0" ]
377
2019-05-09T00:14:56.000Z
2022-03-24T23:23:25.000Z
test/unittests/ARMInstrs/inst-test.py
rcorcs/llvm-mctoll
1d7f74153b283fe733a1698d0b1de0c5fb7d0502
[ "Apache-2.0" ]
111
2019-05-09T01:28:50.000Z
2022-03-29T02:42:32.000Z
test/unittests/ARMInstrs/inst-test.py
rcorcs/llvm-mctoll
1d7f74153b283fe733a1698d0b1de0c5fb7d0502
[ "Apache-2.0" ]
74
2019-05-09T20:41:44.000Z
2022-03-27T08:26:06.000Z
#!/usr/bin/env python import os import sys import argparse import subprocess import filecmp import difflib import shutil from distutils.spawn import find_executable test_src_harness = 'harness.c' test_dir = os.path.dirname(os.path.realpath(__file__)) test_sources = [] for file in os.listdir(test_dir): if os.path.s...
38.539823
118
0.667853
79657f3ca28920652293ad3465580f7ccf933f19
543
py
Python
lib/utils.py
LaPlataPy/btcutils
876b8aebe432101563bf4d9855be574f2219e8fd
[ "Apache-2.0" ]
3
2015-06-05T18:30:04.000Z
2015-06-05T22:48:22.000Z
lib/utils.py
LaPlataPy/btcutils
876b8aebe432101563bf4d9855be574f2219e8fd
[ "Apache-2.0" ]
null
null
null
lib/utils.py
LaPlataPy/btcutils
876b8aebe432101563bf4d9855be574f2219e8fd
[ "Apache-2.0" ]
null
null
null
def modular_inverse(a, n): """ Used for division in elliptic curves. Very important in RSA/ECDSA algorithms. It uses EGCD. Extended Euclidean Algorithm: - http://en.wikipedia.org/wiki/Extended_Euclidean_algorithm - http://en.wikibooks.org/wiki/Algorithm_Implementation/Mathematics/Exten...
31.941176
104
0.640884
79657f829d621d4b75131a8ff330746edafa9f1b
1,561
py
Python
customers/schema/mutation/product.py
dionyself/leaky
d31d8dcd4e9f8fdadd3c504140097670b7d6be4d
[ "Apache-2.0" ]
1
2020-01-22T02:56:47.000Z
2020-01-22T02:56:47.000Z
customers/schema/mutation/product.py
dionyself/leaky
d31d8dcd4e9f8fdadd3c504140097670b7d6be4d
[ "Apache-2.0" ]
null
null
null
customers/schema/mutation/product.py
dionyself/leaky
d31d8dcd4e9f8fdadd3c504140097670b7d6be4d
[ "Apache-2.0" ]
null
null
null
import graphene from customers.models import Product from graphene.types.generic import GenericScalar class CreateProduct(graphene.Mutation): class Arguments: code = graphene.Int() existence_type = graphene.String() asset_type = graphene.String() category = graphene.String() ...
25.177419
63
0.566944
79657f94914c31332af5c089c4e97e6a067c9eb1
281
py
Python
flash/image/embedding/transforms/__init__.py
Actis92/lightning-flash
49972268cfc0f95f1bd2b8fbf25036970cc44b59
[ "Apache-2.0" ]
1,457
2021-01-28T20:40:16.000Z
2022-03-31T06:22:05.000Z
flash/image/embedding/transforms/__init__.py
Actis92/lightning-flash
49972268cfc0f95f1bd2b8fbf25036970cc44b59
[ "Apache-2.0" ]
1,123
2021-01-28T20:37:56.000Z
2022-03-31T19:34:44.000Z
flash/image/embedding/transforms/__init__.py
Actis92/lightning-flash
49972268cfc0f95f1bd2b8fbf25036970cc44b59
[ "Apache-2.0" ]
170
2021-01-29T00:41:39.000Z
2022-03-29T16:09:52.000Z
from flash.core.registry import FlashRegistry # noqa: F401 from flash.image.embedding.transforms.vissl_transforms import register_vissl_transforms # noqa: F401 IMAGE_EMBEDDER_TRANSFORMS = FlashRegistry("embedder_transforms") register_vissl_transforms(IMAGE_EMBEDDER_TRANSFORMS)
46.833333
101
0.864769
79658020148962b8f3f4e27e7f5559fd1ecfa0a1
1,410
py
Python
alipay/aop/api/domain/ChildCertInfo.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/domain/ChildCertInfo.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/domain/ChildCertInfo.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.NextUrl import NextUrl class ChildCertInfo(object): def __init__(self): self._child_id = None self._url = None @property def child_id(self): ...
23.5
67
0.555319
796581403ba1331f7a9de2ee80e66ad653da3001
6,431
py
Python
src/pop3sf/SendDataToClientException.py
vitlabuda/pop3sf
3792b98da329fa8091308f3363808a499af58ad7
[ "BSD-3-Clause" ]
1
2022-03-16T18:58:19.000Z
2022-03-16T18:58:19.000Z
src/pop3sf/SendDataToClientException.py
vitlabuda/pop3sf
3792b98da329fa8091308f3363808a499af58ad7
[ "BSD-3-Clause" ]
null
null
null
src/pop3sf/SendDataToClientException.py
vitlabuda/pop3sf
3792b98da329fa8091308f3363808a499af58ad7
[ "BSD-3-Clause" ]
1
2022-03-17T18:01:43.000Z
2022-03-17T18:01:43.000Z
# SPDX-License-Identifier: BSD-3-Clause # # Copyright (c) 2021 Vít Labuda. All rights reserved. # # Redistribution and use in source and binary forms, with or without modification, are permitted provided that the # following conditions are met: # 1. Redistributions of source code must retain the above copyright notice...
56.412281
231
0.758202
7965815ad53d2100906e3e260f330a4bd1c590e2
645
py
Python
safe_grid_agents/common/agents/dummy.py
alok/safe-grid-agents
6cc12db29d2209f11144fc082b6cb8f81457c0d4
[ "Apache-2.0" ]
null
null
null
safe_grid_agents/common/agents/dummy.py
alok/safe-grid-agents
6cc12db29d2209f11144fc082b6cb8f81457c0d4
[ "Apache-2.0" ]
null
null
null
safe_grid_agents/common/agents/dummy.py
alok/safe-grid-agents
6cc12db29d2209f11144fc082b6cb8f81457c0d4
[ "Apache-2.0" ]
null
null
null
# Dummy agents from . import base import random class RandomAgent(base.BaseActor): """Random walk""" def __init__(self, env, args): self.action_n = int(env.action_spec().maximum + 1) if args.seed: random.seed(args.seed) def act(self, state): return random.randint(0, s...
24.807692
82
0.64031
796583cbe5d31b9f6aee6fce993dca1a2388bdd3
1,181
py
Python
stanCode_projects/Photoshop/shrink.py
siyuban/stanCode
5cca179a7542abdf1fe3a9e1da256945241249cc
[ "MIT" ]
null
null
null
stanCode_projects/Photoshop/shrink.py
siyuban/stanCode
5cca179a7542abdf1fe3a9e1da256945241249cc
[ "MIT" ]
null
null
null
stanCode_projects/Photoshop/shrink.py
siyuban/stanCode
5cca179a7542abdf1fe3a9e1da256945241249cc
[ "MIT" ]
null
null
null
""" File: shrink.py Name: 萬思妤 ------------------------------- Create a new "out" image half the width and height of the original. Set pixels at x=0 1 2 3 in out , from x=0 2 4 6 in original, and likewise in the y direction. """ from simpleimage import SimpleImage def shrink(filename): """ :para...
28.119048
85
0.608806
796584383cc2dc3293e66ddcd0325d4e49c70236
17,179
py
Python
sdk/python/pulumi_azure_nextgen/network/v20180801/express_route_circuit_peering.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
31
2020-09-21T09:41:01.000Z
2021-02-26T13:21:59.000Z
sdk/python/pulumi_azure_nextgen/network/v20180801/express_route_circuit_peering.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
231
2020-09-21T09:38:45.000Z
2021-03-01T11:16:03.000Z
sdk/python/pulumi_azure_nextgen/network/v20180801/express_route_circuit_peering.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
4
2020-09-29T14:14:59.000Z
2021-02-10T20:38:16.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from...
53.350932
2,999
0.690552
796584dfee71a6563f04c3b51adc761756b7881d
5,207
py
Python
tests/test_cli.py
repo-helper/pyproject-devenv
383a066f61258d9476cabc4cbd38862e79c66773
[ "MIT" ]
null
null
null
tests/test_cli.py
repo-helper/pyproject-devenv
383a066f61258d9476cabc4cbd38862e79c66773
[ "MIT" ]
2
2021-05-26T21:58:23.000Z
2022-02-04T14:38:42.000Z
tests/test_cli.py
repo-helper/pyproject-devenv
383a066f61258d9476cabc4cbd38862e79c66773
[ "MIT" ]
null
null
null
# stdlib import re import sys from typing import Dict # 3rd party import pytest from coincidence.regressions import AdvancedFileRegressionFixture from consolekit.testing import CliRunner, Result from domdf_python_tools.compat import PYPY from domdf_python_tools.paths import PathPlus, in_directory from domdf_python_too...
26.979275
84
0.710582
79658504a39c7180312253d2f021fbb053e7b637
3,865
py
Python
examples/bipedal_walk.py
BuildJet/crocoddyl
772ac6b415a9d504a3984b166131291dcf367d48
[ "BSD-3-Clause" ]
322
2019-06-04T12:04:00.000Z
2022-03-28T14:37:44.000Z
examples/bipedal_walk.py
BuildJet/crocoddyl
772ac6b415a9d504a3984b166131291dcf367d48
[ "BSD-3-Clause" ]
954
2019-09-02T10:07:27.000Z
2022-03-31T16:14:25.000Z
examples/bipedal_walk.py
proyan/crocoddyl
274274602b0e6bcfaed446fecef8a09931dbc1c0
[ "BSD-3-Clause" ]
89
2019-08-13T13:37:52.000Z
2022-03-31T15:55:07.000Z
import os import sys import numpy as np import crocoddyl import example_robot_data import pinocchio from crocoddyl.utils.biped import SimpleBipedGaitProblem, plotSolution WITHDISPLAY = 'display' in sys.argv or 'CROCODDYL_DISPLAY' in os.environ WITHPLOT = 'plot' in sys.argv or 'CROCODDYL_PLOT' in os.environ # Creati...
39.438776
106
0.605692
796586144c1fb0550befbbdb6165c1535e7016db
17,149
py
Python
library/oci_export.py
slmjy/oci-ansible-modules
4713699064f4244b4554b5b2f97b5e5443fa2d6e
[ "Apache-2.0" ]
106
2018-06-29T16:38:56.000Z
2022-02-16T16:38:56.000Z
library/oci_export.py
slmjy/oci-ansible-modules
4713699064f4244b4554b5b2f97b5e5443fa2d6e
[ "Apache-2.0" ]
122
2018-09-11T12:49:39.000Z
2021-05-01T04:54:22.000Z
library/oci_export.py
slmjy/oci-ansible-modules
4713699064f4244b4554b5b2f97b5e5443fa2d6e
[ "Apache-2.0" ]
78
2018-07-04T05:48:54.000Z
2022-03-09T06:33:12.000Z
#!/usr/bin/python # Copyright (c) 2018, 2019, Oracle and/or its affiliates. # This software is made available to you under the terms of the GPL 3.0 license or the Apache 2.0 license. # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # Apache License v2.0 # See LICENSE.TXT for ...
39.332569
141
0.619336
7965874d25237344537ef01e4ff81770e70394ad
2,114
py
Python
Bot Buff Knight Advanced/common.py
DazEB2/SimplePyScripts
1dde0a42ba93fe89609855d6db8af1c63b1ab7cc
[ "CC-BY-4.0" ]
null
null
null
Bot Buff Knight Advanced/common.py
DazEB2/SimplePyScripts
1dde0a42ba93fe89609855d6db8af1c63b1ab7cc
[ "CC-BY-4.0" ]
null
null
null
Bot Buff Knight Advanced/common.py
DazEB2/SimplePyScripts
1dde0a42ba93fe89609855d6db8af1c63b1ab7cc
[ "CC-BY-4.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- __author__ = 'ipetrash' from datetime import datetime import cv2 import numpy as np def get_logger(name, file='log.txt', encoding='utf-8', log_stdout=True, log_file=True): import logging log = logging.getLogger(name) log.setLevel(logging.DEBUG) format...
26.425
102
0.677862
7965876083b8523a7309d901187126eef87f60e3
1,001
py
Python
azure-mgmt-network/azure/mgmt/network/v2019_02_01/models/public_ip_address_sku_py3.py
xiafu-msft/azure-sdk-for-python
4d9560cfd519ee60667f3cc2f5295a58c18625db
[ "MIT" ]
1
2021-09-07T18:36:04.000Z
2021-09-07T18:36:04.000Z
azure-mgmt-network/azure/mgmt/network/v2019_02_01/models/public_ip_address_sku_py3.py
xiafu-msft/azure-sdk-for-python
4d9560cfd519ee60667f3cc2f5295a58c18625db
[ "MIT" ]
2
2019-10-02T23:37:38.000Z
2020-10-02T01:17:31.000Z
azure-mgmt-network/azure/mgmt/network/v2019_02_01/models/public_ip_address_sku_py3.py
xiafu-msft/azure-sdk-for-python
4d9560cfd519ee60667f3cc2f5295a58c18625db
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
32.290323
76
0.582418
796588f2e78dfc6c2282ecf3544069f5511196b7
646
py
Python
Lib/compositor/cmap.py
roboDocs/compositor
3ff21b80cc61fb531f93098ec2ad7c8eacd8eb4d
[ "MIT" ]
6
2019-05-05T08:12:16.000Z
2020-07-02T20:04:01.000Z
Lib/compositor/cmap.py
roboDocs/compositor
3ff21b80cc61fb531f93098ec2ad7c8eacd8eb4d
[ "MIT" ]
null
null
null
Lib/compositor/cmap.py
roboDocs/compositor
3ff21b80cc61fb531f93098ec2ad7c8eacd8eb4d
[ "MIT" ]
2
2019-07-28T22:34:59.000Z
2022-01-21T14:31:20.000Z
""" Utilities for handling the cmap table and character mapping in general. """ def extractCMAP(ttFont): for platformID, encodingID in [(3, 10), (0, 3), (3, 1)]: cmapSubtable = ttFont["cmap"].getcmap(platformID, encodingID) if cmapSubtable is not None: return cmapSubtable.cmap from ...
30.761905
84
0.642415
79658904c98d197f3161310e7eec06fd2bd09b09
6,701
py
Python
tst/trial_backend/test_local_trial_backend.py
ondrejbohdal/syne-tune
55eeca3fc414b822cad3e8f56331fd102e7264ef
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
tst/trial_backend/test_local_trial_backend.py
ondrejbohdal/syne-tune
55eeca3fc414b822cad3e8f56331fd102e7264ef
[ "ECL-2.0", "Apache-2.0" ]
1
2022-02-25T15:56:36.000Z
2022-02-25T17:53:10.000Z
tst/trial_backend/test_local_trial_backend.py
talesa/syne-tune
282156294a64a0cd260ccd908f3cf6b3e8c71003
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Copyright 2021 Amazon.com, Inc. or its affiliates. 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. # A copy of the License is located at # # http://www.apache.org/licenses/LICENSE-2.0 # # or in the "license...
40.859756
118
0.735711
796589d7a11a2e17b6793f9a676406b4830410d4
2,204
py
Python
src/hold.py
leytou/FundsTimeViewer
16f8e5e5535174926f5d003d288b73853e47a851
[ "MIT" ]
1
2020-09-15T15:44:04.000Z
2020-09-15T15:44:04.000Z
src/hold.py
leytou/FundsTimeViewer
16f8e5e5535174926f5d003d288b73853e47a851
[ "MIT" ]
null
null
null
src/hold.py
leytou/FundsTimeViewer
16f8e5e5535174926f5d003d288b73853e47a851
[ "MIT" ]
1
2021-01-11T03:48:37.000Z
2021-01-11T03:48:37.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- import openpyxl def _get_fene_list(col): temp = [(i.value) for i in col] for i, v in enumerate(temp): if v == None: temp[i] = 0 else: temp[i] = int(temp[i]) return temp def _get_chiyou_fene(l): t = l[:] minus_sum ...
24.488889
77
0.537659
79658a47e8016c738007ef548beddd674d8479fd
1,808
py
Python
ML/first_att.py
task-master98/AI_dev
da5b217e6c6d9ed9077e2bf3394f34403e91ab9f
[ "Apache-2.0" ]
null
null
null
ML/first_att.py
task-master98/AI_dev
da5b217e6c6d9ed9077e2bf3394f34403e91ab9f
[ "Apache-2.0" ]
null
null
null
ML/first_att.py
task-master98/AI_dev
da5b217e6c6d9ed9077e2bf3394f34403e91ab9f
[ "Apache-2.0" ]
null
null
null
from sklearn.datasets import * from sklearn.model_selection import train_test_split from matplotlib import pyplot as plt from sklearn.neighbors import KNeighborsClassifier import numpy as np ''' The iris dataset is loaded on to the var iris which is called Bunched. Works like a dictionary X_train, y_train are ...
32.285714
144
0.662611
79658a833f85edb8d239ff64baa33487dc85da6e
16,946
py
Python
samcli/commands/deploy/guided_context.py
HiteshMah-Jan/aws-sam-cli
5cc7680068c820e972d6165a0cccd21677e2a428
[ "BSD-2-Clause", "Apache-2.0" ]
1
2021-11-21T09:21:59.000Z
2021-11-21T09:21:59.000Z
samcli/commands/deploy/guided_context.py
HiteshMah-Jan/aws-sam-cli
5cc7680068c820e972d6165a0cccd21677e2a428
[ "BSD-2-Clause", "Apache-2.0" ]
null
null
null
samcli/commands/deploy/guided_context.py
HiteshMah-Jan/aws-sam-cli
5cc7680068c820e972d6165a0cccd21677e2a428
[ "BSD-2-Clause", "Apache-2.0" ]
null
null
null
""" Class to manage all the prompts during a guided sam deploy """ import logging from typing import Dict, Any, List import click from botocore.session import get_session from click.types import FuncParamType from click import prompt from click import confirm from samcli.commands._utils.options import _space_separat...
44.361257
118
0.662103
79658ab1c077ec50473fab0a22bb7c1582205b90
880
py
Python
devices/device_container.py
JohnvandeVrugt/toonapilib4domoticz
20ae97d4f612cc543403640207d01e0d6caeda2f
[ "MIT" ]
13
2019-02-23T21:28:19.000Z
2020-04-01T04:40:28.000Z
devices/device_container.py
JohnvandeVrugt/toonapilib4domoticz
20ae97d4f612cc543403640207d01e0d6caeda2f
[ "MIT" ]
26
2019-02-24T10:51:14.000Z
2021-06-06T20:35:29.000Z
devices/device_container.py
JohnvandeVrugt/toonapilib4domoticz
20ae97d4f612cc543403640207d01e0d6caeda2f
[ "MIT" ]
9
2019-02-24T11:02:37.000Z
2021-03-20T11:49:45.000Z
import Domoticz import toonapilib class Singleton(type): _instances = {} def __call__(cls, *args, **kwargs): if cls not in cls._instances: cls._instances[cls] = super(Singleton, cls).__call__(*args, **kwargs) return cls._instances[cls] class DeviceContainer(metaclass=Singleton):...
23.157895
81
0.620455
79658ca1a31ec80ed3587a1c60cc5ba7c4fab3f4
149
py
Python
src/main/resources/assets/openpython/opos/v1.1/lib/openos/rc.py
fossabot/OpenPython
8fe3f794f2a6c543d96c1ef5c097ffa18f90b680
[ "PSF-2.0", "Apache-2.0", "CC0-1.0", "MIT" ]
41
2018-10-25T06:15:31.000Z
2022-02-20T11:20:43.000Z
src/main/resources/assets/openpython/opos/v1.1/lib/openos/rc.py
fossabot/OpenPython
8fe3f794f2a6c543d96c1ef5c097ffa18f90b680
[ "PSF-2.0", "Apache-2.0", "CC0-1.0", "MIT" ]
16
2018-03-20T12:25:27.000Z
2018-03-25T13:34:44.000Z
src/main/resources/assets/openpython/opos/v1.1/lib/openos/rc.py
fossabot/OpenPython
8fe3f794f2a6c543d96c1ef5c097ffa18f90b680
[ "PSF-2.0", "Apache-2.0", "CC0-1.0", "MIT" ]
8
2018-11-04T02:03:15.000Z
2022-01-13T11:46:28.000Z
# https://github.com/MightyPirates/OpenComputers/blob/master-MC1.12/ # - src/main/resources/assets/opencomputers/loot/openos/lib/rc.lua loaded = {}
29.8
68
0.765101
79658d64f33482c510b3912ac2dfd11ce02be078
3,441
py
Python
src/cowrie/core/realm.py
kirys/cowrie
b81d15acf400214df4d3a0e00b67301a07111478
[ "BSD-3-Clause" ]
3
2018-12-20T09:08:26.000Z
2019-07-09T12:21:40.000Z
src/cowrie/core/realm.py
kirys/cowrie
b81d15acf400214df4d3a0e00b67301a07111478
[ "BSD-3-Clause" ]
null
null
null
src/cowrie/core/realm.py
kirys/cowrie
b81d15acf400214df4d3a0e00b67301a07111478
[ "BSD-3-Clause" ]
1
2018-12-20T08:51:30.000Z
2018-12-20T08:51:30.000Z
# Copyright (c) 2015 Michel Oosterhof <michel@oosterhof.net> # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # 1. Redistributions of source code must retain the above copyright # notice, th...
43.556962
85
0.718396
79658eb7f76b61b4e76aeb46aa1ddc5b8926be59
4,572
py
Python
generate_aliases.py
zerodayz/oselfjson
94fbfe11c886e0482da8007fb608b6db44305d97
[ "ECL-2.0", "Apache-2.0" ]
2
2020-04-28T03:27:43.000Z
2020-05-06T01:15:18.000Z
generate_aliases.py
zerodayz/oselfjson
94fbfe11c886e0482da8007fb608b6db44305d97
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
generate_aliases.py
zerodayz/oselfjson
94fbfe11c886e0482da8007fb608b6db44305d97
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required...
27.214286
74
0.526465
79658f88ac66ee18d04fb49b83fc29a6c93f2666
48,189
py
Python
dependencies/rdflib/plugins/sparql/parser.py
situx/geowebannotation
1c4f27226913ae45f8943ee5fb2cabed494f3273
[ "MIT" ]
8
2019-05-29T09:38:30.000Z
2021-01-20T03:36:59.000Z
dependencies/rdflib/plugins/sparql/parser.py
situx/geowebannotation
1c4f27226913ae45f8943ee5fb2cabed494f3273
[ "MIT" ]
12
2021-03-09T03:01:16.000Z
2022-03-11T23:59:36.000Z
dependencies/rdflib/plugins/sparql/parser.py
situx/geowebannotation
1c4f27226913ae45f8943ee5fb2cabed494f3273
[ "MIT" ]
4
2021-06-10T18:54:16.000Z
2021-10-25T00:42:22.000Z
""" SPARQL 1.1 Parser based on pyparsing """ import sys import re from pyparsing import ( Literal, Regex, Optional, OneOrMore, ZeroOrMore, Forward, ParseException, Suppress, Combine, restOfLine, Group, ParseResults, delimitedList) from pyparsing import CaselessKeyword as Keyword # watch out :) # from py...
44.495845
287
0.643632
7965903447ac09dc1acce4e273ade3f1679ae6f0
1,179
py
Python
docs/config/example-config.py
Charcoal-Apple/PyDwarf
6f2dd294509c83802e06b9ca5e084f89c9fe4bda
[ "Zlib" ]
49
2015-05-21T19:40:41.000Z
2021-09-30T03:04:32.000Z
docs/config/example-config.py
Charcoal-Apple/PyDwarf
6f2dd294509c83802e06b9ca5e084f89c9fe4bda
[ "Zlib" ]
6
2015-05-30T01:50:01.000Z
2021-09-22T14:22:41.000Z
docs/config/example-config.py
Charcoal-Apple/PyDwarf
6f2dd294509c83802e06b9ca5e084f89c9fe4bda
[ "Zlib" ]
13
2015-05-23T16:26:31.000Z
2021-09-05T18:46:36.000Z
import os import platform if platform.system() == 'Windows': dfdir = 'E:/Sophie/Desktop/Files/Games/Dwarf Fortress/Dwarf Fortress/df_40_24_win' outdir = 'E:/Sophie/Desktop/pydwarf' else: dfdir = '/Users/pineapple/Desktop/stuff/dwarfort/df_osx_40_23' outdir = '/Users/pineapple/Desktop/pydwarf' ...
26.795455
86
0.575064
796590d5ea9e4855135aa9d9a980d0ae7145f8d2
2,713
py
Python
oauth2_provider/views/application.py
sebdiem/django-oauth-toolkit
c797eb55b2a5b0a50d00a910644f86acd8779548
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
oauth2_provider/views/application.py
sebdiem/django-oauth-toolkit
c797eb55b2a5b0a50d00a910644f86acd8779548
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
oauth2_provider/views/application.py
sebdiem/django-oauth-toolkit
c797eb55b2a5b0a50d00a910644f86acd8779548
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
from django.contrib.auth.mixins import LoginRequiredMixin from django.forms.models import modelform_factory from django.urls import reverse_lazy from django.views.generic import ( CreateView, DeleteView, DetailView, ListView, UpdateView ) from ..abstract_models import get_application_model class ApplicationOwner...
31.183908
95
0.695171
796593c28c197684499bcf1804009eef97ed1a9f
14,097
py
Python
coco/web/views/containers.py
ipynbsrv/ipynbsrv
6cd99719c2a9b3814ee37d87a38adcbf30172141
[ "BSD-3-Clause" ]
null
null
null
coco/web/views/containers.py
ipynbsrv/ipynbsrv
6cd99719c2a9b3814ee37d87a38adcbf30172141
[ "BSD-3-Clause" ]
null
null
null
coco/web/views/containers.py
ipynbsrv/ipynbsrv
6cd99719c2a9b3814ee37d87a38adcbf30172141
[ "BSD-3-Clause" ]
null
null
null
from coco.core.auth.checks import login_allowed from coco.web.api_client_proxy import get_httpclient_instance from coco.web.views._messages import api_error_message from django.contrib import messages from django.contrib.auth.decorators import user_passes_test from django.shortcuts import redirect, render from slumber....
32.111617
141
0.653898
7965955d1c8d907a48e5d1ec007d0f40a36d2f6a
8,227
py
Python
ngraph/python/tests/test_ngraph/test_convolution.py
Andruxin52rus/openvino
d824e371fe7dffb90e6d3d58e4e34adecfce4606
[ "Apache-2.0" ]
1
2022-01-19T15:36:45.000Z
2022-01-19T15:36:45.000Z
ngraph/python/tests/test_ngraph/test_convolution.py
Andruxin52rus/openvino
d824e371fe7dffb90e6d3d58e4e34adecfce4606
[ "Apache-2.0" ]
22
2021-02-03T12:41:51.000Z
2022-02-21T13:04:48.000Z
ngraph/python/tests/test_ngraph/test_convolution.py
mmakridi/openvino
769bb7709597c14debdaa356dd60c5a78bdfa97e
[ "Apache-2.0" ]
1
2021-07-28T17:30:46.000Z
2021-07-28T17:30:46.000Z
# ****************************************************************************** # Copyright 2017-2021 Intel Corporation # # 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.apa...
35.309013
110
0.431871
796595bd78d6b627e2d570b82d622971c23b6a1d
8,137
py
Python
sunpy/net/dataretriever/sources/tests/test_goes_ud.py
tacaswell/sunpy
1e06d75408d1a621749a5d4e743ae44a31886100
[ "BSD-2-Clause" ]
null
null
null
sunpy/net/dataretriever/sources/tests/test_goes_ud.py
tacaswell/sunpy
1e06d75408d1a621749a5d4e743ae44a31886100
[ "BSD-2-Clause" ]
null
null
null
sunpy/net/dataretriever/sources/tests/test_goes_ud.py
tacaswell/sunpy
1e06d75408d1a621749a5d4e743ae44a31886100
[ "BSD-2-Clause" ]
null
null
null
import pytest from hypothesis import given import astropy.units as u from astropy.time import TimeDelta import sunpy.net.dataretriever.sources.goes as goes from sunpy.net import Fido from sunpy.net import attrs as a from sunpy.net._attrs import Instrument, Time from sunpy.net.dataretriever.client import QueryResponse...
37.155251
113
0.652698
796597a24a29b2ce74205a1721c23ef365a7dc53
2,862
py
Python
display.py
daniel-fink/periscope
4ff4f7dbde54df0e3b8bd81aaf9fa86cfffa7c8d
[ "MIT" ]
1
2022-01-22T09:33:32.000Z
2022-01-22T09:33:32.000Z
display.py
daniel-fink/periscope
4ff4f7dbde54df0e3b8bd81aaf9fa86cfffa7c8d
[ "MIT" ]
null
null
null
display.py
daniel-fink/periscope
4ff4f7dbde54df0e3b8bd81aaf9fa86cfffa7c8d
[ "MIT" ]
null
null
null
# Library file for functions to display various tabular and geospatial datasets # Imports: import matplotlib import shapely import cartoframes from cartoframes.viz import Map, Layer, popup_element, color_category_style import matplotlib.pyplot as plt import seaborn as sns import contextily as ctx from IPython import di...
40.309859
152
0.643955
7965981b870ab9c925bba1844647057930433666
5,622
py
Python
docassemble_base/docassemble/base/rtfng/document/paragraph.py
amsclark/docassemble
ae5c194831faabb52681a6c827ec30c106273eb7
[ "MIT" ]
1
2019-03-25T08:22:37.000Z
2019-03-25T08:22:37.000Z
docassemble_base/docassemble/base/rtfng/document/paragraph.py
amsclark/docassemble
ae5c194831faabb52681a6c827ec30c106273eb7
[ "MIT" ]
null
null
null
docassemble_base/docassemble/base/rtfng/document/paragraph.py
amsclark/docassemble
ae5c194831faabb52681a6c827ec30c106273eb7
[ "MIT" ]
null
null
null
from types import IntType, FloatType, LongType, StringType from docassemble.base.rtfng.Styles import ParagraphStyle from docassemble.base.rtfng.PropertySets import ( ParagraphPropertySet, FramePropertySet, ShadingPropertySet) class Paragraph(list): def __init__(self, *params): super(Paragraph, self).__...
33.664671
137
0.62878
796598f8e536691fd0add25276418ad3d195b3fd
4,909
py
Python
pyk/src/pyk/tests/test_subst.py
runtimeverification/k
044c49e535516c1d142206795bf1d8b2c0fcbf0d
[ "BSD-3-Clause" ]
23
2017-02-26T10:49:29.000Z
2022-03-22T20:32:10.000Z
pyk/src/pyk/tests/test_subst.py
runtimeverification/k
044c49e535516c1d142206795bf1d8b2c0fcbf0d
[ "BSD-3-Clause" ]
112
2016-01-20T16:23:47.000Z
2022-03-31T21:54:59.000Z
pyk/src/pyk/tests/test_subst.py
runtimeverification/k
044c49e535516c1d142206795bf1d8b2c0fcbf0d
[ "BSD-3-Clause" ]
6
2016-02-23T19:12:26.000Z
2022-03-31T01:53:24.000Z
from typing import Dict, Final, Tuple from unittest import TestCase from ..kast import KApply, KInner, KLabel, KVariable, Subst from ..kastManip import extract_subst from ..prelude import mlAnd, mlEquals, mlEqualsTrue, mlTop, token from .utils import a, b, c, f, g, h, x, y, z class SubstTest(TestCase): def test...
32.296053
89
0.433897
796599b59442b2f16eb0c859899828b434b58c10
1,911
py
Python
src/metrics/mask_metrics.py
imatge-upc/AI4Agriculture-grape-detection
f8fce3115dfd50e80193f82a4cbba97641ea828c
[ "MIT" ]
3
2021-06-20T22:15:59.000Z
2021-11-18T10:12:47.000Z
src/metrics/mask_metrics.py
paumarquez/AI4Agriculture-grape-detection
4adc277320f527f1bbefe4d504e3223928201f69
[ "MIT" ]
4
2021-07-12T09:01:08.000Z
2022-03-12T00:59:15.000Z
src/metrics/mask_metrics.py
paumarquez/AI4Agriculture-grape-detection
4adc277320f527f1bbefe4d504e3223928201f69
[ "MIT" ]
1
2021-07-02T09:27:13.000Z
2021-07-02T09:27:13.000Z
import numpy as np from scipy.stats import hmean from .ap import get_ap def add_mask(mask, boxes): for box in boxes: mask[box[1]:box[3], box[0]:box[2]] = 1 def get_metrics_from_masks(pred_mask, target_mask): tp = np.sum(pred_mask * target_mask) fp = np.sum(pred_mask * (1-target_mask)) ...
33.526316
95
0.660387
79659a8d87ef771d7c46b43048dbabb65db0b06e
378,410
py
Python
test/test_torch.py
ShawnZhong/pytorch-einsum-cuda
b6672b10e153b63748874ca9008fd3160f38c3dd
[ "Intel" ]
null
null
null
test/test_torch.py
ShawnZhong/pytorch-einsum-cuda
b6672b10e153b63748874ca9008fd3160f38c3dd
[ "Intel" ]
null
null
null
test/test_torch.py
ShawnZhong/pytorch-einsum-cuda
b6672b10e153b63748874ca9008fd3160f38c3dd
[ "Intel" ]
null
null
null
# -*- coding: utf-8 -*- # Owner(s): ["module: tests"] import torch import torch.utils.data import numpy as np import contextlib import gc import io import inspect import itertools import math import random import re import copy import os import tempfile import unittest import warnings import types import pickle impor...
44.083178
132
0.588338
79659cfd10a60f152b9131da45e7a4e8b6929e58
1,045
py
Python
Code/helpers.py
fmott/two_goal_task
b2a7948ced432b48566d8d00e97e83a65fba7ca5
[ "MIT" ]
null
null
null
Code/helpers.py
fmott/two_goal_task
b2a7948ced432b48566d8d00e97e83a65fba7ca5
[ "MIT" ]
null
null
null
Code/helpers.py
fmott/two_goal_task
b2a7948ced432b48566d8d00e97e83a65fba7ca5
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Collection of helper functions @author: Dimtirije Markovic """ import numpy as np import torch def offer_state_mapping(L, no, nd=2): """ Compute the state transition matrix for a given offer. L -> size of the state space along one dimension no -> num...
27.5
65
0.596172
7965a09ae295a09f4c9b40203f27a311b1d2d441
1,165
py
Python
S4-Spans and Boxes.py
mcvenkat/Python-Programs
2ff66bbd5b07c8e093b11360e1dcac06740a5024
[ "CC0-1.0", "MIT" ]
null
null
null
S4-Spans and Boxes.py
mcvenkat/Python-Programs
2ff66bbd5b07c8e093b11360e1dcac06740a5024
[ "CC0-1.0", "MIT" ]
5
2020-05-22T14:10:02.000Z
2022-03-25T19:13:05.000Z
S4-Spans and Boxes.py
mcvenkat/Python-Programs
2ff66bbd5b07c8e093b11360e1dcac06740a5024
[ "CC0-1.0", "MIT" ]
null
null
null
#Multiple/grid plots with gridplot from bokeh.plotting import figure, output_file, show from bokeh.layouts import gridplot from bokeh.models.annotations import Span, BoxAnnotation #Prepare the output file output_file("layout.html") x1, y1 = list(range(0,10)), list(range(10,20)) x2, y2 = list(range(20,30)), l...
30.657895
81
0.704721
7965a135401d35489418335d7da6a769d871475a
20,884
py
Python
fs/memoryfs.py
davidmartens/pyfilesystem2
f6a6195d10452da79b0068a7003042fa03c87ab4
[ "MIT" ]
null
null
null
fs/memoryfs.py
davidmartens/pyfilesystem2
f6a6195d10452da79b0068a7003042fa03c87ab4
[ "MIT" ]
null
null
null
fs/memoryfs.py
davidmartens/pyfilesystem2
f6a6195d10452da79b0068a7003042fa03c87ab4
[ "MIT" ]
null
null
null
"""Manage a volatile in-memory filesystem. """ from __future__ import absolute_import from __future__ import unicode_literals import contextlib import io import os import time import typing from collections import OrderedDict from threading import RLock import six from . import errors from .base import FS from .enum...
32.940063
103
0.584467
7965a4d72c019264adc689d522336639503a9994
593
py
Python
handlingExceptions/handlingExceptions.py
godinenbicicleta/IntroComputation
5f6db44262ced7797a70d20edeb3d2276596f6fd
[ "MIT" ]
null
null
null
handlingExceptions/handlingExceptions.py
godinenbicicleta/IntroComputation
5f6db44262ced7797a70d20edeb3d2276596f6fd
[ "MIT" ]
null
null
null
handlingExceptions/handlingExceptions.py
godinenbicicleta/IntroComputation
5f6db44262ced7797a70d20edeb3d2276596f6fd
[ "MIT" ]
null
null
null
#Using exceptions def sumDigits(s): """assumes s is a string and returns the sum of the decimal digits in s. For example if s is 'a2b3c' it returns 5""" suma = sum([int(c) for c in s if c in '0123456789']) return suma print(sumDigits('a2b3c')) #now using exceptions: def sumaDigits(s): """assumes ...
24.708333
68
0.625632
7965a6dd3b28b45f53f60f3c685dc8ec8dafbc73
194
py
Python
python_modules/dagster/dagster_tests/daemon_tests/integration_tests/repo.py
coderanger/dagster
d3e323f8ed55cd906d6f44f19595348ea1580b2d
[ "Apache-2.0" ]
2
2021-06-21T17:50:26.000Z
2021-06-21T19:14:23.000Z
python_modules/dagster/dagster_tests/daemon_tests/integration_tests/repo.py
mitodl/dagster
c94cd8d0f5f67722790e8a176228aa4bdcaa0068
[ "Apache-2.0" ]
null
null
null
python_modules/dagster/dagster_tests/daemon_tests/integration_tests/repo.py
mitodl/dagster
c94cd8d0f5f67722790e8a176228aa4bdcaa0068
[ "Apache-2.0" ]
1
2021-08-18T17:21:57.000Z
2021-08-18T17:21:57.000Z
from dagster import pipeline, repository, solid @solid() def foo_solid(_): pass @pipeline def foo_pipeline(): foo_solid() @repository def example_repo(): return [foo_pipeline]
11.411765
47
0.706186
7965a73a7194f963cbff66ee8f91f7b73bdf086c
340
py
Python
Python/find-the-difference-of-two-arrays.py
Priyansh2/LeetCode-Solutions
d613da1881ec2416ccbe15f20b8000e36ddf1291
[ "MIT" ]
4
2018-10-11T17:50:56.000Z
2018-10-11T21:16:44.000Z
Python/find-the-difference-of-two-arrays.py
Priyansh2/LeetCode-Solutions
d613da1881ec2416ccbe15f20b8000e36ddf1291
[ "MIT" ]
null
null
null
Python/find-the-difference-of-two-arrays.py
Priyansh2/LeetCode-Solutions
d613da1881ec2416ccbe15f20b8000e36ddf1291
[ "MIT" ]
4
2018-10-11T18:50:32.000Z
2018-10-12T00:04:09.000Z
# Time: O(n) # Space: O(n) # hash table class Solution(object): def findDifference(self, nums1, nums2): """ :type nums1: List[int] :type nums2: List[int] :rtype: List[List[int]] """ lookup = [set(nums1), set(nums2)] return [list(lookup[0]-lookup[1]), list(lo...
24.285714
69
0.541176
7965a7810aceec7d60eca0b607edff70bb4b9c90
30
py
Python
UNP_example.py
lizard1998myx/UNP
4b6c77f081863bee654d38e9e938e8e7c581593e
[ "Apache-2.0" ]
null
null
null
UNP_example.py
lizard1998myx/UNP
4b6c77f081863bee654d38e9e938e8e7c581593e
[ "Apache-2.0" ]
null
null
null
UNP_example.py
lizard1998myx/UNP
4b6c77f081863bee654d38e9e938e8e7c581593e
[ "Apache-2.0" ]
null
null
null
import UNP UNP.activate()
7.5
14
0.666667
7965a80067ea1361813c8a0cfc36fae9b11730d0
57
py
Python
pyrobolearn/models/cpg/__init__.py
Pandinosaurus/pyrobolearn
9cd7c060723fda7d2779fa255ac998c2c82b8436
[ "Apache-2.0" ]
2
2021-01-21T21:08:30.000Z
2022-03-29T16:45:49.000Z
pyrobolearn/models/cpg/__init__.py
Pandinosaurus/pyrobolearn
9cd7c060723fda7d2779fa255ac998c2c82b8436
[ "Apache-2.0" ]
null
null
null
pyrobolearn/models/cpg/__init__.py
Pandinosaurus/pyrobolearn
9cd7c060723fda7d2779fa255ac998c2c82b8436
[ "Apache-2.0" ]
1
2020-09-29T21:25:39.000Z
2020-09-29T21:25:39.000Z
# -*- coding: utf-8 -*- # import cpg from .cpg import *
11.4
23
0.561404
7965a89b8fcba19c7bb30ef38f1d2de5de505573
4,504
py
Python
pilot/eventservice/esprocess/esmessage.py
anisyonk/pilot2
f06cbf903e3f235d6fc504b54faa02006b95256d
[ "Apache-2.0" ]
null
null
null
pilot/eventservice/esprocess/esmessage.py
anisyonk/pilot2
f06cbf903e3f235d6fc504b54faa02006b95256d
[ "Apache-2.0" ]
null
null
null
pilot/eventservice/esprocess/esmessage.py
anisyonk/pilot2
f06cbf903e3f235d6fc504b54faa02006b95256d
[ "Apache-2.0" ]
null
null
null
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # # Authors: # - Wen Guan, wen.guan@cern.ch, 2017 import logging import os import threading import ...
33.864662
140
0.610568
7965a95138d23a8f2050cbeffabf2e0e289adb42
553
py
Python
scripts/setversion.py
journy-io/python-sdk
ef5a216680b754ec2ea184d03431cdc754462656
[ "MIT" ]
null
null
null
scripts/setversion.py
journy-io/python-sdk
ef5a216680b754ec2ea184d03431cdc754462656
[ "MIT" ]
2
2021-04-09T10:38:09.000Z
2021-06-29T09:43:08.000Z
scripts/setversion.py
journy-io/python-sdk
ef5a216680b754ec2ea184d03431cdc754462656
[ "MIT" ]
null
null
null
import re import sys def rename_version(filename, new_version): with open(filename, "r") as file: lines = file.readlines() lines = list( map( lambda str: re.sub( r'version="[0-9\.]*"', 'version="' + new_version + '"', str ), lines, ) ...
23.041667
75
0.555154
7965a98d4d17d123f2fc3e2180f7353fb89bea07
3,843
py
Python
ekorpkit/datasets/dataset.py
entelecheia/ekorpkit
400cb15005fdbcaa2ab0c311e338799283f28fe0
[ "CC-BY-4.0" ]
4
2022-02-26T10:54:16.000Z
2022-02-26T11:01:56.000Z
ekorpkit/datasets/dataset.py
entelecheia/ekorpkit
400cb15005fdbcaa2ab0c311e338799283f28fe0
[ "CC-BY-4.0" ]
1
2022-03-25T06:37:12.000Z
2022-03-25T06:45:53.000Z
ekorpkit/datasets/dataset.py
entelecheia/ekorpkit
400cb15005fdbcaa2ab0c311e338799283f28fe0
[ "CC-BY-4.0" ]
null
null
null
import logging from enum import Enum from pathlib import Path from pprint import pprint from re import S from ekorpkit import eKonf from ekorpkit.pipelines.pipe import apply_pipeline from ekorpkit.io.file import load_dataframe log = logging.getLogger(__name__) class _SPLITS(str, Enum): """Split keys in configs ...
32.294118
82
0.606297
7965a9d96e1a431e8cabeb90713d753164a10e4f
2,680
py
Python
mimic_wsgi.py
briandorsey/mimic
ac8740aea8488cd69cb7d61a2951e7ba54358f86
[ "Apache-2.0" ]
1
2017-10-19T10:55:00.000Z
2017-10-19T10:55:00.000Z
mimic_wsgi.py
briandorsey/mimic
ac8740aea8488cd69cb7d61a2951e7ba54358f86
[ "Apache-2.0" ]
1
2022-01-13T13:14:50.000Z
2022-01-13T13:14:50.000Z
mimic_wsgi.py
isabella232/mimic
ac8740aea8488cd69cb7d61a2951e7ba54358f86
[ "Apache-2.0" ]
2
2017-10-19T10:55:10.000Z
2022-01-13T12:00:26.000Z
# Copyright 2012 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 a...
31.162791
77
0.720522
7965aaf8b201a504a4610cf226ff3c914f54a0eb
6,149
py
Python
verificador.py
RMPiria/painelContreole
bd07def485981456a7e7390f2b18db71740ce8da
[ "Unlicense" ]
null
null
null
verificador.py
RMPiria/painelContreole
bd07def485981456a7e7390f2b18db71740ce8da
[ "Unlicense" ]
null
null
null
verificador.py
RMPiria/painelContreole
bd07def485981456a7e7390f2b18db71740ce8da
[ "Unlicense" ]
null
null
null
# Export ship loadout in E:D Shipyard plain text format import cPickle from collections import defaultdict import os from os.path import join import re import time from config import config import companion import outfitting # Map API ship names to E:D Shipyard ship names ship_map = dict(companion.ship_map) ship_ma...
38.43125
159
0.545455
7965ab0241100c5f6df7d7d5f4e657109e8dbff3
905
py
Python
sources/ArgumentHandler.py
0Nom4D/mdCreator
476fe6c4c0f2d866e573121996cb53d52552cd6d
[ "MIT" ]
4
2021-04-21T12:53:28.000Z
2021-05-12T08:47:58.000Z
sources/ArgumentHandler.py
0Nom4D/mdCreator
476fe6c4c0f2d866e573121996cb53d52552cd6d
[ "MIT" ]
13
2021-04-19T21:55:48.000Z
2022-02-05T14:26:36.000Z
sources/ArgumentHandler.py
0Nom4D/mdCreator
476fe6c4c0f2d866e573121996cb53d52552cd6d
[ "MIT" ]
2
2021-05-12T09:34:59.000Z
2021-05-17T08:14:58.000Z
#!/usr/bin/env python3 import argparse def parseArgs(args): """ Parses arguments passed to the program. Parameters ------- args : list List of arguments given as parameters Returns ------- Class built depending on the arguments. """ parser = argparse.ArgumentParser(p...
36.2
148
0.668508
7965ab0c10ee36b2f9d635c73746879140108fb7
224
py
Python
cinewise/urls.py
yashrajkakkad/movie-recommendation
8ad0690be264ccb3a4ee0c9edb1d783102f12100
[ "MIT" ]
12
2020-02-10T08:04:09.000Z
2022-03-28T15:22:58.000Z
cinewise/urls.py
yashrajkakkad/movie-recommendation
8ad0690be264ccb3a4ee0c9edb1d783102f12100
[ "MIT" ]
2
2021-06-10T19:36:46.000Z
2022-02-10T11:58:04.000Z
cinewise/urls.py
yashrajkakkad/movie-recommendation
8ad0690be264ccb3a4ee0c9edb1d783102f12100
[ "MIT" ]
5
2020-01-24T15:58:29.000Z
2021-06-25T08:54:52.000Z
from django.urls import path from . import views from .models import Node urlpatterns = [ path('', views.home, name='home'), path('autocomplete/', views.NodeAutocomplete.as_view(model=Node), name="autocomplete"), ]
24.888889
91
0.714286
7965ac211bd9f33cd6c95d7332418b2302cc7ee2
1,209
py
Python
PY/Conference/crawling/pipelines.py
sidgupta2205/SSD_PROJECT
ca35d058ca8f7a1eb5feeac57d4a5268d846c5d7
[ "MIT" ]
null
null
null
PY/Conference/crawling/pipelines.py
sidgupta2205/SSD_PROJECT
ca35d058ca8f7a1eb5feeac57d4a5268d846c5d7
[ "MIT" ]
null
null
null
PY/Conference/crawling/pipelines.py
sidgupta2205/SSD_PROJECT
ca35d058ca8f7a1eb5feeac57d4a5268d846c5d7
[ "MIT" ]
1
2021-11-28T17:11:02.000Z
2021-11-28T17:11:02.000Z
# Define your item pipelines here # # Don't forget to add your pipeline to the ITEM_PIPELINES setting # See: https://docs.scrapy.org/en/latest/topics/item-pipeline.html # useful for handling different item types with a single interface import logging import pymongo class MongoPipeline(object): collection_name ...
28.116279
66
0.662531
7965acfd43246c27a097bb36a46fdbf5ffd21a05
1,159
py
Python
ambari-server/src/main/resources/stacks/PERF/1.0/services/FAKEYARN/package/scripts/mapreduce2_client.py
likenamehaojie/Apache-Ambari-ZH
5973025bd694cdbb4b49fb4c4e0d774782811ff6
[ "Apache-2.0" ]
25
2019-12-04T03:09:55.000Z
2022-03-08T10:52:06.000Z
ambari-server/src/main/resources/stacks/PERF/1.0/services/FAKEYARN/package/scripts/mapreduce2_client.py
likenamehaojie/Apache-Ambari-ZH
5973025bd694cdbb4b49fb4c4e0d774782811ff6
[ "Apache-2.0" ]
29
2019-12-04T03:00:39.000Z
2022-03-02T06:25:44.000Z
ambari-server/src/main/resources/stacks/PERF/1.0/services/FAKEYARN/package/scripts/mapreduce2_client.py
likenamehaojie/Apache-Ambari-ZH
5973025bd694cdbb4b49fb4c4e0d774782811ff6
[ "Apache-2.0" ]
33
2019-12-04T02:51:30.000Z
2022-03-24T02:47:38.000Z
""" Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this ...
29.717949
72
0.77912
7965ad3174192483c95ff66eb52f6c1c7df7444c
735
py
Python
leetcode/construct-binary-tree-from-inorder-and-postorder-traversal/main.py
joaojunior/hackerrank
a5ee0449e791535930b8659dfb7dddcf9e1237de
[ "MIT" ]
null
null
null
leetcode/construct-binary-tree-from-inorder-and-postorder-traversal/main.py
joaojunior/hackerrank
a5ee0449e791535930b8659dfb7dddcf9e1237de
[ "MIT" ]
null
null
null
leetcode/construct-binary-tree-from-inorder-and-postorder-traversal/main.py
joaojunior/hackerrank
a5ee0449e791535930b8659dfb7dddcf9e1237de
[ "MIT" ]
1
2019-06-19T00:51:02.000Z
2019-06-19T00:51:02.000Z
from typing import List class TreeNode: def __init__(self, x): self.val = x self.left = None self.right = None class Solution: def build_tree(self, inorder: List[int], postorder: List[int]) -> TreeNode: root = None if postorder: val = postorder.pop() ...
29.4
79
0.556463
7965ae8ba91c565c349613cc18324c9c0146eaed
2,028
py
Python
GEN_SIM/Configuration/GenProduction/python/ThirteenTeV/HVDS/HVDS_MZP500_MDP20_Ctau1000mm_Pythia8_13TeV_cff.py
jwill24/Timing
99c5712eae960646e02bbb796e91b584a9a96132
[ "MIT" ]
2
2017-10-19T12:28:53.000Z
2019-05-22T14:36:05.000Z
GEN_SIM/Configuration/GenProduction/python/ThirteenTeV/HVDS/HVDS_MZP500_MDP20_Ctau1000mm_Pythia8_13TeV_cff.py
jwill24/Timing
99c5712eae960646e02bbb796e91b584a9a96132
[ "MIT" ]
null
null
null
GEN_SIM/Configuration/GenProduction/python/ThirteenTeV/HVDS/HVDS_MZP500_MDP20_Ctau1000mm_Pythia8_13TeV_cff.py
jwill24/Timing
99c5712eae960646e02bbb796e91b584a9a96132
[ "MIT" ]
6
2017-09-13T13:16:10.000Z
2019-01-28T17:39:51.000Z
import FWCore.ParameterSet.Config as cms from Configuration.Generator.Pythia8CommonSettings_cfi import * from Configuration.Generator.Pythia8CUEP8M1Settings_cfi import * generator = cms.EDFilter("Pythia8GeneratorFilter", comEnergy = cms.double(13000.0), pythiaHepMCVerbosity = cms.untracked.bool(False), pythiaPylis...
44.086957
93
0.513807
7965aedaf24f424227bb40ca5ec26ce39f5eddce
18,701
py
Python
page_intro.py
nt409/covid-19
228f54d995904822864caabf04b11493cadfb645
[ "MIT" ]
null
null
null
page_intro.py
nt409/covid-19
228f54d995904822864caabf04b11493cadfb645
[ "MIT" ]
1
2021-03-29T15:43:56.000Z
2021-03-29T15:43:56.000Z
page_intro.py
nt409/covid-19
228f54d995904822864caabf04b11493cadfb645
[ "MIT" ]
1
2020-04-13T13:07:07.000Z
2020-04-13T13:07:07.000Z
import dash_core_components as dcc import dash_bootstrap_components as dbc import dash_html_components as html from parameters_cov import age_risk_df_out ######################################################################################################################## layout_model = html.Div([ html.H3('Mod...
50.543243
670
0.658361
7965af1b27231d886a96b0a947eb1614cf63b2fc
803
py
Python
libs/network/factory.py
iyyun/Part-CNN
062bfab152a8f34718b4739e4eb9b688076a6107
[ "MIT" ]
6
2019-03-28T12:42:33.000Z
2021-06-25T18:04:56.000Z
libs/network/factory.py
iyyun/Part-CNN
062bfab152a8f34718b4739e4eb9b688076a6107
[ "MIT" ]
null
null
null
libs/network/factory.py
iyyun/Part-CNN
062bfab152a8f34718b4739e4eb9b688076a6107
[ "MIT" ]
1
2019-05-01T12:04:51.000Z
2019-05-01T12:04:51.000Z
''' tensorflow version r1.4 created by Inyong yun, 2018.05.26 Copyright (c) 2018 DSPL Sungkyunkwan Univ ''' import network.train_iy_det_net import network.test_iy_det_net import network.train_iy_cls_net def get_network(mode, method): if mode == 'train': if method == 'det': print ('det netw...
25.903226
64
0.607721
7965af249affce6823cf2858cdc696e1cfd53f9a
1,611
py
Python
ctapipe/reco/tests/test_energy_regressor.py
mpecimotika/ctapipe
ffd7930921f7139b761fbf1208da16dd302e97a6
[ "BSD-3-Clause" ]
null
null
null
ctapipe/reco/tests/test_energy_regressor.py
mpecimotika/ctapipe
ffd7930921f7139b761fbf1208da16dd302e97a6
[ "BSD-3-Clause" ]
null
null
null
ctapipe/reco/tests/test_energy_regressor.py
mpecimotika/ctapipe
ffd7930921f7139b761fbf1208da16dd302e97a6
[ "BSD-3-Clause" ]
null
null
null
from tempfile import TemporaryDirectory import numpy as np from numpy.testing import assert_allclose from astropy import units as u from ctapipe.reco.energy_regressor import * def test_prepare_model(): cam_id_list = ["FlashCam", "ASTRICam"] feature_list = {"FlashCam": [[1, 10], [2, 20], [3, 30], [0.9, 9], ...
34.276596
69
0.53383
7965afd9ef51c43816adc48e27f8bbd52e01b202
885
py
Python
Apache Spark with Python - Big Data with PySpark and Spark/6-PairRDD/sort/SortedWordCountSolution.py
jrderek/Big_Data_Engineering_Portfolio
bf7a5efb24f2c6e860e5ead544dadc08f791814e
[ "MIT" ]
null
null
null
Apache Spark with Python - Big Data with PySpark and Spark/6-PairRDD/sort/SortedWordCountSolution.py
jrderek/Big_Data_Engineering_Portfolio
bf7a5efb24f2c6e860e5ead544dadc08f791814e
[ "MIT" ]
null
null
null
Apache Spark with Python - Big Data with PySpark and Spark/6-PairRDD/sort/SortedWordCountSolution.py
jrderek/Big_Data_Engineering_Portfolio
bf7a5efb24f2c6e860e5ead544dadc08f791814e
[ "MIT" ]
null
null
null
from pyspark import SparkContext, SparkConf if __name__ == "__main__": ''' Create a Spark program to read the an article from in/word_count.text, output the number of occurrence of each word in descending order. Sample output: apple : 200 shoes : 193 bag : 176 ... '...
29.5
75
0.642938
7965b0f242db89af0c41b6a9d03eb557fff22d15
104
py
Python
sample/templates/template3.py
austinv11/Markdownload
c6dae77cd5691857052d98f5dfaf91b964c880c2
[ "Apache-2.0" ]
null
null
null
sample/templates/template3.py
austinv11/Markdownload
c6dae77cd5691857052d98f5dfaf91b964c880c2
[ "Apache-2.0" ]
null
null
null
sample/templates/template3.py
austinv11/Markdownload
c6dae77cd5691857052d98f5dfaf91b964c880c2
[ "Apache-2.0" ]
null
null
null
# %STARTSNIPPET% def main(): print("Hello!") # %ENDSNIPPET% if __name__ == '__main__': main()
11.555556
26
0.586538
7965b21d0492c10d583aee6dad861057b68d827b
592
py
Python
tests/test_existential.py
mattclifford1/ComputationalLogic
a26f4dbe358a6dc43a189c8bbe496ce7b2c6773d
[ "BSD-3-Clause" ]
null
null
null
tests/test_existential.py
mattclifford1/ComputationalLogic
a26f4dbe358a6dc43a189c8bbe496ce7b2c6773d
[ "BSD-3-Clause" ]
null
null
null
tests/test_existential.py
mattclifford1/ComputationalLogic
a26f4dbe358a6dc43a189c8bbe496ce7b2c6773d
[ "BSD-3-Clause" ]
null
null
null
from pyswip import Prolog import prolexa.meta_grammar as meta import nltk nltk.download('omw-1.4') # init pl = Prolog() meta.reset_grammar() meta.initialise_prolexa(pl) def ask(input): return meta.standardised_query(pl, input)[0]['Output'] def test_add_rule(): ans = ask('some humans are teachers') ans = ...
24.666667
58
0.699324
7965b362b9c55aa7d09711b2639fef789dfbf454
7,563
py
Python
python/paddle/nn/functional/__init__.py
wwqgtxx/Paddle
109ca9d250e37e723e364366e8402c307b110169
[ "Apache-2.0" ]
2
2021-08-13T08:18:20.000Z
2021-08-13T08:31:09.000Z
python/paddle/nn/functional/__init__.py
wwqgtxx/Paddle
109ca9d250e37e723e364366e8402c307b110169
[ "Apache-2.0" ]
1
2021-10-08T05:48:04.000Z
2021-10-08T05:48:04.000Z
python/paddle/nn/functional/__init__.py
wwqgtxx/Paddle
109ca9d250e37e723e364366e8402c307b110169
[ "Apache-2.0" ]
1
2021-10-11T01:44:40.000Z
2021-10-11T01:44:40.000Z
# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by app...
35.843602
74
0.651726
7965b3bfefbb6fcd4200b27ad9e482e044d5b573
2,372
py
Python
Blender/src/babylon_js/materials/nodes/principled.py
Acidburn0zzz/Exporters
59013800c158ea98ab48263bc3e04ea8f9dceb5b
[ "Apache-2.0" ]
1
2019-03-27T08:00:36.000Z
2019-03-27T08:00:36.000Z
Blender/src/babylon_js/materials/nodes/principled.py
Acidburn0zzz/Exporters
59013800c158ea98ab48263bc3e04ea8f9dceb5b
[ "Apache-2.0" ]
null
null
null
Blender/src/babylon_js/materials/nodes/principled.py
Acidburn0zzz/Exporters
59013800c158ea98ab48263bc3e04ea8f9dceb5b
[ "Apache-2.0" ]
null
null
null
from .abstract import * from mathutils import Color #=============================================================================== class PrincipledBJSNode(AbstractBJSNode): bpyType = 'ShaderNodeBsdfPrincipled' def __init__(self, bpyNode, socketName): super().__init__(bpyNode, socketName) i...
48.408163
97
0.557336
7965b404160080d7e08c43910c126ab767dd32ca
594
py
Python
tools/job-print.py
JRPan/gltracesim
79708f503047922538ca2983392c0e9f99a4345a
[ "BSD-3-Clause" ]
11
2018-06-12T01:38:52.000Z
2021-05-21T19:53:27.000Z
tools/job-print.py
JRPan/gltracesim
79708f503047922538ca2983392c0e9f99a4345a
[ "BSD-3-Clause" ]
null
null
null
tools/job-print.py
JRPan/gltracesim
79708f503047922538ca2983392c0e9f99a4345a
[ "BSD-3-Clause" ]
3
2019-03-31T15:00:50.000Z
2021-12-07T22:05:03.000Z
#!/usr/bin/env python import sys, io import packet_pb2 as packet import job_pb2 as job import stream # Example from https://developers.google.com/protocol-buffers/docs/pythontutorial if len(sys.argv) != 2: print "Usage:", sys.argv[0], "jobs.pb.gz" sys.exit(-1) # Open the file and discard the header istream =...
19.8
81
0.698653
7965b4e3216b1ce8aa902b472063ab367571ad53
1,074
py
Python
dpaypybase/signedtransactions.py
dpays/dpay-python-lib
68473bdd1b6f29556cfee7a417e8d853bd48d4c7
[ "MIT" ]
null
null
null
dpaypybase/signedtransactions.py
dpays/dpay-python-lib
68473bdd1b6f29556cfee7a417e8d853bd48d4c7
[ "MIT" ]
null
null
null
dpaypybase/signedtransactions.py
dpays/dpay-python-lib
68473bdd1b6f29556cfee7a417e8d853bd48d4c7
[ "MIT" ]
null
null
null
from graphenebase.signedtransactions import Signed_Transaction as GrapheneSigned_Transaction from .operations import Operation from .chains import known_chains import logging log = logging.getLogger(__name__) class Signed_Transaction(GrapheneSigned_Transaction): """ Create a signed transaction and offer method to...
34.645161
92
0.721601
7965b582987fc7df044fe91f6c8ca5bdf7d2e200
1,416
py
Python
magnum/drivers/swarm_fedora_atomic_v2/driver.py
ajmadsen/magnum
042d2ad14489afcecf0a3bc4038e2333e2acb3fb
[ "Apache-2.0" ]
319
2015-04-01T01:36:14.000Z
2022-01-18T13:21:46.000Z
magnum/drivers/swarm_fedora_atomic_v2/driver.py
ajmadsen/magnum
042d2ad14489afcecf0a3bc4038e2333e2acb3fb
[ "Apache-2.0" ]
10
2015-06-05T20:12:46.000Z
2018-10-17T09:14:22.000Z
magnum/drivers/swarm_fedora_atomic_v2/driver.py
ajmadsen/magnum
042d2ad14489afcecf0a3bc4038e2333e2acb3fb
[ "Apache-2.0" ]
254
2015-03-30T13:56:06.000Z
2022-03-26T03:40:22.000Z
# Copyright 2016 Rackspace 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 ...
35.4
75
0.706215
7965b5fbe8eeeec5c1828d40e45fba579332d62e
2,687
py
Python
example_scenes.py
KasperZutterman/manim
a8fba5d098136064eb6f343683e7450dd844088e
[ "MIT" ]
null
null
null
example_scenes.py
KasperZutterman/manim
a8fba5d098136064eb6f343683e7450dd844088e
[ "MIT" ]
null
null
null
example_scenes.py
KasperZutterman/manim
a8fba5d098136064eb6f343683e7450dd844088e
[ "MIT" ]
null
null
null
#!/usr/bin/env python from big_ol_pile_of_manim_imports import * # To watch one of these scenes, run the following: # python extract_scene.py file_name <SceneName> -p # # Use the flat -l for a faster rendering at a lower # quality, use -s to skip to the end and just show # the final frame, and use -n <number> to skip...
27.701031
74
0.605508
7965b775e1e1ac660978de1e3d44b68867c604f1
1,107
py
Python
project/main.py
VireshDoshi/new-fastapi-celery
06075c63922011f49e1c27873e74fc07a8eb7761
[ "MIT" ]
null
null
null
project/main.py
VireshDoshi/new-fastapi-celery
06075c63922011f49e1c27873e74fc07a8eb7761
[ "MIT" ]
null
null
null
project/main.py
VireshDoshi/new-fastapi-celery
06075c63922011f49e1c27873e74fc07a8eb7761
[ "MIT" ]
null
null
null
from fastapi import Body, FastAPI, Form, Request from fastapi.responses import JSONResponse from fastapi.staticfiles import StaticFiles from fastapi.templating import Jinja2Templates from worker import create_task_q2 from worker import create_task from celery.result import AsyncResult app = FastAPI() app.mount("/stati...
27
80
0.71364
7965b9734476c62778a23e424b4f9a9da232807a
1,662
py
Python
findAi_equals_i_array.py
p10rahulm/python-basics
d8f6172d42c465382d672a6813dccfbe6dff45a7
[ "MIT" ]
null
null
null
findAi_equals_i_array.py
p10rahulm/python-basics
d8f6172d42c465382d672a6813dccfbe6dff45a7
[ "MIT" ]
null
null
null
findAi_equals_i_array.py
p10rahulm/python-basics
d8f6172d42c465382d672a6813dccfbe6dff45a7
[ "MIT" ]
null
null
null
#STRICTLY INCREASING def find_ai_equals_i(listA,indexstart): # You are given a sorted (from smallest to largest) array A of n distinct integers which # can be positive, negative, or zero. You want to decide whether or not there is an index i # such that A[i] = i. Design the fastest algorithm that you can f...
37.772727
95
0.54994
7965bb5660f9cbc0119cced8ec8c330de86de9ca
4,417
py
Python
app_vk_parser/page_parser.py
RemoteRacoon/behemoth
e5567d39d3738b4622e1f3f06bf9a1ccb7238f72
[ "MIT" ]
null
null
null
app_vk_parser/page_parser.py
RemoteRacoon/behemoth
e5567d39d3738b4622e1f3f06bf9a1ccb7238f72
[ "MIT" ]
null
null
null
app_vk_parser/page_parser.py
RemoteRacoon/behemoth
e5567d39d3738b4622e1f3f06bf9a1ccb7238f72
[ "MIT" ]
null
null
null
import requests import time import json from datetime import date, datetime import re accessToken = '' api_url = 'https://api.vk.com/method/' NUM_OF_USERS = 50 app_params = { 'access_token' : accessToken, 'v' : '5.131' } def process_raw_str(string): return re.sub(r'[\W]', ' ', string).lower() ''' Сначала...
24.269231
87
0.558524
7965bc89fa33af5000f4e10339e05369876ec9b4
320
py
Python
Assignments/Encapsulation/Exercise/wild_cat_zoo/project/tiger.py
KaloyankerR/python-oop-repository
7cd565b0b173c4a02e7b2dc22bfeb7808d294f89
[ "MIT" ]
null
null
null
Assignments/Encapsulation/Exercise/wild_cat_zoo/project/tiger.py
KaloyankerR/python-oop-repository
7cd565b0b173c4a02e7b2dc22bfeb7808d294f89
[ "MIT" ]
null
null
null
Assignments/Encapsulation/Exercise/wild_cat_zoo/project/tiger.py
KaloyankerR/python-oop-repository
7cd565b0b173c4a02e7b2dc22bfeb7808d294f89
[ "MIT" ]
null
null
null
class Tiger: animal_type = 'Tiger' def __init__(self, name: str, gender: str, age: int): self.name = name self.gender = gender self.age = age def get_needs(self): return 45 def __repr__(self): return f"Name: {self.name}, Age: {self.age}, Gender: {self.gender}"
22.857143
75
0.578125
7965bce646e32d5dfd21fc48407a88409c174d54
1,115
py
Python
owtf/plugins/web/active/Old_Backup_and_Unreferenced_Files@OWTF-CM-006.py
Udbhavbisarya23/owtf
27623937677caf975569f8de8af7983ca57611bc
[ "BSD-3-Clause" ]
1,514
2015-01-15T18:42:58.000Z
2022-03-25T08:14:40.000Z
owtf/plugins/web/active/Old_Backup_and_Unreferenced_Files@OWTF-CM-006.py
justdvnsh/owtf
3a543b4eb2a7ad67155eb96dd2d99efbc181498d
[ "BSD-3-Clause" ]
652
2015-01-09T18:27:37.000Z
2022-03-21T18:41:01.000Z
owtf/plugins/web/active/Old_Backup_and_Unreferenced_Files@OWTF-CM-006.py
justdvnsh/owtf
3a543b4eb2a7ad67155eb96dd2d99efbc181498d
[ "BSD-3-Clause" ]
506
2015-01-02T09:28:47.000Z
2022-03-10T23:27:27.000Z
""" ACTIVE Plugin for Old, Backup and Unreferenced Files (OWASP-CM-006) https://www.owasp.org/index.php/Testing_for_Old,_Backup_and_Unreferenced_Files_(OWASP-CM-006) """ from owtf.managers.resource import get_resources from owtf.plugin.helper import plugin_helper from owtf.settings import INTERACTIVE DESCRIPTION = "Ac...
37.166667
93
0.742601