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
796c9d81612b00e79ea11e429e447dcf17945f28
2,920
py
Python
utils/info.py
hixio-mh/material-theme
614b7e8bc7369c32e852297d42253643ebf90d55
[ "MIT" ]
13,130
2015-06-01T18:00:18.000Z
2022-03-30T22:43:58.000Z
utils/info.py
hixio-mh/material-theme
614b7e8bc7369c32e852297d42253643ebf90d55
[ "MIT" ]
1,167
2015-06-02T20:00:37.000Z
2021-01-16T09:13:29.000Z
utils/info.py
hixio-mh/material-theme
614b7e8bc7369c32e852297d42253643ebf90d55
[ "MIT" ]
1,426
2015-06-03T04:00:42.000Z
2022-03-28T06:19:26.000Z
"""Support command.""" import sublime import sublime_plugin import textwrap __version__ = '4.1.5' __pc_name__ = 'Material Theme' def list2string(obj): """Convert list to string.""" return '.'.join([str(x) for x in obj]) def format_version(module, attr, call=False): """Format the version.""" try: ...
29.494949
136
0.577055
796c9e0941fc63a4b4962bb25b48d9ad6a6955f7
4,445
py
Python
core/manger.py
fengqimin/framework
83dcac979409adbe1361bfd31346c7415a17902e
[ "MIT" ]
null
null
null
core/manger.py
fengqimin/framework
83dcac979409adbe1361bfd31346c7415a17902e
[ "MIT" ]
null
null
null
core/manger.py
fengqimin/framework
83dcac979409adbe1361bfd31346c7415a17902e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Author: FengQiMin<fengqimin@msn.com> # Created on 2019-01-08 00:15:13 """URL Manager 负责待爬取URL和已爬取URL的管理,实现URL去重,可以考虑使用内存、数据库或缓存数据库方式实现,最简单的方式使用set。 """ import asyncio import sqlite3 from collections import namedtuple from urllib.parse import * from config.hkpicconfig import THREAD_URL from f...
31.524823
100
0.556805
796c9eea967f78dae5f6db7cebe6c310d84ad4b5
144
py
Python
tests/classification/BinaryClass_100/ws_BinaryClass_100_LGBMClassifier_mysql_code_gen.py
antoinecarme/sklearn2sql_heroku
d680db10683daa419324461eeea851dd8b103ad5
[ "BSD-3-Clause" ]
1
2019-07-09T14:45:18.000Z
2019-07-09T14:45:18.000Z
tests/classification/BinaryClass_100/ws_BinaryClass_100_LGBMClassifier_mysql_code_gen.py
antoinecarme/sklearn2sql_heroku
d680db10683daa419324461eeea851dd8b103ad5
[ "BSD-3-Clause" ]
5
2017-11-13T13:35:37.000Z
2021-11-11T12:57:20.000Z
tests/classification/BinaryClass_100/ws_BinaryClass_100_LGBMClassifier_mysql_code_gen.py
antoinecarme/sklearn2sql_heroku
d680db10683daa419324461eeea851dd8b103ad5
[ "BSD-3-Clause" ]
1
2021-09-19T15:05:33.000Z
2021-09-19T15:05:33.000Z
from sklearn2sql_heroku.tests.classification import generic as class_gen class_gen.test_model("LGBMClassifier" , "BinaryClass_100" , "mysql")
28.8
72
0.819444
796ca01fed341a727c2592dd0ec5eb23b774146d
306
py
Python
django/ping/views.py
trckr/trckr-backend
c13e71035bf0d5428ed9584c86e1c82215ec8cb8
[ "MIT" ]
4
2018-03-31T13:56:46.000Z
2021-09-07T19:21:58.000Z
django/ping/views.py
trckr/trckr-backend
c13e71035bf0d5428ed9584c86e1c82215ec8cb8
[ "MIT" ]
null
null
null
django/ping/views.py
trckr/trckr-backend
c13e71035bf0d5428ed9584c86e1c82215ec8cb8
[ "MIT" ]
null
null
null
from django.shortcuts import render from rest_framework.views import APIView from rest_framework.response import Response class Ping(APIView): ''' Returns a pong response on request to verify that the server is up ''' def get(self, request, format=None): return Response("pong")
23.538462
70
0.72549
796ca1ce5026f4072af1a85b25690ec805f924ee
6,066
py
Python
nova/tests/functional/api_sample_tests/test_instance_actions.py
lixiaoy1/nova
357b8b38e88300948bb2e07d1bbaabd1e9d7b60e
[ "Apache-2.0" ]
1
2016-07-18T22:05:01.000Z
2016-07-18T22:05:01.000Z
nova/tests/functional/api_sample_tests/test_instance_actions.py
woraser/nova
fc3890667e4971e3f0f35ac921c2a6c25f72adec
[ "Apache-2.0" ]
5
2019-08-14T06:46:03.000Z
2021-12-13T20:01:25.000Z
nova/tests/functional/api_sample_tests/test_instance_actions.py
woraser/nova
fc3890667e4971e3f0f35ac921c2a6c25f72adec
[ "Apache-2.0" ]
2
2020-03-15T01:24:15.000Z
2020-07-22T20:34:26.000Z
# Copyright 2012 Nebula, Inc. # Copyright 2013 IBM Corp. # # 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...
38.884615
79
0.665018
796ca2a42144f9012c3553eb1130f5eadcb09b1d
374
py
Python
mundo1python/Aulas/aula010/desafio005.py
PhabloSouza/Curso-Python3
cda031cd298cc910a7c337e8762f03dae77e80db
[ "MIT" ]
null
null
null
mundo1python/Aulas/aula010/desafio005.py
PhabloSouza/Curso-Python3
cda031cd298cc910a7c337e8762f03dae77e80db
[ "MIT" ]
null
null
null
mundo1python/Aulas/aula010/desafio005.py
PhabloSouza/Curso-Python3
cda031cd298cc910a7c337e8762f03dae77e80db
[ "MIT" ]
null
null
null
# Faça um programa que leia um ano qualquer e mostre se ele é bissexto. from datetime import date ano = int(input('Que ano quer analisar? Coloque 0 para analisar o ano atual: ')) if ano == 0: ano = date.today().year if ano % 4 == 0 and ano % 100 !=0 or ano % 400 == 0: print('O ano {} é BISSEXTO'.format(ano)) ...
37.4
80
0.652406
796ca31ea4cd1b0274cb4adce4712f352acbbac3
19,839
py
Python
tests/kafkatest/services/streams.py
ro7m/kafka
ad7994231ff57657cde233eb40923493fb843fc4
[ "Apache-2.0" ]
null
null
null
tests/kafkatest/services/streams.py
ro7m/kafka
ad7994231ff57657cde233eb40923493fb843fc4
[ "Apache-2.0" ]
null
null
null
tests/kafkatest/services/streams.py
ro7m/kafka
ad7994231ff57657cde233eb40923493fb843fc4
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not use ...
43.794702
171
0.599929
796ca37d48d90642e4f8970c8ab29cc890d4496f
1,501
py
Python
vendor/Twisted-10.0.0/doc/web/examples/lj.rpy.py
bopopescu/cc-2
37444fb16b36743c439b0d6c3cac2347e0cc0a94
[ "Apache-2.0" ]
19
2015-05-01T19:59:03.000Z
2021-12-09T08:03:16.000Z
vendor/Twisted-10.0.0/doc/web/examples/lj.rpy.py
bopopescu/cc-2
37444fb16b36743c439b0d6c3cac2347e0cc0a94
[ "Apache-2.0" ]
1
2020-08-02T15:40:49.000Z
2020-08-02T15:40:49.000Z
vendor/Twisted-10.0.0/doc/web/examples/lj.rpy.py
bopopescu/cc-2
37444fb16b36743c439b0d6c3cac2347e0cc0a94
[ "Apache-2.0" ]
30
2015-03-25T19:40:07.000Z
2021-05-28T22:59:26.000Z
# Copyright (c) 2001-2004 Twisted Matrix Laboratories. # See LICENSE for details. # # Syndicate LiveJournal users # Demonstrates how to use chained callbacks from __future__ import nested_scopes from twisted.web import resource as resourcelib from twisted.web import client, microdom, domhelpers, server urlTemplate =...
41.694444
80
0.578281
796ca3cbee6cd8e9e4972a068b5e4ae087f9d533
5,495
py
Python
src/project.py
oraby/Mesoscale-Brain-Explorer
75793508b372e95a6559d8a1e7f687e4b7d980a5
[ "MIT" ]
null
null
null
src/project.py
oraby/Mesoscale-Brain-Explorer
75793508b372e95a6559d8a1e7f687e4b7d980a5
[ "MIT" ]
null
null
null
src/project.py
oraby/Mesoscale-Brain-Explorer
75793508b372e95a6559d8a1e7f687e4b7d980a5
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import json import os import shutil import traceback import qtutil from PyQt5.QtCore import * from PyQt5.QtGui import * class NewProjectDialog(QDialog): def __init__(self, parent=None): super(NewProjectDialog, self).__init__(parent) self.path = None self.name = None self...
31.045198
111
0.676069
796ca491e309808437116e36709a7e361b61c309
11,649
py
Python
MetamorphicTests/all_mutants/sales_forecasting_file/208.py
anuragbms/Sales-forecasting-with-RNNs
22b4639ecbb48381af53326ace94a3538201b586
[ "Apache-2.0" ]
null
null
null
MetamorphicTests/all_mutants/sales_forecasting_file/208.py
anuragbms/Sales-forecasting-with-RNNs
22b4639ecbb48381af53326ace94a3538201b586
[ "Apache-2.0" ]
null
null
null
MetamorphicTests/all_mutants/sales_forecasting_file/208.py
anuragbms/Sales-forecasting-with-RNNs
22b4639ecbb48381af53326ace94a3538201b586
[ "Apache-2.0" ]
1
2022-02-06T14:59:43.000Z
2022-02-06T14:59:43.000Z
def gen_mutants(): import tensorflow as tf import pandas import numpy as np DATAFILE_TRAIN = 'mock_kaggle_edit_train.csv' DATAFILE_VALIDATE = 'mock_kaggle_edit_...
31.230563
232
0.629668
796ca4fbfd5a0d0849d9bfdfc5c2a040f11e6c05
1,338
py
Python
qlutter_todo/app.py
pkolios/qlutter-todo
f64ad8a1dcac206de5c285ea78632c96dec75cc1
[ "MIT" ]
null
null
null
qlutter_todo/app.py
pkolios/qlutter-todo
f64ad8a1dcac206de5c285ea78632c96dec75cc1
[ "MIT" ]
null
null
null
qlutter_todo/app.py
pkolios/qlutter-todo
f64ad8a1dcac206de5c285ea78632c96dec75cc1
[ "MIT" ]
null
null
null
import os from flask import Flask from flask_jwt import JWT from flask_restful import Api from qlutter_todo.resources import todo, auth from qlutter_todo.auth.utils import ( authenticate, identity, auth_response_handler) from qlutter_todo.extensions import bcrypt, db from qlutter_todo.spec import build_spec def...
30.409091
69
0.726457
796ca6d32f206b3f3f64ea0d33c65653162df515
6,858
py
Python
t_core/Mutex/HReleaseRuleNAC0.py
levilucio/SyVOLT
7526ec794d21565e3efcc925a7b08ae8db27d46a
[ "MIT" ]
3
2017-06-02T19:26:27.000Z
2021-06-14T04:25:45.000Z
t_core/Mutex/HReleaseRuleNAC0.py
levilucio/SyVOLT
7526ec794d21565e3efcc925a7b08ae8db27d46a
[ "MIT" ]
8
2016-08-24T07:04:07.000Z
2017-05-26T16:22:47.000Z
t_core/Mutex/HReleaseRuleNAC0.py
levilucio/SyVOLT
7526ec794d21565e3efcc925a7b08ae8db27d46a
[ "MIT" ]
1
2019-10-31T06:00:23.000Z
2019-10-31T06:00:23.000Z
from core.himesis import Himesis, HimesisPreConditionPatternNAC import cPickle as pickle class HReleaseRuleNAC0(HimesisPreConditionPatternNAC): def __init__(self, LHS): """ Creates the himesis graph representing the AToM3 model HReleaseRuleNAC0. """ # Create the himesis ...
38.745763
601
0.530913
796ca9b5f5d41a0933794cc91bc7489b0dfc12d3
210
py
Python
2021/1a.py
DanielDionne/advent_of_code
891fd46b29a4eac2ef4ec1402df69dda10bd6c5d
[ "MIT" ]
null
null
null
2021/1a.py
DanielDionne/advent_of_code
891fd46b29a4eac2ef4ec1402df69dda10bd6c5d
[ "MIT" ]
null
null
null
2021/1a.py
DanielDionne/advent_of_code
891fd46b29a4eac2ef4ec1402df69dda10bd6c5d
[ "MIT" ]
null
null
null
count = 0 with open('1.input') as inputFile: input = inputFile.readlines() last = int(input[0]) for depth in input: if depth > last: count += 1 last = depth print(count)
21
34
0.561905
796ca9cad366c0258f75c30c6c5cf34d54876311
245
py
Python
Assignments/HW7/encodercontrol01.py
bsaisudh/ENPM809T
d31072c2c79ea7ec34f61f868af12195286ed1da
[ "MIT" ]
null
null
null
Assignments/HW7/encodercontrol01.py
bsaisudh/ENPM809T
d31072c2c79ea7ec34f61f868af12195286ed1da
[ "MIT" ]
null
null
null
Assignments/HW7/encodercontrol01.py
bsaisudh/ENPM809T
d31072c2c79ea7ec34f61f868af12195286ed1da
[ "MIT" ]
1
2021-02-05T00:45:48.000Z
2021-02-05T00:45:48.000Z
import RPi.GPIO as gpio import time import cv2 import sys sys.path.append('../../utils') from encoder_class import encoder_class encoder = encoder_class() print("Turn right wheel") encoder.count_till(20, encoder.read_right) encoder.cleanup()
17.5
42
0.77551
796caa41141737d8efa6cfef2880189a55380757
11,870
py
Python
tensorflow/python/kernel_tests/linalg_grad_test.py
ashutom/tensorflow-upstream
c16069c19de9e286dd664abb78d0ea421e9f32d4
[ "Apache-2.0" ]
10
2021-05-25T17:43:04.000Z
2022-03-08T10:46:09.000Z
tensorflow/python/kernel_tests/linalg_grad_test.py
CaptainGizzy21/tensorflow
3457a2b122e50b4d44ceaaed5a663d635e5c22df
[ "Apache-2.0" ]
1,056
2019-12-15T01:20:31.000Z
2022-02-10T02:06:28.000Z
tensorflow/python/kernel_tests/linalg_grad_test.py
CaptainGizzy21/tensorflow
3457a2b122e50b4d44ceaaed5a663d635e5c22df
[ "Apache-2.0" ]
6
2016-09-07T04:00:15.000Z
2022-01-12T01:47:38.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...
40.931034
83
0.646672
796caa46fe0bcfb68c6f4eb109e06516549f8110
3,445
py
Python
tests/test_rhino_client.py
meltmedia/the-ark
d559897494e02a2e2048fdc44014f17af89691bb
[ "Apache-2.0" ]
null
null
null
tests/test_rhino_client.py
meltmedia/the-ark
d559897494e02a2e2048fdc44014f17af89691bb
[ "Apache-2.0" ]
51
2015-01-27T18:13:41.000Z
2022-03-11T23:16:29.000Z
tests/test_rhino_client.py
meltmedia/the-ark
d559897494e02a2e2048fdc44014f17af89691bb
[ "Apache-2.0" ]
null
null
null
import unittest from mock import patch, Mock from the_ark import rhino_client __author__ = 'chaley' rhino_client_ojb = None class UtilsTestCase(unittest.TestCase): def setUp(self): self.rhino_client_obj = rhino_client.RhinoClient('test_name', '...
32.5
78
0.628737
796cac687c23848e46ffe21a76e58301394c9f0a
3,064
py
Python
src/vcdm/server/cdmi/generic.py
ajax14/vcdm
cb53e2f6d0e7d37f72c3c11f3c8369c698ebedbe
[ "BSD-3-Clause" ]
6
2015-06-23T23:31:00.000Z
2020-01-15T09:45:25.000Z
src/vcdm/server/cdmi/generic.py
ajax14/vcdm
cb53e2f6d0e7d37f72c3c11f3c8369c698ebedbe
[ "BSD-3-Clause" ]
null
null
null
src/vcdm/server/cdmi/generic.py
ajax14/vcdm
cb53e2f6d0e7d37f72c3c11f3c8369c698ebedbe
[ "BSD-3-Clause" ]
1
2018-10-21T15:00:26.000Z
2018-10-21T15:00:26.000Z
## # Copyright 2002-2012 Ilja Livenson, PDC KTH # # 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...
32.252632
79
0.639034
796cadacaf0ad9fcddfbff1c20294cf749b02307
3,379
py
Python
migrations/versions/33427a8826b0_initial_migration.py
igihozo-stella/1min-pitch
39dcaa7d050319cdcad9e6898dd23823bd9eace1
[ "MIT" ]
null
null
null
migrations/versions/33427a8826b0_initial_migration.py
igihozo-stella/1min-pitch
39dcaa7d050319cdcad9e6898dd23823bd9eace1
[ "MIT" ]
null
null
null
migrations/versions/33427a8826b0_initial_migration.py
igihozo-stella/1min-pitch
39dcaa7d050319cdcad9e6898dd23823bd9eace1
[ "MIT" ]
null
null
null
"""Initial Migration Revision ID: 33427a8826b0 Revises: Create Date: 2020-12-10 23:07:52.226818 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '33427a8826b0' down_revision = None branch_labels = None depends_on = None def upgrade(): # ### commands auto ...
37.544444
83
0.656999
796cadfe947eee44e14a32975a908e642e51b87d
132
py
Python
toolchain/riscv/MSYS/python/Lib/test/badsyntax_future8.py
zhiqiang-hu/bl_iot_sdk
154ee677a8cc6a73e6a42a5ff12a8edc71e6d15d
[ "Apache-2.0" ]
207
2018-10-01T08:53:01.000Z
2022-03-14T12:15:54.000Z
toolchain/riscv/MSYS/python/Lib/test/badsyntax_future8.py
zhiqiang-hu/bl_iot_sdk
154ee677a8cc6a73e6a42a5ff12a8edc71e6d15d
[ "Apache-2.0" ]
8
2019-06-29T14:18:51.000Z
2022-02-19T07:30:27.000Z
toolchain/riscv/MSYS/python/Lib/test/badsyntax_future8.py
zhiqiang-hu/bl_iot_sdk
154ee677a8cc6a73e6a42a5ff12a8edc71e6d15d
[ "Apache-2.0" ]
76
2020-03-16T01:47:46.000Z
2022-03-21T16:37:07.000Z
"""This is a test""" from __future__ import * def f(x): def g(y): return x + y return g print(f(2)(4))
12
25
0.484848
796cae08d3af8a26b1c97fce93d9805efd1b72d9
887
py
Python
src/interfaces/python/examples/inference_self_fusion.py
jasjuang/opengm
3c098e91244c98dbd3aafdc5e3a54dad67b7dfd9
[ "MIT" ]
318
2015-01-07T15:22:02.000Z
2022-01-22T10:10:29.000Z
src/interfaces/python/examples/inference_self_fusion.py
jasjuang/opengm
3c098e91244c98dbd3aafdc5e3a54dad67b7dfd9
[ "MIT" ]
89
2015-03-24T14:33:01.000Z
2020-07-10T13:59:13.000Z
src/interfaces/python/examples/inference_self_fusion.py
jasjuang/opengm
3c098e91244c98dbd3aafdc5e3a54dad67b7dfd9
[ "MIT" ]
119
2015-01-13T08:35:03.000Z
2022-03-01T01:49:08.000Z
import opengm import numpy #--------------------------------------------------------------- # MinSum with SelfFusion #--------------------------------------------------------------- numpy.random.seed(42) n=100 nl=100 unaries=numpy.random.rand(n , n, nl) potts=opengm.PottsFunction([nl,nl],0.0,0.5) gm=opengm.grid2d2Ord...
28.612903
64
0.546787
796cae120d58b077cd134cef4b5c79f397e8573f
3,502
py
Python
Tests/modules/misc/test__warnings.py
aisk/ironpython3
d492fd811a0cee4d0a07cd46f02a29a3c90d964b
[ "Apache-2.0" ]
1,872
2015-01-02T18:56:47.000Z
2022-03-31T07:34:39.000Z
Tests/modules/misc/test__warnings.py
aisk/ironpython3
d492fd811a0cee4d0a07cd46f02a29a3c90d964b
[ "Apache-2.0" ]
675
2015-02-27T09:01:01.000Z
2022-03-31T14:03:25.000Z
Tests/modules/misc/test__warnings.py
aisk/ironpython3
d492fd811a0cee4d0a07cd46f02a29a3c90d964b
[ "Apache-2.0" ]
278
2015-01-02T03:48:20.000Z
2022-03-29T20:40:44.000Z
# Licensed to the .NET Foundation under one or more agreements. # The .NET Foundation licenses this file to you under the Apache 2.0 License. # See the LICENSE file in the project root for more information. ''' CPython's _warnings module. http://docs.python.org/library/warnings.html ''' import unittest import _warnin...
37.255319
115
0.601942
796cae3e3ad13ea7b7fe7948d0e3b4d3ce695d92
2,444
py
Python
salt/runners/network.py
jubrad/salt
7960334fb726cfde45e6409da79a65535c626685
[ "Apache-2.0" ]
1
2020-01-02T09:03:21.000Z
2020-01-02T09:03:21.000Z
salt/runners/network.py
jubrad/salt
7960334fb726cfde45e6409da79a65535c626685
[ "Apache-2.0" ]
null
null
null
salt/runners/network.py
jubrad/salt
7960334fb726cfde45e6409da79a65535c626685
[ "Apache-2.0" ]
1
2020-01-02T09:03:24.000Z
2020-01-02T09:03:24.000Z
# -*- coding: utf-8 -*- ''' Network tools to run from the Master ''' # Import python libs from __future__ import print_function from __future__ import absolute_import import logging import socket # Import salt libs import salt.utils import salt.utils.files log = logging.getLogger(__name__) def wollist(maclist, bca...
28.752941
110
0.62766
796cafb2f35d2783ced62b907541e2c48afaed62
470
py
Python
example/services/greet.py
codejamninja/cfoundation
5cd8738952eb871badcc0632e2a2d3de52ec8af0
[ "MIT" ]
null
null
null
example/services/greet.py
codejamninja/cfoundation
5cd8738952eb871badcc0632e2a2d3de52ec8af0
[ "MIT" ]
null
null
null
example/services/greet.py
codejamninja/cfoundation
5cd8738952eb871badcc0632e2a2d3de52ec8af0
[ "MIT" ]
null
null
null
from cfoundation import Service class Greet(Service): def english(self): log = self.app.log c = self.app.conf log.info(c.english) def french(self): log = self.app.log c = self.app.conf log.info(c.french) def german(self): log = self.app.log ...
20.434783
31
0.546809
796cafe045933b13fd3229f72dbcd68981e8046a
12,851
py
Python
deepspeech/utils/checkpoint.py
zh794390558/DeepSpeech
34178893327ad359cb816e55d7c66a10244fa08a
[ "Apache-2.0" ]
null
null
null
deepspeech/utils/checkpoint.py
zh794390558/DeepSpeech
34178893327ad359cb816e55d7c66a10244fa08a
[ "Apache-2.0" ]
null
null
null
deepspeech/utils/checkpoint.py
zh794390558/DeepSpeech
34178893327ad359cb816e55d7c66a10244fa08a
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
42.979933
95
0.596996
796cb020c273ff8fe428bd89193054e55443d66d
330
py
Python
database/connection.py
YeetmeisterII/KoreanVocabularyLearner
729bc474f261c8bac0ca6816fc9475f99c99076a
[ "MIT" ]
null
null
null
database/connection.py
YeetmeisterII/KoreanVocabularyLearner
729bc474f261c8bac0ca6816fc9475f99c99076a
[ "MIT" ]
1
2020-09-11T14:25:28.000Z
2020-09-30T15:20:21.000Z
database/connection.py
YeetmeisterII/KoreanVocabularyLearner
729bc474f261c8bac0ca6816fc9475f99c99076a
[ "MIT" ]
null
null
null
import os import sqlite3 class WordStorageConnection(sqlite3.Connection): """ Creates a Connection object to the word_storage database. """ def __init__(self) -> None: db_dir = os.path.dirname(__file__) db_abs_path = os.path.join(db_dir, "word_storage.db") super().__init__(db_...
23.571429
61
0.678788
796cb0626dcbeabbda0beb9a091f771e381b7508
2,707
py
Python
cogs/ibaelia.py
Mahkookeh/Secretary_Ibaelia_Bot
9fc3298cedb2a98b09ba0c0d49c2ff8bd0334e9a
[ "MIT" ]
null
null
null
cogs/ibaelia.py
Mahkookeh/Secretary_Ibaelia_Bot
9fc3298cedb2a98b09ba0c0d49c2ff8bd0334e9a
[ "MIT" ]
25
2020-07-01T01:15:51.000Z
2021-06-12T21:20:12.000Z
cogs/ibaelia.py
Mahkookeh/Secretary_Ibaelia_Bot
9fc3298cedb2a98b09ba0c0d49c2ff8bd0334e9a
[ "MIT" ]
1
2020-07-01T00:12:58.000Z
2020-07-01T00:12:58.000Z
import discord from discord.utils import get from discord.ext import commands class IbaeliaCommands(commands.Cog): """Ibaelia Bot's General Commands""" def __init__(self, bot): self.bot = bot @commands.command(name="todo", help="My To Dos~") async def todo(self, ctx): embed = discord.E...
45.116667
166
0.663096
796cb096e57c56cb69214b754c5090bbd8b71069
429
py
Python
fileupload/views.py
rcook7/django-file-upload
cdcd5380ad50e3c81ad86812f2a3f30ab36f6360
[ "MIT" ]
41
2015-03-24T11:55:30.000Z
2021-06-24T16:13:48.000Z
fileupload/views.py
rcook7/django-file-upload
cdcd5380ad50e3c81ad86812f2a3f30ab36f6360
[ "MIT" ]
1
2017-09-14T16:35:32.000Z
2017-09-14T16:35:32.000Z
fileupload/views.py
sigurdga/django-dropzone-upload
8704abafc9fa5dc452571a42e86877411f2596e4
[ "MIT" ]
23
2015-03-26T03:39:01.000Z
2021-04-16T06:42:11.000Z
#from django.shortcuts import render from django.views.generic import CreateView from .models import Picture from .response import JSONResponse, response_mimetype class PictureCreateView(CreateView): model = Picture def form_valid(self, form): self.object = form.save() data = {'status': 'succe...
30.642857
79
0.729604
796cb15d0a12aed80b34ba6ae78d2be97e49fd9e
1,347
py
Python
geoms2events.py
eyeNsky/dss-tools
63407e119a2c7b2b28209aa72e0d7ad6b2ca6b93
[ "MIT" ]
1
2019-02-18T14:17:07.000Z
2019-02-18T14:17:07.000Z
geoms2events.py
eyeNsky/dss-tools
63407e119a2c7b2b28209aa72e0d7ad6b2ca6b93
[ "MIT" ]
null
null
null
geoms2events.py
eyeNsky/dss-tools
63407e119a2c7b2b28209aa72e0d7ad6b2ca6b93
[ "MIT" ]
1
2020-05-01T16:58:12.000Z
2020-05-01T16:58:12.000Z
''' Extract position and orientation from .geom files ''' import glob geoms = glob.glob('*.geom') def make_geom_kvp(geom): # Create a dictionary of geom key/values gkvp = {} for line in geom: line = line.split(':') gkvp[line[0]] = (line[1].rstrip("\n\r")).lstrip() return gkvp def pars...
31.325581
110
0.613215
796cb1b1008fdce42e5efff994b99d0fdc3be2a7
19
py
Python
cyclist/__init__.py
MortimerMcMire/cyclist
7a6fdf788ef73d25f734c1a2c73b3e466adf752d
[ "MIT" ]
null
null
null
cyclist/__init__.py
MortimerMcMire/cyclist
7a6fdf788ef73d25f734c1a2c73b3e466adf752d
[ "MIT" ]
null
null
null
cyclist/__init__.py
MortimerMcMire/cyclist
7a6fdf788ef73d25f734c1a2c73b3e466adf752d
[ "MIT" ]
null
null
null
import cycle_events
19
19
0.947368
796cb374125c7102263ce30161b22bc0d0a19ece
890
py
Python
src/the_tale/the_tale/blogs/helpers.py
al-arz/the-tale
542770257eb6ebd56a5ac44ea1ef93ff4ab19eb5
[ "BSD-3-Clause" ]
85
2017-11-21T12:22:02.000Z
2022-03-27T23:07:17.000Z
src/the_tale/the_tale/blogs/helpers.py
al-arz/the-tale
542770257eb6ebd56a5ac44ea1ef93ff4ab19eb5
[ "BSD-3-Clause" ]
545
2017-11-04T14:15:04.000Z
2022-03-27T14:19:27.000Z
src/the_tale/the_tale/blogs/helpers.py
al-arz/the-tale
542770257eb6ebd56a5ac44ea1ef93ff4ab19eb5
[ "BSD-3-Clause" ]
45
2017-11-11T12:36:30.000Z
2022-02-25T06:10:44.000Z
import smart_imports smart_imports.all() def prepair_forum(): forum_category = forum_models.Category.objects.create(caption='category-1', slug='category-1') forum_models.SubCategory.objects.create(caption=conf.settings.FORUM_CATEGORY_UID + '-caption', uid=conf.set...
42.380952
99
0.623596
796cb38d769b13ea579d997da3aa47f6153dc1ba
5,643
py
Python
lib/OSCP.py
streetlightvision/oscp-datalogger
89e8ea1e3e01f87f6eecc309f9493257aa76a6c4
[ "MIT" ]
null
null
null
lib/OSCP.py
streetlightvision/oscp-datalogger
89e8ea1e3e01f87f6eecc309f9493257aa76a6c4
[ "MIT" ]
null
null
null
lib/OSCP.py
streetlightvision/oscp-datalogger
89e8ea1e3e01f87f6eecc309f9493257aa76a6c4
[ "MIT" ]
null
null
null
import sqlite3 import sys import json import datetime import time import xml.etree.ElementTree as ET from lib.CMS import CMS def enum(*sequential, **named): enums = dict(zip(sequential, range(len(sequential))), **named) return type('Enum', (), enums) State = enum('INIT', 'CONNECT_LOCAL_DB', 'GATHER_DATA', 'DISCONN...
28.074627
178
0.676945
796cb3f081979f30a82666e89f0a9912b8545335
1,393
py
Python
devito/core/operator.py
alisiahkoohi/devito
f535a44dff12de2837eb6e3217a65ffb2d371cb8
[ "MIT" ]
null
null
null
devito/core/operator.py
alisiahkoohi/devito
f535a44dff12de2837eb6e3217a65ffb2d371cb8
[ "MIT" ]
40
2019-02-26T22:59:16.000Z
2022-03-21T12:32:30.000Z
devito/core/operator.py
alisiahkoohi/devito
f535a44dff12de2837eb6e3217a65ffb2d371cb8
[ "MIT" ]
null
null
null
from devito.core.autotuning import autotune from devito.parameters import configuration from devito.operator import Operator from devito.types import NThreads __all__ = ['OperatorCore'] class OperatorCore(Operator): def _autotune(self, args, setup): if setup in [False, 'off']: return args ...
31.659091
79
0.575018
796cb4dfd7f632b13ff03dd5e6f2747d694c06ee
507
py
Python
01_deploy_graph_response/fetchMetadata.py
DrazenDodik/vh_deployment_samples
61ddbe88870ecbf2d589223df24ba1b50aa759be
[ "MIT" ]
null
null
null
01_deploy_graph_response/fetchMetadata.py
DrazenDodik/vh_deployment_samples
61ddbe88870ecbf2d589223df24ba1b50aa759be
[ "MIT" ]
null
null
null
01_deploy_graph_response/fetchMetadata.py
DrazenDodik/vh_deployment_samples
61ddbe88870ecbf2d589223df24ba1b50aa759be
[ "MIT" ]
null
null
null
import requests import json # Authenticate yourself with the token auth_token = '<my-auth-token>' headers = {'Authorization': 'Token %s' % auth_token} # Send a request (with the authentication headers) to fetch all executions in a project # You can get the project ID for example resp = requests.get('https://app.valoh...
33.8
109
0.74359
796cb513a1727af73abec1b0e9146c12eec2c445
615
py
Python
flow-python/examples/warehouse/detection_yolox/__init__.py
ysh329/MegFlow
778a4361a88af43f499528f4509f6523515ce0ee
[ "Apache-2.0" ]
null
null
null
flow-python/examples/warehouse/detection_yolox/__init__.py
ysh329/MegFlow
778a4361a88af43f499528f4509f6523515ce0ee
[ "Apache-2.0" ]
null
null
null
flow-python/examples/warehouse/detection_yolox/__init__.py
ysh329/MegFlow
778a4361a88af43f499528f4509f6523515ce0ee
[ "Apache-2.0" ]
null
null
null
# MegFlow is Licensed under the Apache License, Version 2.0 (the "License") # # Copyright (c) 2019-2021 Megvii Inc. All rights reserved. # # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KI...
34.166667
88
0.772358
796cb63dfe1090ad254adb7ef0c7c95f352d4fa9
2,757
py
Python
classification_training/imagenet/yoloxxbackbone/train_config.py
zgcr/pytorch-ImageNet-CIFAR-COCO-voc-training
c5878df46ac874097d1a5076a81cd7d41630fb98
[ "MIT" ]
null
null
null
classification_training/imagenet/yoloxxbackbone/train_config.py
zgcr/pytorch-ImageNet-CIFAR-COCO-voc-training
c5878df46ac874097d1a5076a81cd7d41630fb98
[ "MIT" ]
null
null
null
classification_training/imagenet/yoloxxbackbone/train_config.py
zgcr/pytorch-ImageNet-CIFAR-COCO-voc-training
c5878df46ac874097d1a5076a81cd7d41630fb98
[ "MIT" ]
null
null
null
import os import sys BASE_DIR = os.path.dirname( os.path.dirname(os.path.dirname(os.path.dirname( os.path.abspath(__file__))))) sys.path.append(BASE_DIR) from tools.path import ILSVRC2012_path from simpleAICV.classification import backbones from simpleAICV.classification import losses from simpleAICV.cla...
26.009434
211
0.59231
796cb6c459761774d671bea31126df1b34e651c4
136
py
Python
configs/emanet/emanet_r101-d8_512x1024_80k_cityscapes.py
Xlinford/mmsegmentation
8b444de5e6db2af2538a73a93ac75204f5c3bb2f
[ "Apache-2.0" ]
null
null
null
configs/emanet/emanet_r101-d8_512x1024_80k_cityscapes.py
Xlinford/mmsegmentation
8b444de5e6db2af2538a73a93ac75204f5c3bb2f
[ "Apache-2.0" ]
null
null
null
configs/emanet/emanet_r101-d8_512x1024_80k_cityscapes.py
Xlinford/mmsegmentation
8b444de5e6db2af2538a73a93ac75204f5c3bb2f
[ "Apache-2.0" ]
null
null
null
_base_ = './emanet_r50-d8_512x1024_80k_cityscapes.py' model = dict(pretrained='open-mmlab://resnet101_v1c', backbone=dict(depth=101))
45.333333
80
0.772059
796cb726e913cbb86a343cf40a3beba52872ed6b
1,145
py
Python
serving_utils/protos/prediction_service_grpc.py
PEAT-AI/serving-utils
5d69d110cb92f0bae3a158582fc49d20a5e9a944
[ "Apache-2.0" ]
7
2019-06-03T02:17:27.000Z
2021-06-07T14:16:39.000Z
serving_utils/protos/prediction_service_grpc.py
PEAT-AI/serving-utils
5d69d110cb92f0bae3a158582fc49d20a5e9a944
[ "Apache-2.0" ]
28
2018-07-16T11:22:46.000Z
2020-05-10T13:24:56.000Z
serving_utils/protos/prediction_service_grpc.py
PEAT-AI/serving-utils
5d69d110cb92f0bae3a158582fc49d20a5e9a944
[ "Apache-2.0" ]
3
2019-06-03T02:17:28.000Z
2021-01-21T09:18:30.000Z
# Generated by the Protocol Buffers compiler. DO NOT EDIT! # source: serving_utils/protos/prediction_service.proto # plugin: grpclib.plugin.main import abc import grpclib.const import grpclib.client import serving_utils.protos.predict_pb2 import serving_utils.protos.prediction_service_pb2 class PredictionServiceBas...
29.358974
83
0.69083
796cb764b839c8b0afcd957979a50737e680ad4e
1,824
py
Python
caffe2/python/mkl/rewrite_graph.py
gautamkmr/caffe2
cde7f21d1e34ec714bc08dbfab945a1ad30e92ff
[ "MIT" ]
null
null
null
caffe2/python/mkl/rewrite_graph.py
gautamkmr/caffe2
cde7f21d1e34ec714bc08dbfab945a1ad30e92ff
[ "MIT" ]
null
null
null
caffe2/python/mkl/rewrite_graph.py
gautamkmr/caffe2
cde7f21d1e34ec714bc08dbfab945a1ad30e92ff
[ "MIT" ]
1
2019-11-11T03:30:00.000Z
2019-11-11T03:30:00.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import copy from caffe2.proto import caffe2_pb2 from caffe2.python import core def rewrite_init_net_simple(net): for op in net.op: op.device_option.device_t...
33.163636
68
0.689693
796cb7ae27bb4129e3f1d19c15b21b4a5530872a
2,657
py
Python
src/utils/helperFunctions.py
shengwubin/SpectralNet
19229f113b1a5b47d34080823c764b86f79e4804
[ "MIT" ]
null
null
null
src/utils/helperFunctions.py
shengwubin/SpectralNet
19229f113b1a5b47d34080823c764b86f79e4804
[ "MIT" ]
null
null
null
src/utils/helperFunctions.py
shengwubin/SpectralNet
19229f113b1a5b47d34080823c764b86f79e4804
[ "MIT" ]
null
null
null
""" Spectral Clustering Demo - Helper Functions ECE 510 python version: Python 3.7.2 Spring 2019 """ import numpy as np import scipy as sp import math from numpy import linalg as lin from sklearn.cluster import KMeans from scipy.spatial.distance import squareform, pdist from scipy.optimize import linear_sum_assignm...
25.796117
92
0.621754
796cb8170acf6d361e2c31714c2f6de41480a25f
13,095
py
Python
ansible/modules/network/nxos/nxos_ntp.py
EnjoyLifeFund/py36pkgs
0ac677fbbfa7b6d8c527fe2c759ba05117b07fd2
[ "MIT", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
ansible/modules/network/nxos/nxos_ntp.py
EnjoyLifeFund/py36pkgs
0ac677fbbfa7b6d8c527fe2c759ba05117b07fd2
[ "MIT", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
ansible/modules/network/nxos/nxos_ntp.py
EnjoyLifeFund/py36pkgs
0ac677fbbfa7b6d8c527fe2c759ba05117b07fd2
[ "MIT", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python # # 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 distribut...
30.595794
91
0.595571
796cb81b4e5832a5d4256b73fba8b2859617da6f
4,592
py
Python
cogs/cheese.py
savisitor15/alphabot
dd8f67f1bc23af870bda0595547199f55976ea7d
[ "MIT" ]
null
null
null
cogs/cheese.py
savisitor15/alphabot
dd8f67f1bc23af870bda0595547199f55976ea7d
[ "MIT" ]
null
null
null
cogs/cheese.py
savisitor15/alphabot
dd8f67f1bc23af870bda0595547199f55976ea7d
[ "MIT" ]
null
null
null
"""This is a cog for a discord.py bot. It drops random cheese for people to pick up """ from collections import defaultdict from datetime import datetime as dt from discord import Activity, Client, DMChannel, Embed, Message from discord.ext import commands import asyncio import json import random class Cheese(command...
38.588235
93
0.603441
796cb8b4f3dafa934799d0852a9b5c24a7febf60
3,811
py
Python
flow/benchmarks/rllib/ars_runner.py
alt113/flow-triangle-scenario
42451365c5760d5b6b7aa2507985652ec7ba9a72
[ "MIT" ]
null
null
null
flow/benchmarks/rllib/ars_runner.py
alt113/flow-triangle-scenario
42451365c5760d5b6b7aa2507985652ec7ba9a72
[ "MIT" ]
null
null
null
flow/benchmarks/rllib/ars_runner.py
alt113/flow-triangle-scenario
42451365c5760d5b6b7aa2507985652ec7ba9a72
[ "MIT" ]
null
null
null
"""Runs the environments located in flow/benchmarks. The environment file can be modified in the imports to change the environment this runner script is executed on. This file runs the ARS algorithm in rllib and utilizes the hyper-parameters specified in: Simple random search provides a competitive approach to reinforc...
30.488
78
0.693519
796cb8dff4d4164f87784005572c5d8ac6a79793
24,682
py
Python
localization_service/venv/lib/python3.5/site-packages/mpl_toolkits/mplot3d/art3d.py
vladbragoi/indoor_localization_system
b98d278cbd6a2ff8dcc093631eed0605e9e3a35f
[ "Apache-2.0" ]
null
null
null
localization_service/venv/lib/python3.5/site-packages/mpl_toolkits/mplot3d/art3d.py
vladbragoi/indoor_localization_system
b98d278cbd6a2ff8dcc093631eed0605e9e3a35f
[ "Apache-2.0" ]
null
null
null
localization_service/venv/lib/python3.5/site-packages/mpl_toolkits/mplot3d/art3d.py
vladbragoi/indoor_localization_system
b98d278cbd6a2ff8dcc093631eed0605e9e3a35f
[ "Apache-2.0" ]
null
null
null
# art3d.py, original mplot3d version by John Porter # Parts rewritten by Reinier Heeres <reinier@heeres.eu> # Minor additions by Ben Axelrod <baxelrod@coroware.com> """ Module containing 3D artist code and functions to convert 2D artists into 3D versions which can be added to an Axes3D. """ import math import numpy ...
31.724936
79
0.595981
796cb98eb002b988d679afdf9862b394493f947a
8,461
py
Python
restcli/app.py
dustinrohde/restcli
ca45cee01aca406b1219a64d03a77eda5c2516e3
[ "Apache-2.0" ]
12
2017-03-13T18:51:48.000Z
2020-05-04T00:22:09.000Z
restcli/app.py
dustinrohde/restcli
ca45cee01aca406b1219a64d03a77eda5c2516e3
[ "Apache-2.0" ]
1
2017-03-16T15:18:14.000Z
2017-03-16T15:18:14.000Z
restcli/app.py
dustinrohde/restcli
ca45cee01aca406b1219a64d03a77eda5c2516e3
[ "Apache-2.0" ]
2
2017-03-16T02:44:49.000Z
2017-07-27T04:54:06.000Z
import json from string import Template from pygments import highlight from pygments.formatters.terminal256 import Terminal256Formatter from pygments.lexers.data import JsonLexer from pygments.lexers.python import Python3Lexer from pygments.lexers.textfmts import HttpLexer from restcli import utils from restcli.excep...
31.337037
79
0.5705
796cba14656eb1ba234fb78bbf4e7d686aa9cf23
548
py
Python
setup.py
Coughman058/instrumentserver
0cd0cec855196a91e5a6f17ec15ff0f00c2a1974
[ "MIT" ]
null
null
null
setup.py
Coughman058/instrumentserver
0cd0cec855196a91e5a6f17ec15ff0f00c2a1974
[ "MIT" ]
null
null
null
setup.py
Coughman058/instrumentserver
0cd0cec855196a91e5a6f17ec15ff0f00c2a1974
[ "MIT" ]
null
null
null
from setuptools import setup setup(name='instrumentserver', version='0.0.1', description='TBD', url='https://github.com/toolsforexperiments/instrumentserver', author='Wolfgang Pfaff', author_email='wolfgangpfff@gmail.com', license='MIT', packages=['instrumentserver'], zi...
34.25
95
0.673358
796cbc0c2c4a8c9b895c2af300cd143613bfd84a
791
py
Python
migrations/versions/361a98f929fb_.py
vipul-sharma20/slack-standup
920abe5e82ba967d264aa49c44dc11a2612a2535
[ "MIT" ]
51
2020-08-16T12:46:01.000Z
2021-09-04T21:38:12.000Z
migrations/versions/361a98f929fb_.py
vipul-sharma20/slack-standup
920abe5e82ba967d264aa49c44dc11a2612a2535
[ "MIT" ]
27
2020-10-26T15:18:20.000Z
2021-09-18T08:31:21.000Z
migrations/versions/361a98f929fb_.py
vipul-sharma20/slack-standup
920abe5e82ba967d264aa49c44dc11a2612a2535
[ "MIT" ]
5
2020-08-18T11:07:04.000Z
2021-09-16T03:29:06.000Z
"""empty message Revision ID: 361a98f929fb Revises: 0294d6131dc3 Create Date: 2021-05-09 13:01:50.371838 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '361a98f929fb' down_revision = '0294d6131dc3' branch_labels = None depends_on = None def upgrade(): # ...
23.969697
82
0.699115
796cbc0fbf3f5266cfbd88bdef596f100242b87b
812
py
Python
tenders_django/manage.py
Salomari1987/med-tenders-egypt
31b5061fe28c56d5e9a8bb4b267148848bfeaf5a
[ "MIT" ]
null
null
null
tenders_django/manage.py
Salomari1987/med-tenders-egypt
31b5061fe28c56d5e9a8bb4b267148848bfeaf5a
[ "MIT" ]
null
null
null
tenders_django/manage.py
Salomari1987/med-tenders-egypt
31b5061fe28c56d5e9a8bb4b267148848bfeaf5a
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "tenders_django.settings") try: from django.core.management import execute_from_command_line except ImportError: # The above import may fail for some other reason. Ensure th...
35.304348
78
0.64532
796cbc234a3eeb3845ad9e535529a89c09b08b11
333
py
Python
LYNews/app01/urls.py
LiaoZhimin/LYNews
49528bd16ea8890f9d9cf2dcdf61e72cb7be0cc1
[ "MIT" ]
null
null
null
LYNews/app01/urls.py
LiaoZhimin/LYNews
49528bd16ea8890f9d9cf2dcdf61e72cb7be0cc1
[ "MIT" ]
null
null
null
LYNews/app01/urls.py
LiaoZhimin/LYNews
49528bd16ea8890f9d9cf2dcdf61e72cb7be0cc1
[ "MIT" ]
null
null
null
from django.urls import path from app01 import views app_name = 'app01' urlpatterns = [ path(r'', views.index, name='index'), path(r'content', views.content, name='content'), path(r'contact', views.contact, name='contact'), path(r'list', views.list, name='list'), ] # html 就可以使用url别名 {% url 'appName:ind...
25.615385
52
0.663664
796cbc2c2b8f2c259329e1bb709ddd20e2d9b8d1
5,911
py
Python
docs/conf.py
ppwwyyxx/taichi
ef0c3367bb06ad78b3457b8f93b5370f14b1d9c4
[ "MIT" ]
1
2020-04-08T08:55:13.000Z
2020-04-08T08:55:13.000Z
docs/conf.py
zf38473013/taichi
ad4d7ae04f4e559e84f6dee4a64ad57c3cf0c7fb
[ "MIT" ]
null
null
null
docs/conf.py
zf38473013/taichi
ad4d7ae04f4e559e84f6dee4a64ad57c3cf0c7fb
[ "MIT" ]
1
2020-05-18T03:35:29.000Z
2020-05-18T03:35:29.000Z
# -*- coding: utf-8 -*- # # Configuration file for the Sphinx documentation builder. # # This file does only contain a selection of the most common options. For a # full list see the documentation: # http://www.sphinx-doc.org/en/stable/config # -- Path setup ------------------------------------------------------------...
32.478022
79
0.646253
796cbc8b5e26fcc511d48d063bf13307e301f67c
6,127
py
Python
crypten/nn/__init__.py
vreis/CrypTen-2
839a751277a901e4edd9166a720fb3a29deac641
[ "MIT" ]
null
null
null
crypten/nn/__init__.py
vreis/CrypTen-2
839a751277a901e4edd9166a720fb3a29deac641
[ "MIT" ]
null
null
null
crypten/nn/__init__.py
vreis/CrypTen-2
839a751277a901e4edd9166a720fb3a29deac641
[ "MIT" ]
1
2021-11-30T06:01:31.000Z
2021-11-30T06:01:31.000Z
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import io import onnx import torch import torch.onnx.utils from onnx import numpy_helper from .loss import BCELoss, ...
25.852321
86
0.645504
796cbe118d777c8566f42f4d27bdc90c8ed10c36
32
py
Python
verifyapp/core.py
Geeks-Trident-LLC/verifyutil
3b4adac16732d3a9aac1311ac1951bf4b0ac003d
[ "BSD-3-Clause" ]
null
null
null
verifyapp/core.py
Geeks-Trident-LLC/verifyutil
3b4adac16732d3a9aac1311ac1951bf4b0ac003d
[ "BSD-3-Clause" ]
null
null
null
verifyapp/core.py
Geeks-Trident-LLC/verifyutil
3b4adac16732d3a9aac1311ac1951bf4b0ac003d
[ "BSD-3-Clause" ]
null
null
null
class VerifyBuilder: pass
6.4
20
0.6875
796cbe8080fcbae2cf41ffb07f57898e4d8051e0
298
py
Python
tests/test_utils_db.py
asobrien/carlae
629105333eb978d0cafe8c183bf6ae6c91e490b9
[ "MIT" ]
null
null
null
tests/test_utils_db.py
asobrien/carlae
629105333eb978d0cafe8c183bf6ae6c91e490b9
[ "MIT" ]
null
null
null
tests/test_utils_db.py
asobrien/carlae
629105333eb978d0cafe8c183bf6ae6c91e490b9
[ "MIT" ]
null
null
null
# !/usr/bin/env python # -*- coding: utf-8 -*- __author__ = 'aobrien' from carlae.utils import db def test_create_user(): # Add the user email = "user2@example.com" password = "1234567890" db.create_user(email, password) user = db.User(email) assert user.email == email
18.625
35
0.647651
796cc04744b6d228aa1501b8857ccecac1a0503b
94
py
Python
src/raw_cols.py
kbenya/dataset_test_bence
6fd6015300bccd7a1a87b7b0356ea07da924136b
[ "MIT" ]
null
null
null
src/raw_cols.py
kbenya/dataset_test_bence
6fd6015300bccd7a1a87b7b0356ea07da924136b
[ "MIT" ]
null
null
null
src/raw_cols.py
kbenya/dataset_test_bence
6fd6015300bccd7a1a87b7b0356ea07da924136b
[ "MIT" ]
null
null
null
from colassigner import ColAccessor class CommonCols(ColAccessor): obj_id = "object_id"
15.666667
35
0.776596
796cc0e2316ff4481da498779067bcc1ceb487b4
4,901
py
Python
nipyapi/nifi/models/node_event_dto.py
esecules/nipyapi
e8a53b79a5e1a6b29446f43d2b23b6a3e60873f1
[ "Apache-2.0" ]
null
null
null
nipyapi/nifi/models/node_event_dto.py
esecules/nipyapi
e8a53b79a5e1a6b29446f43d2b23b6a3e60873f1
[ "Apache-2.0" ]
null
null
null
nipyapi/nifi/models/node_event_dto.py
esecules/nipyapi
e8a53b79a5e1a6b29446f43d2b23b6a3e60873f1
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ NiFi Rest Api The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, ...
26.928571
479
0.548459
796cc13b7e1e86f0bf4e89affa6a54b13f20e6e0
740
py
Python
config/views.py
NumanIbnMazid/django_starter
78ef3f30fe920db3ca8eb92691b58bf85c0ee54b
[ "MIT" ]
1
2022-01-10T16:26:14.000Z
2022-01-10T16:26:14.000Z
config/views.py
NumanIbnMazid/django_starter
78ef3f30fe920db3ca8eb92691b58bf85c0ee54b
[ "MIT" ]
null
null
null
config/views.py
NumanIbnMazid/django_starter
78ef3f30fe920db3ca8eb92691b58bf85c0ee54b
[ "MIT" ]
null
null
null
from django.views.generic import View from django.shortcuts import render class HomeView(View): def get(self, request, *args, **kwargs): context = self.get_context_data(**kwargs) return render(request, "pages/index.html", context=context) def get_context_data(self, **kwargs): context ...
38.947368
112
0.674324
796cc17784793305ccce8d761266d55b3763f1ac
807
py
Python
blender/arm/logicnode/rp_msaa.py
Sanva/armory
61b2d008e3b73bd978966b3209b646d162923e18
[ "Zlib" ]
null
null
null
blender/arm/logicnode/rp_msaa.py
Sanva/armory
61b2d008e3b73bd978966b3209b646d162923e18
[ "Zlib" ]
null
null
null
blender/arm/logicnode/rp_msaa.py
Sanva/armory
61b2d008e3b73bd978966b3209b646d162923e18
[ "Zlib" ]
null
null
null
import bpy from bpy.props import * from bpy.types import Node, NodeSocket from arm.logicnode.arm_nodes import * class RpMSAANode(Node, ArmLogicTreeNode): '''Configure multi-sample anti-aliasing node''' bl_idname = 'LNRpMSAANode' bl_label = 'Rp MSAA' bl_icon = 'NONE' property0: EnumProperty( ...
28.821429
54
0.547708
796cc23026419020372f65b79dca234eb6e834bc
20,548
py
Python
sympy/physics/vector/tests/test_functions.py
V1krant/sympy
f8e7019feded4e4d0852f49fe0ccfa777f0e8744
[ "BSD-3-Clause" ]
1
2020-01-15T17:04:02.000Z
2020-01-15T17:04:02.000Z
sympy/physics/vector/tests/test_functions.py
V1krant/sympy
f8e7019feded4e4d0852f49fe0ccfa777f0e8744
[ "BSD-3-Clause" ]
null
null
null
sympy/physics/vector/tests/test_functions.py
V1krant/sympy
f8e7019feded4e4d0852f49fe0ccfa777f0e8744
[ "BSD-3-Clause" ]
null
null
null
from sympy import S, Integral, sin, cos, pi, sqrt, symbols from sympy.physics.vector import Dyadic, Point, ReferenceFrame, Vector from sympy.physics.vector.functions import (cross, dot, express, time_derivative, kinematic_equations,...
40.769841
104
0.540491
796cc52ec9f240d333f1ec6c44d7003a29a98838
1,028
py
Python
setup.py
gnutix/taxi
3abad480bbc07a0ac1c47c16ee0989227234505b
[ "WTFPL" ]
null
null
null
setup.py
gnutix/taxi
3abad480bbc07a0ac1c47c16ee0989227234505b
[ "WTFPL" ]
null
null
null
setup.py
gnutix/taxi
3abad480bbc07a0ac1c47c16ee0989227234505b
[ "WTFPL" ]
null
null
null
#!/usr/bin/env python from setuptools import find_packages, setup from taxi import __version__ install_requires = [ 'click>=3.3', 'appdirs>=1.4.0', ] setup( name='taxi', version=__version__, packages=find_packages(exclude=('tests', 'tests.*')), description='Taxi: timesheeting made easy', ...
26.358974
68
0.627432
796cc80ebe982d47044741c5c3300f14f2f6f7c7
8,775
py
Python
Advanced-Data-Engineering-with-Databricks/Solutions/00 - Getting Started - Agenda.py
co360/advanced-data-engineering-with-databricks
bee17c18f3b98e3bca7129b2062ee28705aae866
[ "CC0-1.0" ]
11
2022-01-17T07:54:49.000Z
2022-03-28T06:31:44.000Z
Advanced-Data-Engineering-with-Databricks/Solutions/00 - Getting Started - Agenda.py
co360/advanced-data-engineering-with-databricks
bee17c18f3b98e3bca7129b2062ee28705aae866
[ "CC0-1.0" ]
1
2021-10-29T22:41:15.000Z
2021-10-29T22:41:15.000Z
Advanced-Data-Engineering-with-Databricks/Solutions/00 - Getting Started - Agenda.py
co360/advanced-data-engineering-with-databricks
bee17c18f3b98e3bca7129b2062ee28705aae866
[ "CC0-1.0" ]
5
2022-01-24T16:09:19.000Z
2022-03-23T17:12:49.000Z
# Databricks notebook source # MAGIC %md-sandbox # MAGIC # MAGIC <div style="text-align: center; line-height: 0; padding-top: 9px;"> # MAGIC <img src="https://databricks.com/wp-content/uploads/2018/03/db-academy-rgb-1200px.png" alt="Databricks Learning" style="width: 600px"> # MAGIC </div> # COMMAND ---------- # M...
52.232143
192
0.706211
796cc85d9b30c866f1376eebe2126202ed1f6c82
1,253
py
Python
code/digital_root_sums_of_factorisations/sol_159.py
bhavinjawade/project-euler-solutions
56bf6a282730ed4b9b875fa081cf4509d9939d98
[ "Apache-2.0" ]
2
2020-07-16T08:16:32.000Z
2020-10-01T07:16:48.000Z
code/digital_root_sums_of_factorisations/sol_159.py
Psingh12354/project-euler-solutions
56bf6a282730ed4b9b875fa081cf4509d9939d98
[ "Apache-2.0" ]
null
null
null
code/digital_root_sums_of_factorisations/sol_159.py
Psingh12354/project-euler-solutions
56bf6a282730ed4b9b875fa081cf4509d9939d98
[ "Apache-2.0" ]
1
2021-05-07T18:06:08.000Z
2021-05-07T18:06:08.000Z
# -*- coding: utf-8 -*- ''' File name: code\digital_root_sums_of_factorisations\sol_159.py Author: Vaidic Joshi Date created: Oct 20, 2018 Python Version: 3.x ''' # Solution to Project Euler Problem #159 :: Digital root sums of factorisations # # For more information see: # https://projecteuler.net/p...
25.06
109
0.730247
796cc8ff35bf6db17bedd3e26670cfec170eb8db
769
py
Python
demo/scripts/scratch.py
fuse-energy/DockerizedMDSplus
2420fbb7543a93075194da7feb66eefb48637784
[ "MIT" ]
null
null
null
demo/scripts/scratch.py
fuse-energy/DockerizedMDSplus
2420fbb7543a93075194da7feb66eefb48637784
[ "MIT" ]
null
null
null
demo/scripts/scratch.py
fuse-energy/DockerizedMDSplus
2420fbb7543a93075194da7feb66eefb48637784
[ "MIT" ]
null
null
null
# %% import MDSplus as mds # # %% # demo = mds.Tree("demo", -1) # # %% # # %% # import MDSplus.magic # # %% # %tcl set verify # # %% # mds.mdsdcl.tcl("set verify") # %% shot_commands = [ "set verify", "set tree demo", "set current demo /increment", "create pulse 0", "set tree demo /shot=0", "...
17.477273
45
0.576073
796cc902819d3e5e6c915d3bd17837d49fa13502
10,338
py
Python
concourse/model/resources.py
jia-jerry/cc-utils
01322d2acb7343c92138dcf0b6ac913b276525bc
[ "Apache-2.0" ]
null
null
null
concourse/model/resources.py
jia-jerry/cc-utils
01322d2acb7343c92138dcf0b6ac913b276525bc
[ "Apache-2.0" ]
null
null
null
concourse/model/resources.py
jia-jerry/cc-utils
01322d2acb7343c92138dcf0b6ac913b276525bc
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2019 SAP SE or an SAP affiliate company. All rights reserved. This file is licensed # under the Apache Software License, v. 2 except as noted otherwise in the LICENSE file # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the Licens...
29.286119
99
0.618592
796cca5db90312e1e953bd2013dfc17864cbb232
3,449
py
Python
src/grid_strategy/_abc.py
BrianPugh/grid-strategy
1364397a80e5d6635c27629c139e73b003f05cd7
[ "Apache-2.0" ]
27
2019-02-23T21:33:35.000Z
2021-09-23T18:34:11.000Z
src/grid_strategy/_abc.py
BrianPugh/grid-strategy
1364397a80e5d6635c27629c139e73b003f05cd7
[ "Apache-2.0" ]
31
2019-02-23T19:59:55.000Z
2020-09-18T18:20:08.000Z
src/grid_strategy/_abc.py
BrianPugh/grid-strategy
1364397a80e5d6635c27629c139e73b003f05cd7
[ "Apache-2.0" ]
11
2019-02-23T20:25:06.000Z
2022-01-14T11:07:24.000Z
"""Proof of concept code for MEP 30: Automatic subplot management.""" import itertools as it from abc import ABCMeta, abstractmethod from matplotlib import gridspec import matplotlib.pyplot as plt import numpy as np class GridStrategy(metaclass=ABCMeta): """ Static class used to compute grid arrangements gi...
34.49
85
0.601624
796ccab3836a2875d865a19cb593e161b811f092
4,060
py
Python
sciunit/unit_test/model_tests.py
sbastiaens/sciunit
09a68f128b25aba29fe063346b8b8559413f41a4
[ "MIT" ]
null
null
null
sciunit/unit_test/model_tests.py
sbastiaens/sciunit
09a68f128b25aba29fe063346b8b8559413f41a4
[ "MIT" ]
null
null
null
sciunit/unit_test/model_tests.py
sbastiaens/sciunit
09a68f128b25aba29fe063346b8b8559413f41a4
[ "MIT" ]
null
null
null
"""Unit tests for models and capabilities""" import unittest class ModelsTestCase(unittest.TestCase): """Unit tests for the sciunit module""" def setUp(self): from sciunit.models.examples import UniformModel self.M = UniformModel def test_get_model_state(self): from sciunit impor...
31.71875
96
0.634729
796ccbf9584dc37a064015fe817c58c14a36ce3c
1,117
py
Python
mlp.py
dasayan05/vanilla-GAN
c48b7defa498d7c73276365d1fa946d2f4b88ffb
[ "MIT" ]
null
null
null
mlp.py
dasayan05/vanilla-GAN
c48b7defa498d7c73276365d1fa946d2f4b88ffb
[ "MIT" ]
null
null
null
mlp.py
dasayan05/vanilla-GAN
c48b7defa498d7c73276365d1fa946d2f4b88ffb
[ "MIT" ]
null
null
null
import torch.nn as nn import torch.nn.functional as F class MLP(nn.Module): # generalized MLP class for both # generator and discriminator nets def __init__(self, ip_size, units, activations=[], bn=True): # constructor super().__init__() # track the parameters self.units =...
30.189189
86
0.542525
796ccc53d16a556764930a1d7874978604f7c2ac
1,491
py
Python
src/lambda_function/function.py
QuiNovas/s3-bucket-replicator
4b65e2549c19b72acff0038f8514deccdf212140
[ "Apache-2.0" ]
1
2021-05-15T14:33:59.000Z
2021-05-15T14:33:59.000Z
src/lambda_function/function.py
QuiNovas/s3-bucket-replicator
4b65e2549c19b72acff0038f8514deccdf212140
[ "Apache-2.0" ]
null
null
null
src/lambda_function/function.py
QuiNovas/s3-bucket-replicator
4b65e2549c19b72acff0038f8514deccdf212140
[ "Apache-2.0" ]
null
null
null
import boto3 import logging import os import urllib.parse from botocore.client import Config from multiprocessing.pool import ThreadPool S3 = boto3.resource('s3', config=Config(signature_version='s3v4')) DESTINATION_BUCKETS = [S3.Bucket(x) for x in os.environ['DESTINATION_BUCKETS'].split(',')] logger = logging.getL...
24.048387
90
0.63112
796cccb2c035c06cdd2be0c88986da3231c027ed
510
py
Python
examples/basic_example.py
chinmay3/NiaPy
b4e5c0f98063e2a9eebd8d750f0922cfca88bc55
[ "MIT" ]
202
2018-02-06T12:13:42.000Z
2022-03-18T16:33:20.000Z
examples/basic_example.py
chinmay3/NiaPy
b4e5c0f98063e2a9eebd8d750f0922cfca88bc55
[ "MIT" ]
262
2018-02-06T14:49:15.000Z
2022-03-25T19:49:46.000Z
examples/basic_example.py
chinmay3/NiaPy
b4e5c0f98063e2a9eebd8d750f0922cfca88bc55
[ "MIT" ]
136
2018-02-06T16:55:32.000Z
2022-03-05T17:49:52.000Z
# This is temporary fix to import module from parent folder # It will be removed when package is published on PyPI import sys sys.path.append('../') # End of fix from niapy.algorithms.basic import GreyWolfOptimizer from niapy.task import Task # we will run 10 repetitions of Grey Wolf Optimizer against Pinter problem...
30
74
0.75098
796cccccb9d3fd79bf71e58c3c8885c7c57f1054
643
py
Python
setup.py
SiKreuz/SZ2pdf
94ce7c2e101a034464688b5c18874575627248f8
[ "MIT" ]
1
2020-05-18T17:00:17.000Z
2020-05-18T17:00:17.000Z
setup.py
SiKreuz/SZ2pdf
94ce7c2e101a034464688b5c18874575627248f8
[ "MIT" ]
null
null
null
setup.py
SiKreuz/SZ2pdf
94ce7c2e101a034464688b5c18874575627248f8
[ "MIT" ]
null
null
null
from setuptools import setup APP_NAME = 'SZ2pdf' setup( name=APP_NAME, version='0.2.0', py_modules=['SZ2pdf', 'conf_utils', 'output_utils'], url='https://github.com/SiKreuz/SZ2pdf', license='MIT', author='Simon Kreuzer', author_email='mail@monsi.org', description='This tool downloads t...
23.814815
116
0.612753
796ccd59d26978d7addc442e5be4373a241b5430
641
py
Python
pps/demos/demo_named_tuples.py
GustavePate/perfectpythonbatch
f9d5e2492939ec67b59e35a468b8ac9ba55b21c1
[ "MIT" ]
5
2015-06-25T03:10:03.000Z
2017-02-08T13:17:32.000Z
pps/demos/demo_named_tuples.py
GustavePate/perfect_python_script
f9d5e2492939ec67b59e35a468b8ac9ba55b21c1
[ "MIT" ]
null
null
null
pps/demos/demo_named_tuples.py
GustavePate/perfect_python_script
f9d5e2492939ec67b59e35a468b8ac9ba55b21c1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from collections import namedtuple import logging logger = logging.getLogger(__name__) def demo(): res = False try: logger.info("****** Named tuples demo *******") Point = namedtuple('Point', 'x, y') i = Point(1, 2) ...
16.868421
55
0.539782
796ccd90a8ac8e692890beaad3a4da0610ef258f
390
py
Python
yuncai/yuncai/wsgi.py
wwfyde/YunCai-mall
36d8608ae8a7bdcee23cd700e9f7ffb26c9febb9
[ "MIT" ]
null
null
null
yuncai/yuncai/wsgi.py
wwfyde/YunCai-mall
36d8608ae8a7bdcee23cd700e9f7ffb26c9febb9
[ "MIT" ]
null
null
null
yuncai/yuncai/wsgi.py
wwfyde/YunCai-mall
36d8608ae8a7bdcee23cd700e9f7ffb26c9febb9
[ "MIT" ]
null
null
null
""" WSGI config for yuncai project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_SETTI...
22.941176
78
0.784615
796ccdc4a28899531211b134135ca81d58ce93d3
774
py
Python
excelProjectApp.py
broach44/beginning-python
54fb51ce666e263e7a76c37bb39cb6df636886ca
[ "MIT" ]
null
null
null
excelProjectApp.py
broach44/beginning-python
54fb51ce666e263e7a76c37bb39cb6df636886ca
[ "MIT" ]
null
null
null
excelProjectApp.py
broach44/beginning-python
54fb51ce666e263e7a76c37bb39cb6df636886ca
[ "MIT" ]
null
null
null
import openpyxl as xl from openpyxl.chart import BarChart, Reference def process_workbook(filename): wb = xl.load_workbook(filename) sheet = wb['Sheet1'] # cell = sheet['a1'] # cell1 = sheet.cell(1, 1) # print(cell.value) # print(cell1.value) # print(sheet.max_row) for row in rang...
22.764706
52
0.605943
796cce32e22272ac080ac3159c71df40aba8d1b7
1,709
py
Python
app/core/migrations/0001_initial.py
terezaconst/recipe-app-api
2c03ac0b800846fafc694d9591ee6977d5c996a9
[ "MIT" ]
null
null
null
app/core/migrations/0001_initial.py
terezaconst/recipe-app-api
2c03ac0b800846fafc694d9591ee6977d5c996a9
[ "MIT" ]
null
null
null
app/core/migrations/0001_initial.py
terezaconst/recipe-app-api
2c03ac0b800846fafc694d9591ee6977d5c996a9
[ "MIT" ]
null
null
null
# Generated by Django 3.1.1 on 2020-10-01 10:57 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0012_alter_user_first_name_max_length'), ] operations = [ migrations.CreateModel( name='User', ...
50.264706
266
0.63897
796cceb60aabf16890e9749e9a15929bca479470
48,288
py
Python
snakebite/protobuf/datatransfer_pb2.py
monoid/snakebite-py3
d6c81b6a484da4bcd49651154f75c8951bf14d67
[ "Apache-2.0" ]
20
2019-07-03T18:42:43.000Z
2022-01-27T17:28:57.000Z
snakebite/protobuf/datatransfer_pb2.py
monoid/snakebite-py3
d6c81b6a484da4bcd49651154f75c8951bf14d67
[ "Apache-2.0" ]
10
2019-09-25T00:04:05.000Z
2021-07-21T19:12:47.000Z
snakebite/protobuf/datatransfer_pb2.py
monoid/snakebite-py3
d6c81b6a484da4bcd49651154f75c8951bf14d67
[ "Apache-2.0" ]
18
2019-04-24T17:02:59.000Z
2021-09-17T07:28:53.000Z
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: datatransfer.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import message ...
39.97351
5,135
0.757372
796ccf635c66a4d5941c1f63ce7f9825748fd62b
2,230
py
Python
clientLogic/commands.py
JoelEager/pyTanks.Player
a35a653e9df2416c63204aba87a95f33e6815b63
[ "MIT" ]
2
2017-03-09T15:32:55.000Z
2017-09-04T11:25:41.000Z
clientLogic/commands.py
JoelEager/pyTanks.Player
a35a653e9df2416c63204aba87a95f33e6815b63
[ "MIT" ]
null
null
null
clientLogic/commands.py
JoelEager/pyTanks.Player
a35a653e9df2416c63204aba87a95f33e6815b63
[ "MIT" ]
4
2017-05-16T15:10:09.000Z
2017-07-06T15:24:50.000Z
""" Provides functions for generating commands for the player's tank and appending them to the outgoing queue """ import json import config from . import clientData def __appendCommand(name, arg=None): """ Creates a JSON string for a given command and appends it to the outgoing queue """ command = di...
35.396825
118
0.710762
796ccfc2769d19f11cad02bc51d813829e5a239d
243
py
Python
Keywords/fromimport.py
GowthamPrasad/py_thon
302a21fcfd553bb59c0084860100efee5e2dca0e
[ "MIT" ]
null
null
null
Keywords/fromimport.py
GowthamPrasad/py_thon
302a21fcfd553bb59c0084860100efee5e2dca0e
[ "MIT" ]
null
null
null
Keywords/fromimport.py
GowthamPrasad/py_thon
302a21fcfd553bb59c0084860100efee5e2dca0e
[ "MIT" ]
null
null
null
#import is used to import modules to work with that import math radius=5 area = 2*math.pi*radius print(area) #from is used to import just a specific method from the module from math import pi radius=10 area = 2*pi*radius print(area)
22.090909
63
0.740741
796cd09d662e991dafc62d21f6138065aaaefeb5
5,282
py
Python
test/test_args.py
alcortesm/allbase
8523c69f68f81e74bd45754665280cfdbac10728
[ "MIT" ]
null
null
null
test/test_args.py
alcortesm/allbase
8523c69f68f81e74bd45754665280cfdbac10728
[ "MIT" ]
3
2016-06-21T08:19:44.000Z
2016-06-21T10:06:07.000Z
test/test_args.py
alcortesm/allbase
8523c69f68f81e74bd45754665280cfdbac10728
[ "MIT" ]
null
null
null
import unittest import allbase.args as args from collections import namedtuple import allbase.base as base class TestArgs(unittest.TestCase): def test_parse(self): fix = namedtuple('fix', 'input nums bases valid reason') tests = [ fix( input=[], nums=N...
31.819277
75
0.368989
796cd0c68fe6a0dbc1f421693ec741064e21b574
303
py
Python
rolardados.py
Taberna-da-Maca-Envenenada/Gerador-CoC7-para-VTT-Roll20
7c7b56dbd90b22061cd988ba92aa6ce6f0cf3f36
[ "CC0-1.0" ]
null
null
null
rolardados.py
Taberna-da-Maca-Envenenada/Gerador-CoC7-para-VTT-Roll20
7c7b56dbd90b22061cd988ba92aa6ce6f0cf3f36
[ "CC0-1.0" ]
null
null
null
rolardados.py
Taberna-da-Maca-Envenenada/Gerador-CoC7-para-VTT-Roll20
7c7b56dbd90b22061cd988ba92aa6ce6f0cf3f36
[ "CC0-1.0" ]
null
null
null
### BIBLIOTECAS import random import time random.seed(time.time()) ### LEGENDA #n = numero de dados #dado = numero de faces que tem no dado #s = soma dos resultados ### FUNÇÕES def soma(n, dado): s = 0 for i in range(n): s = s + random.randrange(1, dado) return(s)
17.823529
42
0.59736
796cd15f4091d4f6fe54827d962e880b3c7f20f8
262
py
Python
PythonExercicios/ex083.py
raulgranja/Python-Course
eaf776ab144923266a4784586f6bdf21911a5235
[ "MIT" ]
null
null
null
PythonExercicios/ex083.py
raulgranja/Python-Course
eaf776ab144923266a4784586f6bdf21911a5235
[ "MIT" ]
null
null
null
PythonExercicios/ex083.py
raulgranja/Python-Course
eaf776ab144923266a4784586f6bdf21911a5235
[ "MIT" ]
null
null
null
e = str(input('Digite a expressão: ')) L = list() for carac in e: if carac in '()': L.append(carac) if L[0] == ')' or L.count('(') != L.count(')') or L[-1] == '(': print('Sua expressão está errada!') else: print('Sua expressão está válida!')
26.2
63
0.541985
796cd35d3662d6eb667aa8097258bef896420d57
291
py
Python
Ex046.py
devwill77/Python
585d6197ab561c9c8813fa87682b3ff4f141319e
[ "MIT" ]
null
null
null
Ex046.py
devwill77/Python
585d6197ab561c9c8813fa87682b3ff4f141319e
[ "MIT" ]
null
null
null
Ex046.py
devwill77/Python
585d6197ab561c9c8813fa87682b3ff4f141319e
[ "MIT" ]
null
null
null
''' - DESAFIO 046 - Faça um programa que mostre na tela uma contagem regressiva para o estouro de fogos de artifício indo de 10 até 0 com uma pausa de 1 segundo entre eles. ''' from time import sleep for c in range(10, 0 - 1, -1): sleep(1) print(c) print('BUM BUM POOOW!!!')
20.785714
99
0.670103
796cd3c784f9721223b02eac722bb743b4713c1b
2,263
py
Python
moderngl_window/context/pyqt5/keys.py
DavideRuzza/moderngl-window
e9debc6ed4a1899aa83c0da2320e03b0c2922b80
[ "MIT" ]
142
2019-11-11T23:14:28.000Z
2022-03-29T08:37:03.000Z
moderngl_window/context/pyqt5/keys.py
DavideRuzza/moderngl-window
e9debc6ed4a1899aa83c0da2320e03b0c2922b80
[ "MIT" ]
107
2019-10-31T20:31:45.000Z
2022-03-23T15:01:41.000Z
moderngl_window/context/pyqt5/keys.py
DavideRuzza/moderngl-window
e9debc6ed4a1899aa83c0da2320e03b0c2922b80
[ "MIT" ]
36
2019-12-12T16:14:10.000Z
2022-01-18T22:58:21.000Z
# flake8: noqa E741 from PyQt5.QtCore import Qt from moderngl_window.context.base import BaseKeys class Keys(BaseKeys): """ Namespace mapping pyqt specific key constants """ ESCAPE = Qt.Key_Escape SPACE = Qt.Key_Space ENTER = Qt.Key_Return # ENTER = Qt.Key_Enter #This is nu...
22.186275
79
0.584622
796cd4a1790efef4bfb6138f9a882168b84ddeee
6,441
py
Python
DQMOffline/Trigger/python/HiggsMonitoring_cfi.py
gmilella12/cmssw
552eccf3d912d00ac0954b1b9e96bfaf043a91ae
[ "Apache-2.0" ]
null
null
null
DQMOffline/Trigger/python/HiggsMonitoring_cfi.py
gmilella12/cmssw
552eccf3d912d00ac0954b1b9e96bfaf043a91ae
[ "Apache-2.0" ]
null
null
null
DQMOffline/Trigger/python/HiggsMonitoring_cfi.py
gmilella12/cmssw
552eccf3d912d00ac0954b1b9e96bfaf043a91ae
[ "Apache-2.0" ]
1
2022-02-27T06:12:26.000Z
2022-02-27T06:12:26.000Z
import FWCore.ParameterSet.Config as cms from DQMOffline.Trigger.topMonitoring_cfi import topMonitoring hltHIGmonitoring = topMonitoring.clone() #hltHIGmonitoring.FolderName = cms.string('HLT/Higgs/default/') hltHIGmonitoring.FolderName = cms.string('HLT/HIG/default/') hltHIGmonitoring.histoPSet.lsPSet = cms.PSet( ...
49.546154
283
0.700357
796cd4c8d6db5cdf33562d5db54fcc58f7721084
2,159
py
Python
django_gearman_proxy/tests/serializers/sms/test_json.py
CodeScaleInc/django-gearman-proxy
0b62e3d869388d7beb9f1ad634c9cbf48e7859a3
[ "BSD-3-Clause" ]
null
null
null
django_gearman_proxy/tests/serializers/sms/test_json.py
CodeScaleInc/django-gearman-proxy
0b62e3d869388d7beb9f1ad634c9cbf48e7859a3
[ "BSD-3-Clause" ]
null
null
null
django_gearman_proxy/tests/serializers/sms/test_json.py
CodeScaleInc/django-gearman-proxy
0b62e3d869388d7beb9f1ad634c9cbf48e7859a3
[ "BSD-3-Clause" ]
1
2019-06-29T11:27:21.000Z
2019-06-29T11:27:21.000Z
import json import unittest from sendsms.message import SmsMessage import django_gearman_proxy.settings django_gearman_proxy.settings.GEARMAN_SMS_BACKEND = 'sendsms.backends.smssluzbacz.SmsBackend' django_gearman_proxy.settings.GEARMAN_SMS_SERIALIZER = 'django_gearman_proxy.serializers.sms.json.serialize' django_gear...
46.934783
112
0.732747
796cd4ca94f22c66650647b3b3d5bb9e1e0b0831
359
py
Python
bsp/ch582/pikascript/main.py
GorgonMeducer/pikascript
fefe9afb17d14c1a3bbe75c4c6a83d65831f451e
[ "MIT" ]
null
null
null
bsp/ch582/pikascript/main.py
GorgonMeducer/pikascript
fefe9afb17d14c1a3bbe75c4c6a83d65831f451e
[ "MIT" ]
null
null
null
bsp/ch582/pikascript/main.py
GorgonMeducer/pikascript
fefe9afb17d14c1a3bbe75c4c6a83d65831f451e
[ "MIT" ]
null
null
null
import PikaStdLib import CH582 io1 = CH582.GPIO() time = CH582.Time() io1.init() io1.setPin('PB8') io1.setMode('out') io1.enable() io1.low() print('hello PikaScript!') mem = PikaStdLib.MemChecker() print('mem used max:') mem.max() while True: io1.low() print("low") time.sleep_ms(1000) io1.high() ...
14.36
29
0.651811
796cd51eefea9cb291d6ed21409cb72074186ca4
130
py
Python
src/loop.py
MUST-AI-Lab/Deep-SVDD
0eb58a5b89e2fb3a50604b0e67cce8ad2629fbad
[ "MIT" ]
1
2020-06-12T17:50:42.000Z
2020-06-12T17:50:42.000Z
src/loop.py
MUST-AI-Lab/Deep-SVDD
0eb58a5b89e2fb3a50604b0e67cce8ad2629fbad
[ "MIT" ]
5
2021-03-19T10:50:10.000Z
2022-03-12T00:15:11.000Z
src/loop.py
MUST-AI-Lab/Deep-SVDD
0eb58a5b89e2fb3a50604b0e67cce8ad2629fbad
[ "MIT" ]
null
null
null
n_epochs = 0 for i in range(1000): n_epochs += 1 if n_epochs % 100 == 0: print('../log/mnist_test/100_AUC.txt')
16.25
46
0.576923
796cd578e2c94a7acc3a3a467dc846cea9c163c7
1,745
py
Python
bot/core/stratP.py
psemdel/py-trading-bot
69da4164b3f6a3ed3e6dc81d5aefc0273b4cb019
[ "MIT" ]
null
null
null
bot/core/stratP.py
psemdel/py-trading-bot
69da4164b3f6a3ed3e6dc81d5aefc0273b4cb019
[ "MIT" ]
1
2022-02-07T21:13:55.000Z
2022-02-07T21:13:55.000Z
bot/core/stratP.py
psemdel/py-trading-bot
69da4164b3f6a3ed3e6dc81d5aefc0273b4cb019
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Tue May 31 20:23:44 2022 @author: maxime """ #!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sat May 14 22:36:16 2022 @author: maxime """ from orders.models import retrieve_data import core.indicators as ic from core.strat import Strat ###...
27.265625
88
0.595989
796cd58e146a05794a16283eb23020748bb1d328
3,392
py
Python
chapter-6/app/app_template/actions.py
PacktPublishing/Real-time-Django
07480a089fc0880d752d4ee5740ae6587de93aee
[ "MIT" ]
null
null
null
chapter-6/app/app_template/actions.py
PacktPublishing/Real-time-Django
07480a089fc0880d752d4ee5740ae6587de93aee
[ "MIT" ]
null
null
null
chapter-6/app/app_template/actions.py
PacktPublishing/Real-time-Django
07480a089fc0880d752d4ee5740ae6587de93aee
[ "MIT" ]
null
null
null
from .forms import LoginForm, SignupForm from asgiref.sync import async_to_sync from django.template.loader import render_to_string from django.urls import reverse from channels.auth import login, logout from django.contrib.auth.models import User from django.contrib.auth import authenticate from datetime import dateti...
31.407407
172
0.602594
796cd67351ecc533ef606386e09b5e4fcad424a1
18,295
py
Python
acestream/ACEStream/WebUI/WebUI.py
GrandPaRPi/p2ptv-pi
6f79c00f9055a3763ddfe1dc41e14d2cb533f4c3
[ "MIT" ]
null
null
null
acestream/ACEStream/WebUI/WebUI.py
GrandPaRPi/p2ptv-pi
6f79c00f9055a3763ddfe1dc41e14d2cb533f4c3
[ "MIT" ]
null
null
null
acestream/ACEStream/WebUI/WebUI.py
GrandPaRPi/p2ptv-pi
6f79c00f9055a3763ddfe1dc41e14d2cb533f4c3
[ "MIT" ]
2
2018-04-17T17:34:39.000Z
2020-07-26T03:43:33.000Z
#Embedded file name: ACEStream\WebUI\WebUI.pyo import sys, os import time import random import urllib import urlparse import cgi import binascii import copy from cStringIO import StringIO from traceback import print_exc, print_stack from threading import RLock, Condition from base64 import encodestring try: import ...
39.685466
125
0.495545
796cd8338adbb5a75d316caec4c611905f098603
11,316
py
Python
datahub/core/validators/rules_based.py
alixedi/data-hub-api-cd-poc
a5e5ea45bb496c0d2a06635864514af0c7d4291a
[ "MIT" ]
null
null
null
datahub/core/validators/rules_based.py
alixedi/data-hub-api-cd-poc
a5e5ea45bb496c0d2a06635864514af0c7d4291a
[ "MIT" ]
null
null
null
datahub/core/validators/rules_based.py
alixedi/data-hub-api-cd-poc
a5e5ea45bb496c0d2a06635864514af0c7d4291a
[ "MIT" ]
null
null
null
from abc import ABC, abstractmethod from collections import namedtuple from functools import partial from operator import contains, eq from typing import Any, Callable, Iterable, Sequence from rest_framework import serializers from rest_framework.settings import api_settings from datahub.core.validate_utils import Da...
29.623037
97
0.620537
796cd951fcca0870ad68c587ad5dae7255dfba73
3,275
py
Python
setup.py
Nobledez/modlunky2
34052d963bdc2f7aeeea38a75c72afb0ccd6a24c
[ "Apache-2.0" ]
null
null
null
setup.py
Nobledez/modlunky2
34052d963bdc2f7aeeea38a75c72afb0ccd6a24c
[ "Apache-2.0" ]
null
null
null
setup.py
Nobledez/modlunky2
34052d963bdc2f7aeeea38a75c72afb0ccd6a24c
[ "Apache-2.0" ]
null
null
null
import pathlib from urllib.parse import urlparse, parse_qs from setuptools import find_packages, setup HERE = pathlib.Path(__file__).parent.resolve() LONG_DESCRIPTION = (HERE / "README.md").read_text(encoding="utf-8") VERSION = (HERE / "src/modlunky2/VERSION").read_text(encoding="utf-8").strip() def get_install_req...
38.988095
78
0.659847
796cd9dfedf828d2b2a9c89eee3a56252921d774
3,155
py
Python
letsagree/tests/test_middleware.py
raratiru/django-letsagree
3b11e55b44eb421789155b491a244985acc9fe26
[ "BSD-3-Clause" ]
12
2019-04-11T11:41:06.000Z
2021-09-28T15:29:48.000Z
letsagree/tests/test_middleware.py
raratiru/django-letsagree
3b11e55b44eb421789155b491a244985acc9fe26
[ "BSD-3-Clause" ]
16
2019-04-14T20:55:58.000Z
2021-03-12T15:42:02.000Z
letsagree/tests/test_middleware.py
raratiru/django-letsagree
3b11e55b44eb421789155b491a244985acc9fe26
[ "BSD-3-Clause" ]
3
2019-05-12T19:51:32.000Z
2020-10-19T13:52:09.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import pytest import sqlite3 from letsagree.middleware import LetsAgreeMiddleware from django.conf import settings from django.core.cache import cache from django.urls import reverse pytestmark = pytest.mark.django_db def test_middleware_init(): my_middleware = Let...
32.864583
85
0.621553
796cda0f4c01e7c647ff49d38f37403ebb2fdd15
817
py
Python
tests/test_level2/test_universal_type.py
kianmeng/soupsieve
a8640aad6ae0476e6b62f4f15e12ad4efc7605c4
[ "MIT" ]
130
2018-12-27T06:00:32.000Z
2022-03-29T05:47:18.000Z
tests/test_level2/test_universal_type.py
kianmeng/soupsieve
a8640aad6ae0476e6b62f4f15e12ad4efc7605c4
[ "MIT" ]
157
2018-12-07T07:44:15.000Z
2022-02-05T16:20:08.000Z
tests/test_level2/test_universal_type.py
kianmeng/soupsieve
a8640aad6ae0476e6b62f4f15e12ad4efc7605c4
[ "MIT" ]
32
2018-12-31T03:11:55.000Z
2022-03-06T09:06:43.000Z
"""Test universal type selector.""" from .. import util class TestUniversal(util.TestCase): """Test universal type selector.""" def test_universal_type(self): """Test universal type.""" self.assert_selector( """ <body> <div id="div"> <p id="0">...
27.233333
72
0.429621
796cdacf04b2db1d168b5e1b20e21fe4518c693f
495
py
Python
sghymnal/foes/api/views.py
shortnd/sghymnal
c10d9a7e2fda803dcb5046b9f7bc099f32b6c603
[ "MIT" ]
null
null
null
sghymnal/foes/api/views.py
shortnd/sghymnal
c10d9a7e2fda803dcb5046b9f7bc099f32b6c603
[ "MIT" ]
null
null
null
sghymnal/foes/api/views.py
shortnd/sghymnal
c10d9a7e2fda803dcb5046b9f7bc099f32b6c603
[ "MIT" ]
null
null
null
from django_filters import rest_framework as filters from rest_framework.mixins import ListModelMixin, RetrieveModelMixin from rest_framework.viewsets import GenericViewSet from ..models import Foe from .serializers import FoeSerializer class FoesViewSet(RetrieveModelMixin, ListModelMixin, GenericViewSet): seria...
33
70
0.806061
796cdbb01e1111ea159ebac8a91afd68b689bcf3
16,230
py
Python
tests/test_parse_behavior_cost.py
learningsimulator/learningsimulator
79b00bb0155537a4219637e68d5092fd10a1017f
[ "MIT" ]
7
2020-07-14T20:30:23.000Z
2022-02-14T05:58:22.000Z
tests/test_parse_behavior_cost.py
learningsimulator/learningsimulator
79b00bb0155537a4219637e68d5092fd10a1017f
[ "MIT" ]
89
2020-11-25T18:38:21.000Z
2022-02-25T12:37:45.000Z
tests/test_parse_behavior_cost.py
learningsimulator/learningsimulator
79b00bb0155537a4219637e68d5092fd10a1017f
[ "MIT" ]
null
null
null
from .testutil import LsTestCase from keywords import BEHAVIOR_COST from parsing import Script name = BEHAVIOR_COST def parse(text): script = Script(text) script.parse() return script.script_parser.parameters.val[name] class TestBasic(LsTestCase): @classmethod def setUpClass(cls): pass ...
29.562842
118
0.494023
796cdc03ecffbff503381a06880fb73482edeefe
1,693
py
Python
lightcontrol/models.py
reefberrypi/reefberrypi
f1e9977e8f56b402ef4d231ba8d4cdd0e469db42
[ "MIT" ]
null
null
null
lightcontrol/models.py
reefberrypi/reefberrypi
f1e9977e8f56b402ef4d231ba8d4cdd0e469db42
[ "MIT" ]
null
null
null
lightcontrol/models.py
reefberrypi/reefberrypi
f1e9977e8f56b402ef4d231ba8d4cdd0e469db42
[ "MIT" ]
null
null
null
from django.db import models class ColorTemp(models.Model): MODES = ( ('DL', 'Day Light'), ('ML', 'Moon Light'), ('LI', 'Lightning') ) mode = models.CharField(max_length=2, choices=MODES, unique=True) current_percentage = models.IntegerField(default=0, editable=False) # TODO D...
29.701754
103
0.652688
796cdc37cc944fb4851adb1e3eb74719d4a1df69
1,246
py
Python
src/book/admin.py
DmytroKaminskiy/ltt
d08df4d102e678651cd42928e2343733c3308d71
[ "Apache-2.0" ]
null
null
null
src/book/admin.py
DmytroKaminskiy/ltt
d08df4d102e678651cd42928e2343733c3308d71
[ "Apache-2.0" ]
null
null
null
src/book/admin.py
DmytroKaminskiy/ltt
d08df4d102e678651cd42928e2343733c3308d71
[ "Apache-2.0" ]
null
null
null
from book.models import Book, BookRent, Category, RentDayHistory from django.contrib import admin class RentDayHistoryInline(admin.TabularInline): model = RentDayHistory fields = ('id', 'amount', 'created') readonly_fields = fields can_delete = False extra = 0 def has_add_permission(self, re...
26.510638
73
0.652488
796cdd7456c3335fdce9345c1c89cbec8194f2a7
132
py
Python
0x03-python-data_structures/5-main.py
C-distin/alx-higher_level_programming
ee018135b24ac07d40f2309a4febf21b8a25aee4
[ "MIT" ]
null
null
null
0x03-python-data_structures/5-main.py
C-distin/alx-higher_level_programming
ee018135b24ac07d40f2309a4febf21b8a25aee4
[ "MIT" ]
null
null
null
0x03-python-data_structures/5-main.py
C-distin/alx-higher_level_programming
ee018135b24ac07d40f2309a4febf21b8a25aee4
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 no_c = __import__('5-no_c').no_c print(no_c("Best School")) print(no_c("Chicago")) print(no_c("C is fun!"))
18.857143
32
0.674242
796cdecb27f7c6546b486246684a91b2efce6a26
9,838
py
Python
simulate.py
stjordanis/symbolic_deep_learning
b7518a07d9de894af86db1a3a30b7b8b4f2daeb4
[ "MIT" ]
520
2020-06-23T01:13:38.000Z
2022-03-30T04:58:15.000Z
simulate.py
stjordanis/symbolic_deep_learning
b7518a07d9de894af86db1a3a30b7b8b4f2daeb4
[ "MIT" ]
5
2021-02-01T11:21:05.000Z
2021-08-24T17:10:43.000Z
simulate.py
stjordanis/symbolic_deep_learning
b7518a07d9de894af86db1a3a30b7b8b4f2daeb4
[ "MIT" ]
102
2020-06-23T14:38:13.000Z
2022-03-29T18:32:11.000Z
import jax from jax import ops from jax.ops import index_update from jax import numpy as np from matplotlib import pyplot as plt from jax import jit, vmap, grad, pmap from jax.experimental.ode import odeint from jax import random import numpy as onp import matplotlib as mpl import multiprocessing from functools import ...
33.576792
104
0.521651
796cded9c34bd0af7648cb87ccf4a21eb04be8fe
2,563
py
Python
src/subs/get.py
ganghe74/solve
fbe552c5d814481516df49e56a2ca44d077adc3f
[ "MIT" ]
null
null
null
src/subs/get.py
ganghe74/solve
fbe552c5d814481516df49e56a2ca44d077adc3f
[ "MIT" ]
null
null
null
src/subs/get.py
ganghe74/solve
fbe552c5d814481516df49e56a2ca44d077adc3f
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import click import requests import re import os from bs4 import BeautifulSoup headers = { 'User-Agent': "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.82 Safari/537.36" } sources = { 'boj': { 'url': 'https://acmicpc.net/proble...
37.691176
134
0.618806
796cdf1917c3268b29b8b8ed222796b1c1ab6bed
2,121
py
Python
ubicenter/plotly.py
nikhilwoodruff/ubicenter.py
3fae5351ff61f67435f05803718283bbaf157ad8
[ "MIT" ]
null
null
null
ubicenter/plotly.py
nikhilwoodruff/ubicenter.py
3fae5351ff61f67435f05803718283bbaf157ad8
[ "MIT" ]
null
null
null
ubicenter/plotly.py
nikhilwoodruff/ubicenter.py
3fae5351ff61f67435f05803718283bbaf157ad8
[ "MIT" ]
null
null
null
from plotly import graph_objects as go from typing import Union CONFIG = {"displayModeBar": False} LOGO_URL = ( "https://raw.githubusercontent.com/UBICenter/blog/master/jb/" "_static/ubi_center_logo_wide_blue.png" ) LIGHTER_BLUE = "#ABCEEB" # Blue 100. LIGHT_BLUE = "#49A6E2" # Blue 500. BLUE = "#1976D2" ...
25.554217
70
0.603017
796cdf9c6ba9c0b1167cdcbfa082abed33a7fd13
797
py
Python
gsoc/anand/pipeline_3/utility/qald_json/interpreter.py
ashutosh16399/NSpM
68106f0ae52fe28ebb8c8b0a6fedb99559e6624f
[ "MIT" ]
78
2020-06-14T15:55:45.000Z
2022-03-26T22:38:42.000Z
gsoc/anand/pipeline_3/utility/qald_json/interpreter.py
ashutosh16399/NSpM
68106f0ae52fe28ebb8c8b0a6fedb99559e6624f
[ "MIT" ]
16
2020-06-10T11:08:37.000Z
2022-03-01T12:33:55.000Z
gsoc/anand/pipeline_3/utility/qald_json/interpreter.py
ashutosh16399/NSpM
68106f0ae52fe28ebb8c8b0a6fedb99559e6624f
[ "MIT" ]
25
2018-03-23T07:32:48.000Z
2022-01-15T16:48:32.000Z
#!/usr/bin/env python """ Neural SPARQL Machines - Interpreter module 'SPARQL as a Foreign Language' by Tommaso Soru and Edgard Marx et al., SEMANTiCS 2017 https://w3id.org/neural-sparql-machines/soru-marx-semantics2017.html https://arxiv.org/abs/1708.07624 Version 0.1.0-akaha """ import sys import re from generat...
24.151515
85
0.740276