hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
⌀
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
⌀
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
⌀
max_issues_repo_path
stringlengths
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
⌀
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
⌀
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
⌀
max_forks_repo_path
stringlengths
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
⌀
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
⌀
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
⌀
content
stringlengths
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
4a4815b506abdc1c5e84d304c7a7f050e0fe7bbc
1,735
py
Python
app/models/fake/profile.py
moevm/mse_teacher_plan
f1b102f6bc13927f00ba1408c294ba7095c26fc6
[ "MIT" ]
1
2018-09-25T15:58:39.000Z
2018-09-25T15:58:39.000Z
app/models/fake/profile.py
moevm/mse_teacher_plan
f1b102f6bc13927f00ba1408c294ba7095c26fc6
[ "MIT" ]
31
2017-10-26T14:57:20.000Z
2018-12-17T06:57:50.000Z
app/models/fake/profile.py
moevm/mse_teacher_plan
f1b102f6bc13927f00ba1408c294ba7095c26fc6
[ "MIT" ]
7
2017-10-31T13:45:05.000Z
2018-12-22T18:41:38.000Z
from faker import Faker from faker.providers import BaseProvider from app.models.profile import user_type_choices, user_academic_status_choices import random class ProfileProvider(BaseProvider): def __init__(self, generator): super().__init__(generator) self.fake = Faker() def first_name(self...
27.983871
78
0.628242
8a3916830c2bbbd4d28473670ee3c11821c855ba
1,796
py
Python
test_wordcount.py
jdcorless/pycon-tutorial-jdcorless
4a8c6c3dd133ef3771627722d0acb8dc32a3121d
[ "BSD-3-Clause" ]
null
null
null
test_wordcount.py
jdcorless/pycon-tutorial-jdcorless
4a8c6c3dd133ef3771627722d0acb8dc32a3121d
[ "BSD-3-Clause" ]
null
null
null
test_wordcount.py
jdcorless/pycon-tutorial-jdcorless
4a8c6c3dd133ef3771627722d0acb8dc32a3121d
[ "BSD-3-Clause" ]
null
null
null
import os.path import tempfile import wordcount_lib def _make_testfile(filename, data): "Make a temp file containing the given data; return full path to file." tempdir = tempfile.mkdtemp(prefix='wordcounttest_') testfile = os.path.join(tempdir, filename) with open(testfile, 'wt') as fp: ...
28.967742
78
0.656459
84106b22f3292521043e50d484e2f501ff3dcb13
1,798
py
Python
ppr-api/tests/unit/callback/test_report_service.py
kialj876/ppr
696d3f470704e184a3300e86d0e9328ef86dc96e
[ "Apache-2.0" ]
null
null
null
ppr-api/tests/unit/callback/test_report_service.py
kialj876/ppr
696d3f470704e184a3300e86d0e9328ef86dc96e
[ "Apache-2.0" ]
2
2021-01-25T22:06:58.000Z
2021-01-25T22:07:01.000Z
ppr-api/tests/unit/callback/test_report_service.py
kialj876/ppr
696d3f470704e184a3300e86d0e9328ef86dc96e
[ "Apache-2.0" ]
null
null
null
# Copyright © 2019 Province of British Columbia # # 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 agr...
35.254902
84
0.72525
42bb0f582f637f3e5c952ac399c3ba2a26db46a2
11,882
py
Python
app.py
ju3tin/b00kstore
99b74534f99c3e69afc7272c1d5ede2bfee56410
[ "MIT" ]
null
null
null
app.py
ju3tin/b00kstore
99b74534f99c3e69afc7272c1d5ede2bfee56410
[ "MIT" ]
null
null
null
app.py
ju3tin/b00kstore
99b74534f99c3e69afc7272c1d5ede2bfee56410
[ "MIT" ]
null
null
null
import pymongo import os from bson.json_util import dumps from bson.objectid import ObjectId from flask import Flask, render_template, url_for, flash, redirect, request, abort, session, jsonify, json from flask_wtf import FlaskForm from wtforms import Form, TextField, TextAreaField, validators, StringField, SubmitField...
32.113514
258
0.638697
f0e06ede40fd03376e50e917aa33d7ebbfba2617
244
py
Python
src/pybacked/__init__.py
bluePlatinum/pyback
1c12a52974232b0482981c12a9af27e52dd2190e
[ "MIT" ]
null
null
null
src/pybacked/__init__.py
bluePlatinum/pyback
1c12a52974232b0482981c12a9af27e52dd2190e
[ "MIT" ]
null
null
null
src/pybacked/__init__.py
bluePlatinum/pyback
1c12a52974232b0482981c12a9af27e52dd2190e
[ "MIT" ]
null
null
null
__version__ = '0.0.0.dev3' # ---- Global variables and constants -------------- HASH_MD5 = 'md5' HASH_SHA1 = 'sha1' HASH_SHA256 = 'sha256' HASH_BLAKE_2S = 'blake2s' DIFF_DATE = 0 DIFF_HASH = 1 DIFF_CONT = 2 JSON_SORT = False JSON_INDENT = 4
16.266667
52
0.663934
81f8cc28f4e9515c710723dfd031926bff7c1ee6
7,635
py
Python
setupRemoteViewer.py
kpeaton/altanalyze_wikitest
93c38590d624fe75da51fbb7cffa55d8bd004a44
[ "Apache-2.0" ]
1
2018-09-01T03:00:38.000Z
2018-09-01T03:00:38.000Z
setupRemoteViewer.py
kpeaton/altanalyze_wikitest
93c38590d624fe75da51fbb7cffa55d8bd004a44
[ "Apache-2.0" ]
null
null
null
setupRemoteViewer.py
kpeaton/altanalyze_wikitest
93c38590d624fe75da51fbb7cffa55d8bd004a44
[ "Apache-2.0" ]
null
null
null
#!/usr/local/bin/python2.6 import sys _script = 'AltAnalyzeViewer.py' _appName = "AltAnalyzeViewer" _appVersion = '1.0.0.2' _appDescription = "AltAnalyze is a freely available, open-source and cross-platform program that allows you to take RNASeq or " _appDescription +="relatively raw microarray data (CEL files or no...
43.380682
157
0.645711
e20302bba56c7cff82c7f968d6849f21ec167e79
421
py
Python
flask_example.py
MehdiKhiatiDS/Twitoff
ddc81a0a17e2c513b816cd6fcaa6318a75e85187
[ "MIT" ]
1
2020-03-14T18:48:42.000Z
2020-03-14T18:48:42.000Z
flask_example.py
MehdiKhiatiDS/Twitoff
ddc81a0a17e2c513b816cd6fcaa6318a75e85187
[ "MIT" ]
3
2021-06-08T20:59:13.000Z
2022-01-13T02:15:15.000Z
flask_example.py
MehdiKhiatiDS/Twitoff
ddc81a0a17e2c513b816cd6fcaa6318a75e85187
[ "MIT" ]
null
null
null
from flask import Flask app = Flask(__name__) @app.route('/mehdi') def home(): # deployed model geos here return '<h1> Hello, Welcome!</h1>' @app.route('/hello') def hello(): return 'Hello, World' @app.route('/user/<username>') def show_user_profile(username): # show the user profile for that user ...
16.84
41
0.648456
632429ca1efe904f34f3d69d571da093ba991b25
2,217
py
Python
theano/gof/tests/test_toolbox.py
mayunpeng/Theano
c74da33de3768e231ffa0d92d9d11667a2a5aedb
[ "BSD-3-Clause" ]
1
2021-07-01T02:51:08.000Z
2021-07-01T02:51:08.000Z
theano/gof/tests/test_toolbox.py
mayunpeng/Theano
c74da33de3768e231ffa0d92d9d11667a2a5aedb
[ "BSD-3-Clause" ]
null
null
null
theano/gof/tests/test_toolbox.py
mayunpeng/Theano
c74da33de3768e231ffa0d92d9d11667a2a5aedb
[ "BSD-3-Clause" ]
null
null
null
from theano.gof.graph import Variable, Apply from theano.gof.type import Type from theano.gof.op import Op from theano.gof.fg import FunctionGraph, InconsistencyError from theano.gof.toolbox import * def as_variable(x): assert isinstance(x, Variable) return x class MyType(Type): def __init__(self, na...
24.910112
73
0.586829
3cb25031a1e4ca3d43166b5213ffa9da759ef3a9
1,043
py
Python
Arrays/dominantIndex.py
hoaiphun96/Leet-Code-Problems
bc4651fa9c8eae261bb280bb25b7537722d3b1f9
[ "MIT", "Unlicense" ]
8
2019-01-17T23:45:41.000Z
2021-07-08T02:06:16.000Z
Arrays/dominantIndex.py
hoaiphun96/Leet-Code-Problems
bc4651fa9c8eae261bb280bb25b7537722d3b1f9
[ "MIT", "Unlicense" ]
null
null
null
Arrays/dominantIndex.py
hoaiphun96/Leet-Code-Problems
bc4651fa9c8eae261bb280bb25b7537722d3b1f9
[ "MIT", "Unlicense" ]
9
2018-04-27T04:50:06.000Z
2022-03-03T14:17:13.000Z
""" In a given integer array nums, there is always exactly one largest element. Find whether the largest element in the array is at least twice as much as every other number in the array. If it is, return the index of the largest element, otherwise return -1. Example 1: Input: nums = [3, 6, 1, 0] Output: 1 Explanati...
29.8
107
0.616491
bb00a9e7f71572c6b437c8215f0cf210ecbaca35
3,349
py
Python
bvs/tests/opinion_test.py
gutomaia/bvs-worker
3d4434f9857135714950b42e4a18e63ebc82dd99
[ "MIT" ]
null
null
null
bvs/tests/opinion_test.py
gutomaia/bvs-worker
3d4434f9857135714950b42e4a18e63ebc82dd99
[ "MIT" ]
null
null
null
bvs/tests/opinion_test.py
gutomaia/bvs-worker
3d4434f9857135714950b42e4a18e63ebc82dd99
[ "MIT" ]
null
null
null
from unittest import TestCase from mock import patch from fakeredis import FakeStrictRedis import httpretty import json import re from faker import Factory from bvs.alchemy import opinion from bvs.alchemy import notify_score import random fake = Factory.create() class OpinionTest(TestCase): def fake_alchemy_ap...
28.142857
199
0.593311
f68917700de42eea87b872c12fce5d3ebd9034a8
287
py
Python
driver.py
andresberejnoi/EquationGA
eb48a9262508395c9c670ac6f67a55cb7f247970
[ "MIT" ]
null
null
null
driver.py
andresberejnoi/EquationGA
eb48a9262508395c9c670ac6f67a55cb7f247970
[ "MIT" ]
null
null
null
driver.py
andresberejnoi/EquationGA
eb48a9262508395c9c670ac6f67a55cb7f247970
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon Mar 7 04:01:36 2016 @author: andresberejnoi """ from population_equationGA import Population def main(): """""" pop = Population() pop.evolve(iterations=15, mutation_rate=0.20) if __name__ == '__main__': main()
16.882353
49
0.61324
1a586c7fb0546b4013afc679dde6cd22066480cb
365
py
Python
pictures/urls.py
Lenus254/personal-gallery
cc9237354652a9d7688eacf68c4b9812f1c749dd
[ "MIT", "Unlicense" ]
null
null
null
pictures/urls.py
Lenus254/personal-gallery
cc9237354652a9d7688eacf68c4b9812f1c749dd
[ "MIT", "Unlicense" ]
null
null
null
pictures/urls.py
Lenus254/personal-gallery
cc9237354652a9d7688eacf68c4b9812f1c749dd
[ "MIT", "Unlicense" ]
null
null
null
from django.conf import settings from django.urls import path from . import views from django.conf.urls.static import static app_name = 'pictures' urlpatterns = [ path('', views.index, name='index'), path('search/', views.search_results, name='search'), ] if settings.DEBUG: urlpatterns+= static(settings.ME...
26.071429
81
0.745205
5eab171a25c3180dc1117d6deee130d00e335215
678
py
Python
navigator/assets.py
nmussat/Navigator
38bc8cb31367bfc9ebc780c99ab40269091508f6
[ "MIT" ]
null
null
null
navigator/assets.py
nmussat/Navigator
38bc8cb31367bfc9ebc780c99ab40269091508f6
[ "MIT" ]
null
null
null
navigator/assets.py
nmussat/Navigator
38bc8cb31367bfc9ebc780c99ab40269091508f6
[ "MIT" ]
1
2021-10-07T19:56:40.000Z
2021-10-07T19:56:40.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function, unicode_literals from flask.ext.assets import Environment, Bundle assets = Environment() js = [ 'vendors/jQuery/jquery-2.1.1.js', 'vendors/jQuery/jquery.hotkeys.js', 'vendors/Bootstrap/bootstr...
27.12
84
0.70649
65a622ea18313a96954c4203c18be427b58dde06
7,400
py
Python
zerver/lib/logging_util.py
yakkl/yakkl
89ecf4ee8998554a0634667067e16f428e4c480c
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
zerver/lib/logging_util.py
yakkl/yakkl
89ecf4ee8998554a0634667067e16f428e4c480c
[ "ECL-2.0", "Apache-2.0" ]
4
2020-06-06T00:51:42.000Z
2022-02-10T21:38:40.000Z
zerver/lib/logging_util.py
yakkl/yakkl
89ecf4ee8998554a0634667067e16f428e4c480c
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# System documented in https://yakkl.readthedocs.io/en/latest/subsystems/logging.html from django.utils.timezone import now as timezone_now from django.utils.timezone import utc as timezone_utc import hashlib import logging import re import traceback from typing import Optional from datetime import datetime, timedelt...
36.81592
93
0.652162
fe2d6e0b75df563e4cbc519564ace3b96a5447ec
967
py
Python
Python Fundamentals/Final Exam/Final Exam 01/Task01.py
DonikaChervenkova/SoftUni
bff579c037ec48f39ed193b34bc3502a32e90732
[ "MIT" ]
null
null
null
Python Fundamentals/Final Exam/Final Exam 01/Task01.py
DonikaChervenkova/SoftUni
bff579c037ec48f39ed193b34bc3502a32e90732
[ "MIT" ]
null
null
null
Python Fundamentals/Final Exam/Final Exam 01/Task01.py
DonikaChervenkova/SoftUni
bff579c037ec48f39ed193b34bc3502a32e90732
[ "MIT" ]
1
2021-12-04T12:30:57.000Z
2021-12-04T12:30:57.000Z
def do_move(comm, encr_mssg): num_of_letters = int(comm[1]) # index left_part = encr_mssg[:num_of_letters] right_part = encr_mssg[num_of_letters:] return right_part + left_part def do_insert(comm, encr_mssg): index = int(comm[1]) value = comm[2] return encr_mssg[:index] + value + encr_mss...
24.794872
68
0.684592
ac8f459e8f821c8641e05e695be51dcf74c49d4f
1,318
py
Python
django_intercooler_examples/bulk_update_ui/views.py
duboisR/django_intercooler_examples
b0ff1fe3a070ebfac8aadbbb3ef99516ae443262
[ "MIT" ]
2
2019-06-03T21:47:59.000Z
2019-09-30T02:25:36.000Z
django_intercooler_examples/bulk_update_ui/views.py
duboisR/django_intercooler_examples
b0ff1fe3a070ebfac8aadbbb3ef99516ae443262
[ "MIT" ]
9
2019-12-04T22:56:40.000Z
2022-02-10T09:47:52.000Z
django_intercooler_examples/bulk_update_ui/views.py
duboisR/django_intercooler_examples
b0ff1fe3a070ebfac8aadbbb3ef99516ae443262
[ "MIT" ]
null
null
null
from django.views.generic import ListView, View from django.contrib.auth import get_user_model from django.http import HttpResponseRedirect from django.urls import reverse class BulkUpdateUIUserListView(ListView): model = get_user_model() paginate_by = 5 def get_template_names(self): ids = self.r...
37.657143
97
0.688923
a86b6da18daa3d64f51bba89420e05a5e43a756e
3,520
py
Python
ptp/components/masking/string_to_mask.py
aasseman/pytorchpipe
9cb17271666061cb19fe24197ecd5e4c8d32c5da
[ "Apache-2.0" ]
232
2019-04-15T20:49:06.000Z
2022-03-31T06:44:08.000Z
ptp/components/masking/string_to_mask.py
aasseman/pytorchpipe
9cb17271666061cb19fe24197ecd5e4c8d32c5da
[ "Apache-2.0" ]
53
2019-04-19T22:50:16.000Z
2019-08-07T21:23:08.000Z
ptp/components/masking/string_to_mask.py
aasseman/pytorchpipe
9cb17271666061cb19fe24197ecd5e4c8d32c5da
[ "Apache-2.0" ]
34
2019-04-15T20:49:22.000Z
2021-12-07T17:04:01.000Z
# -*- coding: utf-8 -*- # # Copyright (C) tkornuta, IBM Corporation 2019 # # 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 require...
35.2
168
0.654261
c070e17f4cdfbd71a5d86aca48124805983a5ba8
855
py
Python
plugins/update.py
Ajuaman/bot
c5fcd0126617e52e36e475061847ac7d8430f2a5
[ "BSD-3-Clause" ]
null
null
null
plugins/update.py
Ajuaman/bot
c5fcd0126617e52e36e475061847ac7d8430f2a5
[ "BSD-3-Clause" ]
null
null
null
plugins/update.py
Ajuaman/bot
c5fcd0126617e52e36e475061847ac7d8430f2a5
[ "BSD-3-Clause" ]
null
null
null
import asyncio.subprocess import discord import plugins.commands import plugins.privileges import util.discord import util.db.kv conf: util.db.kv.Config = util.db.kv.Config(__name__) @plugins.commands.command("update") @plugins.privileges.priv("admin") async def update_command(msg: discord.Message, args: plugins.comm...
31.666667
89
0.708772
634da27a2832c9d3d99e22b1d0b4a3a3cf2dca9b
198
py
Python
users/forms.py
pratikroy/AskMe
732f84e0d4f215a5232703a6e02ca19e430c27ab
[ "MIT" ]
null
null
null
users/forms.py
pratikroy/AskMe
732f84e0d4f215a5232703a6e02ca19e430c27ab
[ "MIT" ]
18
2020-03-24T17:39:06.000Z
2022-03-12T00:01:34.000Z
users/forms.py
pratikroy/AskMe
732f84e0d4f215a5232703a6e02ca19e430c27ab
[ "MIT" ]
null
null
null
from django_registration.forms import RegistrationForm from users.models import CustomUser class CustomUserForm(RegistrationForm): class Meta(RegistrationForm.Meta): model = CustomUser
28.285714
54
0.808081
8a27378f0de1267865001d2d7f3d4cce149531b4
8,765
py
Python
tao_detection_release/.history/tools/multi_process_inference/inference_20200804110846.py
michael-camilleri/AQA
d0896569c748bc74e01f4ad0bc21cebe58b76cac
[ "Apache-2.0" ]
73
2021-02-01T11:33:51.000Z
2021-11-15T11:46:55.000Z
tao_detection_release/.history/tools/multi_process_inference/inference_20200804110846.py
michael-camilleri/AQA
d0896569c748bc74e01f4ad0bc21cebe58b76cac
[ "Apache-2.0" ]
3
2021-03-16T11:35:35.000Z
2021-07-09T06:07:25.000Z
tao_detection_release/.history/tools/multi_process_inference/inference_20200804110846.py
michael-camilleri/AQA
d0896569c748bc74e01f4ad0bc21cebe58b76cac
[ "Apache-2.0" ]
4
2021-02-01T16:16:37.000Z
2021-07-28T05:38:50.000Z
import argparse import os import os.path as osp import shutil import tempfile import pdb import numpy as np import pickle import mmcv import torch import torch.distributed as dist from mmcv.parallel import MMDataParallel, MMDistributedDataParallel from mmcv.runner import get_dist_info, load_checkpoint from mmdet.apis...
33.841699
238
0.640616
d274b6ab572b1b4eca7af11ded42c91081d1ccc1
4,144
bzl
Python
foreign_cc/repositories.bzl
ivan-mudrak/rules_foreign_cc
209ca0a7efad2c0c7caf516cc5829c8fb431a98e
[ "Apache-2.0" ]
null
null
null
foreign_cc/repositories.bzl
ivan-mudrak/rules_foreign_cc
209ca0a7efad2c0c7caf516cc5829c8fb431a98e
[ "Apache-2.0" ]
null
null
null
foreign_cc/repositories.bzl
ivan-mudrak/rules_foreign_cc
209ca0a7efad2c0c7caf516cc5829c8fb431a98e
[ "Apache-2.0" ]
null
null
null
"""A module for defining WORKSPACE dependencies required for rules_foreign_cc""" load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe") load( "//foreign_cc/private/shell_toolchain/toolchains:ws_defs.bzl", shell_toolchain_workspace_ini...
46.044444
126
0.719353
1e334f0563d675820c300baee4abaef526604baf
13,749
py
Python
causal_grammar_summerdata.py
vcla/Causality
d3084e289eeb9509077297442c734d92612cddaa
[ "MIT" ]
10
2017-08-18T16:15:52.000Z
2022-02-21T07:07:54.000Z
causal_grammar_summerdata.py
vcla/Causality
d3084e289eeb9509077297442c734d92612cddaa
[ "MIT" ]
null
null
null
causal_grammar_summerdata.py
vcla/Causality
d3084e289eeb9509077297442c734d92612cddaa
[ "MIT" ]
3
2018-03-07T15:39:22.000Z
2021-06-05T08:53:56.000Z
# This Python file uses the following encoding: utf-8 ### SUMMERDATA GRAMMAR ### #("node_type", "symbol_type", "symbol", probability, timeout, [children]) """ abbreviated_xxx_grammar = [ ("root", "fluent", "dooropen_on", .5, False, [ ("leaf", "prev_fluent", "dooropen_on", .3, False, False), ("and", False, False,...
34.632242
353
0.589861
ff5e82c3003a6e32e33bfbfe4f0655398b221114
1,512
py
Python
mt.py
jojonki/rnn-machine-translation
474ba29e578199c7d0f2213ce2f8a7e74ab13675
[ "MIT" ]
null
null
null
mt.py
jojonki/rnn-machine-translation
474ba29e578199c7d0f2213ce2f8a7e74ab13675
[ "MIT" ]
null
null
null
mt.py
jojonki/rnn-machine-translation
474ba29e578199c7d0f2213ce2f8a7e74ab13675
[ "MIT" ]
null
null
null
# -*- coding: utf-8 import numpy as np import chainer from chainer import cuda, Function, gradient_check, Variable, optimizers, serializers, utils from chainer import Link, Chain, ChainList import chainer.functions as F import chainer.links as L xp = cuda.cupy class MachineTranslation(chainer.Chain): def __init_...
37.8
92
0.592593
489f6e354e9387a1959cee4252676564fcda74c0
9,598
py
Python
output_raw/output_input_Lx4Ly3.py
ryuikaneko/itps_contraction
10816fb6c90d77f5a3b2f804ab22573d1d676eb4
[ "MIT" ]
1
2019-12-19T05:03:37.000Z
2019-12-19T05:03:37.000Z
output_raw/output_input_Lx4Ly3.py
ryuikaneko/itps_contraction
10816fb6c90d77f5a3b2f804ab22573d1d676eb4
[ "MIT" ]
null
null
null
output_raw/output_input_Lx4Ly3.py
ryuikaneko/itps_contraction
10816fb6c90d77f5a3b2f804ab22573d1d676eb4
[ "MIT" ]
null
null
null
def Contract_scalar_4x3(\ t0_4,t1_4,t2_4,t3_4,t4_4,t5_4,\ t0_3,t1_3,t2_3,t3_3,t4_3,t5_3,\ t0_2,t1_2,t2_2,t3_2,t4_2,t5_2,\ t0_1,t1_1,t2_1,t3_1,t4_1,t5_1,\ t0_0,t1_0,t2_0,t3_0,t4_0,t5_0,\ o1_3,o2_3,o3_3,o4_3,\ o1_2,o2_2,o3_2,o4_2,\ o1_1,o2_1,o3_1,o4_1\ ): ##########################...
76.784
465
0.165243
d9d1189aa98f8b2cd9e3f1acb0459135bb5d4330
65,769
py
Python
toontown/suit/DistributedBossbotBoss.py
itsyaboyrocket/Toontown2013
190ac7409b10991f21c813218fbc02370f41d991
[ "MIT" ]
1
2021-02-13T22:40:50.000Z
2021-02-13T22:40:50.000Z
toontown/suit/DistributedBossbotBoss.py
itsyaboyrocket/Toontown2013
190ac7409b10991f21c813218fbc02370f41d991
[ "MIT" ]
1
2018-07-28T20:07:04.000Z
2018-07-30T18:28:34.000Z
toontown/suit/DistributedBossbotBoss.py
itsyaboyrocket/Toontown2013
190ac7409b10991f21c813218fbc02370f41d991
[ "MIT" ]
2
2019-12-02T01:39:10.000Z
2021-02-13T22:41:00.000Z
import math import random from pandac.PandaModules import NametagGroup, CFSpeech, VBase3, CollisionPlane, CollisionNode, CollisionSphere, CollisionTube, NodePath, Plane, Vec3, Vec2, Point3, BitMask32, CollisionHandlerEvent, TextureStage, VBase4, BoundingSphere from direct.interval.IntervalGlobal import Sequence, Wait, ...
43.240631
476
0.624398
7d82e04d2d186f1ab29e7a3ccce8275de5084929
8,653
py
Python
pyconnman/interface.py
harisokanovic/pyconnman
8876f3dbf3a25a2a65d2d81e7b0bdd8068839173
[ "Apache-2.0" ]
null
null
null
pyconnman/interface.py
harisokanovic/pyconnman
8876f3dbf3a25a2a65d2d81e7b0bdd8068839173
[ "Apache-2.0" ]
null
null
null
pyconnman/interface.py
harisokanovic/pyconnman
8876f3dbf3a25a2a65d2d81e7b0bdd8068839173
[ "Apache-2.0" ]
null
null
null
from __future__ import unicode_literals import dbus import types import pprint from exceptions import ConnSignalNameNotRecognisedException def translate_to_dbus_type(typeof, value): """ Helper function to map values from their native Python types to dbus types. :param type typeof: Target for type c...
35.904564
88
0.638045
9cef0d1544a46ff1c650e1cc598ab543ee750c2a
3,507
py
Python
candidate_matching/benchmarks/ItemCF/ItemKNN_utils.py
jimzhu/OpenCTR-benchmarks
e8e723cd7a0ef5ddd40e735b85ce7669955a3a99
[ "Apache-2.0" ]
59
2021-10-31T13:59:37.000Z
2022-03-31T12:05:55.000Z
candidate_matching/benchmarks/ItemCF/ItemKNN_utils.py
jimzhu/OpenCTR-benchmarks
e8e723cd7a0ef5ddd40e735b85ce7669955a3a99
[ "Apache-2.0" ]
5
2021-12-06T12:11:21.000Z
2022-03-18T06:21:13.000Z
candidate_matching/benchmarks/ItemCF/ItemKNN_utils.py
jimzhu/OpenCTR-benchmarks
e8e723cd7a0ef5ddd40e735b85ce7669955a3a99
[ "Apache-2.0" ]
17
2021-10-21T10:44:09.000Z
2022-03-24T11:35:09.000Z
#====================================================================== # Evaluation metrics modified from DEEM project # Edited by XUEPAI team #====================================================================== import numpy as np import itertools import os from datetime import datetime def evaluate_metrics(pred...
26.976923
124
0.602224
957b84c35b8ee0b7e6416aa28843ddab3b16a5cc
256
py
Python
conversion_service/manage.py
das-g/osmaxx-postgis-conversion
c41aba1cb0fd112de12c8c0540584b7caa651150
[ "MIT" ]
null
null
null
conversion_service/manage.py
das-g/osmaxx-postgis-conversion
c41aba1cb0fd112de12c8c0540584b7caa651150
[ "MIT" ]
null
null
null
conversion_service/manage.py
das-g/osmaxx-postgis-conversion
c41aba1cb0fd112de12c8c0540584b7caa651150
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "config.settings.local") from django.core.management import execute_from_command_line execute_from_command_line(sys.argv)
23.272727
76
0.773438
bb42f54b9f60b3640951997282a529c5598ed330
6,994
py
Python
core/utils/simulator_utils/carla_agents/navigation/local_planner_behavior.py
timothijoe/DI-drive
3cddefc85bbbca6bcdd8a4d796decacaf8d81778
[ "Apache-2.0" ]
219
2021-07-07T21:55:21.000Z
2022-03-31T14:56:43.000Z
core/utils/simulator_utils/carla_agents/navigation/local_planner_behavior.py
timothijoe/DI-drive
3cddefc85bbbca6bcdd8a4d796decacaf8d81778
[ "Apache-2.0" ]
7
2021-08-11T05:26:19.000Z
2022-03-29T22:21:24.000Z
core/utils/simulator_utils/carla_agents/navigation/local_planner_behavior.py
timothijoe/DI-drive
3cddefc85bbbca6bcdd8a4d796decacaf8d81778
[ "Apache-2.0" ]
29
2021-07-08T03:17:22.000Z
2022-03-16T03:51:43.000Z
#!/usr/bin/env python # Copyright (c) 2018 Intel Labs. # authors: German Ros (german.ros@intel.com) # # This work is licensed under the terms of the MIT license. # For a copy, see <https://opensource.org/licenses/MIT>. """ This module contains a local planner to perform low-level waypoint following based on PID contro...
34.97
118
0.631684
d0c5bc57493f8addf557dfce5b774dc76d11c1cb
11,622
py
Python
functions/source/AssetModelConverter/drivers/ignitionCirrusLinkDriver.py
TensorIoT-Shahan/quickstart-aws-industrial-machine-connectivity
e3bb709cf0edba9733e8888a027a019d191ff47c
[ "Apache-2.0" ]
null
null
null
functions/source/AssetModelConverter/drivers/ignitionCirrusLinkDriver.py
TensorIoT-Shahan/quickstart-aws-industrial-machine-connectivity
e3bb709cf0edba9733e8888a027a019d191ff47c
[ "Apache-2.0" ]
null
null
null
functions/source/AssetModelConverter/drivers/ignitionCirrusLinkDriver.py
TensorIoT-Shahan/quickstart-aws-industrial-machine-connectivity
e3bb709cf0edba9733e8888a027a019d191ff47c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import collections.abc from datetime import date, datetime import json import logging import os import re import sys import time import boto3 from botocore.exceptions import ClientError log = logging.getLogger('assetModelConverter') log.setLevel(logging.DEBUG) class CirrusLinkDriver: def ...
33.111111
121
0.581742
040b1ddffab3448531f651af0f28c7df7536846a
13,680
py
Python
fish_sequence_unet.py
pdima/n1_fish_n2_fish
e4929fb35530c61a25ed8f11e890a8d6ca148087
[ "MIT" ]
null
null
null
fish_sequence_unet.py
pdima/n1_fish_n2_fish
e4929fb35530c61a25ed8f11e890a8d6ca148087
[ "MIT" ]
null
null
null
fish_sequence_unet.py
pdima/n1_fish_n2_fish
e4929fb35530c61a25ed8f11e890a8d6ca148087
[ "MIT" ]
1
2020-02-20T10:37:57.000Z
2020-02-20T10:37:57.000Z
import numpy as np import pandas as pd import argparse import math import os import os.path import pickle import random from copy import copy from multiprocessing.pool import ThreadPool import matplotlib.pyplot as plt import scipy.misc import skimage import skimage.io import skimage.transform from keras.callbacks impor...
38.10585
121
0.623684
6b357812d631c649b3c7c9582276483f33f21d09
1,875
py
Python
tools/harness-automation/cases/reed_5_7_2.py
tpmanley/openthread
bc02c6c05cf52884bc6cd9fad8dc8fc16364a147
[ "BSD-3-Clause" ]
2
2018-08-24T05:14:27.000Z
2018-09-25T03:02:36.000Z
tools/harness-automation/cases/reed_5_7_2.py
tpmanley/openthread
bc02c6c05cf52884bc6cd9fad8dc8fc16364a147
[ "BSD-3-Clause" ]
4
2016-09-09T17:10:04.000Z
2016-09-29T05:18:09.000Z
tools/harness-automation/cases/reed_5_7_2.py
tpmanley/openthread
bc02c6c05cf52884bc6cd9fad8dc8fc16364a147
[ "BSD-3-Clause" ]
1
2019-11-26T06:13:59.000Z
2019-11-26T06:13:59.000Z
#!/usr/bin/env python # # Copyright (c) 2018, The OpenThread Authors. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # 1. Redistributions of source code must retain the above copyright # notic...
39.893617
77
0.7696
d67a4c20c76998d4699f0186e51cd53d8a009a23
11,438
py
Python
axeman/core.py
CaliDog/Lumberjack
e8a195a3e31f10ee6156d564ec541e7dcc356a4c
[ "MIT" ]
151
2017-05-18T07:33:34.000Z
2022-03-15T03:04:38.000Z
axeman/core.py
CaliDog/Lumberjack
e8a195a3e31f10ee6156d564ec541e7dcc356a4c
[ "MIT" ]
15
2017-07-16T21:48:40.000Z
2020-01-30T22:29:06.000Z
axeman/core.py
CaliDog/Lumberjack
e8a195a3e31f10ee6156d564ec541e7dcc356a4c
[ "MIT" ]
63
2017-07-16T21:41:17.000Z
2022-03-25T20:37:42.000Z
import argparse import asyncio from collections import deque import uvloop asyncio.set_event_loop_policy(uvloop.EventLoopPolicy()) import sys import math import base64 import os import traceback import hashlib import aiohttp import aioprocessing import logging import locale try: locale.setlocale(locale.LC_ALL, '...
38.254181
187
0.604214
d8cb9a767c42c3592684f8ef8d4673cf7ac702bd
311
py
Python
src/waveglow/app/defaults.py
stefantaubert/waveglow
5169ec751343a3e3008209a1a2f055e71a65908a
[ "MIT" ]
null
null
null
src/waveglow/app/defaults.py
stefantaubert/waveglow
5169ec751343a3e3008209a1a2f055e71a65908a
[ "MIT" ]
null
null
null
src/waveglow/app/defaults.py
stefantaubert/waveglow
5169ec751343a3e3008209a1a2f055e71a65908a
[ "MIT" ]
null
null
null
from pathlib import Path DEFAULT_SENTENCE_PAUSE_S = 0.2 DEFAULT_WAVEGLOW = "pretrained_v3" DEFAULT_WAVEGLOW_VERSION = 3 DEFAULT_SIGMA = 1.0 DEFAULT_DENOISER_STRENGTH = 0.0005 DEFAULT_SEED = 1111 DEFAULT_READ_MEL_INFO_PATH = Path("/tmp/mel_out.json") DEFAULT_SAVE_WAV_INFO_COPY_PATH = Path("/tmp/wav_out.json")
28.272727
59
0.819936
7250ef74047d4021cb604dd72d6927caf6267a3f
837
py
Python
exps/jungin500/s-visdrone.py
jungin500/YOLOX
f178189f376d185b2f6e5e0215d57d7e0bfe422a
[ "Apache-2.0" ]
null
null
null
exps/jungin500/s-visdrone.py
jungin500/YOLOX
f178189f376d185b2f6e5e0215d57d7e0bfe422a
[ "Apache-2.0" ]
null
null
null
exps/jungin500/s-visdrone.py
jungin500/YOLOX
f178189f376d185b2f6e5e0215d57d7e0bfe422a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding:utf-8 -*- # Copyright (c) Megvii, Inc. and its affiliates. import os import torch.nn as nn from yolox.exp import Exp as MyExp from loguru import logger class Exp(MyExp): def __init__(self): super(Exp, self).__init__() # ---------------- model config ----------...
29.892857
82
0.560335
6e37e67c023d50674bb52623223a70cc4e99552a
1,160
py
Python
Testing/ModelTestingExample.py
ganong123/HARK
ed4dae0d43d4dfb492ac05efca11f61cc50dff5d
[ "Apache-2.0" ]
null
null
null
Testing/ModelTestingExample.py
ganong123/HARK
ed4dae0d43d4dfb492ac05efca11f61cc50dff5d
[ "Apache-2.0" ]
null
null
null
Testing/ModelTestingExample.py
ganong123/HARK
ed4dae0d43d4dfb492ac05efca11f61cc50dff5d
[ "Apache-2.0" ]
2
2016-09-28T00:02:12.000Z
2021-04-02T03:17:46.000Z
# -*- coding: utf-8 -*- """ Created on Tue Apr 12 15:08:22 2016 @author: kaufmana """ import sys import os sys.path.insert(0, os.path.abspath('../')) sys.path.insert(0, os.path.abspath('../ConsumptionSavingModel')) sys.path.insert(0, os.path.abspath('./')) import TractableBufferStockModel as Model import ModelTesting...
32.222222
80
0.623276
e92d360ca156b7f02f276964843bff0ab22022fc
100
py
Python
hrdc/stream/formatter/__init__.py
fossabot/hrdc
740794c946e8d9f967318b1dfc18085448ca0f0c
[ "MIT" ]
13
2018-04-07T06:10:00.000Z
2022-02-18T04:24:32.000Z
hrdc/stream/formatter/__init__.py
fossabot/hrdc
740794c946e8d9f967318b1dfc18085448ca0f0c
[ "MIT" ]
3
2019-07-29T03:06:07.000Z
2021-10-10T12:20:19.000Z
hrdc/stream/formatter/__init__.py
fossabot/hrdc
740794c946e8d9f967318b1dfc18085448ca0f0c
[ "MIT" ]
4
2019-07-29T03:03:24.000Z
2021-10-10T12:15:25.000Z
from .base import Formatter from .hex import Hex from .code import Code from .binary import Binary
16.666667
27
0.79
5f41d53fc84625c8460750835cf66c8b846dede1
381
py
Python
src/events/PleaseRestartEvent.py
ITAnalyst-JU/process-logger
a51d4604b2dc3047dec9adfec96334ff20a3782f
[ "MIT" ]
null
null
null
src/events/PleaseRestartEvent.py
ITAnalyst-JU/process-logger
a51d4604b2dc3047dec9adfec96334ff20a3782f
[ "MIT" ]
null
null
null
src/events/PleaseRestartEvent.py
ITAnalyst-JU/process-logger
a51d4604b2dc3047dec9adfec96334ff20a3782f
[ "MIT" ]
null
null
null
import time from events.Event import Event from events.EventMessageBuilder import EventMessageBuilder class PleaseRestartEvent(Event): def __init__(self): super().__init__(int(time.time() * 1000000)) self.content = '' self.attrs = {} def builder(self): return EventMessageBuil...
23.8125
90
0.698163
0fd0d157bccda903a73136a8fddaaedbd61dd1d2
788
py
Python
win32com/server/factory.py
zhanqxun/cv_fish
f78f4f5bdafb070c179efee8b9276719dfaef1d7
[ "Apache-2.0" ]
3
2016-11-24T03:57:22.000Z
2019-02-27T15:19:50.000Z
Lib/site-packages/win32com/server/factory.py
adzhou/Python27
a7113b69d54a04cc780143241c2f1fe81939ad3a
[ "bzip2-1.0.6" ]
67
2016-10-19T01:23:47.000Z
2016-12-14T04:30:38.000Z
Lib/site-packages/win32com/server/factory.py
adzhou/Python27
a7113b69d54a04cc780143241c2f1fe81939ad3a
[ "bzip2-1.0.6" ]
4
2021-02-11T03:51:39.000Z
2021-02-12T05:10:43.000Z
# Class factory utilities. import pythoncom def RegisterClassFactories(clsids, flags = None, clsctx = None): """Given a list of CLSID, create and register class factories. Returns a list, which should be passed to RevokeClassFactories """ if flags is None: flags = pythoncom.REGCLS_MULTIPLEUSE|pythonco...
34.26087
83
0.730964
a8351da4b609da4163df67d0ded1c9e169da071a
446
py
Python
selvbetjening/api/sso/urls.py
animekita/selvbetjening
fee63d178fbd5ce2976c04d3a4b2dde6d8691892
[ "MIT" ]
null
null
null
selvbetjening/api/sso/urls.py
animekita/selvbetjening
fee63d178fbd5ce2976c04d3a4b2dde6d8691892
[ "MIT" ]
3
2020-02-11T21:54:59.000Z
2021-06-10T17:35:21.000Z
selvbetjening/api/sso/urls.py
animekita/selvbetjening
fee63d178fbd5ce2976c04d3a4b2dde6d8691892
[ "MIT" ]
null
null
null
from django.conf.urls import * import views urlpatterns = patterns('', url(r'^authenticate/(?P<service>[a-z_0-9]+)/$', views.authenticate, name='api_sso_authenticate'), url(r'^validate/(?P<service>[a-z_0-9]+)/(?P<auth_token>[0-9a-z_]+)/$', views.validate, name='api_sso_validate...
29.733333
74
0.58296
8a8eb399b59f7985032600dd9a2a6eb620fc6af1
3,369
py
Python
dbproject/settings.py
ShAlireza/DatabaseBack
8a474f129a1b204d881cb1b3be399f16056271ff
[ "MIT" ]
null
null
null
dbproject/settings.py
ShAlireza/DatabaseBack
8a474f129a1b204d881cb1b3be399f16056271ff
[ "MIT" ]
null
null
null
dbproject/settings.py
ShAlireza/DatabaseBack
8a474f129a1b204d881cb1b3be399f16056271ff
[ "MIT" ]
null
null
null
""" Django settings for dbproject project. Generated by 'django-admin startproject' using Django 3.1.6. For more information on this file, see https://docs.djangoproject.com/en/3.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.1/ref/settings/ """ ...
27.842975
92
0.663105
728ea879f1967be64c476cc2096139484c7c32c7
321
py
Python
server/writango/admin.py
Sonatrix/writango
82189758e0fde146a7ee20923f1590ac763bf51f
[ "MIT" ]
29
2018-12-27T23:40:44.000Z
2022-03-01T01:13:07.000Z
server/writango/admin.py
Sonatrix/writango
82189758e0fde146a7ee20923f1590ac763bf51f
[ "MIT" ]
1
2019-03-24T16:19:29.000Z
2019-03-24T16:40:33.000Z
server/writango/admin.py
Sonatrix/writango
82189758e0fde146a7ee20923f1590ac763bf51f
[ "MIT" ]
2
2019-01-03T23:41:17.000Z
2019-01-17T00:41:01.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.contrib import admin from django.contrib.auth.models import User from writango.models import * # Register your models here. class PostAdmin(admin.ModelAdmin): prepopulated_fields = {"slug": ("title",)} admin.site.register(Post, PostAdmin...
26.75
46
0.760125
8fe16dde8d3049ab5bad8682f0c764ad1b4b8fb7
3,187
py
Python
orgcat/settings.py
ourrevcambridge/orgcat
7c34cc52a6645c14650c8732a39f984dd02640d8
[ "MIT" ]
1
2017-04-12T15:37:26.000Z
2017-04-12T15:37:26.000Z
orgcat/settings.py
ourrevcambridge/orgcat
7c34cc52a6645c14650c8732a39f984dd02640d8
[ "MIT" ]
15
2017-03-15T12:40:40.000Z
2017-03-19T16:54:21.000Z
orgcat/settings.py
ourrevcambridge/orgcat
7c34cc52a6645c14650c8732a39f984dd02640d8
[ "MIT" ]
null
null
null
""" Django settings for orgcat project. Generated by 'django-admin startproject' using Django 1.10.6. For more information on this file, see https://docs.djangoproject.com/en/1.10/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.10/ref/settings/ """ import os ...
24.898438
91
0.695952
29b658091a1ad35ecec6e7115b4051701a4233aa
359
py
Python
registros/migrations/0004_auto_20180202_2310.py
pontual/sistema-v1
5f63d11083077035326787a56c3ae8b66ee2054c
[ "MIT" ]
1
2020-11-24T19:18:33.000Z
2020-11-24T19:18:33.000Z
registros/migrations/0004_auto_20180202_2310.py
pontual/sistema-v1
5f63d11083077035326787a56c3ae8b66ee2054c
[ "MIT" ]
null
null
null
registros/migrations/0004_auto_20180202_2310.py
pontual/sistema-v1
5f63d11083077035326787a56c3ae8b66ee2054c
[ "MIT" ]
null
null
null
# Generated by Django 2.0.1 on 2018-02-02 23:10 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('registros', '0003_empresa_contato'), ] operations = [ migrations.AlterModelOptions( name='funcionario', options={'ordering':...
19.944444
53
0.604457
47ecdaa26e300c424fdbcee9ebaadfe1c94839ff
5,868
py
Python
core/dbt/contracts/connection.py
jeremyyeo/dbt
aa0e58ef3bbc863c880b7f5b0a316433e65e87ac
[ "Apache-2.0" ]
null
null
null
core/dbt/contracts/connection.py
jeremyyeo/dbt
aa0e58ef3bbc863c880b7f5b0a316433e65e87ac
[ "Apache-2.0" ]
null
null
null
core/dbt/contracts/connection.py
jeremyyeo/dbt
aa0e58ef3bbc863c880b7f5b0a316433e65e87ac
[ "Apache-2.0" ]
null
null
null
import abc import itertools from dataclasses import dataclass, field from typing import ( Any, ClassVar, Dict, Tuple, Iterable, Optional, NewType, List, Callable) from typing_extensions import Protocol from hologram import JsonSchemaMixin from hologram.helpers import ( StrEnum, register_pattern, ExtensibleJson...
28.485437
77
0.65559
b192f2306ce7b08f6a6b599c2f8e1f27e4e5bcb1
2,376
py
Python
test/local/main_emotionfeature.py
wuzhongdehua/SinaWeibo-Emotion-Classification
f336fc104abd68b0ec4180fe2ed80fafe49cb790
[ "MIT" ]
137
2015-03-14T06:16:37.000Z
2022-03-27T08:32:38.000Z
test/local/main_emotionfeature.py
qibinlou/SinaWeibo-Emotion-Classification
f336fc104abd68b0ec4180fe2ed80fafe49cb790
[ "MIT" ]
null
null
null
test/local/main_emotionfeature.py
qibinlou/SinaWeibo-Emotion-Classification
f336fc104abd68b0ec4180fe2ed80fafe49cb790
[ "MIT" ]
57
2015-01-06T14:18:27.000Z
2021-12-26T09:37:30.000Z
#!/usr/bin/env python #coding=utf-8 import random import jieba import nltk import pickle jieba.load_userdict("userdict.txt") def run(): pass def gender_features(weibo): global word_features a = jieba.cut(weibo) fl = (" ".join(a)).split() for i in fl:print i # print '嘻嘻' in fl fd = {} f...
27.627907
76
0.625421
eefcf28901241da56441839f8ced1f2208925f64
1,251
py
Python
querybook/server/logic/result_store.py
froukees/querybook
8db8ac7e39cd33bbbe3953c0107b0a4ca8472c07
[ "Apache-2.0" ]
null
null
null
querybook/server/logic/result_store.py
froukees/querybook
8db8ac7e39cd33bbbe3953c0107b0a4ca8472c07
[ "Apache-2.0" ]
null
null
null
querybook/server/logic/result_store.py
froukees/querybook
8db8ac7e39cd33bbbe3953c0107b0a4ca8472c07
[ "Apache-2.0" ]
null
null
null
from datetime import datetime from app.db import with_session from models.result_store import KeyValueStore @with_session def create_key_value_store(key, value, commit=True, session=None): return KeyValueStore.create( {"key": key, "value": value}, commit=commit, session=session ) @with_session def ...
24.529412
74
0.711431
c6a08a4f31171f33699226ffbc353fc40cc78988
64,591
py
Python
keystoneclient/middleware/auth_token.py
dtroyer/python-keystoneclient
4776495adfadbf5240a9e0f169990ce139af9549
[ "Apache-1.1" ]
1
2019-09-11T11:56:19.000Z
2019-09-11T11:56:19.000Z
keystoneclient/middleware/auth_token.py
dtroyer/python-keystoneclient
4776495adfadbf5240a9e0f169990ce139af9549
[ "Apache-1.1" ]
null
null
null
keystoneclient/middleware/auth_token.py
dtroyer/python-keystoneclient
4776495adfadbf5240a9e0f169990ce139af9549
[ "Apache-1.1" ]
null
null
null
# Copyright 2010-2012 OpenStack Foundation # # 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...
39.797289
79
0.615333
b98d57f6f7fa2f94ba6f205cdcaefa42138407c0
220
py
Python
04_seguranca_da_informacao_em_python/13_verificador_de_telefone.py
CaioHenriqueMachado/Contribuindo_com_Python
a35ad2a4d3e2baad191432bdf162cc4ca8568f5e
[ "MIT" ]
2
2020-02-20T23:27:14.000Z
2021-09-03T00:42:29.000Z
04_seguranca_da_informacao_em_python/13_verificador_de_telefone.py
CaioHenriqueMachado/Contribuindo_com_Python
a35ad2a4d3e2baad191432bdf162cc4ca8568f5e
[ "MIT" ]
null
null
null
04_seguranca_da_informacao_em_python/13_verificador_de_telefone.py
CaioHenriqueMachado/Contribuindo_com_Python
a35ad2a4d3e2baad191432bdf162cc4ca8568f5e
[ "MIT" ]
null
null
null
import phonenumbers from phonenumbers import geocoder phone = input("Digite o telefone no formado +551123938541 : ") phone_number = phonenumbers.parse(phone) print(geocoder.description_for_number(phone_number, 'pt'))
24.444444
62
0.804545
00814590eb40913e44bd76a334490338e46a1460
2,897
py
Python
exercises/all-your-base/all_your_base_test.py
gulabraoingle/python
2eedd849d3673d54647d2e595bd746e2d54e6508
[ "MIT" ]
null
null
null
exercises/all-your-base/all_your_base_test.py
gulabraoingle/python
2eedd849d3673d54647d2e595bd746e2d54e6508
[ "MIT" ]
null
null
null
exercises/all-your-base/all_your_base_test.py
gulabraoingle/python
2eedd849d3673d54647d2e595bd746e2d54e6508
[ "MIT" ]
null
null
null
import unittest from all_your_base import rebase # Tests adapted from `problem-specifications//canonical-data.json` @ v2.3.0 class AllYourBaseTest(unittest.TestCase): def test_single_bit_one_to_decimal(self): self.assertEqual(rebase(2, [1], 10), [1]) def test_binary_to_single_decimal(self): ...
30.819149
75
0.631343
5f790870db26e1f27240df2700ea255ee2df2dcb
20,057
py
Python
lale/lib/lightgbm/lgbm_classifier.py
mfeffer/lale
57b58843c7c14dc2e5658244280f2c1918bf030b
[ "Apache-2.0" ]
null
null
null
lale/lib/lightgbm/lgbm_classifier.py
mfeffer/lale
57b58843c7c14dc2e5658244280f2c1918bf030b
[ "Apache-2.0" ]
null
null
null
lale/lib/lightgbm/lgbm_classifier.py
mfeffer/lale
57b58843c7c14dc2e5658244280f2c1918bf030b
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 IBM Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
37.073937
146
0.447225
cc018d482a024d0fb49ea465b5eaa1c005efc2ad
3,684
py
Python
aioaws/sns.py
tomhamiltonstubber/aioaws
4ae59f2eba4ae2cfb0933599836a5eb4bd2d2ce1
[ "MIT" ]
null
null
null
aioaws/sns.py
tomhamiltonstubber/aioaws
4ae59f2eba4ae2cfb0933599836a5eb4bd2d2ce1
[ "MIT" ]
null
null
null
aioaws/sns.py
tomhamiltonstubber/aioaws
4ae59f2eba4ae2cfb0933599836a5eb4bd2d2ce1
[ "MIT" ]
null
null
null
import base64 import json import logging import re from typing import Any, Dict, Literal, Optional, Tuple, Union from cryptography import x509 from cryptography.exceptions import InvalidSignature from cryptography.hazmat.primitives import hashes from cryptography.hazmat.primitives.asymmetric import padding from httpx ...
35.423077
115
0.682139
d379e30e2446bc5ff27c26127481bffe930854a9
102
py
Python
tasks/30_prepare_coffee/variables/camunda.py
Noordsestern/rf-camunda-workshop-2022
8dce6c7308f86dc86bef1958f07c1c554954c011
[ "Apache-2.0" ]
null
null
null
tasks/30_prepare_coffee/variables/camunda.py
Noordsestern/rf-camunda-workshop-2022
8dce6c7308f86dc86bef1958f07c1c554954c011
[ "Apache-2.0" ]
5
2021-12-21T09:44:22.000Z
2022-03-16T22:24:26.000Z
tasks/30_prepare_coffee/variables/camunda.py
Noordsestern/rf-camunda-workshop-2022
8dce6c7308f86dc86bef1958f07c1c554954c011
[ "Apache-2.0" ]
null
null
null
import os CAMUNDA_HOST=os.environ.get('CAMUNDA_HOST', 'http://localhost:8080') TOPIC='prepare coffee'
25.5
68
0.77451
e36001db3ed01d32ed5edb2136e9d079c807f341
1,097
py
Python
tests/rules/test_sudo.py
juzim/thefuck
a3b2e6872b9e75b8a259375b9440246fdd181565
[ "MIT" ]
5
2016-04-12T21:59:07.000Z
2016-06-21T17:56:19.000Z
tests/rules/test_sudo.py
juzim/thefuck
a3b2e6872b9e75b8a259375b9440246fdd181565
[ "MIT" ]
4
2020-12-23T15:44:08.000Z
2020-12-23T16:48:59.000Z
tests/rules/test_sudo.py
juzim/thefuck
a3b2e6872b9e75b8a259375b9440246fdd181565
[ "MIT" ]
1
2019-12-08T19:23:06.000Z
2019-12-08T19:23:06.000Z
import pytest from thefuck.rules.sudo import match, get_new_command from tests.utils import Command @pytest.mark.parametrize('stderr, stdout', [ ('Permission denied', ''), ('permission denied', ''), ("npm ERR! Error: EACCES, unlink", ''), ('requested operation requires superuser privilege', ''), (...
34.28125
101
0.62443
cd0a48104110414f340f5e8f0655fd41f4ae632f
15,121
py
Python
src/matlab2cpp/manual/usr02_datatype.py
neilferg/matlab2cpp
aa26671fc73dad297c977511053b076e05bdd2df
[ "BSD-3-Clause" ]
null
null
null
src/matlab2cpp/manual/usr02_datatype.py
neilferg/matlab2cpp
aa26671fc73dad297c977511053b076e05bdd2df
[ "BSD-3-Clause" ]
null
null
null
src/matlab2cpp/manual/usr02_datatype.py
neilferg/matlab2cpp
aa26671fc73dad297c977511053b076e05bdd2df
[ "BSD-3-Clause" ]
null
null
null
""" .. _usr02: Configuring translation ======================= One of the translation challenges is how each variable type is determined. In C++ all variables have to be explicitly declared, while in Matlab they are declared implicitly at creation. When translating between the two languages, there are many variables...
32.104034
349
0.58594
9320aa276c4191aa713e81977f32a5b796b1375d
54,594
py
Python
mlflow/utils/autologging_utils.py
rbrown-kayak/mlflow
f3af81f229b9dc4ec6f97eb4996d260df20db824
[ "Apache-2.0" ]
10
2021-05-31T07:18:08.000Z
2022-03-19T09:20:11.000Z
mlflow/utils/autologging_utils.py
rbrown-kayak/mlflow
f3af81f229b9dc4ec6f97eb4996d260df20db824
[ "Apache-2.0" ]
1
2021-08-03T12:23:01.000Z
2021-08-10T08:35:22.000Z
mlflow/utils/autologging_utils.py
rbrown-kayak/mlflow
f3af81f229b9dc4ec6f97eb4996d260df20db824
[ "Apache-2.0" ]
2
2021-12-09T07:23:21.000Z
2022-03-31T06:13:10.000Z
import os import abc import inspect import itertools import functools import warnings import logging import time import contextlib import uuid from collections import namedtuple from contextlib import contextmanager from abc import abstractmethod from pathlib import Path import mlflow from mlflow.entities.run_status i...
43.780273
100
0.656226
ce826579144aa3715cd3cede68ce383d0b9b351a
860
py
Python
Trescope4Python/library/src/trescope/config/AxisHelper3DConfig.py
aaabbb2021/Trescope
629dd526572b4883608fd12cc06738b0e83fe775
[ "MIT" ]
105
2020-11-09T04:20:26.000Z
2022-03-23T12:32:24.000Z
Trescope4Python/library/src/trescope/config/AxisHelper3DConfig.py
aaabbb2021/Trescope
629dd526572b4883608fd12cc06738b0e83fe775
[ "MIT" ]
5
2021-02-21T04:21:56.000Z
2022-01-04T08:07:20.000Z
Trescope4Python/library/src/trescope/config/AxisHelper3DConfig.py
aaabbb2021/Trescope
629dd526572b4883608fd12cc06738b0e83fe775
[ "MIT" ]
8
2020-11-13T12:55:36.000Z
2022-01-17T07:28:06.000Z
from trescope.config import Config class AxisHelper3DConfig(Config): """Config for :py:meth:`trescope.Output.plotAxisHelper3D`""" def __init__(self): super().__init__() self.__width = 1 self.__axisLength = 1 def width(self, width: float): """ Axis line width . ...
22.631579
64
0.548837
d62ac784a0b7b0d79665efad458233a35afa709a
3,258
py
Python
apps/DuelingBanditsPureExploration/algs/ValidationSampling/ValidationSampling.py
sumeetsk/NEXT-1
c42badbcaeb0ab79ab1f74b6303ecc3864b1c7ee
[ "Apache-2.0" ]
null
null
null
apps/DuelingBanditsPureExploration/algs/ValidationSampling/ValidationSampling.py
sumeetsk/NEXT-1
c42badbcaeb0ab79ab1f74b6303ecc3864b1c7ee
[ "Apache-2.0" ]
null
null
null
apps/DuelingBanditsPureExploration/algs/ValidationSampling/ValidationSampling.py
sumeetsk/NEXT-1
c42badbcaeb0ab79ab1f74b6303ecc3864b1c7ee
[ "Apache-2.0" ]
null
null
null
import numpy as np import time import next.utils as utils import random def getRandomQuery(n): a = np.random.choice(n) while True: b = np.random.choice(n) if a != b: return [a, b] class ValidationSampling: def initExp(self, butler, n=None, failure_probability=None): b...
35.032258
80
0.565378
9f85188b3513563a7444f7a0e908f11af985498b
18,179
py
Python
tensorflow/python/ops/math_ops_test.py
zhangyujing/tensorflow
c7a04561fb8972fb64907acc5f10f3c6d4cef9f2
[ "Apache-2.0" ]
13
2018-07-23T18:53:35.000Z
2021-11-18T19:56:45.000Z
tensorflow/python/ops/math_ops_test.py
Iorizy2/tensorflow
10878ede0688fbf6d720bef1d132a1537f9ea72c
[ "Apache-2.0" ]
1
2018-03-28T23:47:43.000Z
2018-03-28T23:47:43.000Z
tensorflow/python/ops/math_ops_test.py
Iorizy2/tensorflow
10878ede0688fbf6d720bef1d132a1537f9ea72c
[ "Apache-2.0" ]
13
2018-09-07T13:28:38.000Z
2020-07-17T15:06:24.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...
37.794179
80
0.651521
14bc19fad46b161f7749cc02a8d8f26026ee226a
35,720
py
Python
wagtail/search/tests/test_elasticsearch2_backend.py
nordai/wagtail
f6ef03c67d4589509e9ab645a7d9ce7826e3c64f
[ "BSD-3-Clause" ]
1
2021-06-07T06:06:44.000Z
2021-06-07T06:06:44.000Z
wagtail/search/tests/test_elasticsearch2_backend.py
nordai/wagtail
f6ef03c67d4589509e9ab645a7d9ce7826e3c64f
[ "BSD-3-Clause" ]
null
null
null
wagtail/search/tests/test_elasticsearch2_backend.py
nordai/wagtail
f6ef03c67d4589509e9ab645a7d9ce7826e3c64f
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import datetime import json from unittest import mock from django.db.models import Q from django.test import TestCase from elasticsearch.serializer import JSONSerializer from wagtail.search.backends.elasticsearch2 import Elasticsearch2SearchBackend, get_model_root from wagtail.search.query im...
40.822857
158
0.56425
a5b1b40fa452de0dc96fb55cd630e8c2d633cc0a
3,039
py
Python
setup.py
WayLit/django-s3-file-field
7683e9e7a07691326b131b8b478c8a51af4844a9
[ "Apache-2.0" ]
4
2019-11-06T23:28:01.000Z
2019-11-20T16:14:46.000Z
setup.py
WayLit/django-s3-file-field
7683e9e7a07691326b131b8b478c8a51af4844a9
[ "Apache-2.0" ]
25
2019-11-18T16:06:42.000Z
2019-12-09T23:27:29.000Z
setup.py
WayLit/django-s3-file-field
7683e9e7a07691326b131b8b478c8a51af4844a9
[ "Apache-2.0" ]
1
2019-11-25T00:21:39.000Z
2019-11-25T00:21:39.000Z
# -*- coding: utf-8 -*- import os from setuptools import find_packages, setup from setuptools.command.build_py import build_py from setuptools.command.egg_info import egg_info from setuptools.command.sdist import sdist from build_js import NPM, js_prerelease def prerelease_local_scheme(version): """ Return ...
34.534091
98
0.642317
fcf6f154de17fa80057261f96be465ac5fe01ac9
1,537
py
Python
blobs/file_type.py
firepol/migrate-wordpress-to-google-cloud-python-datastore-blog
6d6e0975aec8e916194f2cde858307cce04b67c2
[ "MIT" ]
1
2020-07-05T16:26:51.000Z
2020-07-05T16:26:51.000Z
blobs/file_type.py
firepol/migrate-wordpress-to-google-cloud-python-datastore-blog
6d6e0975aec8e916194f2cde858307cce04b67c2
[ "MIT" ]
null
null
null
blobs/file_type.py
firepol/migrate-wordpress-to-google-cloud-python-datastore-blog
6d6e0975aec8e916194f2cde858307cce04b67c2
[ "MIT" ]
null
null
null
from enum import Enum from typing import List class FileType(Enum): Other = 0, # This is for other file types, e.g. PDF, ZIP etc. Small = 1, LittleSquare = 150, Thumbnail = 300, Medium = 624, MediumLarge = 768, Large = 1024, Original = 10000, def get_fallback(wished: FileType, avail...
32.702128
103
0.669486
5f4d5ded3117f045f4c359c40fe3e7d571d29fc7
80
py
Python
config.py
kevinam99/Callie
8da12161d24ee7e6f81f1187ae664e1f59d33d23
[ "MIT" ]
1
2020-05-29T10:38:50.000Z
2020-05-29T10:38:50.000Z
config.py
kevinam99/Callie
8da12161d24ee7e6f81f1187ae664e1f59d33d23
[ "MIT" ]
null
null
null
config.py
kevinam99/Callie
8da12161d24ee7e6f81f1187ae664e1f59d33d23
[ "MIT" ]
1
2021-06-12T02:02:18.000Z
2021-06-12T02:02:18.000Z
# Enable Flask's debugging features. Should be False in production DEBUG = False
40
66
0.8
ad33f1d54dc9984f5847e44bce04342f656b83e3
4,586
py
Python
package/src/snobedo/isnobal/smrf_compactor.py
jomey/isnobal-local
38df9b7127a3ac4ff460340c673a8f2f9ef33218
[ "MIT" ]
null
null
null
package/src/snobedo/isnobal/smrf_compactor.py
jomey/isnobal-local
38df9b7127a3ac4ff460340c673a8f2f9ef33218
[ "MIT" ]
null
null
null
package/src/snobedo/isnobal/smrf_compactor.py
jomey/isnobal-local
38df9b7127a3ac4ff460340c673a8f2f9ef33218
[ "MIT" ]
null
null
null
import argparse import os import shutil import subprocess import sys from pathlib import Path DAY_FOLDER_PREFIX = 'run' OUTPUT_FILES = [ 'air_temp.nc', 'cloud_factor.nc', 'percent_snow.nc', 'precip.nc', 'precip_temp.nc', 'precip.nc', 'snow_density.nc', 'storm_days.nc', 'thermal.nc',...
27.963415
77
0.621893
8136b7db75f5c375fd87e6340afabe09ab7e1ca2
25,245
py
Python
tap_purecloud/__init__.py
fishtown-analytics/tap-purecloud
84ae83f4c5d13a52d16e2011512a30c38ee1cdd5
[ "Apache-2.0" ]
null
null
null
tap_purecloud/__init__.py
fishtown-analytics/tap-purecloud
84ae83f4c5d13a52d16e2011512a30c38ee1cdd5
[ "Apache-2.0" ]
null
null
null
tap_purecloud/__init__.py
fishtown-analytics/tap-purecloud
84ae83f4c5d13a52d16e2011512a30c38ee1cdd5
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import argparse import requests import singer import logging import base64 import datetime import time import json import backoff import hashlib import collections import PureCloudPlatformApiSdk import PureCloudPlatformClientV2 from PureCloudPlatformApiSdk.rest import ApiException import tap_p...
33.392857
172
0.685958
18ca3835dbabc05de3ba12021e1c6fda879048aa
3,335
py
Python
tests/test_geometry.py
pealco/vpype
aa7f2f5abd57b1549e1a4564ac4f8b5c41a38d52
[ "MIT" ]
null
null
null
tests/test_geometry.py
pealco/vpype
aa7f2f5abd57b1549e1a4564ac4f8b5c41a38d52
[ "MIT" ]
null
null
null
tests/test_geometry.py
pealco/vpype
aa7f2f5abd57b1549e1a4564ac4f8b5c41a38d52
[ "MIT" ]
null
null
null
import numpy as np import pytest from vpype import interpolate # noinspection PyProtectedMember from vpype.geometry import reloop, crop_half_plane, _interpolate_crop, crop def test_reloop_small(): line = np.array([3, 3], dtype=complex) assert np.all(reloop(line, 0) == line) assert np.all(reloop(line, 1)...
35.105263
94
0.471964
72013718612d63ef2bb8ebd0e50445271540a2c7
5,861
py
Python
neuraleduseg/model/atten_seg.py
rknaebel/NeuralEDUSeg
92c83b1575e5b62148e9c4079da75739fc9623f7
[ "Apache-2.0" ]
null
null
null
neuraleduseg/model/atten_seg.py
rknaebel/NeuralEDUSeg
92c83b1575e5b62148e9c4079da75739fc9623f7
[ "Apache-2.0" ]
null
null
null
neuraleduseg/model/atten_seg.py
rknaebel/NeuralEDUSeg
92c83b1575e5b62148e9c4079da75739fc9623f7
[ "Apache-2.0" ]
null
null
null
import tensorflow as tf import tensorflow.contrib as tc import tensorflow_hub as hub from neuraleduseg.model.base_seg import BaseSegModel from neuraleduseg.model.layers import self_attention from neuraleduseg.model.rnn import rnn class AttnSegModel(BaseSegModel): def __init__(self, args): super().__init...
42.165468
94
0.558608
7d9ee17b3baa3233d511c999554b077e6bfbaf75
1,468
py
Python
pi4home/components/ota.py
khzd/pi4home
937bcdcf77bab111cca10af1fe45c63a55c29aae
[ "MIT" ]
1
2019-05-16T02:52:12.000Z
2019-05-16T02:52:12.000Z
pi4home/components/ota.py
khzd/pi4home
937bcdcf77bab111cca10af1fe45c63a55c29aae
[ "MIT" ]
null
null
null
pi4home/components/ota.py
khzd/pi4home
937bcdcf77bab111cca10af1fe45c63a55c29aae
[ "MIT" ]
null
null
null
import logging import voluptuous as vol import pi4home.config_validation as cv from pi4home.const import CONF_ID, CONF_OTA, CONF_PASSWORD, CONF_PORT, CONF_SAFE_MODE from pi4home.core import CORE from pi4home.cpp_generator import Pvariable, add from pi4home.cpp_types import App, Component, pi4home_ns _LOGGER = loggin...
25.310345
85
0.724114
d91e85385cce16502ef2aa1cd27e6998b1cd928c
5,461
py
Python
ginga/rv/plugins/Colorbar.py
kyraikeda/ginga
e0ce979de4a87e12ba7a90eec0517a0be05d14bc
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
76
2015-01-05T14:46:14.000Z
2022-03-23T04:10:54.000Z
ginga/rv/plugins/Colorbar.py
kyraikeda/ginga
e0ce979de4a87e12ba7a90eec0517a0be05d14bc
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
858
2015-01-17T01:55:12.000Z
2022-03-08T20:20:31.000Z
ginga/rv/plugins/Colorbar.py
kyraikeda/ginga
e0ce979de4a87e12ba7a90eec0517a0be05d14bc
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
60
2015-01-14T21:59:07.000Z
2022-02-13T03:38:49.000Z
# This is open-source software licensed under a BSD license. # Please see the file LICENSE.txt for details. """ The ``Colorbar`` plugin shows a colorbar indicating the colormap applied to the image and showing the example values along the range. **Plugin Type: Global** ``Colorbar`` is a global plugin. Only one insta...
32.89759
74
0.647317
faa0a25beca112e2be48ba9c798d8770560e2a7d
905
py
Python
wurst/bin/wurst_cli.py
pjamesjoyce/wurst
95b37e72eaa18b33bdd83cd4a51d37d9eb4ae7ba
[ "BSD-2-Clause" ]
1
2022-03-29T14:59:13.000Z
2022-03-29T14:59:13.000Z
wurst/bin/wurst_cli.py
pjamesjoyce/wurst
95b37e72eaa18b33bdd83cd4a51d37d9eb4ae7ba
[ "BSD-2-Clause" ]
null
null
null
wurst/bin/wurst_cli.py
pjamesjoyce/wurst
95b37e72eaa18b33bdd83cd4a51d37d9eb4ae7ba
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """Wurst command line interface. See https://github.com/cmutel/wurst for more info. Commands: * show: Launch an interactive web browser for a Wurst model run. * cleanup: Delete all model runs more than one week old. Usage: wurst-cli show <run_id> wurst-cli cleanu...
21.046512
83
0.628729
4474743ca7ba0c34a50a83850c58bb53d80552e7
605
py
Python
survivor/urls.py
vix993/project-lifeline
273bdad6e4d31178995654bbfced9d9e9e665c12
[ "MIT" ]
1
2021-04-13T14:58:37.000Z
2021-04-13T14:58:37.000Z
survivor/urls.py
vix993/project-lifeline
273bdad6e4d31178995654bbfced9d9e9e665c12
[ "MIT" ]
null
null
null
survivor/urls.py
vix993/project-lifeline
273bdad6e4d31178995654bbfced9d9e9e665c12
[ "MIT" ]
null
null
null
from .views import health_check, CreateSurvivorAPIView, RetrieveUpdateSurvivorView, CreateFlagAPIView, CreateItemTradeAPIView, ReportsView from django.urls import path from django.conf.urls import url urlpatterns = [ url(r'^$', CreateSurvivorAPIView.as_view(), name='create-list-survivors'), url(r'^(?P<pk>\d+)$...
55
138
0.742149
b8b171843f99d01ac5af7a20583fe9b3cf423289
4,042
py
Python
seafileapi/admin.py
fbuchmeier-abi/python-seafile-api
99fd0c1d6db132590f0a0525b9f30b90f92d4227
[ "Apache-2.0" ]
2
2020-10-21T14:53:03.000Z
2021-03-01T22:47:05.000Z
seafileapi/admin.py
fbuchmeier-abi/python-seafile-api
99fd0c1d6db132590f0a0525b9f30b90f92d4227
[ "Apache-2.0" ]
1
2020-10-30T09:12:33.000Z
2020-10-30T09:12:33.000Z
seafileapi/admin.py
fbuchmeier-abi/python-seafile-api
99fd0c1d6db132590f0a0525b9f30b90f92d4227
[ "Apache-2.0" ]
5
2018-10-01T11:31:10.000Z
2020-10-26T10:04:48.000Z
from seafileapi.utils import raise_does_not_exist, tsstr_sec class Account(object): __slots__ = ( 'client', 'id', 'email', 'password', 'is_staff', 'is_active', 'usage', 'total', 'create_time', 'department', 'name', 'note', 'ACCOUNT_URL') def __init__(self, client, email, **account_inf...
33.131148
117
0.621722
bebfadd763a13ed6073426d9054523dceaba3e40
1,746
py
Python
tests/test_elgin_i9.py
base4sistemas/pyescpos
786b1efc17a0c56b196c593dd381a994a7c9c797
[ "Apache-2.0" ]
58
2015-04-07T17:30:20.000Z
2022-01-11T13:42:46.000Z
tests/test_elgin_i9.py
base4sistemas/pyescpos
786b1efc17a0c56b196c593dd381a994a7c9c797
[ "Apache-2.0" ]
12
2017-11-22T15:31:53.000Z
2022-02-24T16:02:49.000Z
tests/test_elgin_i9.py
base4sistemas/pyescpos
786b1efc17a0c56b196c593dd381a994a7c9c797
[ "Apache-2.0" ]
32
2015-03-28T20:47:38.000Z
2021-12-11T23:31:53.000Z
# -*- coding: utf-8 -*- # # escpos/tests/test_elgin_i9.py # # Copyright 2015 Base4 Sistemas Ltda ME # # 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/LICE...
30.631579
79
0.757732
e2fbac8fd6fe177ecd718b96647b065e62b5e313
11,708
py
Python
symphony/bdk/gen/pod_model/user_connection_request.py
SymphonyOSF/symphony-api-client-python
70137a893f4385381a3158ef80e1be156e0fc4bd
[ "Apache-2.0" ]
null
null
null
symphony/bdk/gen/pod_model/user_connection_request.py
SymphonyOSF/symphony-api-client-python
70137a893f4385381a3158ef80e1be156e0fc4bd
[ "Apache-2.0" ]
null
null
null
symphony/bdk/gen/pod_model/user_connection_request.py
SymphonyOSF/symphony-api-client-python
70137a893f4385381a3158ef80e1be156e0fc4bd
[ "Apache-2.0" ]
null
null
null
""" Pod API This document refers to Symphony API calls that do not need encryption or decryption of content. - sessionToken can be obtained by calling the authenticationAPI on the symphony back end and the key manager respectively. Refer to the methods described in authenticatorAPI.yaml. - Actions are defined...
45.55642
637
0.582081
c785604e89f30ee889b3e8a097154461deaadf36
7,796
py
Python
my_memory_card.py
SaiNet-gey/dfiksf-kjj
4d0952abd003f993d1fb3abbdb27d35ae57e1c4b
[ "CC0-1.0" ]
null
null
null
my_memory_card.py
SaiNet-gey/dfiksf-kjj
4d0952abd003f993d1fb3abbdb27d35ae57e1c4b
[ "CC0-1.0" ]
null
null
null
my_memory_card.py
SaiNet-gey/dfiksf-kjj
4d0952abd003f993d1fb3abbdb27d35ae57e1c4b
[ "CC0-1.0" ]
null
null
null
from PyQt5.QtCore import Qt from PyQt5.QtWidgets import ( QApplication, QWidget, QHBoxLayout, QVBoxLayout, QGroupBox, QButtonGroup, QRadioButton, QPushButton, QLabel) from random import shuffle, randint class Question(): def __init__(self, question, right_answer, wrong...
43.797753
332
0.715752
7586b64d4ea47aba49b8b97587fa2a1b132698ab
1,737
py
Python
accounts/migrations/0002_business_business_name_loan_amount_loan_borrower_and_more.py
nephsir/daraja
0deb9913ab863eadfc1a27f5e292b220f86a1bb7
[ "MIT" ]
null
null
null
accounts/migrations/0002_business_business_name_loan_amount_loan_borrower_and_more.py
nephsir/daraja
0deb9913ab863eadfc1a27f5e292b220f86a1bb7
[ "MIT" ]
null
null
null
accounts/migrations/0002_business_business_name_loan_amount_loan_borrower_and_more.py
nephsir/daraja
0deb9913ab863eadfc1a27f5e292b220f86a1bb7
[ "MIT" ]
null
null
null
# Generated by Django 4.0.2 on 2022-02-21 05:52 from django.db import migrations, models import django.utils.timezone class Migration(migrations.Migration): dependencies = [ ('accounts', '0001_initial'), ] operations = [ migrations.AddField( model_name='business', ...
31.581818
86
0.582038
0e5b0645da40fcb105f0b9c20608b4352521e9a4
2,374
py
Python
dependencies/PyMesh/python/pymesh/meshutils/remove_isolated_vertices.py
aprieels/3D-watermarking-spectral-decomposition
dcab78857d0bb201563014e58900917545ed4673
[ "MIT" ]
5
2018-06-04T19:52:02.000Z
2022-01-22T09:04:00.000Z
dependencies/PyMesh/python/pymesh/meshutils/remove_isolated_vertices.py
aprieels/3D-watermarking-spectral-decomposition
dcab78857d0bb201563014e58900917545ed4673
[ "MIT" ]
null
null
null
dependencies/PyMesh/python/pymesh/meshutils/remove_isolated_vertices.py
aprieels/3D-watermarking-spectral-decomposition
dcab78857d0bb201563014e58900917545ed4673
[ "MIT" ]
null
null
null
import numpy as np from PyMesh import IsolatedVertexRemoval from ..meshio import form_mesh def remove_isolated_vertices_raw(vertices, elements): """ Remove isolated vertices. Args: vertices (``numpy.ndarray``): Vertex array with one vertex per row. elements (``numpy.ndarray``): Element array w...
36.523077
84
0.624684
cfabbb6118388549dd2d227d185f8c5def72345b
309
py
Python
application/model/entity/cliente.py
kaslufl/VerificadorTemperatura
a18666ccbb26dc5045f34c35639c5d476bc92828
[ "Apache-2.0" ]
1
2020-07-15T14:16:52.000Z
2020-07-15T14:16:52.000Z
application/model/entity/cliente.py
kaslufl/VerificadorTemperatura
a18666ccbb26dc5045f34c35639c5d476bc92828
[ "Apache-2.0" ]
null
null
null
application/model/entity/cliente.py
kaslufl/VerificadorTemperatura
a18666ccbb26dc5045f34c35639c5d476bc92828
[ "Apache-2.0" ]
null
null
null
class Cliente: def __init__(self, nome = None): self._nome = nome def get_id(self): return self._id def get_nome(self): return self._nome def set_id(self, id): self._id = id def set_nome(self, nome): self._nome = nome
19.3125
37
0.517799
0bd5dd9ba5c361df77832fc2a0254b755e0d8b2a
13,547
py
Python
pymatgen/analysis/quasiharmonic.py
robertcdickson/pymatgen
fb65122a7c471b9ffd0d01f2341339fb1dee2af1
[ "MIT" ]
null
null
null
pymatgen/analysis/quasiharmonic.py
robertcdickson/pymatgen
fb65122a7c471b9ffd0d01f2341339fb1dee2af1
[ "MIT" ]
null
null
null
pymatgen/analysis/quasiharmonic.py
robertcdickson/pymatgen
fb65122a7c471b9ffd0d01f2341339fb1dee2af1
[ "MIT" ]
null
null
null
# Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. """ This module implements the Quasi-harmonic Debye approximation that can be used to compute thermal properties. See the following papers for more info: https://doi.org/10.1016/j.comphy.2003.12.001 (2004) https://d...
39.040346
120
0.588322
7f117fbac5a3c46468981f35aa7f87be9cd19f7c
2,634
py
Python
domdeturl.py
ThirtySomething/DomDetURL
ab5370154bbc93a5076bab35908bd777d155375c
[ "MIT" ]
null
null
null
domdeturl.py
ThirtySomething/DomDetURL
ab5370154bbc93a5076bab35908bd777d155375c
[ "MIT" ]
null
null
null
domdeturl.py
ThirtySomething/DomDetURL
ab5370154bbc93a5076bab35908bd777d155375c
[ "MIT" ]
null
null
null
''' Class to determine desktop and mobile URL for given domain ''' import logging import requests class DomDetURL: """ Class to determine desktop and mobile URL for given domain """ # Definition of an user agent string of an desktop browser ua_desktop = 'Mozilla/4.0 (compatible; MSIE 5.01; Windows...
40.523077
116
0.618451
1c58ad455ac3183fe60c0e5d19e317fe17d8fa0a
2,690
py
Python
examples/cronjob.py
ohaval/auto-doh
03820b23c9e1aa7cae3ed0b350991127a7df4d54
[ "Unlicense" ]
5
2021-09-26T15:21:16.000Z
2021-12-27T22:21:46.000Z
examples/cronjob.py
ohaval/auto-doh
03820b23c9e1aa7cae3ed0b350991127a7df4d54
[ "Unlicense" ]
null
null
null
examples/cronjob.py
ohaval/auto-doh
03820b23c9e1aa7cae3ed0b350991127a7df4d54
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python3 """A cronjob script to report doh1 daily Cron line example: 30 5 * * 0-4 $HOME/auto-doh/examples/cronjob.py --url URL --cookie "COOKIE" --ifttt-key KEY >> $HOME/auto-doh/examples/.cronjob.log 2>&1 # noqa: E501 """ import argparse import logging import random import time from datetime import da...
30.224719
150
0.628253
15c359b38c20521d7eb2da3e71095a415033a256
17,678
py
Python
tools/multi_gpu_train.py
colorfullywonderfully/Rotation_RetinaNet_Railway
71899af1f84b513e861669a5f176d66de34a484e
[ "MIT" ]
null
null
null
tools/multi_gpu_train.py
colorfullywonderfully/Rotation_RetinaNet_Railway
71899af1f84b513e861669a5f176d66de34a484e
[ "MIT" ]
null
null
null
tools/multi_gpu_train.py
colorfullywonderfully/Rotation_RetinaNet_Railway
71899af1f84b513e861669a5f176d66de34a484e
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- from __future__ import absolute_import from __future__ import print_function from __future__ import division import tensorflow as tf import tensorflow.contrib.slim as slim import os import sys import numpy as np import time sys.path.append("../") from libs.configs import cfgs from libs.network...
46.39895
130
0.522231
6f29f9efda8c11b7b6788c0dd4ef0abc93492f52
595
py
Python
irtorch/estimate/converter/meta.py
naktazdim/irtorch
3838496e109cb3a096a84c83461c4c1d6c4080d7
[ "MIT" ]
1
2021-02-22T16:32:30.000Z
2021-02-22T16:32:30.000Z
irtorch/estimate/converter/meta.py
naktazdim/irtorch
3838496e109cb3a096a84c83461c4c1d6c4080d7
[ "MIT" ]
null
null
null
irtorch/estimate/converter/meta.py
naktazdim/irtorch
3838496e109cb3a096a84c83461c4c1d6c4080d7
[ "MIT" ]
1
2021-02-22T16:33:44.000Z
2021-02-22T16:33:44.000Z
from dataclasses import dataclass from typing import Optional import pandas as pd @dataclass() class GRMMeta: item_category: pd.Categorical person_category: pd.Categorical n_grades: int level_category: Optional[pd.Categorical] = None @property def n_items(self) -> int: return len(sel...
23.8
91
0.715966
fd48f2bf63bb7d3fad658fb8e73544e05390a945
14
py
Python
app/Views/cases_view.py
Renanrbsc/StatisticsCOVID19
811a21da2e8757b6e2d62074a95f99f39f64b12b
[ "MIT" ]
null
null
null
app/Views/cases_view.py
Renanrbsc/StatisticsCOVID19
811a21da2e8757b6e2d62074a95f99f39f64b12b
[ "MIT" ]
null
null
null
app/Views/cases_view.py
Renanrbsc/StatisticsCOVID19
811a21da2e8757b6e2d62074a95f99f39f64b12b
[ "MIT" ]
null
null
null
import flask
4.666667
12
0.785714
b5d44df9a87dfa4d9c65a57ba5135a8068aac924
23
py
Python
pyubx2/_version.py
mgesteiro/pyubx2
02fd8fa2863b88ed2d746b5800717a1b6b213181
[ "BSD-3-Clause" ]
2
2020-03-26T07:50:54.000Z
2020-07-01T07:12:34.000Z
pyubx2/_version.py
mgesteiro/pyubx2
02fd8fa2863b88ed2d746b5800717a1b6b213181
[ "BSD-3-Clause" ]
43
2020-04-20T10:16:34.000Z
2021-07-27T05:42:32.000Z
pyubx2/_version.py
mgesteiro/pyubx2
02fd8fa2863b88ed2d746b5800717a1b6b213181
[ "BSD-3-Clause" ]
4
2020-03-26T08:04:48.000Z
2021-07-27T05:32:55.000Z
__version__ = "0.2.8"
11.5
22
0.608696
150d1965f7278fdf29e39da989e684cb0ea24e76
1,304
py
Python
src/unicef_locations/tests/factories.py
unicef/unicef-locations
4cfe80b6a1d8ac35b0fd243063d696ee7a132b3f
[ "Apache-2.0" ]
3
2018-07-26T11:11:43.000Z
2021-05-11T11:01:09.000Z
src/unicef_locations/tests/factories.py
unicef/unicef-locations
4cfe80b6a1d8ac35b0fd243063d696ee7a132b3f
[ "Apache-2.0" ]
9
2018-07-26T15:33:41.000Z
2022-02-07T11:55:59.000Z
src/unicef_locations/tests/factories.py
unicef/unicef-locations
4cfe80b6a1d8ac35b0fd243063d696ee7a132b3f
[ "Apache-2.0" ]
1
2018-05-14T18:14:54.000Z
2018-05-14T18:14:54.000Z
from django.contrib.gis.geos import GEOSGeometry import factory from unicef_locations import models class GatewayTypeFactory(factory.django.DjangoModelFactory): class Meta: model = models.GatewayType name = factory.Sequence(lambda n: 'GatewayType {}'.format(n)) admin_level = factory.Sequence(la...
30.325581
70
0.733896
c08249860575c7f4480bd0b5918c19c34150102c
179
py
Python
lib/JumpScale/baselib/jpackages/templates/actions/code.link.py
Jumpscale/jumpscale6_core
0502ddc1abab3c37ed982c142d21ea3955d471d3
[ "BSD-2-Clause" ]
1
2015-10-26T10:38:13.000Z
2015-10-26T10:38:13.000Z
lib/JumpScale/baselib/jpackages/templates/actions/code.link.py
Jumpscale/jumpscale6_core
0502ddc1abab3c37ed982c142d21ea3955d471d3
[ "BSD-2-Clause" ]
null
null
null
lib/JumpScale/baselib/jpackages/templates/actions/code.link.py
Jumpscale/jumpscale6_core
0502ddc1abab3c37ed982c142d21ea3955d471d3
[ "BSD-2-Clause" ]
null
null
null
#if customizations are required when doing a a linking of the jpackage code to the OS def main(j,jp,force=True): recipe=jp.getCodeMgmtRecipe() recipe.link(force=force)
22.375
85
0.743017
e9df0454512d45b21241649c5a4df7ec43ae2ef6
10,330
py
Python
modin/core/io/file_dispatcher.py
yizx-1017/modin
2eee697135b30a9694c202456db0635c52c9e6c9
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
modin/core/io/file_dispatcher.py
yizx-1017/modin
2eee697135b30a9694c202456db0635c52c9e6c9
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
modin/core/io/file_dispatcher.py
yizx-1017/modin
2eee697135b30a9694c202456db0635c52c9e6c9
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Licensed to Modin Development Team under one or more contributor license agreements. # See the NOTICE file distributed with this work for additional information regarding # copyright ownership. The Modin Development Team licenses this file to you under the # Apache License, Version 2.0 (the "License"); you may not u...
31.114458
96
0.587415
4f75084d7a618a1e516e472892a6169de0d10946
8,639
py
Python
build/scripts/gen_configin.py
HelloAllen8893/AliOS-Things
f3a2904860c3bf87b64d634e6900d980931fac88
[ "Apache-2.0" ]
2
2018-08-20T08:33:55.000Z
2018-11-28T03:19:22.000Z
build/scripts/gen_configin.py
HelloAllen8893/AliOS-Things
f3a2904860c3bf87b64d634e6900d980931fac88
[ "Apache-2.0" ]
null
null
null
build/scripts/gen_configin.py
HelloAllen8893/AliOS-Things
f3a2904860c3bf87b64d634e6900d980931fac88
[ "Apache-2.0" ]
1
2021-06-20T06:43:12.000Z
2021-06-20T06:43:12.000Z
#!/usr/bin/env python import os, sys, re import shutil from aos_parse_components import get_comp_name # Global definitions templatedir = "build/scripts/kconfig_template" top_config_in = "build/Config.in" board_config_in = "board/Config.in" example_config_in = "app/example/Config.in" profile_config_in = "app/profile/...
34.418327
99
0.550179
3359be5f97b02089cb1717d224ed0cce4e77b1f9
999
py
Python
recordatorios/notificar.py
ElGoreLoco/Recordatorios
21d26a36c351e3223a0d716558ef808dda879026
[ "MIT" ]
null
null
null
recordatorios/notificar.py
ElGoreLoco/Recordatorios
21d26a36c351e3223a0d716558ef808dda879026
[ "MIT" ]
null
null
null
recordatorios/notificar.py
ElGoreLoco/Recordatorios
21d26a36c351e3223a0d716558ef808dda879026
[ "MIT" ]
null
null
null
import manejar from gi.repository import Notify from time import localtime Notify.init("Recordatorios") def ejec(): recordatorios = manejar.lista() #recordatorios[-1][1] = localtime().tm_year #recordatorios[-1][2] = localtime().tm_mon #recordatorios[-1][3] = localtime().tm_mday #recordatorios[-1]...
33.3
62
0.485485
cc5e4934cfeb3fbd72e1cf201ee662af0d820d8d
1,121
py
Python
crichtonweb/package/forms.py
bpluly/crichton
a2fa09c181ba1e44ee1aae7a57769e1778de7f3a
[ "Apache-2.0" ]
null
null
null
crichtonweb/package/forms.py
bpluly/crichton
a2fa09c181ba1e44ee1aae7a57769e1778de7f3a
[ "Apache-2.0" ]
null
null
null
crichtonweb/package/forms.py
bpluly/crichton
a2fa09c181ba1e44ee1aae7a57769e1778de7f3a
[ "Apache-2.0" ]
null
null
null
# Crichton, Admirable Source Configuration Management # Copyright 2012 British Broadcasting Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licens...
31.138889
75
0.758252
5fc40fb1c1db7c38bd9dcb80406aecbf6d7dc3c8
2,358
py
Python
app/dashboard/views/contact_detail.py
fareszr/app
1f3bc693eccb307234e53653f6fa2cb25ddc0647
[ "MIT" ]
null
null
null
app/dashboard/views/contact_detail.py
fareszr/app
1f3bc693eccb307234e53653f6fa2cb25ddc0647
[ "MIT" ]
null
null
null
app/dashboard/views/contact_detail.py
fareszr/app
1f3bc693eccb307234e53653f6fa2cb25ddc0647
[ "MIT" ]
null
null
null
from flask import render_template, request, redirect, url_for, flash from flask_login import login_required, current_user from app.dashboard.base import dashboard_bp from app.db import Session from app.models import Contact from app.pgp_utils import PGPException, load_public_key_and_check @dashboard_bp.route("/conta...
40.655172
88
0.572943
80c048ed670f388542e3dc7292703743f3f64f3e
196
py
Python
task_tracker/task_tracker/doctype/project_task/project_task.py
AlaaBadry/task_tracker
b3f49edb8bbc0b5f489d3b83acbfb126f9c913f0
[ "MIT" ]
null
null
null
task_tracker/task_tracker/doctype/project_task/project_task.py
AlaaBadry/task_tracker
b3f49edb8bbc0b5f489d3b83acbfb126f9c913f0
[ "MIT" ]
null
null
null
task_tracker/task_tracker/doctype/project_task/project_task.py
AlaaBadry/task_tracker
b3f49edb8bbc0b5f489d3b83acbfb126f9c913f0
[ "MIT" ]
1
2021-06-23T02:13:32.000Z
2021-06-23T02:13:32.000Z
# Copyright (c) 2021, xsolutions and contributors # For license information, please see license.txt # import frappe from frappe.model.document import Document class ProjectTask(Document): pass
21.777778
49
0.795918
2517ede4757ff892d74962978834895c14e8537d
335
py
Python
blogs/migrations/0022_remove_blog_allow_dark_mode.py
daaawx/bearblog
5e01e4443c632ff53b918cf8a0d3b1c648b352fe
[ "MIT" ]
657
2020-05-26T16:16:07.000Z
2022-03-26T22:35:01.000Z
blogs/migrations/0022_remove_blog_allow_dark_mode.py
daaawx/bearblog
5e01e4443c632ff53b918cf8a0d3b1c648b352fe
[ "MIT" ]
107
2020-05-26T17:45:04.000Z
2022-03-17T08:24:00.000Z
blogs/migrations/0022_remove_blog_allow_dark_mode.py
daaawx/bearblog
5e01e4443c632ff53b918cf8a0d3b1c648b352fe
[ "MIT" ]
42
2020-05-26T23:57:58.000Z
2022-03-15T04:20:26.000Z
# Generated by Django 3.0.7 on 2020-10-22 14:39 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('blogs', '0021_blog_allow_dark_mode'), ] operations = [ migrations.RemoveField( model_name='blog', name='allow_dark_mode', ...
18.611111
47
0.6
54e35370b04848e3f7effc91e6ae4f547adf7b0a
993
py
Python
Ago-Dic-2018/David Perez/Practica 2/users9-5.py
Arbupa/DAS_Sistemas
52263ab91436b2e5a24ce6f8493aaa2e2fe92fb1
[ "MIT" ]
41
2017-09-26T09:36:32.000Z
2022-03-19T18:05:25.000Z
Ago-Dic-2018/David Perez/Practica 2/users9-5.py
Arbupa/DAS_Sistemas
52263ab91436b2e5a24ce6f8493aaa2e2fe92fb1
[ "MIT" ]
67
2017-09-11T05:06:12.000Z
2022-02-14T04:44:04.000Z
Ago-Dic-2018/David Perez/Practica 2/users9-5.py
Arbupa/DAS_Sistemas
52263ab91436b2e5a24ce6f8493aaa2e2fe92fb1
[ "MIT" ]
210
2017-09-01T00:10:08.000Z
2022-03-19T18:05:12.000Z
#Ejercicio 9-5 ----------------------------------------------------------------- class user: def __init__(self, first_name, last_name, semester, collage): self.first_name = first_name self.last_name = last_name self.semester = semester self.collage = collage self.access = 0 ...
33.1
174
0.610272
65a2026d63f0c65530f33056eb7a5b7fc2a39c93
1,887
py
Python
lib/python3.8/site-packages/ansible_collections/junipernetworks/junos/plugins/terminal/junos.py
cjsteel/python3-venv-ansible-2.10.5
c95395c4cae844dc66fddde9b4343966f4b2ecd5
[ "Apache-1.1" ]
null
null
null
lib/python3.8/site-packages/ansible_collections/junipernetworks/junos/plugins/terminal/junos.py
cjsteel/python3-venv-ansible-2.10.5
c95395c4cae844dc66fddde9b4343966f4b2ecd5
[ "Apache-1.1" ]
null
null
null
lib/python3.8/site-packages/ansible_collections/junipernetworks/junos/plugins/terminal/junos.py
cjsteel/python3-venv-ansible-2.10.5
c95395c4cae844dc66fddde9b4343966f4b2ecd5
[ "Apache-1.1" ]
null
null
null
# # (c) 2016 Red Hat Inc. # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # Ansible is d...
30.934426
79
0.648649
4ad947e1b6b4905210b305288e3d14594e48ab05
2,726
py
Python
effective_spiders/gov_spiders/2018-06-10_test_wzskjj2.py
nikan1996/PyScraper
ed6ba5aa490fce96b5ff59e1461b408886744c04
[ "Apache-2.0" ]
null
null
null
effective_spiders/gov_spiders/2018-06-10_test_wzskjj2.py
nikan1996/PyScraper
ed6ba5aa490fce96b5ff59e1461b408886744c04
[ "Apache-2.0" ]
1
2018-05-31T19:08:40.000Z
2018-05-31T19:08:40.000Z
effective_spiders/gov_spiders/2018-06-10_test_wzskjj2.py
nikan1996/PyScraper
ed6ba5aa490fce96b5ff59e1461b408886744c04
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # encoding: utf-8 """ @author:nikan @file: test_wzskjj2.py @time: 2018-06-10 01:21:43 """ from typing import List from scrapy import Request from scrapy.crawler import CrawlerProcess from scrapy.http import TextResponse from scrapy.link import Link from scrapy.mail import MailSender from scrap...
36.837838
130
0.687087
ba36f3d187ae2f49c0a8c926fdd3368498d0a0e0
1,222
py
Python
queue_services/entity-emailer/tests/unit/test_version.py
argush3/lear
804820ea93a9ca44d1a474ce7a903bb0a808aacb
[ "Apache-2.0" ]
8
2019-06-19T16:16:15.000Z
2021-08-28T23:56:40.000Z
queue_services/entity-emailer/tests/unit/test_version.py
argush3/lear
804820ea93a9ca44d1a474ce7a903bb0a808aacb
[ "Apache-2.0" ]
796
2019-03-07T19:25:50.000Z
2022-03-31T20:32:57.000Z
queue_services/entity-emailer/tests/unit/test_version.py
argush3/lear
804820ea93a9ca44d1a474ce7a903bb0a808aacb
[ "Apache-2.0" ]
82
2019-01-30T20:06:14.000Z
2022-03-29T20:38:31.000Z
# Copyright © 2019 Province of British Columbia # # 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 agr...
34.914286
74
0.758592
88d90c04380738b55fa23d2485c99c9f195fc4e5
6,769
py
Python
ddtrace/contrib/psycopg/patch.py
cclauss/dd-trace-py
1eef0609820ed1d0fb1a01d304fa7e906507fb56
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
ddtrace/contrib/psycopg/patch.py
cclauss/dd-trace-py
1eef0609820ed1d0fb1a01d304fa7e906507fb56
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
ddtrace/contrib/psycopg/patch.py
cclauss/dd-trace-py
1eef0609820ed1d0fb1a01d304fa7e906507fb56
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
# 3p import psycopg2 from ddtrace import Pin from ddtrace import config from ddtrace.contrib import dbapi from ddtrace.ext import db from ddtrace.ext import net from ddtrace.ext import sql from ddtrace.vendor import debtcollector from ddtrace.vendor import wrapt from ...utils.formats import asbool from ...utils.forma...
33.019512
120
0.69774
b33f08741234441029c8c27c84395dad603d9ef8
3,994
py
Python
cogkge/modules/gnn/helper.py
CogNLP/CogKGE
70d851d6489600c1e90eb25b0388a3ceba2f078c
[ "MIT" ]
1
2022-03-17T08:21:59.000Z
2022-03-17T08:21:59.000Z
cogkge/modules/gnn/helper.py
CogNLP/CogKGE
70d851d6489600c1e90eb25b0388a3ceba2f078c
[ "MIT" ]
null
null
null
cogkge/modules/gnn/helper.py
CogNLP/CogKGE
70d851d6489600c1e90eb25b0388a3ceba2f078c
[ "MIT" ]
null
null
null
import numpy as np, sys, os, random, pdb, json, uuid, time, argparse from pprint import pprint import logging, logging.config from collections import defaultdict as ddict # from ordered_set import OrderedSet # PyTorch related imports import torch from torch.nn import functional as F from torch.nn.init import xavier_no...
29.153285
110
0.645969