hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
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
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
⌀
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
972
max_forks_repo_name
stringlengths
6
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
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
dd0f74d7272fb85fd538b941eba7aaa5efaa58f3
24,003
py
Python
object_database/web/cells/cells_test.py
szymonlipinski/nativepython
5f0bcc709b99a43681488f2753eccc2ac37a0334
[ "Apache-2.0" ]
null
null
null
object_database/web/cells/cells_test.py
szymonlipinski/nativepython
5f0bcc709b99a43681488f2753eccc2ac37a0334
[ "Apache-2.0" ]
null
null
null
object_database/web/cells/cells_test.py
szymonlipinski/nativepython
5f0bcc709b99a43681488f2753eccc2ac37a0334
[ "Apache-2.0" ]
null
null
null
# Coyright 2017-2019 Nativepython Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
29.236297
101
0.580677
400a42a3c0829c15c924992445867a9dd4d08837
88,531
py
Python
tensorflow/python/ops/sparse_ops.py
Zwysilence/tensorflow
b55001be83da044bb21d539d433dec6231eaec55
[ "Apache-2.0" ]
2
2018-10-17T21:46:24.000Z
2020-07-19T16:02:12.000Z
tensorflow/python/ops/sparse_ops.py
Zwysilence/tensorflow
b55001be83da044bb21d539d433dec6231eaec55
[ "Apache-2.0" ]
1
2019-08-22T20:29:33.000Z
2019-12-19T10:16:21.000Z
tensorflow/python/ops/sparse_ops.py
Zwysilence/tensorflow
b55001be83da044bb21d539d433dec6231eaec55
[ "Apache-2.0" ]
6
2018-12-20T01:35:20.000Z
2020-07-10T17:29:57.000Z
# Copyright 2015 The TensorFlow 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 applica...
38.061479
80
0.669991
7dc3c0290549098e309fd615667d7581472c046f
2,031
py
Python
augmentation/text_augmentation/helpers/eda_nlp/experiments/d_1_train_models.py
jim-schwoebel/allie
d85db041b91c81dfb3fd1a4d719b5aaaf3b6697e
[ "Apache-2.0" ]
87
2020-08-07T09:05:11.000Z
2022-01-24T00:48:22.000Z
src/augment/eda_nlp/experiments/d_1_train_models.py
AWarno/CodeHateChallenge
f02bab7ca93a2441b7b2901094bedee72830b266
[ "MIT" ]
87
2020-08-07T19:12:10.000Z
2022-02-08T14:46:34.000Z
src/augment/eda_nlp/experiments/d_1_train_models.py
AWarno/CodeHateChallenge
f02bab7ca93a2441b7b2901094bedee72830b266
[ "MIT" ]
25
2020-08-07T20:03:08.000Z
2022-03-16T07:33:25.000Z
from methods import * from numpy.random import seed seed(0) ############################### #### run model and get acc #### ############################### def run_model(train_file, test_file, num_classes, model_output_path): #initialize model model = build_model(input_size, word2vec_len, num_classes) #load data...
28.605634
149
0.722304
cc48d86241f630a33b43b8091f0f31e65ae0b0e3
6,015
py
Python
src/hier_clust/recursive_sparsest_cut.py
huangxiang701/polymerNEN
df5d706a881666dac7c38e7151caea8a58862de4
[ "MIT" ]
10
2019-08-11T22:14:27.000Z
2022-03-02T12:58:37.000Z
src/hier_clust/recursive_sparsest_cut.py
iesl/expLinkage
4d46683a3eb86b4a40425acf08b608ab44f5006b
[ "Apache-2.0" ]
null
null
null
src/hier_clust/recursive_sparsest_cut.py
iesl/expLinkage
4d46683a3eb86b4a40425acf08b608ab44f5006b
[ "Apache-2.0" ]
6
2019-06-02T14:50:18.000Z
2021-08-13T07:36:29.000Z
""" Copyright (C) 2019 University of Massachusetts Amherst. This file is part of "expLinkage" http://github.com/iesl/expLinkage 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/l...
34.371429
87
0.520865
13d8919abb37c93adf8c7311ca2a0c5500fb9d81
1,836
py
Python
evermotion_dataset/convert.py
s1ddok/ml-hypersim
43dabf0f60b3a5f392b056c551c59b5201f0b532
[ "AML" ]
2
2021-04-19T09:18:32.000Z
2021-08-25T15:02:51.000Z
evermotion_dataset/convert.py
s1ddok/ml-hypersim
43dabf0f60b3a5f392b056c551c59b5201f0b532
[ "AML" ]
null
null
null
evermotion_dataset/convert.py
s1ddok/ml-hypersim
43dabf0f60b3a5f392b056c551c59b5201f0b532
[ "AML" ]
null
null
null
from glob import glob import h5py import numpy as np from PIL import Image from shutil import copyfile from copy import copy semantic_paths = glob("./**/frame*.semantic.hdf5", recursive=True) semantic_paths.sort() i = 0 for semantic_path in semantic_paths: try: with h5py.File(semantic_path, "r") as f: ...
35.307692
138
0.654684
e7843a3bd4609a30b499d183b6c55d4f33c0d478
352
py
Python
pirates/battle/DistributedTutorialShipCannonAI.py
Willy5s/Pirates-Online-Rewritten
7434cf98d9b7c837d57c181e5dabd02ddf98acb7
[ "BSD-3-Clause" ]
81
2018-04-08T18:14:24.000Z
2022-01-11T07:22:15.000Z
pirates/battle/DistributedTutorialShipCannonAI.py
Willy5s/Pirates-Online-Rewritten
7434cf98d9b7c837d57c181e5dabd02ddf98acb7
[ "BSD-3-Clause" ]
4
2018-09-13T20:41:22.000Z
2022-01-08T06:57:00.000Z
pirates/battle/DistributedTutorialShipCannonAI.py
Willy5s/Pirates-Online-Rewritten
7434cf98d9b7c837d57c181e5dabd02ddf98acb7
[ "BSD-3-Clause" ]
26
2018-05-26T12:49:27.000Z
2021-09-11T09:11:59.000Z
from direct.distributed.DistributedObjectAI import DistributedObjectAI from direct.directnotify import DirectNotifyGlobal class DistributedTutorialShipCannonAI(DistributedObjectAI): notify = DirectNotifyGlobal.directNotify.newCategory('DistributedTutorialShipCannonAI') def __init__(self, air): Distrib...
44
91
0.840909
724755ff737c436bd55cca466f089f832d8cbbe6
742
py
Python
data_xray/cluster/clusterviz.py
amplifilo/data-xray
c68c9b352efde0776189210794aeef84ae2cf6c2
[ "Apache-2.0" ]
null
null
null
data_xray/cluster/clusterviz.py
amplifilo/data-xray
c68c9b352efde0776189210794aeef84ae2cf6c2
[ "Apache-2.0" ]
null
null
null
data_xray/cluster/clusterviz.py
amplifilo/data-xray
c68c9b352efde0776189210794aeef84ae2cf6c2
[ "Apache-2.0" ]
null
null
null
from ..modules import * def PlotClustered(dat,labels, xvec=None, cfig=None): """ experimental. Plot clustered spectra. Will likely be deprecated :param dat: :param labels: :param xvec: :param cfig: :return: """ if xvec is None: xvec = np.arange(dat.shape[1]) n_cluster...
23.1875
67
0.601078
656d068dadcbb894fda834ed115faf43823e1fcb
9,380
py
Python
lifted/__init__.py
wbbradley/python-parsing
ce31e3f672aa78a8983c0249f805c0c70404764b
[ "MIT" ]
1
2020-02-02T18:06:25.000Z
2020-02-02T18:06:25.000Z
lifted/__init__.py
wbbradley/python-parsing
ce31e3f672aa78a8983c0249f805c0c70404764b
[ "MIT" ]
null
null
null
lifted/__init__.py
wbbradley/python-parsing
ce31e3f672aa78a8983c0249f805c0c70404764b
[ "MIT" ]
null
null
null
"""Parser combinator framework.""" from collections import namedtuple from typing import Callable, Optional, Any, Union, Iterable, TypeVar from typing_extensions import TypeAlias class Error(Exception): """Module error class.""" class ParserError(Error): """Likely an error exists in the parser.""" # The c...
31.059603
90
0.618124
28fece1a02b549c0b0bbf0d9af8c066c3b08b2c0
115,340
py
Python
api/app/helper/gdal2tiles-multiprocess.py
enermaps/Hotmaps-toolbox-service
a9a5616e3c6fad081134aadf5ce96b3dcc416bf9
[ "Apache-2.0" ]
null
null
null
api/app/helper/gdal2tiles-multiprocess.py
enermaps/Hotmaps-toolbox-service
a9a5616e3c6fad081134aadf5ce96b3dcc416bf9
[ "Apache-2.0" ]
1
2020-10-09T14:09:57.000Z
2020-10-27T09:27:53.000Z
api/app/helper/gdal2tiles-multiprocess.py
enermaps/Hotmaps-toolbox-service
a9a5616e3c6fad081134aadf5ce96b3dcc416bf9
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # ****************************************************************************** # $Id: gdal2tiles.py 27349 2014-05-16 18:58:51Z rouault $ # # Project: Google Summer of Code 2007, 2008 (http://code.google.com/soc/) # Support: BRGM (http://www.brgm.fr) # Purpose: Convert a ...
38.242706
380
0.488712
56c8f5945fd1271efdfdb137a4e4388b3aaedbf7
799
py
Python
rofify/src/Hotkeys.py
dbkosky/rofify
0b5ebacc257cf6b192e4ef6f7c6cc378fd452301
[ "MIT" ]
4
2021-05-28T21:46:45.000Z
2021-12-08T18:15:53.000Z
rofify/src/Hotkeys.py
dbkosky/rofify
0b5ebacc257cf6b192e4ef6f7c6cc378fd452301
[ "MIT" ]
null
null
null
rofify/src/Hotkeys.py
dbkosky/rofify
0b5ebacc257cf6b192e4ef6f7c6cc378fd452301
[ "MIT" ]
1
2021-07-11T22:18:56.000Z
2021-07-11T22:18:56.000Z
from rofify.src.SpotifyAPI import spotify import os class Hotkeys: # Map of corresponding actions for custom keybindings input_map = { '10':spotify.playback.previous, '11':spotify.playback.next, '12':spotify.playback.play_pause, '13':spotify.playback.toggle_shuffle, '14...
29.592593
87
0.633292
e930d2bb6feb82c11ea914fa8293f817ddd9b04e
3,159
py
Python
crome_synthesis/world/__init__.py
pierg/crome-synthesis
c4392e69176e67e99c4bbacf8affbd949acebd2a
[ "MIT" ]
null
null
null
crome_synthesis/world/__init__.py
pierg/crome-synthesis
c4392e69176e67e99c4bbacf8affbd949acebd2a
[ "MIT" ]
null
null
null
crome_synthesis/world/__init__.py
pierg/crome-synthesis
c4392e69176e67e99c4bbacf8affbd949acebd2a
[ "MIT" ]
null
null
null
from __future__ import annotations import uuid from copy import copy from dataclasses import dataclass, field from crome_logic.specification.temporal import LTL from crome_logic.typelement import CromeType, TypeKind from crome_logic.typelement.robotic import ( BooleanAction, BooleanContext, BooleanLocatio...
33.606383
116
0.654954
5ac3f991446125011e42d9d91adb545f9dff9187
1,985
py
Python
procgen_adventure/replays/non_sequence/frame.py
Laurans/procgen_adventure
5f88f3f647f7854c8fb2ae516f3490d89845eefa
[ "MIT" ]
2
2020-04-02T11:51:43.000Z
2020-04-20T20:07:03.000Z
procgen_adventure/replays/non_sequence/frame.py
Laurans/procgen_adventure
5f88f3f647f7854c8fb2ae516f3490d89845eefa
[ "MIT" ]
1
2020-04-08T10:34:29.000Z
2020-04-29T21:08:48.000Z
procgen_adventure/replays/non_sequence/frame.py
Laurans/procgen_adventure
5f88f3f647f7854c8fb2ae516f3490d89845eefa
[ "MIT" ]
null
null
null
import numpy as np from procgen_adventure.replays.async_ import AsyncReplayBufferMixin from procgen_adventure.replays.frame import FrameBufferMixin from procgen_adventure.replays.non_sequence.n_step import NStepReturnBuffer from procgen_adventure.replays.non_sequence.prioritized import PrioritizedReplay from procgen_a...
37.45283
86
0.700252
b587d2794351d61a81a108ce832fc32a3af5ea0a
9,213
py
Python
train.py
sanicmagister/dcgan-pytorch
85612e9783445e6816b5a477151c90998151337c
[ "MIT" ]
null
null
null
train.py
sanicmagister/dcgan-pytorch
85612e9783445e6816b5a477151c90998151337c
[ "MIT" ]
null
null
null
train.py
sanicmagister/dcgan-pytorch
85612e9783445e6816b5a477151c90998151337c
[ "MIT" ]
null
null
null
import os import random import argparse import warnings import torch import torch.nn as nn import torch.optim as optim import torchvision.utils as vutils from libs import model, utils, visuals warnings.filterwarnings("ignore", category=UserWarning) parser = argparse.ArgumentParser() parser.add_argument("--new", actio...
40.407895
110
0.581895
35fa9929569b58b4cb0913e0b8536dad77326e41
6,753
py
Python
flask_cas/routing.py
youjiajia/Flask-CAS
7821136044738be1dafe6cf1be06b877a802b556
[ "BSD-3-Clause" ]
null
null
null
flask_cas/routing.py
youjiajia/Flask-CAS
7821136044738be1dafe6cf1be06b877a802b556
[ "BSD-3-Clause" ]
null
null
null
flask_cas/routing.py
youjiajia/Flask-CAS
7821136044738be1dafe6cf1be06b877a802b556
[ "BSD-3-Clause" ]
null
null
null
import flask import logging from xmltodict import parse from flask import current_app, request, session, url_for from urllib.parse import unquote, urlencode from .cas_urls import create_cas_login_url, create_url from .cas_urls import create_cas_logout_url from .cas_urls import create_cas_validate_url try: from ur...
41.429448
133
0.682808
7a67ca874a74c965d89428ea1d283b149fcb4aa3
86,427
py
Python
tests/unit/test_query.py
crwilcox/python-ndb
fc31553c77f6e7865df0efd4c820f69366f6607c
[ "Apache-2.0" ]
null
null
null
tests/unit/test_query.py
crwilcox/python-ndb
fc31553c77f6e7865df0efd4c820f69366f6607c
[ "Apache-2.0" ]
null
null
null
tests/unit/test_query.py
crwilcox/python-ndb
fc31553c77f6e7865df0efd4c820f69366f6607c
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
36.252936
87
0.645122
658cb15167b5fa81f13b124783f5fa14c7ec6faf
1,607
py
Python
2020/day22/2/solution.py
CakeOrRiot/AdventOfCode2020
60fa431c932a778137e602acfe25a1dee51d9884
[ "MIT" ]
null
null
null
2020/day22/2/solution.py
CakeOrRiot/AdventOfCode2020
60fa431c932a778137e602acfe25a1dee51d9884
[ "MIT" ]
null
null
null
2020/day22/2/solution.py
CakeOrRiot/AdventOfCode2020
60fa431c932a778137e602acfe25a1dee51d9884
[ "MIT" ]
null
null
null
from collections import deque from copy import deepcopy def game(cards1, cards2,prev_games): # print(cards1) # print(cards2) # print(prev_games) # print('--------------------------------------------') while cards1 and cards2: if (tuple(cards1),tuple(cards2)) in prev_games: retur...
26.344262
78
0.503423
daa7039b5af7bf813b6a1ae5895cbb04aaceaa4c
1,963
py
Python
quelldatenbank.py
kuehnef/DMA2022TeamA
44ea28be5dd77bf7b492195806731a6bb71ba5cb
[ "Apache-2.0" ]
null
null
null
quelldatenbank.py
kuehnef/DMA2022TeamA
44ea28be5dd77bf7b492195806731a6bb71ba5cb
[ "Apache-2.0" ]
null
null
null
quelldatenbank.py
kuehnef/DMA2022TeamA
44ea28be5dd77bf7b492195806731a6bb71ba5cb
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """Quelldatenbank.ipynb Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/drive/1vwwuVUfJEWHtYHnCGap-erVFasrcraiI """ # Import der libraries import sqlite3 as sq from sqlite3 import Error import pandas as pd import requests #Verbindung...
44.613636
244
0.7784
924095c90f61ecf10eda1d798b94cb74270e1907
92
py
Python
lock_book/apps.py
golden-dino/lock-book
776d8c74d6960c82801f0cf933b0fec15987e190
[ "MIT" ]
null
null
null
lock_book/apps.py
golden-dino/lock-book
776d8c74d6960c82801f0cf933b0fec15987e190
[ "MIT" ]
null
null
null
lock_book/apps.py
golden-dino/lock-book
776d8c74d6960c82801f0cf933b0fec15987e190
[ "MIT" ]
null
null
null
from django.apps import AppConfig class LockBookConfig(AppConfig): name = 'lock_book'
15.333333
33
0.76087
4588e7c90985ccc244393f752ed0ae9a822c14aa
9,034
py
Python
bin/setup-experiments/generate_comparative_plots.py
Joern-Noeller/ratatoskr
4b60e9c880b7b647ce4ddc76f368452d85cdf5fe
[ "MIT" ]
10
2019-09-05T01:35:53.000Z
2022-02-22T09:14:03.000Z
bin/setup-experiments/generate_comparative_plots.py
Joern-Noeller/ratatoskr
4b60e9c880b7b647ce4ddc76f368452d85cdf5fe
[ "MIT" ]
68
2018-02-05T18:02:38.000Z
2021-03-02T15:34:50.000Z
bin/setup-experiments/generate_comparative_plots.py
Joern-Noeller/ratatoskr
4b60e9c880b7b647ce4ddc76f368452d85cdf5fe
[ "MIT" ]
22
2018-10-31T01:43:46.000Z
2022-02-22T09:14:07.000Z
#!/bin/python # Copyright 2018 Jan Moritz Joseph # 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, ...
38.772532
89
0.576932
be3f0e8b87716cabb4be63919b5cc4e6d2e860b5
5,504
py
Python
telemetry/sensors/Adafruit_I2C.py
WxOutside/software
f9df6c08cbe81dd9349cab86278b92b5905dbc97
[ "Unlicense" ]
null
null
null
telemetry/sensors/Adafruit_I2C.py
WxOutside/software
f9df6c08cbe81dd9349cab86278b92b5905dbc97
[ "Unlicense" ]
null
null
null
telemetry/sensors/Adafruit_I2C.py
WxOutside/software
f9df6c08cbe81dd9349cab86278b92b5905dbc97
[ "Unlicense" ]
null
null
null
#!/usr/bin/python import re import smbus # =========================================================================== # Adafruit_I2C Class # =========================================================================== class Adafruit_I2C(object): @staticmethod def getPiRevision(): "Gets the version number of ...
34.186335
105
0.618278
a4c812f578706154c8f20e382e549a6df046b807
6,335
py
Python
bindings/python/ybc.py
smadappa/ybc
3e231fbfdec2965224193c3655a28a495982a42c
[ "BSD-2-Clause" ]
261
2015-01-02T03:09:56.000Z
2022-03-13T14:00:11.000Z
bindings/python/ybc.py
smadappa/ybc
3e231fbfdec2965224193c3655a28a495982a42c
[ "BSD-2-Clause" ]
14
2015-01-28T23:47:49.000Z
2018-12-07T14:22:28.000Z
bindings/python/ybc.py
valyala/ybc
3d480539f84dff02fcdd4fc62f6818df0511fecd
[ "BSD-2-Clause" ]
42
2015-01-29T03:37:31.000Z
2020-02-13T12:58:36.000Z
import ctypes import os _CURRENT_DIR = os.path.dirname(os.path.abspath(__file__)) _ybc = ctypes.cdll.LoadLibrary(_CURRENT_DIR + "/libybc-release.so") class Error(Exception): pass class OpenFailedError(Error): pass class NoSpaceError(Error): pass class ItemTooLargeError(Error): pass class CacheMissError(Error): pass ...
27.663755
90
0.704341
d01873aeda662ffc0024ce8ae9b5ed5e9151dd44
5,470
py
Python
Chap2_Assett_Selling/function/AssetSellingModel.py
Peymankor/seqdec_powell_repo
d3a03399ca7762821e80988d112f98bad5adefd8
[ "MIT" ]
1
2021-04-21T19:21:53.000Z
2021-04-21T19:21:53.000Z
Chap2_Assett_Selling/function/AssetSellingModel.py
Efsilvaa/seqdec_powell_repo
d3a03399ca7762821e80988d112f98bad5adefd8
[ "MIT" ]
null
null
null
Chap2_Assett_Selling/function/AssetSellingModel.py
Efsilvaa/seqdec_powell_repo
d3a03399ca7762821e80988d112f98bad5adefd8
[ "MIT" ]
2
2021-04-21T19:21:45.000Z
2021-06-24T18:19:17.000Z
""" Asset selling model class Adapted from code by Donghun Lee (c) 2018 """ from collections import namedtuple import numpy as np class AssetSellingModel(): """ Base class for model """ def __init__(self, state_variable, decision_variable, state_0, exog_0,T=10, exog_info_fn=None, transition_fn=None, ...
35.290323
121
0.642048
1fa8508af53315e90f360e43856213e2b95832eb
620
py
Python
LeetCode/2-Add-Two-Numbers☆/Add-Two-Numbers.py
hscspring/TheAlgorithms-Python
5c2faea1d2d25a9a81a4786e053b0cc58ab46c6f
[ "MIT" ]
10
2020-07-06T11:00:58.000Z
2022-01-29T09:25:24.000Z
LeetCode/2-Add-Two-Numbers☆/Add-Two-Numbers.py
hscspring/TheAlgorithms-Python
5c2faea1d2d25a9a81a4786e053b0cc58ab46c6f
[ "MIT" ]
null
null
null
LeetCode/2-Add-Two-Numbers☆/Add-Two-Numbers.py
hscspring/TheAlgorithms-Python
5c2faea1d2d25a9a81a4786e053b0cc58ab46c6f
[ "MIT" ]
3
2020-07-13T06:39:23.000Z
2020-08-15T16:29:48.000Z
class Solution: def addTwoNumbers(self, l1, l2): """ :type l1: ListNode :type l2: ListNode :rtype: ListNode """ def get_num(l): llist = [] while l: llist.append(l.val) l = l.next num = sum([n*10**i fo...
31
62
0.464516
b33f97e86f4eb02c942f2c5830908d3fb0ecb70a
2,531
py
Python
pygithub3/core/result/base.py
minichate/python-github3
321385860cb2ecaea1221612682c20e8069768b0
[ "0BSD" ]
107
2015-01-06T09:47:27.000Z
2021-11-02T08:21:58.000Z
pygithub3/core/result/base.py
mikiec84/python-github3
321385860cb2ecaea1221612682c20e8069768b0
[ "0BSD" ]
16
2015-02-17T08:00:58.000Z
2019-09-17T17:23:44.000Z
pygithub3/core/result/base.py
mikiec84/python-github3
321385860cb2ecaea1221612682c20e8069768b0
[ "0BSD" ]
69
2015-01-02T14:38:29.000Z
2022-02-25T10:04:09.000Z
#!/usr/bin/env python # -*- encoding: utf-8 -*- import functools class Method(object): """ It wraps the requester method, with behaviour to results """ def __init__(self, method, request, **method_args): self.method = functools.partial(method, request, **method_args) self.resource = request....
23.009091
71
0.577637
b079615e6956e4decff69f71b54feef88d06fae4
329
py
Python
python_socks/async_/trio/__init__.py
mgorny/python-socks
b6bae4bb904e8c066ec3bb15b408182a57ea2fbf
[ "Apache-2.0" ]
null
null
null
python_socks/async_/trio/__init__.py
mgorny/python-socks
b6bae4bb904e8c066ec3bb15b408182a57ea2fbf
[ "Apache-2.0" ]
null
null
null
python_socks/async_/trio/__init__.py
mgorny/python-socks
b6bae4bb904e8c066ec3bb15b408182a57ea2fbf
[ "Apache-2.0" ]
null
null
null
from ..._types import ProxyType from ..._proxy_factory import ProxyFactory from ..._proxy_async_trio import Socks5Proxy, Socks4Proxy, HttpProxy class Proxy(ProxyFactory): types = { ProxyType.SOCKS4: Socks4Proxy, ProxyType.SOCKS5: Socks5Proxy, ProxyType.HTTP: HttpProxy, } __all__ = ('...
21.933333
68
0.705167
77d621e48cd17d436b9b24d9c16bdfccbd4f076c
200
py
Python
stara/2012/python/main.py
shilangyu/zadania-maturalne
faa2b2ac8e17a7adb22c0c5aeccad9745c05e32c
[ "MIT" ]
3
2019-04-15T14:16:53.000Z
2019-04-26T09:37:19.000Z
stara/2012/python/main.py
shilangyu/zadania-maturalne
faa2b2ac8e17a7adb22c0c5aeccad9745c05e32c
[ "MIT" ]
1
2019-03-11T19:10:33.000Z
2019-03-11T19:10:33.000Z
stara/2010/python/main.py
shilangyu/zadania-maturalne
faa2b2ac8e17a7adb22c0c5aeccad9745c05e32c
[ "MIT" ]
1
2019-04-26T09:38:04.000Z
2019-04-26T09:38:04.000Z
import zad4_a import zad4_b # zebranie odpowiedzi z podpunktow i zapisanie ich do pliku result = '\n'.join([zad4_a.answer, zad4_b.answer]) with open('wyniki.txt', mode='w') as f: f.write(result)
25
59
0.725
3b142739b303647d7229a3f9a9aa4cd8cd94d719
2,031
py
Python
logs_check/logs_check.py
matiasgrana/logs_check
50241197325d12dd0e8080d5b7972d977a683d4b
[ "MIT" ]
null
null
null
logs_check/logs_check.py
matiasgrana/logs_check
50241197325d12dd0e8080d5b7972d977a683d4b
[ "MIT" ]
null
null
null
logs_check/logs_check.py
matiasgrana/logs_check
50241197325d12dd0e8080d5b7972d977a683d4b
[ "MIT" ]
null
null
null
# # documentation: # https://www.geeksforgeeks.org/python-reading-last-n-lines-of-a-file/ import requests import json import os # Return codes expected by Nagios OK = 0 WARNING = 1 CRITICAL = 2 UNKNOWN = 3 class Logs: def __init__(self, filelocation, word_to_check, lines_n=20): #initial ...
28.605634
141
0.489906
716b4e0639301619bef2b55dc1870efe8c48c63e
4,951
py
Python
sgs/search.py
opardal/pySGS
8887bddcb9aa39ec4fc8620e471d553135d5b6be
[ "MIT" ]
null
null
null
sgs/search.py
opardal/pySGS
8887bddcb9aa39ec4fc8620e471d553135d5b6be
[ "MIT" ]
2
2020-11-06T17:49:48.000Z
2020-11-06T21:03:20.000Z
sgs/search.py
angelosalton/pySGS
dc76ef651d4093ec175c3d44e52adcbcde242faf
[ "MIT" ]
null
null
null
from enum import Enum, unique import functools from typing import Union, Optional import requests from retrying import retry import pandas as pd from .common import LRU_CACHE_SIZE, MAX_ATTEMPT_NUMBER, to_datetime @unique class Language(Enum): pt = "pt" en = "en" @unique class SearchURL(Enum): pt = "ht...
27.353591
95
0.59281
d0507e8322be3e7803accbe191ad52a81af57b93
1,254
py
Python
prophyc/six.py
florczakraf/prophy
a42a6151a77b31afa05300fc2e1f52cc15a298cf
[ "MIT" ]
14
2015-02-19T22:00:37.000Z
2020-11-30T03:03:55.000Z
prophyc/six.py
florczakraf/prophy
a42a6151a77b31afa05300fc2e1f52cc15a298cf
[ "MIT" ]
31
2015-06-22T11:11:10.000Z
2021-05-12T06:35:47.000Z
prophyc/six.py
florczakraf/prophy
a42a6151a77b31afa05300fc2e1f52cc15a298cf
[ "MIT" ]
16
2015-06-12T06:48:06.000Z
2019-11-26T22:48:13.000Z
import sys if sys.version < '3': # pragma: no cover from itertools import ifilter reduce = reduce string_types = (str, unicode) def to_bytes(str_): return str_ def decode_string(str_or_unicode_or_bytes): if isinstance(str_or_unicode_or_bytes, str): if any(ord(c) > ...
29.857143
100
0.665072
ee1bf9a44013f50a38d2cbd519209722e8877abc
6,149
py
Python
MacOS/test1.py
wooongdev/sever-agent-system
e0bf2afb4cdfb37c38fe7b030b7f4d9a9e832e8b
[ "MIT" ]
null
null
null
MacOS/test1.py
wooongdev/sever-agent-system
e0bf2afb4cdfb37c38fe7b030b7f4d9a9e832e8b
[ "MIT" ]
null
null
null
MacOS/test1.py
wooongdev/sever-agent-system
e0bf2afb4cdfb37c38fe7b030b7f4d9a9e832e8b
[ "MIT" ]
null
null
null
from PyQt5.QtWidgets import * import sys from player import * QApplication.setAttribute(Qt.AA_EnableHighDpiScaling, True) class CWidget(QWidget): def __init__(self): super().__init__() self.player = CPlayer(self) self.playlist = [] self.selectedList = [0] self.playOp...
32.363158
96
0.544316
e28015d549722e09509592b1c48e937332892bb5
4,452
py
Python
CDARTS_segmentation/dataloaders/datasets/pascal.py
penghouwen/CDARTS
7dddc8d5db4ed343979ed3687c6adfc39dfce284
[ "MIT" ]
21
2020-06-19T01:05:38.000Z
2020-08-11T02:15:03.000Z
CDARTS_segmentation/dataloaders/datasets/pascal.py
penghouwen/CDARTS
7dddc8d5db4ed343979ed3687c6adfc39dfce284
[ "MIT" ]
1
2020-07-11T17:01:07.000Z
2020-07-11T17:01:07.000Z
CDARTS_segmentation/dataloaders/datasets/pascal.py
penghouwen/CDARTS
7dddc8d5db4ed343979ed3687c6adfc39dfce284
[ "MIT" ]
1
2021-08-10T03:23:02.000Z
2021-08-10T03:23:02.000Z
from __future__ import print_function, division import os from PIL import Image import numpy as np from torch.utils.data import Dataset from torchvision import transforms from dataloaders import custom_transforms as tr class VOCSegmentation(Dataset): """ PascalVoc dataset """ NUM_CLASSES = 21 def ...
30.703448
93
0.579739
9ecb38855a4a06ca96220fb07d0522c3e0dc14da
137
py
Python
RobotSimulation/PlanningCore/robot/robot.py
benbenlijie/BilliardRobot
13f72c045c69a0a5ffb8a3cfc3f90897519dabb1
[ "Apache-2.0" ]
null
null
null
RobotSimulation/PlanningCore/robot/robot.py
benbenlijie/BilliardRobot
13f72c045c69a0a5ffb8a3cfc3f90897519dabb1
[ "Apache-2.0" ]
null
null
null
RobotSimulation/PlanningCore/robot/robot.py
benbenlijie/BilliardRobot
13f72c045c69a0a5ffb8a3cfc3f90897519dabb1
[ "Apache-2.0" ]
null
null
null
class Robot(object): def __init__(self, pos): self.pos = pos def __repr__(self): return f'Robot(pos={self.pos})'
22.833333
39
0.591241
7ae044a4564e38d33ffd4cb26abfdf59e180ab86
4,784
py
Python
PP4E-Examples-1.4/Examples/PP4E/Gui/Tools/guiStreams.py
AngelLiang/PP4E
3a7f63b366e1e4700b4d2524884696999a87ba9d
[ "MIT" ]
null
null
null
PP4E-Examples-1.4/Examples/PP4E/Gui/Tools/guiStreams.py
AngelLiang/PP4E
3a7f63b366e1e4700b4d2524884696999a87ba9d
[ "MIT" ]
null
null
null
PP4E-Examples-1.4/Examples/PP4E/Gui/Tools/guiStreams.py
AngelLiang/PP4E
3a7f63b366e1e4700b4d2524884696999a87ba9d
[ "MIT" ]
null
null
null
""" ############################################################################### first-cut implementation of file-like classes that can be used to redirect input and output streams to GUI displays; as is, input comes from a common dialog pop-up (a single output+input interface or a persistent Entry field for input w...
39.53719
81
0.528846
ae696f322cb011c58d7abbca1de396df9fda9394
55,640
py
Python
src/module_list.py
saraedum/sage-renamed
d2da67b14da2ad766a5906425d60d43a3b3e1270
[ "BSL-1.0" ]
null
null
null
src/module_list.py
saraedum/sage-renamed
d2da67b14da2ad766a5906425d60d43a3b3e1270
[ "BSL-1.0" ]
null
null
null
src/module_list.py
saraedum/sage-renamed
d2da67b14da2ad766a5906425d60d43a3b3e1270
[ "BSL-1.0" ]
null
null
null
import os from glob import glob from distutils.extension import Extension from sage.env import SAGE_LOCAL SAGE_INC = os.path.join(SAGE_LOCAL, 'include') ######################################################### ### pkg-config setup ######################################################### import pkgconfig # CBLAS c...
34.645081
208
0.550935
7fbe50df7e0f04a500b83dfb9cc517bec92309b8
187
py
Python
basic-lang-fun/tuples.py
diegopacheco/python-playground
8e6ba427df6922fb578c2328babbf3466687ccbf
[ "Unlicense" ]
null
null
null
basic-lang-fun/tuples.py
diegopacheco/python-playground
8e6ba427df6922fb578c2328babbf3466687ccbf
[ "Unlicense" ]
null
null
null
basic-lang-fun/tuples.py
diegopacheco/python-playground
8e6ba427df6922fb578c2328babbf3466687ccbf
[ "Unlicense" ]
null
null
null
thistuple = ("apple", "banana", "cherry", "apple", "cherry") print(thistuple) fruits = ("apple", "banana", "cherry") (green, yellow, red) = fruits print(green) print(yellow) print(red)
18.7
60
0.657754
048eff18536a312a615f19dc9a5c6bf127b64e98
1,038
py
Python
tinycord/middleware/guild_ban_add.py
tinycord/tinycord
9e817452c1f2357878f07f8622f6240687470cad
[ "MIT" ]
8
2022-01-08T20:04:29.000Z
2022-03-21T19:12:19.000Z
tinycord/middleware/guild_ban_add.py
tinycord/tinycord
9e817452c1f2357878f07f8622f6240687470cad
[ "MIT" ]
null
null
null
tinycord/middleware/guild_ban_add.py
tinycord/tinycord
9e817452c1f2357878f07f8622f6240687470cad
[ "MIT" ]
1
2022-01-02T21:42:53.000Z
2022-01-02T21:42:53.000Z
import typing if typing.TYPE_CHECKING: from ..client import Client from ..core import Gateway, GatewayDispatch from ..models import User async def guild_ban_add(client: "Client", gateway: "Gateway", event: "GatewayDispatch") -> typing.List[typing.Awaitable]: """ |coro| This event called w...
28.054054
121
0.6079
63302d82b9f1ddc4dfdaed62240e12285f1df681
17,011
py
Python
test/functional/wallet_avoidreuse.py
vmta/umkoin
ac2a1f5903444d0b39706119d6ab757afb8b856f
[ "MIT" ]
null
null
null
test/functional/wallet_avoidreuse.py
vmta/umkoin
ac2a1f5903444d0b39706119d6ab757afb8b856f
[ "MIT" ]
null
null
null
test/functional/wallet_avoidreuse.py
vmta/umkoin
ac2a1f5903444d0b39706119d6ab757afb8b856f
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2018-2021 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test the avoid_reuse and setwalletflag features.""" from test_framework.test_framework import UmkoinTe...
44.648294
132
0.662101
78f4c8b19f20fb8ffd1e2c206b18740a8ef4077c
54,244
py
Python
sphinxcontrib/mat_types.py
ilent2/matlabdomain
73776457ca0f81266de9ada227354e4322a92bbe
[ "BSD-2-Clause" ]
null
null
null
sphinxcontrib/mat_types.py
ilent2/matlabdomain
73776457ca0f81266de9ada227354e4322a92bbe
[ "BSD-2-Clause" ]
null
null
null
sphinxcontrib/mat_types.py
ilent2/matlabdomain
73776457ca0f81266de9ada227354e4322a92bbe
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ sphinxcontrib.mat_types ~~~~~~~~~~~~~~~~~~~~~~~ Types for MATLAB. :copyright: Copyright 2014 Mark Mikofski :license: BSD, see LICENSE for details. """ from __future__ import unicode_literals from io import open # for opening files with encoding in Python 2 import os im...
42.14763
124
0.488847
778aa92ed71838cdde55b7a04514f4b69d551276
969
py
Python
django_mri/models/help_text.py
GalBenZvi/django_mri
558e9187a6ba18b7ba69aced919a6f94d066a2fc
[ "Apache-2.0" ]
4
2020-07-27T20:33:54.000Z
2022-01-11T20:24:03.000Z
django_mri/models/help_text.py
GalBenZvi/django_mri
558e9187a6ba18b7ba69aced919a6f94d066a2fc
[ "Apache-2.0" ]
107
2019-09-04T11:38:46.000Z
2022-03-04T13:59:51.000Z
django_mri/models/help_text.py
GalBenZvi/django_mri
558e9187a6ba18b7ba69aced919a6f94d066a2fc
[ "Apache-2.0" ]
2
2019-08-16T10:06:13.000Z
2019-08-30T15:42:45.000Z
""" A module storing strings used to populate the fields' help_text_ attributes. .. _help_text: https://docs.djangoproject.com/en/3.0/ref/forms/fields/#help-text """ SCAN_COMMENTS = ( "If anything noteworthy happened during acquisition, it may be noted here." ) SCAN_DESCRIPTION = "A short description of the sc...
40.375
157
0.76677
86d20ba376b8ded04a1739eeba6b122ac4633ea2
20,899
py
Python
python/ambassador/ir/irambassador.py
imoisharma/emissary
5346ccb06673827a6a2e51ddaf92925f60bd9de9
[ "Apache-2.0" ]
null
null
null
python/ambassador/ir/irambassador.py
imoisharma/emissary
5346ccb06673827a6a2e51ddaf92925f60bd9de9
[ "Apache-2.0" ]
null
null
null
python/ambassador/ir/irambassador.py
imoisharma/emissary
5346ccb06673827a6a2e51ddaf92925f60bd9de9
[ "Apache-2.0" ]
1
2021-03-04T10:23:33.000Z
2021-03-04T10:23:33.000Z
from typing import Any, ClassVar, Dict, List, Optional, TYPE_CHECKING from ..constants import Constants from ..config import Config from .irresource import IRResource from .iripallowdeny import IRIPAllowDeny from .irbasemapping import IRBaseMapping from .irhttpmapping import IRHTTPMapping from .irtls import IRAmbass...
42.82582
269
0.580745
2cde4089599da421010f8f3571eb1c37e307c3a7
22,742
py
Python
tests/seeder.py
DanielGrams/gsevp
e94034f7b64de76f38754b56455e83092378261f
[ "MIT" ]
null
null
null
tests/seeder.py
DanielGrams/gsevp
e94034f7b64de76f38754b56455e83092378261f
[ "MIT" ]
null
null
null
tests/seeder.py
DanielGrams/gsevp
e94034f7b64de76f38754b56455e83092378261f
[ "MIT" ]
null
null
null
class Seeder(object): def __init__(self, app, db, utils): self._app = app self._db = db self._utils = utils def setup_base( self, admin=False, log_in=True, admin_unit_verified=True, email="test@test.de", name="Meine Crew", ): u...
38.415541
1,205
0.657682
5eb618b53d6ba0ea3e93c62e9e16cd3c14b950f2
19,655
py
Python
storyboard/tests/db/migration/test_migrations_base.py
Sitcode-Zoograf/storyboard
5833f87e20722c524a1e4a0b8e1fb82206fb4e5c
[ "Apache-2.0" ]
null
null
null
storyboard/tests/db/migration/test_migrations_base.py
Sitcode-Zoograf/storyboard
5833f87e20722c524a1e4a0b8e1fb82206fb4e5c
[ "Apache-2.0" ]
null
null
null
storyboard/tests/db/migration/test_migrations_base.py
Sitcode-Zoograf/storyboard
5833f87e20722c524a1e4a0b8e1fb82206fb4e5c
[ "Apache-2.0" ]
null
null
null
# Copyright 2010-2011 OpenStack Foundation # Copyright 2012-2013 IBM Corp. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICEN...
40.442387
79
0.626914
5393ddb276f970045112db38d145eb6ac0072d73
3,369
py
Python
deeprank/select_module/pointer_net.py
pl8787/DeepRank_PyTorch
ec24f83168aeadad7f89fd9fae5992abd0da89b1
[ "MIT" ]
31
2019-07-03T15:26:02.000Z
2022-03-06T14:38:25.000Z
deeprank/select_module/pointer_net.py
pl8787/DeepRank_PyTorch
ec24f83168aeadad7f89fd9fae5992abd0da89b1
[ "MIT" ]
1
2020-08-13T21:56:15.000Z
2021-08-10T02:52:52.000Z
deeprank/select_module/pointer_net.py
pl8787/DeepRank_PyTorch
ec24f83168aeadad7f89fd9fae5992abd0da89b1
[ "MIT" ]
8
2019-09-03T01:28:54.000Z
2020-10-30T14:36:37.000Z
from collections import defaultdict import numpy as np import torch import torch.nn as nn import torch.nn.functional as F from deeprank import select_module class PointerNet(select_module.SelectNet): def __init__(self, config, out_device=None): super().__init__(config) self.output_type = 'LL' ...
29.552632
105
0.573464
156fcbdf76d41ecd95e23ea399456da813d79897
2,914
py
Python
insolver/serving/flask_app.py
MindSetLib/Insolver
decca7f0c03943a253a9af09ed60f0fbeff6e7f5
[ "MIT" ]
7
2021-01-28T10:49:14.000Z
2021-11-17T19:48:27.000Z
insolver/serving/flask_app.py
MindSetLib/Insolver
decca7f0c03943a253a9af09ed60f0fbeff6e7f5
[ "MIT" ]
3
2021-11-13T14:47:51.000Z
2021-12-03T13:42:23.000Z
insolver/serving/flask_app.py
MindSetLib/Insolver
decca7f0c03943a253a9af09ed60f0fbeff6e7f5
[ "MIT" ]
null
null
null
import json import os import pickle import pandas as pd from flask import Flask, request, jsonify from insolver import InsolverDataFrame from insolver.transforms import InsolverTransform, init_transforms from insolver.wrappers import InsolverGLMWrapper, InsolverGBMWrapper from insolver.serving import utils model_pat...
28.019231
80
0.705559
e8148d4b1c35a5f14d720b450b1376f2b3ab0620
6,011
py
Python
Medical_Center/A1_Configuring/REL Chart From Matrix Tool/RelChartFromMatrix.py
Pirouz-Nourian/earthy_18
2f88d80c112d645f1a99cddf48860d44d0d72438
[ "CC-BY-4.0" ]
1
2020-12-28T17:24:31.000Z
2020-12-28T17:24:31.000Z
Medical_Center/A1_Configuring/REL Chart From Matrix Tool/RelChartFromMatrix.py
Pirouz-Nourian/earthy_18
2f88d80c112d645f1a99cddf48860d44d0d72438
[ "CC-BY-4.0" ]
null
null
null
Medical_Center/A1_Configuring/REL Chart From Matrix Tool/RelChartFromMatrix.py
Pirouz-Nourian/earthy_18
2f88d80c112d645f1a99cddf48860d44d0d72438
[ "CC-BY-4.0" ]
null
null
null
"""Creates REL chart from excel sheet. Inputs: displacement: REL chart distance from x-x' axis (float) tag_width: Space name tag width (float) tag_height: Space name tag height (float) tags: List of space names (str) matrix: Space connection values (gh...
30.984536
191
0.619531
28f35f9a667bb74e220069f2239a10127aecc6bf
337
py
Python
setup.py
fkromer/roschaos
7ba8e1b3cbd1dcdcdcf8f6a36bdfab2006463d22
[ "Apache-2.0" ]
6
2017-10-09T17:14:51.000Z
2022-03-27T04:39:51.000Z
setup.py
fkromer/roschaos
7ba8e1b3cbd1dcdcdcf8f6a36bdfab2006463d22
[ "Apache-2.0" ]
7
2017-10-07T10:07:32.000Z
2017-11-22T21:54:39.000Z
setup.py
fkromer/roschaos
7ba8e1b3cbd1dcdcdcf8f6a36bdfab2006463d22
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python from distutils.core import setup from catkin_pkg.python_setup import generate_distutils_setup d = generate_distutils_setup( packages=['roschaos'], package_dir={'': 'src'}, scripts=['scripts/roschaos'], requires=['genmsg', 'genpy', 'roslib', 'rospkg', 'rospy', 'rosgraph', 'rosnode...
24.071429
84
0.691395
f074507977d668718276c49dc351c8de8230dc94
887
py
Python
boards/models.py
kamranhossain/topic_board
7cacbaf811e50e43bb9d3c559a3c93cfca2d357a
[ "MIT" ]
null
null
null
boards/models.py
kamranhossain/topic_board
7cacbaf811e50e43bb9d3c559a3c93cfca2d357a
[ "MIT" ]
null
null
null
boards/models.py
kamranhossain/topic_board
7cacbaf811e50e43bb9d3c559a3c93cfca2d357a
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth.models import User class Board(models.Model): name = models.CharField(max_length=30, unique=True) description = models.CharField(max_length=100) def __str__(self): return self.name class Topic(models.Model): subject = models.CharField(max...
34.115385
69
0.744081
efc6d3ad77e97ed213e98f1e7420c24a641b77bc
5,159
py
Python
setup.py
frc1678/Scout-Manager-2018
aac00267548cc3d4454c6a6b41dcddefcbfce11a
[ "MIT" ]
null
null
null
setup.py
frc1678/Scout-Manager-2018
aac00267548cc3d4454c6a6b41dcddefcbfce11a
[ "MIT" ]
null
null
null
setup.py
frc1678/Scout-Manager-2018
aac00267548cc3d4454c6a6b41dcddefcbfce11a
[ "MIT" ]
1
2019-01-22T00:38:08.000Z
2019-01-22T00:38:08.000Z
import json import os home = os.path.expanduser('~') apikey = raw_input("Please enter your slack API key or press 'enter' to skip: ") data = { 'scout1': 'AC:22:0B:E3:1A:26', 'scout2': 'AC:22:0B:E3:14:AE', 'scout3': '14:DD:A9:47:40:80', 'scout4': '30:5A:3A:8E:D2:86', 'scout5': 'AC:22:0B:E3:16:84', 'scout6': 'AC:...
35.57931
188
0.72766
10ce05f10dac2fe297d38accf42666377ee73f77
1,060
py
Python
src/genie/libs/parser/iosxr/tests/ShowMplsLdpIgpSync/cli/equal/golden_output1_expected.py
balmasea/genieparser
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
[ "Apache-2.0" ]
204
2018-06-27T00:55:27.000Z
2022-03-06T21:12:18.000Z
src/genie/libs/parser/iosxr/tests/ShowMplsLdpIgpSync/cli/equal/golden_output1_expected.py
balmasea/genieparser
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
[ "Apache-2.0" ]
468
2018-06-19T00:33:18.000Z
2022-03-31T23:23:35.000Z
src/genie/libs/parser/iosxr/tests/ShowMplsLdpIgpSync/cli/equal/golden_output1_expected.py
balmasea/genieparser
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
[ "Apache-2.0" ]
309
2019-01-16T20:21:07.000Z
2022-03-30T12:56:41.000Z
expected_output = { "vrf": { "default": { "interfaces": { "HundredGigE0/0/0/0": { "sync": { "delay": "Disabled", "status": "Ready", "peers": { "63.63.63.63:0": ...
32.121212
83
0.278302
9df44ea1253c241c060afd64510156e2d507b58b
4,744
py
Python
Test_Python_code/final_code/Myanmar/storm.py
pdeesawat/PSIT58_test_01
631946eacd82503e0697680f06290a4fe10f17f2
[ "Apache-2.0" ]
null
null
null
Test_Python_code/final_code/Myanmar/storm.py
pdeesawat/PSIT58_test_01
631946eacd82503e0697680f06290a4fe10f17f2
[ "Apache-2.0" ]
null
null
null
Test_Python_code/final_code/Myanmar/storm.py
pdeesawat/PSIT58_test_01
631946eacd82503e0697680f06290a4fe10f17f2
[ "Apache-2.0" ]
null
null
null
import plotly.plotly as py import plotly.graph_objs as go #Get data data = open('Real_Final_database_02.csv') alldata = data.readlines() listdata = [] for i in alldata: listdata.append(i.strip().split(',')) #Seperate information year = [] affect = [] damage = [] death =[] for j in listdata: if j[0] == 'Myanma...
32.717241
76
0.605185
9ff72e7ff87082cd0a42fe3d50ef460a236e9dfa
8,812
py
Python
unittests/schema_sanity.py
wedgieedward/TrackerDash
53c3ecc7b9124740f05847dbd235b068601c621e
[ "Beerware" ]
null
null
null
unittests/schema_sanity.py
wedgieedward/TrackerDash
53c3ecc7b9124740f05847dbd235b068601c621e
[ "Beerware" ]
2
2015-04-08T23:20:35.000Z
2015-04-08T23:21:57.000Z
unittests/schema_sanity.py
wedgieedward/TrackerDash
53c3ecc7b9124740f05847dbd235b068601c621e
[ "Beerware" ]
null
null
null
""" unit test the schemas """ import unittest from colander import Invalid from copy import deepcopy from TrackerDash.constants import SINGLE_DOCUMENT_GRAPH_TYPES from TrackerDash.constants import TIME_LINEAR_GRAPH_TYPES from TrackerDash.schemas import api class ShowreelItemSchemaSanity(unittest.TestCase): def ...
34.421875
70
0.578756
7f45e9fe3b824024ca7fb7988c05d703bf9ee163
1,065
py
Python
s3_list_object_urls.py
bkc1/s3_list_object_urls
1bae30e7432e7e840c82bdd293f64d110cae84d7
[ "MIT" ]
null
null
null
s3_list_object_urls.py
bkc1/s3_list_object_urls
1bae30e7432e7e840c82bdd293f64d110cae84d7
[ "MIT" ]
null
null
null
s3_list_object_urls.py
bkc1/s3_list_object_urls
1bae30e7432e7e840c82bdd293f64d110cae84d7
[ "MIT" ]
1
2021-12-30T07:21:28.000Z
2021-12-30T07:21:28.000Z
#!/usr/bin/env python3 import boto3 import argparse parser = argparse.ArgumentParser() parser.add_argument('-b','--bucket', help='S3 bucket name', required=True) parser.add_argument('-p','--path_style', help='Enable Legacy Path formatting', action='store_true') args = parser.parse_args() bucket_name = (args.bucket)...
28.783784
99
0.709859
cd86704cf4bf016cfd92e9671029a369a20cf8f5
1,271
py
Python
util/create_dataset.py
lbasek/image-denoising-benchmark
9d753198d715b7628c8e7d9259dfa5c219d033ea
[ "MIT" ]
73
2018-06-13T04:18:34.000Z
2022-03-22T02:08:46.000Z
util/create_dataset.py
FengJunxi/image-denoising-benchmark
9d753198d715b7628c8e7d9259dfa5c219d033ea
[ "MIT" ]
3
2019-01-09T02:15:23.000Z
2019-10-14T12:41:24.000Z
util/create_dataset.py
FengJunxi/image-denoising-benchmark
9d753198d715b7628c8e7d9259dfa5c219d033ea
[ "MIT" ]
23
2018-11-03T09:06:22.000Z
2021-12-30T06:30:38.000Z
import cv2 import glob import os size = 512 # Add yours path to dataset DATASET_PATH = "/Users/lbasek/Desktop/NOS/T3i_Aligned/" batch_list = os.listdir(DATASET_PATH) batch_list = [item for item in batch_list if "Batch" in item] # create dataset directory os.makedirs("dataset", exist_ok=True) batch = 1 for i in sor...
37.382353
107
0.595594
1463207cf8b68757bf37996dc38e2fec5688d2ee
2,140
py
Python
infracode/fabfile.py
samble/exlastic-load-balancer
55d5e85657567896f9ea1471f9b3f053d8dacc05
[ "MIT" ]
2
2016-06-30T00:19:48.000Z
2021-02-14T18:05:09.000Z
infracode/fabfile.py
samble/exlastic-load-balancer
55d5e85657567896f9ea1471f9b3f053d8dacc05
[ "MIT" ]
null
null
null
infracode/fabfile.py
samble/exlastic-load-balancer
55d5e85657567896f9ea1471f9b3f053d8dacc05
[ "MIT" ]
1
2016-06-28T13:46:16.000Z
2016-06-28T13:46:16.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ \x1b[31mYmir Automation:\x1b[0m This is the \x1b[35mExlasticLB\x1b[0m Service """ import os from fabric import api from ymir import load_service_from_json YMIR_SERVICE_JSON = os.path.abspath( os.environ.get( 'YMIR_SERVICE_JSON', os.path.join(os.pa...
33.4375
75
0.673832
0bed55b3fcc7f1edd9304b2a445de3f35e5e5dde
885
py
Python
application/migrations/0026_auto_20200506_1005.py
City-of-Helsinki/events-helsinki-cms
64e4c1ce6cc058fb3783e417560dc244bd753d05
[ "MIT" ]
2
2020-04-20T05:37:28.000Z
2021-02-19T10:33:45.000Z
application/migrations/0026_auto_20200506_1005.py
City-of-Helsinki/events-helsinki-cms
64e4c1ce6cc058fb3783e417560dc244bd753d05
[ "MIT" ]
6
2020-02-12T12:55:37.000Z
2021-03-30T12:56:28.000Z
application/migrations/0026_auto_20200506_1005.py
City-of-Helsinki/events-helsinki-cms
64e4c1ce6cc058fb3783e417560dc244bd753d05
[ "MIT" ]
1
2021-02-18T12:11:18.000Z
2021-02-18T12:11:18.000Z
# Generated by Django 2.2.9 on 2020-05-06 10:05 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('application', '0025_auto_20200505_1608'), ] operations = [ migrations.AlterField( model_name='collections', name='de...
30.517241
100
0.614689
87dda9f60371aa5dc63f722ffa0321546320c323
1,611
py
Python
redis_cache/hash_ring.py
IthacaDream/django-redis
246afca1d8716430c4d9186c1f4cb3b35c2b8918
[ "BSD-3-Clause" ]
null
null
null
redis_cache/hash_ring.py
IthacaDream/django-redis
246afca1d8716430c4d9186c1f4cb3b35c2b8918
[ "BSD-3-Clause" ]
null
null
null
redis_cache/hash_ring.py
IthacaDream/django-redis
246afca1d8716430c4d9186c1f4cb3b35c2b8918
[ "BSD-3-Clause" ]
1
2021-04-08T02:16:12.000Z
2021-04-08T02:16:12.000Z
# -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals import bisect import hashlib class HashRing(object): nodes = [] def __init__(self, nodes=(), replicas=128): self.replicas = replicas self.ring = {} self.sorted_keys = [] for node in nodes: ...
26.85
68
0.577281
91a05cba0735527a0da011a5a88117e4369a97ff
1,090
py
Python
pydleclass.py
suut/psychic-happiness
56c0daef93f40b91e8a859f04a4660dde2b5c5c1
[ "Unlicense" ]
1
2020-02-25T10:47:00.000Z
2020-02-25T10:47:00.000Z
pydleclass.py
suut/psychic-happiness
56c0daef93f40b91e8a859f04a4660dde2b5c5c1
[ "Unlicense" ]
null
null
null
pydleclass.py
suut/psychic-happiness
56c0daef93f40b91e8a859f04a4660dde2b5c5c1
[ "Unlicense" ]
null
null
null
#!/usr/local/bin/python3.4 # -*- coding: utf-8 -*- import pydle class EpikNetExtension(pydle.Client): def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) def on_raw_335(self, params): """the raw numeric 335 tells us that the target user is a bot on the network""" sou...
38.928571
89
0.622018
a03666c40c2cf7e07d5d27c3de94cf167650298b
1,713
py
Python
server/src/controller/Controller.py
MrCheka/langidnn
77788ef1b7c03d3de92cb1f28e6eb7f3a20d262a
[ "MIT" ]
null
null
null
server/src/controller/Controller.py
MrCheka/langidnn
77788ef1b7c03d3de92cb1f28e6eb7f3a20d262a
[ "MIT" ]
7
2020-07-17T01:22:21.000Z
2022-02-26T10:48:01.000Z
server/src/controller/Controller.py
MrCheka/langidnn
77788ef1b7c03d3de92cb1f28e6eb7f3a20d262a
[ "MIT" ]
null
null
null
from flask import Flask from flask import request from flask import jsonify from flask_cors import CORS from src.helpers.NNHelper import NNHelper from src.responses.GetLangsResponse import GetLangsResponse from src.responses.DetectLangsResponse import DetectLangsResponse from src.helpers.JSONHelper import JSONHelper im...
33.588235
109
0.717455
48a7ae7573d9c12eda1cb60b9ae40d7115a42f30
2,416
py
Python
src/protean/adapters/email/__init__.py
nadirhamid/protean
d31bc634e05c9221e82136bf18c2ceaa0982c1c8
[ "BSD-3-Clause" ]
null
null
null
src/protean/adapters/email/__init__.py
nadirhamid/protean
d31bc634e05c9221e82136bf18c2ceaa0982c1c8
[ "BSD-3-Clause" ]
null
null
null
src/protean/adapters/email/__init__.py
nadirhamid/protean
d31bc634e05c9221e82136bf18c2ceaa0982c1c8
[ "BSD-3-Clause" ]
null
null
null
# Standard Library Imports import importlib import logging # Protean from protean.core.exceptions import ConfigurationError from protean.globals import current_uow logger = logging.getLogger("protean.email_providers") class EmailProviders: def __init__(self, domain): self.domain = domain self._e...
36.059701
87
0.641556
bff4f00becfd7f52e2305912146bb5d1a7336ff8
556
py
Python
web/migrations/0010_auto_20150908_1426.py
codeschule/koodikoulu-site
dde9932564f36dce6f4dbfd31e7923f1bae83293
[ "MIT" ]
5
2015-09-16T10:50:53.000Z
2016-01-16T09:10:37.000Z
web/migrations/0010_auto_20150908_1426.py
codeschule/koodikoulu-site
dde9932564f36dce6f4dbfd31e7923f1bae83293
[ "MIT" ]
10
2015-09-07T05:58:03.000Z
2019-02-15T10:36:48.000Z
web/migrations/0010_auto_20150908_1426.py
codeschule/koodikoulu-site
dde9932564f36dce6f4dbfd31e7923f1bae83293
[ "MIT" ]
6
2015-09-06T19:42:46.000Z
2019-12-29T21:31:07.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('web', '0009_auto_20150904_0941'), ] operations = [ migrations.AlterField( model_name='event', name='...
27.8
207
0.629496
99487e3cb8253728ae92d9bb70352a1e4d4def50
1,574
py
Python
sdk/compute/azure-mgmt-imagebuilder/azure/mgmt/imagebuilder/models/operation_display.py
kushan2018/azure-sdk-for-python
08a9296207281f4e90e23cf7a30173863accc867
[ "MIT" ]
1
2022-03-30T22:39:15.000Z
2022-03-30T22:39:15.000Z
sdk/compute/azure-mgmt-imagebuilder/azure/mgmt/imagebuilder/models/operation_display.py
kushan2018/azure-sdk-for-python
08a9296207281f4e90e23cf7a30173863accc867
[ "MIT" ]
54
2016-03-25T17:25:01.000Z
2018-10-22T17:27:54.000Z
azure-mgmt-imagebuilder/azure/mgmt/imagebuilder/models/operation_display.py
xiafu-msft/azure-sdk-for-python
4d9560cfd519ee60667f3cc2f5295a58c18625db
[ "MIT" ]
2
2017-01-20T18:25:46.000Z
2017-05-12T21:31:47.000Z
# 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 ...
37.47619
78
0.603558
85c090858c404dd2cfb871619bbd59bc2a828604
2,840
py
Python
mmocr/models/textdet/necks/fpn_unet.py
jeffreykuang/mmocr-1
b17304edeb493b0a4d7224c23d23b952350d0db5
[ "Apache-2.0" ]
4
2021-07-18T22:31:57.000Z
2021-07-18T22:36:45.000Z
mmocr/models/textdet/necks/fpn_unet.py
jeffreykuang/mmocr-1
b17304edeb493b0a4d7224c23d23b952350d0db5
[ "Apache-2.0" ]
null
null
null
mmocr/models/textdet/necks/fpn_unet.py
jeffreykuang/mmocr-1
b17304edeb493b0a4d7224c23d23b952350d0db5
[ "Apache-2.0" ]
1
2021-04-16T02:01:26.000Z
2021-04-16T02:01:26.000Z
import torch import torch.nn.functional as F from mmcv.cnn import xavier_init from torch import nn from mmdet.models.builder import NECKS class UpBlock(nn.Module): """Upsample block for DRRG and TextSnake.""" def __init__(self, in_channels, out_channels): super().__init__() assert isinstanc...
31.910112
79
0.623592
f1cf2cfe280dd47b1582d9d3015e62635b11da34
203,754
py
Python
util/data/gen/ntdll.dll.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
util/data/gen/ntdll.dll.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
util/data/gen/ntdll.dll.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
symbols = [] exports = [{'type': 'function', 'name': 'A_SHAFinal', 'address': '0x7ffb3e410230'}, {'type': 'function', 'name': 'A_SHAInit', 'address': '0x7ffb3e411060'}, {'type': 'function', 'name': 'A_SHAUpdate', 'address': '0x7ffb3e4110a0'}, {'type': 'function', 'name': 'AlpcAdjustCompletionListConcurrencyCount', 'add...
101,877
203,741
0.689876
98db29884c44fe5cfc41f047392be1503dcaa02b
406
py
Python
x_7_8.py
ofl/kuku
76eefc0d3d859051473ee0d5f48b5d42d17d05a6
[ "MIT" ]
null
null
null
x_7_8.py
ofl/kuku
76eefc0d3d859051473ee0d5f48b5d42d17d05a6
[ "MIT" ]
4
2021-09-23T03:19:52.000Z
2021-11-13T10:38:21.000Z
x_7_8.py
ofl/kuku
76eefc0d3d859051473ee0d5f48b5d42d17d05a6
[ "MIT" ]
null
null
null
# x_7_8 # # 「7-7」のコードを「やめる」と入力するまで何度でも繰り返し質問できるようにコードを追加してください chatbot = [ {'question': 'おはよう', 'answer': 'おはようございます'}, {'question': 'おやすみ', 'answer': 'おやすみなさい'}, {'question': '今日は何日ですか', 'answer': '2021年11月14日です'}, {'question': '今日の天気は', 'answer': '雨です'}, {'question': '何か歌って', 'answer': 'もーもたろさんもも...
27.066667
56
0.598522
45a40da6f97b8df5720559d55c3be352b3e23615
1,458
py
Python
attitude/display/nbextension.py
davenquinn/Attitude
f7cd15212ca7a2f9a0e367cf9769e382eeaea91e
[ "MIT" ]
8
2015-03-24T09:08:32.000Z
2021-05-17T03:32:01.000Z
attitude/display/nbextension.py
davenquinn/Attitude
f7cd15212ca7a2f9a0e367cf9769e382eeaea91e
[ "MIT" ]
3
2018-03-16T07:38:26.000Z
2022-02-15T06:07:54.000Z
attitude/display/nbextension.py
davenquinn/Attitude
f7cd15212ca7a2f9a0e367cf9769e382eeaea91e
[ "MIT" ]
null
null
null
from os import path from uuid import uuid4 from json import dumps from collections.abc import Sequence from IPython.display import display, Javascript, HTML __here__ = path.dirname(__file__) lib = path.join(__here__,'lib') def get_library(fn): dn = path.join(lib,fn) with open(dn) as f: return f.read()...
27.509434
86
0.681756
11bd8926f5de2dfc8801244a3f2282d1d8f7ebe1
12,387
py
Python
qa/rpc-tests/util.py
mrk-9/Blockchain_LAX-lapo-coin-_completed
9d4d7e72ee14f3017676a1879d1ac70bdb9ec1c0
[ "MIT" ]
4
2020-10-12T05:17:02.000Z
2020-10-16T05:16:57.000Z
qa/rpc-tests/util.py
mrk-9/Blockchain_LAX-lapo-coin-_completed
9d4d7e72ee14f3017676a1879d1ac70bdb9ec1c0
[ "MIT" ]
null
null
null
qa/rpc-tests/util.py
mrk-9/Blockchain_LAX-lapo-coin-_completed
9d4d7e72ee14f3017676a1879d1ac70bdb9ec1c0
[ "MIT" ]
5
2020-10-05T21:06:08.000Z
2020-10-16T05:16:58.000Z
# Copyright (c) 2014 The Bitcoin Core developers # Copyright (c) 2014-2015 The Dash developers # Copyright (c) 2018 The LAPO developers # Distributed under the MIT/X11 software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # # Helpful routines for regression testing...
35.800578
104
0.647049
b1dee713eda541d5b5f0a005c6d66b010c2b3e5d
614
py
Python
tests/test_direct.py
PicoCentauri/pycoulomb
a47f2883a78129a9715dc2833b058f6dd97465a2
[ "MIT" ]
null
null
null
tests/test_direct.py
PicoCentauri/pycoulomb
a47f2883a78129a9715dc2833b058f6dd97465a2
[ "MIT" ]
null
null
null
tests/test_direct.py
PicoCentauri/pycoulomb
a47f2883a78129a9715dc2833b058f6dd97465a2
[ "MIT" ]
null
null
null
# -*- Mode: python3; tab-width: 4; indent-tabs-mode:nil; coding:utf-8 -*- # vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 fileencoding=utf-8 """Test Energy calculation based on direct summation.""" from pycoulomb import Direct import numpy as np from numpy.testing import assert_allclose def test_two_charges(): ...
34.111111
78
0.677524
3e38f1f4fa3c6ff9a8f56951659f02b223f56e7a
4,470
py
Python
models/optimizers.py
Co1lin/RfDNet
9a6910a0d3f8ab3bffbba9d992757d29a1d96bea
[ "MIT" ]
143
2021-04-09T12:28:47.000Z
2022-03-25T13:57:16.000Z
models/optimizers.py
Co1lin/RfDNet
9a6910a0d3f8ab3bffbba9d992757d29a1d96bea
[ "MIT" ]
10
2021-04-12T08:24:17.000Z
2022-01-02T22:33:01.000Z
models/optimizers.py
Co1lin/RfDNet
9a6910a0d3f8ab3bffbba9d992757d29a1d96bea
[ "MIT" ]
22
2021-04-10T06:05:44.000Z
2022-03-31T09:08:50.000Z
# Optimizer definitions # author: ynie # date: Feb, 2020 import torch from external.pointnet2_ops_lib.pointnet2_ops.pytorch_utils import BNMomentumScheduler def has_optim_in_children(subnet): ''' check if there is specific optim parameters in a subnet. :param subnet: :return: ''' label = False ...
39.210526
124
0.578523
9ea6f9a73a1efc77cfd222d7044ff3a606bb2a9e
9,049
py
Python
test/functional/import-rescan.py
LKSCOIN/lkscoin
e533e9669a45a0d704915469b03d9b718548761a
[ "MIT" ]
4
2020-03-05T17:12:01.000Z
2020-03-12T19:11:04.000Z
test/functional/import-rescan.py
LKSCOIN/lkscoin
e533e9669a45a0d704915469b03d9b718548761a
[ "MIT" ]
1
2020-03-05T15:04:01.000Z
2020-03-05T15:04:01.000Z
test/functional/import-rescan.py
LKSCOIN/LKSCOIN
e533e9669a45a0d704915469b03d9b718548761a
[ "MIT" ]
1
2020-03-12T19:11:08.000Z
2020-03-12T19:11:08.000Z
#!/usr/bin/env python3 # Copyright (c) 2014-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. """Test wallet import RPCs. Test rescan behavior of importaddress, importpubkey, importprivkey, and impor...
47.626316
116
0.654326
27725bb1ce13c9e429bf328088dd90837f4b21b8
10,203
py
Python
degradation.py
DensenDavis/SR_RealESRNet
5f60ceb6faf96660568e8bc5d3d7b774c1921a0f
[ "Unlicense" ]
null
null
null
degradation.py
DensenDavis/SR_RealESRNet
5f60ceb6faf96660568e8bc5d3d7b774c1921a0f
[ "Unlicense" ]
null
null
null
degradation.py
DensenDavis/SR_RealESRNet
5f60ceb6faf96660568e8bc5d3d7b774c1921a0f
[ "Unlicense" ]
null
null
null
import torch import cv2 import numpy as np import random import math from torch.nn import functional as F from torch.nn.functional import conv2d from basicsr.utils import DiffJPEG from basicsr.utils.img_process_util import filter2D from basicsr.data.transforms import paired_random_crop from basicsr.data.degradations im...
41.815574
142
0.58473
86308b0d9341e9e7bce1a08a1f619c98e0395b94
2,735
py
Python
src/tests/test_liquid.py
cresset-group/forcebalance
78a48d0e9ee9b5a8f3295cee8a811ad4cfcd2aa6
[ "BSD-3-Clause" ]
98
2015-03-31T06:42:14.000Z
2022-03-13T12:07:37.000Z
src/tests/test_liquid.py
cresset-group/forcebalance
78a48d0e9ee9b5a8f3295cee8a811ad4cfcd2aa6
[ "BSD-3-Clause" ]
121
2015-07-13T15:57:02.000Z
2022-03-24T20:07:10.000Z
src/tests/test_liquid.py
cresset-group/forcebalance
78a48d0e9ee9b5a8f3295cee8a811ad4cfcd2aa6
[ "BSD-3-Clause" ]
66
2015-04-06T03:05:04.000Z
2022-02-26T05:11:59.000Z
from __future__ import absolute_import import os import sys import shutil import pytest from forcebalance.parser import parse_inputs from forcebalance.forcefield import FF from forcebalance.objective import Objective from forcebalance.optimizer import Optimizer from .__init__ import ForceBalanceTestCase, check_for_open...
43.412698
109
0.686654
6f95c3895cd69baa1106ce0472cf2eddfdff7fcd
202
py
Python
tests/test_package.py
astropenguin/xarray-where
f2f0582e0ba018b3c487b19c23eb52b01b7f45ea
[ "MIT" ]
null
null
null
tests/test_package.py
astropenguin/xarray-where
f2f0582e0ba018b3c487b19c23eb52b01b7f45ea
[ "MIT" ]
2
2020-08-20T06:51:43.000Z
2020-08-20T07:09:53.000Z
tests/test_package.py
astropenguin/xarray-where
f2f0582e0ba018b3c487b19c23eb52b01b7f45ea
[ "MIT" ]
1
2021-06-14T15:34:38.000Z
2021-06-14T15:34:38.000Z
# dependencies from xarray_compare import __author__, __version__ # test functions def test_version(): assert __version__ == "0.2.0" def test_author(): assert __author__ == "Akio Taniguchi"
16.833333
50
0.732673
8630837a89e410d9ffc37974dc2d099f8f774f7a
355
py
Python
package_example/ex9.py
ayesumon123/python-exercises
8bc4cddc1c9907e41902aa99ee2a8dc43d18ef1b
[ "MIT" ]
null
null
null
package_example/ex9.py
ayesumon123/python-exercises
8bc4cddc1c9907e41902aa99ee2a8dc43d18ef1b
[ "MIT" ]
null
null
null
package_example/ex9.py
ayesumon123/python-exercises
8bc4cddc1c9907e41902aa99ee2a8dc43d18ef1b
[ "MIT" ]
null
null
null
days = "Mon Tue Wed Thu Fri Sat Sun" months = "Jan\nFeb\nMar\nMAy\nJun\nJul\nAug" print("Here are the days: ", days) print("Here are the months: ", months) print(""" There's something going on here. With the three double_quotes. We'll be able to type as much as we like. Even 4 lines if...
27.307692
49
0.614085
99973a7884f45cfcc24b5698ce70149e5c3f206d
890
py
Python
src/signalHandler.py
drlorente97/PoHelper
c7dd621bdedf49bc1e17402b7704a06055070d7c
[ "Apache-2.0" ]
null
null
null
src/signalHandler.py
drlorente97/PoHelper
c7dd621bdedf49bc1e17402b7704a06055070d7c
[ "Apache-2.0" ]
null
null
null
src/signalHandler.py
drlorente97/PoHelper
c7dd621bdedf49bc1e17402b7704a06055070d7c
[ "Apache-2.0" ]
1
2022-01-12T20:04:06.000Z
2022-01-12T20:04:06.000Z
# PoHelper (PoHelper Telegram bot powered by Python) # Copyright (C) 2022 drlorente97.eth <drlorente97@gmail.com> # General Declarations import signal import threading class signalHandler(): def __init__(self,log): """ Create threading event start_shutdown It will be triggered when receiv...
34.230769
91
0.670787
836be27546ea3065ce0f383a690a6a343da0a9b0
47,112
py
Python
env/lib/python3.7/site-packages/docusign_rooms/apis/form_groups_api.py
davidgacc/docusign
e63167101656d0066d481844576ce687ea80eb91
[ "MIT" ]
null
null
null
env/lib/python3.7/site-packages/docusign_rooms/apis/form_groups_api.py
davidgacc/docusign
e63167101656d0066d481844576ce687ea80eb91
[ "MIT" ]
null
null
null
env/lib/python3.7/site-packages/docusign_rooms/apis/form_groups_api.py
davidgacc/docusign
e63167101656d0066d481844576ce687ea80eb91
[ "MIT" ]
null
null
null
# coding: utf-8 """ DocuSign Rooms API - v2 An API for an integrator to access the features of DocuSign Rooms # noqa: E501 OpenAPI spec version: v2 Contact: devcenter@docusign.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import impor...
44.740741
142
0.585116
4a14f3c8e8e555794c85f9b4c0335bedcbc9ed67
17,339
py
Python
heat/tests/test_wsgi.py
NeCTAR-RC/heat
b152817f192a7b46514793633ddc968c1fe1ebf8
[ "Apache-2.0" ]
1
2015-02-26T03:23:23.000Z
2015-02-26T03:23:23.000Z
heat/tests/test_wsgi.py
NeCTAR-RC/heat
b152817f192a7b46514793633ddc968c1fe1ebf8
[ "Apache-2.0" ]
null
null
null
heat/tests/test_wsgi.py
NeCTAR-RC/heat
b152817f192a7b46514793633ddc968c1fe1ebf8
[ "Apache-2.0" ]
null
null
null
# Copyright 2010-2011 OpenStack Foundation # 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 # # Unles...
40.511682
79
0.630602
281c8d4a6cbb93ab8488dea6d60cce4ad9f4187a
24,198
py
Python
postprocess_experiment.py
mattw200/gemstone-profiler-automate
606da880cc84a2f1325ae8ac8c9995808056fb97
[ "BSD-3-Clause" ]
null
null
null
postprocess_experiment.py
mattw200/gemstone-profiler-automate
606da880cc84a2f1325ae8ac8c9995808056fb97
[ "BSD-3-Clause" ]
null
null
null
postprocess_experiment.py
mattw200/gemstone-profiler-automate
606da880cc84a2f1325ae8ac8c9995808056fb97
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # Matthew J. Walker # Created: 5 June 2017 import sys import os import run_experiment import pandas as pd REG_MAX = 2**32 def get_pmc_rate(current,last,time_period_s): if current >= last: return (current-last)/time_period_s else: return ((REG_MAX-last)+current)/time_per...
49.484663
148
0.642037
1bd00b5533d68cffe64549c334c185c7311cff61
1,283
py
Python
player_accuracy_config.py
ethankennerly/player-accuracy
be8880f006550c9711e659eb7e1b28c4361c7100
[ "MIT" ]
null
null
null
player_accuracy_config.py
ethankennerly/player-accuracy
be8880f006550c9711e659eb7e1b28c4361c7100
[ "MIT" ]
null
null
null
player_accuracy_config.py
ethankennerly/player-accuracy
be8880f006550c9711e659eb7e1b28c4361c7100
[ "MIT" ]
null
null
null
configs = { 'test_ball': [ ['test_baseball.tsv', 'AB', 'H', 'group'], ['test_basketball.tsv', 'FGA', 'FG', 'group'] ], 'test_ball3': [ ['test_baseball3.tsv', 'AB', 'H', 'group'], ['test_basketball3.tsv', 'FGA', 'FG', 'group'] ], 'test_random': [ ['test_random_...
47.518519
79
0.588465
3a1918e248491783ea84484d1e5e3028b5942c05
4,215
py
Python
misc/config_tools/static_allocators/lib/lib.py
ACAVJW4H/acrn-hypervisor
546de2bfa91ef8294b9c4f5251711cfbd2090181
[ "BSD-3-Clause" ]
null
null
null
misc/config_tools/static_allocators/lib/lib.py
ACAVJW4H/acrn-hypervisor
546de2bfa91ef8294b9c4f5251711cfbd2090181
[ "BSD-3-Clause" ]
null
null
null
misc/config_tools/static_allocators/lib/lib.py
ACAVJW4H/acrn-hypervisor
546de2bfa91ef8294b9c4f5251711cfbd2090181
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # # Copyright (C) 2021 Intel Corporation. # # SPDX-License-Identifier: BSD-3-Clause # import sys, os, re sys.path.append(os.path.join(os.path.dirname(os.path.abspath(__file__)), '..', 'library')) import common, board_cfg_lib from collections import namedtuple PRE_LAUNCHED_VMS_TYPE = ["SAFETY_V...
32.674419
94
0.599763
70520491888a1b473fff47fbc6ddf1547ee4cab4
1,813
py
Python
upload_media.py
zhangadrian/mini-shop-server
3a1f29784b707d14f2435322cdc2efdaab4ec85e
[ "MIT" ]
1
2020-09-25T09:23:06.000Z
2020-09-25T09:23:06.000Z
upload_media.py
zhangadrian/mini-shop-server
3a1f29784b707d14f2435322cdc2efdaab4ec85e
[ "MIT" ]
null
null
null
upload_media.py
zhangadrian/mini-shop-server
3a1f29784b707d14f2435322cdc2efdaab4ec85e
[ "MIT" ]
null
null
null
# _*_ coding: utf-8 _*_ import subprocess import requests APP_ID = 'wxafc8a1a131f0eb7d' APP_SECRET = '0b163686815e14682e43228ec19ce557' get_access_token_url = "https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid={0}&secret={1}" upload_media_url = "https://api.weixin.qq.com/cgi-bin/media/upload?...
31.258621
114
0.711528
4846bd87589ae51a9e534d05065af306079cf2d3
2,522
py
Python
sdk/compute/azure-mgmt-compute/tests/conftest.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-01-24T08:54:57.000Z
2022-01-24T08:54:57.000Z
sdk/compute/azure-mgmt-compute/tests/conftest.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/compute/azure-mgmt-compute/tests/conftest.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# -------------------------------------------------------------------------- # # Copyright (c) Microsoft Corporation. All rights reserved. # # The MIT License (MIT) # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the ""Software""), ...
47.584906
101
0.733941
ceac346bb13c92c41ee6949dff23cfcf01cd3227
118
py
Python
admin.py
PDXCodeCoop/contact-form
4866ccff9fd3f14304a07cf90cb1c1ef148186f9
[ "Apache-2.0" ]
null
null
null
admin.py
PDXCodeCoop/contact-form
4866ccff9fd3f14304a07cf90cb1c1ef148186f9
[ "Apache-2.0" ]
null
null
null
admin.py
PDXCodeCoop/contact-form
4866ccff9fd3f14304a07cf90cb1c1ef148186f9
[ "Apache-2.0" ]
null
null
null
from django.contrib import admin from models import * # Register your models here. admin.site.register(MessageModel)
19.666667
33
0.805085
67ed60039f93151895bf8bc5b01d3ae29e3e8cd4
2,362
py
Python
ETLDemo.py
Aswath-kolaron/ETLDemo
87e54331ea24473bdfbb521e9bea95039aa48dfc
[ "Unlicense" ]
14
2021-08-06T02:23:22.000Z
2022-03-17T16:11:57.000Z
ETLDemo.py
Aswath-kolaron/ETLDemo
87e54331ea24473bdfbb521e9bea95039aa48dfc
[ "Unlicense" ]
null
null
null
ETLDemo.py
Aswath-kolaron/ETLDemo
87e54331ea24473bdfbb521e9bea95039aa48dfc
[ "Unlicense" ]
12
2021-05-03T13:39:31.000Z
2022-03-21T07:33:53.000Z
import os import sys import petl import pymssql import configparser import requests import datetime import json import decimal # get data from configuration file config = configparser.ConfigParser() try: config.read('ETLDemo.ini') except Exception as e: print('could not read configuration file:' + str(e)) ...
26.840909
93
0.686283
c54261194f715a98b3f87fb1c8fba60c082432bc
396
py
Python
Cartwheel/lib/Python26/Lib/site-packages/OpenGL/GL/ARB/uniform_buffer_object.py
MontyThibault/centre-of-mass-awareness
58778f148e65749e1dfc443043e9fc054ca3ff4d
[ "MIT" ]
null
null
null
Cartwheel/lib/Python26/Lib/site-packages/OpenGL/GL/ARB/uniform_buffer_object.py
MontyThibault/centre-of-mass-awareness
58778f148e65749e1dfc443043e9fc054ca3ff4d
[ "MIT" ]
null
null
null
Cartwheel/lib/Python26/Lib/site-packages/OpenGL/GL/ARB/uniform_buffer_object.py
MontyThibault/centre-of-mass-awareness
58778f148e65749e1dfc443043e9fc054ca3ff4d
[ "MIT" ]
null
null
null
'''OpenGL extension ARB.uniform_buffer_object This module customises the behaviour of the OpenGL.raw.GL.ARB.uniform_buffer_object to provide a more Python-friendly API ''' from OpenGL import platform, constants, constant, arrays from OpenGL import extensions, wrapper from OpenGL.GL import glget import ctypes from Op...
33
58
0.820707
8ed610be40812ed93f747c85e504ba3046fa6d09
4,321
py
Python
redispersistence/persistence.py
crdev/RedisPersistence
9cfd45ca7a4e82276a9a3c1ad1639df2fcced9fc
[ "MIT" ]
2
2021-04-25T15:59:10.000Z
2021-06-21T22:30:54.000Z
redispersistence/persistence.py
crdev/RedisPersistence
9cfd45ca7a4e82276a9a3c1ad1639df2fcced9fc
[ "MIT" ]
1
2022-01-06T07:15:48.000Z
2022-01-06T07:16:40.000Z
redispersistence/persistence.py
crdev/RedisPersistence
9cfd45ca7a4e82276a9a3c1ad1639df2fcced9fc
[ "MIT" ]
3
2022-03-08T01:02:10.000Z
2022-03-25T03:58:53.000Z
import pickle from collections import defaultdict from copy import deepcopy from typing import Any, DefaultDict, Dict, Optional, Tuple from redis import Redis from telegram.ext import BasePersistence from telegram.utils.types import ConversationDict class RedisPersistence(BasePersistence): '''Using Redis to make th...
35.130081
119
0.717195
d50e22e2b61373b03ea59bc1ba746fb5253f4949
1,358
py
Python
tools/examples/geturl.py
timgates42/subversion
0f088f530747140c6783c2eeb77ceff8e8613c42
[ "Apache-2.0" ]
7
2018-01-18T06:13:21.000Z
2020-07-09T03:46:16.000Z
tools/examples/geturl.py
timgates42/subversion
0f088f530747140c6783c2eeb77ceff8e8613c42
[ "Apache-2.0" ]
4
2015-01-12T22:23:41.000Z
2015-01-12T22:33:52.000Z
tools/examples/geturl.py
timgates42/subversion
0f088f530747140c6783c2eeb77ceff8e8613c42
[ "Apache-2.0" ]
6
2015-10-24T06:23:10.000Z
2022-03-07T11:25:05.000Z
#!/usr/bin/env python # # # 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 #...
28.291667
62
0.723859
6d0816372304564ac3c479616cca33652c1a74a8
637
gyp
Python
binding.gyp
jacott/node-pg-libpq
da081b9e0dc58e23af7325d719e9ecdd46694160
[ "MIT" ]
6
2016-02-17T01:45:28.000Z
2020-02-18T19:04:46.000Z
binding.gyp
jacott/node-pg-libpq
da081b9e0dc58e23af7325d719e9ecdd46694160
[ "MIT" ]
7
2016-01-31T20:28:39.000Z
2021-03-30T22:54:23.000Z
binding.gyp
jacott/node-pg-libpq
da081b9e0dc58e23af7325d719e9ecdd46694160
[ "MIT" ]
2
2016-02-18T22:55:53.000Z
2019-07-21T02:37:51.000Z
{ "targets": [ { "target_name": "pg_libpq", 'variables': { 'pgconfig': 'pg_config', }, "sources": [ "src/pg-libpq.c" ], "include_dirs": [ '<!@(<(pgconfig) --includedir)' ], 'conditions': [ ['OS=="win"', { 'libraries' : ['libpq.lib'], ...
21.965517
63
0.362637
b0ca03f9272f4305f1b8e080a2cb00d181b47df7
158
py
Python
contrib/wallettools/walletunlock.py
PayPalCrypto/ppalcrypto
a4639879a3c6d4c367d1c5ffca87924fc1dc4f98
[ "MIT" ]
null
null
null
contrib/wallettools/walletunlock.py
PayPalCrypto/ppalcrypto
a4639879a3c6d4c367d1c5ffca87924fc1dc4f98
[ "MIT" ]
null
null
null
contrib/wallettools/walletunlock.py
PayPalCrypto/ppalcrypto
a4639879a3c6d4c367d1c5ffca87924fc1dc4f98
[ "MIT" ]
null
null
null
from jsonrpc import ServiceProxy access = ServiceProxy("http://127.0.0.1:6665") pwd = raw_input("Enter wallet passphrase: ") access.walletpassphrase(pwd, 60)
31.6
46
0.765823
b02b1165e6480c616876d118d7207e9535e5f4bc
1,297
py
Python
app/proxy.py
carlosMarioGonzalez/servidor
871ee95a57f83175316d65e70cef240f747380a5
[ "MIT" ]
null
null
null
app/proxy.py
carlosMarioGonzalez/servidor
871ee95a57f83175316d65e70cef240f747380a5
[ "MIT" ]
null
null
null
app/proxy.py
carlosMarioGonzalez/servidor
871ee95a57f83175316d65e70cef240f747380a5
[ "MIT" ]
null
null
null
# example_consumer.py import pika, os, csv from datetime import datetime from influxdb_client import InfluxDBClient, Point, WritePrecision from influxdb_client.client.write_api import SYNCHRONOUS # You can generate a Token from the "Tokens Tab" in the UI token = "MlUoRzyipVkKqyGSjil7696heOcs8s4JDI_IVNWKqvZ5_eVAbaht16...
30.880952
98
0.760216
2cfd8020c298a2c06e70cfa3148223e167bee557
14,013
py
Python
facebook_business/adobjects/businesscreativefolder.py
tony-fb/facebook-python-business-sdk
3a86def6c7db05e5d8cb8266b6c3ef484ebf4f1e
[ "CNRI-Python" ]
null
null
null
facebook_business/adobjects/businesscreativefolder.py
tony-fb/facebook-python-business-sdk
3a86def6c7db05e5d8cb8266b6c3ef484ebf4f1e
[ "CNRI-Python" ]
null
null
null
facebook_business/adobjects/businesscreativefolder.py
tony-fb/facebook-python-business-sdk
3a86def6c7db05e5d8cb8266b6c3ef484ebf4f1e
[ "CNRI-Python" ]
null
null
null
# Copyright 2014 Facebook, Inc. # You are hereby granted a non-exclusive, worldwide, royalty-free license to # use, copy, modify, and distribute this software in source code or binary # form for use in connection with the web services and APIs provided by # Facebook. # As with any software that integrates with the Fa...
37.669355
127
0.627988
a3dc5b9d68e883f36a63b8fb20eb4a807cf59ef6
272
py
Python
acred/reviewer/__init__.py
rdenaux/acred
ffe44953a96338acfe3860a9898e7f0b70b5c9cb
[ "Apache-2.0" ]
8
2020-08-31T04:14:22.000Z
2021-09-29T06:00:31.000Z
acred/reviewer/__init__.py
expertailab/acred
ee45840c942ef2fac4f26da8d756b7c47e42847c
[ "Apache-2.0" ]
null
null
null
acred/reviewer/__init__.py
expertailab/acred
ee45840c942ef2fac4f26da8d756b7c47e42847c
[ "Apache-2.0" ]
1
2020-10-07T08:09:29.000Z
2020-10-07T08:09:29.000Z
# # Copyright (c) 2020 Expert System Iberia # """Implements reviewer Bots of different aspects and content types. Each Bot has a method `review` which accepts some `item` to review and a `config`uration map. """ # actual init? # circular imports and visible submodules
22.666667
72
0.746324
f7063dd9183fa5b780f552acfabf2570d70adcd9
3,152
py
Python
image_data.py
SonicZedt/ColorCount
55fee92a7858c504b5a135b007f2065c2ec0a1be
[ "MIT" ]
null
null
null
image_data.py
SonicZedt/ColorCount
55fee92a7858c504b5a135b007f2065c2ec0a1be
[ "MIT" ]
null
null
null
image_data.py
SonicZedt/ColorCount
55fee92a7858c504b5a135b007f2065c2ec0a1be
[ "MIT" ]
null
null
null
import requests import numpy as np import collections import matplotlib.pyplot as plt from matplotlib.backends.backend_agg import FigureCanvasAgg as FigureCanvas from PIL import Image from io import BytesIO class Image_Data: image = None @property def Array(self) -> np.ndarray: """ Return ...
27.172414
103
0.572335
e90fde3696651d7c2d36b125566c7a82153cd2e0
22,265
gyp
Python
appshell.gyp
albert200000/brackets-shell
49584ecc17a5eeb5e8440658dcb52a9834871a4a
[ "MIT" ]
null
null
null
appshell.gyp
albert200000/brackets-shell
49584ecc17a5eeb5e8440658dcb52a9834871a4a
[ "MIT" ]
null
null
null
appshell.gyp
albert200000/brackets-shell
49584ecc17a5eeb5e8440658dcb52a9834871a4a
[ "MIT" ]
null
null
null
# Copyright (c) 2011 The Chromium Embedded Framework Authors. All rights # reserved. Use of this source code is governed by a BSD-style license that # can be found in the LICENSE file. { 'variables': { 'pkg-config': 'pkg-config', 'target_arch%': 'environment', 'chromium_code': 1, 'framework_name': 'C...
34.952904
108
0.458477
b252537ec616bab8e2bfb6512c46bdf7571ca52e
644
py
Python
refresh.py
hanueluni1106/distini_refresh
a04b4268c21d0dac034b534c5b63dd096961ebe0
[ "MIT" ]
1
2022-01-25T05:31:44.000Z
2022-01-25T05:31:44.000Z
refresh.py
hanueluni1106/distini_refresh
a04b4268c21d0dac034b534c5b63dd096961ebe0
[ "MIT" ]
null
null
null
refresh.py
hanueluni1106/distini_refresh
a04b4268c21d0dac034b534c5b63dd096961ebe0
[ "MIT" ]
null
null
null
import requests def refresh(): headers = {'authority' : 'disnity.com' , 'path' : '/api/server/refresh/874183024483377193', 'referer' : 'https://disnity.com/' , 'cookie' : '_ga=GA1.1.1233460131.1640572155; __gads=ID=e582b49cab592b91-22da57b68ccf00c1:T=1640572155:RT=1640572155:S=ALNI_May2vdCHFNt6jh3t-0fPjYx...
53.666667
435
0.757764
bda8368cc7cacc39a252e065648b040bd324534c
52
py
Python
2679.py
gabzin/uri
177bdf3f87bacfd924bd031a973b8db877379fe5
[ "MIT" ]
3
2021-09-21T18:50:20.000Z
2021-12-14T13:07:31.000Z
2679.py
gabzin/uri
177bdf3f87bacfd924bd031a973b8db877379fe5
[ "MIT" ]
null
null
null
2679.py
gabzin/uri
177bdf3f87bacfd924bd031a973b8db877379fe5
[ "MIT" ]
null
null
null
n=int(input()) print(n+2) if n%2==0 else print(n+1)
17.333333
36
0.615385
a13a42413c4895484df5f4cb4a7104da2aff538f
250
py
Python
frontend/presentation.py
W0lgast/Community_Chatbot
f3f7e15592b9b4bdd9caae2d5fdd773514601543
[ "MIT" ]
1
2020-08-26T04:59:35.000Z
2020-08-26T04:59:35.000Z
frontend/presentation.py
W0lgast/Community_Chatbot
f3f7e15592b9b4bdd9caae2d5fdd773514601543
[ "MIT" ]
null
null
null
frontend/presentation.py
W0lgast/Community_Chatbot
f3f7e15592b9b4bdd9caae2d5fdd773514601543
[ "MIT" ]
null
null
null
''' Contains all presentation types. Kipp Freud 03/02/2020 ''' # ------------------------------------------------------------------ STANDARD_MSG = "STANDARD_MSG" CALENDAR_MSG = "CALENDAR_MSG" GENRE_BTN_MSG = "GENRE_BTN_MSG" EVENT_MSG = "EVENT_MSG"
19.230769
68
0.548
c5ff913b72515a6dd0d1b629566be222d77b3497
1,415
py
Python
huaweicloud-sdk-cce/setup.py
githubmilesma/huaweicloud-sdk-python-v3
9d9449ed68a609ca65f0aa50b5b2a1c28445bf03
[ "Apache-2.0" ]
null
null
null
huaweicloud-sdk-cce/setup.py
githubmilesma/huaweicloud-sdk-python-v3
9d9449ed68a609ca65f0aa50b5b2a1c28445bf03
[ "Apache-2.0" ]
null
null
null
huaweicloud-sdk-cce/setup.py
githubmilesma/huaweicloud-sdk-python-v3
9d9449ed68a609ca65f0aa50b5b2a1c28445bf03
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkcce" VERSION = "3.0.43-rc" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" DESCRIPTION = "CCE" this_directory = path.abspath(path.di...
30.76087
78
0.670671
71169d96189a935cc956777af2568f89e5f61f01
35,801
py
Python
django/forms/widgets.py
ponsonio-aurea/django
dc165ec8e5698ffc6dee6b510f1f92c9fd7467fe
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
django/forms/widgets.py
ponsonio-aurea/django
dc165ec8e5698ffc6dee6b510f1f92c9fd7467fe
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
django/forms/widgets.py
ponsonio-aurea/django
dc165ec8e5698ffc6dee6b510f1f92c9fd7467fe
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
""" HTML Widget classes """ import copy import datetime import re from contextlib import contextmanager from itertools import chain from django.conf import settings from django.forms.utils import to_current_timezone from django.templatetags.static import static from django.utils import datetime_safe, formats from dja...
34.39097
115
0.607832
653eeb159222546d218dc78f0ba88d482199daae
1,110
py
Python
python_modules/libraries/dagstermill/setup.py
coderanger/dagster
d3e323f8ed55cd906d6f44f19595348ea1580b2d
[ "Apache-2.0" ]
1
2021-04-30T00:19:20.000Z
2021-04-30T00:19:20.000Z
python_modules/libraries/dagstermill/setup.py
mitodl/dagster
c94cd8d0f5f67722790e8a176228aa4bdcaa0068
[ "Apache-2.0" ]
null
null
null
python_modules/libraries/dagstermill/setup.py
mitodl/dagster
c94cd8d0f5f67722790e8a176228aa4bdcaa0068
[ "Apache-2.0" ]
null
null
null
from setuptools import find_packages, setup def get_version(): version = {} with open("dagstermill/version.py") as fp: exec(fp.read(), version) # pylint: disable=W0122 return version["__version__"] if __name__ == "__main__": setup( name="dagstermill", version=get_version(),...
30
81
0.54955
826843555ccb96ddac8ba680e2e9a59a1a710dbe
8,608
py
Python
tpDcc/tools/datalibrary/widgets/preview.py
tpDcc/tpDcc-tools-datalibrary
fe867ac35a59d13300af20a998dccdabc2e145ba
[ "MIT" ]
null
null
null
tpDcc/tools/datalibrary/widgets/preview.py
tpDcc/tpDcc-tools-datalibrary
fe867ac35a59d13300af20a998dccdabc2e145ba
[ "MIT" ]
null
null
null
tpDcc/tools/datalibrary/widgets/preview.py
tpDcc/tpDcc-tools-datalibrary
fe867ac35a59d13300af20a998dccdabc2e145ba
[ "MIT" ]
null
null
null
#! /usr/bin/env python # -*- coding: utf-8 -*- """ Module that contains base preview widget for data items """ from __future__ import print_function, division, absolute_import from Qt.QtCore import Qt, QSize from Qt.QtWidgets import QWidget, QFrame, QMenu from Qt.QtGui import QCursor from tpDcc.managers import reso...
36.474576
114
0.596422