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
46b2d944f6aa3d20390e129f4e78bec6acad3cb7
5,064
py
Python
view.py
KungPaoChick/Github-View
1395fb6390a1cd9d0f789e4f2efd85953d538d1a
[ "MIT" ]
1
2021-03-22T09:11:24.000Z
2021-03-22T09:11:24.000Z
view.py
KungPaoChick/Github-View
1395fb6390a1cd9d0f789e4f2efd85953d538d1a
[ "MIT" ]
null
null
null
view.py
KungPaoChick/Github-View
1395fb6390a1cd9d0f789e4f2efd85953d538d1a
[ "MIT" ]
null
null
null
import argparse import colorama import os if __name__ == '__main__': colorama.init() url = 'https://github.com' parser = argparse.ArgumentParser(formatter_class=argparse.RawTextHelpFormatter, description="Views Public Repositories of Users") parser.add_argumen...
40.512
135
0.532188
import requests import argparse import colorama import os import csv import pandas as pd from bs4 import BeautifulSoup as soup def repos(username, links): with open(os.path.join(name, f'{username}.csv'), 'w', encoding='utf-8') as f: headers = ['Link', 'Repository', 'Commits', 'Stars', '...
0
0
0
0
0
3,888
0
-3
180
4533666d2d659e745b97da7e3fecdf5f628cc17e
1,212
py
Python
project/apps/accounts/migrations/0007_auto_20211111_1519.py
DiceNameIsMy/social-network
da02ea27c21705449c4ff3913d79e808d33e3de4
[ "MIT" ]
null
null
null
project/apps/accounts/migrations/0007_auto_20211111_1519.py
DiceNameIsMy/social-network
da02ea27c21705449c4ff3913d79e808d33e3de4
[ "MIT" ]
2
2021-11-01T04:17:19.000Z
2021-11-05T07:40:43.000Z
project/apps/accounts/migrations/0007_auto_20211111_1519.py
DiceNameIsMy/social-network
da02ea27c21705449c4ff3913d79e808d33e3de4
[ "MIT" ]
null
null
null
# Generated by Django 3.2.8 on 2021-11-11 09:19
34.628571
271
0.607261
# Generated by Django 3.2.8 on 2021-11-11 09:19 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('contenttypes', '0002_remove_content_type_name'), ('accounts', '0006_alter_notification_content_type'), ] op...
0
0
0
1,065
0
0
0
30
68
fa87d1dd7dae39daf67a20a481e554aa0260f9b0
479
py
Python
example.py
zietzm/dfs-sudoku-solver
396320c84823baa6f18d69fb9c315af08f580096
[ "MIT" ]
null
null
null
example.py
zietzm/dfs-sudoku-solver
396320c84823baa6f18d69fb9c315af08f580096
[ "MIT" ]
null
null
null
example.py
zietzm/dfs-sudoku-solver
396320c84823baa6f18d69fb9c315af08f580096
[ "MIT" ]
null
null
null
import time import numpy as np import solver board = np.array([ [0,0,0,0,9,0,8,2,3], [0,8,0,0,3,2,0,7,5], [3,0,2,5,8,0,4,9,0], [0,2,7,0,0,0,0,0,4], [0,9,0,2,1,4,0,8,0], [4,0,0,0,0,0,2,0,0], [0,4,0,0,7,1,0,0,2], [2,0,0,9,4,0,0,5,0], [0,0,6,0,2,5,0,4,0] ]) b = solver.SudokuSolver(...
14.515152
30
0.524008
import time import numpy as np import solver board = np.array([ [0,0,0,0,9,0,8,2,3], [0,8,0,0,3,2,0,7,5], [3,0,2,5,8,0,4,9,0], [0,2,7,0,0,0,0,0,4], [0,9,0,2,1,4,0,8,0], [4,0,0,0,0,0,2,0,0], [0,4,0,0,7,1,0,0,2], [2,0,0,9,4,0,0,5,0], [0,0,6,0,2,5,0,4,0] ]) b = solver.SudokuSolver(...
0
0
0
0
0
0
0
0
0
754f0eb1193c812774762375390c0ce0266b9d41
464
py
Python
config/configuration.py
TechhubLisbon/rpi_truck
5e024464f064ba7618a7e53b88a413d23ba20dce
[ "MIT" ]
3
2019-12-15T04:08:22.000Z
2021-11-28T16:34:08.000Z
config/configuration.py
TechhubLisbon/rpi_truck
5e024464f064ba7618a7e53b88a413d23ba20dce
[ "MIT" ]
1
2021-06-02T00:21:10.000Z
2021-06-02T00:21:10.000Z
config/configuration.py
TechhubLisbon/rpi_truck
5e024464f064ba7618a7e53b88a413d23ba20dce
[ "MIT" ]
1
2019-07-05T13:33:38.000Z
2019-07-05T13:33:38.000Z
#!/usr/bin/env python # Root topic rootTopic = "truck1" # Broker configuration mqttBroker = "192.168.1.126" mqttPort = "1883" mqttUser = " " mqttPasswd = " " # Components configuration componentDic = { "imuClass": "Imu", "proximityClass": "ProximitySensor", "motorClass": "Motor", "cameraClass": "Cam...
18.56
40
0.653017
#!/usr/bin/env python # Root topic rootTopic = "truck1" # Broker configuration mqttBroker = "192.168.1.126" mqttPort = "1883" mqttUser = " " mqttPasswd = " " # Components configuration componentDic = { "imuClass": "Imu", "proximityClass": "ProximitySensor", "motorClass": "Motor", "cameraClass": "Cam...
0
0
0
0
0
0
0
0
0
1c7bbfdad3d0bd492d8072ec6d86909275b5cf2c
454
py
Python
src/exmample.py
liliangbin/twist-to-wheel-speed
5a25b08a50b5f828a783d7e8723c64955528c76d
[ "Apache-2.0" ]
1
2020-06-13T23:48:27.000Z
2020-06-13T23:48:27.000Z
src/exmample.py
liliangbin/twist-to-wheel-speed
5a25b08a50b5f828a783d7e8723c64955528c76d
[ "Apache-2.0" ]
null
null
null
src/exmample.py
liliangbin/twist-to-wheel-speed
5a25b08a50b5f828a783d7e8723c64955528c76d
[ "Apache-2.0" ]
null
null
null
import time import RPi.GPIO as gpio pin = 33 pin_wheel = 35 while True: print 'go straight ' gpio.setmode(gpio.BOARD) gpio.setup(pin, gpio.OUT) gpio.setup(pin_wheel, gpio.OUT) gpio.output(pin_wheel, gpio.HIGH) p = gpio.PWM(pin, 400) p.start(0) dc = 10 for i in range(40): dc...
18.916667
37
0.581498
import time import RPi.GPIO as gpio pin = 33 pin_wheel = 35 while True: print 'go straight ' gpio.setmode(gpio.BOARD) gpio.setup(pin, gpio.OUT) gpio.setup(pin_wheel, gpio.OUT) gpio.output(pin_wheel, gpio.HIGH) p = gpio.PWM(pin, 400) p.start(0) dc = 10 for i in range(40): dc...
0
0
0
0
0
0
0
0
0
8cf5b17f3cc5a4e711432a819079968050d16523
655
py
Python
exercise/Bai1.py
nguyenquanghieu2000d/HocMayNangCao
2c6df4527f4661840c1d0bea2c42d5f18309e360
[ "Apache-2.0" ]
null
null
null
exercise/Bai1.py
nguyenquanghieu2000d/HocMayNangCao
2c6df4527f4661840c1d0bea2c42d5f18309e360
[ "Apache-2.0" ]
null
null
null
exercise/Bai1.py
nguyenquanghieu2000d/HocMayNangCao
2c6df4527f4661840c1d0bea2c42d5f18309e360
[ "Apache-2.0" ]
null
null
null
# Bi tp 2. S dng th vin pandas c vo file Iris.csv c bin b nh df. # 2a. Hin th df. # 2b. Chuyn ct nhn y Species thnh dng d liu m ha OHE. Hin th d liu c m ha. # 2c. To ra ct vector u vo x, v ct nhn vector u ra y ca df. Hin th x v y. # G: import pandas as pd # 2a df = pd.read_csv("../data/Iris.csv") print(df) # 2b one_ho...
34.473684
102
0.719084
# Bài tập 2. Sử dụng thư viện pandas đọc vào file Iris.csv được biến bộ nhớ df. # 2a. Hiển thị df. # 2b. Chuyển cột nhãn y Species thành dạng dữ liệu mã hóa OHE. Hiển thị dữ liệu được mã hóa. # 2c. Tạo ra cột vector đầu vào x, và cột nhãn vector đầu ra y của df. Hiển thị x và y. # G: import pandas as pd # 2a df = pd.r...
127
0
0
0
0
0
0
0
0
73f55c453ed7f9744328b2e5877299831b238e6b
3,214
py
Python
entries/day16/main.py
ZeldaZach/AdventOfCode2021
3eefd3dcaeb331457c4fc58866705aa6c6580830
[ "MIT" ]
1
2022-01-02T11:00:04.000Z
2022-01-02T11:00:04.000Z
entries/day16/main.py
ZeldaZach/AdventOfCode2021
3eefd3dcaeb331457c4fc58866705aa6c6580830
[ "MIT" ]
null
null
null
entries/day16/main.py
ZeldaZach/AdventOfCode2021
3eefd3dcaeb331457c4fc58866705aa6c6580830
[ "MIT" ]
null
null
null
if __name__ == "__main__": main()
28.954955
86
0.632234
import pathlib from functools import reduce from typing import List, Tuple def read_inputs(input_file: str) -> str: with pathlib.Path(input_file).open() as fp: return str(fp.readline()).strip() def part1() -> int: # 35 minutes line = read_inputs("input.txt") total = "" for char in line:...
0
0
0
0
0
2,955
0
9
204
b70257688930fda0f16498d55384d7c0416d889c
4,179
py
Python
test3.py
fatman2021/project-manhattan
a24febefcdd63923c6ba7da78e4d9db95157c4bf
[ "Apache-2.0" ]
2
2020-01-08T06:18:56.000Z
2021-07-24T03:05:10.000Z
test3.py
fatman2021/project-manhattan
a24febefcdd63923c6ba7da78e4d9db95157c4bf
[ "Apache-2.0" ]
null
null
null
test3.py
fatman2021/project-manhattan
a24febefcdd63923c6ba7da78e4d9db95157c4bf
[ "Apache-2.0" ]
1
2021-07-24T03:05:11.000Z
2021-07-24T03:05:11.000Z
# Start of file import bpy bpy.context.scene.render.engine = 'CYCLES' bpy.context.scene.render.resolution_x = 320 bpy.context.scene.render.resolution_y = 208 bpy.context.scene.render.resolution_percentage = 100 bpy.context.scene.render.image_settings.file_format = 'BMP' bpy.context.scene.render.tile_x = 16 bpy.context....
52.898734
113
0.775305
# Start of file import bpy bpy.context.scene.render.engine = 'CYCLES' bpy.context.scene.render.resolution_x = 320 bpy.context.scene.render.resolution_y = 208 bpy.context.scene.render.resolution_percentage = 100 bpy.context.scene.render.image_settings.file_format = 'BMP' bpy.context.scene.render.tile_x = 16 bpy.context....
0
0
0
0
0
0
0
0
0
a4953b714971962e388fc00a0817bc6ca26a5c39
1,395
py
Python
core/actor/visual/assets/__init__.py
pyfection/strategos
1039a069ec15b89e72eb06feca6c103cb2f2e0f5
[ "MIT" ]
2
2018-01-07T18:56:56.000Z
2018-02-28T10:58:41.000Z
core/actor/visual/assets/__init__.py
pyfection/strategos
1039a069ec15b89e72eb06feca6c103cb2f2e0f5
[ "MIT" ]
7
2017-12-29T00:17:11.000Z
2022-03-11T23:19:05.000Z
core/actor/visual/assets/__init__.py
pyfection/strategos
1039a069ec15b89e72eb06feca6c103cb2f2e0f5
[ "MIT" ]
1
2019-12-13T14:42:33.000Z
2019-12-13T14:42:33.000Z
import os from kivy.uix.image import Image print("Warning: this module will be removed in future") ASSET_PATH = os.path.dirname(__file__) SIZE_MOD = 32 tiles = { 'grass': lambda **kwargs: tile_factory("grass.png", **kwargs), 'settlement': lambda **kwargs: tile_factory("settlement.png", **kwargs), ...
27.9
78
0.632258
import os from kivy.uix.image import Image print("Warning: this module will be removed in future") ASSET_PATH = os.path.dirname(__file__) SIZE_MOD = 32 def tile_factory(file_name, pos, **kwargs): pos = pos[0] * SIZE_MOD, pos[1] * SIZE_MOD return Image( source=os.path.join(ASSET_PATH, "tiles", f...
0
0
0
0
0
255
0
0
23
44cfd9abc57cbe65c8fedb5510451d8e164c1893
2,214
py
Python
tests/test_deepl_server.py
ffreemt/deepl-fastapi
bf806f1cb3784067e764e813b581e0d21c4b739c
[ "MIT" ]
3
2021-03-19T16:46:04.000Z
2021-11-23T02:12:30.000Z
tests/test_deepl_server.py
ffreemt/deepl-fastapi
bf806f1cb3784067e764e813b581e0d21c4b739c
[ "MIT" ]
null
null
null
tests/test_deepl_server.py
ffreemt/deepl-fastapi
bf806f1cb3784067e764e813b581e0d21c4b739c
[ "MIT" ]
null
null
null
"""Sanity check.""" import os import sys from pathlib import Path from time import sleep from subprocess import Popen import portalocker from logzero import logger # start the server if not already started lockfile = f'{Path(__file__).parent.parent / "deepl_fastapi" / "deepl_server.py.portalocker.lock"}' logger.info(...
29.918919
99
0.590786
"""Sanity check.""" import os import sys from pathlib import Path from time import sleep import requests from subprocess import Popen import portalocker from logzero import logger # start the server if not already started lockfile = f'{Path(__file__).parent.parent / "deepl_fastapi" / "deepl_server.py.portalocker.loc...
6
0
0
0
0
832
0
-6
46
54bd522c10610f9a3c7c414f5a4f3f8769d7c696
2,390
py
Python
reports/graphs/sleep_totals.py
vault-the/babybuddy
162f117cef019771ef6393146a0c63110e337d7f
[ "BSD-2-Clause" ]
null
null
null
reports/graphs/sleep_totals.py
vault-the/babybuddy
162f117cef019771ef6393146a0c63110e337d7f
[ "BSD-2-Clause" ]
5
2020-06-05T16:49:14.000Z
2022-01-13T00:34:19.000Z
reports/graphs/sleep_totals.py
vault-the/babybuddy
162f117cef019771ef6393146a0c63110e337d7f
[ "BSD-2-Clause" ]
1
2021-07-08T17:59:24.000Z
2021-07-08T17:59:24.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.utils import timezone import plotly.offline as plotly import plotly.graph_objs as go from core.utils import duration_parts from reports import utils def sleep_totals(instances): """ Create a graph showing total time sleeping for e...
33.194444
78
0.628452
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.utils import timezone import plotly.offline as plotly import plotly.graph_objs as go from core.utils import duration_parts from reports import utils def sleep_totals(instances): """ Create a graph showing total time sleeping for e...
0
0
0
0
0
0
0
0
0
fbd362640bd13b085f1a705f65bc0ecbf6df81c9
1,213
py
Python
tests/test_driver_loader.py
lightcode/OVM
3c6c3528ef851f65d4bd75cafb8738c54fba7b6f
[ "MIT" ]
1
2018-03-20T14:54:10.000Z
2018-03-20T14:54:10.000Z
tests/test_driver_loader.py
lightcode/OVM
3c6c3528ef851f65d4bd75cafb8738c54fba7b6f
[ "MIT" ]
null
null
null
tests/test_driver_loader.py
lightcode/OVM
3c6c3528ef851f65d4bd75cafb8738c54fba7b6f
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*-
32.783784
67
0.704864
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import unittest from ovm.exceptions import OVMError from ovm.drivers.driver_loader import DriverLoader from ovm.drivers.storage.lvm import LvmDriver from ovm.drivers.storage.file import FileDriver from ovm.drivers.network.bridge import BridgeDriver class TestDriverLoad...
0
0
0
891
0
0
0
117
157
ddc68c78126e069825cbfdf07b334da827c19781
7,134
py
Python
pandamesh/common.py
visr/pandamesh
f88396c5b54ac004a2f902a2354334a776f411c8
[ "MIT" ]
6
2021-11-30T15:35:57.000Z
2021-12-15T10:44:50.000Z
pandamesh/common.py
visr/pandamesh
f88396c5b54ac004a2f902a2354334a776f411c8
[ "MIT" ]
2
2021-12-08T13:40:20.000Z
2021-12-08T13:49:26.000Z
pandamesh/common.py
Deltares/pandamesh
f88396c5b54ac004a2f902a2354334a776f411c8
[ "MIT" ]
null
null
null
from itertools import combinations from typing import Tuple import geopandas as gpd import numpy as np IntArray = np.ndarray FloatArray = np.ndarray coord_dtype = np.dtype([("x", np.float64), ("y", np.float64)]) def overlap_shortlist(features: gpd.GeoSeries) -> Tuple[IntArray, IntArray]: """ Create a s...
31.566372
95
0.657135
import functools import operator from enum import Enum from itertools import combinations from typing import Any, Sequence, Tuple import geopandas as gpd import numpy as np import pygeos import shapely.geometry as sg IntArray = np.ndarray FloatArray = np.ndarray coord_dtype = np.dtype([("x", np.float64), ("y", np.flo...
0
0
0
0
0
3,816
0
4
363
11dd4e6bd5927f477fa2d99cac5acc17453ed7da
1,722
py
Python
DFL168A/J1939/PGN65263.py
Dafulai/DFL168A_python
95825a27f2c145afbd02c207c3d622d6a77ceff2
[ "MIT" ]
null
null
null
DFL168A/J1939/PGN65263.py
Dafulai/DFL168A_python
95825a27f2c145afbd02c207c3d622d6a77ceff2
[ "MIT" ]
null
null
null
DFL168A/J1939/PGN65263.py
Dafulai/DFL168A_python
95825a27f2c145afbd02c207c3d622d6a77ceff2
[ "MIT" ]
null
null
null
SuccessFresh=False
25.701493
51
0.647503
import time import DFL168A SuccessFresh=False def refresh(): global SuccessFresh if not DFL168A.DigitalCommand('FEEF'): SuccessFresh=False return False Temp=DFL168A.HandleResponse(DFL168A.ReturnStr) DFL168A.ReturnStr=Temp SuccessFresh=True return True def getFueDe...
0
0
0
0
0
1,511
0
-17
209
a4c648e6b4ec1df91ffe59b01b3f2b0eb107894e
1,471
py
Python
tests/test_config.py
pmpsa-hpc/RPackUtils
eedffd8b55db0fbcfd77cf8e8ef10b59b6d925f7
[ "Apache-2.0" ]
1
2018-05-24T17:44:47.000Z
2018-05-24T17:44:47.000Z
tests/test_config.py
sgubianpm/RPackUtils
eedffd8b55db0fbcfd77cf8e8ef10b59b6d925f7
[ "Apache-2.0" ]
null
null
null
tests/test_config.py
sgubianpm/RPackUtils
eedffd8b55db0fbcfd77cf8e8ef10b59b6d925f7
[ "Apache-2.0" ]
null
null
null
####################################### # Copyright 2019 PMP SA. # # SPDX-License-Identifier: Apache-2.0 # #######################################
28.288462
59
0.558124
####################################### # Copyright 2019 PMP SA. # # SPDX-License-Identifier: Apache-2.0 # ####################################### import os import pytest from rpackutils.config import Config def test_custom_config(): configfilepath = os.path.join( os.path.dirname(os.path.abs...
0
0
0
0
0
1,225
0
-5
90
ddcd906a3c178d8cda4dd056e92fd2fdd61047ae
1,927
py
Python
movie_rs/matrix_factorization.py
sparshk/movie_recommender_system
473409f4d569291ab1badccd16c92e575ca487a5
[ "MIT" ]
null
null
null
movie_rs/matrix_factorization.py
sparshk/movie_recommender_system
473409f4d569291ab1badccd16c92e575ca487a5
[ "MIT" ]
null
null
null
movie_rs/matrix_factorization.py
sparshk/movie_recommender_system
473409f4d569291ab1badccd16c92e575ca487a5
[ "MIT" ]
null
null
null
import pandas as pd import numpy as nm import sqlite3 from scipy.sparse.linalg import svds from sqlalchemy import create_engine engine=create_engine("postgres://postgres:25736534@localhost:5432/postgres") print(user_row_number) sorted_user_predictions = predictions_df.iloc[user_row_number].sort_values(ascending=Fa...
45.880952
100
0.702647
import pandas as pd import numpy as nm import sqlite3 from scipy.sparse.linalg import svds from sqlalchemy import create_engine engine=create_engine("postgres://postgres:25736534@localhost:5432/postgres") def recommend_movies(predictions_df, userID, movies_df, original_ratings_df, num_recommendations=5): user_row_num...
0
0
0
0
0
852
0
0
46
0f9a997afd234ead9cc42043bcad31d9a945c6b7
4,721
py
Python
Scripts/simulation/gsi_handlers/buff_handlers.py
velocist/TS4CheatsInfo
b59ea7e5f4bd01d3b3bd7603843d525a9c179867
[ "Apache-2.0" ]
null
null
null
Scripts/simulation/gsi_handlers/buff_handlers.py
velocist/TS4CheatsInfo
b59ea7e5f4bd01d3b3bd7603843d525a9c179867
[ "Apache-2.0" ]
null
null
null
Scripts/simulation/gsi_handlers/buff_handlers.py
velocist/TS4CheatsInfo
b59ea7e5f4bd01d3b3bd7603843d525a9c179867
[ "Apache-2.0" ]
null
null
null
# uncompyle6 version 3.7.4 # Python bytecode 3.7 (3394) # Decompiled from: Python 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:58:18) [MSC v.1900 64 bit (AMD64)] # Embedded file name: T:\InGame\Gameplay\Scripts\Server\gsi_handlers\buff_handlers.py # Compiled at: 2014-05-30 02:11:42 # Size of source mod 2**32: 4843 by...
56.879518
126
0.734802
# uncompyle6 version 3.7.4 # Python bytecode 3.7 (3394) # Decompiled from: Python 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:58:18) [MSC v.1900 64 bit (AMD64)] # Embedded file name: T:\InGame\Gameplay\Scripts\Server\gsi_handlers\buff_handlers.py # Compiled at: 2014-05-30 02:11:42 # Size of source mod 2**32: 4843 by...
0
0
0
0
0
2,351
0
9
90
f968ab8fa892c693792ae82a3470902282576d07
37
py
Python
Autokey/CapsKeybinds/shift/right.py
MisaghM/Capslock-Keybindings
00332c7d39cf776c43fe13aa08e1c2969747425d
[ "MIT" ]
1
2021-11-05T19:39:36.000Z
2021-11-05T19:39:36.000Z
Autokey/CapsKeybinds/shift/right.py
MisaghM/Capslock-Keybindings
00332c7d39cf776c43fe13aa08e1c2969747425d
[ "MIT" ]
null
null
null
Autokey/CapsKeybinds/shift/right.py
MisaghM/Capslock-Keybindings
00332c7d39cf776c43fe13aa08e1c2969747425d
[ "MIT" ]
null
null
null
keyboard.send_keys("<shift>+<right>")
37
37
0.72973
keyboard.send_keys("<shift>+<right>")
0
0
0
0
0
0
0
0
0
e68f063286831b1e435dc23fedc1ab0c986fc844
8,311
py
Python
pyaib/linesocket.py
loljoho-old/ainu
70c15e59f387817c271c9b282b16423cbba7b6a2
[ "Apache-2.0" ]
null
null
null
pyaib/linesocket.py
loljoho-old/ainu
70c15e59f387817c271c9b282b16423cbba7b6a2
[ "Apache-2.0" ]
null
null
null
pyaib/linesocket.py
loljoho-old/ainu
70c15e59f387817c271c9b282b16423cbba7b6a2
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # Copyright 2013 Facebook # # 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 agree...
35.216102
79
0.545783
#!/usr/bin/env python # # Copyright 2013 Facebook # # 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 agree...
0
105
0
7,100
0
0
0
47
180
364c359b4af83293ca8e35c2b54053600928c890
1,174
py
Python
2nd_100/problem108.py
takekoputa/project-euler
6f434be429bd26f5d0f84f5ab0f5fa2bd677c790
[ "MIT" ]
null
null
null
2nd_100/problem108.py
takekoputa/project-euler
6f434be429bd26f5d0f84f5ab0f5fa2bd677c790
[ "MIT" ]
null
null
null
2nd_100/problem108.py
takekoputa/project-euler
6f434be429bd26f5d0f84f5ab0f5fa2bd677c790
[ "MIT" ]
1
2021-11-02T12:08:46.000Z
2021-11-02T12:08:46.000Z
# Question: https://projecteuler.net/problem=108 """ 1/x + 1/y = 1/n Since n > 0, we have x > n and y > n. Assume x >= y. Let x = n + a, y = n + b. 1/x + 1/y = 1/n -> xn + yn = xy -> (n+a)n + (n+b)n = (n+a)(n+b) -> 2n^2 + an + bn = n^2 + an + bn + ab -> n^2 = ab The number of solutions of (x,y) for each n is the nu...
34.529412
120
0.584327
# Question: https://projecteuler.net/problem=108 """ 1/x + 1/y = 1/n Since n > 0, we have x > n and y > n. Assume x >= y. Let x = n + a, y = n + b. 1/x + 1/y = 1/n -> xn + yn = xy -> (n+a)n + (n+b)n = (n+a)(n+b) -> 2n^2 + an + bn = n^2 + an + bn + ab -> n^2 = ab The number of solutions of (x,y) for each n is the nu...
0
0
0
0
0
0
0
0
0
4ad1e402d4b20f23f6ba3b10ad2eb51fccb091c3
10,031
py
Python
src/virtual-wan/azext_vwan/commands.py
ibabedal/azure-cli-extensions
ae86b635e5669e7088108506b8964c6daedb7742
[ "MIT" ]
2
2021-06-05T17:51:26.000Z
2021-11-17T11:17:56.000Z
src/virtual-wan/azext_vwan/commands.py
ibabedal/azure-cli-extensions
ae86b635e5669e7088108506b8964c6daedb7742
[ "MIT" ]
1
2020-06-12T01:39:40.000Z
2020-06-12T01:39:40.000Z
src/virtual-wan/azext_vwan/commands.py
ibabedal/azure-cli-extensions
ae86b635e5669e7088108506b8964c6daedb7742
[ "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. # --------------------------------------------------------------------...
48.458937
167
0.718572
# -------------------------------------------------------------------------------------------- # 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
0
0
9,131
0
354
111
fccdc2372d03085d61290955d27b6d16997c2aac
3,925
py
Python
train_cnn_model.py
jacksonwalters/text-binary-classifier
667ec9c899735d897a2fc954b9d1d9ad89d42140
[ "MIT" ]
null
null
null
train_cnn_model.py
jacksonwalters/text-binary-classifier
667ec9c899735d897a2fc954b9d1d9ad89d42140
[ "MIT" ]
null
null
null
train_cnn_model.py
jacksonwalters/text-binary-classifier
667ec9c899735d897a2fc954b9d1d9ad89d42140
[ "MIT" ]
null
null
null
#DATA: 6,000 labled tweets before 2020 election from Biden=0, Trump=1. #VECTORIZER: tokenizer. vocab size 19,415. #MODEL: 1-d CNN with a global max-pool layer. if __name__ == "__main__": #load the data import os import pandas as pd os.chdir('/Users/jacksonwalters/tensorflow_datasets') filepath_di...
37.028302
120
0.672102
#DATA: 6,000 labled tweets before 2020 election from Biden=0, Trump=1. #VECTORIZER: tokenizer. vocab size 19,415. #MODEL: 1-d CNN with a global max-pool layer. if __name__ == "__main__": #load the data import os import pandas as pd os.chdir('/Users/jacksonwalters/tensorflow_datasets') filepath_di...
0
0
0
0
0
683
0
0
27
25f94c8f84cb34ad71d414206a53ba24e0277a80
1,971
py
Python
bot.py
Stashchen/bot-top-ranking-slack
9fe3a673a9a023b9329b23229fa619d12da93b4b
[ "MIT" ]
null
null
null
bot.py
Stashchen/bot-top-ranking-slack
9fe3a673a9a023b9329b23229fa619d12da93b4b
[ "MIT" ]
null
null
null
bot.py
Stashchen/bot-top-ranking-slack
9fe3a673a9a023b9329b23229fa619d12da93b4b
[ "MIT" ]
null
null
null
from flask import Flask import os from poll import Poll from slack import WebClient from slackeventsapi import SlackEventAdapter # Start Flask app that will be produce all the requests app = Flask(__name__) # Get venv variables SLACK_BOT_SIGNIN_TOKEN = os.environ.get('SLACK_BOT_SIGNIN_TOKEN') SLACK_BOT_ACCESS_TOKEN ...
31.285714
94
0.734652
from flask import Flask, Response, request import json import os from threading import Thread from poll import Poll from slack import WebClient from slackeventsapi import SlackEventAdapter from handlers.handlers import handle_commands, handle_interactivity # Start Flask app that will be produce all the requests app ...
0
1,025
0
0
0
0
0
62
135
3078806d0483db47b47c2e1a70d09713610e7d96
427
py
Python
my_lambda/test.py
Terrencebosco/lambdata-dspt7-tb
9a5be4e6e0fea1801393253221fcca0511ded83c
[ "MIT" ]
null
null
null
my_lambda/test.py
Terrencebosco/lambdata-dspt7-tb
9a5be4e6e0fea1801393253221fcca0511ded83c
[ "MIT" ]
null
null
null
my_lambda/test.py
Terrencebosco/lambdata-dspt7-tb
9a5be4e6e0fea1801393253221fcca0511ded83c
[ "MIT" ]
null
null
null
from my_lambda.my_classes import MyUtilities import numpy as np if __name__ == "__main__": d = {'col1': [1, 5, 3, 100, 8], 'col2': [3, 4, np.nan, 5, 6]} dt = MyUtilities(d) print(dt.num_nans()) X_train, X_val, X_test, y_train, y_val, y_test = dt.train_validation_test_split('col1','col2',...
23.722222
114
0.639344
from my_lambda.my_classes import MyUtilities import numpy as np import pandas as pd if __name__ == "__main__": d = {'col1': [1, 5, 3, 100, 8], 'col2': [3, 4, np.nan, 5, 6]} dt = MyUtilities(d) print(dt.num_nans()) X_train, X_val, X_test, y_train, y_val, y_test = dt.train_validation_test_...
0
0
0
0
0
0
0
-2
22
eae15b49724fd67ea584c4beb8c7b5c0c80b1714
4,468
py
Python
kuryr_kubernetes/tests/unit/controller/drivers/test_base.py
MaysaMacedo/kuryr-kubernetes-1
e4ba3896974e98dc46cb1afd9cbec42646250d72
[ "Apache-2.0" ]
null
null
null
kuryr_kubernetes/tests/unit/controller/drivers/test_base.py
MaysaMacedo/kuryr-kubernetes-1
e4ba3896974e98dc46cb1afd9cbec42646250d72
[ "Apache-2.0" ]
null
null
null
kuryr_kubernetes/tests/unit/controller/drivers/test_base.py
MaysaMacedo/kuryr-kubernetes-1
e4ba3896974e98dc46cb1afd9cbec42646250d72
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2016 Mirantis, Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requir...
38.852174
79
0.705685
# Copyright (c) 2016 Mirantis, Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requir...
0
3,351
0
135
0
0
0
51
295
c3cc2f62b1c83e90106c355852be900796b650f2
716
py
Python
Leetcode/week_1/p0867_transpose_matrix.py
SamSamhuns/wallbreakers_projekts
c07b555127ee89d6f461cea7cd87811c382086ff
[ "MIT" ]
1
2021-07-07T00:55:23.000Z
2021-07-07T00:55:23.000Z
Leetcode/week_1/p0867_transpose_matrix.py
SamSamhuns/wallbreakers_projekts
c07b555127ee89d6f461cea7cd87811c382086ff
[ "MIT" ]
null
null
null
Leetcode/week_1/p0867_transpose_matrix.py
SamSamhuns/wallbreakers_projekts
c07b555127ee89d6f461cea7cd87811c382086ff
[ "MIT" ]
null
null
null
""" Runtime: O(mn) Space: O(mn) where m = no of rows in A and n = no of cols in A Runtime: 72 ms, faster than 80.91% of Python3 online submissions for Transpose Matrix. Memory Usage: 13.4 MB, less than 100.00% of Python3 online submissions for Transpose Matrix. """
29.833333
92
0.620112
from typing import List class Solution: def transpose(self, A: List[List[int]]) -> List[List[int]]: return self.manual_transpose(A) def manual_transpose(self, A: List[List[int]]) -> List[List[int]]: B = [[0] * len(A) for _ in range(len(A[0]))] # transposed matrix for i in range(len(B...
0
0
0
399
0
0
0
2
45
d72e01e482deb9e10813b6f69d66e5c7f1cd4601
323
py
Python
application/model/layout/option/OptionPopup.py
Kzulfazriawan/Stigma-game-demo
971ee90a908784dfe1c9e87733b0394fa2212299
[ "MIT" ]
2
2016-08-09T05:33:21.000Z
2016-10-05T06:34:04.000Z
application/model/layout/option/OptionPopup.py
Kzulfazriawan/stigma-game-demo
971ee90a908784dfe1c9e87733b0394fa2212299
[ "MIT" ]
null
null
null
application/model/layout/option/OptionPopup.py
Kzulfazriawan/stigma-game-demo
971ee90a908784dfe1c9e87733b0394fa2212299
[ "MIT" ]
null
null
null
from core import Files from library.stigma.helper import kivyBuilder kivyBuilder(Files.apppath, 'model', 'builder', 'option', 'optionpopup.kv')
32.3
74
0.736842
from core import Files from library.stigma.helper import kivyBuilder from library.stigma.application import Popup kivyBuilder(Files.apppath, 'model', 'builder', 'option', 'optionpopup.kv') class OptionPopup(Popup): def __init__(self): super(OptionPopup, self).__init__() self.title = "Pick one Opti...
0
0
0
111
0
0
0
23
45
ad98b9b64db2a280ab328b62dbe4ff2dd803bdfd
14,838
py
Python
orquesta/tests/unit/conducting/test_workflow_conductor_branching.py
batk0/orquesta
f03f3f2f3820bf111a9277f4f6c5d6c83a89d004
[ "Apache-2.0" ]
null
null
null
orquesta/tests/unit/conducting/test_workflow_conductor_branching.py
batk0/orquesta
f03f3f2f3820bf111a9277f4f6c5d6c83a89d004
[ "Apache-2.0" ]
null
null
null
orquesta/tests/unit/conducting/test_workflow_conductor_branching.py
batk0/orquesta
f03f3f2f3820bf111a9277f4f6c5d6c83a89d004
[ "Apache-2.0" ]
null
null
null
# 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 # distributed under th...
43.769912
100
0.657771
# 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 # distributed under th...
0
0
0
14,100
0
0
0
58
134
40523554accfed21ca85773e4e4bb4e36bdf5ef7
3,988
py
Python
train.py
Tandon-A/Tolkien-Bot
b19c9311ae4b33b30f0722e73bd2f981cff6beeb
[ "MIT" ]
null
null
null
train.py
Tandon-A/Tolkien-Bot
b19c9311ae4b33b30f0722e73bd2f981cff6beeb
[ "MIT" ]
null
null
null
train.py
Tandon-A/Tolkien-Bot
b19c9311ae4b33b30f0722e73bd2f981cff6beeb
[ "MIT" ]
null
null
null
import tensorflow as tf """ Import sbot class definition. """ """ Function to load data and prepare the metadata variables """ """ Function to build training sequences. """ """ Training Function. """ flags = tf.app.flags flags.DEFINE_string("file_path",None,"Path to file containing training texts") ...
30.442748
114
0.647693
import tensorflow as tf import numpy as np import math import pickle import os """ Import sbot class definition. """ from sbot import sbot """ Function to load data and prepare the metadata variables """ def load_data(file_path,meta_dir): with open(file_path,"r") as f: data = f.read() f.close() chars =...
0
0
0
0
0
3,231
0
-33
205
3d439768499921060939de124f36b2c3ee23e26c
3,305
py
Python
tests/boxes/util/test_filters.py
WildbookOrg/wbia-deprecate-tpl-brambox
9aa6a69f706d0653a65520c696a7cd66715b6a37
[ "MIT" ]
2
2019-03-23T03:14:11.000Z
2019-11-21T07:16:13.000Z
tests/boxes/util/test_filters.py
WildbookOrg/wbia-deprecate-tpl-brambox
9aa6a69f706d0653a65520c696a7cd66715b6a37
[ "MIT" ]
null
null
null
tests/boxes/util/test_filters.py
WildbookOrg/wbia-deprecate-tpl-brambox
9aa6a69f706d0653a65520c696a7cd66715b6a37
[ "MIT" ]
1
2021-12-01T03:04:53.000Z
2021-12-01T03:04:53.000Z
# -*- coding: utf-8 -*- import unittest if __name__ == '__main__': unittest.main()
33.383838
81
0.632375
# -*- coding: utf-8 -*- import unittest import brambox.boxes as bbb class TestImageBoundsFilter(unittest.TestCase): def setUp(self): # construct box that is in bounds self.box = bbb.Box() self.box.x_top_left = 2.0 self.box.y_top_left = 2.0 self.box.width = 5.0 self....
0
0
0
3,140
0
0
0
6
68
853a6d2f24a1015080819d399104966c122d17e8
761
py
Python
snippets/minimal_quick_gui.py
GLmontanari/pdEFFE
71764540dcf837708723a051c6c0f475a8e95d06
[ "MIT" ]
null
null
null
snippets/minimal_quick_gui.py
GLmontanari/pdEFFE
71764540dcf837708723a051c6c0f475a8e95d06
[ "MIT" ]
null
null
null
snippets/minimal_quick_gui.py
GLmontanari/pdEFFE
71764540dcf837708723a051c6c0f475a8e95d06
[ "MIT" ]
null
null
null
import sys from os.path import abspath, dirname, join from PyQt5.QtGui import QGuiApplication from PyQt5.QtQml import QQmlApplicationEngine if __name__ == '__main__': app = QGuiApplication(sys.argv) engine = QQmlApplicationEngine() # Instance of the Python object bridge = Bridge() # Expose the ...
23.060606
66
0.700394
import sys from os.path import abspath, dirname, join from PyQt5.QtCore import QObject from PyQt5.QtGui import QGuiApplication from PyQt5.QtQml import QQmlApplicationEngine class Bridge(QObject): pass if __name__ == '__main__': app = QGuiApplication(sys.argv) engine = QQmlApplicationEngine() # Ins...
0
0
0
10
0
0
0
11
46
090c72d1ba8b02581515e14ab922e45df840c23a
6,375
py
Python
bot/main.py
Alohomora-team/2019.2-AlohomoraBot
7a4f0a7f12c3aa438a523f67200e4d1e59415cca
[ "MIT" ]
null
null
null
bot/main.py
Alohomora-team/2019.2-AlohomoraBot
7a4f0a7f12c3aa438a523f67200e4d1e59415cca
[ "MIT" ]
41
2019-10-11T05:22:14.000Z
2019-11-28T13:32:33.000Z
bot/main.py
Alohomora-team/2019.2-AlohomoraBot
7a4f0a7f12c3aa438a523f67200e4d1e59415cca
[ "MIT" ]
null
null
null
""" Start program """ import logging import os from commands import Commands from admin.admin_auth import AdminAuth from admin.notify_admin import NotifyAdmin from admin.register_admin import RegisterAdmin from feedback import Feedback from resident.notify_resident import NotifyResident from resident.register_residen...
32.860825
94
0.696314
""" Start program """ import logging import os from commands import Commands from admin.admin_auth import AdminAuth from admin.notify_admin import NotifyAdmin from admin.register_admin import RegisterAdmin from feedback import Feedback from resident.notify_resident import NotifyResident from resident.register_residen...
16
0
0
0
0
0
0
1
22
48cf55ac21dae1be0d14091ee631c6e3e8168d90
6,829
py
Python
sparkly/functions.py
Tubular/sparkly
015dbc830648e20ffeb6bf95a94a760c1fb94b6d
[ "Apache-2.0" ]
31
2016-12-03T06:54:54.000Z
2018-09-08T01:03:57.000Z
sparkly/functions.py
Tubular/sparkly
015dbc830648e20ffeb6bf95a94a760c1fb94b6d
[ "Apache-2.0" ]
23
2016-12-02T18:41:10.000Z
2018-06-08T23:54:34.000Z
sparkly/functions.py
Tubular/sparkly
015dbc830648e20ffeb6bf95a94a760c1fb94b6d
[ "Apache-2.0" ]
4
2016-12-31T19:15:21.000Z
2018-02-12T04:44:59.000Z
# # Copyright 2017 Tubular Labs, 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 ...
35.201031
99
0.633768
# # Copyright 2017 Tubular Labs, 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 ...
0
0
0
0
0
385
0
0
54
1a1d04e177e1156b4c571a0df1d6af5d60cdb792
281
py
Python
dev/circuitpython/examples/tc74_simpletest.py
scripsi/picodeebee
0ec77e92f09fa8711705623482e57a5e0b702696
[ "MIT" ]
null
null
null
dev/circuitpython/examples/tc74_simpletest.py
scripsi/picodeebee
0ec77e92f09fa8711705623482e57a5e0b702696
[ "MIT" ]
null
null
null
dev/circuitpython/examples/tc74_simpletest.py
scripsi/picodeebee
0ec77e92f09fa8711705623482e57a5e0b702696
[ "MIT" ]
null
null
null
# SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries # SPDX-License-Identifier: MIT import time import board import adafruit_tc74 i2c = board.I2C() tc = adafruit_tc74.TC74(i2c) while True: print(f"Temperature: {tc.temperature} C") time.sleep(0.5)
20.071429
63
0.715302
# SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries # SPDX-License-Identifier: MIT import time import board import adafruit_tc74 i2c = board.I2C() tc = adafruit_tc74.TC74(i2c) while True: print(f"Temperature: {tc.temperature} C") time.sleep(0.5)
0
0
0
0
0
0
0
0
0
19ce18ffdc412e7bb0a56f2e80ba483d5e2f76c1
2,819
py
Python
scripts/choosesubject.py
bhrt96/e-Learning-Portal
5ca4d7cc355999ddfcb2cfff18d9832d555cc081
[ "MIT" ]
null
null
null
scripts/choosesubject.py
bhrt96/e-Learning-Portal
5ca4d7cc355999ddfcb2cfff18d9832d555cc081
[ "MIT" ]
null
null
null
scripts/choosesubject.py
bhrt96/e-Learning-Portal
5ca4d7cc355999ddfcb2cfff18d9832d555cc081
[ "MIT" ]
null
null
null
#!/usr/bin/python import MySQLdb import cgi import Cookie import os if 'HTTP_COOKIE' in os.environ : cookie = Cookie.SimpleCookie(os.environ["HTTP_COOKIE"]) else : print "error" print "Content-type:text/html\r\n\r\n" db = MySQLdb.connect('localhost','root','1315','quiz', unix_socket="/opt/lampp/var/mysql/m...
28.765306
151
0.628592
#!/usr/bin/python import MySQLdb import cgi import Cookie import os if 'HTTP_COOKIE' in os.environ : cookie = Cookie.SimpleCookie(os.environ["HTTP_COOKIE"]) else : print "error" print "Content-type:text/html\r\n\r\n" db = MySQLdb.connect('localhost','root','1315','quiz', unix_socket="/opt/lampp/var/mysql/m...
0
0
0
0
0
0
0
0
0
b1770432e35eabd76a00e16b0c841f95caab2259
97
py
Python
common/__init__.py
BravoHaruki/api_auto_test
31a61609a7d4d39b361169c5b1aeedc604abb8af
[ "MIT" ]
null
null
null
common/__init__.py
BravoHaruki/api_auto_test
31a61609a7d4d39b361169c5b1aeedc604abb8af
[ "MIT" ]
null
null
null
common/__init__.py
BravoHaruki/api_auto_test
31a61609a7d4d39b361169c5b1aeedc604abb8af
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # @Time : 2022/1/13 10:13 # @Author : Haruki # @File : __init__.py.py
19.4
28
0.56701
# -*- coding: utf-8 -*- # @Time : 2022/1/13 10:13 下午 # @Author : Haruki # @File : __init__.py.py
6
0
0
0
0
0
0
0
0
c3dc24353e71d3809f99fba2bd61617a0d602135
2,570
py
Python
hw_diag/tests/diagnostics/test_serial_number_diagnostic.py
KevinWassermann94/hm-diag
593a53f741b64c9fa029f5643b50abece9ce117b
[ "MIT" ]
14
2021-04-15T02:20:44.000Z
2022-02-23T19:46:34.000Z
hw_diag/tests/diagnostics/test_serial_number_diagnostic.py
KevinWassermann94/hm-diag
593a53f741b64c9fa029f5643b50abece9ce117b
[ "MIT" ]
245
2021-02-05T12:35:59.000Z
2022-03-31T14:50:53.000Z
hw_diag/tests/diagnostics/test_serial_number_diagnostic.py
KevinWassermann94/hm-diag
593a53f741b64c9fa029f5643b50abece9ce117b
[ "MIT" ]
16
2021-02-15T11:25:33.000Z
2022-03-14T23:49:34.000Z
VALID_CPU_PROC = """00000000ddd1a4c2""" PADDED_CPU_PROC = "%s\x00" % VALID_CPU_PROC
38.358209
79
0.695331
import unittest from unittest.mock import patch, mock_open from hm_pyhelper.diagnostics.diagnostics_report import \ DIAGNOSTICS_PASSED_KEY, DIAGNOSTICS_ERRORS_KEY, DiagnosticsReport from hw_diag.diagnostics.serial_number_diagnostic import SerialNumberDiagnostic VALID_CPU_PROC = """00000000ddd1a4c2""" PADDED_CPU_P...
0
2,055
0
31
0
0
0
178
220
54fc72b7e05eee4bcb468a02e6bab0f8218a0fa6
2,136
py
Python
src/main/script/simple.py
stefano-bragaglia/PyFoil
eb558659f2d0e1298ebd7b854c3ecdeb1a007bda
[ "BSD-2-Clause" ]
null
null
null
src/main/script/simple.py
stefano-bragaglia/PyFoil
eb558659f2d0e1298ebd7b854c3ecdeb1a007bda
[ "BSD-2-Clause" ]
null
null
null
src/main/script/simple.py
stefano-bragaglia/PyFoil
eb558659f2d0e1298ebd7b854c3ecdeb1a007bda
[ "BSD-2-Clause" ]
null
null
null
from foil.learning import foil from foil.learning import get_closure from foil.learning import get_constants from foil.learning import get_masks from foil.models import Clause from foil.models import Example from foil.models import Literal from foil.models import Program if __name__ == '__main__': target = Lite...
38.836364
93
0.546348
import datetime from foil.learning import foil from foil.learning import get_closure from foil.learning import get_constants from foil.learning import get_masks from foil.models import Clause from foil.models import Example from foil.models import Literal from foil.models import Program class Measure: def __init...
0
0
0
242
0
0
0
-6
45
91517275978a93eac0e935ebcbcd444074086821
1,018
py
Python
summarize/nnsum/nnsum/module/attention/bilinear_softmax_attention.py
AIPHES/live-blog-summarization
a5f899ea07a098e1e0b3ab92cd3d430776e6412a
[ "Apache-2.0" ]
2
2019-01-17T17:43:09.000Z
2019-01-17T17:50:38.000Z
summarize/nnsum/nnsum/module/attention/bilinear_softmax_attention.py
AIPHES/live-blog-summarization
a5f899ea07a098e1e0b3ab92cd3d430776e6412a
[ "Apache-2.0" ]
null
null
null
summarize/nnsum/nnsum/module/attention/bilinear_softmax_attention.py
AIPHES/live-blog-summarization
a5f899ea07a098e1e0b3ab92cd3d430776e6412a
[ "Apache-2.0" ]
1
2021-09-19T08:29:08.000Z
2021-09-19T08:29:08.000Z
import torch.nn as nn
31.8125
76
0.609037
import torch import torch.nn as nn import torch.nn.functional as F class BiLinearSoftmaxAttention(nn.Module): def __init__(self): super(BiLinearSoftmaxAttention, self).__init__() def forward(self, context, query, length): raw_scores = torch.bmm(query, context.permute(0, 2, 1)) for b, ...
0
0
0
927
0
0
0
1
67
d29025376156cdce509093d3eab61747ffd84fb5
1,517
py
Python
vendor/bundle/ruby/2.6.0/gems/nokogiri-1.10.4/ext/nokogiri/tmp/x86_64-apple-darwin19/ports/libxml2/2.9.9/libxml2-2.9.9/python/tests/compareNodes.py
Burton-David/Jalpc
5f22fbc245b0bb18220d3a61c3a5d20557e64288
[ "MIT" ]
null
null
null
vendor/bundle/ruby/2.6.0/gems/nokogiri-1.10.4/ext/nokogiri/tmp/x86_64-apple-darwin19/ports/libxml2/2.9.9/libxml2-2.9.9/python/tests/compareNodes.py
Burton-David/Jalpc
5f22fbc245b0bb18220d3a61c3a5d20557e64288
[ "MIT" ]
null
null
null
vendor/bundle/ruby/2.6.0/gems/nokogiri-1.10.4/ext/nokogiri/tmp/x86_64-apple-darwin19/ports/libxml2/2.9.9/libxml2-2.9.9/python/tests/compareNodes.py
Burton-David/Jalpc
5f22fbc245b0bb18220d3a61c3a5d20557e64288
[ "MIT" ]
1
2019-03-27T16:24:43.000Z
2019-03-27T16:24:43.000Z
#!/usr/bin/python -u import sys import libxml2 # Memory debug specific libxml2.debugMemory(1) # # Testing XML Node comparison and Node hash-value # doc = libxml2.parseDoc("""<root><foo/></root>""") root = doc.getRootElement() # Create two different objects which point to foo foonode1 = root.children foonode2 = root...
29.173077
83
0.699407
#!/usr/bin/python -u import sys import libxml2 # Memory debug specific libxml2.debugMemory(1) # # Testing XML Node comparison and Node hash-value # doc = libxml2.parseDoc("""<root><foo/></root>""") root = doc.getRootElement() # Create two different objects which point to foo foonode1 = root.children foonode2 = root...
0
0
0
0
0
0
0
0
0
c46e670199762ddc0146f1fc9b8fc422a5cc8f38
780
py
Python
Random Problems/Encryption/solution.py
matheuscordeiro/HackerRank
003ab87fdfa9e7c0535972abd06caebb1165423f
[ "MIT" ]
null
null
null
Random Problems/Encryption/solution.py
matheuscordeiro/HackerRank
003ab87fdfa9e7c0535972abd06caebb1165423f
[ "MIT" ]
null
null
null
Random Problems/Encryption/solution.py
matheuscordeiro/HackerRank
003ab87fdfa9e7c0535972abd06caebb1165423f
[ "MIT" ]
null
null
null
#!/usr/local/bin/python3 # Complete the encryption function below. if __name__ == '__main__': fptr = open(os.environ['OUTPUT_PATH'], 'w') s = input() result = encryption(s) fptr.write(result + '\n') fptr.close()
20
67
0.620513
#!/usr/local/bin/python3 import math # Complete the encryption function below. def encryption(s): s_no_spaces = '' size_s = 0 # Instead the code below, we can use len(s) and s.replace(' ', '') for value in s: if s: s_no_spaces = f'{s_no_spaces}{s}' size_s += 1 sqrt = math.sqrt(size_s) rows = int(sqrt)...
0
0
0
0
0
511
0
-10
45
308a75447dc6e71a90797a9724a052f9c802dddf
2,477
py
Python
server/coronachat/storage/tests/test_api.py
dballesteros7/coronachat
9dc94976a763fdcafb4c83171b1dbdeb39b7b103
[ "MIT" ]
2
2020-03-30T21:58:21.000Z
2022-01-09T16:30:52.000Z
server/coronachat/storage/tests/test_api.py
dballesteros7/coronachat
9dc94976a763fdcafb4c83171b1dbdeb39b7b103
[ "MIT" ]
41
2020-03-27T23:44:36.000Z
2022-02-27T02:00:48.000Z
server/coronachat/storage/tests/test_api.py
dballesteros7/coronachat
9dc94976a763fdcafb4c83171b1dbdeb39b7b103
[ "MIT" ]
null
null
null
_TEST_HEADER_CONTENT = """\ Welcome to your local government bot Get information and guidance from use regarding the current outbreak of coronavirus disease (COVID-19). Reply with a number at any time to get the latest information on any topic.""" _EXPECTED_TEST_DATA_TOP_LEVEL_MESSAGE = """\ %s 1. *Latest Update on...
29.843373
88
0.683084
import unittest from coronachat.storage.api import GENERIC_ERROR_MSG, NO_OPTION_FOUND_MSG, MessageReader from coronachat.storage.schema import TopLevelMessage, TopLevelOption _TEST_HEADER_CONTENT = """\ Welcome to your local government bot Get information and guidance from use regarding the current outbreak of coron...
0
0
0
0
0
1,724
0
109
182
3bbbff1f66959ae72a9f42b523681a3b6732edd6
544
py
Python
FastApi/sima/src/utils/passwd.py
parker-pu/SiMa
58353d79c99c0ac05d27960b57705ac3b94f528d
[ "MIT" ]
2
2020-12-11T05:46:36.000Z
2020-12-15T07:47:59.000Z
FastApi/sima/src/utils/passwd.py
parker-pu/SiMa
58353d79c99c0ac05d27960b57705ac3b94f528d
[ "MIT" ]
null
null
null
FastApi/sima/src/utils/passwd.py
parker-pu/SiMa
58353d79c99c0ac05d27960b57705ac3b94f528d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from passlib.context import CryptContext pwd_context = CryptContext(schemes=["bcrypt"], deprecated="auto") def verify_password(plain_password, hashed_password): """ Is the hash of the two values equal :param plain_password: plaintext :param hashed_password: hash password :retu...
24.727273
65
0.709559
# -*- coding: utf-8 -*- from passlib.context import CryptContext pwd_context = CryptContext(schemes=["bcrypt"], deprecated="auto") def verify_password(plain_password, hashed_password): """ Is the hash of the two values equal :param plain_password: plaintext :param hashed_password: hash password :retu...
0
0
0
0
0
0
0
0
0
2fe627536463a1be182b8336c14c473483131472
4,925
py
Python
tests/provider/dwd/radar/test_api_current.py
bh-chaker/wetterdienst
b0d51bb4c7392eb47834e4978e26882d74b22e35
[ "MIT" ]
155
2020-07-03T05:09:22.000Z
2022-03-28T06:57:39.000Z
tests/provider/dwd/radar/test_api_current.py
bh-chaker/wetterdienst
b0d51bb4c7392eb47834e4978e26882d74b22e35
[ "MIT" ]
453
2020-07-02T21:21:52.000Z
2022-03-31T21:35:36.000Z
tests/provider/dwd/radar/test_api_current.py
bh-chaker/wetterdienst
b0d51bb4c7392eb47834e4978e26882d74b22e35
[ "MIT" ]
21
2020-09-07T12:13:27.000Z
2022-03-26T16:26:09.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2018-2021, earthobservations developers. # Distributed under the MIT License. See LICENSE for more info.
27.361111
107
0.674721
# -*- coding: utf-8 -*- # Copyright (c) 2018-2021, earthobservations developers. # Distributed under the MIT License. See LICENSE for more info. import h5py import pytest from wetterdienst.provider.dwd.radar import ( DwdRadarDataFormat, DwdRadarDataSubset, DwdRadarDate, DwdRadarParameter, DwdRadarP...
0
4,369
0
0
0
0
0
202
204
4376084a1d2e1f6edcd3bfc78edf432ca44e4aed
1,116
py
Python
validate.py
abrox/ruuvi
28e5f7bcce52f4a9541f0b15e11215e7b7526d59
[ "MIT" ]
null
null
null
validate.py
abrox/ruuvi
28e5f7bcce52f4a9541f0b15e11215e7b7526d59
[ "MIT" ]
null
null
null
validate.py
abrox/ruuvi
28e5f7bcce52f4a9541f0b15e11215e7b7526d59
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import jsonschema from jsonschema import validate from os.path import join, dirname, abspath import jsonref def _load_json_schema(filename): """ Loads the given schema file """ # relative_path = join('', filename) relative_path = filename absolute_path = join(dirname(__file__),...
29.368421
63
0.670251
#!/usr/bin/env python3 import jsonschema from jsonschema import validate from os.path import join, dirname, abspath import jsonref def _load_json_schema(filename): """ Loads the given schema file """ # relative_path = join('', filename) relative_path = filename absolute_path = join(dirname(__file__),...
0
0
0
0
0
0
0
0
0
c69659e8844f3dec21dcc232e1d0f3f8bba2efc1
263
py
Python
nmigen_boards/ice40_up5k_b_evn.py
lethalbit/nmigen-boards
aaf18252e457ff95257137da2a629820c0ff2bfa
[ "BSD-2-Clause" ]
11
2021-12-10T12:23:29.000Z
2022-03-13T08:40:20.000Z
nmigen_boards/ice40_up5k_b_evn.py
lethalbit/nmigen-boards
aaf18252e457ff95257137da2a629820c0ff2bfa
[ "BSD-2-Clause" ]
12
2021-12-11T18:51:29.000Z
2022-03-12T05:08:52.000Z
nmigen_boards/ice40_up5k_b_evn.py
lethalbit/nmigen-boards
aaf18252e457ff95257137da2a629820c0ff2bfa
[ "BSD-2-Clause" ]
7
2021-12-12T07:20:21.000Z
2022-03-06T06:20:55.000Z
import warnings warnings.warn("instead of nmigen_boards.ice40_up5k_b_evn, use amaranth_boards.ice40_up5k_b_evn", DeprecationWarning, stacklevel=2)
32.875
96
0.821293
from amaranth_boards.ice40_up5k_b_evn import * from amaranth_boards.ice40_up5k_b_evn import __all__ import warnings warnings.warn("instead of nmigen_boards.ice40_up5k_b_evn, use amaranth_boards.ice40_up5k_b_evn", DeprecationWarning, stacklevel=2)
0
0
0
0
0
0
0
56
44
2f8f2b68775ed3bcea2c82fb905ab1dd726fa9c7
24,979
py
Python
python/libs/virtual_classes.py
neilberard/AutoRig
cdd8717483fae418a9dab2b530573f4b804632fe
[ "MIT" ]
null
null
null
python/libs/virtual_classes.py
neilberard/AutoRig
cdd8717483fae418a9dab2b530573f4b804632fe
[ "MIT" ]
null
null
null
python/libs/virtual_classes.py
neilberard/AutoRig
cdd8717483fae418a9dab2b530573f4b804632fe
[ "MIT" ]
null
null
null
import pymel.all as pymel import maya.cmds as cmds import logging log = logging.getLogger(__name__) log.setLevel(logging.DEBUG) def attach_class(node, net): """ Adds a string attribute to a PyNode set to the virtual class identifier. Example node._class = '_TransformNode' :param node: PyNode to add attri...
32.910408
154
0.576724
import pymel.all as pymel import maya.cmds as cmds from python.libs import naming_utils from python.libs import joint_utils from python.libs import shapes import logging log = logging.getLogger(__name__) log.setLevel(logging.DEBUG) def attach_class(node, net): """ Adds a string attribute to a PyNode set to t...
0
12,497
0
10,220
0
0
0
38
248
88949878ea8222d8cce9f9895c96324ac6bd06c7
1,320
py
Python
newbeginning/network/test-analysis/medianvariance.py
arnavkapoor/fsmresults
96daf7e86ed58fea2d7cbbe9364a866c7a548a3e
[ "Apache-2.0" ]
null
null
null
newbeginning/network/test-analysis/medianvariance.py
arnavkapoor/fsmresults
96daf7e86ed58fea2d7cbbe9364a866c7a548a3e
[ "Apache-2.0" ]
null
null
null
newbeginning/network/test-analysis/medianvariance.py
arnavkapoor/fsmresults
96daf7e86ed58fea2d7cbbe9364a866c7a548a3e
[ "Apache-2.0" ]
null
null
null
# import plotly.plotly as py # import plotly.graph_objs as go # import plotly.figure_factory as FF import csv import numpy as np import pandas as pd neededfiles = ['aim.fsm','battlefield2.fsm','counterstrike-source.fsm','halflife2-deathmatch.fsm','dns.fsm','h323.fsm','hotline.fsm','ntp.fsm','rtp.fsm','ssl.fsm','tsp.fsm...
31.428571
185
0.655303
# import plotly.plotly as py # import plotly.graph_objs as go # import plotly.figure_factory as FF import csv import math import numpy as np import pandas as pd import matplotlib as mplt import itertools import matplotlib.pyplot as plt neededfiles = ['aim.fsm','battlefield2.fsm','counterstrike-source.fsm','halflife2-d...
0
0
0
0
0
0
0
-1
89
fc7b59b60500fbdc8842b844fa39aad4bbf51587
6,561
py
Python
scripts/3d_pointing_detection.py
Tacha-S/ros_3d_pointing_detection
6fdaf663a7da90c9e17227584fb244455b746606
[ "MIT" ]
null
null
null
scripts/3d_pointing_detection.py
Tacha-S/ros_3d_pointing_detection
6fdaf663a7da90c9e17227584fb244455b746606
[ "MIT" ]
null
null
null
scripts/3d_pointing_detection.py
Tacha-S/ros_3d_pointing_detection
6fdaf663a7da90c9e17227584fb244455b746606
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- if __name__ == '__main__': main()
40.006098
125
0.624295
#!/usr/bin/env python # -*- coding: utf-8 -*- from geometry_msgs.msg import Pose from ros_3d_pointing_detection.calc_3d_dist import point_3d_line_distance, point_plane_distance from tfpose_ros.msg import Persons from sensor_msgs.msg import PointCloud2, CameraInfo from sensor_msgs import point_cloud2 import numpy as np...
0
0
0
5,900
0
36
0
247
290
3143c4a4d4be088c0dc8c9b335bc7e4b0d656fee
2,528
py
Python
zenora/impl/factory.py
notandrewdev/zenora
b88d2db2fc03c4475ca3f0cbbd70338cecf5a1da
[ "MIT" ]
1
2021-09-24T22:48:33.000Z
2021-09-24T22:48:33.000Z
zenora/impl/factory.py
notandrewdev/zenora
b88d2db2fc03c4475ca3f0cbbd70338cecf5a1da
[ "MIT" ]
null
null
null
zenora/impl/factory.py
notandrewdev/zenora
b88d2db2fc03c4475ca3f0cbbd70338cecf5a1da
[ "MIT" ]
null
null
null
# Zenora, a modern Python API wrapper for the Discord REST API # # Copyright (c) 2020 K.M Ahnaf Zamil # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without ...
33.706667
80
0.686709
# Zenora, a modern Python API wrapper for the Discord REST API # # Copyright (c) 2020 K.M Ahnaf Zamil # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without ...
0
0
0
1,162
0
0
0
49
157
ed4cfd079378bcce20665eaa6c2773019151090a
3,409
py
Python
tests/unit/sagemaker/cli/compatibility/v2/modifiers/test_session_image_uri.py
LastRemote/sagemaker-python-sdk
fddf29d9e4383cd3f939253eef47ee79a464dd37
[ "Apache-2.0" ]
1,690
2017-11-29T20:13:37.000Z
2022-03-31T12:58:11.000Z
tests/unit/sagemaker/cli/compatibility/v2/modifiers/test_session_image_uri.py
LastRemote/sagemaker-python-sdk
fddf29d9e4383cd3f939253eef47ee79a464dd37
[ "Apache-2.0" ]
2,762
2017-12-04T05:18:03.000Z
2022-03-31T23:40:11.000Z
tests/unit/sagemaker/cli/compatibility/v2/modifiers/test_session_image_uri.py
LastRemote/sagemaker-python-sdk
fddf29d9e4383cd3f939253eef47ee79a464dd37
[ "Apache-2.0" ]
961
2017-11-30T16:44:03.000Z
2022-03-30T23:12:09.000Z
# Copyright Amazon.com, Inc. or its affiliates. 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. A copy of # the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" file accompan...
35.884211
86
0.775887
# Copyright Amazon.com, Inc. or its affiliates. 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. A copy of # the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" file accompan...
0
0
0
0
0
2,120
0
102
252
1c6764d99bda65c0edd8edcc41f93418f856848f
1,145
py
Python
backend/appengine/routes/students/rest.py
SamaraCardoso27/eMakeup
02c3099aca85b5f54214c3a32590e80eb61621e7
[ "MIT" ]
null
null
null
backend/appengine/routes/students/rest.py
SamaraCardoso27/eMakeup
02c3099aca85b5f54214c3a32590e80eb61621e7
[ "MIT" ]
null
null
null
backend/appengine/routes/students/rest.py
SamaraCardoso27/eMakeup
02c3099aca85b5f54214c3a32590e80eb61621e7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals
29.358974
70
0.755459
# -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals from student.student_model import StudentForm, Course, Student from distutils import log from gaecookie.decorator import no_csrf from gaepermission.decorator import login_not_required from tekton.gae.middleware.json_middleware import JsonU...
0
702
0
0
0
0
0
160
201
23bf72dc1052caf9090ab8ec52fd5b254a1f6fcf
2,511
py
Python
shared/custom_layers/residual_unit.py
dbulhosa/ILSVRC
c87aaa99680b5d57617c365f45552c94fe34c120
[ "MIT" ]
1
2020-04-28T00:41:55.000Z
2020-04-28T00:41:55.000Z
shared/custom_layers/residual_unit.py
dbulhosa/ILSVRC
c87aaa99680b5d57617c365f45552c94fe34c120
[ "MIT" ]
2
2020-04-27T07:53:35.000Z
2020-05-19T05:49:57.000Z
shared/custom_layers/residual_unit.py
dbulhosa/atari-rl
8e91b553300cc72136cf890f0a568b373f061104
[ "MIT" ]
1
2020-04-28T00:41:56.000Z
2020-04-28T00:41:56.000Z
import keras.layers as lyr def residual_unit(input, size, filters, downsample, kernel_initializer, bias_initializer, kernel_regularizer, bias_regularizer): """ Residual unit using pre-activation as described in: https://arxiv.org/pdf/1603.05027v2.pdf Note that we use 1x1 convolution...
41.85
100
0.687376
import keras.layers as lyr def residual_unit(input, size, filters, downsample, kernel_initializer, bias_initializer, kernel_regularizer, bias_regularizer): """ Residual unit using pre-activation as described in: https://arxiv.org/pdf/1603.05027v2.pdf Note that we use 1x1 convolution...
0
0
0
0
0
370
0
0
27
0a79ef4fc630bafbc85f4d0253758f76aa8e8d8a
16,200
py
Python
test/models/test_pytorch.py
adriaat/quantnn
5248c240b931fa113120e3564605638095e5278f
[ "MIT" ]
null
null
null
test/models/test_pytorch.py
adriaat/quantnn
5248c240b931fa113120e3564605638095e5278f
[ "MIT" ]
3
2022-01-11T08:41:03.000Z
2022-02-11T14:25:09.000Z
test/models/test_pytorch.py
adriaat/quantnn
5248c240b931fa113120e3564605638095e5278f
[ "MIT" ]
5
2020-12-11T03:18:32.000Z
2022-02-14T10:32:09.000Z
""" Tests for the PyTorch NN backend. """ import torch from torch import nn import numpy as np from quantnn import set_default_backend from quantnn.qrnn import QRNN from quantnn.drnn import DRNN, _to_categorical from quantnn.mrnn import Quantiles, Density, Mean, MRNN from quantnn.models.pytorch import QuantileLoss, C...
29.032258
85
0.514321
""" Tests for the PyTorch NN backend. """ import torch from torch import nn import numpy as np from quantnn import set_default_backend from quantnn.qrnn import QRNN from quantnn.drnn import DRNN, _to_categorical from quantnn.mrnn import Quantiles, Density, Mean, MRNN from quantnn.models.pytorch import QuantileLoss, C...
0
0
0
2,849
0
0
0
0
162
32821109522c40bd1a02449a60d21db007e94187
96
py
Python
venv/lib/python3.8/site-packages/pip/_internal/commands/wheel.py
Retraces/UkraineBot
3d5d7f8aaa58fa0cb8b98733b8808e5dfbdb8b71
[ "MIT" ]
2
2022-03-13T01:58:52.000Z
2022-03-31T06:07:54.000Z
venv/lib/python3.8/site-packages/pip/_internal/commands/wheel.py
DesmoSearch/Desmobot
b70b45df3485351f471080deb5c785c4bc5c4beb
[ "MIT" ]
19
2021-11-20T04:09:18.000Z
2022-03-23T15:05:55.000Z
venv/lib/python3.8/site-packages/pip/_internal/commands/wheel.py
DesmoSearch/Desmobot
b70b45df3485351f471080deb5c785c4bc5c4beb
[ "MIT" ]
null
null
null
/home/runner/.cache/pip/pool/c0/a1/92/92cb988e38603986bf8c3eae95a2a93d7694ccf8b2cdf44d353e033a2a
96
96
0.895833
/home/runner/.cache/pip/pool/c0/a1/92/92cb988e38603986bf8c3eae95a2a93d7694ccf8b2cdf44d353e033a2a
0
0
0
0
0
0
0
0
0
a5bc516d0f360ab9ea6a27e217851ad013b853e5
1,142
py
Python
extras/simple.py
bhavinthakar/Doc2Web
c8e772bab9ee9158728548f87daa4433847d1941
[ "MIT" ]
null
null
null
extras/simple.py
bhavinthakar/Doc2Web
c8e772bab9ee9158728548f87daa4433847d1941
[ "MIT" ]
null
null
null
extras/simple.py
bhavinthakar/Doc2Web
c8e772bab9ee9158728548f87daa4433847d1941
[ "MIT" ]
null
null
null
import m5 # Create a system system = System() print(system) # Setup a clock domain system.clk_domain=SrcClockDomain() system.clk_domain.clock = '1GHz' system.clk_domain.voltage_domain=VoltageDomain() # Setup memory mode system.mem_mode='timing' system.mem_ranges= [AddrRange('512MB')] # Create a CPU system.cpu= Timi...
23.306122
80
0.781086
import m5 from m5.objects import * # Create a system system = System() print(system) # Setup a clock domain system.clk_domain=SrcClockDomain() system.clk_domain.clock = '1GHz' system.clk_domain.voltage_domain=VoltageDomain() # Setup memory mode system.mem_mode='timing' system.mem_ranges= [AddrRange('512MB')] # Crea...
0
0
0
0
0
0
0
3
22
098f582579cf6ca68568c151f9800f4996a2b0ac
2,720
py
Python
app/models.py
lpe234/bms
20a2242c9c5e52b099c436eac7addfede57c3a6e
[ "MIT" ]
1
2019-05-01T08:11:59.000Z
2019-05-01T08:11:59.000Z
app/models.py
lpe234/bms
20a2242c9c5e52b099c436eac7addfede57c3a6e
[ "MIT" ]
null
null
null
app/models.py
lpe234/bms
20a2242c9c5e52b099c436eac7addfede57c3a6e
[ "MIT" ]
null
null
null
# -*- coding: UTF-8 -*- from flask_sqlalchemy import SQLAlchemy from app import bms_app __author__ = 'lpe234' db = SQLAlchemy(bms_app)
28.041237
117
0.673897
# -*- coding: UTF-8 -*- from flask_sqlalchemy import SQLAlchemy import sqlalchemy from sqlalchemy.ext.declarative import declared_attr from app import bms_app from app.utils import password_encrypt, password_check __author__ = 'lpe234' db = SQLAlchemy(bms_app) class IDModelMixin(object): id = db.Column(db.I...
141
397
0
1,905
0
0
0
60
158
bd731915d7f0dee07d213b30dfcc9e9bb1ace80a
130
py
Python
intro-neural-networks/gradient-descent/guille.py
endersonO/IA-python-nano-degree
b156293f15b212596ccaa381aa8d254c6895f458
[ "MIT" ]
null
null
null
intro-neural-networks/gradient-descent/guille.py
endersonO/IA-python-nano-degree
b156293f15b212596ccaa381aa8d254c6895f458
[ "MIT" ]
3
2021-05-21T16:02:16.000Z
2022-02-10T00:25:48.000Z
intro-neural-networks/gradient-descent/guille.py
endersonC/IA-python-nano-degree
b156293f15b212596ccaa381aa8d254c6895f458
[ "MIT" ]
null
null
null
import numpy as np w1 = input("W1 :") w2 = input("W2 :") b = input("b :") y=w1*0.4+w2*0.6+b yy=1/(1+np.exp(-y)) print(y) print(yy)
16.25
19
0.561538
import numpy as np w1 = input("W1 :") w2 = input("W2 :") b = input("b :") y=w1*0.4+w2*0.6+b yy=1/(1+np.exp(-y)) print(y) print(yy)
0
0
0
0
0
0
0
0
0
a42482c44d1d7aeb5df6a64ed954fb34b471ab90
13,561
py
Python
AMI/NRM_simulator/pyami/simcode/utils.py
AntoineDarveau/jwst-mtl
a849910e14194804a660b3897dd8bdb25b0daf46
[ "MIT" ]
1
2022-02-04T13:59:18.000Z
2022-02-04T13:59:18.000Z
AMI/NRM_simulator/pyami/simcode/utils.py
AntoineDarveau/jwst-mtl
a849910e14194804a660b3897dd8bdb25b0daf46
[ "MIT" ]
12
2020-09-17T20:14:03.000Z
2022-03-21T21:16:43.000Z
AMI/NRM_simulator/pyami/simcode/utils.py
AntoineDarveau/jwst-mtl
a849910e14194804a660b3897dd8bdb25b0daf46
[ "MIT" ]
1
2020-09-18T15:25:52.000Z
2020-09-18T15:25:52.000Z
#!/usr/bin/env python # original code by Thatte, Anand, Sahlmann, Greenbaum # utility routines and constants for AMI image simulations reorganized by Sahlmann, Anand 3/2016 # anand@stsci.edu 18 Mar 2016 """ """ import numpy as np import time from astropy.io import fits import os # global variables global readnoise,b...
42.510972
157
0.570091
#!/usr/bin/env python # original code by Thatte, Anand, Sahlmann, Greenbaum # utility routines and constants for AMI image simulations reorganized by Sahlmann, Anand 3/2016 # anand@stsci.edu 18 Mar 2016 """ """ import numpy as np import sys, time from astropy.io import fits import os # global variables global readno...
0
0
0
0
0
1,699
0
5
88
3015c1572611e0e4ec2a94a9c9a1ceaa5347af89
429
py
Python
Mundo 3/ex097.py
lucasjurado/Curso-em-Video
1bf6a0a17ecec6be8e06c128f1c1b4aea88164c4
[ "MIT" ]
3
2020-05-19T01:22:35.000Z
2021-02-11T18:59:12.000Z
Mundo 3/ex097.py
lucasjurado/Python
1bf6a0a17ecec6be8e06c128f1c1b4aea88164c4
[ "MIT" ]
null
null
null
Mundo 3/ex097.py
lucasjurado/Python
1bf6a0a17ecec6be8e06c128f1c1b4aea88164c4
[ "MIT" ]
null
null
null
lista = [] lista_par = [] lista_impar = [] while True: n = int(input('Digite um valor: ')) lista.append(n) if n%2 == 0: lista_par.append(n) else: lista_impar.append(n) again = str(input('Quer continuar? [S/N] ')).strip().upper()[0] if again in 'N': break print(f'Lista co...
25.235294
67
0.599068
lista = [] lista_par = [] lista_impar = [] while True: n = int(input('Digite um valor: ')) lista.append(n) if n%2 == 0: lista_par.append(n) else: lista_impar.append(n) again = str(input('Quer continuar? [S/N] ')).strip().upper()[0] if again in 'N': break print(f'Lista co...
0
0
0
0
0
0
0
0
0
b8d029f5bc6161440b8026698d334293fd413a64
237
py
Python
function/recursion/pattern_01_01n.py
nayanapardhekar/Python
55ea0cc1dd69192b25cb71358cd03cc2ce13be0a
[ "MIT" ]
37
2019-04-03T07:19:57.000Z
2022-01-09T06:18:41.000Z
function/recursion/pattern_01_01n.py
nayanapardhekar/Python
55ea0cc1dd69192b25cb71358cd03cc2ce13be0a
[ "MIT" ]
16
2020-08-11T08:09:42.000Z
2021-10-30T17:40:48.000Z
function/recursion/pattern_01_01n.py
nayanapardhekar/Python
55ea0cc1dd69192b25cb71358cd03cc2ce13be0a
[ "MIT" ]
130
2019-10-02T14:40:20.000Z
2022-01-26T17:38:26.000Z
n=int(input('enter a number: ')) f(n) ''' output: enter a number: 6 1 2 3 4 5 6 1 2 3 4 5 1 2 3 4 1 2 3 1 2 1 '''
9.875
32
0.485232
def f(n): if n==0: return def g(t): if t==0: return g(t-1) print(t,end=' ') g(n) print() f(n-1) n=int(input('enter a number: ')) f(n) ''' output: enter a number: 6 1 2 3 4 5 6 1 2 3 4 5 1 2 3 4 1 2 3 1 2 1 '''
0
0
0
0
0
95
0
0
22
0546f3edaa9a5f95688e2a8586c42014cf316be2
4,085
py
Python
py/s3_intelligent_tiering.py
bluecloudreddot/s3-intelligent-tiering
08b7b49114522ac055f388fe14588f82df2ccedf
[ "MIT" ]
2
2019-02-13T17:07:09.000Z
2020-05-03T03:18:13.000Z
py/s3_intelligent_tiering.py
bluecloudreddot/s3-intelligent-tiering
08b7b49114522ac055f388fe14588f82df2ccedf
[ "MIT" ]
null
null
null
py/s3_intelligent_tiering.py
bluecloudreddot/s3-intelligent-tiering
08b7b49114522ac055f388fe14588f82df2ccedf
[ "MIT" ]
1
2019-03-12T09:09:24.000Z
2019-03-12T09:09:24.000Z
""" MIT License Copyright (c) 2019 Blue Cloud Red Dot Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publi...
51.708861
154
0.67246
""" MIT License Copyright (c) 2019 Blue Cloud Red Dot Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publi...
0
0
0
0
0
0
0
0
0
a73bbb4e86f50607aba59110d5fab72de671285b
7,665
py
Python
featureRec/movielens/data/preprocess.py
parth-couture-ai/RecommenderSystems
fbf2a748099fc38f1422d121990eb8e62940f25c
[ "MIT" ]
975
2019-03-28T19:47:38.000Z
2022-03-30T06:25:22.000Z
featureRec/movielens/data/preprocess.py
ShunLu91/RecommenderSystems
0a585139de1b49d72511ce5a4a642bd427c1349a
[ "MIT" ]
20
2019-05-06T12:14:31.000Z
2022-03-24T12:31:43.000Z
featureRec/movielens/data/preprocess.py
ShunLu91/RecommenderSystems
0a585139de1b49d72511ce5a4a642bd427c1349a
[ "MIT" ]
274
2019-04-13T11:06:06.000Z
2022-03-30T06:25:21.000Z
dict = {} user_count = 6040 gender = {} gender['M'] = 1 gender['F'] = 2 dict[1] = "Gender-male" dict[2] = "Gender-female" age = {} age['1'] = 3 age['18'] = 4 age['25'] = 5 age['35'] = 6 age['45'] = 7 age['50'] = 8 age['56'] = 9 dict[3] = "Age-under 18" dict[4] = "Age-18-24" dict[5] = "Age-25-34" dict[6] = "Age-35-...
21.837607
67
0.641748
dict = {} user_count = 6040 gender = {} gender['M'] = 1 gender['F'] = 2 dict[1] = "Gender-male" dict[2] = "Gender-female" age = {} age['1'] = 3 age['18'] = 4 age['25'] = 5 age['35'] = 6 age['45'] = 7 age['50'] = 8 age['56'] = 9 dict[3] = "Age-under 18" dict[4] = "Age-18-24" dict[5] = "Age-25-34" dict[6] = "Age-35-...
0
0
0
0
0
0
0
0
0
f2244993e211d561bad86dbcef92fadb134ea788
2,158
py
Python
syphon/schema/resolvepath.py
ethall/syphon
dd75fd33f3f9164653f24b33c875615dc1d04182
[ "MIT" ]
null
null
null
syphon/schema/resolvepath.py
ethall/syphon
dd75fd33f3f9164653f24b33c875615dc1d04182
[ "MIT" ]
23
2018-01-06T17:59:58.000Z
2019-02-27T15:52:20.000Z
syphon/schema/resolvepath.py
ethall/syphon
dd75fd33f3f9164653f24b33c875615dc1d04182
[ "MIT" ]
1
2019-02-20T17:17:40.000Z
2019-02-20T17:17:40.000Z
"""syphon.schema.resolvepath.py Copyright (c) 2017-2018 Keithley Instruments, LLC. Licensed under MIT (https://github.com/ehall/syphon/blob/master/LICENSE) """ from pandas import DataFrame from sortedcontainers import SortedDict def _normalize(directory: str) -> str: """Make lowercase and replace spaces w...
31.735294
75
0.646432
"""syphon.schema.resolvepath.py Copyright (c) 2017-2018 Keithley Instruments, LLC. Licensed under MIT (https://github.com/ehall/syphon/blob/master/LICENSE) """ from pandas import DataFrame from sortedcontainers import SortedDict def _normalize(directory: str) -> str: """Make lowercase and replace spaces w...
0
0
0
0
0
0
0
0
0
51e613ddfda196d79045aa4d8515248aa5d166f3
2,330
py
Python
project/api/migrations/0057_auto_20210714_2322.py
hlystovea/BBBS
7164ef67615e45d750e965bf958af229b56d49e3
[ "BSD-3-Clause" ]
null
null
null
project/api/migrations/0057_auto_20210714_2322.py
hlystovea/BBBS
7164ef67615e45d750e965bf958af229b56d49e3
[ "BSD-3-Clause" ]
2
2021-06-07T14:06:05.000Z
2021-06-18T16:27:29.000Z
project/api/migrations/0057_auto_20210714_2322.py
hlystovea/BBBS
7164ef67615e45d750e965bf958af229b56d49e3
[ "BSD-3-Clause" ]
2
2021-07-27T20:40:18.000Z
2021-09-12T16:48:19.000Z
# Generated by Django 3.2.3 on 2021-07-14 16:22
38.196721
183
0.590558
# Generated by Django 3.2.3 on 2021-07-14 16:22 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('api', '0056_auto_20210714_2045'), ] operations = [ migrations.RemoveField( model_name='catalog'...
130
0
0
2,118
0
0
0
30
68
5d8e3e36a2258f0b2a6784e236142f8901d10da0
350
py
Python
Flask_Server_API/db.py
SwayamDash/News-Feedback-Management-System1
94f191af0771ae4252eb747619a5a7930ccdbbeb
[ "MIT" ]
1
2021-11-16T19:37:22.000Z
2021-11-16T19:37:22.000Z
Flask_Server_API/db.py
SwayamDash/News-Feedback-Management-System
94f191af0771ae4252eb747619a5a7930ccdbbeb
[ "MIT" ]
null
null
null
Flask_Server_API/db.py
SwayamDash/News-Feedback-Management-System
94f191af0771ae4252eb747619a5a7930ccdbbeb
[ "MIT" ]
null
null
null
from flask_pymongo import pymongo CONNECTION_STRING = "mongodb+srv://swayam:swayam123@cluster0.wiqoj.mongodb.net/newsfeedbacksystem?retryWrites=true&w=majority" client = pymongo.MongoClient(CONNECTION_STRING) db = client.get_database('newsfeedbacksystem') store = pymongo.collection.Collection(db, 'store')
50
126
0.831429
from flask import Flask from flask_pymongo import pymongo from app import app CONNECTION_STRING = "mongodb+srv://swayam:swayam123@cluster0.wiqoj.mongodb.net/newsfeedbacksystem?retryWrites=true&w=majority" client = pymongo.MongoClient(CONNECTION_STRING) db = client.get_database('newsfeedbacksystem') store = pymongo.coll...
0
0
0
0
0
0
0
0
44
4c2a761b765bb318e2b8a214514bc6b78be62b31
21,375
py
Python
twext/enterprise/dal/test/test_record.py
troglodyne/ccs-twistedextensions
1b43cb081ba68ae310140a9e853e041cd6362625
[ "Apache-2.0" ]
23
2016-08-14T07:20:27.000Z
2021-11-08T09:47:45.000Z
twext/enterprise/dal/test/test_record.py
DalavanCloud/ccs-twistedextensions
2c4046df88873dcf33fba7840ed90e4238dcbec7
[ "Apache-2.0" ]
2
2016-12-15T17:51:49.000Z
2019-05-12T15:59:03.000Z
twext/enterprise/dal/test/test_record.py
DalavanCloud/ccs-twistedextensions
2c4046df88873dcf33fba7840ed90e4238dcbec7
[ "Apache-2.0" ]
20
2016-08-17T06:51:00.000Z
2022-03-26T11:55:56.000Z
## # Copyright (c) 2012-2017 Apple Inc. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
34.036624
101
0.568561
## # Copyright (c) 2012-2017 Apple Inc. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
0
17,709
0
1,671
0
0
0
158
160
1b2c4d7cf83e49c4e21c7430538669298e5db5a5
3,518
py
Python
cloudify_gcp/compute/tests/test_security_group.py
cloudify-cosmo/cloudify-gcp-plugin
c70faee0555070f7fc67f0001395eaafb681b23c
[ "Apache-2.0" ]
4
2016-10-24T17:42:07.000Z
2020-05-31T00:34:07.000Z
cloudify_gcp/compute/tests/test_security_group.py
cloudify-cosmo/cloudify-gcp-plugin
c70faee0555070f7fc67f0001395eaafb681b23c
[ "Apache-2.0" ]
35
2015-04-30T20:14:01.000Z
2022-02-03T21:35:54.000Z
cloudify_gcp/compute/tests/test_security_group.py
cloudify-cosmo/cloudify-gcp-plugin
c70faee0555070f7fc67f0001395eaafb681b23c
[ "Apache-2.0" ]
13
2015-04-17T16:42:03.000Z
2021-06-24T04:12:14.000Z
# -*- coding: utf-8 -*- ######## # Copyright (c) 2016-2020 Cloudify Platform 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...
37.031579
75
0.517339
# -*- coding: utf-8 -*- ######## # Copyright (c) 2016-2020 Cloudify Platform 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...
0
2,741
0
0
0
0
0
34
91
d24942e508c1186e62ae2a1e3d1a60df2f0dca2e
12,218
py
Python
tola/test/test_pipeline.py
mercycorps/toladata
4d5f9b45905a81af9981b586690e020d5b3bfc60
[ "Apache-2.0" ]
null
null
null
tola/test/test_pipeline.py
mercycorps/toladata
4d5f9b45905a81af9981b586690e020d5b3bfc60
[ "Apache-2.0" ]
268
2020-03-31T15:46:59.000Z
2022-03-31T18:01:08.000Z
tola/test/test_pipeline.py
mercycorps/toladata
4d5f9b45905a81af9981b586690e020d5b3bfc60
[ "Apache-2.0" ]
1
2021-01-05T01:58:24.000Z
2021-01-05T01:58:24.000Z
SPECIAL_CHARS = "pcl_chars"
46.280303
119
0.569815
from unittest import mock from django.test import TestCase from factories.workflow_models import CountryFactory, OrganizationFactory, TolaUserFactory from tola_management.models import UserManagementAuditLog as UM from workflow.models import TolaUser from tola.pipeline import create_user_okta SPECIAL_CHARS = "ßpécî...
8
0
0
11,841
0
0
0
162
180
7667f234b1d7bf88f3908ea5cd6180604aaa5929
933
py
Python
tools/idlstub.py
yashrajkakkad/resea
985ddb887b460f422b06a081a878598c79e8d8e0
[ "CC0-1.0", "MIT" ]
null
null
null
tools/idlstub.py
yashrajkakkad/resea
985ddb887b460f422b06a081a878598c79e8d8e0
[ "CC0-1.0", "MIT" ]
null
null
null
tools/idlstub.py
yashrajkakkad/resea
985ddb887b460f422b06a081a878598c79e8d8e0
[ "CC0-1.0", "MIT" ]
null
null
null
#!/usr/bin/env python3 if __name__ == "__main__": main()
23.923077
75
0.599143
#!/usr/bin/env python3 import argparse from lark import Lark def parse(source): parser = Lark(""" """) ast = parser.parse(source) idl = {} return idl def c_generator(idl): text = "" text += f"#ifndef __IDL_{idl['name']}_H__\n" text += f"#define __IDL_{idl['name']}_H__\n" text += ...
0
0
0
0
0
764
0
-6
113
82f889092288f46a74d16aabc0c4571dad4852ce
1,757
py
Python
RRT.py
garymullen/python-visualization-of-the-RRT-algorithm-with-pygame
deeb7122ffc247982463e1358004a51c1886307a
[ "MIT" ]
4
2021-05-24T00:56:53.000Z
2022-01-23T19:17:09.000Z
RRT.py
garymullen/python-visualization-of-the-RRT-algorithm-with-pygame
deeb7122ffc247982463e1358004a51c1886307a
[ "MIT" ]
1
2021-08-07T11:20:26.000Z
2021-08-07T11:20:26.000Z
RRT.py
garymullen/python-visualization-of-the-RRT-algorithm-with-pygame
deeb7122ffc247982463e1358004a51c1886307a
[ "MIT" ]
4
2021-07-24T15:19:32.000Z
2022-02-19T12:57:10.000Z
if __name__ == '__main__': result=False while not result: try: main() result=True except: result=False
19.741573
96
0.515083
import pygame from RRTbasePy import RRTGraph from RRTbasePy import RRTMap import time def main(): dimensions =(512,512) start=(50,50) goal=(300,300) obsdim=30 obsnum=50 iteration=0 t1=0 pygame.init() map=RRTMap(start,goal,dimensions,obsdim,obsnum) graph=RRTGraph...
0
0
0
0
0
1,411
0
-2
117
20a085f350adb968c43f78b8f69f54f92daca374
1,940
py
Python
gendatafiles.py
incolumepy/analise_bonus_viagem
84dd60477ea03cccd0b4c56591f017ca9b123442
[ "MIT" ]
null
null
null
gendatafiles.py
incolumepy/analise_bonus_viagem
84dd60477ea03cccd0b4c56591f017ca9b123442
[ "MIT" ]
null
null
null
gendatafiles.py
incolumepy/analise_bonus_viagem
84dd60477ea03cccd0b4c56591f017ca9b123442
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- __author__ = '@britodfbr' import pandas as pd from faker import Faker import locale import random import toml from pathlib import Path dados = Path('dados/dados.toml') dados.parent.mkdir(exist_ok=True) locale.setlocale(locale.LC_TIME, 'pt_BR.utf8') fake = Faker('pt_BR') ...
32.881356
106
0.680412
#!/usr/bin/env python # -*- coding: utf-8 -*- __author__ = '@britodfbr' import pandas as pd from faker import Faker import locale import random import toml from pathlib import Path dados = Path('dados/dados.toml') dados.parent.mkdir(exist_ok=True) locale.setlocale(locale.LC_TIME, 'pt_BR.utf8') fake = Faker('pt_BR') ...
14
0
0
0
0
0
0
0
0
2d792888b823d61762ecd6f4dca134980b6301ba
3,948
py
Python
case/conftest.py
lzpsgh/AscTrio
f969beece5dc93d29063da03793521bc54b814dd
[ "MIT" ]
5
2021-07-21T06:50:51.000Z
2022-03-31T04:18:28.000Z
case/conftest.py
lzpsgh/AscTrio
f969beece5dc93d29063da03793521bc54b814dd
[ "MIT" ]
null
null
null
case/conftest.py
lzpsgh/AscTrio
f969beece5dc93d29063da03793521bc54b814dd
[ "MIT" ]
1
2022-03-28T01:50:03.000Z
2022-03-28T01:50:03.000Z
# crmcookies # h5cookies # 1leads # 1 # cookie # 1leads # n # BASE_PATH = common_kit.env('PROJECT_ROOT') # def get_data(yaml_file_name): # try: # # data_file_path = os.path.join(BASE_PATH, "data", yaml_file_name) # yaml_file_path = f"{BASE_PATH}/data/{yaml_file_name}" # yaml_d...
27.227586
79
0.669959
import allure import pytest from api.account import account from api.user import user from util.log_util import logger from util.mysql_util import mysqler # 在crm后台登录,获取cookies @pytest.fixture(scope="session") def crm_login_with_mm(): login_info = account.crm_login() # yield login_info.json() # 在h5后台登录,获取co...
1,131
446
0
0
0
344
0
23
356
fe191273dc849bf8555a1a90ce02f8756127bfa6
289
py
Python
locale/pot/api/plotting/_autosummary/pyvista-Plotter-add_light-1.py
tkoyama010/pyvista-doc-translations
23bb813387b7f8bfe17e86c2244d5dd2243990db
[ "MIT" ]
4
2020-08-07T08:19:19.000Z
2020-12-04T09:51:11.000Z
locale/pot/api/plotting/_autosummary/pyvista-Plotter-add_light-1.py
tkoyama010/pyvista-doc-translations
23bb813387b7f8bfe17e86c2244d5dd2243990db
[ "MIT" ]
19
2020-08-06T00:24:30.000Z
2022-03-30T19:22:24.000Z
locale/pot/api/plotting/_autosummary/pyvista-Plotter-add_light-1.py
tkoyama010/pyvista-doc-translations
23bb813387b7f8bfe17e86c2244d5dd2243990db
[ "MIT" ]
1
2021-03-09T07:50:40.000Z
2021-03-09T07:50:40.000Z
# Create a plotter that we initialize with no lights, and add a # cube and a single headlight to it. # import pyvista as pv plotter = pv.Plotter(lighting='none') _ = plotter.add_mesh(pv.Cube()) light = pv.Light(color='cyan', light_type='headlight') plotter.add_light(light) plotter.show()
28.9
63
0.743945
# Create a plotter that we initialize with no lights, and add a # cube and a single headlight to it. # import pyvista as pv plotter = pv.Plotter(lighting='none') _ = plotter.add_mesh(pv.Cube()) light = pv.Light(color='cyan', light_type='headlight') plotter.add_light(light) plotter.show()
0
0
0
0
0
0
0
0
0
6f927b8409974a28e2fed78ae93b333d976e1cc1
7,100
py
Python
DictionaryBot/DictionaryBot.py
darrenwjones/SlackBots
6a81fa7b2cd2eb51361bad2f1db3027656f69760
[ "MIT" ]
null
null
null
DictionaryBot/DictionaryBot.py
darrenwjones/SlackBots
6a81fa7b2cd2eb51361bad2f1db3027656f69760
[ "MIT" ]
null
null
null
DictionaryBot/DictionaryBot.py
darrenwjones/SlackBots
6a81fa7b2cd2eb51361bad2f1db3027656f69760
[ "MIT" ]
null
null
null
# THE MOST INTERESTING MAN IN THE WORLD # SLACK CHATBOT IN PYTHON # # Author: Zachary Gillis #-------------------------------------- import time from slackclient import SlackClient from config import SLACK_BOT_TOKEN from database import DictionaryBotDatabase # Instantiate Slack Client slack_client = SlackClient(SLACK_...
34.134615
159
0.584366
# THE MOST INTERESTING MAN IN THE WORLD # SLACK CHATBOT IN PYTHON # # Author: Zachary Gillis #-------------------------------------- import os import time import re import random import urllib import requests import json import sqlite3 from slackclient import SlackClient from config import SLACK_BOT_TOKEN from databas...
21
0
0
0
0
5,212
0
-54
384
880fbcfbd0aea4d12b6ca7297e8e327c30aee7b9
3,697
py
Python
osbrain/tests/test_agent_async_requests_handlers.py
nicoddemus/osbrain
26ba98e1d2dc3389e4ae1047d625f8d3180fe68b
[ "Apache-2.0" ]
null
null
null
osbrain/tests/test_agent_async_requests_handlers.py
nicoddemus/osbrain
26ba98e1d2dc3389e4ae1047d625f8d3180fe68b
[ "Apache-2.0" ]
null
null
null
osbrain/tests/test_agent_async_requests_handlers.py
nicoddemus/osbrain
26ba98e1d2dc3389e4ae1047d625f8d3180fe68b
[ "Apache-2.0" ]
null
null
null
""" Test file for asynchronous requests handlers. """ import pytest from osbrain import Agent from osbrain import run_agent def test_async_rep_handler_exists(nsproxy): """ When binding an ASYNC_REP socket without a handler, an exception must be thrown, letting the user know that a handler must be speci...
31.330508
76
0.689748
""" Test file for asynchronous requests handlers. """ import pytest from osbrain import Agent from osbrain import run_agent from osbrain.helper import wait_agent_attr from common import nsproxy # noqa: F401 from common import append_received class ServerAsyncRep(Agent): def on_init(self): self.received...
0
2,493
0
421
0
0
0
39
196
7fb5ad404820adebd92f407705653e62e6fe4972
3,090
py
Python
revscoring/languages/tests/test_romanian.py
mariushoch/revscoring
5ecd54d31c4088b6f142c0ef54116cc5bdce0ff2
[ "MIT" ]
null
null
null
revscoring/languages/tests/test_romanian.py
mariushoch/revscoring
5ecd54d31c4088b6f142c0ef54116cc5bdce0ff2
[ "MIT" ]
null
null
null
revscoring/languages/tests/test_romanian.py
mariushoch/revscoring
5ecd54d31c4088b6f142c0ef54116cc5bdce0ff2
[ "MIT" ]
null
null
null
from .. import romanian from ...datasources import revision_oriented BAD = [ "bou", "caca", "cacat", "cur", "curu", "curva", "curve", "dracu", "fraier", "fraieri", "fraierilor", "fut", "fute", "futut", "kkt", "laba", "mata", "muie", "muist", "pidar", "pizda", "plm"...
29.711538
84
0.645955
import pickle from .. import romanian from ...datasources import revision_oriented from ...dependencies import solve from .util import compare_extraction BAD = [ "bou", "caca", "cacat", "cur", "curu", "curva", "curve", "dracu", "fraier", "fraieri", "fraierilor", "fut", "fute", "futut", "k...
118
0
0
0
0
1,467
0
19
181
8663390282d738969fd591ac46f3c32c680cf5b5
977
py
Python
app/models/problem.py
just806me/StudyingPPBot
d958bfe7e634f988ca98a82afa83584c6e28f71c
[ "MIT" ]
null
null
null
app/models/problem.py
just806me/StudyingPPBot
d958bfe7e634f988ca98a82afa83584c6e28f71c
[ "MIT" ]
6
2019-01-19T11:50:00.000Z
2019-07-30T09:46:08.000Z
app/models/problem.py
just806me/StudyingPPBot
d958bfe7e634f988ca98a82afa83584c6e28f71c
[ "MIT" ]
null
null
null
from __future__ import annotations
30.53125
91
0.627431
from __future__ import annotations from dataclasses import dataclass from typing import Optional, List from ..database import Database @dataclass class Problem: id: int group: int @staticmethod def create(db: Database, id: int, group: int) -> Problem: cursor = db.cursor() cursor.exec...
0
817
0
0
0
0
0
34
90
43c5c0c0c39bbb309a3391a5aca7a64083a235be
1,350
py
Python
leetcode/1.Array_String/15.3Sum.py
aenon/online_judge
bff3991519cd4f2d80dea9b17680dbc5d4c44b9b
[ "MIT" ]
null
null
null
leetcode/1.Array_String/15.3Sum.py
aenon/online_judge
bff3991519cd4f2d80dea9b17680dbc5d4c44b9b
[ "MIT" ]
null
null
null
leetcode/1.Array_String/15.3Sum.py
aenon/online_judge
bff3991519cd4f2d80dea9b17680dbc5d4c44b9b
[ "MIT" ]
1
2015-01-10T16:02:43.000Z
2015-01-10T16:02:43.000Z
# Given an array S of n integers, are there elements a, b, c in S such that a + b + c = 0? Find all unique triplets in the array which gives the sum of zero. # Note: The solution set must not contain duplicate triplets. # For example, given array S = [-1, 0, 1, 2, -1, -4], # A solution set is: # [ # [-1, 0, 1], ...
32.926829
157
0.425185
# Given an array S of n integers, are there elements a, b, c in S such that a + b + c = 0? Find all unique triplets in the array which gives the sum of zero. # Note: The solution set must not contain duplicate triplets. # For example, given array S = [-1, 0, 1, 2, -1, -4], # A solution set is: # [ # [-1, 0, 1], ...
0
0
0
986
0
0
0
0
23
f345e3d4640258bd791593fb57530d594dee8bb4
681
py
Python
ParaViewCore/ServerManager/Default/Testing/Python/ProxyBackwardsCompatibilityTest.py
trickyMan/paraview_view
3b38670e8259b688093e0d7ba2fe2edd7c5d57a7
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
ParaViewCore/ServerManager/Default/Testing/Python/ProxyBackwardsCompatibilityTest.py
trickyMan/paraview_view
3b38670e8259b688093e0d7ba2fe2edd7c5d57a7
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
ParaViewCore/ServerManager/Default/Testing/Python/ProxyBackwardsCompatibilityTest.py
trickyMan/paraview_view
3b38670e8259b688093e0d7ba2fe2edd7c5d57a7
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
import paraview sourceDs = Wavelet() inputDs = Sphere() # Test 'Resample With Dataset` proxies p1 = ResampleWithDataset(Input=inputDs, Source=sourceDs) print("Proxy Name before: %s" % p1.GetXMLName()) assert p1.GetXMLName() == "ResampleWithDataset", "The default proxy name must be ResampleWithDataset" print("") prin...
34.05
101
0.760646
from paraview.simple import * import paraview sourceDs = Wavelet() inputDs = Sphere() # Test 'Resample With Dataset` proxies p1 = ResampleWithDataset(Input=inputDs, Source=sourceDs) print("Proxy Name before: %s" % p1.GetXMLName()) assert p1.GetXMLName() == "ResampleWithDataset", "The default proxy name must be Resamp...
0
0
0
0
0
0
0
8
22
808da29a79df41623dd584c2d77377f50775018c
533
py
Python
apps/tinyosGW/cgi/simple.py
jeonghoonkang/BerePi
e04283a94a6a0487ab0049dc3e514d6c5dda39cc
[ "BSD-2-Clause" ]
22
2015-06-03T06:28:27.000Z
2022-03-18T08:02:45.000Z
apps/tinyosGW/cgi/simple.py
jeonghoonkang/BerePi
e04283a94a6a0487ab0049dc3e514d6c5dda39cc
[ "BSD-2-Clause" ]
14
2015-06-08T01:31:53.000Z
2020-08-30T02:19:15.000Z
apps/tinyosGW/cgi/simple.py
jeonghoonkang/BerePi
e04283a94a6a0487ab0049dc3e514d6c5dda39cc
[ "BSD-2-Clause" ]
26
2015-05-12T09:33:55.000Z
2021-08-30T05:41:00.000Z
#!/usr/bin/python #-*- coding: UTF-8-*- import cgi import cgitb import os import sys sys.path.append("/home/pi/devel/BerePi/apps/tinyosGW/cgi") #import simple if __name__ == "__main__": cgitb.enable() args = cgi.FieldStorage() #print os.environ.items() print "Content-type: text/html\n" pr...
20.5
97
0.65666
#!/usr/bin/python #-*- coding: UTF-8-*- import cgi import cgitb import os import sys sys.path.append("/home/pi/devel/BerePi/apps/tinyosGW/cgi") #import simple if __name__ == "__main__": cgitb.enable() args = cgi.FieldStorage() #print os.environ.items() print "Content-type: text/html\n" pr...
0
0
0
0
0
0
0
0
0
a6564b153fb2ffdc4f517dc5d57e7c5c16af1f18
2,619
py
Python
param_handle.py
mauricioAyllon/NASA-gamma
14f53a626096d2bf0fce811608c9e59a8d6b5287
[ "MIT" ]
5
2020-12-03T21:45:43.000Z
2021-12-04T16:14:33.000Z
param_handle.py
mauricioAyllon/NASA-gamma
14f53a626096d2bf0fce811608c9e59a8d6b5287
[ "MIT" ]
null
null
null
param_handle.py
mauricioAyllon/NASA-gamma
14f53a626096d2bf0fce811608c9e59a8d6b5287
[ "MIT" ]
3
2020-12-03T20:58:44.000Z
2022-03-24T04:52:57.000Z
# -*- coding: utf-8 -*- """ Created on Mon Feb 22 18:24:32 2021 @author: mauricio parameter handle for GUI """
29.761364
82
0.588774
# -*- coding: utf-8 -*- """ Created on Mon Feb 22 18:24:32 2021 @author: mauricio parameter handle for GUI """ import pandas as pd from nasagamma import spectrum as sp from nasagamma import peaksearch as ps from nasagamma import read_cnf import re def get_spect_search(commands): if commands["-o"]: retur...
0
0
0
0
0
2,321
0
27
157
6a0407340f0f8e682733fd9d9686098ae9ce5d03
5,827
py
Python
demo/app.py
ignacioct/Temis
cf237470e728b45cfa6203eb81d4868720309c26
[ "CC0-1.0" ]
4
2021-06-13T10:19:11.000Z
2021-06-29T16:45:50.000Z
demo/app.py
ignacioct/Temis
cf237470e728b45cfa6203eb81d4868720309c26
[ "CC0-1.0" ]
null
null
null
demo/app.py
ignacioct/Temis
cf237470e728b45cfa6203eb81d4868720309c26
[ "CC0-1.0" ]
1
2022-02-08T19:00:00.000Z
2022-02-08T19:00:00.000Z
import os import streamlit as st import altair as alt st.set_page_config(page_title="Temis Demo App", layout="centered") os.environ["TOKENIZERS_PARALLELISM"] = "False" # To avoid warnings def populating_predictions(input_df, threshold): """Method for getting which categories surpassed the threshold. P...
26.852535
105
0.596019
import os import streamlit as st from text import ( spanish_text, english_text, spanish_labels_dictionary, english_labels_dictionary, ) import pandas as pd import altair as alt import biome.text st.set_page_config(page_title="Temis Demo App", layout="centered") os.environ["TOKENIZERS_PARALLELISM"] =...
0
254
0
0
0
2,802
0
91
112
180271a8b45178f5e56c2cb102be6b2943567928
19,214
py
Python
contsub_dirty_image.py
jmoldon/hcg_hi_pipeline
c06128c6f8acb0dcae9e45efc164e3d282f3ac8d
[ "MIT" ]
1
2020-02-20T08:56:48.000Z
2020-02-20T08:56:48.000Z
contsub_dirty_image.py
jmoldon/hcg_hi_pipeline
c06128c6f8acb0dcae9e45efc164e3d282f3ac8d
[ "MIT" ]
5
2019-12-11T12:02:22.000Z
2022-03-29T08:46:05.000Z
contsub_dirty_image.py
jmoldon/hcg_hi_pipeline
c06128c6f8acb0dcae9e45efc164e3d282f3ac8d
[ "MIT" ]
1
2022-03-23T13:11:01.000Z
2022-03-23T13:11:01.000Z
import imp, glob, shutil, numpy imp.load_source('common_functions','common_functions.py') import common_functions as cf def contsub(msfile,config,config_raw,config_file,logger): """ Subtracts the continuum from each of the science target MSs. If the no line free range is set then the user is queried (in in...
53.372222
536
0.610284
import imp, glob, shutil, numpy imp.load_source('common_functions','common_functions.py') import common_functions as cf def contsub(msfile,config,config_raw,config_file,logger): """ Subtracts the continuum from each of the science target MSs. If the no line free range is set then the user is queried (in in...
0
0
0
0
0
0
0
0
0
3e848fde2ee28e85df566a703650c0fe2549e86b
6,556
py
Python
LiveData.py
jcedmiston/METRA-Rail-Delay-Study
c595ca060949da00f7dd841df5297d66606fc8f7
[ "MIT" ]
null
null
null
LiveData.py
jcedmiston/METRA-Rail-Delay-Study
c595ca060949da00f7dd841df5297d66606fc8f7
[ "MIT" ]
null
null
null
LiveData.py
jcedmiston/METRA-Rail-Delay-Study
c595ca060949da00f7dd841df5297d66606fc8f7
[ "MIT" ]
null
null
null
from threading import Thread # Create keys.py in same directory and include API keys from keys import WEATHER_KEY import logging as log # Setup logging log.basicConfig(filename='data/data_collection.log', filemode='a', format='%(asctime)s - %(levelname)s - %(message)s', level=log.INF...
38.792899
100
0.567877
from threading import Thread import time import datetime import json import requests import csv # Create keys.py in same directory and include API keys from keys import METRA_USER, METRA_PASS, WEATHER_KEY import logging as log # Setup logging log.basicConfig(filename='data/data_collection.log', filem...
0
0
0
0
0
5,409
0
-19
179
eb4155bb1e3d09a092a5353cc7fb49e067753001
22,109
py
Python
src/clustar/core.py
clustar/Clustar
83e155feffc10c4bf172f8ec769fb3c5ffe1d579
[ "MIT" ]
4
2021-02-24T17:27:25.000Z
2021-06-28T04:45:32.000Z
src/clustar/core.py
clustar/Clustar
83e155feffc10c4bf172f8ec769fb3c5ffe1d579
[ "MIT" ]
3
2021-04-05T14:53:26.000Z
2021-06-27T20:17:14.000Z
src/clustar/core.py
clustar/Clustar
83e155feffc10c4bf172f8ec769fb3c5ffe1d579
[ "MIT" ]
1
2021-02-15T16:13:05.000Z
2021-02-15T16:13:05.000Z
""" Contains the 'ClustarData' class, which is responsible for executing the entire project pipeline for detecting groups in a single FITS image; this class also collects and stores all relevant data, statistics, and variables in this pipeline. Visit <https://clustar.github.io/> for additional information. """
34.708006
79
0.529829
""" Contains the 'ClustarData' class, which is responsible for executing the entire project pipeline for detecting groups in a single FITS image; this class also collects and stores all relevant data, statistics, and variables in this pipeline. Visit <https://clustar.github.io/> for additional information. """ from...
0
0
0
21,680
0
0
0
23
90
a17a4b709c3e8c5ef2969f1908748b99c2a32a43
1,171
py
Python
scripts/download/download_from_sra_by_ids_by_fastq_dump.py
mahajrod/MAVR
4db74dff7376a2ffe4426db720b241de9198f329
[ "MIT" ]
10
2015-04-28T14:15:04.000Z
2021-03-15T00:07:38.000Z
scripts/download/download_from_sra_by_ids_by_fastq_dump.py
mahajrod/MAVR
4db74dff7376a2ffe4426db720b241de9198f329
[ "MIT" ]
null
null
null
scripts/download/download_from_sra_by_ids_by_fastq_dump.py
mahajrod/MAVR
4db74dff7376a2ffe4426db720b241de9198f329
[ "MIT" ]
6
2017-03-16T22:38:41.000Z
2021-08-11T00:22:52.000Z
#!/usr/bin/env python __author__ = 'Sergei F. Kliver' import argparse from RouToolPa.Collections.General import IdList from RouToolPa.Tools.NCBIToolkit import FastqDump parser = argparse.ArgumentParser() parser.add_argument("-i", "--ids", action="store", dest="ids", type=lambda s: s.split(","), ...
40.37931
91
0.678907
#!/usr/bin/env python __author__ = 'Sergei F. Kliver' import argparse from RouToolPa.Collections.General import IdList from RouToolPa.Tools.NCBIToolkit import FastqDump parser = argparse.ArgumentParser() parser.add_argument("-i", "--ids", action="store", dest="ids", type=lambda s: s.split(","), ...
0
0
0
0
0
0
0
0
0
b85cf814833c5a45d46362a5401bbc9b0d0199ae
8,597
py
Python
problems/intrusion_bulk.py
gautelinga/-BERNAISE
aa45ae5ccc323d9c61c93542cc327889cae4d0b2
[ "MIT" ]
15
2017-07-19T18:33:26.000Z
2021-03-25T18:36:47.000Z
problems/intrusion_bulk.py
gautelinga/-BERNAISE
aa45ae5ccc323d9c61c93542cc327889cae4d0b2
[ "MIT" ]
9
2017-05-30T16:13:08.000Z
2017-08-25T09:09:05.000Z
problems/intrusion_bulk.py
gautelinga/-BERNAISE
aa45ae5ccc323d9c61c93542cc327889cae4d0b2
[ "MIT" ]
7
2018-05-08T22:50:15.000Z
2020-06-25T13:50:37.000Z
import dolfin as df from common.bcs import Fixed # from ufl import max_value __author__ = "Asger Bolet; Gaute Linga" def initialize(Lx, Ly, rad_init, interface_thickness, solutes, restart_folder, field_to_subspace, inlet_velocity, front_position_init, concentration_left...
33.321705
80
0.552402
import dolfin as df import os from . import * from common.io import mpi_is_root from common.bcs import Fixed, Pressure # from ufl import max_value __author__ = "Asger Bolet; Gaute Linga" class PeriodicBoundary(df.SubDomain): # Left boundary is target domain def __init__(self, Ly): self.Ly = Ly ...
0
0
0
595
0
3,794
0
4
296
48e20ebefdbcecf12574ebbe717f08292ee1fd42
5,022
py
Python
test/test_cnvaeon_.py
peter88213/aeon3odt
f20572177e1e10e2dcc6a130cf3b2b05ed11eed9
[ "MIT" ]
null
null
null
test/test_cnvaeon_.py
peter88213/aeon3odt
f20572177e1e10e2dcc6a130cf3b2b05ed11eed9
[ "MIT" ]
1
2021-10-14T16:00:11.000Z
2021-12-22T11:51:05.000Z
test/test_cnvaeon_.py
peter88213/aeon3odt
f20572177e1e10e2dcc6a130cf3b2b05ed11eed9
[ "MIT" ]
null
null
null
""" Python unit tests for the aeon3odt project. Test suite for aeon3yw.pyw. For further information see https://github.com/peter88213/aeon3yw Published under the MIT License (https://opensource.org/licenses/mit-license.php) """ import os # Test environment # The paths are relative to the "test" directory, # where t...
26.712766
81
0.660295
""" Python unit tests for the aeon3odt project. Test suite for aeon3yw.pyw. For further information see https://github.com/peter88213/aeon3yw Published under the MIT License (https://opensource.org/licenses/mit-license.php) """ from shutil import copyfile import zipfile import os import unittest import cnvaeon_stub_...
0
410
0
2,211
0
817
0
-8
181
81743b15ebc1431123671402435d75028b031bce
973
py
Python
Code/extraction/tensor.py
chrislcs/linear-vegetation-elements
8e45a40dca472ca9d5cbb58593d9f5b5bc855bf4
[ "Apache-2.0" ]
3
2020-06-16T09:05:54.000Z
2020-11-02T06:48:26.000Z
Code/extraction/tensor.py
chrislcs/linear-vegetation-elements
8e45a40dca472ca9d5cbb58593d9f5b5bc855bf4
[ "Apache-2.0" ]
null
null
null
Code/extraction/tensor.py
chrislcs/linear-vegetation-elements
8e45a40dca472ca9d5cbb58593d9f5b5bc855bf4
[ "Apache-2.0" ]
5
2019-01-07T18:03:32.000Z
2021-10-07T12:56:39.000Z
# -*- coding: utf-8 -*- """ @author: Chris Lucas """ import numpy as np def structure_tensor(points): """ Computes the structure tensor of points by computing the eigenvalues and eigenvectors of the covariance matrix of a point cloud. Parameters ---------- points : (Mx3) array X, Y ...
26.297297
77
0.63926
# -*- coding: utf-8 -*- """ @author: Chris Lucas """ import numpy as np def structure_tensor(points): """ Computes the structure tensor of points by computing the eigenvalues and eigenvectors of the covariance matrix of a point cloud. Parameters ---------- points : (Mx3) array X, Y ...
0
0
0
0
0
0
0
0
0
5df36d17a510263aaced24f3c376b33c45ba1593
17,425
py
Python
sdk/lusid/models/equity_swap_all_of.py
bogdanLicaFinbourne/lusid-sdk-python-preview
f0f91f992e0417733c4c8abd2674d080a52b6890
[ "MIT" ]
null
null
null
sdk/lusid/models/equity_swap_all_of.py
bogdanLicaFinbourne/lusid-sdk-python-preview
f0f91f992e0417733c4c8abd2674d080a52b6890
[ "MIT" ]
null
null
null
sdk/lusid/models/equity_swap_all_of.py
bogdanLicaFinbourne/lusid-sdk-python-preview
f0f91f992e0417733c4c8abd2674d080a52b6890
[ "MIT" ]
null
null
null
# coding: utf-8 """ LUSID API FINBOURNE Technology # noqa: E501 The version of the OpenAPI document: 0.11.2863 Contact: info@finbourne.com Generated by: https://openapi-generator.tech """
38.722222
369
0.652626
# coding: utf-8 """ LUSID API FINBOURNE Technology # noqa: E501 The version of the OpenAPI document: 0.11.2863 Contact: info@finbourne.com Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six class EquitySwapAllOf(object): """NOTE: This class ...
0
10,112
0
7,026
0
0
0
-31
105
48cb6a6aa2374a2429827425a598c6f0045d652a
4,008
py
Python
Choruslib/blat.py
kramundson/Chorus2
43be15e082f346dc45b94a7fadb141b3a6f8c37c
[ "MIT" ]
11
2019-05-23T13:28:39.000Z
2022-02-10T00:24:54.000Z
Choruslib/blat.py
kramundson/Chorus2
43be15e082f346dc45b94a7fadb141b3a6f8c37c
[ "MIT" ]
3
2019-03-15T01:47:53.000Z
2021-12-16T07:41:08.000Z
Choruslib/blat.py
kramundson/Chorus2
43be15e082f346dc45b94a7fadb141b3a6f8c37c
[ "MIT" ]
11
2019-02-28T08:17:02.000Z
2021-12-13T11:44:02.000Z
from __future__ import print_function import subprocess import os import shlex from Choruslib.Blatres import Blatres def start_gfServer(file2bit, gfspath, stepsize=7, blatport=10010): ''' :param file2bit: :param gfspath: :param stepsize: :param blatport: :return: blat gfserver pid ''' ...
21.901639
138
0.621507
from __future__ import print_function import sys import subprocess import signal import time import os import shlex from Choruslib.Blatres import Blatres def start_gfServer(file2bit, gfspath, stepsize=7, blatport=10010): ''' :param file2bit: :param gfspath: :param stepsize: :param blatport: :...
0
0
0
0
0
1,837
0
-29
181
c459274929ba35904b278fdbc79e4f6bc3bee160
19,800
py
Python
api/migrations/versions/af9c317d2c92_.py
NikolaSiplakova/Baobab
180cd3cb492ed47d38ca0b473572fad0ac6f604b
[ "Apache-2.0" ]
52
2019-01-10T16:04:26.000Z
2022-02-10T00:55:59.000Z
api/migrations/versions/af9c317d2c92_.py
NikolaSiplakova/Baobab
180cd3cb492ed47d38ca0b473572fad0ac6f604b
[ "Apache-2.0" ]
535
2019-01-08T21:24:01.000Z
2022-02-27T15:24:06.000Z
api/migrations/versions/af9c317d2c92_.py
NikolaSiplakova/Baobab
180cd3cb492ed47d38ca0b473572fad0ac6f604b
[ "Apache-2.0" ]
36
2019-01-10T16:09:15.000Z
2021-06-28T21:02:47.000Z
"""empty message Revision ID: af9c317d2c92 Revises: 245d12695c69 Create Date: 2020-03-12 08:49:36.009020 """ # revision identifiers, used by Alembic. revision = 'af9c317d2c92' down_revision = '245d12695c69' from sqlalchemy.ext.declarative import declarative_base Base = declarative_base()
38.076923
400
0.677222
"""empty message Revision ID: af9c317d2c92 Revises: 245d12695c69 Create Date: 2020-03-12 08:49:36.009020 """ # revision identifiers, used by Alembic. revision = 'af9c317d2c92' down_revision = '245d12695c69' from alembic import op import sqlalchemy as sa from sqlalchemy import orm from app import db from enum import...
0
0
0
7,033
0
12,110
0
-1
363
ece5c4da754e79fc13f9c5db7f22ff6ccf734a97
892
py
Python
textovni.py
timenbob/3-v-vrsto-4x4
bdb1dcdeec7ea3c977f739643d08762f5e6a38ee
[ "MIT" ]
null
null
null
textovni.py
timenbob/3-v-vrsto-4x4
bdb1dcdeec7ea3c977f739643d08762f5e6a38ee
[ "MIT" ]
1
2021-05-11T07:58:22.000Z
2021-05-11T07:58:22.000Z
textovni.py
timenbob/3-v-vrsto-4x4
bdb1dcdeec7ea3c977f739643d08762f5e6a38ee
[ "MIT" ]
null
null
null
from model import Igrica nova_igra = 'n' while nova_igra == "n": trenutna_igra = Igrica() # print(trenutna_igra) while True: trenutna_igra.izpis_igre() print(f"na vrsti je igralec {trenutna_igra.igralec}") while True: print("Napii t: ") polje = input() ...
24.108108
61
0.539238
from model import Igrica nova_igra = 'n' while nova_igra == "n": trenutna_igra = Igrica() # print(trenutna_igra) while True: trenutna_igra.izpis_igre() print(f"na vrsti je igralec {trenutna_igra.igralec}") while True: print("Napiši št: ") polje = input()...
4
0
0
0
0
0
0
0
0
db3e4d24dfba95e51f64f911028d197a6aed38a5
214,999
py
Python
demo/ESI_tranquility_latest.py
nicoscha/PESI
4ce85a51b05bca891cc7e191fca67e93788011bd
[ "Apache-2.0" ]
null
null
null
demo/ESI_tranquility_latest.py
nicoscha/PESI
4ce85a51b05bca891cc7e191fca67e93788011bd
[ "Apache-2.0" ]
1
2021-06-02T00:15:39.000Z
2021-06-02T00:15:39.000Z
demo/ESI_tranquility_latest.py
nicoscha/PESI
4ce85a51b05bca891cc7e191fca67e93788011bd
[ "Apache-2.0" ]
null
null
null
# Python EVE Swagger Interface # https://github.com/nicoscha/PESI # ESI version 0.8.9 import ESI_request def get_alliances(*, if_none_match=None): """ :param if_none_match: ETag from a previous request. A 304 will be returned if this matches the current ETag List all active player alliances --- Al...
43.060084
265
0.579654
# Python EVE Swagger Interface # https://github.com/nicoscha/PESI # ESI version 0.8.9 import ESI_request def get_alliances(*, if_none_match=None): """ :param if_none_match: ETag from a previous request. A 304 will be returned if this matches the current ETag List all active player alliances --- Al...
0
0
0
0
0
0
0
0
0
07e63312aff52436333be7a1e3761ff63ade86f0
522
py
Python
CCC/ccc18s2.py
devAdhiraj/coding-problems
e15d0eeb025e1ad503c73eb9280e6226fd979164
[ "MIT" ]
null
null
null
CCC/ccc18s2.py
devAdhiraj/coding-problems
e15d0eeb025e1ad503c73eb9280e6226fd979164
[ "MIT" ]
null
null
null
CCC/ccc18s2.py
devAdhiraj/coding-problems
e15d0eeb025e1ad503c73eb9280e6226fd979164
[ "MIT" ]
null
null
null
n = int(input()) a = [list(map(int, input().split())) for i in range(n)] c = min([a[0][0], a[0][n-1], a[n - 1][0], a[n - 1][n - 1]]) if a[0][0] == c: for i in a: print(*i) pass elif a[0][n - 1] == c: for i in range(n - 1, -1, -1): for j in range(n): print(a[j][i], end=' ') ...
21.75
59
0.398467
n = int(input()) a = [list(map(int, input().split())) for i in range(n)] c = min([a[0][0], a[0][n-1], a[n - 1][0], a[n - 1][n - 1]]) if a[0][0] == c: for i in a: print(*i) pass elif a[0][n - 1] == c: for i in range(n - 1, -1, -1): for j in range(n): print(a[j][i], end=' ') ...
0
0
0
0
0
0
0
0
0
d9295e12456f31b422c2f1a459ef43e826ffca66
596
py
Python
tests/test_util.py
infolab-csail/lispify
f0156b2ccf5edb3cc77de3cd7ffc63f2883fdd30
[ "MIT" ]
null
null
null
tests/test_util.py
infolab-csail/lispify
f0156b2ccf5edb3cc77de3cd7ffc63f2883fdd30
[ "MIT" ]
11
2016-07-25T01:23:07.000Z
2020-11-25T18:35:00.000Z
tests/test_util.py
infolab-csail/lispify
f0156b2ccf5edb3cc77de3cd7ffc63f2883fdd30
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ test_util ---------------------------------- Tests for `util` module. """ try: import unittest2 as unittest except ImportError: import unittest if __name__ == '__main__': unittest.main()
19.225806
63
0.654362
#!/usr/bin/env python # -*- coding: utf-8 -*- """ test_util ---------------------------------- Tests for `util` module. """ try: import unittest2 as unittest except ImportError: import unittest from lispify import util class TestUtil(unittest.TestCase): def test_camel_case_to_lisp_name(self): ...
0
0
0
291
0
0
0
3
46
2d47349b76d89028925916b033d8dcdc74aebae3
937
py
Python
PYTHON/LAB/TW7/TW7a.py
flick-23/SEM-4
fe64c19e7df64390e94ba560006d32a561fd3579
[ "MIT" ]
24
2021-03-24T08:52:41.000Z
2021-11-13T11:52:54.000Z
PYTHON/LAB/TW7/TW7a.py
flick-23/SEM-4
fe64c19e7df64390e94ba560006d32a561fd3579
[ "MIT" ]
1
2021-04-28T06:16:44.000Z
2021-04-28T06:16:44.000Z
PYTHON/LAB/TW7/TW7a.py
flick-23/SEM-4
fe64c19e7df64390e94ba560006d32a561fd3579
[ "MIT" ]
8
2021-04-16T10:31:50.000Z
2021-05-31T03:48:52.000Z
# Three IAs are conducted for a class of 10 students for the subject Maths. # The name, marks and USN are read from a file in.txt. Find the average of # the IA for each student and write the USN and average to a file out.txt. # Display the highest average of the class on the console with open("in.txt", "r") as inpu...
36.038462
77
0.590181
# Three IA’s are conducted for a class of 10 students for the subject Maths. # The name, marks and USN are read from a file in.txt. Find the average of # the IA for each student and write the USN and average to a file out.txt. # Display the highest average of the class on the console with open("in.txt", "r") as inp...
3
0
0
0
0
0
0
0
0
05f2ea61cd36ac167513516a2307a89ee3de2985
1,473
py
Python
solutions/0217-contains-duplicate/contains-duplicate.py
iFun/Project-G
d33b3b3c7bcee64f93dc2539fd9955a27f321d96
[ "MIT" ]
null
null
null
solutions/0217-contains-duplicate/contains-duplicate.py
iFun/Project-G
d33b3b3c7bcee64f93dc2539fd9955a27f321d96
[ "MIT" ]
null
null
null
solutions/0217-contains-duplicate/contains-duplicate.py
iFun/Project-G
d33b3b3c7bcee64f93dc2539fd9955a27f321d96
[ "MIT" ]
null
null
null
# Given an array of integers, find if the array contains any duplicates. # # Your function should return true if any value appears at least twice in the array, and it should return false if every element is distinct. # # Example 1: # # # Input: [1,2,3,1] # Output: true # # Example 2: # # # Input: [1,2,3,4] # Out...
17.535714
142
0.606246
# Given an array of integers, find if the array contains any duplicates. # # Your function should return true if any value appears at least twice in the array, and it should return false if every element is distinct. # # Example 1: # # # Input: [1,2,3,1] # Output: true # # Example 2: # # # Input: [1,2,3,4] # Out...
0
0
0
361
0
0
0
0
23
bc3e21f237dd600b4b9a15b1a26af2981ee29aad
2,128
py
Python
app/metrics/client.py
TouchPal/guldan
74cc0bf687109d16c3eb94010b4cc25bd5c5bcc0
[ "BSD-3-Clause" ]
43
2017-12-27T13:20:15.000Z
2021-04-15T03:02:03.000Z
app/metrics/client.py
TouchPal/guldan
74cc0bf687109d16c3eb94010b4cc25bd5c5bcc0
[ "BSD-3-Clause" ]
null
null
null
app/metrics/client.py
TouchPal/guldan
74cc0bf687109d16c3eb94010b4cc25bd5c5bcc0
[ "BSD-3-Clause" ]
4
2018-03-28T08:46:07.000Z
2018-10-12T09:33:38.000Z
# -*- coding: utf-8 -*- import socket import logging logger = logging.getLogger(__name__) metrics_clients = {} HOSTNAME = socket.getfqdn()
30.84058
117
0.584586
# -*- coding: utf-8 -*- import time import functools import socket import logging from .metricspy.groupmetrics import GroupMetrics from app import load_app_config logger = logging.getLogger(__name__) metrics_clients = {} HOSTNAME = socket.getfqdn() class FakeGroupMetrics(object): def write_exc(self, name, value,...
0
710
0
137
0
959
0
22
157