hexsha
stringlengths
40
40
size
int64
6
1.04M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
247
max_stars_repo_name
stringlengths
4
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
368k
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
247
max_issues_repo_name
stringlengths
4
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
247
max_forks_repo_name
stringlengths
4
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.04M
avg_line_length
float64
1.53
618k
max_line_length
int64
1
1.02M
alphanum_fraction
float64
0
1
original_content
stringlengths
6
1.04M
filtered:remove_non_ascii
int64
0
538k
filtered:remove_decorators
int64
0
917k
filtered:remove_async
int64
0
722k
filtered:remove_classes
int64
-45
1M
filtered:remove_generators
int64
0
814k
filtered:remove_function_no_docstring
int64
-102
850k
filtered:remove_class_no_docstring
int64
-3
5.46k
filtered:remove_unused_imports
int64
-1,350
52.4k
filtered:remove_delete_markers
int64
0
59.6k
6ec54a58a019798e86849181545ddb49465660f8
3,308
py
Python
transformer_2/models/transformer_config.py
mingruimingrui/Transformer2
2b44289ee7c7312d699f2261c1e4ebccce0f21e2
[ "MIT" ]
null
null
null
transformer_2/models/transformer_config.py
mingruimingrui/Transformer2
2b44289ee7c7312d699f2261c1e4ebccce0f21e2
[ "MIT" ]
1
2020-06-01T02:13:10.000Z
2020-06-01T02:13:10.000Z
transformer_2/models/transformer_config.py
mingruimingrui/Transformer2
2b44289ee7c7312d699f2261c1e4ebccce0f21e2
[ "MIT" ]
null
null
null
""" Configurables for Transformer """ from transformer_2.utils.config_system import ConfigSystem __all__ = ['make_config'] _C = ConfigSystem(validate_config_fn=validate_config) # --------------------------------------------------------------------------- # # Start of configs # -------------------------------------...
26.894309
79
0.713724
""" Configurables for Transformer """ from transformer_2.utils.config_system import ConfigSystem __all__ = ['make_config'] def validate_config(config): pass _C = ConfigSystem(validate_config_fn=validate_config) # --------------------------------------------------------------------------- # # Start of configs ...
0
0
0
0
0
16
0
0
23
760bd97489459ca7421ffb023b45e07766736779
55
py
Python
djdwod/login.py
17675647287/login
55d0a444e4ca0dc549b0dfaaa006b49c6f0bd953
[ "MIT" ]
null
null
null
djdwod/login.py
17675647287/login
55d0a444e4ca0dc549b0dfaaa006b49c6f0bd953
[ "MIT" ]
null
null
null
djdwod/login.py
17675647287/login
55d0a444e4ca0dc549b0dfaaa006b49c6f0bd953
[ "MIT" ]
null
null
null
number1 = 10 number2 = 20 number4 = 40 number3 = 30
6.875
12
0.654545
number1 = 10 number2 = 20 number4 = 40 number3 = 30
0
0
0
0
0
0
0
0
0
bdad247f70b5f8b5d83ff4db4cbd7118ca39ee87
2,603
py
Python
Section9-Build_the_Real_Robot/arduinobot_ws/src/arduinobot_controller/scripts/angles_converter.py
AntoBrandi/Arduino-Bot-Tutorial
56ef08e3e60c6523ac4d2d2c9816d86c73f42d3a
[ "MIT", "Unlicense" ]
6
2021-09-24T06:38:29.000Z
2022-02-25T20:00:31.000Z
arduinobot_ws/src/arduinobot_controller/scripts/angles_converter.py
surajbilung/Arduino-Bot
c12e6bfb07ff66b8ac28a616ba4f8c5d4951f091
[ "Unlicense", "MIT" ]
null
null
null
arduinobot_ws/src/arduinobot_controller/scripts/angles_converter.py
surajbilung/Arduino-Bot
c12e6bfb07ff66b8ac28a616ba4f8c5d4951f091
[ "Unlicense", "MIT" ]
3
2021-09-09T16:55:42.000Z
2022-03-16T06:58:24.000Z
#!/usr/bin/env python3 import rospy from arduinobot_controller.srv import AnglesConverter """ arduinobot - angles_converter This script implements two services on the topics - radians_to_degrees - degrees_to_radians Both of them receives a request with the format: float64 base float64 shoulder ...
40.671875
113
0.739531
#!/usr/bin/env python3 import rospy import math from arduinobot_controller.srv import AnglesConverter, AnglesConverterResponse """ arduinobot - angles_converter This script implements two services on the topics - radians_to_degrees - degrees_to_radians Both of them receives a request with the format: ...
0
0
0
0
0
1,076
0
15
68
6e300bfbb9e8b185db58281a283ea05bbc9c1a0b
630
py
Python
train.py
bckho/gym
54adba8c164814caa11a637b62bcc4d3c7ca4559
[ "Python-2.0", "OLDAP-2.7" ]
null
null
null
train.py
bckho/gym
54adba8c164814caa11a637b62bcc4d3c7ca4559
[ "Python-2.0", "OLDAP-2.7" ]
null
null
null
train.py
bckho/gym
54adba8c164814caa11a637b62bcc4d3c7ca4559
[ "Python-2.0", "OLDAP-2.7" ]
null
null
null
from gym.envs.box2d import CarRacing from stable_baselines.common.vec_env import DummyVecEnv from stable_baselines import PPO2 if __name__ == '__main__': env = lambda : CarRacing( grayscale=1, show_info_panel=0, discretize_actions="hard", frames_per_state=4, num_lanes=1, ...
27.391304
80
0.703175
import gym from gym.envs.box2d import CarRacing from stable_baselines.common.policies import CnnPolicy from stable_baselines.common.vec_env import DummyVecEnv from stable_baselines import PPO2 if __name__ == '__main__': env = lambda : CarRacing( grayscale=1, show_info_panel=0, discretize_...
0
0
0
0
0
0
0
22
45
81eea449c3dbc24f53d2564aa6a669ee95c4015d
2,209
py
Python
athena/transform/feats/write_wav.py
godjealous/athena
5b7bf48ae7477196f2773108f19cf6ae5605f6bd
[ "Apache-2.0" ]
119
2019-12-20T05:26:23.000Z
2022-03-22T06:10:45.000Z
athena/transform/feats/write_wav.py
leixiaoning/athena-2
826c3bda241afd388e156bbefcd6ca2e8d88afc9
[ "Apache-2.0" ]
14
2019-12-20T07:10:28.000Z
2022-02-20T01:14:35.000Z
athena/transform/feats/write_wav.py
leixiaoning/athena-2
826c3bda241afd388e156bbefcd6ca2e8d88afc9
[ "Apache-2.0" ]
44
2019-12-20T05:27:20.000Z
2022-03-14T10:04:16.000Z
# Copyright (C) 2017 Beijing Didi Infinity Technology and Development Co.,Ltd. # 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/LI...
32.485294
87
0.683115
# Copyright (C) 2017 Beijing Didi Infinity Technology and Development Co.,Ltd. # 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/LI...
0
460
0
821
0
0
0
60
90
ce2999e6ce3e5a354aab62b9e3dae21d351f884d
2,400
py
Python
zvm/zfilesystem.py
grayarea11235/zvm2
50afb650b730ab36918d3a4ac1b650d2d48e56bd
[ "BSD-3-Clause" ]
27
2016-01-02T09:00:54.000Z
2022-02-05T20:28:28.000Z
zvm/zfilesystem.py
grayarea11235/zvm2
50afb650b730ab36918d3a4ac1b650d2d48e56bd
[ "BSD-3-Clause" ]
3
2019-08-26T13:18:59.000Z
2021-04-11T15:58:07.000Z
zvm/zfilesystem.py
grayarea11235/zvm2
50afb650b730ab36918d3a4ac1b650d2d48e56bd
[ "BSD-3-Clause" ]
11
2016-06-19T08:59:40.000Z
2021-04-11T10:54:41.000Z
# # A template class representing the interactions that the end-user has # with the filesystem in a z-machine. # # Third-party programs are expected to subclass ZFilesystem and # override all the methods, then pass an instance of their class to be # driven by the main z-machine engine. # # For the license of this file,...
36.363636
70
0.735417
# # A template class representing the interactions that the end-user has # with the filesystem in a z-machine. # # Third-party programs are expected to subclass ZFilesystem and # override all the methods, then pass an instance of their class to be # driven by the main z-machine engine. # # For the license of this file,...
0
0
0
1,976
0
0
0
0
23
54e319f380ed51382d970fc04e3a476fb0fb80be
4,886
py
Python
app.py
adrisj7/scouter-app
aaaf3d7cb9ac7bcd9dae0c2f9766e0dc5197012b
[ "MIT" ]
null
null
null
app.py
adrisj7/scouter-app
aaaf3d7cb9ac7bcd9dae0c2f9766e0dc5197012b
[ "MIT" ]
null
null
null
app.py
adrisj7/scouter-app
aaaf3d7cb9ac7bcd9dae0c2f9766e0dc5197012b
[ "MIT" ]
null
null
null
#!/usr/bin/python from flask import Flask from flask_bcrypt import Bcrypt # 5000 seems a bit... basic. Feel free to change later to something more # interesting. SITE_PORT = 5000 # If testing on localhost, set to True # Otherwise if running on server, set to False SERVER_LOCAL = True # Init app app = Flask(__...
26.846154
77
0.647155
#!/usr/bin/python import sys import os.path from functools import wraps from flask import Flask, g, render_template, redirect, request from flask_login import login_required, current_user, login_user, logout_user from flask_bcrypt import Bcrypt from util.database import * # 5000 seems a bit... basic. Feel free to ...
0
2,537
0
0
0
634
0
89
386
98858423b4f12c4129ca397e47bff9c4c29c4c76
2,608
py
Python
mudparser/acl_entry.py
elmiomar/mudparser
7bae239fe2e7e82746ef88150f62673793872973
[ "MIT" ]
null
null
null
mudparser/acl_entry.py
elmiomar/mudparser
7bae239fe2e7e82746ef88150f62673793872973
[ "MIT" ]
null
null
null
mudparser/acl_entry.py
elmiomar/mudparser
7bae239fe2e7e82746ef88150f62673793872973
[ "MIT" ]
null
null
null
#!/usr/bin/env python __all__ = ['AccessListEntry']
37.257143
92
0.522239
#!/usr/bin/env python from mudparser.matches import (IPv4Match, IPv6Match, TCPMatch, UDPMatch, EthMatch, MUDMatch) __all__ = ['AccessListEntry'] class AccessListEntry: def __init__(self, json_obj): self._json_obj = json_obj self.name = '' self.matches = {} self.actions = {} ...
0
0
0
2,435
0
0
0
71
46
4d9dd9a332f0dd6dac4ae2140de6807bf424df60
8,529
py
Python
tests/test_stow.py
harkabeeparolus/dploy
0545a22dc80c3eb8103c61306be2fa726fb6a0e8
[ "MIT" ]
null
null
null
tests/test_stow.py
harkabeeparolus/dploy
0545a22dc80c3eb8103c61306be2fa726fb6a0e8
[ "MIT" ]
null
null
null
tests/test_stow.py
harkabeeparolus/dploy
0545a22dc80c3eb8103c61306be2fa726fb6a0e8
[ "MIT" ]
null
null
null
""" Tests for the stow stub command """ # pylint: disable=missing-docstring # disable lint errors for function names longer that 30 characters # pylint: disable=invalid-name SUBCMD = "stow"
35.098765
87
0.709579
""" Tests for the stow stub command """ # pylint: disable=missing-docstring # disable lint errors for function names longer that 30 characters # pylint: disable=invalid-name import os import pytest import dploy from dploy import error from tests import utils SUBCMD = "stow" def test_stow_with_simple_senario(source_...
0
0
0
0
0
7,676
0
-25
663
556b56f576d5301f23ff64c2b9ada4f26a4824a3
2,487
py
Python
blendernc/nodes/outputs/BlenderNC_NT_preloader.py
StephanSiemen/blendernc
590c252dc3d6e1092bd713bbf9111ffe8ca04999
[ "MIT" ]
39
2020-06-15T15:58:43.000Z
2022-02-02T01:11:57.000Z
blendernc/nodes/outputs/BlenderNC_NT_preloader.py
netgodz/blendernc
09ed7c7791da46abb2c5fd3ee83286ef0bf82302
[ "MIT" ]
137
2020-06-19T15:29:06.000Z
2022-03-30T11:18:55.000Z
blendernc/nodes/outputs/BlenderNC_NT_preloader.py
netgodz/blendernc
09ed7c7791da46abb2c5fd3ee83286ef0bf82302
[ "MIT" ]
8
2020-06-17T09:33:12.000Z
2022-01-21T00:26:19.000Z
#!/usr/bin/env python3 # Imports
32.298701
77
0.60394
#!/usr/bin/env python3 # Imports import bpy class BlenderNC_NT_preloader(bpy.types.Node): # === Basics === # Description string """A datacube node""" # Optional identifier string. If not explicitly defined, # the python class name is used. bl_idname = "datacubePreloadNode" # Label for nice...
0
0
0
2,419
0
0
0
-11
45
9affda41ae10365c43f3ff4b169d6d2f0e233bc0
1,480
py
Python
examples/echoss.py
RalphWalters/thredo
ea109c693036764dd192527f9b6bba18d3b18042
[ "MIT" ]
340
2018-07-23T18:21:56.000Z
2021-12-11T05:50:58.000Z
examples/echoss.py
RalphWalters/thredo
ea109c693036764dd192527f9b6bba18d3b18042
[ "MIT" ]
6
2018-07-31T11:52:56.000Z
2019-11-25T19:52:32.000Z
examples/echoss.py
RalphWalters/thredo
ea109c693036764dd192527f9b6bba18d3b18042
[ "MIT" ]
25
2018-07-27T06:09:05.000Z
2022-03-13T12:53:23.000Z
# Echo server implemented using socket server and # a ThredoMixIn class. This class replaces the normal # socket with one that can be cancelled. Also uses spawn() # internally to launch threads. import thredo thredo.run(main)
29.6
66
0.660135
# Echo server implemented using socket server and # a ThredoMixIn class. This class replaces the normal # socket with one that can be cancelled. Also uses spawn() # internally to launch threads. from thredo.socket import * import thredo import socketserver import signal class EchoHandler(socketserver.BaseRequestH...
0
0
0
824
0
264
0
-4
159
ffef01f595ce788224a97b8b12c5b56d821de0de
125
py
Python
commons/math_utils.py
bertl4398/semaphore-demo-python-pants
bd6e44804f71542bbc89474c527cc61bbc5ba099
[ "MIT" ]
4
2021-05-21T13:43:08.000Z
2021-12-29T02:36:34.000Z
commons/math_utils.py
bertl4398/semaphore-demo-python-pants
bd6e44804f71542bbc89474c527cc61bbc5ba099
[ "MIT" ]
null
null
null
commons/math_utils.py
bertl4398/semaphore-demo-python-pants
bd6e44804f71542bbc89474c527cc61bbc5ba099
[ "MIT" ]
4
2021-06-25T02:32:49.000Z
2022-03-11T19:06:40.000Z
"""Shared math functions.""" def math_sum(num1, num2): """Returns the sum of two parameters.""" return num1 + num2
17.857143
44
0.64
"""Shared math functions.""" def math_sum(num1, num2): """Returns the sum of two parameters.""" return num1 + num2
0
0
0
0
0
0
0
0
0
2081c4db723b72973994b2f51131c2fbe6dd94e7
3,913
py
Python
training/training/report/pending_list_kvs/pending_list_kvs.py
vhrsramya/Training
0415109c66fae8a58e48bcad0ae8cd210e8a95bb
[ "MIT" ]
null
null
null
training/training/report/pending_list_kvs/pending_list_kvs.py
vhrsramya/Training
0415109c66fae8a58e48bcad0ae8cd210e8a95bb
[ "MIT" ]
null
null
null
training/training/report/pending_list_kvs/pending_list_kvs.py
vhrsramya/Training
0415109c66fae8a58e48bcad0ae8cd210e8a95bb
[ "MIT" ]
1
2020-02-14T12:56:53.000Z
2020-02-14T12:56:53.000Z
# Copyright (c) 2013, Minda Sai Pvt LTd and contributors # For license information, please see license.txt from __future__ import unicode_literals # def get_conditions(filters): # conditions = "" # # if filters.get("employee"):conditions += "AND att.employee = '%s'" % filters["employee"] # if filters....
34.628319
232
0.576795
# Copyright (c) 2013, Minda Sai Pvt LTd and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe import _ import math from calendar import monthrange from datetime import datetime,timedelta,date from dateutil.rrule import * def execute(filte...
0
0
0
0
0
3,065
0
21
279
127e78027d3a86dbedef35a4008738c8f31c259c
2,116
py
Python
tests/testDQN.py
1696012928/RoomAI
37be09590489ab5f7c85083173e83ea31c40b76c
[ "MIT" ]
1
2018-03-02T00:49:31.000Z
2018-03-02T00:49:31.000Z
tests/testDQN.py
1696012928/RoomAI
37be09590489ab5f7c85083173e83ea31c40b76c
[ "MIT" ]
null
null
null
tests/testDQN.py
1696012928/RoomAI
37be09590489ab5f7c85083173e83ea31c40b76c
[ "MIT" ]
null
null
null
import roomai import roomai.sevenking
33.0625
147
0.664934
import unittest from models.dqn.dqnalgorithm import DqnAlgorithm import random import roomai import roomai.sevenking from models.dqn.dqnalgorithm import DqnPlayer from models.dqn.sevenking import SevenKingModel_ThreePlayers class ExamplePlayer(DqnPlayer): def terminal_info_feat(self): return [1] def ...
0
0
0
1,821
0
0
0
75
180
144dce5682a278cd2617daaba66905d0960fc317
3,425
py
Python
stanCode_Projects/my_drawing/my_drawing.py
LeeHsuanHsuan/MystanCodeProjects
229f75cdb8717637bea2d83e41e84776dbb9a7c8
[ "MIT" ]
1
2022-01-26T06:04:35.000Z
2022-01-26T06:04:35.000Z
stanCode_Projects/my_drawing/my_drawing.py
LeeHsuanHsuan/MystanCodeProjects
229f75cdb8717637bea2d83e41e84776dbb9a7c8
[ "MIT" ]
null
null
null
stanCode_Projects/my_drawing/my_drawing.py
LeeHsuanHsuan/MystanCodeProjects
229f75cdb8717637bea2d83e41e84776dbb9a7c8
[ "MIT" ]
null
null
null
""" File: my_drawing Name: LEE HSUAN HSUAN ---------------------- TODO: """ from campy.graphics.gobjects import GOval, GArc, GPolygon, GLabel from campy.graphics.gwindow import GWindow def main(): """ Sometimes little things in daily life that bring us happiness. Hope everyone can enjoy every moment of y...
24.640288
72
0.635036
""" File: my_drawing Name: LEE HSUAN HSUAN ---------------------- TODO: """ from campy.graphics.gobjects import GOval, GRect, GArc, GPolygon ,GLabel from campy.graphics.gwindow import GWindow def main(): """ Sometimes little things in daily life that bring us happiness. Hope everyone can enjoy every mome...
0
0
0
0
0
0
0
7
0
1381e31bdb3f07d1c3f3d70d86b35a122964b40b
2,581
py
Python
source/scripts/char_to_bin.py
flamechain/ComputerSimulator
b345b6553d202c166acbe6f254371b8fcad2a574
[ "MIT" ]
1
2021-02-15T18:52:44.000Z
2021-02-15T18:52:44.000Z
source/scripts/char_to_bin.py
flamechain/ComputerSimulator
b345b6553d202c166acbe6f254371b8fcad2a574
[ "MIT" ]
null
null
null
source/scripts/char_to_bin.py
flamechain/ComputerSimulator
b345b6553d202c166acbe6f254371b8fcad2a574
[ "MIT" ]
null
null
null
symbol_table = { '00000000': 'A', '00000001': 'B', '00000010': 'C', '00000011': 'D', '00000100': 'E', '00000101': 'F', '00000110': 'G', '00000111': 'H', '00001000': 'I', '00001001': 'J', '00001010': 'K', '00001011': 'L', '00001100': 'M', '00001101': 'N', '0000...
21.155738
53
0.404882
symbol_table = { '00000000': 'A', '00000001': 'B', '00000010': 'C', '00000011': 'D', '00000100': 'E', '00000101': 'F', '00000110': 'G', '00000111': 'H', '00001000': 'I', '00001001': 'J', '00001010': 'K', '00001011': 'L', '00001100': 'M', '00001101': 'N', '0000...
0
0
0
0
0
502
0
0
23
25d87b22ed75cef3afaf9f4577526ead230181c3
10,346
py
Python
src/MAT/build/MAT_distutils.py
wake-forest-ctsi/mist-toolkit
857e91976fa3b75ef2cad08612fa79cf2f743615
[ "BSD-3-Clause" ]
2
2015-10-28T17:58:31.000Z
2021-10-12T10:34:39.000Z
scrubber/MIST_2_0_4/src/MAT/build/MAT_distutils.py
manaswini18/DmD
dd1e865ddb7b43c8478b2b5733385143b1980951
[ "Apache-2.0" ]
null
null
null
scrubber/MIST_2_0_4/src/MAT/build/MAT_distutils.py
manaswini18/DmD
dd1e865ddb7b43c8478b2b5733385143b1980951
[ "Apache-2.0" ]
9
2016-12-17T22:50:37.000Z
2020-09-26T01:08:06.000Z
# Copyright (C) 2010 The MITRE Corporation. See the toplevel # file LICENSE for license terms. # This file contains utilities which may be used either by # build_tarball.py, install.py, or any of the dist.py files in # the individual tasks. # THIS FILE DOES NOT RELY ON THE MAT PYTHON MODULE. # We want to be able to ...
32.949045
100
0.556737
# Copyright (C) 2010 The MITRE Corporation. See the toplevel # file LICENSE for license terms. # This file contains utilities which may be used either by # build_tarball.py, install.py, or any of the dist.py files in # the individual tasks. # THIS FILE DOES NOT RELY ON THE MAT PYTHON MODULE. import subprocess def s...
0
0
0
2,257
0
6,765
0
-41
276
4155b51b326b1c6008762de469a32741ddafff32
644
py
Python
fetch_spacex.py
mogubudu/api-lesson-4
1b700a6ddd7e04ed1d6a008758b95a90683ca18d
[ "MIT" ]
null
null
null
fetch_spacex.py
mogubudu/api-lesson-4
1b700a6ddd7e04ed1d6a008758b95a90683ca18d
[ "MIT" ]
null
null
null
fetch_spacex.py
mogubudu/api-lesson-4
1b700a6ddd7e04ed1d6a008758b95a90683ca18d
[ "MIT" ]
null
null
null
if __name__ == "__main__": main()
24.769231
73
0.725155
import os import requests from file_handler import download_image, get_filename def fetch_spacex_last_launch(path_to_save='images/', index_of_launch=13): spacex_api_url = 'https://api.spacexdata.com/v4/launches/' os.makedirs(path_to_save, exist_ok=True) responce = requests.get(spacex_api_url) respon...
0
0
0
0
0
476
0
14
112
b2e1919b70d39ba432c1acf53fcbe5674e29eac5
472
py
Python
snippets/set_line_join.py
iubica/wx-portfolio
12101986db72bcaffd9b744d514d6f9f651ad5a1
[ "MIT" ]
3
2018-03-19T07:57:10.000Z
2021-07-05T08:55:14.000Z
snippets/set_line_join.py
iubica/wx-portfolio
12101986db72bcaffd9b744d514d6f9f651ad5a1
[ "MIT" ]
6
2020-03-24T15:40:18.000Z
2021-12-13T19:46:09.000Z
snippets/set_line_join.py
iubica/wx-portfolio
12101986db72bcaffd9b744d514d6f9f651ad5a1
[ "MIT" ]
4
2018-03-29T21:59:55.000Z
2019-12-16T14:56:38.000Z
snippet_normalize (cr, width, height) cr.set_line_width (0.16) cr.move_to (0.3, 0.33) cr.rel_line_to (0.2, -0.2) cr.rel_line_to (0.2, 0.2) cr.set_line_join (cairo.LINE_JOIN_MITER) #/* default */ cr.stroke () cr.move_to (0.3, 0.63) cr.rel_line_to (0.2, -0.2) cr.rel_line_to (0.2, 0.2) cr.set_line_join (cairo.LINE_JOIN_B...
21.454545
55
0.697034
snippet_normalize (cr, width, height) cr.set_line_width (0.16) cr.move_to (0.3, 0.33) cr.rel_line_to (0.2, -0.2) cr.rel_line_to (0.2, 0.2) cr.set_line_join (cairo.LINE_JOIN_MITER) #/* default */ cr.stroke () cr.move_to (0.3, 0.63) cr.rel_line_to (0.2, -0.2) cr.rel_line_to (0.2, 0.2) cr.set_line_join (cairo.LINE_JOIN_B...
0
0
0
0
0
0
0
0
0
76a5c4d6bb95c79b539e7d45481182b236126beb
5,490
py
Python
item_engine/lin_lin_network/test.py
GabrielAmare/TextEngine
39ceb323a63af35e32c4be34ae35a77e811bc973
[ "MIT" ]
null
null
null
item_engine/lin_lin_network/test.py
GabrielAmare/TextEngine
39ceb323a63af35e32c4be34ae35a77e811bc973
[ "MIT" ]
null
null
null
item_engine/lin_lin_network/test.py
GabrielAmare/TextEngine
39ceb323a63af35e32c4be34ae35a77e811bc973
[ "MIT" ]
null
null
null
from item_engine.lin_lin_network import Model as LL_Model from item_engine.textbase import make_characters, Char, Token if __name__ == '__main__': calls_to = {} net = LL_Model( input_cls=Char, output_cls=Token, function=function, skips=["SPACE"] ) alphabet = "abcde...
31.551724
106
0.501093
from typing import Tuple from item_engine.constants import * from item_engine.lin_lin_network import Model as LL_Model from item_engine.textbase import make_characters, Char, Token if __name__ == '__main__': calls_to = {} def memorize(function): cache = {} def wrapper(token, char): ...
7
3,217
0
0
0
394
0
17
99
5483f8927d2bbfc5ed8cdc8e4bd363e75303c372
13,978
py
Python
src/synth.py
viniciuspjardim/synth-test
754afce502b1788ad9900eb095ef090acf1b1f26
[ "Apache-2.0" ]
null
null
null
src/synth.py
viniciuspjardim/synth-test
754afce502b1788ad9900eb095ef090acf1b1f26
[ "Apache-2.0" ]
null
null
null
src/synth.py
viniciuspjardim/synth-test
754afce502b1788ad9900eb095ef090acf1b1f26
[ "Apache-2.0" ]
null
null
null
""" Author: Vincius Jardim Email: viniciuspjardim@gmail.com Date: 3/2016 """ if __name__ == "__main__": main()
28.584867
72
0.5093
""" Author: Vinícius Jardim Email: viniciuspjardim@gmail.com Date: 3/2016 """ import math import random import re import wave import matplotlib.pyplot as plt import numpy as np import pyaudio as pa from scipy.io.wavfile import write from scipy import signal from src.musics import * class Notes: """Musical notes...
2
4,576
0
8,573
0
408
0
-15
314
c4cc7cbeda8d27d81365c8e30a7d91223c604b47
710
py
Python
warpworks/model/base.py
storborg/warpworks
a41a0a5bab8b826157309f7d0bafbdcdff66505b
[ "MIT" ]
null
null
null
warpworks/model/base.py
storborg/warpworks
a41a0a5bab8b826157309f7d0bafbdcdff66505b
[ "MIT" ]
null
null
null
warpworks/model/base.py
storborg/warpworks
a41a0a5bab8b826157309f7d0bafbdcdff66505b
[ "MIT" ]
null
null
null
from __future__ import (absolute_import, division, print_function, unicode_literals) from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import scoped_session, sessionmaker from zope.sqlalchemy import ZopeTransactionExtension __all__ = ['Base', 'Session'] Session = ...
22.1875
76
0.673239
from __future__ import (absolute_import, division, print_function, unicode_literals) from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import scoped_session, sessionmaker from zope.sqlalchemy import ZopeTransactionExtension __all__ = ['Base', 'Session'] Session = ...
0
236
0
-1
0
0
0
0
50
e1690ac57e028e29d21726a6aeb67218a5883687
1,105
py
Python
src/controlmanual/core/typings.py
ControlManual/ControlManual
3c4bae24dbf27059381b997e535ec05aab37a0c0
[ "MIT" ]
null
null
null
src/controlmanual/core/typings.py
ControlManual/ControlManual
3c4bae24dbf27059381b997e535ec05aab37a0c0
[ "MIT" ]
12
2021-12-27T23:52:55.000Z
2022-03-09T00:26:23.000Z
src/controlmanual/core/typings.py
ControlManual/ControlManual
3c4bae24dbf27059381b997e535ec05aab37a0c0
[ "MIT" ]
null
null
null
from typing import (Awaitable, TypeVar, Callable, Union, Dict, TYPE_CHECKING) from typing_extensions import ParamSpec if TYPE_CHECKING: from .object import Object T = TypeVar("T", covariant=True) A = TypeVar("A", bound="Object") P = ParamSpec("P") MaybeAwaitable = Union[Awaitable[T], T] MaybeC...
19.732143
63
0.58733
from typing import ( Protocol, Awaitable, TypeVar, Callable, Union, runtime_checkable, Dict, TypedDict, Generic, Type, TYPE_CHECKING, ) from typing_extensions import ParamSpec if TYPE_CHECKING: from .object import Object T = TypeVar("T", covariant=True...
0
113
167
83
0
0
0
114
218
cbd9852948ed7e1b902fcc21a2a9dcfff85378db
1,635
py
Python
experimental/conversation_go_awry/feature_extraction/user_features/user_toxicity.py
CyberFlameGO/wikidetox
60ee914c8bb81bada0847a3676e0bf24a6e35221
[ "Apache-2.0" ]
66
2017-09-10T12:47:37.000Z
2022-03-18T01:33:10.000Z
experimental/conversation_go_awry/feature_extraction/user_features/user_toxicity.py
CyberFlameGO/wikidetox
60ee914c8bb81bada0847a3676e0bf24a6e35221
[ "Apache-2.0" ]
82
2017-09-12T13:01:59.000Z
2021-11-10T19:40:01.000Z
experimental/conversation_go_awry/feature_extraction/user_features/user_toxicity.py
CyberFlameGO/wikidetox
60ee914c8bb81bada0847a3676e0bf24a6e35221
[ "Apache-2.0" ]
20
2017-11-02T21:23:35.000Z
2022-03-09T01:30:58.000Z
""" Copyright 2017 Google Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software dis...
34.0625
98
0.719266
""" Copyright 2017 Google Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software dis...
0
0
0
0
0
0
0
0
0
71ffbec5cd20308b2d2dc18b8082641b84ae620e
2,970
py
Python
app/data.py
ASLive/webserver
af36d194a4e4a5880df9c046518e75a07abfea22
[ "MIT" ]
null
null
null
app/data.py
ASLive/webserver
af36d194a4e4a5880df9c046518e75a07abfea22
[ "MIT" ]
11
2018-11-07T21:05:00.000Z
2022-02-10T00:05:36.000Z
app/data.py
ASLive/webserver
af36d194a4e4a5880df9c046518e75a07abfea22
[ "MIT" ]
1
2019-06-18T03:32:55.000Z
2019-06-18T03:32:55.000Z
import os import numpy as np import math import scipy import pickle TRAIN_DATA_PATH = "/Users/evanradcliffe/Senior Design/webserver/app/asl-alphabet/asl_alphabet_train" split_arr = lambda arr: arr[int(len(arr)/7):] def read_hand3d(): """read data from files (run setup_asl.py to generate)""" images = pickle.l...
38.076923
100
0.63064
import os import numpy as np import math import scipy import pickle TRAIN_DATA_PATH = "/Users/evanradcliffe/Senior Design/webserver/app/asl-alphabet/asl_alphabet_train" split_arr = lambda arr: arr[int(len(arr)/7):] def load_data(): images, labels, class_names = read_data() (train_images, train_labels), (test...
0
0
0
0
0
671
0
0
69
f51fd445fcb04f80f1d3a4a51fabc963c31f468c
3,937
py
Python
models/layers/spatial_attn.py
milesgray/ImageFunctions
35e4423b94149b0ba291eafb0cd98260a70d5f31
[ "Apache-2.0" ]
null
null
null
models/layers/spatial_attn.py
milesgray/ImageFunctions
35e4423b94149b0ba291eafb0cd98260a70d5f31
[ "Apache-2.0" ]
null
null
null
models/layers/spatial_attn.py
milesgray/ImageFunctions
35e4423b94149b0ba291eafb0cd98260a70d5f31
[ "Apache-2.0" ]
null
null
null
import torch.nn as nn
36.794393
94
0.557023
import torch import torch.nn as nn import torch.nn.functional as F from torch import Tensor from .learnable import Scale, Balance from .softmax import SpatialSoftmax2d from .spectral import SpectralConv2d from ImageFunctions.utility.torch import get_valid_padding from .registry import register from . import create as ...
0
3,532
0
0
0
0
0
112
272
f16eabb15db8c0d9c36d7fbebbb6e18c1ddd544c
1,478
py
Python
src/Modules/Utilities/coordinate_tools.py
bopopescu/PyHouse_1
6444ed0b4c38ab59b9e419e4d54d65d598e6a54e
[ "MIT" ]
1
2016-09-21T19:30:21.000Z
2016-09-21T19:30:21.000Z
src/Modules/Utilities/coordinate_tools.py
bopopescu/PyHouse_1
6444ed0b4c38ab59b9e419e4d54d65d598e6a54e
[ "MIT" ]
null
null
null
src/Modules/Utilities/coordinate_tools.py
bopopescu/PyHouse_1
6444ed0b4c38ab59b9e419e4d54d65d598e6a54e
[ "MIT" ]
1
2020-07-23T11:13:36.000Z
2020-07-23T11:13:36.000Z
""" -*- test-case-name: PyHouse/src/Modules/Utilities/coordinate_tools.py -*- @name: PyHouse/src/Modules/Utilities/coordinate_tools.py @author: D. Brian Kimmel @contact: d.briankimmel@gmail.com @copyright: 2016-2016 by D. Brian Kimmel @date: Created on Jun 21, 2016 @licencse: MIT License @summa...
28.423077
102
0.600135
""" -*- test-case-name: PyHouse/src/Modules/Utilities/coordinate_tools.py -*- @name: PyHouse/src/Modules/Utilities/coordinate_tools.py @author: D. Brian Kimmel @contact: d.briankimmel@gmail.com @copyright: 2016-2016 by D. Brian Kimmel @date: Created on Jun 21, 2016 @licencse: MIT License @summa...
0
885
0
43
0
0
0
38
89
b0903548d1a84b3ec125464556f089e2b14802e0
118
py
Python
pyalgo/algocryption/compiled_functions/compiled_functions.py
gilad-dotan/pyalgo_pkg
132ff3c032c3fc0ae910201611e5d2cde387eb74
[ "MIT" ]
1
2021-04-01T08:59:30.000Z
2021-04-01T08:59:30.000Z
pyalgo/algocryption/compiled_functions/compiled_functions.py
gilad-dotan/pyalgo_pkg
132ff3c032c3fc0ae910201611e5d2cde387eb74
[ "MIT" ]
null
null
null
pyalgo/algocryption/compiled_functions/compiled_functions.py
gilad-dotan/pyalgo_pkg
132ff3c032c3fc0ae910201611e5d2cde387eb74
[ "MIT" ]
null
null
null
# the pre compiled functions would be written here # only the algocryption module can access these complied functions
39.333333
66
0.822034
# the pre compiled functions would be written here # only the algocryption module can access these complied functions
0
0
0
0
0
0
0
0
0
77a8b60002777297117b55b355863c7bb7ef4848
872
py
Python
api_server/enviroment/enviroment.py
RobertoRosa7/python
449f3908a38814ec7ec3b3ce1051b8abe70069d2
[ "MIT" ]
null
null
null
api_server/enviroment/enviroment.py
RobertoRosa7/python
449f3908a38814ec7ec3b3ce1051b8abe70069d2
[ "MIT" ]
2
2020-07-19T15:36:35.000Z
2022-02-02T20:30:16.000Z
api_server/enviroment/enviroment.py
RobertoRosa7/python
449f3908a38814ec7ec3b3ce1051b8abe70069d2
[ "MIT" ]
null
null
null
import os, sys sys.path.append(os.path.abspath(os.getcwd())) from pymongo import MongoClient API = 'http://localhost:4200' # frontend api PRIMEIROAPP_API_DEV = os.environ.get('PRIMEIROAPP_API_DEV') PRIMEIROAPP_API_PROD = os.environ.get('PRIMEIROAPP_API_PROD') conn = MongoClient(host=PRIMEIROAPP_API_DEV, port=27017...
43.6
285
0.792431
import os, sys sys.path.append(os.path.abspath(os.getcwd())) from pymongo import MongoClient API = 'http://localhost:4200' # frontend api PRIMEIROAPP_API_DEV = os.environ.get('PRIMEIROAPP_API_DEV') PRIMEIROAPP_API_PROD = os.environ.get('PRIMEIROAPP_API_PROD') conn = MongoClient(host=PRIMEIROAPP_API_DEV, port=27017...
0
0
0
0
0
0
0
0
0
044806f797125af3269ae09a8e5594ea984b2271
1,298
py
Python
analyzer/utils/nlp_factory.py
cut4cut/cul_trip
f56a0b1865c4b6b5cb79c073bb171a819b607c4e
[ "MIT" ]
null
null
null
analyzer/utils/nlp_factory.py
cut4cut/cul_trip
f56a0b1865c4b6b5cb79c073bb171a819b607c4e
[ "MIT" ]
null
null
null
analyzer/utils/nlp_factory.py
cut4cut/cul_trip
f56a0b1865c4b6b5cb79c073bb171a819b607c4e
[ "MIT" ]
null
null
null
import logging log = logging.getLogger(__name__)
25.45098
82
0.660247
import re import nltk import gensim import logging from pymystem3 import Mystem from string import punctuation from nltk.corpus import stopwords log = logging.getLogger(__name__) def clean_html(text: str) -> str: regexp = re.compile('<.*?>|[a-zA-Z]+|&|;') return re.sub(regexp, '', text) def preprocess_text...
4
0
0
0
0
1,039
0
-2
202
442cb0c494deec67f842f872720e741951f3f855
867
py
Python
lib/googlecloudsdk/sql/tools/ssl_certs/__init__.py
bopopescu/google-cloud-sdk
b34e6a18f1e89673508166acce816111c3421e4b
[ "Apache-2.0" ]
null
null
null
lib/googlecloudsdk/sql/tools/ssl_certs/__init__.py
bopopescu/google-cloud-sdk
b34e6a18f1e89673508166acce816111c3421e4b
[ "Apache-2.0" ]
null
null
null
lib/googlecloudsdk/sql/tools/ssl_certs/__init__.py
bopopescu/google-cloud-sdk
b34e6a18f1e89673508166acce816111c3421e4b
[ "Apache-2.0" ]
1
2020-07-24T20:04:47.000Z
2020-07-24T20:04:47.000Z
# Copyright 2013 Google Inc. All Rights Reserved. """Provide commands for managing SSL certificates of Cloud SQL instances."""
27.967742
77
0.701269
# Copyright 2013 Google Inc. All Rights Reserved. """Provide commands for managing SSL certificates of Cloud SQL instances.""" from googlecloudsdk.calliope import base class SslCerts(base.Group): """Provide commands for managing SSL certificates of Cloud SQL instances. Provide commands for managing SSL certif...
0
398
0
274
0
0
0
19
46
447cd0fd1144a985b45bfcd0b776be5aeb960987
6,257
py
Python
pyglet-fixed/window/cocoa/pyglet_textview.py
briggsmatthew/Wallpaper-Downloader
d8a22e02f35a5436566d14c3bdc6dd65fcddd3eb
[ "MIT" ]
1
2016-11-16T17:22:48.000Z
2016-11-16T17:22:48.000Z
pyglet-fixed/window/cocoa/pyglet_textview.py
briggsmatthew/Wallpaper-Downloader
d8a22e02f35a5436566d14c3bdc6dd65fcddd3eb
[ "MIT" ]
1
2018-08-27T22:31:16.000Z
2018-08-27T22:31:16.000Z
pyglet-fixed/window/cocoa/pyglet_textview.py
briggsmatthew/Wallpaper-Downloader
d8a22e02f35a5436566d14c3bdc6dd65fcddd3eb
[ "MIT" ]
1
2019-09-06T03:05:35.000Z
2019-09-06T03:05:35.000Z
NSArray = ObjCClass('NSArray') NSApplication = ObjCClass('NSApplication') # This custom NSTextView subclass is used for capturing all of the # on_text, on_text_motion, and on_text_motion_select events. PygletTextView = ObjCClass('PygletTextView')
39.352201
94
0.704171
import unicodedata from pyglet.window import key from pyglet.libs.darwin.cocoapy import * NSArray = ObjCClass('NSArray') NSApplication = ObjCClass('NSApplication') # This custom NSTextView subclass is used for capturing all of the # on_text, on_text_motion, and on_text_motion_select events. class PygletTextView_Imp...
0
4,934
0
958
0
0
0
24
90
0f397ddb2cd34001830ecfdfe2903018b622dff3
893
py
Python
server.py
cristoferz/oqem
cab5c8e9254331cb466d46d5749ca43466e8ca0e
[ "Apache-2.0" ]
null
null
null
server.py
cristoferz/oqem
cab5c8e9254331cb466d46d5749ca43466e8ca0e
[ "Apache-2.0" ]
null
null
null
server.py
cristoferz/oqem
cab5c8e9254331cb466d46d5749ca43466e8ca0e
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python if __name__ == "__main__": from sys import argv if len(argv) == 2: run(port=int(argv[1])) else: run()
33.074074
114
0.711086
#!/usr/bin/env python from BaseHTTPServer import HTTPServer from threading import Thread from webserver.context import RequestHandler class ThreadedHTTPServer(HTTPServer): def process_request(self, request, client_address): thread = Thread(target=self.__new_request, args=(self.RequestHandlerClass, request,...
0
0
0
365
0
205
0
46
120
f3ff14eca52156dbabb07ee7961cf2e47065293b
18,466
py
Python
Assignment 3/tak.py
xjyssg/AI-assignment
d79f37352edb11c8eabd02dd36677302229dfadf
[ "MIT" ]
null
null
null
Assignment 3/tak.py
xjyssg/AI-assignment
d79f37352edb11c8eabd02dd36677302229dfadf
[ "MIT" ]
null
null
null
Assignment 3/tak.py
xjyssg/AI-assignment
d79f37352edb11c8eabd02dd36677302229dfadf
[ "MIT" ]
1
2018-10-07T20:27:57.000Z
2018-10-07T20:27:57.000Z
""" Define the number of stones can capstones for each board size. """ STONES = { 3: (10,0), 4: (15,0), 5: (21,1), 6: (30,1), 8: (50,2) } """ Define constants representing flat stones, standing stones and cap stones. """ FLAT_STONE = 0 STANDING_STONE = 1 CAP_STONE = 2 TYPES = ['-', '|', '*'] """ Define t...
32.003466
176
0.59022
from state import State from mystack import Stack from myqueue import Queue """ Define the number of stones can capstones for each board size. """ STONES = { 3: (10,0), 4: (15,0), 5: (21,1), 6: (30,1), 8: (50,2) } """ Define constants representing flat stones, standing stones and cap stones. """ FLAT_STONE...
0
0
0
16,996
0
874
0
10
111
fc5060d2b2feab170585d068f44aadadbe851b21
2,968
py
Python
scheduler/tests/jobrequester_test.py
Yixiao99/deep-learning-containers
01f078adf5abfb92e802b326511981bdd4a8c85c
[ "Apache-2.0" ]
383
2020-05-19T18:09:10.000Z
2022-03-29T22:41:05.000Z
scheduler/tests/jobrequester_test.py
Yixiao99/deep-learning-containers
01f078adf5abfb92e802b326511981bdd4a8c85c
[ "Apache-2.0" ]
551
2020-05-27T17:25:50.000Z
2022-03-31T18:00:35.000Z
scheduler/tests/jobrequester_test.py
ashahba/deep-learning-containers
48c3948b3d11f4fe2aac6bb25e5d82230d777076
[ "Apache-2.0" ]
263
2020-05-19T18:17:12.000Z
2022-03-29T22:41:10.000Z
import concurrent.futures import logging import os import sys import boto3 import log_return from job_requester import JobRequester LOGGER = logging.getLogger(__name__) LOGGER.setLevel(logging.DEBUG) LOGGER.addHandler(logging.StreamHandler(sys.stdout)) TEST_IMAGE = "763104351884.dkr.ecr.us-west-2.amazonaws.com/t...
35.759036
120
0.722372
import concurrent.futures import logging import os import sys import boto3 import log_return from job_requester import JobRequester LOGGER = logging.getLogger(__name__) LOGGER.setLevel(logging.DEBUG) LOGGER.addHandler(logging.StreamHandler(sys.stdout)) TEST_IMAGE = "763104351884.dkr.ecr.us-west-2.amazonaws.com/t...
0
0
0
0
0
0
0
0
0
0e533f4771e19bea8c54b52b140c1909cbaff6b9
1,846
py
Python
src/database/database.py
grigorjevas/Discogs-price-prediction
f1173cba9ed3aa48b1db508bc66d9f768118ec23
[ "MIT" ]
5
2021-08-22T12:41:16.000Z
2022-02-22T21:50:02.000Z
src/database/database.py
grigorjevas/Discogs-price-prediction
f1173cba9ed3aa48b1db508bc66d9f768118ec23
[ "MIT" ]
null
null
null
src/database/database.py
grigorjevas/Discogs-price-prediction
f1173cba9ed3aa48b1db508bc66d9f768118ec23
[ "MIT" ]
null
null
null
from dotenv import load_dotenv load_dotenv()
29.774194
116
0.604009
from dotenv import load_dotenv import os from psycopg2 import connect, OperationalError load_dotenv() class Database: def __init__(self): """ Database class. Available methods: * connect * execute_query * execute_query_and_fetch """ self...
0
0
0
1,720
0
0
0
13
67
853c982d62eb798a237e5159657a7222b848e688
4,817
py
Python
deploy/examples/migrationcontainer/migration.py
jakedt/dba-operator
5f4abcc490b05e5490fdbb704b0e20dbf0821e36
[ "Apache-2.0" ]
null
null
null
deploy/examples/migrationcontainer/migration.py
jakedt/dba-operator
5f4abcc490b05e5490fdbb704b0e20dbf0821e36
[ "Apache-2.0" ]
null
null
null
deploy/examples/migrationcontainer/migration.py
jakedt/dba-operator
5f4abcc490b05e5490fdbb704b0e20dbf0821e36
[ "Apache-2.0" ]
null
null
null
import os import sys import logging import argparse import pymysql.cursors FORMAT = '%(asctime)s [%(process)d] [%(levelname)s] [%(name)s] %(message)s' TABLE_DEF = """ CREATE TABLE `alembic_version` ( `version_num` varchar(255) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=UTF8MB4 COLLATE=utf8mb4_bin; """ PROM_LABEL_...
29.552147
82
0.653311
import os import sys import logging import time import argparse import re import pymysql.cursors import pymysql.err from prometheus_client import CollectorRegistry, Gauge, Counter, push_to_gateway FORMAT = '%(asctime)s [%(process)d] [%(levelname)s] [%(name)s] %(message)s' TABLE_DEF = """ CREATE TABLE `alembic_vers...
0
0
0
0
0
2,712
0
34
181
3ec6be15ac763ee168cf5cd5303e3d0bef0039b5
3,589
py
Python
minecraft_monitor/whitelist.py
iwcharlton/minecraft-monitor
fd4c10213bfab8c45a1c2884ef2f2fffd77b2e5b
[ "MIT" ]
null
null
null
minecraft_monitor/whitelist.py
iwcharlton/minecraft-monitor
fd4c10213bfab8c45a1c2884ef2f2fffd77b2e5b
[ "MIT" ]
null
null
null
minecraft_monitor/whitelist.py
iwcharlton/minecraft-monitor
fd4c10213bfab8c45a1c2884ef2f2fffd77b2e5b
[ "MIT" ]
null
null
null
#!/usr/bin/env python ''' The whitelist object is for reading the standard minecraft whitelist.json, and also maintaining a blacklist.json. '''
31.761062
89
0.648091
#!/usr/bin/env python import json import os ''' The whitelist object is for reading the standard minecraft whitelist.json, and also maintaining a blacklist.json. ''' class Whitelist(): def __init__(self, location): self.location = location self.disk_whitelist = [] self.whitelist = None self.disk_blac...
0
0
0
3,400
0
0
0
-22
66
717590a396e6947a38a879746af39da4f3629398
776
py
Python
linda/builder_advanced/urls.py
cbotsikas/LindaWorkbench
b2bfa091fb4ec80ac35b3f68edf46780c1e9ffea
[ "MIT" ]
null
null
null
linda/builder_advanced/urls.py
cbotsikas/LindaWorkbench
b2bfa091fb4ec80ac35b3f68edf46780c1e9ffea
[ "MIT" ]
null
null
null
linda/builder_advanced/urls.py
cbotsikas/LindaWorkbench
b2bfa091fb4ec80ac35b3f68edf46780c1e9ffea
[ "MIT" ]
null
null
null
__author__ = 'dimitris' """ URLS for the Advanced Builder """ from django.conf.urls import patterns, url from builder_advanced import views urlpatterns = patterns('', # Basic pages url(r'^$', views.index, name='advanced-builder-index'), # API cal...
33.73913
101
0.537371
__author__ = 'dimitris' """ URLS for the Advanced Builder """ from django.conf.urls import patterns, include, url from builder_advanced import views urlpatterns = patterns('', # Basic pages url(r'^$', views.index, name='advanced-builder-index'), ...
0
0
0
0
0
0
0
9
0
26c004179ee0e44bc1b547fb0fe2556ca35299be
1,332
py
Python
server/coffee_book/serializers.py
carter-harris/CoffeeBook
79e20ac6abbd3c1d1f156d4b8dffb47b1d548df7
[ "MIT" ]
null
null
null
server/coffee_book/serializers.py
carter-harris/CoffeeBook
79e20ac6abbd3c1d1f156d4b8dffb47b1d548df7
[ "MIT" ]
null
null
null
server/coffee_book/serializers.py
carter-harris/CoffeeBook
79e20ac6abbd3c1d1f156d4b8dffb47b1d548df7
[ "MIT" ]
null
null
null
from django.contrib.auth.models import User
39.176471
156
0.686937
from rest_framework import serializers from django.contrib.auth.models import User from coffee_book.models import User, Coffee, BrewMethod, Review, Region class UserSerializer(serializers.ModelSerializer): class Meta: model = User fields = ('id', 'url', 'username', 'user_type', 'first_name', 'last_...
0
0
0
1,062
0
0
0
67
159
293dd3266bb0518f0b51ded116194d1d499836e0
691
py
Python
wintria/lib/swap_logo.py
codelucas/wintria.com
99c3f20d64e6ecf3d02cf0117233de349274a607
[ "MIT" ]
2
2017-10-04T20:53:09.000Z
2021-11-12T10:02:32.000Z
wintria/lib/swap_logo.py
codelucas/wintria.com
99c3f20d64e6ecf3d02cf0117233de349274a607
[ "MIT" ]
null
null
null
wintria/lib/swap_logo.py
codelucas/wintria.com
99c3f20d64e6ecf3d02cf0117233de349274a607
[ "MIT" ]
null
null
null
import sys import cStringIO import urllib2 from img_utils import prepare_image from PIL import Image from wintria.wintria.settings import PROJECT_ROOT thumbnail_size = 100, 100 dest_thumb_url = PROJECT_ROOT + 'wintria/wintria/logo_static/logo_thumbs/' dest_gen_url = PROJECT_ROOT + 'wintria/wintria/logo_static/logob...
24.678571
74
0.752533
import sys import cStringIO import urllib2 from img_utils import prepare_image from PIL import Image from wintria.wintria.settings import PROJECT_ROOT thumbnail_size = 100, 100 dest_thumb_url = PROJECT_ROOT + 'wintria/wintria/logo_static/logo_thumbs/' dest_gen_url = PROJECT_ROOT + 'wintria/wintria/logo_static/logob...
0
0
0
0
0
0
0
0
0
0a6332c3d5b912a3397508aa8754164b4481303c
47,973
py
Python
modules/s3db/po.py
Mkgdukoo/aidiq
840b97651d79352878d5a777067a915985617378
[ "MIT" ]
1
2018-06-06T12:11:25.000Z
2018-06-06T12:11:25.000Z
modules/s3db/po.py
Mkgdukoo/aidiq
840b97651d79352878d5a777067a915985617378
[ "MIT" ]
null
null
null
modules/s3db/po.py
Mkgdukoo/aidiq
840b97651d79352878d5a777067a915985617378
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Sahana Eden Population Outreach Models @copyright: 2015-2021 (c) Sahana Software Foundation @license: MIT Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the S...
42.007881
145
0.39147
# -*- coding: utf-8 -*- """ Sahana Eden Population Outreach Models @copyright: 2015-2021 (c) Sahana Software Foundation @license: MIT Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the S...
0
5,320
0
36,525
0
1,949
0
35
178
7a5e56c55559adf12d890e6b7072abf9a91e3aee
768
py
Python
backend/routers/cv/cv.py
izdwuut/ceevee
bf3803bea88fa90101f8055fcc8168f572338e2d
[ "MIT" ]
1
2021-05-12T19:56:49.000Z
2021-05-12T19:56:49.000Z
backend/routers/cv/cv.py
izdwuut/ceevee
bf3803bea88fa90101f8055fcc8168f572338e2d
[ "MIT" ]
1
2020-10-31T19:59:55.000Z
2020-10-31T20:05:57.000Z
backend/routers/cv/cv.py
resumik/resumik
bf3803bea88fa90101f8055fcc8168f572338e2d
[ "MIT" ]
1
2021-03-10T14:22:12.000Z
2021-03-10T14:22:12.000Z
from fastapi import APIRouter cv_router = APIRouter()
24
65
0.730469
from fastapi import APIRouter from pydantic import UUID4 from models.cv.cv import CVModel, CV_Pydantic from models.cv.details import DetailsModel cv_router = APIRouter() @cv_router.get("/{cv_id}") async def get_cv(cv_id: UUID4): cv = await CVModel.get(id=cv_id) return await CV_Pydantic.from_tortoise_orm(cv) ...
0
522
0
0
0
0
0
50
135
4197f99e4c9e1a4eb00ae71ec0a2e57c570f6414
3,690
py
Python
ezodf2/whitespaces.py
iwschris/ezodf2
061c4aa3f26e9157ad46155d8ce92db7187b0574
[ "MIT" ]
4
2015-03-15T22:32:35.000Z
2019-12-23T12:13:13.000Z
ezodf2/whitespaces.py
iwschris/ezodf2
061c4aa3f26e9157ad46155d8ce92db7187b0574
[ "MIT" ]
3
2017-08-17T09:36:42.000Z
2021-12-13T19:43:28.000Z
ezodf2/whitespaces.py
iwschris/ezodf2
061c4aa3f26e9157ad46155d8ce92db7187b0574
[ "MIT" ]
null
null
null
#!/usr/bin/env python #coding:utf-8 # Purpose: whitespace processing # Created: 06.01.2011 # Copyright (C) 2011, Manfred Moitzi # License: MIT from __future__ import unicode_literals, print_function, division __author__ = "mozman <mozman@gmx.at>" WhitespaceEncoder = _WhitespaceEncoder()
25.102041
66
0.56206
#!/usr/bin/env python #coding:utf-8 # Purpose: whitespace processing # Created: 06.01.2011 # Copyright (C) 2011, Manfred Moitzi # License: MIT from __future__ import unicode_literals, print_function, division __author__ = "mozman <mozman@gmx.at>" from .compatibility import tostr from .xmlns import register_c...
0
1,171
0
1,818
0
118
0
38
246
7ec208231c80a6789a34bfeabdc98108c3394d56
963
py
Python
outlier.py
td236/Fisher-s-linear-discriminant
21a4c2a1f270f9ad579626caf6270b8ce0cd9d79
[ "MIT" ]
null
null
null
outlier.py
td236/Fisher-s-linear-discriminant
21a4c2a1f270f9ad579626caf6270b8ce0cd9d79
[ "MIT" ]
null
null
null
outlier.py
td236/Fisher-s-linear-discriminant
21a4c2a1f270f9ad579626caf6270b8ce0cd9d79
[ "MIT" ]
null
null
null
import pandas as pd df = pd.read_csv('data_banknote_authentication.txt') outliers(1.5, df) outliers(2.5, df) print() authentic = df[df['class'] == 0] # class 0 fake = df[df['class'] == 1] # class 1 outliers(1.5, authentic) outliers(2.0, authentic) outliers(2.5, authentic) print() outliers(1.5, fake) outliers(2....
24.692308
56
0.575286
import pandas as pd df = pd.read_csv('data_banknote_authentication.txt') def outliers(factor, df): print("factor: ", factor) for column in df: if column == "class": break columnSeriesObj = df[column] Q1 = columnSeriesObj.quantile(0.25) Q3 = columnSeriesObj.quantile(...
0
0
0
0
0
591
0
0
23
67060ad8973e2b1b3ea5ebbdaf76a6e358959b84
2,481
py
Python
demo-004.py
XuekuanWang/sparse-001
b4d597d084dc2c876afe2c8ab63f7d25d1900fca
[ "Apache-2.0" ]
null
null
null
demo-004.py
XuekuanWang/sparse-001
b4d597d084dc2c876afe2c8ab63f7d25d1900fca
[ "Apache-2.0" ]
null
null
null
demo-004.py
XuekuanWang/sparse-001
b4d597d084dc2c876afe2c8ab63f7d25d1900fca
[ "Apache-2.0" ]
null
null
null
import math import numpy.linalg import numpy as np def shrink(X, tau): """ Apply the shrinkage operator the the elements of X. Returns V such that V[i,j] = max(abs(X[i,j]) - tau,0). """ V = np.copy(X).reshape(X.size) for i in range(V.size): V[i] = math.copysign(max(abs(V[i]) - tau, 0), ...
20.848739
88
0.526401
import math import numpy.linalg import numpy as np def shrink(X, tau): """ Apply the shrinkage operator the the elements of X. Returns V such that V[i,j] = max(abs(X[i,j]) - tau,0). """ V = np.copy(X).reshape(X.size) for i in range(V.size): V[i] = math.copysign(max(abs(V[i]) - tau, 0), ...
0
0
0
0
0
184
0
0
23
afd2de431b1d5fc7842a17d05064220c3e9fbaad
24
py
Python
starkit/fitkit/optimizers/__init__.py
dchu808/starkit
1940683ef231cee54be2c703d4a7611a3991d8b7
[ "BSD-3-Clause" ]
12
2018-05-15T14:59:27.000Z
2022-01-11T16:44:43.000Z
starkit/fitkit/optimizers/__init__.py
dchu808/starkit
1940683ef231cee54be2c703d4a7611a3991d8b7
[ "BSD-3-Clause" ]
27
2018-03-13T10:45:38.000Z
2020-08-03T20:47:31.000Z
starkit/fitkit/optimizers/__init__.py
dchu808/starkit
1940683ef231cee54be2c703d4a7611a3991d8b7
[ "BSD-3-Clause" ]
17
2018-03-13T10:06:53.000Z
2019-06-27T02:02:10.000Z
__author__ = 'wkerzend'
12
23
0.75
__author__ = 'wkerzend'
0
0
0
0
0
0
0
0
0
cd584731c47ab0375b79f468f280e5a2e5064fbd
20,131
py
Python
tests/test_cli_cache_connector.py
NERSC/pytokio
22244718cf82567c50620cbe0e635dfc990de36b
[ "BSD-3-Clause-LBNL" ]
22
2017-11-14T01:30:48.000Z
2022-01-01T21:51:00.000Z
tests/test_cli_cache_connector.py
glennklockwood/pytokio
22244718cf82567c50620cbe0e635dfc990de36b
[ "BSD-3-Clause-LBNL" ]
39
2017-12-20T01:42:19.000Z
2020-05-28T21:17:26.000Z
tests/test_cli_cache_connector.py
glennklockwood/pytokio
22244718cf82567c50620cbe0e635dfc990de36b
[ "BSD-3-Clause-LBNL" ]
5
2018-02-06T19:39:19.000Z
2019-07-10T01:20:26.000Z
#!/usr/bin/env python """ Test each connector's standalone CLI cache tool """ import json try: import StringIO as io except ImportError: import io import datetime import pandas import nose try: import elasticsearch.exceptions _HAVE_ELASTICSEARCH = True except ImportError: _HAVE_ELASTICSEARCH = Fals...
35.693262
144
0.584422
#!/usr/bin/env python """ Test each connector's standalone CLI cache tool """ import os import json import sqlite3 try: import StringIO as io except ImportError: import io import datetime import pandas import nose try: import elasticsearch.exceptions _HAVE_ELASTICSEARCH = True except ImportError: ...
0
3,080
0
0
0
0
0
-19
160
92436b9b7c47ccddc497c1620da5fc07684e0c9f
2,133
py
Python
test.py
LaudateCorpus1/accimage
15ec9d4a95060ee54ab80fa3a7ae57a9ca7763ff
[ "BSD-2-Clause" ]
317
2017-01-21T07:04:53.000Z
2022-03-18T16:10:11.000Z
test.py
LaudateCorpus1/accimage
15ec9d4a95060ee54ab80fa3a7ae57a9ca7763ff
[ "BSD-2-Clause" ]
30
2017-03-15T11:35:29.000Z
2021-09-18T13:21:05.000Z
test.py
LaudateCorpus1/accimage
15ec9d4a95060ee54ab80fa3a7ae57a9ca7763ff
[ "BSD-2-Clause" ]
42
2017-04-25T14:42:42.000Z
2022-03-02T01:27:10.000Z
import numpy as np import os ACCIMAGE_SAVE = os.environ.get('ACCIMAGE_SAVE', '') if len(ACCIMAGE_SAVE) and ACCIMAGE_SAVE.lower() not in {'0', 'false', 'no'}: SAVE_IMAGES = True else: SAVE_IMAGES = False def image_to_np(image): """ Returns: np.ndarray: Image converted to array with shape (width...
27
84
0.687764
import accimage import numpy as np import imageio import os ACCIMAGE_SAVE = os.environ.get('ACCIMAGE_SAVE', '') if len(ACCIMAGE_SAVE) and ACCIMAGE_SAVE.lower() not in {'0', 'false', 'no'}: SAVE_IMAGES = True else: SAVE_IMAGES = False def image_to_np(image): """ Returns: np.ndarray: Image conve...
0
0
0
0
0
1,431
0
-13
182
f0b4ba278a3ddabe3ebfa7f3478caa2f80cc3931
524
py
Python
seqsearch/databases/nr.py
xapple/seqsearch
cf3a7691285d245829bc9c6d18354e01e631fc12
[ "MIT" ]
null
null
null
seqsearch/databases/nr.py
xapple/seqsearch
cf3a7691285d245829bc9c6d18354e01e631fc12
[ "MIT" ]
null
null
null
seqsearch/databases/nr.py
xapple/seqsearch
cf3a7691285d245829bc9c6d18354e01e631fc12
[ "MIT" ]
1
2015-01-21T14:38:46.000Z
2015-01-21T14:38:46.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Written by Lucas Sinclair. MIT Licensed. Contact at www.sinclair.bio """ # Built-in modules # # Internal modules # # First party modules # ###############################################################################
20.96
79
0.574427
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Written by Lucas Sinclair. MIT Licensed. Contact at www.sinclair.bio """ # Built-in modules # # Internal modules # # First party modules # ############################################################################### class NonRedundant(object): """ The N...
0
0
0
226
0
0
0
0
22
5fa7fff36d6cb6d8b2047e3f41b22a2469bc10e3
3,121
py
Python
ops-implementations/sagemaker-service/swagger_server/test_mocked/test_info_controller.py
IBM/open-prediction-service-hub
8b7db98f46a81b731d0dddfde8e3fb6f91ebc71a
[ "Apache-2.0" ]
1
2021-09-14T18:40:33.000Z
2021-09-14T18:40:33.000Z
ops-implementations/sagemaker-service/swagger_server/test_mocked/test_info_controller.py
IBM/open-prediction-service-hub
8b7db98f46a81b731d0dddfde8e3fb6f91ebc71a
[ "Apache-2.0" ]
7
2021-04-23T13:41:39.000Z
2021-08-12T09:33:10.000Z
ops-implementations/sagemaker-service/swagger_server/test_mocked/test_info_controller.py
IBM/open-prediction-service-hub
8b7db98f46a81b731d0dddfde8e3fb6f91ebc71a
[ "Apache-2.0" ]
5
2020-12-10T14:27:23.000Z
2022-03-29T08:44:22.000Z
#!/usr/bin/env python3 # # Copyright 2020 IBM # 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 t...
35.873563
123
0.659084
#!/usr/bin/env python3 # # Copyright 2020 IBM # 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 t...
0
1,404
0
589
0
0
0
194
200
0dbf868fbe306d0bc0e56fc30248f9f7e2a22e93
4,694
py
Python
Competitive Programming/System Design/Operations on Tree.py
shreejitverma/GeeksforGeeks
d7bcb166369fffa9a031a258e925b6aff8d44e6c
[ "MIT" ]
2
2022-02-18T05:14:28.000Z
2022-03-08T07:00:08.000Z
Competitive Programming/System Design/Operations on Tree.py
shivaniverma1/Competitive-Programming-1
d7bcb166369fffa9a031a258e925b6aff8d44e6c
[ "MIT" ]
6
2022-01-13T04:31:04.000Z
2022-03-12T01:06:16.000Z
Competitive Programming/System Design/Operations on Tree.py
shivaniverma1/Competitive-Programming-1
d7bcb166369fffa9a031a258e925b6aff8d44e6c
[ "MIT" ]
2
2022-02-14T19:53:53.000Z
2022-02-18T05:14:30.000Z
'''https://leetcode.com/problems/operations-on-tree/ 1993. Operations on Tree Medium 152 34 Add to List Share You are given a tree with n nodes numbered from 0 to n - 1 in the form of a parent array parent where parent[i] is the parent of the ith node. The root of the tree is node 0, so parent[0] = -1 since it has ...
36.387597
318
0.619088
'''https://leetcode.com/problems/operations-on-tree/ 1993. Operations on Tree Medium 152 34 Add to List Share You are given a tree with n nodes numbered from 0 to n - 1 in the form of a parent array parent where parent[i] is the parent of the ith node. The root of the tree is node 0, so parent[0] = -1 since it has ...
0
0
0
1,438
0
0
0
0
23
5d5d2b839a17ba0b56b9d88bd34ce723f3e7d142
2,589
py
Python
vsts/vsts/build/v4_0/models/build_controller.py
kenkuo/azure-devops-python-api
9e920bd25e938fa89ff7f60153e5b9e113ca839d
[ "MIT" ]
null
null
null
vsts/vsts/build/v4_0/models/build_controller.py
kenkuo/azure-devops-python-api
9e920bd25e938fa89ff7f60153e5b9e113ca839d
[ "MIT" ]
null
null
null
vsts/vsts/build/v4_0/models/build_controller.py
kenkuo/azure-devops-python-api
9e920bd25e938fa89ff7f60153e5b9e113ca839d
[ "MIT" ]
null
null
null
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
43.881356
159
0.579761
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
0
0
0
1,936
0
0
0
52
46
d8de67bb1a6b4309fef7f7de4735e4ee01fb2e3e
3,020
py
Python
configs/_xm/cascade_x101_fpn.py
991166chun/TeaDisease
3cf6499617c01b3a22babcbf65e8241c9cac3c06
[ "Apache-2.0" ]
null
null
null
configs/_xm/cascade_x101_fpn.py
991166chun/TeaDisease
3cf6499617c01b3a22babcbf65e8241c9cac3c06
[ "Apache-2.0" ]
null
null
null
configs/_xm/cascade_x101_fpn.py
991166chun/TeaDisease
3cf6499617c01b3a22babcbf65e8241c9cac3c06
[ "Apache-2.0" ]
null
null
null
_base_ = [ '../_base_/models/cascade_rcnn_r50_fpn.py', './my_voc.py', './my_runtime.py' ] model = dict( pretrained='open-mmlab://resnext101_32x4d', backbone=dict( type='ResNeXt', depth=101, num_stages=4, out_indices=(0, 1, 2, 3), frozen_stages=1, norm_...
33.932584
79
0.469868
_base_ = [ '../_base_/models/cascade_rcnn_r50_fpn.py', './my_voc.py', './my_runtime.py' ] model = dict( pretrained='open-mmlab://resnext101_32x4d', backbone=dict( type='ResNeXt', depth=101, num_stages=4, out_indices=(0, 1, 2, 3), frozen_stages=1, norm_...
0
0
0
0
0
0
0
0
0
a348e4213f1690758954dd2e169e3648444ed0d6
909
py
Python
setup.py
NamorNiradnug/SimpleParser
4b127902808007015b8c9b322b348215977e246f
[ "MIT" ]
1
2022-03-17T01:59:13.000Z
2022-03-17T01:59:13.000Z
setup.py
NamorNiradnug/SimpleParser
4b127902808007015b8c9b322b348215977e246f
[ "MIT" ]
null
null
null
setup.py
NamorNiradnug/SimpleParser
4b127902808007015b8c9b322b348215977e246f
[ "MIT" ]
null
null
null
import setuptools with open("README.md") as readme: long_description = readme.read() setuptools.setup( name="simpleparser", version="0.1.3", author="NamorNiradnug", author_email="roma57linux@gmail.com", packages=["simpleparser"], tests_require=["test.py"], description="Simple library w...
31.344828
85
0.672167
import setuptools with open("README.md") as readme: long_description = readme.read() setuptools.setup( name="simpleparser", version="0.1.3", author="NamorNiradnug", author_email="roma57linux@gmail.com", packages=["simpleparser"], tests_require=["test.py"], description="Simple library w...
0
0
0
0
0
0
0
0
0
d782cce0615c6d363effe44e194c6f8699d3af5e
1,099
py
Python
apps/odoo/lib/odoo-10.0.post20170615-py2.7.egg/odoo/addons/stock_account/models/stock_config_settings.py
gtfarng/Odoo_migrade
9cc28fae4c379e407645248a29d22139925eafe7
[ "Apache-2.0" ]
1
2019-12-19T01:53:13.000Z
2019-12-19T01:53:13.000Z
apps/odoo/lib/odoo-10.0.post20170615-py2.7.egg/odoo/addons/stock_account/models/stock_config_settings.py
gtfarng/Odoo_migrade
9cc28fae4c379e407645248a29d22139925eafe7
[ "Apache-2.0" ]
null
null
null
apps/odoo/lib/odoo-10.0.post20170615-py2.7.egg/odoo/addons/stock_account/models/stock_config_settings.py
gtfarng/Odoo_migrade
9cc28fae4c379e407645248a29d22139925eafe7
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details.
45.791667
130
0.720655
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo import api, fields, models class StockConfigSettings(models.TransientModel): _inherit = 'stock.config.settings' group_stock_inventory_valuation = fields.Selection([ (0, "Periodic inventory va...
0
154
0
784
0
0
0
15
46
55cf2b629e08d27bc037771f3beff948390d1f01
3,609
py
Python
app/__init__.py
samanyougarg/sample-rest-api
0d394a289810bc3ced3420076b7cb0f2de7d5997
[ "MIT" ]
3
2019-07-31T14:10:29.000Z
2020-04-18T14:36:42.000Z
app/__init__.py
samanyougarg/sample-rest-api
0d394a289810bc3ced3420076b7cb0f2de7d5997
[ "MIT" ]
null
null
null
app/__init__.py
samanyougarg/sample-rest-api
0d394a289810bc3ced3420076b7cb0f2de7d5997
[ "MIT" ]
2
2019-07-28T12:06:13.000Z
2022-02-16T06:02:13.000Z
import os from flask_mail import Mail from flask_sqlalchemy import SQLAlchemy from flask_login import LoginManager from flask_wtf import CsrfProtect from flask_compress import Compress from flask_oauthlib.provider import OAuth2Provider from flask_wtf import CsrfProtect basedir = os.path.abspath(os.path.dirname(__file_...
27.976744
80
0.689111
import os from flask import Flask from flask_mail import Mail from flask_sqlalchemy import SQLAlchemy from flask_login import LoginManager from flask_assets import Environment from flask_wtf import CsrfProtect from flask_compress import Compress from flask_rq import RQ from flask_oauthlib.provider import OAuth2Provider...
0
0
0
0
0
2,798
0
68
156
2011c7c7ff23822acfc226cef105dbe2a74083c7
3,596
py
Python
data_structures/heaps/array_based_binary_heap.py
vinta/fuck-coding-interviews
915ff55963430e81134a35f65f511e5684c52f11
[ "MIT" ]
590
2020-06-17T08:26:47.000Z
2022-03-30T18:47:32.000Z
data_structures/heaps/array_based_binary_heap.py
parvathirajan/fuck-coding-interviews
915ff55963430e81134a35f65f511e5684c52f11
[ "MIT" ]
12
2020-07-14T09:24:32.000Z
2020-11-02T03:43:47.000Z
data_structures/heaps/array_based_binary_heap.py
parvathirajan/fuck-coding-interviews
915ff55963430e81134a35f65f511e5684c52f11
[ "MIT" ]
75
2020-07-29T06:50:13.000Z
2022-03-13T16:14:57.000Z
# coding: utf-8 """ Binary Heap https://en.wikipedia.org/wiki/Binary_heap https://en.wikipedia.org/wiki/Heap_(data_structure) A binary heap is a special binary tree which satisfies following properties: - The tree is complete. - The parent's value is less than or equal to children's values. - The root's value would be...
32.990826
100
0.625973
# coding: utf-8 """ Binary Heap https://en.wikipedia.org/wiki/Binary_heap https://en.wikipedia.org/wiki/Heap_(data_structure) A binary heap is a special binary tree which satisfies following properties: - The tree is complete. - The parent's value is less than or equal to children's values. - The root's value would be...
0
0
0
2,792
0
0
0
0
22
6d0ba2881c02c55558b9a88c0cdc90ed083b7e54
3,640
py
Python
Easy_Image/pixabay.py
xjdeng/Easy_Facial_Recognition
f06c5013e0930c4d703845d7714f53871cef83e5
[ "MIT" ]
2
2018-05-24T17:04:47.000Z
2022-01-27T20:52:27.000Z
Easy_Image/pixabay.py
xjdeng/Easy_Facial_Recognition
f06c5013e0930c4d703845d7714f53871cef83e5
[ "MIT" ]
1
2020-03-29T16:42:10.000Z
2020-03-29T16:42:10.000Z
Easy_Image/pixabay.py
xjdeng/Easy_Facial_Recognition
f06c5013e0930c4d703845d7714f53871cef83e5
[ "MIT" ]
null
null
null
from sklearn.externals import joblib cache_filename = "pixabay_cache.pkl" api_key = None cache_update_interval = 3600 cache_expiry = 24*3600 cache = {} try: cache = joblib.load(cache_path()) if isinstance(cache, dict) == False: cache = create_cache() except IOError: cache = create_cache() upd...
28.661417
88
0.646978
from path import Path as path import pixabay as python_pixabay import tempfile from sklearn.externals import joblib import os import time import warnings import json import requests import numpy as np import re cache_filename = "pixabay_cache.pkl" api_key = None cache_update_interval = 3600 cache_expiry = 24*3600 cac...
0
0
0
0
0
2,430
0
-46
473
83e0e604f70f525d82c49328db5f84d43b7bd2f5
614
py
Python
pyskeleton/pyfile.py
wang502/pyskeleton
3044d61dd9e67f6443017ecfb7c3541f5f41b8d1
[ "MIT" ]
null
null
null
pyskeleton/pyfile.py
wang502/pyskeleton
3044d61dd9e67f6443017ecfb7c3541f5f41b8d1
[ "MIT" ]
1
2016-06-06T05:38:36.000Z
2016-06-06T05:38:36.000Z
pyskeleton/pyfile.py
wang502/pydeptree
3044d61dd9e67f6443017ecfb7c3541f5f41b8d1
[ "MIT" ]
null
null
null
""" pydeptree file.py -- contains functions to parses .py file -- extract function names, class names -- find what other functions a given function rely on @By Seth (Xiaohui) Wang @email: sethwang199418@gmail.com """ ''' class pyfile: def __init__(self, file_dir): self.file_dir = file_dir # find what ...
23.615385
63
0.656352
""" pydeptree file.py -- contains functions to parses .py file -- extract function names, class names -- find what other functions a given function rely on @By Seth (Xiaohui) Wang @email: sethwang199418@gmail.com """ ''' class pyfile: def __init__(self, file_dir): self.file_dir = file_dir # find what ...
0
0
0
0
0
0
0
0
0
95d56f805ed3455cd5bff3927e213970eb6b5bc7
11,659
py
Python
bot/reviewbot/tools/testing/testcases.py
reviewboard/ReviewBot
6c529706229da647cc8cdef27db75cebc0abf216
[ "MIT" ]
91
2015-04-30T21:00:40.000Z
2022-03-30T07:19:03.000Z
bot/reviewbot/tools/testing/testcases.py
reviewboard/ReviewBot
6c529706229da647cc8cdef27db75cebc0abf216
[ "MIT" ]
11
2015-01-08T13:48:21.000Z
2018-07-03T13:18:35.000Z
bot/reviewbot/tools/testing/testcases.py
reviewboard/ReviewBot
6c529706229da647cc8cdef27db75cebc0abf216
[ "MIT" ]
23
2015-04-03T17:17:00.000Z
2022-03-07T08:14:27.000Z
"""Base test case support for tools. Version Added: 3.0 """ from __future__ import unicode_literals
31.425876
79
0.564371
"""Base test case support for tools. Version Added: 3.0 """ from __future__ import unicode_literals import os import tempfile from copy import deepcopy from functools import wraps from unittest import SkipTest import kgb import six from reviewbot.config import config from reviewbot.repositories import GitRepos...
0
2,964
0
8,238
0
0
0
58
291
48263036a4ae9dffc08e7ebd8049a796b56e6de0
1,054
py
Python
code/yakindu/src-gen/cart/cart_statemachine_interfaces.py
samuelexferri/tvsw
ce61649546b23e86268143142a2d45375b06fcfe
[ "MIT" ]
null
null
null
code/yakindu/src-gen/cart/cart_statemachine_interfaces.py
samuelexferri/tvsw
ce61649546b23e86268143142a2d45375b06fcfe
[ "MIT" ]
9
2021-03-31T20:05:26.000Z
2021-10-04T12:27:50.000Z
code/yakindu/src-gen/cart/cart_statemachine_interfaces.py
samuelexferri/tvsw
ce61649546b23e86268143142a2d45375b06fcfe
[ "MIT" ]
null
null
null
"""Interfaces defined in the state chart model. The interfaces defined in the state chart model are represented as separate classes. """
18.172414
63
0.710626
"""Interfaces defined in the state chart model. The interfaces defined in the state chart model are represented as separate classes. """ class SCI_Interface: """Implementation of scope sci_interface. """ def __init__(self): self.reset = None self.exit = None self.order = None self.selectgeneric = None ...
0
0
0
888
0
0
0
0
23
ba596998bb17250c636379d582718007fccc4be7
520
py
Python
sell_staff/migrations/0002_auto_20201123_1455.py
Ishikashah2510/nirvaas_main
5eaf92756d06261a7f555b10aad864a34c9e761b
[ "MIT" ]
null
null
null
sell_staff/migrations/0002_auto_20201123_1455.py
Ishikashah2510/nirvaas_main
5eaf92756d06261a7f555b10aad864a34c9e761b
[ "MIT" ]
null
null
null
sell_staff/migrations/0002_auto_20201123_1455.py
Ishikashah2510/nirvaas_main
5eaf92756d06261a7f555b10aad864a34c9e761b
[ "MIT" ]
3
2020-12-30T11:35:22.000Z
2021-01-07T13:10:26.000Z
# Generated by Django 3.1.3 on 2020-11-23 09:25
26
156
0.655769
# Generated by Django 3.1.3 on 2020-11-23 09:25 import django.core.files.storage from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('sell_staff', '0001_initial'), ] operations = [ migrations.AlterField( model_name='items', ...
0
0
0
373
0
0
0
30
68
42b02546d446dc752a8de017e36e151146bb611a
1,008
py
Python
apprentice_learner/urls.py
afcarl/apprentice_learner_api
c59f4e6d6f03eb807d61a4bcfa1e5771d8b969cc
[ "MIT" ]
1
2019-04-22T16:38:57.000Z
2019-04-22T16:38:57.000Z
apprentice_learner/urls.py
afcarl/apprentice_learner_api
c59f4e6d6f03eb807d61a4bcfa1e5771d8b969cc
[ "MIT" ]
null
null
null
apprentice_learner/urls.py
afcarl/apprentice_learner_api
c59f4e6d6f03eb807d61a4bcfa1e5771d8b969cc
[ "MIT" ]
null
null
null
from django.conf.urls import url from django.conf import settings from django.conf.urls.static import static from apprentice_learner import views app_name = 'apprentice_api' urlpatterns = [ url(r'^create/$', views.create, name = "create"), url(r'^request/(?P<agent_id>[0-9]+)/$', views.request, name="request"), url...
53.052632
107
0.676587
from django.conf.urls import url from django.conf import settings from django.conf.urls.static import static from apprentice_learner import views app_name = 'apprentice_api' urlpatterns = [ url(r'^create/$', views.create, name = "create"), url(r'^request/(?P<agent_id>[0-9]+)/$', views.request, name="request"), url...
0
0
0
0
0
0
0
0
0
b77ad8cc5db628e76e31d19b2fa47cd72b004797
1,670
py
Python
cli/gardener_ci/_oci.py
mliepold/cc-utils
3f8c4b0d11d6a52d1605026f478371411daab81e
[ "BSD-3-Clause" ]
null
null
null
cli/gardener_ci/_oci.py
mliepold/cc-utils
3f8c4b0d11d6a52d1605026f478371411daab81e
[ "BSD-3-Clause" ]
null
null
null
cli/gardener_ci/_oci.py
mliepold/cc-utils
3f8c4b0d11d6a52d1605026f478371411daab81e
[ "BSD-3-Clause" ]
null
null
null
__cmd_name__ = 'oci'
22.266667
85
0.646707
import dataclasses import pprint import sys import ccc.oci import oci __cmd_name__ = 'oci' def cp(src:str, tgt:str): oci_client = ccc.oci.oci_client() oci.replicate_artifact( src_image_reference=src, tgt_image_reference=tgt, oci_client=oci_client, ) def ls(image: str): oci...
0
0
0
0
0
1,457
0
-40
226
dd9bbf8526198f00fb8980811e2cc9ecc05c908e
697
py
Python
sch/migrations/0001_initial.py
nikhilxifer/bloodbankmanagement
a31ce090c33fa2499f26ec685220d207d9f08394
[ "MIT" ]
null
null
null
sch/migrations/0001_initial.py
nikhilxifer/bloodbankmanagement
a31ce090c33fa2499f26ec685220d207d9f08394
[ "MIT" ]
null
null
null
sch/migrations/0001_initial.py
nikhilxifer/bloodbankmanagement
a31ce090c33fa2499f26ec685220d207d9f08394
[ "MIT" ]
null
null
null
# Generated by Django 3.1 on 2021-06-09 14:32
24.892857
79
0.519369
# Generated by Django 3.1 on 2021-06-09 14:32 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='search1', fields=[ ('ID', models.IntegerField...
0
0
0
585
0
0
0
19
46
ca2aafd31bdda323c2b2d51628c87574d4b747b8
1,720
py
Python
src/abstract_structures/queues/linked_queue.py
mlatifi/Python-and-Algorithms-and-Data-Structures
47fed555093b0797a5d8043573a3278028b26a2b
[ "MIT" ]
5
2017-08-03T06:33:49.000Z
2021-08-06T13:20:57.000Z
src/abstract_structures/queues/linked_queue.py
ritahu/Python-and-Algorithms-and-Data-Structures
d2c082d261a68b06f533703867ae8a90ac7f4df1
[ "MIT" ]
null
null
null
src/abstract_structures/queues/linked_queue.py
ritahu/Python-and-Algorithms-and-Data-Structures
d2c082d261a68b06f533703867ae8a90ac7f4df1
[ "MIT" ]
6
2017-04-27T13:30:49.000Z
2020-11-01T20:28:55.000Z
#!/usr/bin/env python __author__ = "bt3" ''' Queue acts as a container for nodes (objects) that are inserted and removed according FIFO''' if __name__ == '__main__': queue = LinkedQueue() print("Is the queue empty? ", queue.isEmpty()) print("Adding 0 to 10 in the queue...") for i in range(10): ...
21.234568
97
0.547093
#!/usr/bin/env python __author__ = "bt3" ''' Queue acts as a container for nodes (objects) that are inserted and removed according FIFO''' class Node(object): def __init__(self, value=None, pointer=None): self.value = value self.pointer = None class LinkedQueue(object): def __init__(self):...
0
0
0
1,077
0
0
0
0
46
132ae91e8cc24c13ceba95761dfe1777e9a63d5b
814
py
Python
Python/Python_Web_Development/FlaskMegaTutorial/microblog/migrations/versions/04f42852fee8_add_about_me_last_seen_fields_to_users_.py
nitin-cherian/LifeLongLearning
84084792058358365162c645742c70064a2d5fd6
[ "MIT" ]
4
2018-01-19T17:15:06.000Z
2018-01-24T00:06:42.000Z
Python/Python_Web_Development/FlaskMegaTutorial/microblog/migrations/versions/04f42852fee8_add_about_me_last_seen_fields_to_users_.py
nitin-cherian/LifeLongLearning
84084792058358365162c645742c70064a2d5fd6
[ "MIT" ]
null
null
null
Python/Python_Web_Development/FlaskMegaTutorial/microblog/migrations/versions/04f42852fee8_add_about_me_last_seen_fields_to_users_.py
nitin-cherian/LifeLongLearning
84084792058358365162c645742c70064a2d5fd6
[ "MIT" ]
null
null
null
"""add about_me, last_seen fields to users table. Revision ID: 04f42852fee8 Revises: 60ae9f5ea6d5 Create Date: 2018-03-27 06:43:46.542593 """ # revision identifiers, used by Alembic. revision = '04f42852fee8' down_revision = '60ae9f5ea6d5' branch_labels = None depends_on = None
26.258065
86
0.694103
"""add about_me, last_seen fields to users table. Revision ID: 04f42852fee8 Revises: 60ae9f5ea6d5 Create Date: 2018-03-27 06:43:46.542593 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '04f42852fee8' down_revision = '60ae9f5ea6d5' branch_labels = None depends_...
0
0
0
0
0
436
0
3
90
e2508963f16fb9876ae5bcfdfbf8321d39c4f391
8,125
py
Python
src/cam.py
FredrikM97/Medical-ROI
54246341460c04caeced2ef6dcab984f6c260c9d
[ "Apache-2.0" ]
null
null
null
src/cam.py
FredrikM97/Medical-ROI
54246341460c04caeced2ef6dcab984f6c260c9d
[ "Apache-2.0" ]
null
null
null
src/cam.py
FredrikM97/Medical-ROI
54246341460c04caeced2ef6dcab984f6c260c9d
[ "Apache-2.0" ]
null
null
null
""" This module contain various types of functions/classes to access and generate CAM. """
33.29918
182
0.586954
""" This module contain various types of functions/classes to access and generate CAM. """ import warnings from typing import List, Tuple, Union import matplotlib.pyplot as plt import nibabel as nib import numpy as np import torch import torchcam import torchvision from src.display.cmap import parula_map from src.fi...
0
5,093
0
2,562
0
0
0
89
289
69ef23366f317ce1c6e8f4704475e1dca0a6acea
74
py
Python
charing-be/test/test.py
YinhaoHe/84-Charing-Cross-Road
358f195792938e06c25b8b6ed526b087f6752f0e
[ "MIT" ]
null
null
null
charing-be/test/test.py
YinhaoHe/84-Charing-Cross-Road
358f195792938e06c25b8b6ed526b087f6752f0e
[ "MIT" ]
null
null
null
charing-be/test/test.py
YinhaoHe/84-Charing-Cross-Road
358f195792938e06c25b8b6ed526b087f6752f0e
[ "MIT" ]
null
null
null
print "SELECT pair_email FROM users where email = %s" , '236294386@qq.com'
74
74
0.743243
print "SELECT pair_email FROM users where email = %s" , '236294386@qq.com'
0
0
0
0
0
0
0
0
0
dbde4d25c1933c6a398c3ec1379b9a6c559bdb6a
28,529
py
Python
SynapticPlasticityModel/plotting_utils.py
baiydaavi/RL_models_with_choice_selective_sequences
94cf48fef53c4db6ee22eb96bad7f882fb182411
[ "Apache-2.0" ]
null
null
null
SynapticPlasticityModel/plotting_utils.py
baiydaavi/RL_models_with_choice_selective_sequences
94cf48fef53c4db6ee22eb96bad7f882fb182411
[ "Apache-2.0" ]
null
null
null
SynapticPlasticityModel/plotting_utils.py
baiydaavi/RL_models_with_choice_selective_sequences
94cf48fef53c4db6ee22eb96bad7f882fb182411
[ "Apache-2.0" ]
1
2022-03-03T19:42:13.000Z
2022-03-03T19:42:13.000Z
import matplotlib.cm as cm import scipy.stats as stats
37.538158
90
0.547688
import matplotlib.cm as cm import matplotlib.pyplot as plt import numpy as np import scipy.stats as stats import statsmodels.api as sm from matplotlib.font_manager import FontProperties from matplotlib.ticker import MaxNLocator class GenerateTestPlots: """Generates plots using data collected during model run.""" ...
0
0
0
28,277
0
0
0
63
133
64580f2692073985264822164567bb614d8a4c4c
1,769
py
Python
programing/geeksforgeeks.py
meobach/Algorithms
3e502132924ac9e647216bfef5b5f105e8c09b5b
[ "MIT" ]
null
null
null
programing/geeksforgeeks.py
meobach/Algorithms
3e502132924ac9e647216bfef5b5f105e8c09b5b
[ "MIT" ]
null
null
null
programing/geeksforgeeks.py
meobach/Algorithms
3e502132924ac9e647216bfef5b5f105e8c09b5b
[ "MIT" ]
null
null
null
# arr=Arr([2,1,3,4,5,6,1,1,6,2,4,5,3,1]) # print(arr.reverse()) arr=Arr([3, -5,-1]) print(arr.minimize_flip_k_length_subarr([1,2,3]))
29.483333
57
0.520068
class Arr: def __init__(self,item) -> None: self.length=len(item) self.arr=item def reverse(self): for i in range(int(self.length/2)): temp=self.arr[i] self.arr[i]=self.arr[self.length-i-1] self.arr[self.length-i-1]=temp return self.arr def...
0
0
0
1,591
0
0
0
0
44
1e67bd8da46926fc9941be5fbf374117f1a2b1eb
1,159
py
Python
old code/confusion.py
dll-ncai/AI-ForestWatch
54c4090abfd98c5e6bc0e2a867f508f57656e698
[ "MIT" ]
2
2021-12-05T11:57:02.000Z
2021-12-12T20:56:48.000Z
old code/confusion.py
dll-ncai/AI-ForestWatch
54c4090abfd98c5e6bc0e2a867f508f57656e698
[ "MIT" ]
null
null
null
old code/confusion.py
dll-ncai/AI-ForestWatch
54c4090abfd98c5e6bc0e2a867f508f57656e698
[ "MIT" ]
2
2021-11-12T15:15:09.000Z
2021-12-05T11:57:04.000Z
# Copyright (c) 2021, Technische Universitt Kaiserslautern (TUK) & National University of Sciences and Technology (NUST). # All rights reserved. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from __future__ import print_function from __fu...
30.5
122
0.666954
# Copyright (c) 2021, Technische Universität Kaiserslautern (TUK) & National University of Sciences and Technology (NUST). # All rights reserved. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from __future__ import print_function from __f...
2
0
0
0
0
627
0
-1
111
27919122a1a37252cf66cbce135362572c292d99
1,341
py
Python
lineflow/datasets/small_parallel_enja.py
sobamchan/lineflow
708a875c090b7df48c9eca3f630915a9c6e5bbd6
[ "MIT" ]
null
null
null
lineflow/datasets/small_parallel_enja.py
sobamchan/lineflow
708a875c090b7df48c9eca3f630915a9c6e5bbd6
[ "MIT" ]
null
null
null
lineflow/datasets/small_parallel_enja.py
sobamchan/lineflow
708a875c090b7df48c9eca3f630915a9c6e5bbd6
[ "MIT" ]
null
null
null
TRAIN_EN_URL = 'https://raw.githubusercontent.com/odashi/small_parallel_enja/master/train.en' TRAIN_JA_URL = 'https://raw.githubusercontent.com/odashi/small_parallel_enja/master/train.ja' DEV_EN_URL = 'https://raw.githubusercontent.com/odashi/small_parallel_enja/master/dev.en' DEV_JA_URL = 'https://raw.githubusercon...
44.7
110
0.722595
from lineflow.download import cached_download from lineflow.datasets import Seq2SeqDataset TRAIN_EN_URL = 'https://raw.githubusercontent.com/odashi/small_parallel_enja/master/train.en' TRAIN_JA_URL = 'https://raw.githubusercontent.com/odashi/small_parallel_enja/master/train.ja' DEV_EN_URL = 'https://raw.githubuserco...
0
0
0
670
0
0
0
47
67
1e128480da9319aae5d4a027db4f8bdc82c64ae1
251
py
Python
tests/whoosh_tests/tests/__init__.py
speedplane/django-haystack
4ace30aea6aa1b1708f79a5a9df20a00fa0b4d96
[ "BSD-3-Clause" ]
1
2017-10-12T14:25:06.000Z
2017-10-12T14:25:06.000Z
tests/whoosh_tests/tests/__init__.py
speedplane/django-haystack
4ace30aea6aa1b1708f79a5a9df20a00fa0b4d96
[ "BSD-3-Clause" ]
1
2016-08-03T18:01:43.000Z
2016-08-03T18:03:00.000Z
tests/whoosh_tests/tests/__init__.py
speedplane/django-haystack
4ace30aea6aa1b1708f79a5a9df20a00fa0b4d96
[ "BSD-3-Clause" ]
null
null
null
import warnings warnings.simplefilter('ignore', Warning)
31.375
52
0.844622
import warnings warnings.simplefilter('ignore', Warning) from whoosh_tests.tests.test_forms import * from whoosh_tests.tests.test_inputs import * from whoosh_tests.tests.test_whoosh_query import * from whoosh_tests.tests.test_whoosh_backend import *
0
0
0
0
0
0
0
105
89
6e542c21b275803ac419ea5e1f0ca19c451e8a0b
407
py
Python
clientmanager/migrations/0003_document_status.py
trebla64/django-app-ff
4615e4cd23e9d9b6745533a8f60ffab8ff5215b6
[ "CC0-1.0" ]
null
null
null
clientmanager/migrations/0003_document_status.py
trebla64/django-app-ff
4615e4cd23e9d9b6745533a8f60ffab8ff5215b6
[ "CC0-1.0" ]
null
null
null
clientmanager/migrations/0003_document_status.py
trebla64/django-app-ff
4615e4cd23e9d9b6745533a8f60ffab8ff5215b6
[ "CC0-1.0" ]
null
null
null
# Generated by Django 3.2.8 on 2021-10-06 08:15
21.421053
69
0.60688
# Generated by Django 3.2.8 on 2021-10-06 08:15 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('clientmanager', '0002_client_manager'), ] operations = [ migrations.AddField( model_name='document', name='status', ...
0
0
0
293
0
0
0
19
46
881799f5680f2888d83b164e8bc97741ebb51dec
43
py
Python
Chapter16/cf_rfem_hist_price/venv/lib/python3.6/locale.py
wtwong316/Mastering-Elasticsearch-7.0
8e88f938c9feb201649bd23c4d517bc6af93fbaa
[ "MIT" ]
25
2019-03-08T01:03:03.000Z
2022-02-14T17:38:32.000Z
Chapter16/cf_rfem_hist_price/venv/lib/python3.6/locale.py
wtwong316/Mastering-Elasticsearch-7.0
8e88f938c9feb201649bd23c4d517bc6af93fbaa
[ "MIT" ]
2
2019-02-15T17:34:37.000Z
2019-07-11T14:37:02.000Z
Chapter16/cf_rfem_hist_price/venv/lib/python3.6/locale.py
wtwong316/Mastering-Elasticsearch-7.0
8e88f938c9feb201649bd23c4d517bc6af93fbaa
[ "MIT" ]
31
2019-01-15T20:16:50.000Z
2022-03-01T05:47:38.000Z
/home/wai/anaconda3/lib/python3.6/locale.py
43
43
0.813953
/home/wai/anaconda3/lib/python3.6/locale.py
0
0
0
0
0
0
0
0
0
e0b5c22d429a097b1237ab5e3fce5fb295657cd1
143
py
Python
nose2/tests/functional/support/scenario/tests_in_package/setup.py
ltfish/nose2
e47363dad10056cf906daf387613c21d74f37e56
[ "BSD-2-Clause" ]
null
null
null
nose2/tests/functional/support/scenario/tests_in_package/setup.py
ltfish/nose2
e47363dad10056cf906daf387613c21d74f37e56
[ "BSD-2-Clause" ]
null
null
null
nose2/tests/functional/support/scenario/tests_in_package/setup.py
ltfish/nose2
e47363dad10056cf906daf387613c21d74f37e56
[ "BSD-2-Clause" ]
1
2019-11-24T12:11:52.000Z
2019-11-24T12:11:52.000Z
from setuptools import setup, find_packages setup(name='pkg1', packages=find_packages(), test_suite='nose2.collector.collector')
20.428571
45
0.734266
from setuptools import setup, find_packages setup(name='pkg1', packages=find_packages(), test_suite='nose2.collector.collector')
0
0
0
0
0
0
0
0
0
62257ae4a782556aa3adeb2c6ac9c25afeee0495
2,575
py
Python
20211217/sort_contours.py
sgzqc/wechat
6589915c46b8f51d28dba61c6da9702821f5b47c
[ "MIT" ]
8
2021-12-02T10:01:55.000Z
2022-03-18T13:00:18.000Z
20211217/sort_contours.py
sgzqc/wechat
6589915c46b8f51d28dba61c6da9702821f5b47c
[ "MIT" ]
null
null
null
20211217/sort_contours.py
sgzqc/wechat
6589915c46b8f51d28dba61c6da9702821f5b47c
[ "MIT" ]
10
2021-10-01T23:38:15.000Z
2022-03-21T05:04:07.000Z
import numpy as np import argparse import cv2 if __name__ == "__main__": ap = argparse.ArgumentParser() ap.add_argument('-i', '--image', required=False, help='path to the image',default='./image/lego_blocks_1.png') ap.add_argument('-m', '--method', required=False, help='Sorting method',default='left-to...
31.024096
114
0.632621
import numpy as np import argparse import cv2 def grab_contours(cnts): # if the length the contours tuple returned by cv2.findContours # is '2' then we are using either OpenCV v2.4, v4-beta, or # v4-official if len(cnts) == 2: cnts = cnts[0] # if the length of the contours tuple is '3' th...
0
0
0
0
0
1,165
0
0
69
fe75f8645b99e6a9ba1b849178eb856864f1527c
1,025
py
Python
GUIforINFO.py
freshicet/Home_Depot
91379144daeef7548bb7976379766df7ec90b383
[ "Unlicense", "MIT" ]
null
null
null
GUIforINFO.py
freshicet/Home_Depot
91379144daeef7548bb7976379766df7ec90b383
[ "Unlicense", "MIT" ]
null
null
null
GUIforINFO.py
freshicet/Home_Depot
91379144daeef7548bb7976379766df7ec90b383
[ "Unlicense", "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # Small GUI for getting all the info for the Home Depot survey. master = Tk() Label(master, text="First Name").grid(row=0) Label(master, text="Last Name").grid(row=1) Label(master, text="E-mail").grid(row=2) Label(master, text="Zip Code").grid(row=3) e1 = Entry(master) e2 ...
22.777778
63
0.650732
#!/usr/bin/python # -*- coding: utf-8 -*- # Small GUI for getting all the info for the Home Depot survey. from tkinter import * def show_entry_fields(): First_Name = e1.get() Last_Name = e2.get() email = e3.get() zip_Code = e4.get() file = open('File_INFO.txt', 'w') file.write(First_Name + '\n...
0
0
0
0
0
296
0
0
45
4c62d89701ad7d468174036c7f208033dd9bfb01
873
py
Python
web-server/plugins/slycat-blob-parser.py
sandialabs/slycat
efbb91ce4ea4da08b58399eb820f6d6987408e44
[ "BSD-3-Clause" ]
66
2015-01-06T20:53:50.000Z
2022-03-30T17:25:04.000Z
web-server/plugins/slycat-blob-parser.py
agentdavidjoseph/slycat
690e1cb07a6fa990d7206265e18edb22ae3f62e7
[ "BSD-3-Clause" ]
782
2015-01-05T15:42:30.000Z
2022-03-11T03:27:52.000Z
web-server/plugins/slycat-blob-parser.py
agentdavidjoseph/slycat
690e1cb07a6fa990d7206265e18edb22ae3f62e7
[ "BSD-3-Clause" ]
23
2015-04-29T08:16:27.000Z
2022-01-05T23:21:54.000Z
# Copyright (c) 2013, 2018 National Technology and Engineering Solutions of Sandia, LLC . Under the terms of Contract # DE-NA0003525 with National Technology and Engineering Solutions of Sandia, LLC, the U.S. Government # retains certain rights in this software.
39.681818
117
0.749141
# Copyright (c) 2013, 2018 National Technology and Engineering Solutions of Sandia, LLC . Under the terms of Contract # DE-NA0003525 with National Technology and Engineering Solutions of Sandia, LLC, the U.S. Government # retains certain rights in this software. import numpy import slycat.web.server def parse(databa...
0
0
0
0
0
523
0
-6
91
8c6d306387daa7e43907a9bed19723fe958470fa
1,087
py
Python
proteus/tests/MeshAdaptPUMI/test_meshLoad.py
burgreen/proteus
033bbd3fd0ff11d53d8e85b2da1af49e10af9c5d
[ "MIT" ]
null
null
null
proteus/tests/MeshAdaptPUMI/test_meshLoad.py
burgreen/proteus
033bbd3fd0ff11d53d8e85b2da1af49e10af9c5d
[ "MIT" ]
null
null
null
proteus/tests/MeshAdaptPUMI/test_meshLoad.py
burgreen/proteus
033bbd3fd0ff11d53d8e85b2da1af49e10af9c5d
[ "MIT" ]
null
null
null
#!/usr/bin/env python from proteus import MeshTools from proteus import cmeshTools from proteus.MeshAdaptPUMI import MeshAdaptPUMI from nose.tools import eq_ as eq import os def test_meshLoadPUMI(verbose=0): """Test to load serial PUMI model and mesh""" testDir=os.path.dirname(os.path.abspath(__file__)) cu...
33.96875
61
0.769089
#!/usr/bin/env python from ctypes import * from proteus import MeshTools from proteus import cmeshTools from proteus.MeshAdaptPUMI import MeshAdaptPUMI from nose.tools import eq_ as eq from nose.tools import ok_ as ok import os def test_meshLoadPUMI(verbose=0): """Test to load serial PUMI model and mesh""" tes...
0
0
0
0
0
0
0
10
44
48781dd4e4933f0deb04ff6e449eade807322d1a
4,589
py
Python
demo/cubemap_video_max.py
RyosukeHori/mmsegmentation
5024918af521dce29ce2ea257aa378e305cef67f
[ "Apache-2.0" ]
null
null
null
demo/cubemap_video_max.py
RyosukeHori/mmsegmentation
5024918af521dce29ce2ea257aa378e305cef67f
[ "Apache-2.0" ]
null
null
null
demo/cubemap_video_max.py
RyosukeHori/mmsegmentation
5024918af521dce29ce2ea257aa378e305cef67f
[ "Apache-2.0" ]
null
null
null
if __name__ == '__main__': main()
37.614754
110
0.593158
from argparse import ArgumentParser import numpy as np import py360convert import os import cv2 from mmseg.apis import inference_segmentor, init_segmentor, show_result_pyplot, ret_result from mmseg.core.evaluation import get_palette from PIL import Image import mmcv def main(): parser = ArgumentParser() par...
0
0
0
0
0
4,257
0
69
223
8415119534766c8a202d2b0fad8956d28398d2e9
932
py
Python
netests/converters/vrf/nxos/ssh.py
Netests/netests
1a48bda461761c4ec854d6fa0c38629049009a4a
[ "MIT" ]
14
2020-06-08T07:34:59.000Z
2022-03-14T08:52:03.000Z
netests/converters/vrf/nxos/ssh.py
Netests/netests
1a48bda461761c4ec854d6fa0c38629049009a4a
[ "MIT" ]
null
null
null
netests/converters/vrf/nxos/ssh.py
Netests/netests
1a48bda461761c4ec854d6fa0c38629049009a4a
[ "MIT" ]
3
2020-06-19T03:57:05.000Z
2020-06-22T22:46:42.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*-
25.888889
72
0.553648
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import json from netests.constants import NOT_SET from netests.protocols.vrf import VRF, ListVRF def _nxos_vrf_ssh_converter( hostname: str(), cmd_output, options={} ) -> ListVRF: if not isinstance(cmd_output, dict): cmd_output = json.loads(cmd_...
0
0
0
0
0
763
0
31
90
b420e19501b17b9d1f75e7151a97ea68cce75225
10,477
py
Python
pomdp_problems/load_unload/load_unload.py
justinchiu/pomdp-py
27fd8cc3b215b428289d89ec9ed44d88910fc4ea
[ "MIT" ]
87
2020-02-16T03:12:10.000Z
2022-03-31T08:38:10.000Z
pomdp_problems/load_unload/load_unload.py
justinchiu/pomdp-py
27fd8cc3b215b428289d89ec9ed44d88910fc4ea
[ "MIT" ]
15
2020-08-01T00:25:33.000Z
2022-02-19T22:37:11.000Z
pomdp_problems/load_unload/load_unload.py
justinchiu/pomdp-py
27fd8cc3b215b428289d89ec9ed44d88910fc4ea
[ "MIT" ]
26
2020-02-20T01:15:33.000Z
2022-03-30T16:21:37.000Z
"""The load unload problem. An agent is placed on a one dimensional grid world and is tasked with loading itself up on the right side of the world and unloading on the left. The agent can observe whether or not it is in the load or unload block but can not tell its exact location of whether it is loaded or unloaded. Th...
36.890845
89
0.626802
"""The load unload problem. An agent is placed on a one dimensional grid world and is tasked with loading itself up on the right side of the world and unloading on the left. The agent can observe whether or not it is in the load or unload block but can not tell its exact location of whether it is loaded or unloaded. Th...
0
0
0
6,285
0
3,020
0
-3
427
f3a1df15ec24260cf5c5ef37c81224449331dcaf
1,333
py
Python
oops_fhir/r4/code_system/code_search_support.py
Mikuana/oops_fhir
77963315d123756b7d21ae881f433778096a1d25
[ "MIT" ]
null
null
null
oops_fhir/r4/code_system/code_search_support.py
Mikuana/oops_fhir
77963315d123756b7d21ae881f433778096a1d25
[ "MIT" ]
null
null
null
oops_fhir/r4/code_system/code_search_support.py
Mikuana/oops_fhir
77963315d123756b7d21ae881f433778096a1d25
[ "MIT" ]
null
null
null
from pathlib import Path from fhir.resources.codesystem import CodeSystem __all__ = ["CodeSearchSupport"] _resource = CodeSystem.parse_file(Path(__file__).with_suffix(".json"))
24.236364
127
0.651163
from pathlib import Path from fhir.resources.codesystem import CodeSystem from oops_fhir.utils import CodeSystemConcept __all__ = ["CodeSearchSupport"] _resource = CodeSystem.parse_file(Path(__file__).with_suffix(".json")) class CodeSearchSupport: """ CodeSearchSupport The degree to which the server...
0
0
0
1,081
0
0
0
24
46
71cdd1f0685eebf6a131858e768d45b3c37617a0
1,428
py
Python
tests/c_pointer_test.py
jacobwilliams/flist
6255b824d81b1f97aa48aaabe912b9af313dce49
[ "BSD-3-Clause" ]
26
2015-11-14T18:41:51.000Z
2021-11-23T14:55:41.000Z
tests/c_pointer_test.py
jacobwilliams/flist
6255b824d81b1f97aa48aaabe912b9af313dce49
[ "BSD-3-Clause" ]
3
2016-10-04T14:42:56.000Z
2020-02-20T21:48:04.000Z
tests/c_pointer_test.py
jacobwilliams/flist
6255b824d81b1f97aa48aaabe912b9af313dce49
[ "BSD-3-Clause" ]
6
2015-11-15T15:34:10.000Z
2018-11-07T13:16:26.000Z
""" Some experiments with python ctypes """ # build the shared library using something like: # # ifort -shared -fPIC key_module.f90 linked_list_module.f90 tests/blah_module.f90 tests/c_pointer_test_module.f90 -o test.so # load the shared library: test = CDLL('test.so') # define the procedure interfaces: initialize...
26.943396
124
0.672969
""" Some experiments with python ctypes """ # build the shared library using something like: # # ifort -shared -fPIC key_module.f90 linked_list_module.f90 tests/blah_module.f90 tests/c_pointer_test_module.f90 -o test.so from ctypes import * # load the shared library: test = CDLL('test.so') # define the procedure ...
0
0
0
0
0
0
0
-1
23
d99e2c9e3d3cd7002f6fd3ed81916d4e62da0af9
931
py
Python
src/txdocumint/error.py
fusionapp/documint-client-python
87818629e5c1641c103d4e8837095c622e5180ce
[ "MIT" ]
null
null
null
src/txdocumint/error.py
fusionapp/documint-client-python
87818629e5c1641c103d4e8837095c622e5180ce
[ "MIT" ]
13
2016-04-30T09:00:07.000Z
2018-07-02T13:22:28.000Z
src/txdocumint/error.py
fusionapp/documint-client-python
87818629e5c1641c103d4e8837095c622e5180ce
[ "MIT" ]
1
2018-07-05T07:42:43.000Z
2018-07-05T07:42:43.000Z
__all__ = ['DocumintError', 'MalformedDocumintError']
23.871795
62
0.615467
class DocumintErrorCause(object): """ Specific error cause. """ def __init__(self, type, reason, description=None): self.type = type self.reason = reason self.description = description def __repr__(self): return '<{} type={} reason={} description={}>'.format( ...
0
0
0
805
0
0
0
0
68
35b7cff2cc3b238cd4bfb994a7196a1afa8029b3
1,305
py
Python
geokey/users/tests/test_templatetags.py
universityofsussex/geokey
25e161dbc81841c57c148053dbe99facc81e84b8
[ "Apache-2.0" ]
null
null
null
geokey/users/tests/test_templatetags.py
universityofsussex/geokey
25e161dbc81841c57c148053dbe99facc81e84b8
[ "Apache-2.0" ]
null
null
null
geokey/users/tests/test_templatetags.py
universityofsussex/geokey
25e161dbc81841c57c148053dbe99facc81e84b8
[ "Apache-2.0" ]
null
null
null
"""Tests for template tags of users."""
29
72
0.603831
"""Tests for template tags of users.""" from django.test import TestCase from geokey.categories.tests.model_factories import CategoryFactory from ..templatetags import filter_tags class TemplateTagsTest(TestCase): def test_show_restrict(self): category = CategoryFactory.create() self.assertEqua...
0
0
0
1,098
0
0
0
74
92
13a4e7e7126b95c3f73e3e4068d9d93479ca736a
1,120
py
Python
regression.py
xiaoJacky/machineLearning
518f2e7c13ebf2674e6e5dde95fd305cbd4b99eb
[ "Apache-2.0" ]
1
2017-08-15T01:36:12.000Z
2017-08-15T01:36:12.000Z
regression.py
xiaoJacky/machineLearning
518f2e7c13ebf2674e6e5dde95fd305cbd4b99eb
[ "Apache-2.0" ]
null
null
null
regression.py
xiaoJacky/machineLearning
518f2e7c13ebf2674e6e5dde95fd305cbd4b99eb
[ "Apache-2.0" ]
null
null
null
#-*- coding:utf-8 -*- ''' http://blog.csdn.net/wangyangzhizhou/article/details/60133958 line matrixLine ''' if __name__ == '__main__': # line() matrixLine()
20.363636
66
0.5625
#-*- coding:utf-8 -*- import numpy as np import matplotlib.pyplot as plt ''' 最小二乘法回归 参考博客:http://blog.csdn.net/wangyangzhizhou/article/details/60133958 line 代数推导 matrixLine 矩阵推导 ''' def calcAB(x,y): n = len(x) sumX,sumY,sumXY,sumXX =0,0,0,0 for i in range(0,n): sumX += x[i] sumY += y[i]...
60
0
0
0
0
814
0
7
114
45ed68759dc66b9a7b5994d75aea2cdb1b6b467e
9,405
py
Python
pixiedust/utils/sampleData.py
jordangeorge/pixiedust
00e49f4e8ba44cc248685146d3ad7e2d04ac6cd4
[ "Apache-2.0" ]
null
null
null
pixiedust/utils/sampleData.py
jordangeorge/pixiedust
00e49f4e8ba44cc248685146d3ad7e2d04ac6cd4
[ "Apache-2.0" ]
null
null
null
pixiedust/utils/sampleData.py
jordangeorge/pixiedust
00e49f4e8ba44cc248685146d3ad7e2d04ac6cd4
[ "Apache-2.0" ]
null
null
null
# ------------------------------------------------------------------------------- # Copyright IBM Corp. 2017 # # 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...
44.785714
205
0.606273
# ------------------------------------------------------------------------------- # Copyright IBM Corp. 2017 # # 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...
0
92
0
5,754
0
0
0
166
292
74c68dfa0c1af26f9531ec184b91550bd2fa0f44
568
py
Python
plotting.py
Sumanshekhar17/3rd-year-project
b991311fe09fc7b181193a8d74d7f0ae98090331
[ "MIT" ]
2
2021-09-01T03:50:03.000Z
2021-09-01T03:50:04.000Z
plotting.py
Sumanshekhar17/3rd-year-project
b991311fe09fc7b181193a8d74d7f0ae98090331
[ "MIT" ]
null
null
null
plotting.py
Sumanshekhar17/3rd-year-project
b991311fe09fc7b181193a8d74d7f0ae98090331
[ "MIT" ]
null
null
null
reset set terminal postscript eps enhanced "Helvetica" 20 color set output "velocity_field_cpu.eps" unset logscale set xrange [0 : 1] set yrange [0 : 1] set size square set nokey factor = 0.1 plot "velocity_cpu_128.dat" using 1:2:($3*factor):($4*factor) every 2 with vec lc 3 set output "velocity_field_gpu.eps" un...
20.285714
89
0.721831
reset set terminal postscript eps enhanced "Helvetica" 20 color set output "velocity_field_cpu.eps" unset logscale set xrange [0 : 1] set yrange [0 : 1] set size square set nokey factor = 0.1 plot "velocity_cpu_128.dat" using 1:2:($3*factor):($4*factor) every 2 with vec lc 3 set output "velocity_field_gpu.eps" un...
0
0
0
0
0
0
0
0
0
55d07cc127592663522871df6aa0279d8f606d72
7,940
py
Python
python/GtBurst/dataCollector.py
fermi-lat/pyBurstAnalysisGUI
add53fe77ef71cb64a27751f024fb914f7cc0863
[ "BSD-3-Clause" ]
2
2019-03-06T15:48:20.000Z
2020-05-02T15:02:57.000Z
python/GtBurst/dataCollector.py
fermi-lat/pyBurstAnalysisGUI
add53fe77ef71cb64a27751f024fb914f7cc0863
[ "BSD-3-Clause" ]
5
2019-01-23T11:35:41.000Z
2019-03-29T17:36:19.000Z
python/GtBurst/dataCollector.py
fermi-lat/pyBurstAnalysisGUI
add53fe77ef71cb64a27751f024fb914f7cc0863
[ "BSD-3-Clause" ]
null
null
null
#This is a mother class to get GBM and LLE data files (lle, pha and rsp) #Author: giacomov@slac.stanford.edu try: except: #Silently accept when tkinter import fail (no X server?) pass try: except: #Silently accept when tkinter import fail (no X server?) pass pass
33.221757
210
0.519144
#This is a mother class to get GBM and LLE data files (lle, pha and rsp) #Author: giacomov@slac.stanford.edu import os,sys,glob,string,errno,shutil from GtBurst.my_fits_io import pyfits from GtBurst.GtBurstException import GtBurstException import ftplib, socket import time try: from tkinter import * ...
0
0
0
7,341
0
0
0
89
219
dcd3f1ee0dfd454993014e91127c0cc526852235
1,692
py
Python
dwitter/feed/urls.py
PythEch/dwitter
5b48ce2f6ebc6267dc942043efcbc1010079f6d4
[ "Apache-2.0" ]
null
null
null
dwitter/feed/urls.py
PythEch/dwitter
5b48ce2f6ebc6267dc942043efcbc1010079f6d4
[ "Apache-2.0" ]
null
null
null
dwitter/feed/urls.py
PythEch/dwitter
5b48ce2f6ebc6267dc942043efcbc1010079f6d4
[ "Apache-2.0" ]
null
null
null
from django.conf.urls import url from . import views urlpatterns = [ url(r'^$', views.feed, {'page_nr': 1, 'sort': 'hot'}, name='root'), url(r'^page/(?P<page_nr>\d+)$', views.feed, {'sort': 'new'}, name='feed_page'), url(r'^hot$', views.feed, {'page_nr': 1, 'sort': 'hot'}, name='h...
35.25
99
0.548463
from django.conf.urls import url from . import views urlpatterns = [ url(r'^$', views.feed, {'page_nr': 1, 'sort': 'hot'}, name='root'), url(r'^page/(?P<page_nr>\d+)$', views.feed, {'sort': 'new'}, name='feed_page'), url(r'^hot$', views.feed, {'page_nr': 1, 'sort': 'hot'}, name='h...
0
0
0
0
0
0
0
0
0
7c87b5aa45a8066517718e04ad9e06d160f6d5f0
36
py
Python
wsgi.py
svetlyak40wt/cony
bf8d52ab92782944d9ff40799b52298fd6f9bc8f
[ "BSD-3-Clause" ]
5
2015-01-12T12:21:11.000Z
2021-12-09T14:28:41.000Z
wsgi.py
svetlyak40wt/cony
bf8d52ab92782944d9ff40799b52298fd6f9bc8f
[ "BSD-3-Clause" ]
null
null
null
wsgi.py
svetlyak40wt/cony
bf8d52ab92782944d9ff40799b52298fd6f9bc8f
[ "BSD-3-Clause" ]
1
2019-06-10T16:30:52.000Z
2019-06-10T16:30:52.000Z
from cony import wsgi app = wsgi()
9
21
0.694444
from cony import wsgi app = wsgi()
0
0
0
0
0
0
0
0
0
71af2d320f928f46da13c0c5cc7ef247457cafcf
1,202
py
Python
devon/makers/configuremake.py
joehewitt/devon
5b11265e5eae3db7bfaeb49543a2a6293bd15557
[ "BSD-3-Clause" ]
3
2015-12-25T16:26:02.000Z
2016-05-08T18:19:25.000Z
devon/makers/configuremake.py
joehewitt/devon
5b11265e5eae3db7bfaeb49543a2a6293bd15557
[ "BSD-3-Clause" ]
null
null
null
devon/makers/configuremake.py
joehewitt/devon
5b11265e5eae3db7bfaeb49543a2a6293bd15557
[ "BSD-3-Clause" ]
1
2021-07-13T07:17:01.000Z
2021-07-13T07:17:01.000Z
import devon.maker # **************************************************************************************************
34.342857
100
0.543261
import devon.maker, devon.make from devon.tags import * import re, os.path # ************************************************************************************************** class ConfigureMake(devon.maker.MakerManyToOne): def getTarget(self, project): return project.config.output def ...
0
0
0
1,001
0
0
0
12
67
3e65c79541e7c85c3c24698560ce761bee060730
956
py
Python
Chapter 1/direct_surface.py
indrag49/Computational-Stat-Mech
0877f54a0245fce815f03478f4fb219fd6314951
[ "MIT" ]
19
2018-06-29T12:22:47.000Z
2022-03-10T03:18:18.000Z
Chapter 1/direct_surface.py
indrag49/Computational-Stat-Mech
0877f54a0245fce815f03478f4fb219fd6314951
[ "MIT" ]
null
null
null
Chapter 1/direct_surface.py
indrag49/Computational-Stat-Mech
0877f54a0245fce815f03478f4fb219fd6314951
[ "MIT" ]
7
2018-11-30T01:56:36.000Z
2021-12-23T15:29:56.000Z
import math as m def direct_surface(d): """ d is the dimension of the sphere, sigma is the standard deviation of the gaussian""" sigma=1./m.sqrt(d) S=0 x=[0]*d for k in range(d): x[k]=gauss(sigma)[1] S+=x[k]**2 for k in range(d):x[k]/=m.sq...
22.761905
96
0.528243
import random import math as m def gauss(sigma): phi=random.uniform(0, 2*m.pi) Upsilon=-m.log(random.uniform(0, 1)) r=sigma*m.sqrt(2*Upsilon) x=r*m.cos(phi) y=r*m.sin(phi) return [x, y] def direct_surface(d): """ d is the dimension of the sphere, sigma is the st...
0
0
0
0
0
181
0
-8
45
8e18cce450eda2b2ae936f7b5a3c009fa87b2aae
1,116
py
Python
neon/ipc/rpc_client.py
kashif/neon
d4d8ed498ee826b67f5fda1746d2d65c8ce613d2
[ "Apache-2.0" ]
1
2018-07-17T16:54:58.000Z
2018-07-17T16:54:58.000Z
neon/ipc/rpc_client.py
kashif/neon
d4d8ed498ee826b67f5fda1746d2d65c8ce613d2
[ "Apache-2.0" ]
null
null
null
neon/ipc/rpc_client.py
kashif/neon
d4d8ed498ee826b67f5fda1746d2d65c8ce613d2
[ "Apache-2.0" ]
2
2016-06-09T13:05:00.000Z
2021-02-18T14:18:15.000Z
# ---------------------------------------------------------------------------- # Copyright 2015 Nervana Systems Inc. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.o...
37.2
78
0.634409
# ---------------------------------------------------------------------------- # Copyright 2015 Nervana Systems Inc. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.o...
0
0
0
0
0
0
0
0
0
7593f06cc9b1c45fe4e4bc186067be86fcc1e347
963
py
Python
tests/file_io_standard_gzip_test.py
RJMW/pymzML
fe45a41e7bd599929e7626a32d7ec26178fc475d
[ "MIT" ]
117
2015-01-23T22:34:32.000Z
2022-03-31T22:09:06.000Z
tests/file_io_standard_gzip_test.py
MKoesters/pymzML
ac9c73a24fd08b3e3f64aef7ba113e0f0adfc39a
[ "MIT" ]
217
2015-02-12T05:33:24.000Z
2022-03-30T20:34:59.000Z
tests/file_io_standard_gzip_test.py
MKoesters/pymzML
ac9c73a24fd08b3e3f64aef7ba113e0f0adfc39a
[ "MIT" ]
73
2015-04-09T16:20:24.000Z
2022-02-22T03:05:49.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Part of pymzml test cases """ import unittest if __name__ == "__main__": unittest.main(verbosity=3)
20.0625
57
0.607477
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Part of pymzml test cases """ import os from pymzml.file_classes.standardGzip import StandardGzip import unittest import random from pymzml.spec import Spectrum, Chromatogram import re import struct import test_file_paths class StandardGzipTest(unittest.TestCase): ...
0
0
0
606
0
0
0
22
177
c126561a59466caffcb2634c1a769879b9fe1447
1,347
py
Python
examples/pca.py
SatyadevNtv/mctorch
ebc16e4437ad62858d95a8559262ee30191d36ff
[ "MIT" ]
188
2018-09-22T14:18:17.000Z
2022-03-10T01:20:25.000Z
examples/pca.py
SatyadevNtv/mctorch
ebc16e4437ad62858d95a8559262ee30191d36ff
[ "MIT" ]
13
2019-02-07T02:16:58.000Z
2022-02-24T15:00:19.000Z
examples/pca.py
SatyadevNtv/mctorch
ebc16e4437ad62858d95a8559262ee30191d36ff
[ "MIT" ]
30
2018-10-02T18:54:50.000Z
2022-03-02T01:56:59.000Z
import torch import mctorch.nn as nn import mctorch.optim as optim import numpy as np torch.manual_seed(0) # Random data with high variance in first two dimension X = torch.diag(torch.FloatTensor([3,2,1])).matmul(torch.randn(3,200)) X -= X.mean(axis=0) # 1. Initialize Parameter manifold_param = nn.Para...
28.0625
75
0.691166
import torch import mctorch.nn as nn import mctorch.optim as optim import numpy as np torch.manual_seed(0) # Random data with high variance in first two dimension X = torch.diag(torch.FloatTensor([3,2,1])).matmul(torch.randn(3,200)) X -= X.mean(axis=0) # 1. Initialize Parameter manifold_param = nn.Para...
0
0
0
0
0
110
0
0
23