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
4a1e7379875462f4fe145fc08dd78a3679b1531f
1,613
py
Python
examples/concertbot/actions.py
n01deas/rasa
79f0feeb02919142eb06b8c52da5632f1c25c251
[ "Apache-2.0" ]
5
2019-06-06T08:59:15.000Z
2020-01-19T10:56:45.000Z
examples/concertbot/actions.py
RakibulAsheeque/rasa
7d3804cd081c73d78ab5e973f95a55845eed1e89
[ "Apache-2.0" ]
21
2019-12-16T17:37:54.000Z
2020-07-06T06:19:04.000Z
examples/concertbot/actions.py
RakibulAsheeque/rasa
7d3804cd081c73d78ab5e973f95a55845eed1e89
[ "Apache-2.0" ]
4
2019-05-19T21:19:32.000Z
2021-01-06T14:26:37.000Z
from rasa_sdk import Action from rasa_sdk.events import SlotSet class ActionSearchConcerts(Action): def name(self): return "action_search_concerts" def run(self, dispatcher, tracker, domain): concerts = [ {"artist": "Foo Fighters", "reviews": 4.5}, {"artist": "Katy Per...
31.019231
76
0.624303
4a1e73a18bf1a8348840ce2fc4a605d83c9d9b46
10,345
py
Python
5-pendulum/1-ddpg/ddpg_demo.py
buyizhiyou/reinforcement-learning
71d0fad7866ba7394eed9f7a5df7c1f1b8376398
[ "MIT" ]
6
2019-02-22T13:06:25.000Z
2022-02-20T14:01:37.000Z
5-pendulum/1-ddpg/ddpg_demo.py
buyizhiyou/reinforcement-learning
71d0fad7866ba7394eed9f7a5df7c1f1b8376398
[ "MIT" ]
10
2020-09-25T23:01:24.000Z
2022-03-11T23:32:19.000Z
5-pendulum/1-ddpg/ddpg_demo.py
buyizhiyou/reinforcement-learning
71d0fad7866ba7394eed9f7a5df7c1f1b8376398
[ "MIT" ]
2
2019-02-22T13:06:27.000Z
2020-10-30T06:38:27.000Z
""" Deep Deterministic Policy Gradient (DDPG), Reinforcement Learning. DDPG is Actor Critic based algorithm. Pendulum example. View more on my tutorial page: https://morvanzhou.github.io/tutorials/ Using: tensorflow 1.0 gym 0.8.0 """ import tensorflow as tf import numpy as np import gym import time np.random.seed(...
38.033088
132
0.604543
4a1e74ff8af00d27c275d21625778857a1dc71da
749
py
Python
app/device.py
zmops/zeus-modbus
3de989f2233e994876cf2a98ac46d9213e53ff3c
[ "Apache-2.0" ]
3
2022-01-26T04:27:49.000Z
2022-03-04T14:02:41.000Z
app/device.py
zmops/zeus-modbus
3de989f2233e994876cf2a98ac46d9213e53ff3c
[ "Apache-2.0" ]
null
null
null
app/device.py
zmops/zeus-modbus
3de989f2233e994876cf2a98ac46d9213e53ff3c
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # 配置设置 # 作者: 三石 # 时间: 2021-12-10 from pydantic import BaseSettings class DeviceSettings(BaseSettings): plc366: dict = { "id": "plc366", "model": "napro_300", "ipaddress": "172.16.3.66", "port": 502, "slave": 1, } hf318: dict = { "...
17.833333
56
0.473965
4a1e766f0dfa21a0112c3ad33b0595f0fce9fa0f
5,023
py
Python
source/speechViewer.py
ishandutta2007/nvda
d473de81aa23cc8af4785e5aa64731d6f6e9936a
[ "bzip2-1.0.6" ]
3
2020-08-15T12:55:00.000Z
2021-02-02T22:35:54.000Z
source/speechViewer.py
ishandutta2007/nvda
d473de81aa23cc8af4785e5aa64731d6f6e9936a
[ "bzip2-1.0.6" ]
null
null
null
source/speechViewer.py
ishandutta2007/nvda
d473de81aa23cc8af4785e5aa64731d6f6e9936a
[ "bzip2-1.0.6" ]
2
2019-07-13T23:09:46.000Z
2019-10-16T20:56:26.000Z
#speechViewer.py #A part of NonVisual Desktop Access (NVDA) #Copyright (C) 2006-2018 NV Access Limited #This file is covered by the GNU General Public License. #See the file COPYING for more details. import wx import gui import config from logHandler import log from speech import SpeechSequence class Sp...
38.638462
179
0.747561
4a1e773aa467b80b706a9a42d30475b4131c7833
11,351
py
Python
snippets/PV_Composite_Writer.py
banesullivan/PVGeophysics
1ce6311c4e5b195a4a31e3e0b1eb968f44aa34d2
[ "BSD-3-Clause" ]
1
2017-08-17T17:38:46.000Z
2017-08-17T17:38:46.000Z
snippets/PV_Composite_Writer.py
banesullivan/PVGeophysics
1ce6311c4e5b195a4a31e3e0b1eb968f44aa34d2
[ "BSD-3-Clause" ]
null
null
null
snippets/PV_Composite_Writer.py
banesullivan/PVGeophysics
1ce6311c4e5b195a4a31e3e0b1eb968f44aa34d2
[ "BSD-3-Clause" ]
1
2018-06-06T05:56:17.000Z
2018-06-06T05:56:17.000Z
"""This file can be loaded as a plugin for ParaView >= 5.6 Author: Bane Sullivan <banesulli@gmail.com> """ import numpy as np # This is module to import. It provides VTKPythonAlgorithmBase, the base class # for all python-based vtkAlgorithm subclasses in VTK and decorators used to # 'register' the algorithm with Par...
38.477966
118
0.629989
4a1e778bd6e8b8ebc3004e5554370788fb8641ea
156
py
Python
hail/python/cluster-tests/test-skat.py
3vivekb/hail
82c9e0f3ec2154335f91f2219b84c0fb5dbac526
[ "MIT" ]
789
2016-09-05T04:14:25.000Z
2022-03-30T09:51:54.000Z
hail/python/cluster-tests/test-skat.py
3vivekb/hail
82c9e0f3ec2154335f91f2219b84c0fb5dbac526
[ "MIT" ]
5,724
2016-08-29T18:58:40.000Z
2022-03-31T23:49:42.000Z
hail/python/cluster-tests/test-skat.py
3vivekb/hail
82c9e0f3ec2154335f91f2219b84c0fb5dbac526
[ "MIT" ]
233
2016-08-31T20:42:38.000Z
2022-02-17T16:42:39.000Z
import hail as hl mt = hl.balding_nichols_model(3, 100, 100) t = hl.skat(mt.locus, mt.ancestral_af, mt.pop, mt.GT.n_alt_alleles(), covariates=[1]) t.show()
31.2
85
0.717949
4a1e77a8a4ca4d5c29a127494b67146194405b09
1,212
py
Python
app/core/config.py
schmiedeone/audit-app-backend
3416bdefa4c794247545526aff4501bd358f618e
[ "MIT" ]
null
null
null
app/core/config.py
schmiedeone/audit-app-backend
3416bdefa4c794247545526aff4501bd358f618e
[ "MIT" ]
null
null
null
app/core/config.py
schmiedeone/audit-app-backend
3416bdefa4c794247545526aff4501bd358f618e
[ "MIT" ]
null
null
null
import os from dotenv import load_dotenv from starlette.datastructures import CommaSeparatedStrings, Secret from databases import DatabaseURL API_V1_STR = "/api" JWT_TOKEN_PREFIX = "Token" ACCESS_TOKEN_EXPIRE_MINUTES = 60 * 24 * 7 # one week load_dotenv(".env") DATABASE_URL = os.getenv("DATABASE_URL", "") # depl...
35.647059
103
0.75495
4a1e784ba936094650adbbba214a5d0444162469
20,154
py
Python
tests/test_schema_proxy.py
felixonmars/elementpath
62584c7335a8188ebc7eecdcbf0cee52daebe301
[ "MIT" ]
null
null
null
tests/test_schema_proxy.py
felixonmars/elementpath
62584c7335a8188ebc7eecdcbf0cee52daebe301
[ "MIT" ]
null
null
null
tests/test_schema_proxy.py
felixonmars/elementpath
62584c7335a8188ebc7eecdcbf0cee52daebe301
[ "MIT" ]
null
null
null
#!/usr/bin/env python # # Copyright (c), 2018-2020, SISSA (International School for Advanced Studies). # All rights reserved. # This file is distributed under the terms of the MIT License. # See the file 'LICENSE' in the root directory of the present # distribution, or http://opensource.org/licenses/MIT. # # @author Da...
46.869767
99
0.612484
4a1e789d93eb2851f54cacf2a5c0b13a9dd2568a
471
py
Python
app/core/models.py
ClickTravel-VincentCleaver/django-training
8b07739487d8b5b6db33f9ec2b9d221b493de0be
[ "MIT" ]
null
null
null
app/core/models.py
ClickTravel-VincentCleaver/django-training
8b07739487d8b5b6db33f9ec2b9d221b493de0be
[ "MIT" ]
1
2021-09-09T11:33:32.000Z
2021-09-09T11:33:32.000Z
app/core/models.py
ClickTravel-VincentCleaver/django-training
8b07739487d8b5b6db33f9ec2b9d221b493de0be
[ "MIT" ]
null
null
null
from django.db import models class Recipe(models.Model): """Recipe""" name = models.TextField(blank=False) description = models.TextField() def __str__(self): return self.name class Ingredient(models.Model): """Ingredient""" name = models.TextField(blank=False) recipe = models.F...
19.625
40
0.639066
4a1e7c1be9ab56a3b34688a6e05b8f5ade77d871
2,800
py
Python
src/fonduer/parser/models/figure.py
annelhote/fonduer
bd5b1feebfb2860286ae8b5a520b24baa023b445
[ "MIT" ]
379
2018-03-29T10:06:02.000Z
2022-03-30T22:51:43.000Z
src/fonduer/parser/models/figure.py
annelhote/fonduer
bd5b1feebfb2860286ae8b5a520b24baa023b445
[ "MIT" ]
328
2018-03-29T03:34:46.000Z
2021-09-02T21:24:41.000Z
src/fonduer/parser/models/figure.py
annelhote/fonduer
bd5b1feebfb2860286ae8b5a520b24baa023b445
[ "MIT" ]
86
2018-03-30T12:56:33.000Z
2022-01-12T09:10:48.000Z
"""Fonduer figure context model.""" from sqlalchemy import Column, ForeignKey, Integer, String, UniqueConstraint from sqlalchemy.orm import backref, relationship from fonduer.parser.models.context import Context class Figure(Context): """A figure Context in a Document. Used to represent figures in a documen...
32.183908
88
0.579643
4a1e7e48f92a02bfb553206c052e6e1368d5a3d0
1,164
py
Python
tutorials/e2e-distributed-pytorch-image/src/pytorch_dl_train/model.py
jplummer01/azureml-examples
6a073d157f21060312941f71cfbcf25d0c541183
[ "MIT" ]
null
null
null
tutorials/e2e-distributed-pytorch-image/src/pytorch_dl_train/model.py
jplummer01/azureml-examples
6a073d157f21060312941f71cfbcf25d0c541183
[ "MIT" ]
null
null
null
tutorials/e2e-distributed-pytorch-image/src/pytorch_dl_train/model.py
jplummer01/azureml-examples
6a073d157f21060312941f71cfbcf25d0c541183
[ "MIT" ]
null
null
null
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. """ This script provides code to load and setup a variety of models from torchvision.models. """ import logging import torch import torch.nn as nn import torch.optim as optim import torchvision.models as models MODEL_ARCH_LIST = [ "resnet18"...
29.1
107
0.699313
4a1e7ef807f452bb2bfb994bdabcaf2c7f470d34
3,818
py
Python
tests/lexer/test_lexer.py
Pennycook/code-base-investigator
1673301553100f567ab4140ab27f7417d84e3f08
[ "BSD-3-Clause" ]
17
2019-07-24T21:17:52.000Z
2022-03-22T01:15:46.000Z
tests/lexer/test_lexer.py
Pennycook/code-base-investigator
1673301553100f567ab4140ab27f7417d84e3f08
[ "BSD-3-Clause" ]
1
2022-03-11T13:11:41.000Z
2022-03-11T13:11:41.000Z
tests/lexer/test_lexer.py
Pennycook/code-base-investigator
1673301553100f567ab4140ab27f7417d84e3f08
[ "BSD-3-Clause" ]
7
2019-07-24T21:27:42.000Z
2022-03-21T22:47:34.000Z
# Copyright (C) 2019 Intel Corporation # SPDX-License-Identifier: BSD-3-Clause import unittest from codebasin import preprocessor class TestLexer(unittest.TestCase): """ Test ability to tokenize strings correctly. """ def test_character(self): """characters""" tokens = preprocessor.L...
44.395349
92
0.62153
4a1e80ddd675f53fcfdbdbd8cc7af5a5fca6b252
11,339
py
Python
sdk/python/pulumi_aws_native/apigatewayv2/integration_response.py
AaronFriel/pulumi-aws-native
5621690373ac44accdbd20b11bae3be1baf022d1
[ "Apache-2.0" ]
29
2021-09-30T19:32:07.000Z
2022-03-22T21:06:08.000Z
sdk/python/pulumi_aws_native/apigatewayv2/integration_response.py
AaronFriel/pulumi-aws-native
5621690373ac44accdbd20b11bae3be1baf022d1
[ "Apache-2.0" ]
232
2021-09-30T19:26:26.000Z
2022-03-31T23:22:06.000Z
sdk/python/pulumi_aws_native/apigatewayv2/integration_response.py
AaronFriel/pulumi-aws-native
5621690373ac44accdbd20b11bae3be1baf022d1
[ "Apache-2.0" ]
4
2021-11-10T19:42:01.000Z
2022-02-05T10:15:49.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, overload from .. import _utilities __a...
45.538153
208
0.681718
4a1e81109e81770c1fa318c0fb6c49da043fc4cc
2,703
py
Python
src/data_preparation/scripts/graph_generator/typeparsing/rewriterulevisitor.py
mir-am/typilus
d2c126f178c02cfcef9b0ce652c4b019c2462e09
[ "MIT" ]
null
null
null
src/data_preparation/scripts/graph_generator/typeparsing/rewriterulevisitor.py
mir-am/typilus
d2c126f178c02cfcef9b0ce652c4b019c2462e09
[ "MIT" ]
null
null
null
src/data_preparation/scripts/graph_generator/typeparsing/rewriterulevisitor.py
mir-am/typilus
d2c126f178c02cfcef9b0ce652c4b019c2462e09
[ "MIT" ]
null
null
null
from typing import List from .nodes import TypeAnnotationNode, SubscriptAnnotationNode, TupleAnnotationNode, ListAnnotationNode, \ AttributeAnnotationNode, IndexAnnotationNode, ElipsisAnnotationNode from .rewriterules import RewriteRule from .visitor import TypeAnnotationVisitor class RewriteRuleVisitor(...
47.421053
128
0.72771
4a1e8217211e6bb4f8386b520247b801f97dfe72
107,907
py
Python
trunk/mac/Build/cpplint.py
dyzmapl/BumpTop
1329ea41411c7368516b942d19add694af3d602f
[ "Apache-2.0" ]
460
2016-01-13T12:49:34.000Z
2022-02-20T04:10:40.000Z
trunk/mac/Build/cpplint.py
dyzmapl/BumpTop
1329ea41411c7368516b942d19add694af3d602f
[ "Apache-2.0" ]
24
2016-11-07T04:59:49.000Z
2022-03-14T06:34:12.000Z
trunk/mac/Build/cpplint.py
dyzmapl/BumpTop
1329ea41411c7368516b942d19add694af3d602f
[ "Apache-2.0" ]
148
2016-01-17T03:16:43.000Z
2022-03-17T12:20:36.000Z
#!/usr/bin/python2.4 # # cpplint.py is Copyright (C) 2009 Google Inc. # # It is free software; you can redistribute it and/or modify it under the # terms of either: # # a) the GNU General Public License as published by the Free Software # Foundation; either version 1, or (at your option) any later version, or # # b) th...
39.068429
86
0.657548
4a1e828ab5230fd2480dd7bec589d584ff840868
318
py
Python
F_Machine_learning/1_Unsupervised-Learning/solutions/ex3_2.py
oercompbiomed/CBM101
20010dcb99fbf218c4789eb5918dcff8ceb94898
[ "MIT" ]
7
2019-07-03T07:41:55.000Z
2022-02-06T20:25:37.000Z
F_Machine_learning/1_Unsupervised-Learning/solutions/ex3_2.py
oercompbiomed/CBM101
20010dcb99fbf218c4789eb5918dcff8ceb94898
[ "MIT" ]
9
2019-03-14T15:15:09.000Z
2019-08-01T14:18:21.000Z
F_Machine_learning/1_Unsupervised-Learning/solutions/ex3_2.py
oercompbiomed/CBM101
20010dcb99fbf218c4789eb5918dcff8ceb94898
[ "MIT" ]
11
2019-03-12T10:43:11.000Z
2021-10-05T12:15:00.000Z
# mixing matrix np.random.seed(42) A = np.random.randn(4,3) print(A.T) # apply transformation X = S @ A.T # EXPLANATION: # each column in A.T defines one of the linear combinations (4 in total) # the rows define how much to add from each source. # E.g. the first combination will be (0.5*im1 - 0.14*im2 + 0.65*im3)
24.461538
72
0.694969
4a1e82b15efbd107c90105878666644b04fe5e67
3,844
py
Python
twisted/internet/test/_win32ifaces.py
ioggstream/twisted
34f9b1e3f097685839000c656332c66ee85be5d8
[ "Unlicense", "MIT" ]
3
2016-02-01T02:29:51.000Z
2020-09-04T17:19:24.000Z
twisted/internet/test/_win32ifaces.py
ioggstream/twisted
34f9b1e3f097685839000c656332c66ee85be5d8
[ "Unlicense", "MIT" ]
4
2017-02-19T23:58:13.000Z
2019-11-01T15:31:22.000Z
twisted/internet/test/_win32ifaces.py
ioggstream/twisted
34f9b1e3f097685839000c656332c66ee85be5d8
[ "Unlicense", "MIT" ]
6
2017-02-13T09:11:02.000Z
2021-06-29T11:22:18.000Z
# Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ Windows implementation of local network interface enumeration. """ from socket import socket, AF_INET6, SOCK_STREAM from ctypes import ( WinDLL, byref, create_string_buffer, c_int, c_void_p, POINTER, Structure, cast, string_at) WS2_3...
32.033333
80
0.680021
4a1e835fee585f5f1158323e9a9ab99c70017a29
826
py
Python
src/bricks.py
PandelisZ/PyBreakout
49b1e296b58689453dae12b4ecc66c1682d525c0
[ "MIT" ]
null
null
null
src/bricks.py
PandelisZ/PyBreakout
49b1e296b58689453dae12b4ecc66c1682d525c0
[ "MIT" ]
null
null
null
src/bricks.py
PandelisZ/PyBreakout
49b1e296b58689453dae12b4ecc66c1682d525c0
[ "MIT" ]
null
null
null
import pygame import constants class Brick: def __init__(self, screen): self.positionX = 0 self.positionY = 0 self.screen = screen self.sizeX = 66 self.sizeY = 18 self.colourArr = [constants.colourRed,constants.colourPink,constants.colourOrange,constants.colourGre...
26.645161
159
0.66707
4a1e836729714357c225a44fa6b0ef4b493bcf70
524
py
Python
py/07.py
fenglyu/projecteuler
f12746e20fd562e03d3a0e5ff6f4e944cb435aa1
[ "MIT" ]
null
null
null
py/07.py
fenglyu/projecteuler
f12746e20fd562e03d3a0e5ff6f4e944cb435aa1
[ "MIT" ]
null
null
null
py/07.py
fenglyu/projecteuler
f12746e20fd562e03d3a0e5ff6f4e944cb435aa1
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 def prime(n): i = 2 flag = True while i*i <= n: if n%i != 0: i += 1 else: flag = False # i += 1 break return flag def index(m): i = 2 count = 0 while True: if prime(i): count += 1 ...
16.375
28
0.402672
4a1e83d51b1345997baa3a1056c62bd3b3998093
1,330
py
Python
novice/sql/sqlitemagic.py
marianekka/DEPRECATED-bc
55f5cec89376faaf4b12ab572c930f0a05ab8dd5
[ "CC-BY-3.0" ]
34
2016-08-05T07:36:28.000Z
2022-01-30T20:08:55.000Z
novice/sql/sqlitemagic.py
UW-Madison-ACI/2014-08-25-wisc
35a4ab08b73634d7d11267ec2bb4685d381efce6
[ "CC-BY-3.0" ]
2
2016-08-04T10:54:52.000Z
2016-08-04T10:55:12.000Z
novice/sql/sqlitemagic.py
UW-Madison-ACI/2014-08-25-wisc
35a4ab08b73634d7d11267ec2bb4685d381efce6
[ "CC-BY-3.0" ]
22
2016-08-01T16:48:48.000Z
2022-02-24T22:42:36.000Z
"""sqlitemagic provices a simple magic for interacting with SQLite databases stored on disk. Usage: %%sqlite filename.db select personal, family from person; produces: Alan|Turing Grace|Hopper """ # This file is copyright 2013 by Greg Wilson: see # https://github.com/gvwilson/sqlitemagic/blob/master/LICENSE # for ...
26.6
83
0.658647
4a1e8403d382b3f3d0206118db6e786f11911678
988
py
Python
supriya/ugens/PV_JensenAndersen.py
deeuu/supriya
14fcb5316eccb4dafbe498932ceff56e1abb9d27
[ "MIT" ]
null
null
null
supriya/ugens/PV_JensenAndersen.py
deeuu/supriya
14fcb5316eccb4dafbe498932ceff56e1abb9d27
[ "MIT" ]
null
null
null
supriya/ugens/PV_JensenAndersen.py
deeuu/supriya
14fcb5316eccb4dafbe498932ceff56e1abb9d27
[ "MIT" ]
null
null
null
import collections from supriya.ugens.PV_ChainUGen import PV_ChainUGen class PV_JensenAndersen(PV_ChainUGen): """ A FFT feature detector for onset detection. :: >>> pv_chain = supriya.ugens.FFT( ... source=supriya.ugens.WhiteNoise.ar(), ... ) >>> pv_jensen_anders...
23.52381
69
0.480769
4a1e86d8de024e6faf3f8b41905a7f8e04401500
63,119
py
Python
PythonNetwork/venv/Lib/site-packages/scipy/stats/tests/test_morestats.py
Moldovandreii/RepetitionCount
b5715b0948b609fde0ce05d45023b7d4cfd635e7
[ "FTL" ]
6,989
2017-07-18T06:23:18.000Z
2022-03-31T15:58:36.000Z
PythonNetwork/venv/Lib/site-packages/scipy/stats/tests/test_morestats.py
Moldovandreii/RepetitionCount
b5715b0948b609fde0ce05d45023b7d4cfd635e7
[ "FTL" ]
1,978
2017-07-18T09:17:58.000Z
2022-03-31T14:28:43.000Z
PythonNetwork/venv/Lib/site-packages/scipy/stats/tests/test_morestats.py
Moldovandreii/RepetitionCount
b5715b0948b609fde0ce05d45023b7d4cfd635e7
[ "FTL" ]
1,228
2017-07-18T09:03:13.000Z
2022-03-29T05:57:40.000Z
# Author: Travis Oliphant, 2002 # # Further enhancements and tests added by numerous SciPy developers. # from __future__ import division, print_function, absolute_import import warnings import numpy as np from numpy.random import RandomState from numpy.testing import (assert_array_equal, assert_almost_equal, ass...
38.41692
92
0.576609
4a1e88187e8e1ef9f01e4e0865b562d9eeb4b0f6
10,597
py
Python
src/data/online_features.py
Twitter-Fake/twitter-fake
0388630211470baef4f7dfc50614147e458c8df5
[ "Apache-2.0" ]
1
2019-11-15T16:58:38.000Z
2019-11-15T16:58:38.000Z
src/data/online_features.py
Twitter-Fake/twitter-fake
0388630211470baef4f7dfc50614147e458c8df5
[ "Apache-2.0" ]
null
null
null
src/data/online_features.py
Twitter-Fake/twitter-fake
0388630211470baef4f7dfc50614147e458c8df5
[ "Apache-2.0" ]
1
2019-11-12T15:27:06.000Z
2019-11-12T15:27:06.000Z
""" This function get all the featueres to online processing. """ import re import nltk nltk.download('stopwords') from nltk.corpus import stopwords import pandas as pd from gensim.corpora.dictionary import Dictionary from gensim.models.ldamodel import LdaModel """ Common text processing functionalities. """...
26.625628
180
0.588846
4a1e881e75f55edb8ed6333cb57b69548d3654ec
13,115
py
Python
DFGN/tokenizer/tokenize_tool.py
mottled233/DFGN-pytorch
7d9f6a75404cfa429f1e2b57ec5055df382ed0a4
[ "MIT" ]
null
null
null
DFGN/tokenizer/tokenize_tool.py
mottled233/DFGN-pytorch
7d9f6a75404cfa429f1e2b57ec5055df382ed0a4
[ "MIT" ]
null
null
null
DFGN/tokenizer/tokenize_tool.py
mottled233/DFGN-pytorch
7d9f6a75404cfa429f1e2b57ec5055df382ed0a4
[ "MIT" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function import collections import unicodedata import six def convert_to_unicode(text): """ 将文本转化为utf-8的统一编码,可输出到控制台或日志中的形式 判断python版本以及文本格式并进行处理 :param text: str :return: str """ if six.P...
29.40583
107
0.55448
4a1e8a5554d990bfa9877c871d5ee2c74aedab7b
350
py
Python
command3.py
BijendraSahu/anantara
720b0500c1a343a4ff9c965e450aa3d6017f5ddf
[ "MIT" ]
null
null
null
command3.py
BijendraSahu/anantara
720b0500c1a343a4ff9c965e450aa3d6017f5ddf
[ "MIT" ]
null
null
null
command3.py
BijendraSahu/anantara
720b0500c1a343a4ff9c965e450aa3d6017f5ddf
[ "MIT" ]
null
null
null
import subprocess import os import webbrowser #proc = subprocess.call('start',shell=True) #proc=subprocess.Popen('cd xampp\htdocs\anantara_new_design') proc=subprocess.Popen('php artisan serve --host 192.168.2.20') chromedir= "C:/Program Files (x86)/Google/Chrome/Application/chrome.exe %s" webbrowser.get(chromedir).op...
38.888889
75
0.774286
4a1e8a899af13ccc5b575fa05310be59351911e9
1,657
py
Python
src/alignedseq.py
sanket-desai/pyblastn
15626c644bcfc4ad69ab132b0860dd1edb6c65d3
[ "MIT" ]
null
null
null
src/alignedseq.py
sanket-desai/pyblastn
15626c644bcfc4ad69ab132b0860dd1edb6c65d3
[ "MIT" ]
null
null
null
src/alignedseq.py
sanket-desai/pyblastn
15626c644bcfc4ad69ab132b0860dd1edb6c65d3
[ "MIT" ]
null
null
null
#!/usr/bin/python import sys import re from seq import Sequence from seq import ResidueError class AlignedSequence(Sequence): def __init__(self, fn1=None, ssq1=None): super().__init__(fn1, ssq1) if not self.is_dna(): self.is_protein() def __getitem__(self,i): return self.seq_[i] def is_gap(self,pos): ret...
33.816327
347
0.678938
4a1e8bf158d14193ab2d335a10082f2dfde95dc9
3,989
py
Python
questions_three/reporters/junit_reporter/junit_reporter.py
filfreire/questions-three
1d1d621d5647407bf2d1b271e0b9c7c9f1afc5c8
[ "MIT" ]
5
2019-07-22T06:04:07.000Z
2021-07-23T06:01:51.000Z
questions_three/reporters/junit_reporter/junit_reporter.py
filfreire/questions-three
1d1d621d5647407bf2d1b271e0b9c7c9f1afc5c8
[ "MIT" ]
15
2020-07-28T17:33:40.000Z
2021-08-23T17:30:05.000Z
questions_three/reporters/junit_reporter/junit_reporter.py
filfreire/questions-three
1d1d621d5647407bf2d1b271e0b9c7c9f1afc5c8
[ "MIT" ]
4
2019-08-25T22:41:59.000Z
2020-10-21T14:28:15.000Z
from datetime import datetime from junit_xml import TestCase, TestSuite import os from twin_sister import dependency from xml.etree import ElementTree from questions_three.constants import TestEvent, TestStatus from questions_three.event_broker import EventBroker, subscribe_event_handlers from questions_three.module_c...
32.169355
119
0.675107
4a1e8c72036fae8291bea74265aba2db3f82e0b1
1,076
py
Python
Converter/Examples/Inception.py
EmilPi/PuzzleLib
31aa0fab3b5e9472b9b9871ca52e4d94ea683fa9
[ "Apache-2.0" ]
52
2020-02-28T20:40:15.000Z
2021-08-25T05:35:17.000Z
Converter/Examples/Inception.py
EmilPi/PuzzleLib
31aa0fab3b5e9472b9b9871ca52e4d94ea683fa9
[ "Apache-2.0" ]
2
2021-02-14T15:57:03.000Z
2021-10-05T12:21:34.000Z
Converter/Examples/Inception.py
EmilPi/PuzzleLib
31aa0fab3b5e9472b9b9871ca52e4d94ea683fa9
[ "Apache-2.0" ]
8
2020-02-28T20:40:11.000Z
2020-07-09T13:27:23.000Z
from PuzzleLib import Config Config.globalEvalMode = True from PuzzleLib.Backend import gpuarray from PuzzleLib.Models.Nets.Inception import loadInceptionBN, loadInceptionV3 from PuzzleLib.Converter.Examples.Common import loadVGGSample, loadLabels, loadV3Labels, showLabelResults def main(): inceptionBNTest() ince...
29.081081
105
0.765799
4a1e8d38ab58cf65a05068f77c4c7e4f7846d451
2,065
py
Python
setup.py
hotmess47/dwave-inspector
b958ab0c2c943c8d55d610b5903cffd4b88a2dff
[ "Apache-2.0" ]
null
null
null
setup.py
hotmess47/dwave-inspector
b958ab0c2c943c8d55d610b5903cffd4b88a2dff
[ "Apache-2.0" ]
null
null
null
setup.py
hotmess47/dwave-inspector
b958ab0c2c943c8d55d610b5903cffd4b88a2dff
[ "Apache-2.0" ]
null
null
null
import os from setuptools import setup # Load package info, without importing the package basedir = os.path.dirname(os.path.abspath(__file__)) package_info_path = os.path.join(basedir, "dwave", "inspector", "package_info.py") package_info = {} with open(package_info_path, encoding='utf-8') as f: exec(f.read(), pa...
29.084507
82
0.667312
4a1e8ea806b8468cb6e0fc18eaaf5e30c41cb9d3
2,157
py
Python
src/data/test_tfrecords.py
Brechard/simple-yolov3
21c0a2962659cbff2469b905ac2efebafdc78796
[ "MIT" ]
1
2020-02-05T07:45:08.000Z
2020-02-05T07:45:08.000Z
src/data/test_tfrecords.py
Brechard/simple-yolov3
21c0a2962659cbff2469b905ac2efebafdc78796
[ "MIT" ]
null
null
null
src/data/test_tfrecords.py
Brechard/simple-yolov3
21c0a2962659cbff2469b905ac2efebafdc78796
[ "MIT" ]
1
2020-02-27T13:54:11.000Z
2020-02-27T13:54:11.000Z
import os import unittest import cv2 import numpy as np import tensorflow as tf import make_dataset from .dataset import Dataset from ..constants import GTSD class TFRecordTest(unittest.TestCase): def test_create_tfrecords(self): dataset_name = GTSD dataset = Dataset(dataset_name) images...
39.218182
100
0.600834
4a1e8ef44828ea12c9901a2f713522ced9c60c7c
2,787
py
Python
somework/mainapp/models.py
XtremeGood/somework
52fa01d48538e32a8afb85f4ddbaadac3e3cd154
[ "Apache-2.0" ]
null
null
null
somework/mainapp/models.py
XtremeGood/somework
52fa01d48538e32a8afb85f4ddbaadac3e3cd154
[ "Apache-2.0" ]
null
null
null
somework/mainapp/models.py
XtremeGood/somework
52fa01d48538e32a8afb85f4ddbaadac3e3cd154
[ "Apache-2.0" ]
null
null
null
from decouple import config from django.db import models class Dematad(models.Model): DPID = models.TextField() CLID = models.TextField() TYPE = models.TextField() SUBTYP = models.TextField() ACCAT = models.TextField() OCCUP = models.TextField() NAME = models.TextField() FNAME = m...
28.438776
44
0.64765
4a1e8efbe61f87200dd1afdf29ce16b969c241e8
1,474
py
Python
test/test_systeminfo.py
fledge-iot/fledge-south-systeminfo
377dce0c1288b0b2b33b9466f0ec580f578d8b30
[ "Apache-2.0" ]
null
null
null
test/test_systeminfo.py
fledge-iot/fledge-south-systeminfo
377dce0c1288b0b2b33b9466f0ec580f578d8b30
[ "Apache-2.0" ]
null
null
null
test/test_systeminfo.py
fledge-iot/fledge-south-systeminfo
377dce0c1288b0b2b33b9466f0ec580f578d8b30
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # FLEDGE_BEGIN # See: http://fledge-iot.readthedocs.io/ # FLEDGE_END from unittest.mock import patch import pytest from python.fledge.plugins.south.systeminfo import systeminfo __author__ = "Amarendra K Sinha" __copyright__ = "Copyright (c) 2018 Dianomic Systems" __license__ = "Apache 2.0" _...
25.859649
78
0.710312
4a1e9079a760bd8b0150672e525299f9ecedde13
1,733
py
Python
utils/misc.py
ta9ryuWalrus/FixMatch-pytorch
3d63376ce25886767f6afec07caa640bd44ada29
[ "MIT" ]
null
null
null
utils/misc.py
ta9ryuWalrus/FixMatch-pytorch
3d63376ce25886767f6afec07caa640bd44ada29
[ "MIT" ]
null
null
null
utils/misc.py
ta9ryuWalrus/FixMatch-pytorch
3d63376ce25886767f6afec07caa640bd44ada29
[ "MIT" ]
null
null
null
'''Some helper functions for PyTorch, including: - get_mean_and_std: calculate the mean and std value of dataset. ''' import logging import torch logger = logging.getLogger(__name__) __all__ = ['get_mean_and_std', 'accuracy', 'AverageMeter'] def get_mean_and_std(dataset): '''Compute the mean and std value ...
26.661538
95
0.610502
4a1e90d74116dda8e8414ad8a07daa9a72684f60
13,685
py
Python
py_expression_eval/tests.py
axiacore/py-expression-eval
e7cfbedb3cdb1c428ae3dfbc967fe43deffa5e64
[ "MIT" ]
26
2020-09-19T17:58:56.000Z
2022-03-26T20:28:10.000Z
py_expression_eval/tests.py
axiacore/py-expression-eval
e7cfbedb3cdb1c428ae3dfbc967fe43deffa5e64
[ "MIT" ]
11
2020-11-09T00:58:51.000Z
2022-03-18T15:19:24.000Z
py_expression_eval/tests.py
axiacore/py-expression-eval
e7cfbedb3cdb1c428ae3dfbc967fe43deffa5e64
[ "MIT" ]
13
2020-10-23T14:45:34.000Z
2022-03-17T06:21:33.000Z
#! /usr/bin/env python # -*- coding: utf-8 -*- # Author: AxiaCore S.A.S. http://axiacore.com # # Based on js-expression-eval, by Matthew Crumley (email@matthewcrumley.com, http://silentmatt.com/) # https://github.com/silentmatt/js-expression-eval # # Ported to Python and modified by Vera Mazhuga (ctrl-alt-delete@live.c...
50.3125
111
0.586262
4a1e91ff81cde8e18545da2f5175e573e3c159d7
52,974
py
Python
Macros/Python/platform.py
rec/dmxis
540baa59df6f4ae39990e5888f90b95caa362279
[ "Artistic-2.0" ]
2
2019-05-26T15:11:18.000Z
2021-12-27T21:05:32.000Z
Macros/Python/platform.py
rec/DMXIS
540baa59df6f4ae39990e5888f90b95caa362279
[ "Artistic-2.0" ]
null
null
null
Macros/Python/platform.py
rec/DMXIS
540baa59df6f4ae39990e5888f90b95caa362279
[ "Artistic-2.0" ]
null
null
null
#!/usr/bin/env python """ This module tries to retrieve as much platform-identifying data as possible. It makes this information available via function APIs. If called from the command line, it prints the platform information concatenated as single string to stdout. The output format is useable...
33.805999
103
0.572847
4a1e9356930dd40b0f6c96abbcb24f58af39f393
1,990
py
Python
py2neo/meta.py
theY4Kman/py2neo
431cf8e10d7f7fc684864608ade854ce1feece65
[ "Apache-2.0" ]
null
null
null
py2neo/meta.py
theY4Kman/py2neo
431cf8e10d7f7fc684864608ade854ce1feece65
[ "Apache-2.0" ]
null
null
null
py2neo/meta.py
theY4Kman/py2neo
431cf8e10d7f7fc684864608ade854ce1feece65
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- encoding: utf-8 -*- # Copyright 2011-2020, Nigel Small # # 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 # # Unle...
37.54717
112
0.708543
4a1e9393ba113fbbb55bdd2ca26545ca90ba9d03
323
py
Python
Ch04-Divide-and-Conquer/02_quicksort.py
JackieXie168/grokking_algorithms
77f1719c87ef93249fc240a4668c2e5989ed49b7
[ "MIT" ]
1
2021-07-05T12:15:46.000Z
2021-07-05T12:15:46.000Z
Ch04-Divide-and-Conquer/02_quicksort.py
JackieXie168/grokking_algorithms
77f1719c87ef93249fc240a4668c2e5989ed49b7
[ "MIT" ]
1
2021-06-27T05:00:27.000Z
2021-06-27T05:00:27.000Z
Ch04-Divide-and-Conquer/02_quicksort.py
yihjie/Grokking_Algorithms_Study
77f1719c87ef93249fc240a4668c2e5989ed49b7
[ "MIT" ]
null
null
null
def quicksort(array): if len(array) < 2: return array else: pivot = array[0] less = [i for i in array[1:] if i <= pivot] greater = [i for i in array[1:] if i > pivot] return quicksort(less) + [pivot] + quicksort(greater) print([10, 5, 2, 3]) print(quicksort([10, 5, 2, 3...
26.916667
61
0.544892
4a1e94610a79a3fed798e1d573d1a818029eae37
431
py
Python
src/logging_utils.py
olehb/CyberReaper
3dc5ed2928a6083f303aeb5f7ec36972d7642b68
[ "MIT" ]
null
null
null
src/logging_utils.py
olehb/CyberReaper
3dc5ed2928a6083f303aeb5f7ec36972d7642b68
[ "MIT" ]
null
null
null
src/logging_utils.py
olehb/CyberReaper
3dc5ed2928a6083f303aeb5f7ec36972d7642b68
[ "MIT" ]
null
null
null
import logging import sys from logging import Logger def configure_logger(name: str, level: int = logging.INFO) -> Logger: logger = logging.getLogger(name) logger_handler = logging.StreamHandler(sys.stdout) logger_handler.setFormatter( logging.Formatter("[%(asctime)s - %(levelname)s] %(message)s",...
26.9375
90
0.705336
4a1e952c9377bd318b19b7354ee228da3ecd4928
2,125
py
Python
indico/modules/categories/fields.py
bpedersen2/indico
8410ee5f8f8530a8692f3dd2d4015c3074b0aa30
[ "MIT" ]
null
null
null
indico/modules/categories/fields.py
bpedersen2/indico
8410ee5f8f8530a8692f3dd2d4015c3074b0aa30
[ "MIT" ]
null
null
null
indico/modules/categories/fields.py
bpedersen2/indico
8410ee5f8f8530a8692f3dd2d4015c3074b0aa30
[ "MIT" ]
null
null
null
# This file is part of Indico. # Copyright (C) 2002 - 2021 CERN # # Indico is free software; you can redistribute it and/or # modify it under the terms of the MIT License; see the # LICENSE file for more details. import json from wtforms.fields.simple import HiddenField from indico.modules.categories.models.event_mo...
33.203125
102
0.645647
4a1e953feff0ff3cd007645303d6443c16231d88
7,681
py
Python
tests/test_multicall_for_all_chains.py
007vasy/multicall.py
b0cdf8b31c2000e8363926a86cffeedb89263767
[ "MIT" ]
null
null
null
tests/test_multicall_for_all_chains.py
007vasy/multicall.py
b0cdf8b31c2000e8363926a86cffeedb89263767
[ "MIT" ]
null
null
null
tests/test_multicall_for_all_chains.py
007vasy/multicall.py
b0cdf8b31c2000e8363926a86cffeedb89263767
[ "MIT" ]
null
null
null
import sys import unittest from decimal import Decimal from web3 import Web3 from web3.middleware import geth_poa_middleware import pytest import json from pathlib import Path from eth_utils import to_hex, is_hexstr, remove_0x_prefix from multicall.constants import ( w3, CHAIN_ARBITRUM, CHAIN_AVAX, CHA...
37.10628
141
0.675173
4a1e95fc6dc5ae52d98fad3c2f2c19bf09abb062
1,913
py
Python
contrib/devtools/check-doc.py
ventual-core/vntl
9408f2d7ea53e7191d0d72a13ad80c6472f4f1cf
[ "MIT" ]
null
null
null
contrib/devtools/check-doc.py
ventual-core/vntl
9408f2d7ea53e7191d0d72a13ad80c6472f4f1cf
[ "MIT" ]
null
null
null
contrib/devtools/check-doc.py
ventual-core/vntl
9408f2d7ea53e7191d0d72a13ad80c6472f4f1cf
[ "MIT" ]
null
null
null
#!/usr/bin/env python # Copyright (c) 2015-2016 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. ''' This checks if all command line args are documented. Return value is 0 to indicate no error. Author: @...
42.511111
302
0.690538
4a1e9737e74e7445dd8352b1e868e4d87680c9ec
655
py
Python
kattis/k_everywhere.py
ivanlyon/exercises
0792976ae2acb85187b26a52812f9ebdd119b5e8
[ "MIT" ]
null
null
null
kattis/k_everywhere.py
ivanlyon/exercises
0792976ae2acb85187b26a52812f9ebdd119b5e8
[ "MIT" ]
null
null
null
kattis/k_everywhere.py
ivanlyon/exercises
0792976ae2acb85187b26a52812f9ebdd119b5e8
[ "MIT" ]
null
null
null
''' Compute # of unique labels. Status: Accepted ''' ############################################################################### def uniques(inputs): '''Compute # of unique labels in a list''' return len(set(inputs)) ############################################################################### if __...
25.192308
79
0.378626
4a1e9921b22a91d2399746c929697d656d73f305
3,020
py
Python
examples/demoBebopVisionGUI.py
leocencetti/pyparrot
c1a3df4ce7a62a646ab85e93b89966256bfa6cfa
[ "MIT" ]
1
2020-04-24T15:22:13.000Z
2020-04-24T15:22:13.000Z
examples/demoBebopVisionGUI.py
leocencetti/pyparrot
c1a3df4ce7a62a646ab85e93b89966256bfa6cfa
[ "MIT" ]
null
null
null
examples/demoBebopVisionGUI.py
leocencetti/pyparrot
c1a3df4ce7a62a646ab85e93b89966256bfa6cfa
[ "MIT" ]
null
null
null
""" Demo of the Bebop vision using DroneVisionGUI (relies on libVLC). It is a different multi-threaded approach than DroneVision Author: Amy McGovern """ from pyparrot.Bebop import Bebop from pyparrot.DroneVisionGUI import DroneVisionGUI import threading import cv2 import time from PyQt5.QtGui import QImage isAlive ...
29.607843
117
0.67053
4a1e994c03fcda72c389f0256f6922975ac2a6bf
3,959
py
Python
hubspot/crm/quotes/models/next_page.py
cclauss/hubspot-api-python
7c60c0f572b98c73e1f1816bf5981396a42735f6
[ "Apache-2.0" ]
null
null
null
hubspot/crm/quotes/models/next_page.py
cclauss/hubspot-api-python
7c60c0f572b98c73e1f1816bf5981396a42735f6
[ "Apache-2.0" ]
null
null
null
hubspot/crm/quotes/models/next_page.py
cclauss/hubspot-api-python
7c60c0f572b98c73e1f1816bf5981396a42735f6
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Quotes No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six from hubspo...
26.75
124
0.562768
4a1e9a4a070e7aff2a6f729ea6f1087ebee0cb7c
2,652
py
Python
DatasetStats.py
JosephDevaney/FYP
46c597074b5b17da5ba5f25a7ffc2a8e2bfdbd40
[ "MIT" ]
null
null
null
DatasetStats.py
JosephDevaney/FYP
46c597074b5b17da5ba5f25a7ffc2a8e2bfdbd40
[ "MIT" ]
null
null
null
DatasetStats.py
JosephDevaney/FYP
46c597074b5b17da5ba5f25a7ffc2a8e2bfdbd40
[ "MIT" ]
null
null
null
import os import scipy.io.wavfile as wav import pickle as pkl from VideoFeatures import VideoFeatures # Builds a report of a features file detailing the number of instances per category and the average length def analyse_features(): path = input("Enter the filepath here: \n") videos = {} try: with...
31.2
106
0.521493
4a1e9b15030e841bd8b399464a6119c37d8336b5
1,281
py
Python
tictactoe/tests/tictactoe_test.py
akhilennu/cs50ai_tictactoe
6e35ea10c50d358f2c8b1dfb22c720a14bd7bbd1
[ "MIT" ]
null
null
null
tictactoe/tests/tictactoe_test.py
akhilennu/cs50ai_tictactoe
6e35ea10c50d358f2c8b1dfb22c720a14bd7bbd1
[ "MIT" ]
null
null
null
tictactoe/tests/tictactoe_test.py
akhilennu/cs50ai_tictactoe
6e35ea10c50d358f2c8b1dfb22c720a14bd7bbd1
[ "MIT" ]
null
null
null
from logging import BASIC_FORMAT import tictactoe as t import test_helper as helper import unittest class TestTicTacToe(unittest.TestCase): def test_player(self): for test_case in helper.test_cases: self.assertEqual(t.player(test_case["board"]),test_case["player"]) def test_terminal(self)...
38.818182
102
0.505855
4a1e9c8aee74b89469f219136d63471f333874b0
4,015
py
Python
env/Lib/site-packages/plotly/validators/layout/_mapbox.py
andresgreen-byte/Laboratorio-1--Inversion-de-Capital
8a4707301d19c3826c31026c4077930bcd6a8182
[ "MIT" ]
11,750
2015-10-12T07:03:39.000Z
2022-03-31T20:43:15.000Z
packages/python/plotly/plotly/validators/layout/_mapbox.py
jiangrongbo/plotly.py
df19fc702b309586cc24e25373b87e8bdbb3ff60
[ "MIT" ]
2,951
2015-10-12T00:41:25.000Z
2022-03-31T22:19:26.000Z
packages/python/plotly/plotly/validators/layout/_mapbox.py
jiangrongbo/plotly.py
df19fc702b309586cc24e25373b87e8bdbb3ff60
[ "MIT" ]
2,623
2015-10-15T14:40:27.000Z
2022-03-28T16:05:50.000Z
import _plotly_utils.basevalidators class MapboxValidator(_plotly_utils.basevalidators.CompoundValidator): def __init__(self, plotly_name="mapbox", parent_name="layout", **kwargs): super(MapboxValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, ...
48.373494
77
0.571606
4a1e9d4e66882a2fd07abc70f8b1b4b097ac1265
7,243
py
Python
code/gene_distance_feature.py
Asleda/IR
c58870a0219211415c0b2f47af0c8ab5c8ba3001
[ "MIT" ]
null
null
null
code/gene_distance_feature.py
Asleda/IR
c58870a0219211415c0b2f47af0c8ab5c8ba3001
[ "MIT" ]
null
null
null
code/gene_distance_feature.py
Asleda/IR
c58870a0219211415c0b2f47af0c8ab5c8ba3001
[ "MIT" ]
null
null
null
from load_model import bing_bg,bing_ug,bing_tg,twitter_ug,twitter_bg,twitter_tg,inter_ug,inter_bg,inter_tg from update import getBigram,getTrigram import numpy as np ########################################################################################### def try_divide(x, y, val=0.0): if y != 0.0: ...
55.715385
210
0.697915
4a1e9dd11ed1261d5899d9e062ff16981885ebee
22,648
py
Python
src/pymwm/slit/samples/__init__.py
mnishida/PyMWM
0fffa2717c37ea258655ab9bf5196208e2be8fd1
[ "MIT" ]
3
2020-04-16T14:55:34.000Z
2021-08-04T07:03:31.000Z
src/pymwm/slit/samples/__init__.py
mnishida/PyMWM
0fffa2717c37ea258655ab9bf5196208e2be8fd1
[ "MIT" ]
1
2021-08-13T04:45:50.000Z
2021-08-18T03:33:08.000Z
src/pymwm/slit/samples/__init__.py
mnishida/PyMWM
0fffa2717c37ea258655ab9bf5196208e2be8fd1
[ "MIT" ]
2
2021-04-05T07:10:26.000Z
2021-08-04T03:15:43.000Z
from __future__ import annotations import cmath from logging import getLogger import numpy as np import ray import riip from pymwm.utils import slit_utils from pymwm.waveguide import Sampling logger = getLogger(__package__) class Samples(Sampling): """A class defining samples of phase constants of slit wavegu...
39.594406
110
0.507639
4a1e9e01be83a92a629b788ab06c22ade479d950
468
py
Python
Projetos Python/pythonexercicios/venv/Scripts/easy_install-script.py
Moyses-Nunes/Projetos-Python
71ae170fb0d7be6afea18608bca630b57b9f0dff
[ "MIT" ]
null
null
null
Projetos Python/pythonexercicios/venv/Scripts/easy_install-script.py
Moyses-Nunes/Projetos-Python
71ae170fb0d7be6afea18608bca630b57b9f0dff
[ "MIT" ]
null
null
null
Projetos Python/pythonexercicios/venv/Scripts/easy_install-script.py
Moyses-Nunes/Projetos-Python
71ae170fb0d7be6afea18608bca630b57b9f0dff
[ "MIT" ]
null
null
null
#!"C:\Users\MOYSES NUNES\PycharmProjects\pythonexercicios\venv\Scripts\python.exe" # EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install' __requires__ = 'setuptools==39.1.0' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r...
36
83
0.702991
4a1e9fec9695cf49d31366d863d6b659efe86404
8,700
py
Python
fastai/utils/collect_env.py
Qumeric/fastai
749b18fec30fe18b6059e5c08dd40cd19e08b2b1
[ "Apache-2.0" ]
1
2018-12-15T11:14:26.000Z
2018-12-15T11:14:26.000Z
fastai/utils/collect_env.py
Qumeric/fastai
749b18fec30fe18b6059e5c08dd40cd19e08b2b1
[ "Apache-2.0" ]
1
2022-02-26T12:32:11.000Z
2022-02-26T12:32:11.000Z
fastai/utils/collect_env.py
Qumeric/fastai
749b18fec30fe18b6059e5c08dd40cd19e08b2b1
[ "Apache-2.0" ]
null
null
null
"Utility functions to help deal with user environment" from ..imports.torch import * from ..core import * import fastprogress import subprocess __all__ = ['show_install', 'check_perf'] def get_env(name): "Return env var value if it's defined and not an empty string, or return Unknown" if name in os.environ an...
40.654206
230
0.638046
4a1ea01156105108ab9f157656d16882b0811bff
6,900
py
Python
webserver/python2.7/site-packages/sympy/assumptions/tests/test_refine.py
maxr1876/Radix
bf9a5470908ea0823c8398565086b1e6b960c73b
[ "BSD-2-Clause" ]
1
2015-07-04T12:40:41.000Z
2015-07-04T12:40:41.000Z
webserver/python2.7/site-packages/sympy/assumptions/tests/test_refine.py
maxr1876/Radix
bf9a5470908ea0823c8398565086b1e6b960c73b
[ "BSD-2-Clause" ]
1
2015-11-01T17:20:32.000Z
2015-11-01T17:20:32.000Z
webserver/python2.7/site-packages/sympy/assumptions/tests/test_refine.py
maxr1876/Radix
bf9a5470908ea0823c8398565086b1e6b960c73b
[ "BSD-2-Clause" ]
1
2018-10-22T09:17:11.000Z
2018-10-22T09:17:11.000Z
from sympy import (Abs, exp, Expr, I, pi, Q, Rational, refine, S, sqrt, atan, atan2, nan, Symbol) from sympy.abc import x, y, z from sympy.core.relational import Eq, Ne from sympy.functions.elementary.piecewise import Piecewise from sympy.utilities.pytest import slow def test_Abs(): assert refi...
38.983051
79
0.52942
4a1ea01a8247d9096bb816b63e26002061fa93a6
10,713
py
Python
clearml/utilities/locks/utils.py
mmiller-max/clearml
fd2d6c6f5d46cad3e406e88eeb4d805455b5b3d8
[ "Apache-2.0" ]
2,097
2019-06-11T14:36:25.000Z
2020-12-21T03:52:59.000Z
clearml/utilities/locks/utils.py
mmiller-max/clearml
fd2d6c6f5d46cad3e406e88eeb4d805455b5b3d8
[ "Apache-2.0" ]
347
2020-12-23T22:38:48.000Z
2022-03-31T20:01:06.000Z
clearml/utilities/locks/utils.py
mmiller-max/clearml
fd2d6c6f5d46cad3e406e88eeb4d805455b5b3d8
[ "Apache-2.0" ]
256
2019-06-11T14:36:28.000Z
2020-12-18T08:32:47.000Z
import os import time import atexit import tempfile import contextlib from multiprocessing import RLock as ProcessRLock from . import exceptions from . import constants from . import portalocker current_time = getattr(time, "monotonic", time.time) DEFAULT_TIMEOUT = 10 ** 8 DEFAULT_CHECK_INTERVAL = 0.25 LOCK_METHOD = ...
31.142442
91
0.573135
4a1ea160b71fd22084cb9fbbc314f649c4ba2c9a
1,696
py
Python
examples/plot_cluster_dl85.py
aglingael/dl85_dist_source
42a0bb66c923f2b691cd0e6bf8b29c150b90f76c
[ "MIT" ]
9
2020-01-25T07:47:27.000Z
2020-03-14T09:12:28.000Z
examples/plot_cluster_dl85.py
aglingael/dl85_dist_source
42a0bb66c923f2b691cd0e6bf8b29c150b90f76c
[ "MIT" ]
null
null
null
examples/plot_cluster_dl85.py
aglingael/dl85_dist_source
42a0bb66c923f2b691cd0e6bf8b29c150b90f76c
[ "MIT" ]
1
2020-03-31T16:59:07.000Z
2020-03-31T16:59:07.000Z
""" =================================== DL8.5 default predictive clustering =================================== This example illustrates how to use the DL85Cluster class for predictive clustering. A second implementation of predictive clustering is provided in the plot_cluster_user.py example. """ import numpy as np f...
38.545455
88
0.555425
4a1ea220458472dcfaeffc9ab270c09436b71f0f
12,554
py
Python
libcloudforensics/providers/gcp/internal/storage.py
Fryyyyy/cloud-forensics-utils
d7fb845bd7df1498d67230520e2c7169c9a929df
[ "Apache-2.0" ]
1
2021-06-15T05:50:47.000Z
2021-06-15T05:50:47.000Z
libcloudforensics/providers/gcp/internal/storage.py
Fryyyyy/cloud-forensics-utils
d7fb845bd7df1498d67230520e2c7169c9a929df
[ "Apache-2.0" ]
null
null
null
libcloudforensics/providers/gcp/internal/storage.py
Fryyyyy/cloud-forensics-utils
d7fb845bd7df1498d67230520e2c7169c9a929df
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2020 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
37.813253
131
0.662259
4a1ea228cd0065631d06749d3c566dd1ac84f5ce
22,617
py
Python
test/functional/test_runner.py
silbatech/silba-src
8fa0435d469e9a704a3ebc8ff902b2dbbca19520
[ "MIT" ]
null
null
null
test/functional/test_runner.py
silbatech/silba-src
8fa0435d469e9a704a3ebc8ff902b2dbbca19520
[ "MIT" ]
null
null
null
test/functional/test_runner.py
silbatech/silba-src
8fa0435d469e9a704a3ebc8ff902b2dbbca19520
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2014-2017 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Run regression test suite. This module calls down into individual test cases via subprocess. It will f...
40.972826
195
0.632179
4a1ea2fab00db4a3aedc14916c6d9f7e7673a964
4,180
py
Python
sahara/plugins/cdh/deploy.py
ksshanam/sahara
0d259f7a71447cd0cefe4f11184cc2ee335f4e33
[ "Apache-2.0" ]
2
2019-01-28T22:10:54.000Z
2019-02-20T08:35:58.000Z
sahara_plugin_cdh/plugins/cdh/deploy.py
openstack/sahara-plugin-cdh
063c3ee8de7e56831ef6b3bc8807706bd5fd7cea
[ "Apache-2.0" ]
1
2020-10-06T07:50:12.000Z
2020-10-06T07:50:12.000Z
sahara_plugin_cdh/plugins/cdh/deploy.py
openstack/sahara-plugin-cdh
063c3ee8de7e56831ef6b3bc8807706bd5fd7cea
[ "Apache-2.0" ]
null
null
null
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the...
33.44
77
0.649522
4a1ea479876af6378a13f283fa51e845a7920667
3,775
py
Python
schedule.py
fakegit/bilibili-live-tools
99dfb53d1dc3275e37f0be34e4199e672aecb1bf
[ "MIT" ]
1,018
2017-12-24T01:53:18.000Z
2022-03-25T09:25:02.000Z
schedule.py
fakegit/bilibili-live-tools
99dfb53d1dc3275e37f0be34e4199e672aecb1bf
[ "MIT" ]
274
2017-12-29T13:58:19.000Z
2021-12-09T14:31:55.000Z
schedule.py
fakegit/bilibili-live-tools
99dfb53d1dc3275e37f0be34e4199e672aecb1bf
[ "MIT" ]
240
2018-01-22T05:01:28.000Z
2022-01-21T06:30:57.000Z
import asyncio import time from printer import Printer sec_calc = lambda h, m, s: 3600 * int(h) + 60 * int(m) + float(s) time_minus = lambda t2, t1: (t2 - t1) % 86400 time_str_calc = lambda sec: f'{sec//3600:02.0f}:{sec%3600//60:02.0f}:{sec%60:02.0f}' def sec_now(): time_tuple = time.localtime() return sec...
41.483516
111
0.567417
4a1ea48fb9f91d4bd3ee339e9f8e385b28db575c
3,936
py
Python
examples/dqn_m0.py
NICALab/Inducing-Functions-through-RL
e2171ff5e14bb272353e7df5156104ad2a85a3ae
[ "MIT" ]
1
2022-01-07T10:00:48.000Z
2022-01-07T10:00:48.000Z
examples/dqn_m0.py
NICALab/Inducing-Functions-through-RL
e2171ff5e14bb272353e7df5156104ad2a85a3ae
[ "MIT" ]
null
null
null
examples/dqn_m0.py
NICALab/Inducing-Functions-through-RL
e2171ff5e14bb272353e7df5156104ad2a85a3ae
[ "MIT" ]
null
null
null
import argparse import gym from torch import nn as nn import numpy as np from rlkit.exploration_strategies.base import \ PolicyWrappedWithExplorationStrategy from rlkit.exploration_strategies.epsilon_greedy import EpsilonGreedy from rlkit.policies.argmax import ArgmaxDiscretePolicyM0 from rlkit.torch.dqn.dqn impor...
32.528926
97
0.662093
4a1ea5f75edf2a8f91a61b622be4ca7e65701280
5,156
py
Python
exam_terminal/__main__.py
ismet55555/exam-terminal
2d17cc3ccc71c17c8eb37e3adc23a52f8bc56e57
[ "Apache-2.0" ]
14
2020-11-25T22:16:35.000Z
2022-01-08T20:41:44.000Z
exam_terminal/__main__.py
ismet55555/exam-terminal
2d17cc3ccc71c17c8eb37e3adc23a52f8bc56e57
[ "Apache-2.0" ]
23
2021-02-10T01:37:38.000Z
2022-03-31T10:22:16.000Z
exam_terminal/__main__.py
ismet55555/exam-terminal
2d17cc3ccc71c17c8eb37e3adc23a52f8bc56e57
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import logging import os import sys import sysconfig from urllib.parse import urlparse import click from exam_terminal import exam_terminal, utility # Creating a message logger, all dependent scripts will inhearent this logger logging.basicConfig(format='[%(asctime)s][%(levelname)-8s] [%(file...
44.068376
158
0.635764
4a1ea6e5d39fc5735a08fc5742d954224e5df539
920
py
Python
python/func_with_test.py
hermantai/samples
8b76e17b57c39876c65cb3aac65dc4f9079858a7
[ "Apache-2.0" ]
1
2016-08-17T03:19:55.000Z
2016-08-17T03:19:55.000Z
python/func_with_test.py
hermantai/samples
8b76e17b57c39876c65cb3aac65dc4f9079858a7
[ "Apache-2.0" ]
null
null
null
python/func_with_test.py
hermantai/samples
8b76e17b57c39876c65cb3aac65dc4f9079858a7
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """A template for creating functions or classes with unit tests. It's mainly used for rapid protyping several functions or classes. Run this template with: python func_with_test.py or python func_with_test.py -v """ from __future__ import print_function from __future__ import absolute_imp...
20
78
0.676087
4a1ea6fbcb312db5572bab0cde9425ae23ef77ee
460
py
Python
app_collaborative_sci_workflow/pipeline_modules/Source_Get_Fragments/Source_Get_Fragments_main.py
pseudoPixels/SourceFlow
e1738c8b838c71b18598ceca29d7c487c76f876b
[ "MIT" ]
null
null
null
app_collaborative_sci_workflow/pipeline_modules/Source_Get_Fragments/Source_Get_Fragments_main.py
pseudoPixels/SourceFlow
e1738c8b838c71b18598ceca29d7c487c76f876b
[ "MIT" ]
null
null
null
app_collaborative_sci_workflow/pipeline_modules/Source_Get_Fragments/Source_Get_Fragments_main.py
pseudoPixels/SourceFlow
e1738c8b838c71b18598ceca29d7c487c76f876b
[ "MIT" ]
null
null
null
import subprocess lines = '' with open(source_directory) as module_1_inp: lines = module_1_inp.readlines() #only read the first line (in case it has multiples) source_directory = lines[0] pipe = subprocess.Popen( ["/bin/bash", "/home/ubuntu/Webpage/app_collaborative_sci_workflow/External_Libraries/NiCad-4.0/...
24.210526
117
0.758696
4a1ea7cd106baac6e04eaa537e1f403644c79900
2,909
py
Python
pypgqueue/consumer.py
MarekSuchanek/pypgqueue
e11d161a804f28de3c0557403763293f594871de
[ "MIT" ]
null
null
null
pypgqueue/consumer.py
MarekSuchanek/pypgqueue
e11d161a804f28de3c0557403763293f594871de
[ "MIT" ]
null
null
null
pypgqueue/consumer.py
MarekSuchanek/pypgqueue
e11d161a804f28de3c0557403763293f594871de
[ "MIT" ]
null
null
null
import select import psycopg2 import psycopg2.extensions import time from pypgqueue.consts import LISTEN_TIMEOUT from pypgqueue.database import DatabaseConfig, Database from pypgqueue.logging import logger class Consumer: def __init__(self, db_config: DatabaseConfig, name: str): self.db_config = db_conf...
39.310811
97
0.623238
4a1ea95e589233ebc104cd1cf32b7777b781ba89
591
py
Python
env/lib/python3.8/site-packages/plotly/validators/layout/polar/angularaxis/_showexponent.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
76
2020-07-06T14:44:05.000Z
2022-02-14T15:30:21.000Z
env/lib/python3.8/site-packages/plotly/validators/layout/polar/angularaxis/_showexponent.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
11
2020-08-09T02:30:14.000Z
2022-03-12T00:50:14.000Z
env/lib/python3.8/site-packages/plotly/validators/layout/polar/angularaxis/_showexponent.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
11
2020-07-12T16:18:07.000Z
2022-02-05T16:48:35.000Z
import _plotly_utils.basevalidators class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( self, plotly_name="showexponent", parent_name="layout.polar.angularaxis", **kwargs ): super(ShowexponentValidator, self).__init__( ...
31.105263
78
0.609137
4a1ea98284c78ed66bf0482025e940ca834d1502
681
py
Python
lvjichuan/aipTest.py
qsyPython/Python_play_now
278b6d5d30082f8f93b26902c854737c4919405a
[ "MIT" ]
2
2018-03-29T08:26:17.000Z
2019-06-17T10:56:19.000Z
lvjichuan/aipTest.py
qsyPython/Python_play_now
278b6d5d30082f8f93b26902c854737c4919405a
[ "MIT" ]
1
2022-03-22T20:26:08.000Z
2022-03-22T20:26:08.000Z
lvjichuan/aipTest.py
qsyPython/Python_play_now
278b6d5d30082f8f93b26902c854737c4919405a
[ "MIT" ]
1
2019-02-18T10:44:20.000Z
2019-02-18T10:44:20.000Z
from aip import AipSpeech import pygame import time """ 你的 APPID AK SK 个人开发key,请勿乱用""" APP_ID = '6504962' API_KEY = 'ogCRv6RoBvgMYak5Fxa53njg' SECRET_KEY = 'Aw1DWipvMGZgIGSkUxG2DEC8BFGQBgLl' client = AipSpeech(APP_ID, API_KEY, SECRET_KEY) def playMusic(): pygame.mixer.init() print("开始朗读") pygame.time.del...
22.7
55
0.687225
4a1eaa4596baa24065ab8a9866844aa082a86f0e
6,292
py
Python
scripts/train_baselines_mocap.py
weirayao/leap
8d10b8413d02d3be49d5c02a13a0aa60a741d8da
[ "MIT" ]
7
2022-01-06T18:37:57.000Z
2022-03-20T17:11:30.000Z
scripts/train_baselines_mocap.py
weirayao/leap
8d10b8413d02d3be49d5c02a13a0aa60a741d8da
[ "MIT" ]
null
null
null
scripts/train_baselines_mocap.py
weirayao/leap
8d10b8413d02d3be49d5c02a13a0aa60a741d8da
[ "MIT" ]
null
null
null
"running the baseline file: main.py" import warnings warnings.filterwarnings('ignore') import argparse import os, pwd, yaml import pytorch_lightning as pl from torch.utils.data import DataLoader, random_split "utils file (SAME)" from leap.tools.utils import load_yaml # Stationary: from leap.datasets.sim_dataset impo...
40.593548
106
0.518595
4a1eaaa5afe90cff2ce23b90ed083d8704f2316b
3,750
py
Python
python/coursera_python/WESLEYAN/week4/phone.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/coursera_python/WESLEYAN/week4/phone.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/coursera_python/WESLEYAN/week4/phone.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
# -phones.py *- coding: utf-8 -*- """ This program maintains a database of names and phone numbers in a csv file called myphones.csv. It is run from the command line and is menu driven. To start it, save it in a directory and from the terminal run >python phones.py Version FINAL: """ import os import csv phones = ...
26.408451
78
0.5768
4a1eab0e1301d7487afa0c61a6bdbe11a708b316
962
py
Python
modules/extract_features.py
rlorigro/mungus
2ff8d94f58b9f280399157912a999d5f31a459fd
[ "MIT" ]
null
null
null
modules/extract_features.py
rlorigro/mungus
2ff8d94f58b9f280399157912a999d5f31a459fd
[ "MIT" ]
null
null
null
modules/extract_features.py
rlorigro/mungus
2ff8d94f58b9f280399157912a999d5f31a459fd
[ "MIT" ]
null
null
null
from scipy import signal import numpy import cv2 import os SCHARR_KERNEL = numpy.array([[ -3-3j, 0-10j, +3 -3j], [-10+0j, 0+ 0j, +10 +0j], [ -3+3j, 0+10j, +3 +3j]]) # Gx + j*Gy def extract_features(grayscale_image, kernel): convolved = sign...
27.485714
73
0.621622
4a1eab6beb1b56acd7dfd93d708acc51876b6d4c
22,392
py
Python
pybind/nos/v7_1_0/mac_address_table/__init__.py
shivharis/pybind
4e1c6d54b9fd722ccec25546ba2413d79ce337e6
[ "Apache-2.0" ]
null
null
null
pybind/nos/v7_1_0/mac_address_table/__init__.py
shivharis/pybind
4e1c6d54b9fd722ccec25546ba2413d79ce337e6
[ "Apache-2.0" ]
null
null
null
pybind/nos/v7_1_0/mac_address_table/__init__.py
shivharis/pybind
4e1c6d54b9fd722ccec25546ba2413d79ce337e6
[ "Apache-2.0" ]
1
2021-11-05T22:15:42.000Z
2021-11-05T22:15:42.000Z
from operator import attrgetter import pyangbind.lib.xpathhelper as xpathhelper from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType from pyangbind.lib.base import PybindBase from d...
79.123675
1,147
0.730975
4a1eab95f885b1e9213400a27911a3b7671a6ba9
2,143
py
Python
test/python/testprocess.py
personx000/paperetl
99cfcf305e60df3eef6c3cab9eb1401057dfa862
[ "Apache-2.0" ]
null
null
null
test/python/testprocess.py
personx000/paperetl
99cfcf305e60df3eef6c3cab9eb1401057dfa862
[ "Apache-2.0" ]
null
null
null
test/python/testprocess.py
personx000/paperetl
99cfcf305e60df3eef6c3cab9eb1401057dfa862
[ "Apache-2.0" ]
null
null
null
""" Generic ETL process test module """ import unittest from paperetl.schema.article import Article # pylint: disable = C0411 from utils import Utils class TestProcess(unittest.TestCase): """ Generic ETL process test """ # Database connection db, cur = None, None def articleCount(self, co...
24.352273
80
0.55623
4a1eaba659e942972b997def72a10a6f1bb43ca9
1,702
py
Python
config/settings/test.py
RedGranatum/Carmesi
bde1d4dd104401ba08e7ba2f3de5b9d5f537dd94
[ "MIT" ]
null
null
null
config/settings/test.py
RedGranatum/Carmesi
bde1d4dd104401ba08e7ba2f3de5b9d5f537dd94
[ "MIT" ]
null
null
null
config/settings/test.py
RedGranatum/Carmesi
bde1d4dd104401ba08e7ba2f3de5b9d5f537dd94
[ "MIT" ]
null
null
null
""" With these settings, tests run faster. """ from .base import * # noqa from .base import env # GENERAL # ------------------------------------------------------------------------------ # https://docs.djangoproject.com/en/dev/ref/settings/#secret-key SECRET_KEY = env( "DJANGO_SECRET_KEY", default="fqBNybUWx...
32.730769
80
0.49765
4a1eac54b11b6c7465d13fb40e7c872df0a3e4ae
2,369
py
Python
test/scons-time/mem/format-gnuplot.py
EmanueleCannizzaro/scons
6baa4e65cdf4df6951473545b69435711864e509
[ "MIT" ]
1
2019-09-18T06:37:02.000Z
2019-09-18T06:37:02.000Z
test/scons-time/mem/format-gnuplot.py
EmanueleCannizzaro/scons
6baa4e65cdf4df6951473545b69435711864e509
[ "MIT" ]
null
null
null
test/scons-time/mem/format-gnuplot.py
EmanueleCannizzaro/scons
6baa4e65cdf4df6951473545b69435711864e509
[ "MIT" ]
null
null
null
#!/usr/bin/env python # # Copyright (c) 2001 - 2016 The SCons Foundation # # 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 us...
29.987342
111
0.739553
4a1ead0243c4651d8831f0a5c6da2c40e23c48a8
8,873
py
Python
upvote/gae/datastore/models/utils.py
iwikmai/upvote
77bb200d0e35a28cc5aed98ceee8e234998814b6
[ "Apache-2.0" ]
453
2017-10-24T15:29:44.000Z
2021-09-27T23:21:20.000Z
upvote/gae/datastore/models/utils.py
iwikmai/upvote
77bb200d0e35a28cc5aed98ceee8e234998814b6
[ "Apache-2.0" ]
58
2018-03-23T21:19:16.000Z
2021-05-23T20:06:05.000Z
upvote/gae/datastore/models/utils.py
iwikmai/upvote
77bb200d0e35a28cc5aed98ceee8e234998814b6
[ "Apache-2.0" ]
36
2018-03-23T21:25:54.000Z
2021-09-27T23:21:24.000Z
# 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 applicable law or a...
31.917266
79
0.749239
4a1eadefde80427b4703f1cf4cfc5eebe257b592
245
py
Python
Python/01 - Introduction/Write a function.py
sohammanjrekar/HackerRank
1f5010133a1ac1e765e855a086053c97d9e958be
[ "MIT" ]
null
null
null
Python/01 - Introduction/Write a function.py
sohammanjrekar/HackerRank
1f5010133a1ac1e765e855a086053c97d9e958be
[ "MIT" ]
null
null
null
Python/01 - Introduction/Write a function.py
sohammanjrekar/HackerRank
1f5010133a1ac1e765e855a086053c97d9e958be
[ "MIT" ]
null
null
null
def is_leap(year): leap = False # Write your logic here if year % 400 == 0: leap = True elif year % 4 == 0 and year % 100 != 0: leap = True return leap year = int(input()) print(is_leap(year))
17.5
44
0.514286
4a1eae3c76790d6e6a5fa3e941d0803194d70f02
270
py
Python
tests/artificial/transf_BoxCox/trend_MovingAverage/cycle_7/ar_/test_artificial_128_BoxCox_MovingAverage_7__20.py
jmabry/pyaf
afbc15a851a2445a7824bf255af612dc429265af
[ "BSD-3-Clause" ]
null
null
null
tests/artificial/transf_BoxCox/trend_MovingAverage/cycle_7/ar_/test_artificial_128_BoxCox_MovingAverage_7__20.py
jmabry/pyaf
afbc15a851a2445a7824bf255af612dc429265af
[ "BSD-3-Clause" ]
1
2019-11-30T23:39:38.000Z
2019-12-01T04:34:35.000Z
tests/artificial/transf_BoxCox/trend_MovingAverage/cycle_7/ar_/test_artificial_128_BoxCox_MovingAverage_7__20.py
jmabry/pyaf
afbc15a851a2445a7824bf255af612dc429265af
[ "BSD-3-Clause" ]
null
null
null
import pyaf.Bench.TS_datasets as tsds import pyaf.tests.artificial.process_artificial_dataset as art art.process_dataset(N = 128 , FREQ = 'D', seed = 0, trendtype = "MovingAverage", cycle_length = 7, transform = "BoxCox", sigma = 0.0, exog_count = 20, ar_order = 0);
38.571429
165
0.733333
4a1eaea946487a023b0d11c811ce8d60332fd2e9
51,848
py
Python
appengine/swarming/swarming_bot/bot_code/bot_main.py
amymariaparker2401/luci-py
c5902547adc12390df6b09c825a38370f1034e8b
[ "Apache-2.0" ]
null
null
null
appengine/swarming/swarming_bot/bot_code/bot_main.py
amymariaparker2401/luci-py
c5902547adc12390df6b09c825a38370f1034e8b
[ "Apache-2.0" ]
1
2022-03-02T09:56:27.000Z
2022-03-02T09:56:27.000Z
appengine/swarming/swarming_bot/bot_code/bot_main.py
Lees78/luci-py
7b854c55f63e648005ae8aa38e2e41cd8f99feda
[ "Apache-2.0" ]
null
null
null
# Copyright 2013 The LUCI Authors. All rights reserved. # Use of this source code is governed under the Apache License, Version 2.0 # that can be found in the LICENSE file. """Swarming bot main process. This is the program that communicates with the Swarming server, ensures the code is always up to date and executes ...
35.103588
97
0.693064
4a1eaf4450edc58e208b3276c46323f6ed5de127
4,868
py
Python
test/unit/managers/base.py
tsungjui/fusionline
26d5d41e82ac83822ba41df1cd14c54afa112655
[ "CC-BY-3.0" ]
1
2019-11-03T11:45:43.000Z
2019-11-03T11:45:43.000Z
test/unit/managers/base.py
tsungjui/fusionline
26d5d41e82ac83822ba41df1cd14c54afa112655
[ "CC-BY-3.0" ]
4
2017-05-24T19:36:34.000Z
2019-08-23T02:49:18.000Z
test/unit/managers/base.py
abretaud/galaxy
1ad89511540e6800cd2d0da5d878c1c77d8ccfe9
[ "CC-BY-3.0" ]
null
null
null
""" """ from __future__ import print_function import json import os import sys import unittest import sqlalchemy from six import string_types from galaxy.managers.users import UserManager unit_root = os.path.abspath( os.path.join( os.path.dirname( __file__ ), os.pardir ) ) sys.path.insert( 1, unit_root ) from unitt...
34.524823
116
0.57765
4a1eb1c2a51cf12bc23b7023a2a95d4e9c0bdc3d
6,155
py
Python
OGBN_arxiv/unify/ogb/ogbn_arxiv/args.py
x-zho14/Unified-LTH-GNN
edbb2f9aaa7cb363424dcfcb2ce198cfb66f3d55
[ "MIT" ]
29
2021-02-17T02:46:54.000Z
2022-03-18T02:09:03.000Z
OGBN_arxiv/unify/ogb/ogbn_arxiv/args.py
x-zho14/Unified-LTH-GNN
edbb2f9aaa7cb363424dcfcb2ce198cfb66f3d55
[ "MIT" ]
1
2021-09-03T13:30:50.000Z
2021-09-03T13:30:50.000Z
OGBN_arxiv/unify/ogb/ogbn_arxiv/args.py
x-zho14/Unified-LTH-GNN
edbb2f9aaa7cb363424dcfcb2ce198cfb66f3d55
[ "MIT" ]
10
2021-04-01T16:27:03.000Z
2022-03-07T09:20:38.000Z
import __init__ import argparse import uuid import logging import time import os import sys from utils.logger import create_exp_dir import glob class ArgsInit(object): def __init__(self): parser = argparse.ArgumentParser(description='DeeperGCN') ### pruning settings parser.add_argument('-...
56.46789
130
0.566856
4a1eb21f4bae9f5dda5ed1cb379f814f29060236
6,061
py
Python
HW2/Video.py
etc1290/Computer-Vision
d4fe765533e0e687e424e17397ff03e8be0fa3b2
[ "MIT" ]
null
null
null
HW2/Video.py
etc1290/Computer-Vision
d4fe765533e0e687e424e17397ff03e8be0fa3b2
[ "MIT" ]
null
null
null
HW2/Video.py
etc1290/Computer-Vision
d4fe765533e0e687e424e17397ff03e8be0fa3b2
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed Oct 7 09:15:07 2020 @author: ST16 """ import os import cv2 import cv2 as cv import numpy as np from datetime import datetime from PIL import ImageFont, ImageDraw, Image #import matplotlib.pyplot as plt #import matplotlib.image as mpimg #Make a New Subfloder if not os.path...
30.611111
135
0.589672
4a1eb2f2fc675bc221980f5c9c89140798d1dc3d
1,464
py
Python
epayco_django/migrations/0004_add_length_to_transaction_fields.py
gustav0/epayco_django
ea71a3a48271ba87a501135ba2025c56279bf8fc
[ "MIT" ]
1
2020-05-09T22:35:10.000Z
2020-05-09T22:35:10.000Z
epayco_django/migrations/0004_add_length_to_transaction_fields.py
gustav0/epayco_django
ea71a3a48271ba87a501135ba2025c56279bf8fc
[ "MIT" ]
2
2020-09-24T10:49:58.000Z
2021-06-25T15:40:34.000Z
epayco_django/migrations/0004_add_length_to_transaction_fields.py
gustav0/epayco_django
ea71a3a48271ba87a501135ba2025c56279bf8fc
[ "MIT" ]
2
2020-07-08T04:46:07.000Z
2020-08-12T13:16:34.000Z
# Generated by Django 2.2.3 on 2021-02-21 02:36 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('epayco_django', '0003_extend_response_reason_text_length'), ] operations = [ migrations.AlterField( model_name='paymentconfirmat...
29.877551
69
0.586749
4a1eb32fcc6d3f5bcc327af1a3c7b423f2412f81
572
py
Python
imagesite/src/config.py
gatarelib/PyTorchCV
5191d0ddc5c42a4cc8dc5451aa14c263c2f3e77f
[ "Apache-2.0" ]
308
2019-08-11T02:12:37.000Z
2022-03-30T07:20:41.000Z
imagesite/src/config.py
shanhedian2017/torchcv
6414f5acb41c2f35f8e79e477a57eaba65591c66
[ "Apache-2.0" ]
19
2019-08-22T04:57:33.000Z
2022-03-27T10:59:23.000Z
imagesite/src/config.py
shanhedian2017/torchcv
6414f5acb41c2f35f8e79e477a57eaba65591c66
[ "Apache-2.0" ]
64
2019-08-17T07:09:50.000Z
2022-03-27T11:23:39.000Z
#!/usr/bin/env python # -*- coding:utf-8 -*- # Author: Donny You(youansheng@gmail.com) def getNetworkIp(): import socket s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) s.setsockopt(socket.SOL_SOCKET, socket.SO_BROADCAST, 1) s.connect(('<broadcast>', 0)) return s.getsockname()[0] IP = getNe...
23.833333
59
0.638112
4a1eb4008320f876c9a9cc0a96f600ff69f33581
9,516
py
Python
bert_sbd.py
ajitrajasekharan/simple_sbd
f0b4abb511f409ca02b61ce930126f147e72b7e0
[ "MIT" ]
2
2021-03-16T03:23:34.000Z
2022-01-19T03:05:11.000Z
bert_sbd.py
ajitrajasekharan/simple_sbd
f0b4abb511f409ca02b61ce930126f147e72b7e0
[ "MIT" ]
null
null
null
bert_sbd.py
ajitrajasekharan/simple_sbd
f0b4abb511f409ca02b61ce930126f147e72b7e0
[ "MIT" ]
1
2022-01-19T03:05:11.000Z
2022-01-19T03:05:11.000Z
import os import sys import string import pdb import argparse #this is a primitive sentence boundary detector #this splits sentences on period boundaries. It skips line without sentence delimiters that exceed max_sequence_length in chars. Also skips lines with less than three words #this code needs to be changed to i...
38.526316
311
0.560635
4a1eb4ff8d4d5ceb1c33751565cdf8218f3c81fb
1,425
py
Python
qiskit/aqua/utils/decimal_to_binary.py
Nick-Singstock/qiskit-aqua
8c2bc57b78dec447faec3adbc966471a3206c2ef
[ "Apache-2.0" ]
1
2020-11-06T01:09:28.000Z
2020-11-06T01:09:28.000Z
qiskit/aqua/utils/decimal_to_binary.py
Nick-Singstock/qiskit-aqua
8c2bc57b78dec447faec3adbc966471a3206c2ef
[ "Apache-2.0" ]
null
null
null
qiskit/aqua/utils/decimal_to_binary.py
Nick-Singstock/qiskit-aqua
8c2bc57b78dec447faec3adbc966471a3206c2ef
[ "Apache-2.0" ]
1
2020-11-06T01:09:43.000Z
2020-11-06T01:09:43.000Z
# -*- coding: utf-8 -*- # This code is part of Qiskit. # # (C) Copyright IBM Corp. 2017 and later. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2....
39.583333
98
0.749474
4a1eb6bcb80788670c16b373f52b7241e2cf1059
9,314
py
Python
sdk/python/pulumi_azure_native/documentdb/v20151106/get_database_account_sql_container.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/documentdb/v20151106/get_database_account_sql_container.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/documentdb/v20151106/get_database_account_sql_container.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "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 from ... import _utilities, _tables from...
40.672489
505
0.659652
4a1eb7177e6eb422e8c1f9a204377485ecfaaf07
1,864
py
Python
tests/photos/test_photo_categories.py
Torniojaws/vortech-backend
f775a97eeae089fa720088d86fe92d40bc5d65bc
[ "MIT" ]
null
null
null
tests/photos/test_photo_categories.py
Torniojaws/vortech-backend
f775a97eeae089fa720088d86fe92d40bc5d65bc
[ "MIT" ]
93
2017-09-01T22:24:10.000Z
2021-12-22T14:07:06.000Z
tests/photos/test_photo_categories.py
Torniojaws/vortech-backend
f775a97eeae089fa720088d86fe92d40bc5d65bc
[ "MIT" ]
null
null
null
import json import unittest from flask_caching import Cache from app import app, db from apps.photos.models import PhotoCategories class TestPhotoCategories(unittest.TestCase): def setUp(self): # Clear redis cache completely cache = Cache() cache.init_app(app, config={"CACHE_TYPE": "Redi...
33.890909
92
0.624464
4a1eb7a87688ef157d87d4bc54a714acc3182dde
831
py
Python
Leetcode/1570-dot_product_two_vectors.py
EdwaRen/Competitve-Programming
e8bffeb457936d28c75ecfefb5a1f316c15a9b6c
[ "MIT" ]
1
2021-05-03T21:48:25.000Z
2021-05-03T21:48:25.000Z
Leetcode/1570-dot_product_two_vectors.py
EdwaRen/Competitve_Programming
e8bffeb457936d28c75ecfefb5a1f316c15a9b6c
[ "MIT" ]
null
null
null
Leetcode/1570-dot_product_two_vectors.py
EdwaRen/Competitve_Programming
e8bffeb457936d28c75ecfefb5a1f316c15a9b6c
[ "MIT" ]
null
null
null
class SparseVector: def __init__(self, nums): """ :type nums: List[int] mapping for index => value """ self.nums = {idx: val for idx, val in enumerate(nums) if val} # Return the dotProduct of two sparse vectors def dotProduct(self, vec): """ :type vec...
25.181818
69
0.54994
4a1eb7cbf1a5674f47c445afe12ab0b04b263d9d
9,586
py
Python
matcher/parser.py
INK-USC/expl-refinement
815a7892a8d4c42fb429856746212a44f67d2547
[ "MIT" ]
7
2021-09-29T08:14:30.000Z
2022-03-27T13:12:37.000Z
matcher/parser.py
INK-USC/expl-refinement
815a7892a8d4c42fb429856746212a44f67d2547
[ "MIT" ]
null
null
null
matcher/parser.py
INK-USC/expl-refinement
815a7892a8d4c42fb429856746212a44f67d2547
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F import copy import logging from dictionary import STRING2PREDICATE, WORD2NUMBER, OPS_FEATURE, RAW_LEXICON from utils import SPECIAL_CHARS, REVERSE_SPECIAL_CHARS from rule import Rule from nltk.ccg import chart, lexicon from read_instance import Instanc...
38.191235
112
0.554767
4a1eb7eee316f9ffe10562fbc5b6532105f32877
11,619
py
Python
venv/Lib/site-packages/decorators.py
BigtoC/NextCloudAPI
fd93d1ee658ae5799e01bbaffda19b1c03c81f13
[ "MIT" ]
1
2020-03-18T15:19:22.000Z
2020-03-18T15:19:22.000Z
venv/Lib/site-packages/decorators.py
BigtoC/NextCloudAPI
fd93d1ee658ae5799e01bbaffda19b1c03c81f13
[ "MIT" ]
null
null
null
venv/Lib/site-packages/decorators.py
BigtoC/NextCloudAPI
fd93d1ee658ae5799e01bbaffda19b1c03c81f13
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals, division, print_function, absolute_import import functools import inspect import re __version__ = "0.1.1" class Decorator(object): """ A decorator class that you can be extended that allows you to do normal decorators with no arguments, or...
39.65529
111
0.608744
4a1eb875e9fe4d9d29ca0cebf76c51bd884c5ad3
13,311
py
Python
qupulse/_program/transformation.py
eendebakpt/qupulse
5b5b48de10084d413e10cfd8f6e9f7536c69dd70
[ "MIT" ]
30
2018-09-13T02:59:55.000Z
2022-03-21T04:25:22.000Z
qupulse/_program/transformation.py
eendebakpt/qupulse
5b5b48de10084d413e10cfd8f6e9f7536c69dd70
[ "MIT" ]
220
2018-09-06T14:43:15.000Z
2022-03-25T12:26:25.000Z
qupulse/_program/transformation.py
eendebakpt/qupulse
5b5b48de10084d413e10cfd8f6e9f7536c69dd70
[ "MIT" ]
14
2019-01-08T14:42:36.000Z
2021-05-21T08:53:06.000Z
from typing import Mapping, Set, Tuple, Sequence, AbstractSet, Union from abc import abstractmethod from numbers import Real import numpy as np from qupulse import ChannelID from qupulse.comparable import Comparable from qupulse.utils.types import SingletonABCMeta class Transformation(Comparable): _identity_sin...
41.083333
126
0.692209
4a1eb8d5a1ef6e37d731606af1020fcb83e266d9
1,008
py
Python
problems/47/solution_47.py
r1cc4rdo/daily_coding_problem
6ac85309fad2f64231ac7ab94aa4158e18bdec40
[ "Unlicense" ]
158
2018-01-25T06:33:30.000Z
2022-03-14T23:18:05.000Z
problems/47/solution_47.py
r1cc4rdo/daily_coding_problem
6ac85309fad2f64231ac7ab94aa4158e18bdec40
[ "Unlicense" ]
9
2018-07-04T00:31:57.000Z
2020-05-16T21:02:30.000Z
problems/47/solution_47.py
r1cc4rdo/daily_coding_problem
6ac85309fad2f64231ac7ab94aa4158e18bdec40
[ "Unlicense" ]
50
2018-06-22T16:48:44.000Z
2022-01-11T16:45:48.000Z
def coding_problem_47(prices): """ Given a array of numbers representing the stock prices of a company in chronological order, write a function that calculates the maximum profit you could have made from buying and selling that stock once. You must buy before you can sell it. For example, given [9, 11, ...
36
118
0.662698
4a1eb8f52ef2f0347b385d104d0706f75c3bfff9
1,338
py
Python
xlsx2html/format/locale.py
gorj-tessella/xlsx2html
bbd384341be2920c8782dbe60467d531b851da86
[ "MIT" ]
null
null
null
xlsx2html/format/locale.py
gorj-tessella/xlsx2html
bbd384341be2920c8782dbe60467d531b851da86
[ "MIT" ]
null
null
null
xlsx2html/format/locale.py
gorj-tessella/xlsx2html
bbd384341be2920c8782dbe60467d531b851da86
[ "MIT" ]
null
null
null
import re from babel import Locale, UnknownLocaleError from xlsx2html.constants import LCID_HEX_MAP LOCALE_FORMAT_RE = re.compile(r''' \[ \$ (?:.+|) -(?P<lcid>[0-9A-Fa-f]{3,4}) \] ''' , re.VERBOSE) def parse_locale_code(code): ''' >>> parse_locale_code('-404') 'zh_Ha...
23.068966
55
0.591181
4a1eb8f749bfb3d62b31d05ec3e7d7c2c876bde7
3,733
py
Python
scripts/ft_glue.py
a1600012888/fairseq
dbd2cd08fc396f919d2e737513095fcb966896c0
[ "MIT" ]
null
null
null
scripts/ft_glue.py
a1600012888/fairseq
dbd2cd08fc396f919d2e737513095fcb966896c0
[ "MIT" ]
null
null
null
scripts/ft_glue.py
a1600012888/fairseq
dbd2cd08fc396f919d2e737513095fcb966896c0
[ "MIT" ]
1
2020-04-01T03:31:00.000Z
2020-04-01T03:31:00.000Z
import argparse import os import numpy as np task_name = ['MNLI', 'QNLI', 'QQP', 'RTE', 'SST-2', 'MRPC', 'CoLA', 'STS-B'] dataset_dir_name = ['MNLI-bin', 'QNLI-bin', 'QQP-bin', 'RTE-bin', 'SST-2-bin', 'MRPC-bin', 'CoLA-bin', 'STS-B-bin'] num_classes = [3,2,2,2,2,2,2,1] lrs = ...
36.242718
102
0.582641
4a1eb95486eee84b31e748dc62063be42a31c012
22,623
py
Python
models/det_densefusion_plus_2.py
simon3dv/frustum-convnet
73cffa8e53af8a4f59255591cf2ba4af6916602c
[ "MIT" ]
null
null
null
models/det_densefusion_plus_2.py
simon3dv/frustum-convnet
73cffa8e53af8a4f59255591cf2ba4af6916602c
[ "MIT" ]
null
null
null
models/det_densefusion_plus_2.py
simon3dv/frustum-convnet
73cffa8e53af8a4f59255591cf2ba4af6916602c
[ "MIT" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function import sys import os import math import time import numpy as np import torch import torch.nn as nn import torch.nn.functional as F BASE_DIR = os.path.dirname(os.path.abspath(__file__)) ROOT_DIR = os.path.dir...
36.905383
137
0.631614
4a1eb96323fac49fe02d05ba434489c36d39aaf9
3,260
py
Python
Final/InteractionPage.py
maapte/VRGAutomation
094f233097d0e88c51eadd6ad86fcd6b03c2307a
[ "Apache-2.0" ]
null
null
null
Final/InteractionPage.py
maapte/VRGAutomation
094f233097d0e88c51eadd6ad86fcd6b03c2307a
[ "Apache-2.0" ]
2
2019-05-14T06:19:21.000Z
2019-05-15T21:46:02.000Z
Final/InteractionPage.py
maapte/VRGAutomation
094f233097d0e88c51eadd6ad86fcd6b03c2307a
[ "Apache-2.0" ]
null
null
null
""" __author__ : Manish Apte __maintainer__ : Manish Apte __organization__ : Deloitte """ class InteractionPage: """" Interaction Page class handle interaction attributes""" def __init__(self): self.page_name = "{dynamic}" self.page_referrer = "{dynamic}" self.page_language = "{dynamic...
25.076923
64
0.675153
4a1eb993c41189e335d86893a4631717f4750d63
17,094
py
Python
ex_openmic.py
ishine/PaSST
d7049e78e84ba38173ffd779479d1c9ec7d1c116
[ "Apache-2.0" ]
73
2021-10-30T15:05:27.000Z
2022-03-24T17:47:01.000Z
ex_openmic.py
ishine/PaSST
d7049e78e84ba38173ffd779479d1c9ec7d1c116
[ "Apache-2.0" ]
11
2021-12-06T07:02:49.000Z
2022-03-29T11:31:06.000Z
ex_openmic.py
ishine/PaSST
d7049e78e84ba38173ffd779479d1c9ec7d1c116
[ "Apache-2.0" ]
10
2021-11-01T05:48:59.000Z
2022-03-19T13:26:06.000Z
import os import sys import torch from pytorch_lightning.callbacks import ModelCheckpoint from sacred.config_helpers import DynamicIngredient, CMD from torch.nn import functional as F import numpy as np from ba3l.experiment import Experiment from ba3l.module import Ba3lModule from torch.utils.data import DataLoader ...
36.447761
127
0.615011
4a1ebb35f85a3fb580100e3ad9af5b85050e799c
6,777
py
Python
Udacity_Workspace/person_detect.py
jonathanyeh0723/OpenVINO_Smart_Queuing_System
e08e8f5ca3ad2f58aba91db56bc3a25e336edcd3
[ "Apache-2.0" ]
null
null
null
Udacity_Workspace/person_detect.py
jonathanyeh0723/OpenVINO_Smart_Queuing_System
e08e8f5ca3ad2f58aba91db56bc3a25e336edcd3
[ "Apache-2.0" ]
null
null
null
Udacity_Workspace/person_detect.py
jonathanyeh0723/OpenVINO_Smart_Queuing_System
e08e8f5ca3ad2f58aba91db56bc3a25e336edcd3
[ "Apache-2.0" ]
null
null
null
import argparse import cv2 import os import sys import numpy as np import time from openvino.inference_engine import IECore class Queue: ''' Class for dealing with queues ''' def __init__(self): self.queues=[] def add_queue(self, points): self.queues.append(points) def get_qu...
32.118483
146
0.593183
4a1ebc696fb9584d1ed1e01a3143cf2a2083c2bb
3,773
py
Python
src/env.py
sandysa/Environment_Shaping_NSE
29db4ae6302cc8c6f546fae22ff7eea2588db94f
[ "MIT" ]
null
null
null
src/env.py
sandysa/Environment_Shaping_NSE
29db4ae6302cc8c6f546fae22ff7eea2588db94f
[ "MIT" ]
null
null
null
src/env.py
sandysa/Environment_Shaping_NSE
29db4ae6302cc8c6f546fae22ff7eea2588db94f
[ "MIT" ]
null
null
null
##################################################################### # Author: Sandhya Saisubramanian # Description: Implements value iteration ##################################################################### import numpy as np import sys import timeit class Env(): def __init__(self, states, actions...
29.708661
90
0.48688
4a1ebd29c00b6b3931ff6d9b974c86a2656082e9
832
py
Python
Day01-15/13_exercise_8.py
MaoningGuan/-Python-100-Days
d36e49d67a134278455438348efc41ffb28b778a
[ "MIT" ]
null
null
null
Day01-15/13_exercise_8.py
MaoningGuan/-Python-100-Days
d36e49d67a134278455438348efc41ffb28b778a
[ "MIT" ]
null
null
null
Day01-15/13_exercise_8.py
MaoningGuan/-Python-100-Days
d36e49d67a134278455438348efc41ffb28b778a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- class A(object): def __init__(self, value): self.value = value if __name__ == '__main__': print('----类对象之间赋值------') a = A(100) b = a print(a.value) print(b.value) a.value = 200 print(a.value) print(b.value) b.value = 300 print(a.value) p...
12.606061
31
0.483173
4a1ebdd54adad0afe59326bb5b4d97e1f367fa88
6,752
py
Python
tools/gnc_visualizer/scripts/communications/com_manager.py
limenutt/astrobee
9241e67e6692810d6e275abb3165b6d02f4ca5ef
[ "Apache-2.0" ]
null
null
null
tools/gnc_visualizer/scripts/communications/com_manager.py
limenutt/astrobee
9241e67e6692810d6e275abb3165b6d02f4ca5ef
[ "Apache-2.0" ]
null
null
null
tools/gnc_visualizer/scripts/communications/com_manager.py
limenutt/astrobee
9241e67e6692810d6e275abb3165b6d02f4ca5ef
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # Copyright (c) 2017, United States Government, as represented by the # Administrator of the National Aeronautics and Space Administration. # # All rights reserved. # # The Astrobee platform is licensed under the Apache License, Version 2.0 # (the "License"); you may not use this file except in ...
31.849057
87
0.576126
4a1ebdfd7f49307af7db9e0933d8ce20941817ed
413
py
Python
diventi/ebooks/migrations/0076_section_bookmark.py
flavoi/diven
3173ca3ca3fbedc191b8eab3639a6bceb3c442c4
[ "Apache-2.0" ]
2
2019-06-27T16:00:17.000Z
2020-08-14T07:46:05.000Z
diventi/ebooks/migrations/0076_section_bookmark.py
flavoi/diven
3173ca3ca3fbedc191b8eab3639a6bceb3c442c4
[ "Apache-2.0" ]
26
2020-02-15T22:39:35.000Z
2022-02-19T21:09:01.000Z
diventi/ebooks/migrations/0076_section_bookmark.py
flavoi/diven
3173ca3ca3fbedc191b8eab3639a6bceb3c442c4
[ "Apache-2.0" ]
1
2021-11-12T22:30:15.000Z
2021-11-12T22:30:15.000Z
# Generated by Django 2.2.4 on 2019-08-11 17:14 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('ebooks', '0075_auto_20190811_1913'), ] operations = [ migrations.AddField( model_name='section', name='bookmark', ...
21.736842
77
0.612591