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
7974a5b0a4152c93628db68990fb48daee9b3493
1,180
py
Python
nodes/center_classifier.py
willdickson/puzzleboxes
964792f74d7a5b5fc8cce4fc659ebfe1859a7eff
[ "MIT" ]
null
null
null
nodes/center_classifier.py
willdickson/puzzleboxes
964792f74d7a5b5fc8cce4fc659ebfe1859a7eff
[ "MIT" ]
null
null
null
nodes/center_classifier.py
willdickson/puzzleboxes
964792f74d7a5b5fc8cce4fc659ebfe1859a7eff
[ "MIT" ]
null
null
null
import math from classifier import Classifier class CenterClassifier(Classifier): def __init__(self,param): super(CenterClassifier,self).__init__(param) def update(self,t,obj_dict): current_object = obj_dict['fly'] if current_object is not None: x = current_object.position...
30.25641
63
0.497458
7974a697a7a16bab78c6dc73f376505db8198745
28,046
py
Python
MUD.py
PAJEAN/uncertaintyDetection
c8203d27fe36ad7c91aaf3c185723645220e6945
[ "MIT" ]
13
2017-03-21T16:04:32.000Z
2022-02-07T15:28:46.000Z
MUD.py
PAJEAN/uncertaintyDetection
c8203d27fe36ad7c91aaf3c185723645220e6945
[ "MIT" ]
null
null
null
MUD.py
PAJEAN/uncertaintyDetection
c8203d27fe36ad7c91aaf3c185723645220e6945
[ "MIT" ]
7
2017-03-21T16:29:17.000Z
2022-02-07T15:45:08.000Z
#!/bin/python # -*- coding: utf-8 -*- import sys, os import numpy as np from sklearn import svm from sklearn.ensemble import RandomForestClassifier import binomial_law as binomial_law import formatage_sentences as formatage_sentences # File handling. def read_file_8col_round(file_in, decimal): dico = {} for ligne i...
30.92172
618
0.616452
7974a7603734733ae78b66910a52066a0900f01e
756
py
Python
library/migrations/0003_auto_20160228_2358.py
bane138/nonhumanuser
23db4f1544e5fc000618d56aa88d43f555e48034
[ "MIT" ]
null
null
null
library/migrations/0003_auto_20160228_2358.py
bane138/nonhumanuser
23db4f1544e5fc000618d56aa88d43f555e48034
[ "MIT" ]
8
2020-02-12T00:37:14.000Z
2021-09-22T17:41:18.000Z
library/migrations/0003_auto_20160228_2358.py
bane138/nonhumanuser
23db4f1544e5fc000618d56aa88d43f555e48034
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9.1 on 2016-02-28 23:58 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('library', '0002_item_resource'), ] operations = [ migrations.AlterField( ...
24.387097
52
0.572751
7974a7ddeeaffb9088fa09614553c87ddad1ce75
17,226
py
Python
pheweb/file_utils.py
stellakeppo/pheweb
10ea317dbe9419fa77f99e6b735fa9a3290ccd5e
[ "MIT" ]
null
null
null
pheweb/file_utils.py
stellakeppo/pheweb
10ea317dbe9419fa77f99e6b735fa9a3290ccd5e
[ "MIT" ]
null
null
null
pheweb/file_utils.py
stellakeppo/pheweb
10ea317dbe9419fa77f99e6b735fa9a3290ccd5e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ File utilities """ from typing import List, Union from pathlib import Path import io import os import csv from contextlib import contextmanager import json import gzip import datetime from boltons.fileutils import AtomicSaver, mkdir_p import pysam from .utils import PheWebError, get_phenol...
33.254826
120
0.599269
7974a817586ef7550f3ea621956c583e102c4493
3,566
py
Python
tests/test_focalplane.py
esheldon/galsim_extra
1e93a35db16943f6ce0251cddcd253defe0d5c61
[ "BSD-3-Clause" ]
4
2016-08-30T20:31:52.000Z
2021-02-05T19:59:51.000Z
tests/test_focalplane.py
esheldon/galsim_extra
1e93a35db16943f6ce0251cddcd253defe0d5c61
[ "BSD-3-Clause" ]
14
2017-02-15T18:48:57.000Z
2021-04-19T16:26:05.000Z
tests/test_focalplane.py
esheldon/galsim_extra
1e93a35db16943f6ce0251cddcd253defe0d5c61
[ "BSD-3-Clause" ]
2
2016-11-29T19:29:23.000Z
2017-05-26T14:42:53.000Z
from __future__ import print_function import galsim import logging import numpy as np import os, sys def test_truth(): """This test addressed Issue 10, where Niall found that the truth catalog wasn't being built correctly with the FocalPlane builder. """ config = galsim.config.ReadConfig('focal_quick.y...
48.849315
95
0.652832
7974a8519e0d904fd13d0c2efbf099c3f4e29415
47
py
Python
annotater/website/constants.py
stricoff92/annotater
8ca471477e2d567945e14f09d3d763d379e7587e
[ "MIT" ]
null
null
null
annotater/website/constants.py
stricoff92/annotater
8ca471477e2d567945e14f09d3d763d379e7587e
[ "MIT" ]
null
null
null
annotater/website/constants.py
stricoff92/annotater
8ca471477e2d567945e14f09d3d763d379e7587e
[ "MIT" ]
null
null
null
class WIDGET_NAMES: memetext = "memetext"
11.75
25
0.702128
7974a8b3fa8f4e116e6219dc4f8e91f33d8578d6
2,678
py
Python
chadlib/gui/sl_component.py
cjreynol/chadlib
e417a6c5b100b7124a7d9b61d0120b3caa897bb8
[ "MIT" ]
1
2021-08-06T21:56:52.000Z
2021-08-06T21:56:52.000Z
chadlib/gui/sl_component.py
cjreynol/chadlib
e417a6c5b100b7124a7d9b61d0120b3caa897bb8
[ "MIT" ]
null
null
null
chadlib/gui/sl_component.py
cjreynol/chadlib
e417a6c5b100b7124a7d9b61d0120b3caa897bb8
[ "MIT" ]
null
null
null
from os import makedirs from os.path import exists, expanduser, join from platform import system from tkinter.filedialog import askopenfilename, asksaveasfilename from .sl_controller import SLController class SLComponent: SUPPORT_DIR_BASES = {"Darwin" : expanduser(join("...
38.811594
79
0.553398
7974a9a72ad96b74def5e9658dccd85a18f5ac84
12,374
py
Python
fairseq/tasks/language_modeling.py
frankxu2004/knnlm
7a668a916b08a0e82072c8f49eef4a10ad4a8505
[ "MIT" ]
3
2021-11-04T01:29:35.000Z
2022-03-04T13:46:52.000Z
fairseq/tasks/language_modeling.py
frankxu2004/knnlm-locality
7a668a916b08a0e82072c8f49eef4a10ad4a8505
[ "MIT" ]
null
null
null
fairseq/tasks/language_modeling.py
frankxu2004/knnlm-locality
7a668a916b08a0e82072c8f49eef4a10ad4a8505
[ "MIT" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import logging import os import numpy as np import torch from fairseq import utils from fairseq.data import ( data_utils, Dictionary...
40.703947
112
0.587522
7974ac5a7ed66fa08d8bbcbce47452ac3e051733
295
py
Python
comments/admin.py
zxins/dblog
8fe92cc6bec628c2e8869ab625e14b8c3da547f1
[ "MIT" ]
null
null
null
comments/admin.py
zxins/dblog
8fe92cc6bec628c2e8869ab625e14b8c3da547f1
[ "MIT" ]
6
2020-02-27T04:34:13.000Z
2022-02-10T10:26:19.000Z
comments/admin.py
zxins/dblog
8fe92cc6bec628c2e8869ab625e14b8c3da547f1
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Comment # Register your models here. class CommentAdmin(admin.ModelAdmin): list_display = ['name', 'email', 'url', 'post', 'created_time'] fields = ['name', 'email', 'url', 'text', 'post'] admin.site.register(Comment, CommentAdmin)
29.5
67
0.701695
7974ad1ba5cb02af3adc23ce24f2a90ac25ea141
9,696
py
Python
salt-2016.3.3/salt/renderers/gpg.py
stephane-martin/salt-debian-packaging
4ec73750ba67bfe35a5bc0faa110f2bdec5c6a66
[ "Apache-2.0" ]
null
null
null
salt-2016.3.3/salt/renderers/gpg.py
stephane-martin/salt-debian-packaging
4ec73750ba67bfe35a5bc0faa110f2bdec5c6a66
[ "Apache-2.0" ]
null
null
null
salt-2016.3.3/salt/renderers/gpg.py
stephane-martin/salt-debian-packaging
4ec73750ba67bfe35a5bc0faa110f2bdec5c6a66
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- r''' Renderer that will decrypt GPG ciphers Any key in the SLS file can be a GPG cipher, and this renderer will decrypt it before passing it off to Salt. This allows you to safely store secrets in source control, in such a way that only your Salt master can decrypt them and distribute them only...
30.977636
210
0.676258
7974ad2f0f6aa6fd649710218985d6ed7814c533
5,524
py
Python
deepchem/utils/fake_data_generator.py
Chahalprincy/deepchem
9d1a6a879cc74b065694b3ddb763d52151d57b7a
[ "MIT" ]
null
null
null
deepchem/utils/fake_data_generator.py
Chahalprincy/deepchem
9d1a6a879cc74b065694b3ddb763d52151d57b7a
[ "MIT" ]
null
null
null
deepchem/utils/fake_data_generator.py
Chahalprincy/deepchem
9d1a6a879cc74b065694b3ddb763d52151d57b7a
[ "MIT" ]
null
null
null
""" A fake data generator """ import random import numpy as np from deepchem.data import NumpyDataset from deepchem.feat import GraphData class FakeGraphGenerator: """Generates a random graphs which can be used for testing or other purposes. The generated graph supports both node-level and graph-level labels. ...
33.889571
143
0.647538
7974ae05479c56515afac7d2cbee436a9ffc05b7
1,954
py
Python
tests/kernel/html_tests.py
freyrsae/pydatalab
9aba1ac6bbe8e1384e7a4b07c5042af84348797d
[ "Apache-2.0" ]
198
2016-07-14T19:47:52.000Z
2022-03-15T08:45:21.000Z
tests/kernel/html_tests.py
freyrsae/pydatalab
9aba1ac6bbe8e1384e7a4b07c5042af84348797d
[ "Apache-2.0" ]
534
2016-07-15T19:12:43.000Z
2022-03-11T23:11:39.000Z
tests/kernel/html_tests.py
freyrsae/pydatalab
9aba1ac6bbe8e1384e7a4b07c5042af84348797d
[ "Apache-2.0" ]
86
2016-07-13T17:39:05.000Z
2021-11-03T03:39:41.000Z
# Copyright 2015 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 agreed ...
25.710526
99
0.627943
7974aeac4d7a36eb63c7a9326807cd941822505f
212
py
Python
contact/urls.py
juancoquet/noteadder
c6f4c8eaaa1dcfe03b0fd54f5e64220ec9e7631c
[ "MIT" ]
null
null
null
contact/urls.py
juancoquet/noteadder
c6f4c8eaaa1dcfe03b0fd54f5e64220ec9e7631c
[ "MIT" ]
null
null
null
contact/urls.py
juancoquet/noteadder
c6f4c8eaaa1dcfe03b0fd54f5e64220ec9e7631c
[ "MIT" ]
null
null
null
from django.urls import path from .views import FeedbackView, ContactView urlpatterns = [ path('feedback/', FeedbackView.as_view(), name='feedback'), path('', ContactView.as_view(), name='contact'), ]
21.2
63
0.70283
7974af298c9fa10f8c707cd943882463dfae5d27
4,629
py
Python
MystanCodeProjects/name_searching_system/babynames.py
Jess1006/MystanCodeProjects
4efac4feb181c1f822b975b5020891031a49be21
[ "MIT" ]
null
null
null
MystanCodeProjects/name_searching_system/babynames.py
Jess1006/MystanCodeProjects
4efac4feb181c1f822b975b5020891031a49be21
[ "MIT" ]
null
null
null
MystanCodeProjects/name_searching_system/babynames.py
Jess1006/MystanCodeProjects
4efac4feb181c1f822b975b5020891031a49be21
[ "MIT" ]
null
null
null
""" SC101 Baby Names Project Adapted from Nick Parlante's Baby Names assignment by Jerry Liao. YOUR DESCRIPTION HERE """ import sys def add_data_for_name(name_data, year, rank, name): """ Adds the given year and rank to the associated name in the name_data dict. Input: name_data (dict): dict ho...
29.297468
84
0.620436
7974af9d0beea36c7e287ccea8b01ffe534d29e9
179,773
py
Python
chem_subs.py
kkinist/karlib
16c2daa11623b41297ddb9c6c2b1e663a8638cef
[ "MIT" ]
null
null
null
chem_subs.py
kkinist/karlib
16c2daa11623b41297ddb9c6c2b1e663a8638cef
[ "MIT" ]
null
null
null
chem_subs.py
kkinist/karlib
16c2daa11623b41297ddb9c6c2b1e663a8638cef
[ "MIT" ]
null
null
null
# Routines for general quantum chemistry (no particular software package) # Python3 and pandas # Karl Irikura # import re, sys #import string, copy import copy import numpy as np import pandas as pd import quaternion from scipy.spatial.distance import cdist from scipy import interpolate from scipy import optimize impo...
39.799203
135
0.549232
7974afbdc7d6cbc6976b2a1ebcc4076e1cdfa42e
2,731
py
Python
hydraulics.py
PeterRay/idraulico
68f0e14f16d89e2579f3ef7cd730267a8c34ed28
[ "MIT" ]
null
null
null
hydraulics.py
PeterRay/idraulico
68f0e14f16d89e2579f3ef7cd730267a8c34ed28
[ "MIT" ]
null
null
null
hydraulics.py
PeterRay/idraulico
68f0e14f16d89e2579f3ef7cd730267a8c34ed28
[ "MIT" ]
null
null
null
# minimal unit element for class room: def __init__(self, id, name): self.id = id # room id self.name = name # room name self._roomType = 0 # 0==chitchen-basic / 1==chitchen-lusso / 2==bathroom-basic / 3==bathroom-lusso self._...
39.57971
153
0.548883
7974b070401dff5117c4f2625117bc36fca1cf58
2,432
py
Python
DIE/UI/ParserView.py
a1ext/DIE
1a3a19f016f44cf611847ce4f0d126b136040cb6
[ "MIT" ]
5
2017-05-17T21:53:46.000Z
2019-07-12T20:05:20.000Z
DIE/UI/ParserView.py
a1ext/DIE
1a3a19f016f44cf611847ce4f0d126b136040cb6
[ "MIT" ]
null
null
null
DIE/UI/ParserView.py
a1ext/DIE
1a3a19f016f44cf611847ce4f0d126b136040cb6
[ "MIT" ]
1
2020-03-15T21:25:14.000Z
2020-03-15T21:25:14.000Z
from DIE.Lib import DataParser from idaapi import PluginForm from sark.qt import QtGui, QtCore, QtWidgets, form_to_widget class ParserView(PluginForm): """ DIE Value View """ def __init__(self): super(ParserView, self).__init__() self.data_parser = None self.ptabl...
28.611765
65
0.60403
7974b0d4483117a739664179633004b7ee2bd4a4
10,904
py
Python
run_electrum_server.py
216k155/electrum-server
5c7665061427bdd98296a2b0a5a2a7a1f200ec42
[ "MIT" ]
null
null
null
run_electrum_server.py
216k155/electrum-server
5c7665061427bdd98296a2b0a5a2a7a1f200ec42
[ "MIT" ]
null
null
null
run_electrum_server.py
216k155/electrum-server
5c7665061427bdd98296a2b0a5a2a7a1f200ec42
[ "MIT" ]
null
null
null
#!/usr/bin/env python # Copyright(C) 2011-2016 Thomas Voegtlin # # 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, m...
33.042424
106
0.658933
7974b185103a8d314f5bf4491d035b688cf8dc89
1,126
py
Python
pyvisdk/do/patch_metadata_not_found.py
Infinidat/pyvisdk
f2f4e5f50da16f659ccc1d84b6a00f397fa997f8
[ "MIT" ]
null
null
null
pyvisdk/do/patch_metadata_not_found.py
Infinidat/pyvisdk
f2f4e5f50da16f659ccc1d84b6a00f397fa997f8
[ "MIT" ]
null
null
null
pyvisdk/do/patch_metadata_not_found.py
Infinidat/pyvisdk
f2f4e5f50da16f659ccc1d84b6a00f397fa997f8
[ "MIT" ]
null
null
null
import logging from pyvisdk.exceptions import InvalidArgumentError ######################################## # Automatically generated, do not edit. ######################################## log = logging.getLogger(__name__) def PatchMetadataNotFound(vim, *args, **kwargs): '''This fault is thrown if the metadata ...
32.171429
124
0.611901
7974b307a166ab49e4dccb4405badb11c3871cd2
494
py
Python
Codes/Day-008/01.Pain Area Calculator/main.py
MdGhulamAzadAnsari/100-Days-of-Code
8ff993b2e3f7aecefde28cb443355e5fb4d6fbc6
[ "MIT" ]
3
2021-01-15T15:49:20.000Z
2021-03-17T03:17:41.000Z
codes/Day-008/01.Pain Area Calculator/main.py
GhulamAzad/100-Days-of-Code
9533d80a6bc6ce70123126615f0671f979573a67
[ "MIT" ]
2
2022-01-16T07:00:38.000Z
2022-01-16T07:16:57.000Z
codes/Day-008/01.Pain Area Calculator/main.py
GhulamAzad/100-Days-of-Code
9533d80a6bc6ce70123126615f0671f979573a67
[ "MIT" ]
null
null
null
import math # Write your code below this line 👇 def paint_calc(height, width, cover): number_of_cans = (height * width) / cover print(f"You'll need {math.ceil(number_of_cans)} cans of paint.") # Write your code above this line 👆 # Define a function called paint_calc() so that the code below works. # 🚨 D...
27.444444
69
0.710526
7974b364411197f148b87a5d04721d4c1dd42511
29,620
py
Python
LCMN_and_SMN.py
JoJoJun/NLPCC2018_Multi_Turn_Response_Selection
ba13e629e5094dca5d87e8aeea3d3371df6a9679
[ "MIT" ]
null
null
null
LCMN_and_SMN.py
JoJoJun/NLPCC2018_Multi_Turn_Response_Selection
ba13e629e5094dca5d87e8aeea3d3371df6a9679
[ "MIT" ]
null
null
null
LCMN_and_SMN.py
JoJoJun/NLPCC2018_Multi_Turn_Response_Selection
ba13e629e5094dca5d87e8aeea3d3371df6a9679
[ "MIT" ]
null
null
null
import tensorflow as tf import pickle import utils from tensorflow.contrib.layers import xavier_initializer from tensorflow.contrib import rnn from tensorflow.python.keras.preprocessing.sequence import pad_sequences import numpy as np import Evaluate import time from datetime import timedelta import Layers i...
60.203252
160
0.610331
7974b4699aad5a651787c8c458b9e6aa1670e348
2,350
py
Python
sector/types/spend_bundle.py
bithadder/sector-blockchain
ce63d162cd8c0c7c85ae64d6d6e8bede0a8675e6
[ "Apache-2.0" ]
13
2021-07-06T12:45:25.000Z
2021-09-10T22:24:52.000Z
sector/types/spend_bundle.py
bithadder/sector-blockchain
ce63d162cd8c0c7c85ae64d6d6e8bede0a8675e6
[ "Apache-2.0" ]
null
null
null
sector/types/spend_bundle.py
bithadder/sector-blockchain
ce63d162cd8c0c7c85ae64d6d6e8bede0a8675e6
[ "Apache-2.0" ]
6
2021-07-06T01:14:53.000Z
2021-07-18T05:33:02.000Z
from dataclasses import dataclass from typing import List from blspy import AugSchemeMPL, G2Element from sector.types.blockchain_format.coin import Coin from sector.types.blockchain_format.sized_bytes import bytes32 from sector.util.streamable import Streamable, streamable from sector.wallet.util.debug_spend_bundle i...
33.571429
90
0.69234
7974b59798e65c1e04174d51ea0e81718b37872c
2,456
py
Python
boost/XGBoost/xgboostree.py
AutuanLiu/Machine-Learning-on-docker
00eb7211a3a40a9da02114923647dfd6ac24f138
[ "Apache-2.0" ]
11
2018-03-18T11:06:59.000Z
2020-02-23T03:24:43.000Z
boost/XGBoost/xgboostree.py
AutuanLiu/Machine-Learning-on-docker
00eb7211a3a40a9da02114923647dfd6ac24f138
[ "Apache-2.0" ]
null
null
null
boost/XGBoost/xgboostree.py
AutuanLiu/Machine-Learning-on-docker
00eb7211a3a40a9da02114923647dfd6ac24f138
[ "Apache-2.0" ]
4
2018-03-28T13:04:26.000Z
2019-05-29T05:49:52.000Z
""" Created on 1 Apr 2015 @author: Jamie Hall """ # https://github.com/dmlc/xgboost/blob/master/demo/guide-python/sklearn_examples.py import pickle import numpy as np import xgboost as xgb from sklearn.datasets import load_iris, load_digits, load_boston from sklearn.metrics import confusion_matrix, mean_squared_error...
33.643836
99
0.743078
7974b5f7654f99ffbda4ab617864ba2bdc8e64f3
2,771
py
Python
stdplugins/screenlong.py
prono69/LazyAF-Pepe
b78d4b9f174a65b77b6b5f4969386aa6dd3359ce
[ "Apache-2.0" ]
1
2020-06-29T14:58:28.000Z
2020-06-29T14:58:28.000Z
stdplugins/screenlong.py
prono69/LazyAF-Pepe
b78d4b9f174a65b77b6b5f4969386aa6dd3359ce
[ "Apache-2.0" ]
1
2021-02-08T20:49:02.000Z
2021-02-08T20:49:02.000Z
stdplugins/screenlong.py
prono69/LazyAF-Pepe
b78d4b9f174a65b77b6b5f4969386aa6dd3359ce
[ "Apache-2.0" ]
null
null
null
"""Take screenshot of any website Syntax: .long <Website URL>""" import io import traceback from datetime import datetime from selenium import webdriver from uniborg.util import admin_cmd @borg.on(admin_cmd(pattern="long (.*)")) async def _(event): if event.fwd_from: return if Config.GOOGLE_CHROME_BI...
43.984127
231
0.675208
7974b61f0c55e01cc0b829ae2b3285383d85e660
941
py
Python
dlp/app_tracer.py
russ168/dlp
acc1d5f3ffcfc01a63193fe961fe8c43340bdfe9
[ "BSD-3-Clause" ]
null
null
null
dlp/app_tracer.py
russ168/dlp
acc1d5f3ffcfc01a63193fe961fe8c43340bdfe9
[ "BSD-3-Clause" ]
null
null
null
dlp/app_tracer.py
russ168/dlp
acc1d5f3ffcfc01a63193fe961fe8c43340bdfe9
[ "BSD-3-Clause" ]
1
2021-06-16T17:29:22.000Z
2021-06-16T17:29:22.000Z
from dlp.presidio_logger import PresidioLogger class AppTracer: """This class provides the ability to log/trace the system's decisions, such as which modules were used for detection, which logic was utilized, what results were given and potentially why. This can be useful for analyzing the detection a...
34.851852
77
0.668438
7974b80792435cf9508dd08b2d3649c464e52fb9
26,624
py
Python
application/records/views.py
rendex85/analytics_backend-1
02ac45bde8754491795c99fbddcfc249d64a2fd3
[ "MIT" ]
null
null
null
application/records/views.py
rendex85/analytics_backend-1
02ac45bde8754491795c99fbddcfc249d64a2fd3
[ "MIT" ]
null
null
null
application/records/views.py
rendex85/analytics_backend-1
02ac45bde8754491795c99fbddcfc249d64a2fd3
[ "MIT" ]
null
null
null
from django.db.models.aggregates import Count from django.shortcuts import get_object_or_404 from rest_framework import generics from rest_framework.decorators import api_view, permission_classes from rest_framework.permissions import AllowAny from rest_framework.permissions import IsAdminUser, IsAuthenticated from res...
45.903448
214
0.633789
7974b86574e9e609496297ccef4fa328f49d798b
910
py
Python
findyour3d/company/management/commands/fix_companies.py
hqpr/findyour3d
8ad3d2cb7bd0adfd080bb2314df1c78b94d3973a
[ "MIT" ]
null
null
null
findyour3d/company/management/commands/fix_companies.py
hqpr/findyour3d
8ad3d2cb7bd0adfd080bb2314df1c78b94d3973a
[ "MIT" ]
null
null
null
findyour3d/company/management/commands/fix_companies.py
hqpr/findyour3d
8ad3d2cb7bd0adfd080bb2314df1c78b94d3973a
[ "MIT" ]
1
2020-11-26T10:52:20.000Z
2020-11-26T10:52:20.000Z
import logging from django.core.management.base import BaseCommand from django.utils import timezone from findyour3d.users.models import User logger = logging.getLogger(__name__) class Command(BaseCommand): help = 'Adding valid payment for dummy companies' def handle(self, *args, **options): defau...
30.333333
95
0.656044
7974ba3460b6cdf221054fda3ed46de6759cbaeb
95
py
Python
siteadmins/apps.py
bizeasy17/investtrack
3840948896573f3906a5df80ea80859a492f4133
[ "MIT" ]
null
null
null
siteadmins/apps.py
bizeasy17/investtrack
3840948896573f3906a5df80ea80859a492f4133
[ "MIT" ]
3
2021-07-15T13:23:28.000Z
2021-12-09T03:32:16.000Z
siteadmins/apps.py
bizeasy17/investtrack
3840948896573f3906a5df80ea80859a492f4133
[ "MIT" ]
1
2021-08-19T14:42:59.000Z
2021-08-19T14:42:59.000Z
from django.apps import AppConfig class SiteadminsConfig(AppConfig): name = 'siteadmins'
15.833333
34
0.768421
7974bacc58d02c25176d46770eb9afab9e701598
2,515
py
Python
source_convert_IFF_code/341/comb_slp_IFF_jasmin.py
glamod/glamod-nuim
eed6f9d7d71b0c456ef39fdea6b58677e13ab50c
[ "BSD-3-Clause" ]
null
null
null
source_convert_IFF_code/341/comb_slp_IFF_jasmin.py
glamod/glamod-nuim
eed6f9d7d71b0c456ef39fdea6b58677e13ab50c
[ "BSD-3-Clause" ]
23
2022-01-28T13:57:39.000Z
2022-03-28T09:34:41.000Z
source_convert_IFF_code/341/comb_slp_IFF_jasmin.py
glamod/glamod-nuim
eed6f9d7d71b0c456ef39fdea6b58677e13ab50c
[ "BSD-3-Clause" ]
1
2019-01-24T12:06:06.000Z
2019-01-24T12:06:06.000Z
# -*- coding: utf-8 -*- """ Created on Wed Jul 17 14:22:41 2019 @author: snoone """ import os import glob import pandas as pd import csv ##import all csv files in current dir that need timezone changing to GMT based on hours offset os.chdir("/gws/nopw/j04/c3s311a_lot2/data/level1/land/level1a_sub_daily...
39.920635
108
0.728032
7974bb306b07e88bfb9587dd587267064026f5cc
30,311
py
Python
deepctr/layers/sequence.py
leoninekev/DeepCTR
1b18bc5414209badf312d580130e9968dde4de9b
[ "Apache-2.0" ]
2
2019-08-05T12:10:29.000Z
2020-07-16T10:04:58.000Z
deepctr/layers/sequence.py
ttjjlw/DeepCTR
9bc93ae729f1d4d03fdf5fe8b9c111fbc59a2870
[ "Apache-2.0" ]
1
2019-10-15T09:19:03.000Z
2021-08-07T16:06:58.000Z
deepctr/layers/sequence.py
ttjjlw/DeepCTR
9bc93ae729f1d4d03fdf5fe8b9c111fbc59a2870
[ "Apache-2.0" ]
1
2019-09-23T12:53:47.000Z
2019-09-23T12:53:47.000Z
# -*- coding:utf-8 -*- """ Author: Weichen Shen,wcshen1994@163.com """ import numpy as np import tensorflow as tf from tensorflow.python.keras import backend as K from tensorflow.python.keras.initializers import TruncatedNormal from tensorflow.python.keras.layers import LSTM, Lambda, Layer from .core import Loc...
40.850404
280
0.605754
7974bbf3f9ccd3897d664db55a0874205630b720
1,559
py
Python
reddit-stock-scraper.py
Micheal-Nguyen/reddit-stock-scraper
779e2e463fab38567c3bb3c29b21665f7b0a0edd
[ "MIT" ]
null
null
null
reddit-stock-scraper.py
Micheal-Nguyen/reddit-stock-scraper
779e2e463fab38567c3bb3c29b21665f7b0a0edd
[ "MIT" ]
null
null
null
reddit-stock-scraper.py
Micheal-Nguyen/reddit-stock-scraper
779e2e463fab38567c3bb3c29b21665f7b0a0edd
[ "MIT" ]
null
null
null
#! python3 import praw import pandas as pd import configparser def scrape(name): config = configparser.ConfigParser() config.read("config.ini") client_id = config.get("reddit", "client_id") client_secret = config.get("reddit", "client_secret") user_agent = config.get("reddit", "user_agent") use...
38.02439
72
0.594612
7974bc76779ea09b824d74099d0946a9ca92c967
21,149
py
Python
questionnaire/models.py
EbookFoundation/fef-questionnaire
6672fa575b2d93b1353f926e9894ae88b4251892
[ "BSD-3-Clause" ]
14
2017-06-21T15:08:45.000Z
2021-11-02T22:04:53.000Z
questionnaire/models.py
EbookFoundation/fef-questionnaire
6672fa575b2d93b1353f926e9894ae88b4251892
[ "BSD-3-Clause" ]
null
null
null
questionnaire/models.py
EbookFoundation/fef-questionnaire
6672fa575b2d93b1353f926e9894ae88b4251892
[ "BSD-3-Clause" ]
6
2018-03-14T20:28:06.000Z
2021-08-16T13:58:38.000Z
import hashlib import json import re import uuid from datetime import datetime from six import text_type as unicodestr from transmeta import TransMeta from django.conf import settings from django.contrib.contenttypes.fields import GenericForeignKey from django.contrib.contenttypes.models import ContentType from django...
37.168717
232
0.628635
7974be84522af2efffaea58d662c1d3ce040ed7a
941
py
Python
server/assistant/skills_assistant_tasks.py
Auenc/macsen-sgwrsfot
7d4da6a6ef38631f2ccd268fdcfd4c114eeb87f4
[ "MIT" ]
3
2020-04-01T11:59:34.000Z
2021-06-28T18:31:24.000Z
server/assistant/skills_assistant_tasks.py
Auenc/macsen-sgwrsfot
7d4da6a6ef38631f2ccd268fdcfd4c114eeb87f4
[ "MIT" ]
3
2021-06-29T12:53:09.000Z
2021-06-30T17:48:00.000Z
server/assistant/skills_assistant_tasks.py
Auenc/macsen-sgwrsfot
7d4da6a6ef38631f2ccd268fdcfd4c114eeb87f4
[ "MIT" ]
2
2021-05-05T14:24:47.000Z
2021-06-29T12:37:41.000Z
from celery import Celery from RecordingsDatabase import RecordingsDatabase app = Celery('skills_assistant_tasks', broker='pyamqp://guest@localhost//') @app.task def initialize_skills_database_task(all_skills): mysql_db = RecordingsDatabase() for skill_name, active in all_skills: mysql_db.add_sk...
26.885714
75
0.659936
7974bfa46518aa2b0ee66abbf9c26b13062bbf6e
1,901
py
Python
common/variable.py
ilil01/qdt
2921fb121f8c6e8cd29bd82fc4b591cb92abab78
[ "BSD-3-Clause" ]
29
2017-12-22T17:25:56.000Z
2022-03-03T08:27:01.000Z
common/variable.py
ilil01/qdt
2921fb121f8c6e8cd29bd82fc4b591cb92abab78
[ "BSD-3-Clause" ]
33
2019-11-26T17:21:14.000Z
2021-08-23T03:28:12.000Z
common/variable.py
ilil01/qdt
2921fb121f8c6e8cd29bd82fc4b591cb92abab78
[ "BSD-3-Clause" ]
7
2017-12-22T17:14:59.000Z
2022-01-30T19:52:03.000Z
__all__ = [ "Variable" ] # Tk variable emulation class # TODO: use `notifier` for feedback def undefined(): pass class Variable(object): """ None as value is a value too. Hence use special internal symbol 'undefined' to distinguish None-valued and non-provided keyword argument. """ def __init__(self...
27.550725
79
0.589164
7974c026ee15ebdd7834babe50ae3f289c7b31c7
167
py
Python
python_scripts/read_time.py
kolathee/speech-analysis-by-GCP
487a857eb034b89c66094ef217556941ff7bdcbe
[ "Apache-2.0" ]
null
null
null
python_scripts/read_time.py
kolathee/speech-analysis-by-GCP
487a857eb034b89c66094ef217556941ff7bdcbe
[ "Apache-2.0" ]
null
null
null
python_scripts/read_time.py
kolathee/speech-analysis-by-GCP
487a857eb034b89c66094ef217556941ff7bdcbe
[ "Apache-2.0" ]
null
null
null
def estimation(text,img_num): len_text = len(text) read_time = (len_text/1000) + img_num*0.2 if read_time < 1: return 1 return round(read_time)
27.833333
45
0.646707
7974c092fb91bd4897ea83423c30ad727da1efe0
210
py
Python
pacote download/Exercicios/ex025.py
renan-e-pereira/cursoemvideo-Python
b6307569c48003dfa8ba03e19919d666afe5b32c
[ "MIT" ]
null
null
null
pacote download/Exercicios/ex025.py
renan-e-pereira/cursoemvideo-Python
b6307569c48003dfa8ba03e19919d666afe5b32c
[ "MIT" ]
null
null
null
pacote download/Exercicios/ex025.py
renan-e-pereira/cursoemvideo-Python
b6307569c48003dfa8ba03e19919d666afe5b32c
[ "MIT" ]
null
null
null
''' --Corrigido-- Crie um programa que leia o nome de uma pessoa e diga se ela tem "Silva" no nome. ''' nome = input('Digite um nome: ').strip() print('Tem "Silva" no nome? {}'.format('Silva' in nome.lower()))
35
81
0.652381
7974c0d6cc9dda5e0f590a69b2a0e6bfbc78e75e
19,615
py
Python
selfdrive/car/tesla/readconfig.py
Klinenator/openpilot
c9b552c15aa5355ce9580107fb9ac382c4280314
[ "MIT" ]
null
null
null
selfdrive/car/tesla/readconfig.py
Klinenator/openpilot
c9b552c15aa5355ce9580107fb9ac382c4280314
[ "MIT" ]
null
null
null
selfdrive/car/tesla/readconfig.py
Klinenator/openpilot
c9b552c15aa5355ce9580107fb9ac382c4280314
[ "MIT" ]
null
null
null
import configparser default_config_file_path = '/data/bb_openpilot.cfg' class ConfigFile(): config_file_r = 'r' config_file_w = 'w' ### Do NOT modify here, modify in /data/bb_openpilot.cfg and reboot def read(self, into, config_path): configr = configparser.RawConfigParser() file_changed = False ...
45.300231
354
0.693806
7974c180bf0f500483149be0d7271eeeabb466bc
95
py
Python
messenger/celery_worker.py
EducationalTestingService/halef-messenger
59eccdbf021a5a1e8290b4f61fdc2b1d74947993
[ "Apache-2.0" ]
null
null
null
messenger/celery_worker.py
EducationalTestingService/halef-messenger
59eccdbf021a5a1e8290b4f61fdc2b1d74947993
[ "Apache-2.0" ]
1
2017-06-05T22:57:47.000Z
2017-06-05T22:58:45.000Z
messenger/celery_worker.py
EducationalTestingService/halef-messenger
59eccdbf021a5a1e8290b4f61fdc2b1d74947993
[ "Apache-2.0" ]
null
null
null
from . import create_app from .extensions import celery app = create_app("production", False)
19
37
0.778947
7974c2322e985031ad8983faa37f1ce695079976
1,068
py
Python
migrations/versions/efe1d6d70d2a_remove_password_hash_add_active_connect_.py
Sonikpass/microblog
e823714651830b883d185a059fa9794f7dab77e2
[ "MIT" ]
null
null
null
migrations/versions/efe1d6d70d2a_remove_password_hash_add_active_connect_.py
Sonikpass/microblog
e823714651830b883d185a059fa9794f7dab77e2
[ "MIT" ]
null
null
null
migrations/versions/efe1d6d70d2a_remove_password_hash_add_active_connect_.py
Sonikpass/microblog
e823714651830b883d185a059fa9794f7dab77e2
[ "MIT" ]
null
null
null
"""remove password_hash add active_connect_id Revision ID: efe1d6d70d2a Revises: 834b1a697901 Create Date: 2020-06-05 08:18:33.374077 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'efe1d6d70d2a' down_revision = '834b1a697901' branch_labels = None depends_on =...
31.411765
98
0.716292
7974c29f9cde2e465eff4deee8a7c1b09c8bf953
50,511
py
Python
optuna/study/study.py
kei-mo/optuna
34220812f9c319c1a49e1180f398000b6b899c9b
[ "MIT" ]
null
null
null
optuna/study/study.py
kei-mo/optuna
34220812f9c319c1a49e1180f398000b6b899c9b
[ "MIT" ]
null
null
null
optuna/study/study.py
kei-mo/optuna
34220812f9c319c1a49e1180f398000b6b899c9b
[ "MIT" ]
null
null
null
import copy import threading from typing import Any from typing import Callable from typing import Dict from typing import Iterable from typing import List from typing import Optional from typing import Sequence from typing import Tuple from typing import Type from typing import TYPE_CHECKING from typing import Union i...
33.764037
99
0.581873
7974c514dfe7de7a6163cb77b751d001edc55424
1,006
py
Python
GUI/embed_mat.py
JaneHQ1/Predicting-Stroke-Severity-from-Computed-Tomography-Images
6988ec693d44da52c1d09946bda0246205de3703
[ "MIT" ]
null
null
null
GUI/embed_mat.py
JaneHQ1/Predicting-Stroke-Severity-from-Computed-Tomography-Images
6988ec693d44da52c1d09946bda0246205de3703
[ "MIT" ]
null
null
null
GUI/embed_mat.py
JaneHQ1/Predicting-Stroke-Severity-from-Computed-Tomography-Images
6988ec693d44da52c1d09946bda0246205de3703
[ "MIT" ]
null
null
null
""" embed matplotlib into Tkcanvas """ def draw_figure(canvas, figure, loc=(0, 0)): """ Draw a matplotlib figure onto a Tk canvas loc: location of top-left corner of figure on canvas in pixels. Inspired by matplotlib source: lib/matplotlib/backends/backend_tkagg.py """ figure_canvas_agg = FigureCa...
40.24
79
0.73161
7974c55834dab8218969db0d4f8c2d7e31ff39f4
3,243
py
Python
packages/grid/apps/domain/src/main/core/model_centric/models/model_manager.py
exityan/PySyft
35166c487a5be57f9ad28929ed88a8ba6bdd5aeb
[ "Apache-2.0" ]
425
2019-09-22T06:14:53.000Z
2022-03-30T02:17:34.000Z
packages/grid/apps/domain/src/main/core/model_centric/models/model_manager.py
Metrix1010/PySyft
6477f64b63dc285059c3766deab3993653cead2e
[ "Apache-2.0" ]
352
2019-09-17T15:32:51.000Z
2022-03-12T01:07:35.000Z
packages/grid/apps/domain/src/main/core/model_centric/models/model_manager.py
Metrix1010/PySyft
6477f64b63dc285059c3766deab3993653cead2e
[ "Apache-2.0" ]
208
2019-09-18T18:32:10.000Z
2022-03-24T01:10:11.000Z
# third party import syft as sy from syft import deserialize from syft import serialize from syft.federated.model_serialization import deserialize_model_params from syft.federated.model_serialization import wrap_model_params from syft.lib.python.list import List # grid relative from ...exceptions import ModelNotFoundE...
28.699115
87
0.663275
7974c5de478243b02b2bbddc854ab0fc007e4b4a
725
py
Python
tests/core/menu/test_entry.py
malviguys/frontendcli
c4c1875892b46a194013ea1d41ca9b815f42ee20
[ "MIT" ]
null
null
null
tests/core/menu/test_entry.py
malviguys/frontendcli
c4c1875892b46a194013ea1d41ca9b815f42ee20
[ "MIT" ]
3
2021-11-26T17:38:31.000Z
2021-12-16T07:28:05.000Z
tests/core/menu/test_entry.py
malviguys/frontendcli
c4c1875892b46a194013ea1d41ca9b815f42ee20
[ "MIT" ]
null
null
null
from unittest.mock import patch, call, Mock import pytest from valid8 import ValidationError from core.menu.menu import Entry def test_create_entry(): e = Entry.create('help', 'If you need help', lambda: None, False) assert e.key.value == 'help' and e.description.value == 'If you need help' def test_entry...
27.884615
78
0.711724
7974c611c0693a9ff243c7b445c06cbea23c65cf
435
py
Python
test/editdata_testJarvis.py
mdvandamme/PoussePousseEditData
1864cd7ddad7002c050c2296b2d90ea817e12f57
[ "MIT" ]
null
null
null
test/editdata_testJarvis.py
mdvandamme/PoussePousseEditData
1864cd7ddad7002c050c2296b2d90ea817e12f57
[ "MIT" ]
null
null
null
test/editdata_testJarvis.py
mdvandamme/PoussePousseEditData
1864cd7ddad7002c050c2296b2d90ea817e12f57
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ """ from sampleConvexHull_Jarvis import convexe T = [[1,3],[4,1],[6,4],[5,5],[2,2],[2,1]] X = [1,4,6,5,2,2] Y = [3,1,4,5,2,1] N = 6 ptmax = 6 env = convexe(X, Y, N, ptmax) print (env) #indices = [] #Ne = len(env) #for e in range(0, int(Ne/2)): # x = env[0::2][e] # y = env[1::2][e...
16.730769
43
0.482759
7974c67a5c41f43b017a0a1312e8b2b84bbc6653
10,783
py
Python
sdk/python/pulumi_azure_nextgen/network/v20191201/packet_capture.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
31
2020-09-21T09:41:01.000Z
2021-02-26T13:21:59.000Z
sdk/python/pulumi_azure_nextgen/network/v20191201/packet_capture.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
231
2020-09-21T09:38:45.000Z
2021-03-01T11:16:03.000Z
sdk/python/pulumi_azure_nextgen/network/v20191201/packet_capture.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
4
2020-09-29T14:14:59.000Z
2021-02-10T20:38:16.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from...
55.297436
2,248
0.691737
7974c6faa8bfab4a302a6a4f5d3215752abd14c6
2,047
py
Python
tests/test_constants.py
ehsanbarkhordar/botcup
4e45c3df2dceb8afe3833c0e89813fa9493295ed
[ "MIT" ]
1
2019-10-22T03:46:17.000Z
2019-10-22T03:46:17.000Z
python-telegram-bot/tests/test_constants.py
shyguy-ry/paddingCheckBot
d0a60cc2f397b9b8e4d60bdea699a94beaff2ea1
[ "Apache-2.0" ]
null
null
null
python-telegram-bot/tests/test_constants.py
shyguy-ry/paddingCheckBot
d0a60cc2f397b9b8e4d60bdea699a94beaff2ea1
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # A library that provides a Python interface to the Telegram Bot API # Copyright (C) 2015-2018 # Leandro Toledo de Souza <devs@python-telegram-bot.org> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser Public License as published by #...
41.77551
92
0.703468
7974c706ed0ce39e7aff7f82f3bafbae98e2fb2e
767
py
Python
lec3.py
widnerlr/isat252
4196a8b1c6f4c75c3f5d8f64164014103b695077
[ "MIT" ]
null
null
null
lec3.py
widnerlr/isat252
4196a8b1c6f4c75c3f5d8f64164014103b695077
[ "MIT" ]
null
null
null
lec3.py
widnerlr/isat252
4196a8b1c6f4c75c3f5d8f64164014103b695077
[ "MIT" ]
null
null
null
""" lecture notes for day3 week1 """ my_list = [1,2,3,4,5] my_letters = ['a','b','c'] my_list[0]=6 #replaced the first integer with the number 6 (0=6) #my_list.append(7) #added number 7 to my list #my_list.remove(7) #removed 7 from my list print(my_list) #print(len(my_list)) #print(6 in my_list) #print('6' in my_lis...
17.837209
64
0.681877
7974c70fe5628cdd9e532e20d164a68acbd05144
1,741
py
Python
mummi_core/utils/timer.py
mummi-framework/mummi-core
3fb36c4701f536a534ce4c8884fee3524b96a689
[ "MIT" ]
4
2021-11-16T07:16:44.000Z
2022-02-03T04:19:31.000Z
mummi_core/utils/timer.py
mummi-framework/mummi-core
3fb36c4701f536a534ce4c8884fee3524b96a689
[ "MIT" ]
null
null
null
mummi_core/utils/timer.py
mummi-framework/mummi-core
3fb36c4701f536a534ce4c8884fee3524b96a689
[ "MIT" ]
1
2021-11-23T19:55:08.000Z
2021-11-23T19:55:08.000Z
# Copyright (c) 2021, Lawrence Livermore National Security, LLC. All rights reserved. LLNL-CODE-827197. # This work was produced at the Lawrence Livermore National Laboratory (LLNL) under contract no. DE-AC52-07NA27344 (Contract 44) between the U.S. Department of Energy (DOE) and Lawrence Livermore National Security, L...
32.849057
349
0.480184
7974c747eca1736bb2635eef56988221c03fd315
903
py
Python
omaha_server/omaha/migrations/0004_partialupdate.py
makar21/omaha-server
b84cdf6e67d9106e7a86b447204de4f82397b019
[ "Apache-2.0" ]
8
2018-06-25T07:20:17.000Z
2021-02-07T20:01:04.000Z
omaha_server/omaha/migrations/0004_partialupdate.py
makar21/omaha-server
b84cdf6e67d9106e7a86b447204de4f82397b019
[ "Apache-2.0" ]
8
2018-06-22T21:56:27.000Z
2020-06-25T15:22:56.000Z
omaha_server/omaha/migrations/0004_partialupdate.py
dentalwings/omaha-server
3d8e18c8f4aac4eb16445c0f3160ed1fc2fc8de5
[ "Apache-2.0" ]
11
2019-01-22T01:36:42.000Z
2022-03-09T01:41:32.000Z
# -*- coding: utf-8 -*- import django.db.models.deletion from django.db import models, migrations import omaha.fields class Migration(migrations.Migration): dependencies = [ ('omaha', '0003_version_is_enabled'), ] operations = [ migrations.CreateModel( name='PartialUpdate', ...
30.1
115
0.564784
7974c7c094b583fc6ecb3d23b297ccaa3d01378c
803
py
Python
manage.py
maktoubian/Django
12c19f5ad3fe324446748843bc74f952131f8952
[ "MIT" ]
null
null
null
manage.py
maktoubian/Django
12c19f5ad3fe324446748843bc74f952131f8952
[ "MIT" ]
null
null
null
manage.py
maktoubian/Django
12c19f5ad3fe324446748843bc74f952131f8952
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "examp.settings") try: from django.core.management import execute_from_command_line except ImportError: # The above import may fail for some other reason. Ensure that the ...
34.913043
77
0.641345
7974c86f77017d50a396d1388a223b916906e112
13,250
py
Python
franQ/Env/classic_control_goal/classic_goal.py
llucid-97/FastDeepQLearning
023d617ad86477763e424fd09fb496571083c50c
[ "MIT" ]
5
2020-08-19T14:41:37.000Z
2021-06-30T14:52:04.000Z
franQ/Env/classic_control_goal/classic_goal.py
llucid-97/FastDeepQLearning
023d617ad86477763e424fd09fb496571083c50c
[ "MIT" ]
4
2021-08-04T11:53:47.000Z
2021-08-28T15:45:24.000Z
franQ/Env/classic_control_goal/classic_goal.py
llucid-97/FastDeepQLearning
023d617ad86477763e424fd09fb496571083c50c
[ "MIT" ]
null
null
null
from collections import OrderedDict import typing as T import numpy as np import gym spaces = gym.spaces from franQ.Env import wrappers from franQ.Env.conf import EnvConf class ClassicGoalEnv(wrappers.Wrapper): def __init__(self, conf: EnvConf): tasks = { "CartPole-v1": CartPoleGoalEnv, ...
38.629738
112
0.595925
7974c954296c262961b1f3f893b7ebd0a93226ed
2,176
py
Python
src/models/lsun_bedroom_64_haar/Validation_data.py
YorkUCVIL/Wavelet-Flow
8d6d63fa116ec44299c32f37e66817594510f644
[ "MIT" ]
59
2020-10-28T03:09:05.000Z
2022-01-29T22:10:04.000Z
src/models/lsun_bedroom_64_haar/Validation_data.py
YorkUCVIL/Wavelet-Flow
8d6d63fa116ec44299c32f37e66817594510f644
[ "MIT" ]
4
2020-12-24T11:00:40.000Z
2021-05-22T06:14:27.000Z
src/models/lsun_bedroom_64_haar/Validation_data.py
YorkUCVIL/Wavelet-Flow
8d6d63fa116ec44299c32f37e66817594510f644
[ "MIT" ]
2
2020-10-29T01:15:03.000Z
2021-04-20T11:55:51.000Z
import tensorflow as tf import os from util import * class Validation_data: def __init__(self,batch_override=None,shuffle_repeat=True,partial_level=0): with tf.variable_scope(None,default_name='validation_data'): self.crop_factor = config.validation.partial_training_crops[partial_level] datasetRoot = config.v...
30.647887
79
0.735754
7974c984d1f6e8e25afa2a3ae04d4ee509d8e489
696
py
Python
torrentscraper/webscrapers/utils/rarbg_bypass/captcha_handler.py
AsiganTheSunk/python-torrent-scrapper
30f27962e795840b82d47398e05664429829ff2b
[ "Apache-2.0" ]
5
2018-05-19T06:18:01.000Z
2020-01-14T23:17:30.000Z
torrentscraper/webscrapers/utils/rarbg_bypass/captcha_handler.py
AsiganTheSunk/python-torrent-scrapper
30f27962e795840b82d47398e05664429829ff2b
[ "Apache-2.0" ]
9
2018-05-24T01:02:46.000Z
2020-02-13T22:35:43.000Z
torrentscraper/webscrapers/utils/rarbg_bypass/captcha_handler.py
AsiganTheSunk/python-torrent-scrapper
30f27962e795840b82d47398e05664429829ff2b
[ "Apache-2.0" ]
null
null
null
import os import pytesseract import requests from PIL import Image # Get CAPTCHA image & extract text class CaptchaHandler: def __init__(self): self.filename = 'solved_captcha.png' def get_captcha(self, src): img = requests.get(src) with open(self.filename, 'wb') as captcha_image: ...
25.777778
72
0.658046
7974ca14ec6459a7231f56601a8396482372e1bf
18,554
py
Python
ucsmsdk/mometa/policy/PolicyPolicyScopeContFsm.py
thinkitdata/ucsmsdk
da6599e1dbc1207a30eabe548a7e5791af5f476b
[ "Apache-2.0" ]
null
null
null
ucsmsdk/mometa/policy/PolicyPolicyScopeContFsm.py
thinkitdata/ucsmsdk
da6599e1dbc1207a30eabe548a7e5791af5f476b
[ "Apache-2.0" ]
null
null
null
ucsmsdk/mometa/policy/PolicyPolicyScopeContFsm.py
thinkitdata/ucsmsdk
da6599e1dbc1207a30eabe548a7e5791af5f476b
[ "Apache-2.0" ]
null
null
null
"""This module contains the general information for PolicyPolicyScopeContFsm ManagedObject.""" from ...ucsmo import ManagedObject from ...ucscoremeta import MoPropertyMeta, MoMeta from ...ucsmeta import VersionMeta class PolicyPolicyScopeContFsmConsts: COMPLETION_TIME_ = "" CURRENT_FSM_REPORT_POLICY_FAIL_FSM...
88.352381
3,702
0.757465
7974ca62104f0893af24608e43efe20b911bb871
595
py
Python
pychunkedgraph/app/config.py
fcollman/PyChunkedGraph
e4d30c92b86ce1ade791bf3da611a0b5c3a4bb63
[ "MIT" ]
1
2019-11-22T18:04:44.000Z
2019-11-22T18:04:44.000Z
pychunkedgraph/app/config.py
fcollman/PyChunkedGraph
e4d30c92b86ce1ade791bf3da611a0b5c3a4bb63
[ "MIT" ]
null
null
null
pychunkedgraph/app/config.py
fcollman/PyChunkedGraph
e4d30c92b86ce1ade791bf3da611a0b5c3a4bb63
[ "MIT" ]
null
null
null
import logging import os class BaseConfig(object): DEBUG = False TESTING = False HOME = os.path.expanduser("~") # TODO get this secret out of source control SECRET_KEY = '1d94e52c-1c89-4515-b87a-f48cf3cb7f0b' LOGGING_FORMAT = '%(asctime)s - %(levelname)s - %(message)s' LOGGING_LOCATION = H...
31.315789
64
0.69916
7974cae5ef8ba160422a3797e09a47f2c59c6868
2,222
py
Python
EditedSearchEngine/utils/parser.py
rij12/Search-Engine
654ec124860d289803963fd9117f5a132cc31c2f
[ "Apache-2.0" ]
null
null
null
EditedSearchEngine/utils/parser.py
rij12/Search-Engine
654ec124860d289803963fd9117f5a132cc31c2f
[ "Apache-2.0" ]
null
null
null
EditedSearchEngine/utils/parser.py
rij12/Search-Engine
654ec124860d289803963fd9117f5a132cc31c2f
[ "Apache-2.0" ]
null
null
null
import csv import re import pygtrie from nltk.stem import PorterStemmer ps = PorterStemmer() def parse_csv_file(file): """ loads CSV file and creates an inverted index that stores all tokens in the csv files as a key and value: all the products that the token appears in. :return: Inverted index ...
25.837209
97
0.568407
7974cb2b630fbbab4a1bc50fa16a7010ce94e9d4
2,568
py
Python
tb_rest_client/models/models_ce/sms_provider_configuration.py
jernkuan/thingsboard-python-rest-client
3fb25272507494e6d494b27ca2380d3c543562e5
[ "Apache-2.0" ]
null
null
null
tb_rest_client/models/models_ce/sms_provider_configuration.py
jernkuan/thingsboard-python-rest-client
3fb25272507494e6d494b27ca2380d3c543562e5
[ "Apache-2.0" ]
null
null
null
tb_rest_client/models/models_ce/sms_provider_configuration.py
jernkuan/thingsboard-python-rest-client
3fb25272507494e6d494b27ca2380d3c543562e5
[ "Apache-2.0" ]
1
2021-11-26T11:24:56.000Z
2021-11-26T11:24:56.000Z
# coding: utf-8 """ ThingsBoard REST API For instructions how to authorize requests please visit <a href='http://thingsboard.io/docs/reference/rest-api/'>REST API documentation page</a>. # noqa: E501 OpenAPI spec version: 2.0 Contact: info@thingsboard.io Generated by: https://github.com/swagger-...
30.211765
163
0.568146
7974cc13ce86e41ee3599cb38417ebe2f3fa2ccf
1,269
py
Python
bbpyp/lexicomb/parser/model/precedence_level_enum.py
BloggerBust/tag_script
985a4b6b8c026431842d608ba8feafe8751dd425
[ "Apache-2.0" ]
null
null
null
bbpyp/lexicomb/parser/model/precedence_level_enum.py
BloggerBust/tag_script
985a4b6b8c026431842d608ba8feafe8751dd425
[ "Apache-2.0" ]
null
null
null
bbpyp/lexicomb/parser/model/precedence_level_enum.py
BloggerBust/tag_script
985a4b6b8c026431842d608ba8feafe8751dd425
[ "Apache-2.0" ]
null
null
null
from enum import Flag, unique, auto @unique class PrecedenceLevelEnum(Flag): ZERO = auto() ONE = auto() TWO = auto() THREE = auto() FOUR = auto() FIVE = auto() SIX = auto() ALL = ZERO|ONE|TWO|THREE|FOUR|FIVE|SIX def __eq__(self, other): if self.__class__ is not other.__...
33.394737
80
0.630418
7974cc3b216f4b1207e8774c038a9c55fb652f10
1,523
py
Python
swe/tests/test_swe.py
SebastianoF/pyro2
9d1787c2ee25d735a414db3da8c00287743a6fde
[ "BSD-3-Clause" ]
151
2018-08-14T12:52:22.000Z
2022-03-29T07:57:01.000Z
swe/tests/test_swe.py
SebastianoF/pyro2
9d1787c2ee25d735a414db3da8c00287743a6fde
[ "BSD-3-Clause" ]
40
2015-03-25T15:45:44.000Z
2018-07-30T18:48:47.000Z
swe/tests/test_swe.py
SebastianoF/pyro2
9d1787c2ee25d735a414db3da8c00287743a6fde
[ "BSD-3-Clause" ]
56
2018-10-10T16:54:59.000Z
2022-02-06T08:48:52.000Z
import numpy as np from numpy.testing import assert_array_equal from util import runparams import swe.simulation as sn class TestSimulation(object): @classmethod def setup_class(cls): """ this is run once for each class before any tests """ pass @classmethod def teardown_class(cls): ...
27.196429
92
0.600131
7974cc706333041818fea305d9fae3f03fe7a54e
1,167
py
Python
lof/lof.py
youbaji/outlier
a18daa6bd56015541ba77bb2650f8c4f135a041f
[ "Apache-2.0" ]
16
2016-01-20T14:06:22.000Z
2020-05-07T16:16:32.000Z
lof/lof.py
youbaji/outlier
a18daa6bd56015541ba77bb2650f8c4f135a041f
[ "Apache-2.0" ]
null
null
null
lof/lof.py
youbaji/outlier
a18daa6bd56015541ba77bb2650f8c4f135a041f
[ "Apache-2.0" ]
8
2015-12-08T22:22:30.000Z
2017-12-09T01:54:18.000Z
import numpy as np import scipy.stats as stats from scipy.spatial.distance import pdist, squareform import pdb class Lof(): def __init__(self, k): self.k = k def fit(self, data): #tree = sp.spatial.KDTree(data) distance = squareform(pdist(data)) indices = stats.mstats.rankdata(...
29.923077
94
0.55527
7974cd077e8a6c217f94040f950c59238c3c4547
3,334
py
Python
geodata/sketch7.py
dabi0614/GeoData
1699e9d7eb2c23dfee1e14ac5857507834909914
[ "NASA-1.3" ]
1
2020-06-29T13:30:12.000Z
2020-06-29T13:30:12.000Z
geodata/sketch7.py
dabi0614/GeoData
1699e9d7eb2c23dfee1e14ac5857507834909914
[ "NASA-1.3" ]
1
2021-07-25T12:04:44.000Z
2021-07-25T17:57:04.000Z
geodata/sketch7.py
dabi0614/GeoData
1699e9d7eb2c23dfee1e14ac5857507834909914
[ "NASA-1.3" ]
null
null
null
# Look for intersection between MERRA and GOES files # Ignoring the file-name connection... import geodata as gd from netCDF4 import Dataset import numpy as np import pystare as ps import os, fnmatch dataPath = "/home/mrilee/data/" listOfFiles = os.listdir(dataPath) patterns = ["*.nc","*.nc4"] for pattern in pa...
36.637363
169
0.622376
7974cd35dbe6b5a114263ea5c082c9447f27fbd6
2,171
py
Python
backend/mdc_34123/urls.py
crowdbotics-apps/mdc-34123
2d8a4fc468b81ab4a4b4a9a91c32d2b2e8614bb3
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/mdc_34123/urls.py
crowdbotics-apps/mdc-34123
2d8a4fc468b81ab4a4b4a9a91c32d2b2e8614bb3
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/mdc_34123/urls.py
crowdbotics-apps/mdc-34123
2d8a4fc468b81ab4a4b4a9a91c32d2b2e8614bb3
[ "FTL", "AML", "RSA-MD" ]
null
null
null
"""mdc_34123 URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-bas...
33.921875
87
0.711654
7974ce49c97160e64404a7c134d43134788fb01f
1,543
py
Python
introduction_course/lesson6/task3/tests.py
SSD1805/pycharm-courses
d58b9c945c11c320fc7f50878994f377ccda3e4f
[ "Apache-2.0" ]
null
null
null
introduction_course/lesson6/task3/tests.py
SSD1805/pycharm-courses
d58b9c945c11c320fc7f50878994f377ccda3e4f
[ "Apache-2.0" ]
null
null
null
introduction_course/lesson6/task3/tests.py
SSD1805/pycharm-courses
d58b9c945c11c320fc7f50878994f377ccda3e4f
[ "Apache-2.0" ]
null
null
null
from test_helper import run_common_tests, failed, passed, get_answer_placeholders, get_file_output def test_column(): window = get_answer_placeholders()[0] if ":" in window: passed() else: failed("Don't forget a colon at the end") def test_window(): window = get_answer_placeholders()...
25.295082
98
0.620868
7974cf494b561fd6af1a8795455c3de4ecbce15c
6,788
py
Python
bindings/python/ensmallen_graph/datasets/string/aquimarinaspsw150.py
caufieldjh/ensmallen_graph
14e98b1cdbc73193a84a913d7d4f2b2b3eb2c43a
[ "MIT" ]
null
null
null
bindings/python/ensmallen_graph/datasets/string/aquimarinaspsw150.py
caufieldjh/ensmallen_graph
14e98b1cdbc73193a84a913d7d4f2b2b3eb2c43a
[ "MIT" ]
null
null
null
bindings/python/ensmallen_graph/datasets/string/aquimarinaspsw150.py
caufieldjh/ensmallen_graph
14e98b1cdbc73193a84a913d7d4f2b2b3eb2c43a
[ "MIT" ]
null
null
null
""" This file offers the methods to automatically retrieve the graph Aquimarina sp. SW150. The graph is automatically retrieved from the STRING repository. Report --------------------- At the time of rendering these methods (please see datetime below), the graph had the following characteristics: Datetime: 2021-0...
35.539267
223
0.706541
7974cf83b60e3daa7331faa29e3aca6938387f2d
2,558
py
Python
data_processing/i_tables.py
WybeKoper/PASAF
b7052eecb686f50a1988bdb7b1a88a26fc2240b5
[ "Apache-2.0" ]
null
null
null
data_processing/i_tables.py
WybeKoper/PASAF
b7052eecb686f50a1988bdb7b1a88a26fc2240b5
[ "Apache-2.0" ]
null
null
null
data_processing/i_tables.py
WybeKoper/PASAF
b7052eecb686f50a1988bdb7b1a88a26fc2240b5
[ "Apache-2.0" ]
null
null
null
import matplotlib.pyplot as plt from matplotlib.transforms import Bbox import pandas as pd from adjustText import adjust_text import os from mpl_toolkits.axes_grid1.inset_locator import zoomed_inset_axes from mpl_toolkits.axes_grid1.inset_locator import mark_inset def number_of_rescales(taskmanager): previous_numb...
41.934426
263
0.733385
7974d0221a54f63a041e45e191c7c84d73f12e71
2,137
py
Python
examples/pull_entry_values.py
c0gnac/dealcloud-python
ee27603e262eb49415fb2620b680a970ee3728a9
[ "BSD-3-Clause" ]
1
2020-04-17T08:28:58.000Z
2020-04-17T08:28:58.000Z
examples/pull_entry_values.py
c0gnac/dealcloud-python
ee27603e262eb49415fb2620b680a970ee3728a9
[ "BSD-3-Clause" ]
3
2020-04-17T13:26:55.000Z
2021-03-31T19:33:49.000Z
examples/pull_entry_values.py
jholtio/dealcloud-python
995d5a4066441120d2e8f4612ea4c20b658df123
[ "BSD-3-Clause" ]
2
2020-04-17T12:53:23.000Z
2021-02-27T00:09:39.000Z
""" This script pulls the values of the fields for the "Project Genome" entry on the Deal list """ import getpass as gp import sys import requests import dealcloud as dc # Create an instance of a client for the DealCloud Data Service and a service # proxy try: client = dc.create_client( ...
28.878378
80
0.687412
7974d07b24167d217de03904be020106748da301
758
py
Python
enrolled/net-intro-CS2105/ass/ass-0/tdir/PacketCat.py
plty/nus
3d75b6d1c54022a42edbc15317507ddc988a7231
[ "MIT" ]
null
null
null
enrolled/net-intro-CS2105/ass/ass-0/tdir/PacketCat.py
plty/nus
3d75b6d1c54022a42edbc15317507ddc988a7231
[ "MIT" ]
null
null
null
enrolled/net-intro-CS2105/ass/ass-0/tdir/PacketCat.py
plty/nus
3d75b6d1c54022a42edbc15317507ddc988a7231
[ "MIT" ]
null
null
null
import sys def write(data): sys.stdout.buffer.write(data) sys.stdout.buffer.flush() def read(size=1024): return sys.stdin.buffer.read1(size) def main(): rem_bytes = 0 data = read() while data != b'': i = 0 while i < len(data): if rem_bytes == 0: j =...
23.6875
74
0.42876
7974d12c5d7301b6b18f3d032cbf97b068989af5
3,822
gyp
Python
gpu/gpu_untrusted.gyp
nagineni/chromium-crosswalk
5725642f1c67d0f97e8613ec1c3e8107ab53fdf8
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
4
2017-04-05T01:51:34.000Z
2018-02-15T03:11:54.000Z
gpu/gpu_untrusted.gyp
j4ckfrost/android_external_chromium_org
a1a3dad8b08d1fcf6b6b36c267158ed63217c780
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
1
2021-12-13T19:44:12.000Z
2021-12-13T19:44:12.000Z
gpu/gpu_untrusted.gyp
j4ckfrost/android_external_chromium_org
a1a3dad8b08d1fcf6b6b36c267158ed63217c780
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
4
2015-02-09T08:49:30.000Z
2017-08-26T02:03:34.000Z
# Copyright (c) 2012 The Chromium 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': { 'chromium_code': 1, # nacl_win64_target is for building the trusted Win64 NaCl broker. 'nacl_win64_target': 0, }, 'inc...
31.327869
80
0.515699
7974d15c87f027712c188b53137bee89c19b1c27
320
py
Python
15905/15905.py
doribugi/BOJ
eae161475b1d155b17376206dfd2f6a7d40e9a8c
[ "MIT" ]
null
null
null
15905/15905.py
doribugi/BOJ
eae161475b1d155b17376206dfd2f6a7d40e9a8c
[ "MIT" ]
1
2019-06-15T14:38:09.000Z
2022-01-26T00:18:53.000Z
15905/15905.py
doribugi/BOJ
eae161475b1d155b17376206dfd2f6a7d40e9a8c
[ "MIT" ]
null
null
null
# 문제: https://www.acmicpc.net/problem/15905 # 풀이: 맞은 문제 수, 페널티 순으로 정렬하여 5등과 같은 문제 수를 푼 5등 이하 학생 수를 센다 n = int(input()) students = [tuple(map(int, input().split())) for _ in range(n)] students.sort(reverse=True) count = 0 for student in students[5:]: if student[0] == students[4][0]: count += 1 print(count)
26.666667
63
0.640625
7974d1870c2375c957bafef9eaaa5b9fe2424f60
2,297
py
Python
xor.py
CanKorkut/Backpropagation-for-XOR-Using-Python
1852a0be8cf7719f95be1f26a5bb734697ddb6fc
[ "Apache-2.0" ]
null
null
null
xor.py
CanKorkut/Backpropagation-for-XOR-Using-Python
1852a0be8cf7719f95be1f26a5bb734697ddb6fc
[ "Apache-2.0" ]
null
null
null
xor.py
CanKorkut/Backpropagation-for-XOR-Using-Python
1852a0be8cf7719f95be1f26a5bb734697ddb6fc
[ "Apache-2.0" ]
null
null
null
""" Can Korkut 24.04.2019 """ import math import random def sigmoid(x): return 1 / (1 + math.exp(-x)) def sigmoid_derivative(x): return x*(1-x) class input_neuron: def neuron_calculate(self,i0,i1,W0,W1,bias): f1=(W0*i0) +(i1*W1)+bias f_net=sigmoid(f1) return f...
24.178947
94
0.555507
7974d1f58e484c86b8ad2b3dd92d810d2bf8b445
182
py
Python
calculators/views.py
hughest64/brew_app
f450e9923e6242b3c37dc3934af6ab540c39999f
[ "MIT" ]
null
null
null
calculators/views.py
hughest64/brew_app
f450e9923e6242b3c37dc3934af6ab540c39999f
[ "MIT" ]
null
null
null
calculators/views.py
hughest64/brew_app
f450e9923e6242b3c37dc3934af6ab540c39999f
[ "MIT" ]
null
null
null
from django.shortcuts import render from . import models def main(request): """ The main page for the calculators app. """ return render(request, 'calculators/main.html')
20.222222
51
0.714286
7974d2f3b51f2bde324b2b12705af2cf7afe700a
1,240
py
Python
03_Strings/minimum_characters_required_to_make_a_string_palindromic.py
Sheetal0601/InterviewBit
72ba1507278dafac6e5fb81da20d372e3d141348
[ "MIT" ]
61
2018-02-18T08:16:31.000Z
2022-02-17T17:18:57.000Z
03_Strings/minimum_characters_required_to_make_a_string_palindromic.py
Sheetal0601/InterviewBit
72ba1507278dafac6e5fb81da20d372e3d141348
[ "MIT" ]
1
2018-02-23T20:06:18.000Z
2019-12-29T18:52:20.000Z
03_Strings/minimum_characters_required_to_make_a_string_palindromic.py
Sheetal0601/InterviewBit
72ba1507278dafac6e5fb81da20d372e3d141348
[ "MIT" ]
30
2018-03-28T19:02:23.000Z
2021-07-06T20:00:14.000Z
# Minimum Characters required to make a String Palindromic # https://www.interviewbit.com/problems/minimum-characters-required-to-make-a-string-palindromic/ # # You are given a string. The only operation allowed is to insert characters in the beginning of the string. # How many minimum characters are needed to be inser...
28.837209
108
0.499194
7974d31a6780515f62fade1641fd3979d3047f00
920
py
Python
22.py
tsbxmw/leetcode
e751311b8b5f2769874351717a22c35c19b48a36
[ "MIT" ]
null
null
null
22.py
tsbxmw/leetcode
e751311b8b5f2769874351717a22c35c19b48a36
[ "MIT" ]
null
null
null
22.py
tsbxmw/leetcode
e751311b8b5f2769874351717a22c35c19b48a36
[ "MIT" ]
null
null
null
# 22. 括号生成 # 给出 n 代表生成括号的对数,请你写出一个函数,使其能够生成所有可能的并且有效的括号组合。 # 例如,给出 n = 3,生成结果为: # [ # "((()))", # "(()())", # "(())()", # "()(())", # "()()()" # ] # 通过次数77,024提交次数104,902 # 我觉得是 深度搜索 class Solution: def generateParenthesis(self, n: int): if n == 0: return [] ...
21.904762
57
0.447826
7974d37226e6e0ce12b283f059a17a125fca4016
20,947
py
Python
test/unit/test_contracts_graph_compiled.py
IS-Josh/dbt
e56c5224685f242822b1bd70d90357334215ce62
[ "Apache-2.0" ]
1
2021-09-09T20:22:43.000Z
2021-09-09T20:22:43.000Z
test/unit/test_contracts_graph_compiled.py
IS-Josh/dbt
e56c5224685f242822b1bd70d90357334215ce62
[ "Apache-2.0" ]
null
null
null
test/unit/test_contracts_graph_compiled.py
IS-Josh/dbt
e56c5224685f242822b1bd70d90357334215ce62
[ "Apache-2.0" ]
null
null
null
import pickle import pytest from dbt.contracts.files import FileHash from dbt.contracts.graph.compiled import ( CompiledModelNode, InjectedCTE, CompiledSchemaTestNode ) from dbt.contracts.graph.parsed import ( DependsOn, NodeConfig, TestConfig, TestMetadata, ColumnInfo ) from dbt.node_types import NodeType fr...
35.323777
142
0.608058
7974d39701afd7435778d9a6abec764082a02518
1,811
py
Python
nicos_mlz/kompass/setups/guidefocus.py
ebadkamil/nicos
0355a970d627aae170c93292f08f95759c97f3b5
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
null
null
null
nicos_mlz/kompass/setups/guidefocus.py
ebadkamil/nicos
0355a970d627aae170c93292f08f95759c97f3b5
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
1
2021-08-18T10:55:42.000Z
2021-08-18T10:55:42.000Z
nicos_mlz/kompass/setups/guidefocus.py
ISISComputingGroup/nicos
94cb4d172815919481f8c6ee686f21ebb76f2068
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
null
null
null
description = 'Neutron guide focussing devices' group = 'lowlevel' tango_base = 'tango://kompasshw.kompass.frm2:10000/kompass/' devices = dict( lguide_m = device('nicos.devices.tango.Motor', description = 'Long table motor', tangodevice = tango_base + 'guides/long_m', fmtstr = '%.2f', ...
29.688525
60
0.549972
7974d4ece4a4b2a110598ba801cb09ebef1dc514
3,196
py
Python
alipay/aop/api/request/AlipaySocialBaseMcommentStudentQueryRequest.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
32
2018-05-24T08:40:15.000Z
2019-04-04T20:54:55.000Z
alipay/aop/api/request/AlipaySocialBaseMcommentStudentQueryRequest.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
7
2018-05-24T08:42:59.000Z
2020-09-06T23:18:46.000Z
alipay/aop/api/request/AlipaySocialBaseMcommentStudentQueryRequest.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
13
2018-04-25T11:27:58.000Z
2021-03-15T12:22:21.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.FileItem import FileItem from alipay.aop.api.constant.ParamConstants import * class AlipaySocialBaseMcommentStudentQueryRequest(object): def __init__(self, biz_model=None): self._biz_model = biz_model self._version =...
24.96875
142
0.637046
7974d4fb71c2e5c5b3cc88ec4efba3594c689014
413
py
Python
Dataset/Leetcode/train/110/574.py
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
Dataset/Leetcode/train/110/574.py
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
Dataset/Leetcode/train/110/574.py
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
class Solution: def XXX(self, root: TreeNode) -> bool: def height_balanced(root): if root: left = height_balanced(root.left) right = height_balanced(root.right) return (max(left[0], right[0]) + 1, left[1] and right[1] and abs(left[0] - right[0]) <=...
34.416667
106
0.530266
7974d51cd54d872ceb2f4a4e63c7b7c59f8154a3
3,751
py
Python
lib/flows/general/grep.py
pchaigno/grr
69c81624c281216a45c4bb88a9d4e4b0613a3556
[ "Apache-2.0" ]
1
2015-01-07T05:29:57.000Z
2015-01-07T05:29:57.000Z
lib/flows/general/grep.py
pchaigno/grr
69c81624c281216a45c4bb88a9d4e4b0613a3556
[ "Apache-2.0" ]
null
null
null
lib/flows/general/grep.py
pchaigno/grr
69c81624c281216a45c4bb88a9d4e4b0613a3556
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """A simple grep flow.""" import stat from grr.lib import aff4 from grr.lib import flow from grr.lib.rdfvalues import client as rdf_client from grr.lib.rdfvalues import structs as rdf_structs from grr.proto import flows_pb2 class SearchFileContentArgs(rdf_structs.RDFProtoStruct): protobuf =...
36.417476
80
0.677419
7974d53ca90a2e3a880c3ed1e930b1e5e594b92f
1,046
py
Python
day01/day01.py
vblank182/AdventOfCode2019
c4c4eea4156e888c2423f003453342e51a848e5e
[ "MIT" ]
null
null
null
day01/day01.py
vblank182/AdventOfCode2019
c4c4eea4156e888c2423f003453342e51a848e5e
[ "MIT" ]
null
null
null
day01/day01.py
vblank182/AdventOfCode2019
c4c4eea4156e888c2423f003453342e51a848e5e
[ "MIT" ]
null
null
null
## Advent of Code 2019: Day 1 ## https://adventofcode.com/2019/day/1 ## Jesse Williams | github.com/vblank182 ## Answers: [Part 1]: 3126794, [Part 2]: 4687331 from math import floor def calcFuel(mass): # Returns the fuel mass required to launch the input module mass return floor(int(mass)/3) - 2 def calcAllF...
28.27027
158
0.655832
7974d6a8297fa2a263e3b66d9f654f9d19a246ee
730
py
Python
migrations/schematic_settings.py
mozilla/FlightDeck
61d66783252ac1318c990e342877a26c64f59062
[ "BSD-3-Clause" ]
6
2015-04-24T03:10:44.000Z
2020-12-27T19:46:33.000Z
migrations/schematic_settings.py
fox2mike/FlightDeck
3a2fc78c13dd968041b349c4f9343e6c8b22dd25
[ "BSD-3-Clause" ]
null
null
null
migrations/schematic_settings.py
fox2mike/FlightDeck
3a2fc78c13dd968041b349c4f9343e6c8b22dd25
[ "BSD-3-Clause" ]
5
2015-09-18T19:58:31.000Z
2020-01-28T05:46:55.000Z
import sys import os sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) import manage from django.conf import settings config = settings.DATABASES['default'] config['HOST'] = config.get('HOST', 'localhost') config['PORT'] = config.get('PORT', '3306') if not config['HOST'] or config['HOS...
23.548387
79
0.647945
7974d732fda94a92cb62cac91a4815d317735704
13,348
py
Python
samples/client/petstore/python/petstore_api/models/format_test.py
dimitriyremerov/swagger-codegen
4607a90d7b69463a0ae8fc94fac68fc95d80965e
[ "Apache-2.0" ]
7
2017-08-25T12:53:28.000Z
2022-03-25T06:26:22.000Z
samples/client/petstore/python/petstore_api/models/format_test.py
dimitriyremerov/swagger-codegen
4607a90d7b69463a0ae8fc94fac68fc95d80965e
[ "Apache-2.0" ]
25
2016-06-30T15:32:01.000Z
2021-08-05T16:06:30.000Z
samples/client/petstore/python/petstore_api/models/format_test.py
wirelane/swagger-codegen
6f224ee28c3f7d157711baefbea82b19d02fb4d5
[ "Apache-2.0" ]
7
2016-06-26T22:45:00.000Z
2022-03-31T21:12:16.000Z
# coding: utf-8 """ Swagger Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 OpenAPI spec version: 1.0.0 Contact: apiteam@swagger.io Generated by: https://github.com/...
29.207877
203
0.559934
7974d76700ea90d959f2fd0df19c0fa73d670329
1,703
py
Python
configs/swin/swin_l_upper_w_jitter_inference.py
jozhang97/mmsegmentation
aecdf14de912be9a10be9346d7749cbd3cf70e4a
[ "Apache-2.0" ]
null
null
null
configs/swin/swin_l_upper_w_jitter_inference.py
jozhang97/mmsegmentation
aecdf14de912be9a10be9346d7749cbd3cf70e4a
[ "Apache-2.0" ]
null
null
null
configs/swin/swin_l_upper_w_jitter_inference.py
jozhang97/mmsegmentation
aecdf14de912be9a10be9346d7749cbd3cf70e4a
[ "Apache-2.0" ]
null
null
null
_base_ = [ '../_base_/models/upernet_swin.py', '../_base_/datasets/uvo_inference.py', '../_base_/default_runtime.py', '../_base_/schedules/schedule_160k.py' ] model = dict( pretrained='PATH/TO/YOUR/swin_large_patch4_window12_384_22k.pth', backbone=dict( pretrain_img_size=384, embed_dims...
28.383333
78
0.642396
7974d8ea4db135fa272b6e745fd2e7d6eaa5ec13
704
py
Python
src/paths.py
dowalder/gym-duckietown
6a2ea8adfe0d25e2a88deb8cfb31c71fc332ce0e
[ "MIT" ]
null
null
null
src/paths.py
dowalder/gym-duckietown
6a2ea8adfe0d25e2a88deb8cfb31c71fc332ce0e
[ "MIT" ]
null
null
null
src/paths.py
dowalder/gym-duckietown
6a2ea8adfe0d25e2a88deb8cfb31c71fc332ce0e
[ "MIT" ]
2
2018-08-28T07:40:14.000Z
2018-08-28T07:49:10.000Z
#!/usr/bin/env python3 """ Functions for path manipulation """ from pathlib import Path from typing import List def str_to_list(string: str, need_exist=False, create=False, sep=",", is_dir=False) -> List[Path]: """ Creates a list of pathlib.Paths from a comma (or else) separated list. """ paths = [P...
27.076923
98
0.606534
7974d9835117ac7b50ff319853ffb732480b094a
20,551
py
Python
log_complete_bcl2/model_533.py
LoLab-VU/Bayesian_Inference_of_Network_Dynamics
54a5ef7e868be34289836bbbb024a2963c0c9c86
[ "MIT" ]
null
null
null
log_complete_bcl2/model_533.py
LoLab-VU/Bayesian_Inference_of_Network_Dynamics
54a5ef7e868be34289836bbbb024a2963c0c9c86
[ "MIT" ]
null
null
null
log_complete_bcl2/model_533.py
LoLab-VU/Bayesian_Inference_of_Network_Dynamics
54a5ef7e868be34289836bbbb024a2963c0c9c86
[ "MIT" ]
null
null
null
# exported from PySB model 'model' from pysb import Model, Monomer, Parameter, Expression, Compartment, Rule, Observable, Initial, MatchOnce, Annotation, ANY, WILD Model() Monomer('Ligand', ['Receptor']) Monomer('ParpU', ['C3A']) Monomer('C8A', ['BidU', 'C3pro']) Monomer('SmacM', ['BaxA']) Monomer('BaxM', ['BidM', '...
95.143519
798
0.804146
7974dab5e862d5e084aae546c23a7a671afcd67f
10,107
py
Python
unifi/device/UGW3.py
Pelleplutt/unifi-exporter
ad847aca7b178c4417ac4a5b5f990fa04c1da2dc
[ "MIT" ]
null
null
null
unifi/device/UGW3.py
Pelleplutt/unifi-exporter
ad847aca7b178c4417ac4a5b5f990fa04c1da2dc
[ "MIT" ]
1
2021-06-20T09:05:40.000Z
2021-06-22T01:19:50.000Z
unifi/device/UGW3.py
Pelleplutt/unifi-exporter
ad847aca7b178c4417ac4a5b5f990fa04c1da2dc
[ "MIT" ]
1
2021-04-23T22:13:42.000Z
2021-04-23T22:13:42.000Z
from . import device class UGW3(device.Device): def __init__(self, site, data): super(UGW3, self).__init__(site, data) self.networks = {} self.ports = {} self.parse_network_table(data['network_table']) self.parse_port_table(data.get('port_table')) self.parse_stat(...
36.487365
83
0.429999
7974dd106d85dd52fadb0a3369c920122cfd5166
1,914
py
Python
rudetox/util/text.py
IlyaGusev/rudetox
e1c6334744bf9d28639efbb61c3605be51642ce9
[ "Apache-2.0" ]
1
2022-03-02T15:50:10.000Z
2022-03-02T15:50:10.000Z
rudetox/util/text.py
IlyaGusev/rudetox
e1c6334744bf9d28639efbb61c3605be51642ce9
[ "Apache-2.0" ]
null
null
null
rudetox/util/text.py
IlyaGusev/rudetox
e1c6334744bf9d28639efbb61c3605be51642ce9
[ "Apache-2.0" ]
null
null
null
import re from string import punctuation from itertools import groupby EMOJI_PATTERN = re.compile( "([" "\U0001F1E0-\U0001F1FF" # flags (iOS) "\U0001F300-\U0001F5FF" # symbols & pictographs "\U0001F600-\U0001F64F" # emoticons "\U0001F680-\U0001F6FF" # transport & map symbols "\U0001F700-\U0...
25.184211
67
0.640021
7974dee6073df14059cd850e8f48a22b0aa3728c
4,376
py
Python
tests/backends/test_utils.py
ni-ning/django
2e7ba6057cfc82a15a22b6021cd60cf307152e2d
[ "CNRI-Python-GPL-Compatible", "BSD-3-Clause" ]
9
2020-09-30T16:32:05.000Z
2020-10-12T13:52:07.000Z
tests/backends/test_utils.py
ni-ning/django
2e7ba6057cfc82a15a22b6021cd60cf307152e2d
[ "CNRI-Python-GPL-Compatible", "BSD-3-Clause" ]
8
2021-02-09T16:55:56.000Z
2021-02-09T17:15:24.000Z
tests/backends/test_utils.py
mustafa0x/django
d7394cfa13a4d1a02356e3a83e10ec100fbb9948
[ "BSD-3-Clause", "0BSD" ]
3
2020-07-13T04:49:16.000Z
2021-12-22T21:15:14.000Z
"""Tests for django.db.backends.utils""" from decimal import Decimal, Rounded from django.db import NotSupportedError, connection from django.db.backends.utils import ( format_number, split_identifier, truncate_name, ) from django.test import ( SimpleTestCase, TransactionTestCase, skipIfDBFeature, skipUnlessDB...
47.565217
119
0.678016
7974df33e937a61c25c4d18a67a4421a02992ca6
4,988
py
Python
tests/test_dcimg.py
GeekLogan/dcimg
066f653a72a52db8cbca804832380d3d61c408f9
[ "MIT" ]
null
null
null
tests/test_dcimg.py
GeekLogan/dcimg
066f653a72a52db8cbca804832380d3d61c408f9
[ "MIT" ]
null
null
null
tests/test_dcimg.py
GeekLogan/dcimg
066f653a72a52db8cbca804832380d3d61c408f9
[ "MIT" ]
null
null
null
import unittest from ddt import ddt, data import numpy as np from dcimg import DCIMGFile test_vectors = [ np.index_exp[...], np.index_exp[..., -1], np.index_exp[:, :, :], np.index_exp[..., ::-1], np.index_exp[..., ::-1, :], np.index_exp[::-1, ...], np.index_exp[::-1, ::-1, ::-1], np....
29.868263
79
0.551524
7974df4539d55f66a487b2f4c0c217f4b2286a48
415
py
Python
plupload_sample/urls.py
fmarier/plupload_django
a9b27d58300d73373a53cf1bb632c21a3ef81b94
[ "CC0-1.0" ]
1
2015-04-02T08:53:12.000Z
2015-04-02T08:53:12.000Z
plupload_sample/urls.py
fmarier/plupload_django
a9b27d58300d73373a53cf1bb632c21a3ef81b94
[ "CC0-1.0" ]
null
null
null
plupload_sample/urls.py
fmarier/plupload_django
a9b27d58300d73373a53cf1bb632c21a3ef81b94
[ "CC0-1.0" ]
null
null
null
from django.conf.urls.defaults import * from plupload_sample import settings urlpatterns = patterns('', (r'^$', 'plupload_sample.upload.views.upload_file'), (r'^css/(?P<path>.*)$', 'django.views.static.serve', {'document_root': '%s/static/css' % settings.PROJECT_ROOT}), (r'^js/(?P<path>.*)$', 'dja...
34.583333
68
0.645783
7974e05db03d2b8068dfd059051e3f32bc3d3230
17,538
py
Python
yacon/templatetags/yacon_tags.py
cltrudeau/django-yacon
d462c88cf98bf8eef50a0696b265fa28dfdb40eb
[ "MIT" ]
null
null
null
yacon/templatetags/yacon_tags.py
cltrudeau/django-yacon
d462c88cf98bf8eef50a0696b265fa28dfdb40eb
[ "MIT" ]
9
2020-02-11T23:38:20.000Z
2022-03-11T23:16:29.000Z
yacon/templatetags/yacon_tags.py
cltrudeau/django-yacon
d462c88cf98bf8eef50a0696b265fa28dfdb40eb
[ "MIT" ]
null
null
null
# yacon.yacon_tags.py # blame ctrudeau chr(64) arsensa.com # # Defines specialized template tags for the rendering of content from the CMS import logging, traceback, json from django import template from django.template import loader from django.utils.safestring import mark_safe from yacon import conf from yacon.mod...
34.455796
80
0.647907
7974e1721569c44eb2872e465f56337f2bef154f
1,982
py
Python
Instagram Liker Bot/Instagram_Liker_Bot.py
avinashkranjan/PraticalPythonProjects
12c1f7cedae57a843ceb6aba68cca48df505f341
[ "MIT" ]
930
2020-09-05T22:07:28.000Z
2022-03-30T07:56:18.000Z
Instagram Liker Bot/Instagram_Liker_Bot.py
maheshdbabar9340/Amazing-Python-Scripts
e2272048cbe49b4bda5072bbdd8479739bb6c18d
[ "MIT" ]
893
2020-09-04T07:57:24.000Z
2022-02-08T02:12:26.000Z
Instagram Liker Bot/Instagram_Liker_Bot.py
maheshdbabar9340/Amazing-Python-Scripts
e2272048cbe49b4bda5072bbdd8479739bb6c18d
[ "MIT" ]
497
2020-09-05T08:16:24.000Z
2022-03-31T00:55:57.000Z
from selenium import webdriver from webdriver_manager.chrome import ChromeDriverManager from selenium.webdriver.common.keys import Keys from getpass import getpass import time chrome = webdriver.Chrome(ChromeDriverManager().install()) chrome.get("https://www.instagram.com") time.sleep(10) username = chrome.find_eleme...
33.59322
101
0.702825
7974e2c1b55444f1a54ee2d806dde4010b206181
6,565
py
Python
src/apps/account/mutations.py
creimers/graphene-auth-examples
f129b9f6186d56f3777244205a1ae92ecca08c5f
[ "MIT" ]
71
2017-06-09T13:02:15.000Z
2021-06-15T20:00:38.000Z
src/apps/account/mutations.py
creimers/graphene-auth-examples
f129b9f6186d56f3777244205a1ae92ecca08c5f
[ "MIT" ]
13
2017-07-11T16:08:40.000Z
2019-07-01T04:33:17.000Z
src/apps/account/mutations.py
creimers/graphene-auth-examples
f129b9f6186d56f3777244205a1ae92ecca08c5f
[ "MIT" ]
14
2017-05-18T16:27:30.000Z
2019-09-20T12:57:17.000Z
from django.contrib.auth.tokens import default_token_generator from djoser.conf import settings as djoser_settings from djoser.utils import decode_uid import graphene from graphene import relay from rest_framework_jwt.serializers import ( JSONWebTokenSerializer, RefreshJSONWebTokenSerializer ) from .mod...
31.5625
78
0.620868
7974e36e442b8eadb4383ca67b756563e24d3a91
1,340
py
Python
app/portal/horizon/openstack_dashboard/dashboards/identity/domains/panel.py
haoshen61/f5-adcaas-openstack
4bda29271930bf7c621f4184bda8d43b2fa96336
[ "Apache-2.0" ]
37
2018-10-30T02:47:24.000Z
2021-12-04T10:29:40.000Z
openstack_dashboard/dashboards/identity/domains/panel.py
nyzsirt/horizon
53dd2dbd39c50b665ebe2d2a877496169f01a13f
[ "Apache-2.0" ]
106
2019-01-18T03:06:55.000Z
2019-11-29T05:06:18.000Z
openstack_dashboard/dashboards/identity/domains/panel.py
nyzsirt/horizon
53dd2dbd39c50b665ebe2d2a877496169f01a13f
[ "Apache-2.0" ]
35
2018-11-26T03:36:31.000Z
2021-12-04T10:29:41.000Z
# Copyright 2013 Hewlett-Packard Development Company, L.P. # # 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 requir...
34.358974
78
0.699254
7974e404ff279d8dfa3a785e013e2b40559fe6f4
11,625
py
Python
simulator/minitwit_simulator.py
DevOps2021-gb/devops2021
1cdbf332e46f3d69bb39038f20e326a28ef18d12
[ "Apache-2.0" ]
null
null
null
simulator/minitwit_simulator.py
DevOps2021-gb/devops2021
1cdbf332e46f3d69bb39038f20e326a28ef18d12
[ "Apache-2.0" ]
130
2021-03-01T07:12:11.000Z
2021-05-17T13:31:34.000Z
simulator/minitwit_simulator.py
JesperFalkenberg/devops2021
1cdbf332e46f3d69bb39038f20e326a28ef18d12
[ "Apache-2.0" ]
1
2021-05-18T17:58:55.000Z
2021-05-18T17:58:55.000Z
""" Call me for example like: $ python minitwit_simulator.py "http://localhost:5001" """ import traceback import os import csv import sys import json import http import socket import base64 import requests from time import sleep from datetime import datetime from contextlib import closing import sqlite3 CSV_FILENAM...
32.381616
85
0.376344
7974e53f52540db442accc05c13a12de42f04904
294
py
Python
ts_wep/CWFS/makeCornerMasklist.py
lsst/TS_wep
c2e2b973d5da7e9e522d5490e9b6f94664ec8610
[ "BSD-3-Clause" ]
null
null
null
ts_wep/CWFS/makeCornerMasklist.py
lsst/TS_wep
c2e2b973d5da7e9e522d5490e9b6f94664ec8610
[ "BSD-3-Clause" ]
null
null
null
ts_wep/CWFS/makeCornerMasklist.py
lsst/TS_wep
c2e2b973d5da7e9e522d5490e9b6f94664ec8610
[ "BSD-3-Clause" ]
null
null
null
import numpy as np from rotateMaskParam import rotateMaskParam def makeCornerMasklist(obsR, ca, ra, cb, rb, fldx,fldy): cax, cay, cbx, cby = rotateMaskParam(ca,cb,fldx,fldy) masklist=np.array([[0, 0, 1, 1],[0, 0, obsR, 0],[cax, cay, ra, 1],[cbx, cby, rb, 0]]) return masklist
32.666667
89
0.656463
7974e56533062044e55eb3b5b098d316e16a29da
16,251
py
Python
tools/tests_infrastructure.py
trevorcarlson/Graphite
8aeb2cb199864dbf517c4a88dfac7fb6ac7d74f4
[ "MIT" ]
1
2019-05-12T07:13:56.000Z
2019-05-12T07:13:56.000Z
tools/tests_infrastructure.py
trevorcarlson/Graphite
8aeb2cb199864dbf517c4a88dfac7fb6ac7d74f4
[ "MIT" ]
1
2022-03-04T20:03:50.000Z
2022-03-04T20:03:50.000Z
tools/tests_infrastructure.py
elau/graphite_pep
ddce5890f20e272c587c5caed07161db043247b2
[ "MIT" ]
null
null
null
#!/usr/bin/env python # Look at a configuration file that tells which all tests to run # Right now, run those tests one by one # Import other configuration parameters from carbon_sim.cfg that you want # to change import os import re import sys import subprocess import numpy # TODO # Add support for handling comment...
32.896761
200
0.649437
7974e5a6e3ac437150833065f44c9887cebe82c6
519
py
Python
config.py
robmarkcole/BERT_as_serverless_service
fbc4004677ae3811b08f89d577b5a45ce0bfbbd0
[ "Apache-2.0" ]
null
null
null
config.py
robmarkcole/BERT_as_serverless_service
fbc4004677ae3811b08f89d577b5a45ce0bfbbd0
[ "Apache-2.0" ]
null
null
null
config.py
robmarkcole/BERT_as_serverless_service
fbc4004677ae3811b08f89d577b5a45ce0bfbbd0
[ "Apache-2.0" ]
null
null
null
import transformers import torch MAX_LEN = 512 TRAIN_BATCH_SIZE = 4 VALID_BATCH_SIZE = 8 NUM_CLASSES = 5 DEVICE = torch.device('cuda') if torch.cuda.is_available() else torch.device('cpu') EPOCHS = 2 BERT_PATH = './input/prunebert-base-uncased-6-finepruned-w-distil-squad' MODEL_PATH = './model/pytorch_model.bin' TRAI...
25.95
83
0.749518
7974e5d05da68e0ddd99a66ca9b7814c25a31a5b
457
py
Python
synth/timer.py
lummax/switching-lattice-synth
47cf9e64c900cb179c392b46a392049e99dfebab
[ "MIT" ]
null
null
null
synth/timer.py
lummax/switching-lattice-synth
47cf9e64c900cb179c392b46a392049e99dfebab
[ "MIT" ]
null
null
null
synth/timer.py
lummax/switching-lattice-synth
47cf9e64c900cb179c392b46a392049e99dfebab
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import resource import contextlib class Timer: def __init__(self): self._elapsed = 0 def elapsed(self): return self._elapsed @contextlib.contextmanager def measure(self, process=False): flag = resource.RUSAGE_SELF if not process else resource.RUSAGE_CHI...
24.052632
80
0.684902
7974e603175867c7d0e7f127d2e7e9aa932c2996
5,993
py
Python
google/ads/google_ads/v5/proto/services/ad_group_bid_modifier_service_pb2_grpc.py
arammaliachi/google-ads-python
a4fe89567bd43eb784410523a6306b5d1dd9ee67
[ "Apache-2.0" ]
1
2021-04-09T04:28:47.000Z
2021-04-09T04:28:47.000Z
google/ads/google_ads/v5/proto/services/ad_group_bid_modifier_service_pb2_grpc.py
arammaliachi/google-ads-python
a4fe89567bd43eb784410523a6306b5d1dd9ee67
[ "Apache-2.0" ]
null
null
null
google/ads/google_ads/v5/proto/services/ad_group_bid_modifier_service_pb2_grpc.py
arammaliachi/google-ads-python
a4fe89567bd43eb784410523a6306b5d1dd9ee67
[ "Apache-2.0" ]
null
null
null
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc from google.ads.google_ads.v5.proto.resources import ad_group_bid_modifier_pb2 as google_dot_ads_dot_googleads__v5_dot_proto_dot_resources_dot_ad__group__bid__mo...
53.990991
191
0.761722
7974e613696b19c42c6dfe3b3c8db275885940d4
2,758
py
Python
torchmetrics/retrieval/reciprocal_rank.py
aaronzs/metrics
30019851186f2e224504ec76e87cc7f5170b7166
[ "Apache-2.0" ]
null
null
null
torchmetrics/retrieval/reciprocal_rank.py
aaronzs/metrics
30019851186f2e224504ec76e87cc7f5170b7166
[ "Apache-2.0" ]
null
null
null
torchmetrics/retrieval/reciprocal_rank.py
aaronzs/metrics
30019851186f2e224504ec76e87cc7f5170b7166
[ "Apache-2.0" ]
null
null
null
# Copyright The PyTorch Lightning team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to i...
39.4
105
0.650471