blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
2
283
content_id
stringlengths
40
40
detected_licenses
listlengths
0
91
license_type
stringclasses
2 values
repo_name
stringlengths
3
135
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringlengths
4
68
visit_date
timestamp[ns]date
2015-07-25 20:53:29
2023-09-06 10:46:05
revision_date
timestamp[ns]date
1970-01-01 00:00:00
2037-05-03 13:00:00
committer_date
timestamp[ns]date
1970-01-01 00:00:00
2036-02-09 17:40:36
github_id
int64
1.61k
691M
⌀
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
24 values
gha_event_created_at
timestamp[ns]date
2012-06-03 10:21:33
2023-09-14 21:59:50
⌀
gha_created_at
timestamp[ns]date
2008-03-27 23:40:48
2023-09-13 22:40:33
⌀
gha_language
stringclasses
250 values
src_encoding
stringclasses
27 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
6
10M
extension
stringclasses
289 values
filename
stringlengths
1
218
content
stringlengths
6
10M
076da3b1f648e5a6ea457783f3820853369e3d79
6f35f3876e79d5280567e174635e4cdc322b703e
/core/models.py
4cf3574ae3fa1e6c644918d61d13033b5baf621c
[]
no_license
fiskoner/cinema
be7fbb527d6834f922bc8bdcf95c43e67e4cdebd
36ce4b1b4c6a1d20a5400dd533ab8646fa0648a5
refs/heads/master
2023-05-06T12:27:44.935845
2021-05-31T19:14:05
2021-05-31T19:14:05
361,132,105
0
0
null
2021-05-29T10:50:00
2021-04-24T10:25:12
Python
UTF-8
Python
false
false
1,418
py
models.py
from django.contrib.auth.models import AbstractUser from django.db import models # Create your models here. class User(AbstractUser): class UserTypeChoices(models.TextChoices): user = 'User', 'Пользователь' admin = 'Admin', 'Администратор' director = 'Director', 'Директор' class Gend...
632ff5968006f0ec7ee52ead4709a9c8ef9a0b35
eef040fb11fbe304e687d0573d064583873eae96
/reinforcement_learning_david_silver/easy21_python/agent.py
0c9f267457cca3cbd676fa86a98bc4868f252cce
[]
no_license
elviswf/machine_learning
f773f4602e7a0f2340401a9bd07fccc0a97f08ca
2e489b88a8839165891387681f8becc12cf6719f
refs/heads/master
2021-07-25T20:05:26.126447
2017-11-04T06:11:19
2017-11-04T06:11:19
112,770,603
0
1
null
2017-12-01T17:58:58
2017-12-01T17:58:58
null
UTF-8
Python
false
false
1,188
py
agent.py
import numpy as np from mpl_toolkits.mplot3d import Axes3D import matplotlib.pyplot as plt from matplotlib import cm from game21 import * class Agent: def __init__(self, N0=100.0): self.Q = np.zeros((11, 22, 2)) self.N = np.zeros((11, 22, 2)) self.N0 = N0 def greedy_policy(self, game)...
a49f7b46f5d221546f0cf4d6f0946716520fac3d
1992e5a01956ebe3a0e860025042f59e3fd2efb6
/total/Visualize_evaluate/myOpenGL.py
75f31a62636b43a67592ff2313c6992eca1bbde4
[]
no_license
willy850329/COPD
1170103536baf9f4adb051344c7c6c32c99efa3b
e81a7e1044c609fcbb78774bb4dbb93c4fe3a8cc
refs/heads/master
2020-06-03T23:59:12.369970
2019-09-05T09:20:50
2019-09-05T09:20:50
191,784,879
0
0
null
null
null
null
UTF-8
Python
false
false
5,630
py
myOpenGL.py
from OpenGL.GL import * from OpenGL.GLUT import * from OpenGL.GLU import * import os import threading ESCAPE = '\033' cubeList = [] # for demo in this code count = 1 class myDraw: def __init__(self,nodeList): self.nodeList = nodeList self.removeList = [] #delete the node disconnected ...
0c8a7d601f89556d857e9419a3ad543200815a08
bef0c10eaad5827e7dd611df954ea53c8a7bf2f8
/Research/selection_sort.py
c87749a1ae732bd38bbfbec0c4298a52aad3c3a2
[]
no_license
jeykarlokes/machine-learning-and-python-related-programs
c8a8a95b1ad86f29ed2a9be2ba353815fccc2813
eb0f7082d4b769db9ee99186195fb503cfd44f44
refs/heads/master
2020-05-07T09:00:46.801386
2019-04-09T12:18:01
2019-04-09T12:18:01
180,357,815
0
0
null
null
null
null
UTF-8
Python
false
false
449
py
selection_sort.py
# selection_sort.py def findsmallest(arr): smallelement = arr[0] smallelement_index = 0 for i in range(1,len(arr)): if arr[i] < smallelement: smallelement = arr[i] smallelement_index = i return smallelement_index # print(findsmallest([1,234,423,-2])) def selectionsort(arr): newarr = [] for i in range(...
7a47f979e65f0e6b8ac350b76f61831053df0eff
d9bcb515efdbbd881a087cc07775e53feaabad03
/som.py
754b261d93888f12c83a75f256e2f5a93bd4b76d
[ "WTFPL" ]
permissive
mgcy/color_som
49083d278c1355f10b645d8dd898339831c8c5b8
2b76d3977c5b02d46f5519102b87740de0e5ef8a
refs/heads/master
2020-03-13T08:14:12.709457
2014-07-12T19:42:51
2014-07-12T19:42:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,176
py
som.py
import math import random import sys from PIL import Image # Some helper functions to perform operations on tuples as if they were vectors # (because I'm too lazy to write a proper Vector class or look for a 3rd-party # library). def vadd(a, b): # vadd((1, 2, 3), (2, 1, 3)) -> (3, 3, 6) return tuple([p[0] + p...
5ab84c895f6ee58c77f778ddc8cc34c573d489d8
25b68c4749c435dc27bab17bd578532768cadd4c
/cvae/cvae_gcn.py
e874000a8339346e4d98cb506c8177b373ad10b6
[ "Apache-2.0" ]
permissive
DevD1092/synthetic-human-activity-data
30dd3caf177560198e51a487ec3ae7ffcea76c18
2310a0f806be35a77640be0a2b1c9b0197d130e6
refs/heads/main
2023-02-26T05:51:28.271913
2021-01-31T04:15:18
2021-01-31T04:15:18
334,566,521
3
0
null
null
null
null
UTF-8
Python
false
false
13,946
py
cvae_gcn.py
import torch import torch.nn as nn import torch.nn.functional as F from net.utils.tgcn import * from net.utils.graph import Graph from utils.common import * class CVAE_GCN(nn.Module): def __init__(self, in_channels, T, V, n_z, num_classes, graph_args, edge_importance_weighting=False, **kwargs):...
db9bf4dfd0a7336d510d638992580664a0447b50
50476e507fd2f65473e2ddbab460a5a075f57567
/create_dataframe.py
95429e4e6f50ad4f55479d062630a05f109d239f
[]
no_license
divyamsingh13/ResearchPaper
793de5aa5b52ff58016ab1999d11cb7fd8b5afe4
64924a5f017aaae21c5b1a608925c0528a91d825
refs/heads/master
2020-04-16T03:00:47.571236
2019-10-26T10:41:33
2019-10-26T10:41:33
165,216,873
0
1
null
2019-02-25T05:17:32
2019-01-11T09:29:14
Python
UTF-8
Python
false
false
1,358
py
create_dataframe.py
import pandas as pd import numpy import six.moves.cPickle as pickle import textract import os class create_dataframe(object): def __init__(self,keyword,pdf_path,title,url): self.keyword=keyword self.pdf_path=pdf_path self.title=title self.url=url def dataframe(self): t...
61f20149d84bf333d9656591e4c573fb44a4a745
a5aa6b02b81bb577bd40715b071d17d1d6403578
/core/migrations/0005_auto_20200918_1412.py
f83e67b0ff8a0d4e357752b643e893b1f0a5d87a
[]
no_license
techraz-rishi/My-Music
d5b10f795f028da8cc295b7ff325c7b32ed38076
edf78729dd32a09ff06b84df47b22780b66eb713
refs/heads/master
2022-12-17T14:43:34.579066
2020-09-20T04:26:07
2020-09-20T04:26:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
757
py
0005_auto_20200918_1412.py
# Generated by Django 3.1.1 on 2020-09-18 08:42 import django.core.files.storage from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('core', '0004_auto_20200918_1315'), ] operations = [ migrations.AlterField( model_name='song', ...
1872fd04b01d8a495198d7605f460aa6a12850a1
771d2a1234eecd77b355590569b74a4b4c9a7eba
/nexxT/shiboken.py
5e87dde6bbdcfe75926d92714f40d898875154db
[ "LicenseRef-scancode-free-unknown", "Apache-2.0" ]
permissive
ifm/nexxT
776384b8f82b0a4f7a069f82c79f09b9710f87aa
d49f6595908f0ecf90060ec1d7d23075120c8045
refs/heads/master
2023-08-04T18:05:59.904490
2023-07-31T11:24:59
2023-07-31T11:24:59
248,195,896
11
2
Apache-2.0
2023-07-31T11:25:01
2020-03-18T10:05:08
Python
UTF-8
Python
false
false
448
py
shiboken.py
""" This module is never imported when executing nexxT. Instead, the Qt module is provided through the QtMetaPackage which is preventing python from loading unnecessary extensions. However, it is very handy to have this module, so pylint and the IDE auto-completers are happy to know the contents of this module """ impo...
199a383c5617f74204c8827d2356635783045f96
a3292042d356ca47c6c70e761a0e4ad1cdcd7b76
/main.py
5f46aa5749d04e130688dc6f8940032389529157
[]
no_license
micahlagrange/GroceryQuest
d37f5d7f9a5a778c2c3eec4ac6ecf6833b646a67
020dbc3043caae8a17e8bbe70d45fffbfe98ba0f
refs/heads/master
2023-01-20T23:57:57.328581
2014-10-11T06:00:10
2014-10-11T06:00:10
24,993,491
0
0
null
null
null
null
UTF-8
Python
false
false
3,897
py
main.py
__author__ = "multivoxmuse" import sys import logging import pickle import os import pygame from pygame.locals import * import constants as con import display import characters import levels import sound class LoadGame(): def __init__(self, hero_name): self.level_save_path = os.path.join(con.PATHS['sav...
3b948daf79a27a4255de5600bc6c14bc9da276bf
ff13e959dd77dc58d68ffc63635a0656fac148ae
/prediction.py
7221400e48aa86626776bf083c405de688c5e87c
[]
no_license
vergissberlin/ai
7d5f1261e7715ed5ee1547c8f0eee3e850753d8b
2f6baaea3ff39c3d8f1aca69206af415e30676eb
refs/heads/master
2022-07-06T11:38:34.514730
2019-10-23T09:53:08
2019-10-23T09:53:08
217,024,128
0
0
null
2021-11-04T15:31:36
2019-10-23T09:52:50
Python
UTF-8
Python
false
false
434
py
prediction.py
import Testing model_path = './models/model.h5' model_weights_path = './models/weights.h5' test_path = 'Data/Test' model = load_model(model_path) model.load_weights(model_weights_path) st.sidebar.title("Predict New Images") imageselect = st.sidebar.selectbox("Pick an image.", onlyfiles) if st.sidebar.button('Predict A...
338661cbefc595198ab3bd9a5166712feea04641
0916ce03bd7231e31fa1442b7606ef1b07ae7f53
/server.py
40a20f26c4e6040c2c48838976af06dec8642ebc
[]
no_license
kedarbartake98/d3js_dashboard
ac09795cee7c2463498bef97c03b68a7a460f66d
f63ea5c813dcc23c503b985efcb36d50940a15c2
refs/heads/master
2022-09-11T01:36:15.448263
2020-06-01T18:26:00
2020-06-01T18:26:00
268,600,645
0
0
null
null
null
null
UTF-8
Python
false
false
322
py
server.py
from flask import Flask, render_template, url_for, jsonify, request import pandas as pd import os import random, json app = Flask(__name__) @app.route('/') def entrypoint(): # data = pd.read_csv('static\\data\\train.csv') return render_template('index.html') if __name__=='__main__': app.run(debug=Tru...
58ee594dfa8952b05829778806f9b73ab9168dcc
96e38b89fa057fa0c1cf34e498b4624041dfc6e2
/BOJ/Sorting/Python/16496.py
ab70c3e4dc6cd8cca2f0df5c1df6e41cfd282892
[]
no_license
malkoG/polyglot-cp
66059246b01766da3c359dbd16f04348d3c7ecd2
584763144afe40d73e72dd55f90ee1206029ca8f
refs/heads/master
2021-11-24T13:33:49.625237
2019-10-06T07:42:49
2019-10-06T07:42:49
176,255,722
2
0
null
null
null
null
UTF-8
Python
false
false
60
py
16496.py
n=input() print("".join(reversed(sorted(input().split()))))
17002e8b33567a7098ebcf82bac334fba67533be
89d227f7bb50a0c2a82b88c50cbb0b5249c5bc41
/Stack and Queue/5.find_min_O(1)_stack.py
71ce5b23dfe4d7cf512e163f88eac281fe61a97f
[]
no_license
darkaxelcodes/DSAinPython
1a8be0274bd8a2230855760815affca25898201f
2d4ae0300c1fbbdf631e240386cdb3423bbaa870
refs/heads/main
2023-08-20T22:07:09.449591
2021-10-29T09:12:06
2021-10-29T09:12:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
861
py
5.find_min_O(1)_stack.py
# Create Stack => stack = myStack(5); where 5 is size of stack # Create Queue => queue = myQueue(5); where 5 is size of queue # Stack Functions => isEmpty(), isFull(), top() # Queue Functions => enqueue(int),dequeue(),isEmpty(),getSize() from Stack import MyStack class MinStack: # Constructor def __i...
c6c8c4d48d31c5b78ca00565284bc1a304063a71
fce81b804cae23f525a5ad4370b684bf0dc531a5
/numpy/core/tests/test_unicode.py
e5454bd48df1dea3a01e012efa88370eee0739db
[ "Zlib", "BSD-3-Clause", "MIT", "Apache-2.0" ]
permissive
numpy/numpy
ba2abcc1d2d46affbb6aabe5aed6407b4b57507e
dc2ff125493777a1084044e6cd6857a42ee323d4
refs/heads/main
2023-09-05T10:10:52.767363
2023-09-04T18:03:29
2023-09-04T18:03:29
908,607
25,725
11,968
BSD-3-Clause
2023-09-14T21:26:09
2010-09-13T23:02:39
Python
UTF-8
Python
false
false
12,775
py
test_unicode.py
import pytest import numpy as np from numpy.testing import assert_, assert_equal, assert_array_equal def buffer_length(arr): if isinstance(arr, str): if not arr: charmax = 0 else: charmax = max([ord(c) for c in arr]) if charmax < 256: size = 1 el...
e07b56579f0f8bc5acf70fc07fdeb4254e26685c
8af03ad894ad317e8a8eeec1e57cad7058a8d886
/insight_testsuite/temp/src/busiest_period.py
4b8239c7e43596490090765740725e0ea5c41b9e
[]
no_license
rsingh888/fansite-analytics-challenge-1
b4b29d874eabe24895f35fb7446d1db7ed5a5b03
fb572a35bda246eefd3a6f907ea04fd15ad97d15
refs/heads/master
2021-06-20T16:16:41.889492
2017-04-02T22:27:50
2017-04-02T22:27:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
918
py
busiest_period.py
import pandas as pd import numpy as np from datetime import timedelta def get_busiest_period(df, output_path, n=10): freq = df['Timestamp'].value_counts().sort_index(ascending=False) lag = freq.index + timedelta(seconds=3600) intervals = np.searchsorted(freq.index.astype(np.int64), lag.astype(np.int64)) cummula...
a20895a4c0884c048f2d278eaaebf5c1260b548e
08e4f25a397d2e9bc73fd97a6d895b141cb0b251
/old-site/mysite/scripts/bootstrap.py
c394f1866c4d1513dc8f599b57a3ce782a2686ec
[]
no_license
akonsu/konstantin.co.uk
7503e569df651376cb7e375b6d1e9cefdfb5b700
291545d9ffec66fbfc9870ecdc4dcc857b16033b
refs/heads/master
2021-01-01T18:17:47.540312
2012-04-03T18:47:03
2012-04-03T18:47:03
3,251,818
1
0
null
null
null
null
UTF-8
Python
false
false
513
py
bootstrap.py
# -*- mode:python; coding:utf-8; -*- Time-stamp: <bootstrap.py - root> # copyright (c) konstantin.co.uk. all rights reserved. import os path = os.path.abspath(os.path.dirname(__file__)) while not os.path.exists(os.path.join(path, 'settings.py')): parent = os.path.abspath(os.path.join(path, '..')) if path ==...
ef5d0da1cc97b327e5b4bd411379cc875313734b
2d12e6c416df878fe9a19263e85c4684c133ce22
/qtclient.py
035d75eeece28a29babf32f2f60a09863d0a117d
[]
no_license
ketayon/Messenger
cf7c9f0e91a50488aaa1ebfd8eb94205caf1c77b
acab037647d45cc4ff4aa44073096e9a209d1603
refs/heads/master
2020-06-04T19:16:01.483760
2019-06-16T07:02:58
2019-06-16T07:02:58
192,160,150
0
0
null
null
null
null
UTF-8
Python
false
false
3,275
py
qtclient.py
#! /usr/bin/python import sys from PyQt5 import QtWidgets import design from twisted.internet.protocol import ClientFactory from twisted.protocols.basic import LineOnlyReceiver class ChatClient(LineOnlyReceiver): """ Класс для работы с подключением к серверу """ factory: 'ChatFactory' def __ini...
d2cabb12bea2528726bc5b3a10f92a6b8e45c7f1
0f2b08b31fab269c77d4b14240b8746a3ba17d5e
/docs/python/examples/plot_metadata.py
e3ecac0caf0af69f95b091c59377d0021bd9681b
[ "MIT" ]
permissive
microsoft/onnxruntime
f75aa499496f4d0a07ab68ffa589d06f83b7db1d
5e747071be882efd6b54d7a7421042e68dcd6aff
refs/heads/main
2023-09-04T03:14:50.888927
2023-09-02T07:16:28
2023-09-02T07:16:28
156,939,672
9,912
2,451
MIT
2023-09-14T21:22:46
2018-11-10T02:22:53
C++
UTF-8
Python
false
false
1,329
py
plot_metadata.py
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. """ Metadata ======== ONNX format contains metadata related to how the model was produced. It is useful when the model is deployed to production to keep track of which instance was used at a specific time. Let's see how to d...
6fd9106dbfcdaf2fb116c31d3ceaae2c62ee175b
d982f0dc11b722fa6cf02f2be7bebe956b894a8b
/Robotics/Assignment4/obstacle_generator.py
f6e6c5c4e4162d9547364b1704a7422aa3121908
[ "MIT" ]
permissive
dadaluoyu/Robotics-and-Robot-Learning
b9ea7b21813057dc388c754e0ed5c4fc6eabbaa9
f4f57738f17d86bf3358b5fcfd8c310682b26412
refs/heads/master
2021-08-25T18:05:59.462927
2021-08-09T10:44:24
2021-08-09T10:44:24
206,693,931
1
0
null
2021-08-09T10:44:24
2019-09-06T02:11:13
Python
UTF-8
Python
false
false
8,957
py
obstacle_generator.py
#!/usr/bin/env python import math import numpy import std_msgs.msg import geometry_msgs.msg import moveit_commander import rospy import tf from urdf_parser_py.urdf import URDF from visualization_msgs.msg import Marker from visualization_msgs.msg import MarkerArray def convert_to_message(T): t = geometry_msgs.msg...
19e106f5f90ee1091002c3e883f348300913309e
871ebd2fc11aac0595a9ffa32f3d2622acf6031b
/builds/heroku-configs/wsgi-heroku.py
68712dc03c57b5290613d01dde523b7a680b2446
[]
no_license
rauleite/tests-django
029dc58ae0cb14afbe6991182b29a5e9d1759e96
e4f107310a43f21fd0d7d8ab5a0033ef15b1a0e1
refs/heads/master
2020-04-06T04:48:05.364999
2014-03-26T03:05:17
2014-03-26T03:05:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
306
py
wsgi-heroku.py
""" It exposes the WSGI callable as a module-level variable named ``application``. """ #HEROKU Configs import os os.environ.setdefault("DJANGO_SETTINGS_MODULE", "project.settings") from django.core.wsgi import get_wsgi_application from dj_static import Cling application = Cling(get_wsgi_application())
308ac8577ac0da455a506103ab8d33752678b793
68ec08530d90134968df8ebf0b72d3931248747d
/statistic/migrations/0003_analyzerecord.py
fff7f8339357c45d8ac2105b16a10d99a2267bdb
[]
no_license
lynnmatrix/statistic
336f844dfea74cd7562f00b942160c2bbfa7fad6
dda916aec68105b60282e85434b8a5bcd2c17bad
refs/heads/master
2021-01-10T07:42:30.850858
2016-02-02T09:52:21
2016-02-02T09:52:21
50,914,750
0
0
null
null
null
null
UTF-8
Python
false
false
733
py
0003_analyzerecord.py
# -*- coding: utf-8 -*- # Generated by Django 1.9 on 2015-12-22 07:22 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('statistic', '0002_usersurvival'), ] operations = [ migrations.CreateModel( ...
c575f3d3f21c67aaebaba70f0e5d354664447f9b
7fc9ebeb3b81da59a62a939d573d83cc504b6543
/path_sum_ii.py
108b4e58b7833d2353d931292b773cb413197a01
[]
no_license
Qinode/leet_q_python
ae45896aba7911353e2f05f51b60a32ee7b03c84
9c9ff536a23f76ae76ae69ce840fa69ebe1ab313
refs/heads/master
2022-01-17T21:15:04.607397
2019-07-03T21:46:21
2019-07-03T21:46:21
117,480,249
0
0
null
null
null
null
UTF-8
Python
false
false
807
py
path_sum_ii.py
# Definition for a binary tree node. class TreeNode: def __init__(self, x): self.val = x self.left = None self.right = None class Solution: def pathSum(self, root, sum): """ :type root: TreeNode :type sum: int :rtype: List[List[int]] """ ...
290c6ce5303936083157b90a49fd6ab858fa7a21
e4f8952030eb3835c79919e2da2c82d2641afebb
/morning/nuim.py
c65fc1163fde0b96b9c8f95751bfec0edc06385c
[]
no_license
dhitalsangharsha/Djangp
bae9aafb6f37be6ca43f7f4030a483723b868954
69d179c66de1abf8e075c4e8e3c1a890c2deb367
refs/heads/master
2022-12-16T01:20:53.280316
2018-09-14T02:14:42
2018-09-14T02:14:42
148,722,280
0
0
null
2022-12-08T02:53:04
2018-09-14T02:06:09
Python
UTF-8
Python
false
false
76
py
nuim.py
num=input("enter num") eval("num+(num*num)+(num*num*num)+(num*num*num*num")
a6725ddf04651c2c5cd5579b2d7d6394e527d15d
707aa67759bf51532ae3ea3ab03ebea13c4b9534
/momr_udp_server.py
ffcf08c5fece9dc156c1a85fddc521678138bee9
[ "MIT" ]
permissive
chu-yadong/momr-manager
f8a9a8efa289e7c02ff3651603ba9ab9373e8a1f
48c4921f2de1457721cbfc91df7236684b9a2dd9
refs/heads/master
2023-02-17T08:14:55.700610
2021-01-13T00:44:19
2021-01-13T00:44:19
328,927,558
1
0
null
null
null
null
UTF-8
Python
false
false
6,599
py
momr_udp_server.py
import selectors import threading import time import socket # 根据平台自动选择最佳的IO多路机制,比如linux就会选择epoll,windows会选择select sel = selectors.DefaultSelector() # IP = '192.168.1.168' # PORT = 19876 # DATA_LEN = 4096 class MomrUdpServer(threading.Thread): def __init__(self, ip, port): threading.Thread.__init__(self)...
460d295b92d89e105a2fb50ea43f324594c75794
b991230036e712a9d10fcbf201c414e98297cf7a
/src/run_pca.py
10f8fd21d4b22a92e468cbb634a114be0f22243a
[]
no_license
MASILab/EigenThorax
a527eb818b7baffef899b7785cf476acf43fee19
771fa2a57854bb08850b28ccdd7235a3ff55e0f6
refs/heads/master
2023-02-15T00:57:39.197153
2021-01-08T22:24:00
2021-01-08T22:24:00
246,934,189
1
0
null
null
null
null
UTF-8
Python
false
false
1,738
py
run_pca.py
import argparse from tools.config import load_config from tools.preprocess import ScanFolderFlatReader from tools.pca import PCA_NII_3D from tools.utils import mkdir_p def main(): parser = argparse.ArgumentParser(description='Run preprocess on in data folder') parser.add_argument('--config', type=str, ...
419ef41880e94fe1ecf2a5487d830665faa7defe
410333981c2f090e45173749efccbb94043c9f94
/KPS/KPS_app/models.py
3e15dd5077ecba729520518ab0cff417cc2fc578
[ "MIT" ]
permissive
QuasimodoNZ/SWEN301_Group-Project
f4d8b5f50751f681afc82e59a6c35e23e71f0465
ea31ea265078ea76c61141c181d0f3948191c015
refs/heads/master
2016-09-05T23:23:22.058807
2015-06-05T11:46:22
2015-06-05T11:46:22
34,941,014
0
1
null
2015-06-05T10:59:47
2015-05-02T08:41:27
Python
UTF-8
Python
false
false
2,613
py
models.py
# Create your models here. from django.db import models PRIORITIES = ( ('Land', 'Land'), ('Sea', 'Sea'), ('Air', 'Air'), ) DAYS = ( ('Monday', 'Monday'), ('Tuesday', 'Tuesday'), ('Wednesday', 'Wednesday'), ('Thursday', 'Thursday'), ('Friday', 'Friday'), ('Saturday', 'Saturday'), ...
08ce9d1d32cb89e0c7363d51b7170dbe532ba935
3f2dfbf2e44e49ef8faeda1b42002daab6c7b052
/code/common/bert_args.py
d11eb77ed792180dbe68adfce08b1ce2452082d1
[ "MIT" ]
permissive
nju-websoft/SPARQA
a67fc126bb995d53039e80a51e9e527a395cb787
8137a9666120704b20b987a4d84128c115a5afd1
refs/heads/master
2023-05-25T11:32:35.414150
2021-09-08T03:17:42
2021-09-08T03:17:42
222,273,678
75
13
MIT
2023-05-22T21:39:43
2019-11-17T16:00:32
Python
UTF-8
Python
false
false
1,967
py
bert_args.py
class BertArgs(): def __init__(self, root, mode): # uncased model self.bert_base_uncased_model = root + '/pre_train_models/bert-base-uncased.tar.gz' self.bert_base_uncased_tokenization = root + '/pre_train_models/bert-base-uncased-vocab.txt' # cased model self.bert_base_cas...
e9b1b9feb382799a5a387c91324ac1e54c8eed8a
673d40db5863b2f701130037d724441d179e3c70
/bin/launch_all.py
f5f1e125573cf3f8a3b4f61a5e2e4629ba17a6b4
[]
no_license
syifan/m2s-client-kit-hpca
fbc02524dffe485a5ce4fb180be5c99c050ee1ed
fbdda392e2035639efa7bf35fad55fe7d7b6c21d
refs/heads/master
2021-06-05T06:14:05.043409
2016-04-07T21:32:35
2016-04-07T21:32:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,446
py
launch_all.py
#!/usr/bin/python from task import Task import sys tasks = []; def main(): if len(sys.argv) != 2: help() create_tasks() if sys.argv[1] == 'import': import_results() elif sys.argv[1] == 'launch': launch_benchmarks() else: help() def help(): print("launch_all....
d5db350a4be97d80f310e33b037296cfe9690313
46530546e79863a784e5868dc1d24d813c51b99d
/Python/test.py
522652a045369ed85774c5e27faa5865a02b6882
[]
no_license
317295869/THC
7d0fcb5a6e8d5a6c8d1c35d630e7e5437393bad2
5a82f3f4794850296174f42bb8c379ec5e325c37
refs/heads/master
2020-07-05T08:55:14.482602
2019-12-02T02:23:30
2019-12-02T02:23:30
202,598,123
0
0
null
null
null
null
UTF-8
Python
false
false
164
py
test.py
from math import sin x=[7,8,17,28] y=[] for x in range(len(x)): y.append(sin(x)) print('{3}{0:2d}{3} {3}{1:3d}{3} {3}{2:4d}{3}'.format(x,x*x,x*x*x, '|'))
5a83bd4d60d87f2095c30a0cb5ca355fb396059b
455646e26481b0e4042b564b80edd4e9f9058e18
/dummy_config.py
711ce8de385ad709272852f9433c08ecdd735731
[]
no_license
aariaa/EmbCrawler
318ba5d687a51ae65456cabd4f6335f24d0824e8
158f4446482bc8b043cfab121a06ea0707afc088
refs/heads/master
2020-04-14T15:15:03.773424
2015-08-31T12:44:41
2015-08-31T12:44:41
41,674,578
0
0
null
null
null
null
UTF-8
Python
false
false
64
py
dummy_config.py
# Remember to rename this to config.py userid = "" password = ""
44d5694d4179ecfa46abeb8638655d1694b23e0d
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_200/3261.py
0b1f59ea0fa98359c93cf8c0355466f86b20773c
[]
no_license
dr-dos-ok/Code_Jam_Webscraper
c06fd59870842664cd79c41eb460a09553e1c80a
26a35bf114a3aa30fc4c677ef069d95f41665cc0
refs/heads/master
2020-04-06T08:17:40.938460
2018-10-14T10:12:47
2018-10-14T10:12:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
657
py
3261.py
def maketidy(line): found = None for i in range(len(line)): if found is not None: line[i] = '9' elif i<len(line)-1 and line[i] > line[i+1]: line[i] = chr(ord(line[i])-1) found = i if found is not None: found -= 1 while found >= 0: if line[found] > line[found+1]: ...
a9d0b38676a72d8a191d57314a75b961e9a152b6
61a5a6a589e382520f479dfd00a8c7f00eadf199
/h31mp/apps.py
96e21b1cea853e5d56c8b5acae7e6515833bdf42
[]
no_license
xiebrian/food_website
b2be2d27ab845dc9cd992bd20583d39259a3b100
3416b467022b7486e50bf8c6a3443b0eef5258c4
refs/heads/master
2023-07-31T15:31:12.400845
2023-05-12T16:30:19
2023-05-12T16:30:19
178,036,975
0
0
null
2023-07-05T22:52:46
2019-03-27T16:48:59
Python
UTF-8
Python
false
false
85
py
apps.py
from django.apps import AppConfig class H31MpConfig(AppConfig): name = 'h31mp'
ba5f2f63224e87b68d4284dc560d661a230991c9
6c0ebe008e987114cf72dec0d82fa467f6b59ce7
/main/migrations/0005_delete_graphmodel.py
8e4c69fd11419d34289a9377d34075aaf2532f3c
[]
no_license
chrizandr/semantic_web
b8381dc2f1a946c9b006a1edea08f1f4e4ddb112
a7f6047858c2a8f94591608b8a828efed38b5fad
refs/heads/master
2021-01-11T07:43:38.643454
2017-02-10T07:58:45
2017-02-10T07:58:45
68,914,583
0
2
null
null
null
null
UTF-8
Python
false
false
353
py
0005_delete_graphmodel.py
# -*- coding: utf-8 -*- # Generated by Django 1.10.2 on 2016-11-14 20:04 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('main', '0004_owl_userid'), ] operations = [ migrations.DeleteModel( nam...
f1e74c592644ce8e62b0e4cc646adecf870e372c
6f823833e92b1f36b8190ef8ecef5086c5311c6e
/main.py
167d4260ae2c896e06209c91ab948e3d77077565
[]
no_license
josgard94/perceptron-single-layer
5ba35a4247e852dbf1381ee222a2284c00294bac
ffcfd4264216cefb83b100ddce0c63d72ae027b6
refs/heads/master
2022-11-19T09:37:40.612006
2020-07-13T06:19:52
2020-07-13T06:19:52
279,194,144
2
2
null
null
null
null
UTF-8
Python
false
false
742
py
main.py
# # # Author: Edgard Diaz # date: 12-07-2020 # # # data classification using a simple layer perceptron # # # from files import process_file from perceptron import perceptron from ploting import graph if __name__ == '__main__': epacas = 10000; #iteraciones eta = 0.01; #factor de aprendizaje #p...
fcd47cabbc3ae117df69bb5cf60759e7e6aff20d
1b7432f96296f47c5bff783a3a7e59082fd0101a
/adilTalt.py
f20eacfb1eeed118211f76dd2da1b0816843246c
[]
no_license
mandah/algoritm
c3b0b026493e9fdad029f3941e740bce740cd1e3
344b5f1d93445d0fb68386eed3c9ec7f4a7962de
refs/heads/master
2021-01-10T21:00:08.188237
2013-06-21T10:35:24
2013-06-21T10:35:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
68
py
adilTalt.py
import math n=float(raw_input()) print round(math.sqrt(3)*n*n/4,1)
267e28d59d0ef16bb428f7f1edb44eaec18098ae
c71dd53cbe89b62bd63d3110956cde4cff8adbf1
/knowit/Dag13/dag13.py
8f5e2bf26388e47f983c4a458c41e2e664139e4b
[]
no_license
Armcollector/kodekalendere
5e97dcf3afa2a5dd8d4203e11903e844a9399cad
61701c162dc981fcd905a7c000432fb2ea5f39d1
refs/heads/master
2020-09-25T19:13:32.054210
2019-12-23T09:51:20
2019-12-23T09:51:20
226,069,308
0
0
null
null
null
null
UTF-8
Python
false
false
1,487
py
dag13.py
class Robot: def __init__(self, priority): self.position = (0,0) self.priority = priority self.steps = 0 self.log = set([]) self.dir = { 'syd': (1,0), 'aust': (0,1), 'nord': (-1,0), 'vest' : (0,-1) } self.stack = [] def halted(self): return self....
b1c6741242ff9ba7169d808c1b226991215be11e
e208746c82460f9be1bc86e0a33ff33e143f9860
/flatsky.py
ab75f43cce5c058fe0706b34b842d4e698a76572
[]
no_license
sriniraghunathan/inpainting
1d7d7d84be7a604ae403578b3e2850bf50afd97c
d9ed4ec88413e5883d0316d685b085839b39887e
refs/heads/master
2021-01-15T03:03:27.551062
2020-11-03T18:17:48
2020-11-03T18:17:48
242,857,818
5
0
null
null
null
null
UTF-8
Python
false
false
11,232
py
flatsky.py
import numpy as np, sys, os, scipy as sc, healpy as H ################################################################################################################ #flat-sky routines ################################################################################################################ def cl_to_cl2d(el, ...
6c2b50e6d462ef0cf0c56412b259d48f60e9aa2b
0fbc2bf7ddc27d3dfbf98296cf76794313bbffe2
/dataCapture/helpInput/judgerepeat.py
2545e38680627ed4656add50977c1ea50914d86b
[]
no_license
cornelius-git/edata
e46343731418da4a04d58fc00429c3caf9a60055
2d4a003a15c3acd8344a7efd56aed9513e2db37a
refs/heads/main
2023-05-09T10:53:43.954173
2021-05-31T06:22:01
2021-05-31T06:22:01
372,402,610
0
0
null
null
null
null
UTF-8
Python
false
false
22
py
judgerepeat.py
from openpyxl import *
247f89edb53bf1d153ef4cfcdc0f1e3000ef8426
b71f656374293c5f1238fcb449aa4dde78632861
/eudplib/trigtrg/trigtrg.py
15fe29eb7137526f04098e233f67cd14b7fa90d4
[ "MIT" ]
permissive
tobeinged/eudplib
ce1cdc15f7ec6af857b4b64b5c826b3dd95d3e48
066c0faa200dc19e70cdb6979daf8f008b8ae957
refs/heads/master
2023-05-04T08:49:01.180147
2019-03-18T14:30:29
2019-03-18T14:30:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
17,079
py
trigtrg.py
#!/usr/bin/python # -*- coding: utf-8 -*- ''' Copyright (c) 2014 trgk 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, mo...
a631461b0eb00ff75fae3af21d74f2a9f9fa0f56
e4f1f60c587fadab2af3082836b559f981a74015
/pcmdpy/sampling/__init__.py
6229b4cd6ded4c134b2872604b11d28bee83d05d
[ "MIT" ]
permissive
bacook17/pcmdpy
bb2cd4b224f6a7cad5ca638a94f8494945404c6a
ce2e9341efb1846e8c6c8bac27208603591ec525
refs/heads/master
2021-06-04T09:49:21.414770
2019-08-13T17:39:48
2019-08-13T17:39:48
113,083,573
7
2
MIT
2023-06-27T04:45:28
2017-12-04T19:09:52
Batchfile
UTF-8
Python
false
false
89
py
__init__.py
__all__ = ['fit_model', 'priors', 'logging'] from . import (fit_model, priors, logging)
abaa99bbb8ae9aeba74d2d3e9e9d46c3c146360a
f911620e5db9dab2a9ce17490b23359286eea243
/lib/API/Scripts/searcher.py
d592f3a90234d2db3766dd1b197d23b254c48979
[]
no_license
nimr77/MiniProjectSearchViaImages
201e89f737d1cf19d291c676d7f2fd32a5603729
02d1d62597097a014890b5dca10362ffe7faa168
refs/heads/main
2023-02-27T03:19:40.137697
2021-01-14T08:10:54
2021-01-14T08:10:54
322,940,304
0
0
null
null
null
null
UTF-8
Python
false
false
2,209
py
searcher.py
# -*- coding: utf-8 -*- # import the necessary packages import numpy as np import csv from Database import mongo from Models import ImageObject, MatrixObject class Searcher: def __init__(self, indexPath): # store our index path self.indexPath = indexPath def search(self, queryFeatures, limit...
a14d57996a296decb5338135ebb66445a93b4207
c20db7334bbaae6fdf89f10ec7ef6cb4cfbe0bfa
/Flask.py
7a54dff6bf0cd38a9a19efc04934ba88d04cc278
[]
no_license
shehroz-abid/BankMiniTemplate
afcc391a78c7debb07ea5e48f4497f6aafea277f
31011713a6fb0a08a749782e3718485e4967a6b8
refs/heads/master
2020-04-05T22:21:24.560139
2018-12-03T10:02:51
2018-12-03T10:02:51
156,844,902
0
0
null
null
null
null
UTF-8
Python
false
false
9,372
py
Flask.py
import json import os from flask import Flask, render_template, session, redirect, url_for from flaskext.mysql import MySQL from flask_restful import Api, request from MainUser import MainUser app = Flask(__name__, template_folder='.') mysql = MySQL() app.config['MYSQL_DATABASE_HOST'] = 'localhost' app.config['MYSQL...
e5d201631b508f39527c2a7d1592605af67093dd
536bb0e10a2eb8146016e2fe1eec87c06988c47b
/bitcoin/sha.py
9d0a640d276dfa8aeefd8563db85b7e4059633f0
[]
no_license
dvenkatramana1998/cryptocurrency
ada21a273a88fca16a51c040bbde80dc09d1bd01
2362299a84d215d4ed5eabfafa6c38bd48975301
refs/heads/main
2023-06-29T09:23:31.268179
2021-08-03T09:12:17
2021-08-03T09:12:17
392,197,519
1
0
null
null
null
null
UTF-8
Python
false
false
1,072
py
sha.py
from hashlib import sha256 max_nonce = 10000000 def SHA256(text): return sha256(text.encode("ascii")).hexdigest() def mine(block_number,transaction,previous_hash,prefix_zeros): prefix_str ='0'*prefix_zeros for nonce in range(max_nonce): text = str(block_number) + transaction + previous_hash...
6b6cd763d9d571deb01b0ab194e928cb644bd6f0
5872314bc0e311b4d11805a00ec7ddd1222f0a87
/src/ML_Algorithms/BeliefPropagation/main_big_alarm_net.py
6c6fbb038ceb63f2cbf89e29c71d97e3f965925f
[ "MIT" ]
permissive
lberrada/AIMS
7e016ae85fba87c7e607c1d40eeec067993b13c1
7f8f484ab829f15366cb04ab37f799ad88edd29a
refs/heads/master
2020-04-05T23:25:14.794792
2015-11-09T16:46:48
2015-11-09T16:46:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
24,845
py
main_big_alarm_net.py
""" Comverted from matlab code Source: http://www.robots.ox.ac.uk/~fwood/teaching/AIMS_CDT_ML_2015/homework/HW_1_sum_product/ main_big_alarm_net This file creates the graph structure needed for the big alarm network. Creating the graph structure includes creating all nodes, placing the nodes into the stucture wi...
df73ca75f1ea0313befd2302e7f841cbe7344cbc
af95231e798b7228c3ca428cededd730ec07c34e
/digitizer_characterization/time_characterization.py
8bf12287f7c7a6d241f4ff8db1be05be39f78eaf
[]
no_license
mgirola/amulet
dae9686ea68ffa8f86d4a148d6b1284e2979335a
f861e3dfb704c23f72b15345911307a4a24c203e
refs/heads/main
2023-08-25T15:52:02.472359
2021-10-17T17:15:23
2021-10-17T17:15:23
376,913,624
0
0
null
null
null
null
UTF-8
Python
false
false
4,470
py
time_characterization.py
import sys, os, re from math import sqrt from statistics import mean, stdev from array import array from ROOT import * import ctypes if len(sys.argv) != 3 : print("execute as: \npython time_characterization.py path/to/folder/containing/CalTemp_measN_amulet_files path/to/oscilloscope/file.txt") raise Exception(...
438a09af5d16fcc976fb8bdb1e614387f65574ec
bffaba2184f883876a41a13d17625df951b3c37a
/windows/x86/local/IBM_ITSM_Administrator_Client_v.5.2.0.1/IBM_TSM_v.5.2.0.1_exploit.py
6250f4a03bb68359d45ae0e1d76ac2bba6713073
[]
no_license
VoidSec/Exploit-Development
5d99e2c784f5d12b4020aea23cda7de33bd51486
d75e6b336f2239b85fb2da7a537ffc0647ef497d
refs/heads/master
2023-06-23T16:26:33.337107
2023-06-22T20:49:44
2023-06-22T20:49:44
180,751,769
165
38
null
2022-05-23T18:15:24
2019-04-11T08:47:31
Python
UTF-8
Python
false
false
7,387
py
IBM_TSM_v.5.2.0.1_exploit.py
""" Full title: IBM Tivoli Storage Manager - ITSM Administrator Client Command Line Administrative Interface (dsmadmc.exe) Version 5, Release 2, Level 0.1 - 'id' Field Stack Based Buffer Overflow CVE: CVE-2020-28198 Exploit Author: Paolo Stagno aka VoidSec - voidsec@voidsec.com - https://voi...
5d4d62075f0beb79a0de427d3b0ba2d6fa94afe9
e854f3de45ee2bb8efa083a9f9bdc418ee6bebd2
/document_worker/config.py
606a044b6c439f6b90028ad5269b5ac63a183280
[ "Apache-2.0" ]
permissive
LibbyLi667/document-worker
f6ef3e8b6a6f748f70a69b93f318cce4777c93d9
9eb5f621c1bd71b2360f4b14255ee9face7756cd
refs/heads/master
2022-07-05T09:15:46.827693
2020-05-06T12:01:00
2020-05-06T12:01:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,999
py
config.py
import configparser import logging import pika import shlex from typing import List, Tuple class MissingConfigurationError(Exception): def __init__(self, missing: List[Tuple[str, str]]): self.missing = missing class MongoConfig: def __init__(self, host: str, port: int, username: str, password: str...
197395286ae1ed25235ae67d178fadf2a2bb1476
f859f2d94ee6dbd728870cf2d86a340f0ffd0e66
/etc/routines/show_phase_counters.py
b6839da584faca8756e4ce349611b7fef1aeafba
[]
no_license
cms-l1-globaltrigger/tdf
744362d52b97c922263de521c16e6a124ce58b1f
a2564781ea6bb9af7450730ec7c0875933989ecc
refs/heads/master
2022-06-12T08:54:09.438619
2019-02-08T12:02:13
2019-02-08T12:02:13
168,487,371
0
0
null
2022-03-29T09:09:03
2019-01-31T08:08:23
Python
UTF-8
Python
false
false
2,929
py
show_phase_counters.py
# show_phase_counters.py # BA 2015-05-28: created # dumping phase counters from tdf.core.xmlmenu import XmlMenu from tdf.extern import argparse NR_OF_BITS = 64 NR_OF_SAMPLES = 6 def rotate(strg,n): return strg[n:] + strg[:n] # ----------------------------------------------------------------------------- # Pars...
2ce0236c552d8ee718697ecb7c037c1fc6aecfa2
f0d713996eb095bcdc701f3fab0a8110b8541cbb
/f6LeKowjWQHm5637D_14.py
9c34ce0811ba292e3772b086f0601043f39b4970
[]
no_license
daniel-reich/turbo-robot
feda6c0523bb83ab8954b6d06302bfec5b16ebdf
a7a25c63097674c0a81675eed7e6b763785f1c41
refs/heads/main
2023-03-26T01:55:14.210264
2021-03-23T16:08:01
2021-03-23T16:08:01
350,773,815
0
0
null
null
null
null
UTF-8
Python
false
false
477
py
f6LeKowjWQHm5637D_14.py
""" Create a function that moves all capital letters to the front of a word. ### Examples cap_to_front("hApPy") ➞ "APhpy" cap_to_front("moveMENT") ➞ "MENTmove" cap_to_front("shOrtCAKE") ➞ "OCAKEshrt" ### Notes Keep the original relative order of the upper and lower case letters the same. "...
f36c92047da5f5045e7a8c4d5b3e833452531623
2716123b53bba18770709a56a16fff580b374f0f
/jim/util/util.py
cdc966bba80a01924686f7a67adb7480895adc57
[ "ISC" ]
permissive
FUN-GINEERS/jim
471b018ee8d9b06ff22f370a8ba31f63e1104b09
0944c9a35e1adfa51519cbe488ee1f8976d490ba
refs/heads/master
2021-04-06T20:42:30.985289
2019-09-17T17:21:48
2019-09-17T17:21:48
125,415,830
1
2
ISC
2019-12-17T17:58:26
2018-03-15T19:21:24
Python
UTF-8
Python
false
false
3,037
py
util.py
import pickle import re from jim.command import Command from jim.config import config_get from jim.util.DB import query, exec from jim.util import util WILLIE_SHRUG = "<:willie_Left:387252988835790858> <:willie_head:387252451260235776> <:Willie_Right:387252999745044480>" ADMINISTRATOR_PERM = 1 MODERATOR_PERM = 2 re...
e1de4f7c7ed33db8709c3be795cd8faa43122fd6
05eadc7a9c60b5300d575b138c10bf6fa3025619
/chifumi.py
f34bfcae67514cb646d0df81bfa71935d8fe63f8
[]
no_license
Laurading/Python
138cecd2a59c194e2c54fc97cbbefd777398a84c
917edd82bd01d9fa74f31439625879381d4fb596
refs/heads/master
2023-01-30T14:51:39.426539
2020-11-19T14:59:51
2020-11-19T14:59:51
314,281,692
0
0
null
null
null
null
UTF-8
Python
false
false
2,888
py
chifumi.py
import random listeChoix = ['Pierre', 'Feuille', 'Ciseaux', 'Lézard', 'Spock'] def isWin(choixUser, choixComp): global listeChoix if choixUser == choixComp: print("Egalité - " + choixComp) elif (choixUser == "Ciseaux" and choixComp == "Feuille") or (choixUser == "Feuille" and choixComp == "Pierre"...
fc7afed5f27ae29c05682669b8402fdacf2ae493
e0282d00937d8f4c9557b4f9091f577637b8fd55
/src/root/nested/pages/page.py
c3a1d97449f92e98155c53b93ad5fdae5739b9dd
[]
no_license
HeimratHL/dk_automatisierung
2154a5b5a75314923dbd052e98635a3803057ce8
ab836a5d47aaf38f7cb13bc49e480be430847a7a
refs/heads/master
2020-04-08T09:30:40.444790
2019-01-24T17:53:29
2019-01-24T17:53:29
159,227,490
1
1
null
null
null
null
UTF-8
Python
false
false
483
py
page.py
import tkinter class Page(tkinter.Frame): def __init__(self, *args, **kwargs): tkinter.Frame.__init__(self, *args, **kwargs) def registerPage(self, pageName, pageObj): setattr(self, pageName, pageObj) def moveToPage(self, pageName): try: getattr(self, pageName).li...
72808353a7f1fa1635c4ce5815396db77ad4352d
4f32ca538edb4e75e050bc86620e97d95a1fb660
/transform_data/json2xml.py
d30e36778314af3dbc4694fdcb501b4748642595
[]
no_license
xiaooquanwu/dl_common_script
2a75d16fbfb41daaf057ec2b9ba86acb4d58808c
60191b3e070593554b566c6bbb7a2d6290cdf46c
refs/heads/main
2023-07-28T02:20:11.324324
2021-09-10T11:06:10
2021-09-10T11:06:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,829
py
json2xml.py
#json转xml文件 import json import os from collections import defaultdict, OrderedDict import xml.etree.ElementTree as ET from xml.dom.minidom import Document labelpath = 'save.txt' savepath = 'save_xml/' basePath = 'select2/' filefinames = open(labelpath,'r').readlines() filefinames = [file.replace('\n','') for file in f...
e3f8f489e8642e42f473e4dfbefec7b65e4b7666
bb94fa1f19634af79e1299c34e11dc8ba9616d04
/Programs/Basic/List/divi_by_8.py
8dc19ff453518cdfce5cfa46d3762c7ddff4821a
[]
no_license
bharatmazire/Python
6c9e777ae4ba2c6f0eb0d756d8f7e8346db40068
b825872abb94ac2f00d478a739052fb4cebb488b
refs/heads/master
2021-01-11T17:37:30.780248
2020-07-30T17:04:04
2020-07-30T17:04:04
79,805,966
8
1
null
2020-07-30T17:21:11
2017-01-23T13:19:18
Python
UTF-8
Python
false
false
307
py
divi_by_8.py
#!/usr/bin/python def divi_by_8(x): if x % 8 == 0: print(x) else: pass def menu(): #lb , hb = accept() low = eval(input("enter low no : ")) high = eval(input("enter high bound : ")) return [x for x in range (low , high ) if divi_by_8(x) ] if __name__ == '__main__': menu()
c838611561a6ffbcdbe08ccb5b3f2b6d096426df
912bee5750573123d463c94a5015ead5bc7ad2aa
/scripts/robot/readyForRPI/motor.py
902a9eec81c97aeff5ef0efe422f23912595e65c
[]
no_license
joriskortekaas/Vulmachiiin
01ab57e0dd2d3045dc98fd3294371b748e8b82c6
ef663b5151fba3b3aaa25853ca38a164071b8846
refs/heads/master
2020-03-24T23:50:18.903360
2018-08-01T12:59:08
2018-08-01T12:59:08
143,156,501
0
0
null
null
null
null
UTF-8
Python
false
false
829
py
motor.py
from wiringpi import * # Motor class class Motor: # Initialises motor class def __init__(self, enpin, togglepinA, togglepinB): wiringPiSetupGpio() self.togglepinA = togglepinA self.togglepinB = togglepinB self.enpin = enpin pinMode(togglepinA, 1) pinMode(togglep...
a027e680b7eda07360ec2f907527c00e57974f30
847164f305393617c6c1ec34fa4cd5ff67d2c8cd
/selenium_tests/base_page_object.py
808a484f138411edd959edcd751c748b3775d18e
[ "MIT" ]
permissive
penzance/ab-testing-tool
0417438b3d6de31b12b0ad3fff2a19a6a8c9fc3d
6cfefcacde626e1ee85cad72e229a592159e7b6e
refs/heads/develop
2020-12-24T12:01:53.184436
2017-01-20T19:26:52
2017-01-20T19:26:52
22,353,530
3
0
null
2015-12-23T18:41:40
2014-07-28T18:39:09
Python
UTF-8
Python
false
false
1,641
py
base_page_object.py
from selenium.common.exceptions import NoSuchElementException class BasePageObject(object): """ This is the base class that all page models can inherit from """ def __init__(self, driver): self._driver = driver # These methods locate a specific element or elements. def find_element(se...
560622e37899d15b7bb188454fd066667619d69a
1be56f0acb435c4bb18838912c03f2a57d26809b
/tests/share/regulate/test_regulator.py
0696a42e7e5930c1b5e22febd3fb3e5ef8c2d7cc
[ "Apache-2.0" ]
permissive
FranklOpenScience/SHARE
bd09fd69a512fb720497f71a37b04c23126e2883
ed73a72f0f8628617f572532e05428d45123967d
refs/heads/develop
2021-04-29T12:04:39.518883
2018-04-08T23:42:16
2018-04-08T23:42:16
121,722,487
1
0
null
2018-04-08T23:42:17
2018-02-16T06:49:37
Python
UTF-8
Python
false
false
1,665
py
test_regulator.py
import pytest from unittest import mock from share.regulate import Regulator from share.regulate.steps import NodeStep, GraphStep, ValidationStep from share.util.graph import MutableGraph @pytest.mark.parametrize('num_node_steps', [0, 1, 5]) @pytest.mark.parametrize('num_graph_steps', [0, 1, 5]) @pytest.mark.paramet...
73f9c709b8ee31141bcc9f9cb3692f1e96bd3b88
3fe379ef009aff721d4d03c2b35bad6267cc8d76
/bar/mainapp/api/serializers.py
4abdceb6163c383aeb04d21ad8979a4e23860343
[]
no_license
Vadim-Hizhnichenko/my-first-project
2694a6a5239162f7ce26c0c59a6b72052ed6eaa2
cc669699af2cef1b7cf620fdf11c5bc1c1b9ba3d
refs/heads/master
2023-01-06T02:04:01.089563
2020-10-15T13:24:14
2020-10-15T13:24:14
302,912,027
0
0
null
null
null
null
UTF-8
Python
false
false
1,430
py
serializers.py
from rest_framework import serializers from ..models import Category, AlcoholCocktails, NonAlcoholCocktails class CategorySerializer(serializers.ModelSerializer): name = serializers.CharField(required=True) slug = serializers.SlugField() class Meta: model = Category fields = ['id', 'name'...
3b3563ac0cc6bc0cf0b4f914faed916afb35f043
66cc22c7bb590debad9b4c29382621accf56c94d
/main.py
0abbeeb88998a1333c0853683a6a95bc13c73e28
[]
no_license
GoldenPalazzo/proxychains-update
6836cc9e0bc10739d28d14e332dfb8cef45f788d
13bc77a59676a872692d57e805bd833027e149ed
refs/heads/main
2023-02-22T16:10:23.430877
2021-01-27T22:29:41
2021-01-27T22:29:41
333,575,455
0
0
null
null
null
null
UTF-8
Python
false
false
1,773
py
main.py
#!/usr/bin/env python3 import requests import lxml.html as lh import sys, os, subprocess URL = 'https://spys.one' USER_AGENT = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko)\ Chrome/74.0.3729.169 Safari/537.36' CONFIG_NAME = "proxychains4.conf" def write_file(name, value): w...
5387939ea0bdab60a642bc8c61729b08aa75b001
f050762942f313ee4d0067688086ce5d42d5da52
/Backup_05_05/BdayApp/migrations/0021_auto_20170325_1653.py
2d6a59d16648b0739a0c43a6ea7ed8d5590ad90f
[]
no_license
swayanjeet/ProjectBdayApp
830f46a01a2bd0cb504a382b580dc78eeb8256ac
734c132a8463ca0c1953b2b889e1c302610f256b
refs/heads/master
2021-01-12T01:03:39.834804
2017-07-28T20:11:05
2017-07-28T20:11:05
78,338,671
1
0
null
null
null
null
UTF-8
Python
false
false
833
py
0021_auto_20170325_1653.py
# -*- coding: utf-8 -*- # Generated by Django 1.10 on 2017-03-25 11:23 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('BdayApp', '0020_auto_20170325_1614'), ] operations =...
a4cb0477153da69650d0c878b2e53c99a2e8473b
22d9716d3fcc381b5072754df85989a29fb14371
/MangaModel.py
7c7d12a695faaeb79e72572c59353b5c6aece7a5
[]
no_license
a20034294/manga-ml
2ffc1abfe220b510a0a1898ced7c83ed95d1e80f
bdc28de3e262ca9d50ceba75021bc2162a2d1b0d
refs/heads/master
2020-12-03T15:56:35.506659
2020-05-06T15:28:47
2020-05-06T15:28:47
231,380,182
0
0
null
null
null
null
UTF-8
Python
false
false
3,904
py
MangaModel.py
from tensorflow.keras.models import Sequential #用來啟動 NN from tensorflow.keras.layers import Conv2D # Convolution Operation from tensorflow.keras.layers import MaxPooling2D # Pooling from tensorflow.keras.layers import Dropout, Input, Activation, Dense, Flatten, Add, LeakyReLU from tensorflow.keras.models import Mode...
ca5e5c616b62ac7452574549b5e0353dfd33fb41
eb617e939533db95f461efc26b972aeeaba36167
/python lab10/Задание 1,2,9/lab1,2,9.py
1cf6d1125f97d2e0ef98071396d8a9bcf1b9ddd4
[]
no_license
SilverSova-ui/Python_lab
0fb5ce8952046d44c381c7cb3a5a1175d279b47f
8b9d3b10c9525452f82c5c4fdc0a41931e4bbe7e
refs/heads/main
2023-05-06T12:40:24.327036
2021-05-18T13:56:52
2021-05-18T13:56:52
368,544,096
0
0
null
null
null
null
UTF-8
Python
false
false
325
py
lab1,2,9.py
import re f1 = open('f1.txt' , 'r') f2 = open('f2.txt' , 'w') sum1 = 0 q = f1.read() q = re.findall(r'[+-]?\d+',q) # находим все числа без/c префиксами + и - q =[int(i)for i in q] # приводим числа к int for i in q: sum1 +=i f2.write(str(sum)) print(sum1) f1.close() f2.close()
07a4fc20002b923ffbdf218dfc3d3db8baec69fa
c9f80ee8058d96f073d3e80df37cf893d3b6639e
/Accessor.py
2e1dcb5299f920e73ef34844f4179c364eeada29
[ "MIT" ]
permissive
lightning-pro/dhash
cf2f6e64f3914b2989ff81d95a60c153d2ddc710
e63e917f93096c9e8fa0690365de635b6cd2c692
refs/heads/master
2020-03-15T19:51:06.557043
2016-11-15T02:02:03
2016-11-15T02:02:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
300
py
Accessor.py
class Accessor(object): """""" pass class WriteThru(Accessor): """Implement write-thru access pattern.""" pass class WriteAround(Accessor): """Implement write-around access pattern.""" pass class WriteBack(Accessor): """Implement write-back access pattern.""" pass
479bb2debe1e294aecf5756ff71f4244c51e46c5
5d5cde93e002254ff7b42523a18b2b9f35271bd8
/VakomsTask/post/views.py
d96c91d953768c76d4ab905b8af076a08e420fe7
[]
no_license
MaxDubchak/VakomsTask
f9147cfc61a01ae1b8e83d5b415c4d9515c2394d
85e870500089499dee78fb1fff54c223e3709e2b
refs/heads/master
2020-04-28T17:29:22.539357
2019-03-17T11:09:09
2019-03-21T13:01:05
175,448,535
0
0
null
null
null
null
UTF-8
Python
false
false
1,523
py
views.py
"""Post views module""" from django.http import HttpResponseRedirect, HttpResponse from django.shortcuts import render from django.views import View from comment.forms import CommentForm from post.models import Post from post.forms import PostForm from blog.models import Blog class PostView(View): """Class that ...
5e3c4b30d3a70e1638ce4ac0c1f15d0bfa0efc10
534da9294138c71213cd8ee365515cd1c360cfa8
/src/k_nn.py
6d3a4ae3a9c91b35f60bd23d7a9890e8c976be26
[]
no_license
arpitragarwal/machine-learning-droplet-collision-modeling
a0a1448431aaabab148bfd79ada8b2201d1fd392
e30d8290f74ca1c57988e5dc8efcc06051e9d754
refs/heads/master
2021-10-09T02:04:41.644293
2021-10-01T01:57:37
2021-10-01T01:57:37
160,901,741
3
0
null
null
null
null
UTF-8
Python
false
false
3,425
py
k_nn.py
import matplotlib.pyplot as plt import numpy as np from sklearn.neighbors import KNeighborsClassifier, RadiusNeighborsClassifier from sklearn.model_selection import StratifiedKFold from sklearn.metrics import confusion_matrix, accuracy_score def k_nn(X_scaled, Y): print("Working on k-nns...") no_neighbors = 2*...
151f8d9da23147ba33cb43ad12b91eb2d794371d
51257d05f9778d445891f36e4a790509f131dace
/svms-job-module-service/connectors/apps.py
ea16fc59263dadee699846c797c4e977dc7e48aa
[]
no_license
shankarmahato/Job_module
11837bbe726924a0c1dce608dbd776ca48ad3ee9
626dae0efa20a66d1f69f49be15ab90c623ec33b
refs/heads/master
2023-03-03T15:18:05.232972
2021-02-15T08:15:39
2021-02-15T08:15:39
339,007,858
0
0
null
null
null
null
UTF-8
Python
false
false
221
py
apps.py
from django.apps import AppConfig # setup logging import logging.config logging.config.dictConfig(settings.LOGGING) logger = logging.getLogger(__name__) class ConfiguratorConfig(AppConfig): name = 'user'
5cebc2c550494b8dbff8ea33f187679a3196569a
1dadf8b24817b94b635d4bdf0b861c6906ab99ea
/parcon/parcon/socket.py
4c21d32ce62594ed860914b5e8f834dc15c94226
[]
no_license
msuszko/Parcon
6127f0bbfd5a7676e7f2d8a10bc5eddcb58ab472
b3cecb822d74c79bc6ad4b1e2ad2236cf107e4da
refs/heads/master
2021-01-18T07:18:27.213568
2012-03-28T11:20:51
2012-03-28T11:20:51
2,583,445
1
0
null
null
null
null
UTF-8
Python
false
false
626
py
socket.py
""" This module provides classes that make it easier to parse data from network sockets or files. """ class LazyString(object): def __init__(self, more_function): self.more = more_function self.buffer = "" def __len__(self): return 2**30 def __getitem__(self, item): ...
3b35d3c5311466c83062bd01e6f6fe0eaabaebf2
ca2f9db908a68817fcdde569953bce4f33d0e8a3
/DashboardDeviceDriver.py
9b02aa5454b1b80895e05927e202f1be6e8f6616
[]
no_license
Sunny-Engineer/SeniorDashboard-RPI
c2eeb51649ce63ffb7d4b5743f37bb6d62882645
39abdebce9ff78982a7b6ad94bc8706e644746b6
refs/heads/master
2020-04-26T00:18:04.817892
2019-02-28T19:15:29
2019-02-28T19:15:29
173,172,789
1
0
null
null
null
null
UTF-8
Python
false
false
10,928
py
DashboardDeviceDriver.py
import logging import requests import boto3 import os def sd_register_device(register_device_params): #This routine registers a raspberry Pi with the global server # This routine returns a list of dashboards that need to be downloaded as new or updated dashboard files. try: logger = logging.getLog...
e1e967d3a3b7879da789232329284ac0a90f1a84
e82cfaa8ea648ae7161ea1fa9bec0e1632bf07a4
/fantasyscript/operators/prefix.py
f5338bff4bfd825f5156cc69e9173270e167a11a
[]
no_license
FantasyTable/fantasytable-script
0d1d7ad74a8e88973c3433f625eabb463734d9c7
ef6a6c3e471f0009701be3a6d72c487337f7a01e
refs/heads/master
2021-06-21T06:57:21.606793
2020-12-18T08:49:29
2020-12-18T08:49:29
145,257,828
0
0
null
2020-03-21T08:31:11
2018-08-18T22:56:27
Python
UTF-8
Python
false
false
1,676
py
prefix.py
from . import * class Prefix: def __init__(self, exp): # - Set expression self.exp = exp # - Get expressions if type(exp) is list and len(exp) > 1: self.operators = exp[0:-1].reverse() self.value_exp = exp[-1] # - Initialize values self.i...
341be5f3a1c0ae37c49110945e046627c846e595
697d6d0a5ff488a0b727c0c87d0d2a1ef26f92de
/crikit/cri/tests/test_kk.py
1d263850e845f4720a8720c837433eaed3e73ab5
[ "LicenseRef-scancode-public-domain" ]
permissive
fmh96/CRIkit2
0ca9a438d17c2377d612cc04b1b66813fb2c4e9b
1246b2611e804416616b13581edf253fd4d62ed6
refs/heads/master
2021-01-08T02:48:01.366623
2020-02-19T18:52:54
2020-02-19T18:52:54
241,889,420
0
0
NOASSERTION
2020-02-20T13:22:25
2020-02-20T13:22:24
null
UTF-8
Python
false
false
2,300
py
test_kk.py
""" Testing for Kramers-Kronig Phase Retrieval Method Using the math relation a^2 / (a^2 + x^2) (Lorentz/Cauchy) has an analytical Hilbert transform: x^2 / (a^2 + x^2)-- and how that plays into the KK """ import numpy as np from numpy.testing import assert_array_almost_equal from crikit.cri.kk import KramersKronig...
25c0a3b7e53615e043cc289770bdc30be3320ee2
8778db9787e3ff7668c479b679497d6e4d3082b3
/aqa-worksheets/variables.py
b6d8ce23c66807e25d86f222b293320ff525c42c
[ "Unlicense" ]
permissive
lukecarr/python-class-work
380ed5af7fe61270279ef69765d26031fe48797c
0d0f757d7c94a404abdb553e6c20c8606eab52d5
refs/heads/master
2022-01-31T00:08:46.589628
2017-12-12T18:23:25
2017-12-12T18:23:25
113,982,312
0
0
null
null
null
null
UTF-8
Python
false
false
1,759
py
variables.py
def task1(): #Get Inputs inputs = {} inputs['name'] = input("Please enter your name: ").strip().title() while 1: try: inputs['age'] = int(input("Please enter your age: ")) except ValueError: print("Please enter a valid number!") continue if inp...
58c4ea82dfd301272bc2fbd438bf7a0343a14989
bcd387db6e0e62b622c48e4c1a8626d9e9eb1a48
/scripts/script_device_monitor.py
be7199a07525dbdcca54af954db560d64b319d97
[ "MIT" ]
permissive
michaj32/device_monitor
64edf1ca19b1e339a3a9d4028dd47859e50350b4
2ca46a60ceef41cd7952141008314ba27df30f0b
refs/heads/master
2023-04-16T20:12:11.418074
2021-04-25T22:51:40
2021-04-25T22:51:40
359,906,405
0
0
MIT
2021-04-25T22:51:40
2021-04-20T17:58:20
Python
UTF-8
Python
false
false
1,476
py
script_device_monitor.py
import json import threading as th from time import sleep from random import randrange from devices.device_monitor import DeviceMonitor def main(): config = { "devices": [{ "type": "file", "ID": "1", "file_path": "assets/1.json", "measures": ["current", "volt...
4dc15c46bc703312cb294f79b3a9c2bd7c952f46
c7a9a5976b6e1e240acac675abec53b41d9771af
/trading/journal/serializers.py
edd6323aad67552a0b520be4eff71ca17b2f814d
[ "MIT" ]
permissive
Purple666/fxjournal
fafd5f6afdba36f162bd2b7a0cd3fedea61d7bc5
adaf0f334b53e106f3e708a1942c5bfc021a74bd
refs/heads/master
2022-09-22T13:27:27.249241
2019-10-19T22:35:26
2019-10-19T22:35:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
487
py
serializers.py
from rest_framework import serializers from .models import TimeStamp, ForexEntry, BinaryEntry class StampSerializer(serializers.ModelSerializer): class Meta: model = TimeStamp fields = '__all__' # depth = 1 class BinarySerializer(serializers.ModelSerializer): class Meta: mode...
3e5d34975b63bca1fc7fc8d11d2f2812a7901f55
fcbdecde7d863ce21eca668463e7709d65e3728e
/product_archive_cron/__manifest__.py
3edce8370fcbf7d39db8fcc96f52d7f8f27cf8e6
[]
no_license
mra-odoo/sts-custom
c64791a299db8a7caab30eca0f92475f5925bf9a
2c90463d89ea38dc884a96ba50f0038220cffece
refs/heads/11.0
2021-05-12T18:16:37.877090
2018-01-12T07:38:33
2018-01-12T07:38:33
117,062,423
0
1
null
2018-01-11T06:54:32
2018-01-11T06:54:31
null
UTF-8
Python
false
false
834
py
__manifest__.py
# -*- coding: utf-8 -*- # Copyright 2017 Quartile Limited # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). { 'name': 'Product Archive Cron', 'version': '11.0.1.0.0', 'author': 'Quartile Limited', 'website': 'https://www.odoo-asia.com', 'category': 'Extra Tools', 'license': "AGPL-3...
71193e687cb99a071a3d3cafa0e1760cc561b377
6aeed553cf3490ba3161ce4ef6753a57cb92335d
/python/tongmangdungwhile.py
aa20b26585f05333d36504a428579e575c15d0aa
[]
no_license
geon1002/bach
758204d8e1299dad776e1cc81756fe2ea4e57a94
bd62491088213f325b1963bc05bb0366f1f10bd1
refs/heads/main
2023-06-29T15:13:03.755559
2021-07-21T02:27:43
2021-07-21T02:27:43
379,547,686
2
0
null
2021-06-23T09:22:52
2021-06-23T09:22:52
null
UTF-8
Python
false
false
528
py
tongmangdungwhile.py
import random def nn(dodaimangketqua): mangketqua = [] while dodaimangketqua > 0: mangketqua.append(random.randrange(0, 100)) dodaimangketqua -= 1 return mangketqua mangcantinhtong = nn(10) print(mangcantinhtong) def tinhtong(mang): tong = 0 index = 0 dodaimang = len(ma...
2988ae3c22e7ab23cb8942a816470865e24c9100
f7eedb5b6edbebbf3b27b5280d5179ce0ad102e3
/06-stat-mach-learning-s16-cse-575/Recommender/YelpContentBF.py
e9b77a4a84729498e73643c49d2795b991259982
[]
no_license
mukunm/asu-spr15-sum16
bcf4e9fd7bfe51e542eb85dc315e6f5272d42158
0f2550f82be419a57b9a322e164fe5813ef41565
refs/heads/master
2020-03-30T08:38:01.008012
2018-10-01T03:57:40
2018-10-01T03:57:40
151,029,622
0
0
null
null
null
null
UTF-8
Python
false
false
1,756
py
YelpContentBF.py
# Creating a matrix User x Business for content based filtering # Dimensions - 64968 * 2926 import pandas as pd import numpy as np import csv from sets import Set # Storing all Phoenix-specific reviews df = pd.read_csv('C:\Bharat\Masters Material\GIT Repo\RecommendationSystem\Data Files\Phoenix\Top500businessInPhx\\re...
875658b923710963b494ad8b8c8aee3dc35af815
056e79c6f2bb785efcf3cd0b7a1f91eb381c7050
/quiz/gift_wrap.py
986e6ad8e126cf3d4c59d307596f6e9d9a49ceff
[]
no_license
kbu34/cosc262
a85ef089668a2143e38755903b0a0c1c4cbcd4d7
f1920a04b853c640710c17c2d1e8f78ec36f9079
refs/heads/master
2022-12-04T01:06:14.144841
2020-08-21T00:53:28
2020-08-21T00:53:28
289,142,568
1
0
null
null
null
null
UTF-8
Python
false
false
2,617
py
gift_wrap.py
class Vec: """A simple vector in 2D. Can also be used as a position vector from origin to define points. """ def __init__(self, x, y): self.x = x self.y = y def __repr__(self): """Return this point/vector as a string in the form "(x, y)" """ return "({},...
a6082deab1bc5bbce2c77b0aec7c5bc40008e64f
35366937ae2291d22495443bf183e6bdac36976c
/reports/utils/expand_urls.py
9f9b68a0a321a6547f01d5dc160bd80c81423c2e
[]
no_license
siddarth306/Twitter_bots_topic_detection
3d025e03b20f97a79f9a13d80b81feea08aa7573
49cfdf7479d1e4a28317f56e8606eeb59fd7eead
refs/heads/master
2022-08-12T00:43:13.737695
2020-05-06T23:30:55
2020-05-06T23:30:55
244,056,557
0
0
null
2022-06-22T01:56:19
2020-02-29T23:25:17
Python
UTF-8
Python
false
false
2,377
py
expand_urls.py
import time import csv from tqdm import tqdm import pandas as pd import multiprocessing import pickle import urllib.request import demoji def expand_urls(urls): request_base = "https://b6dkeerw62x81o1j.pro.urlex.org/json/" request_payload = "***".join(urls) new_request_payload = demoji.replace(request_pa...
70a7fe19147295a13dbd864eaa8fe65d000fd585
71f3ecb8fc4666fcf9a98d39caaffc2bcf1e865c
/第10章/erwu.py
9b2a5adf81a937afff82651951c6db45681aab14
[ "MIT" ]
permissive
dltech-xyz/Alg_Py_Xiangjie
03a9cac9bdb062ce7a0d5b28803b49b8da69dcf3
877c0f8c75bf44ef524f858a582922e9ca39bbde
refs/heads/master
2022-10-15T02:30:21.696610
2020-06-10T02:35:36
2020-06-10T02:35:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
291
py
erwu.py
import math from math import sqrt def sqrt_binary(num): x=sqrt(num) y=num/2.0 low=0.0 up=num*1.0 count=1 while abs(y-x)>0.00000001: print(count,y) count+=1 if (y*y>num): up=y y=low+(y-low)/2 else: low=y y=up-(up-y)/2 return y print(sqrt_binary(5)) print(sqrt(5))
85377fe5107e587a0df5296346df5693c6ffa0cd
e8ba981fcc39b510ac7f5cd3afb3c93ffe718111
/cli.py
752af34be0e57148c1cbf3bd547dc0a44f73b01f
[]
no_license
SukiCZ/rectangle
768f2390058d42ae23a9908e6c6eca7ffc86d3a6
eaddea33b2075dafd2db6087d1734b935468e005
refs/heads/master
2022-11-08T06:06:21.652141
2020-06-23T08:11:20
2020-06-23T08:11:20
273,094,834
0
0
null
null
null
null
UTF-8
Python
false
false
1,565
py
cli.py
import argparse import sys from objects import Node, Rectangle, Tree parser = argparse.ArgumentParser(description='Calculate land and sea') args = parser.parse_args() def get_input(text): # pragma: no cover return input(text) def main(): rectangles = [] count = get_input("Enter the number of rectangl...
080504838fd97574b4249849db9aff6618dbe634
6dee8c35ff9faa3b9c934edb52a07dc42e32f5ba
/sort/quciksort.py
8719cd93b01cb2b79e2c155960a3313c5d8d7921
[]
no_license
bugm/sort
2b672b60291853af56377b650751e260380b636d
68b325bc080ba2751c7c5d9f1444a695a307ad0d
refs/heads/master
2020-03-28T06:04:14.090642
2018-09-11T06:46:35
2018-09-11T06:46:35
147,812,430
0
0
null
null
null
null
UTF-8
Python
false
false
509
py
quciksort.py
def quicksort(x,l,r): temp = x[l] origil = l origir = r while l<r: while x[r] > temp and l<r: r-=1 if(l<r): x[l] = x[r] l+=1 while x[l] < temp and l<r: l+=1 if(l<r): x[r] = x[l] r-=1 x[l] = temp ...
397928b235515ef2049fc6c8bafff52c8e281aab
ee2295368750e39e1a2e98f65f4bfecf25eed777
/models/StimuliDataModel/__init__.py
16e3ded019bfe6136cd2cbde1c749e897828acfb
[ "MIT" ]
permissive
Marti2203/DBL_HTI
0cb5608713dc7b2c63791b5855db1b6ad3828baa
4b1d9176d31880159d496dbb2393ad6fb55f03d3
refs/heads/master
2022-11-14T00:07:34.968462
2020-07-02T10:58:25
2020-07-02T10:58:25
256,451,674
0
0
null
null
null
null
UTF-8
Python
false
false
58
py
__init__.py
from .StimuliData import generate_model,generate_relations
09692f381a0b80dbca5d070fc58f81dc37ce70a5
5332b887a86beb2cc5e555835b34b0327831f6a5
/sol5/ex10-6.py
018af47a68d5efafea69eef9853391253c6efc85
[]
no_license
hojunee/20-fall-adv-stat-programming
59ac06c0d31feb0caa841f447c69299e9ab6c256
b77eafafbee6ab2b959670dbd20bbc966827de93
refs/heads/main
2023-04-16T05:48:28.231937
2021-04-04T11:31:25
2021-04-04T11:31:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
212
py
ex10-6.py
def is_sorted(seq): for i in range(len(seq)-1): if seq[i] > seq[i+1]: return False return True print(is_sorted([1, 2, 3])) print(is_sorted(['b', 'a'])) print(is_sorted("statistics"))
081084d0b581252a863dc922ca022f98dd59b2c2
7b49ff93ecc55e827a94626294cc585d7d0e06a5
/simple_safety.py
f3193b3a9209f9d221f67fc76d20ddd5428f8bf5
[]
no_license
JTP709/SMS
6fdf6b5472b891bdb328c15b326870206a07f45b
67bfd8de4fb4cfe516e281a50868eae3aa0bdbb8
refs/heads/master
2021-01-19T12:51:34.235186
2017-09-15T13:33:56
2017-09-15T13:33:56
100,813,466
0
0
null
null
null
null
UTF-8
Python
false
false
42,027
py
simple_safety.py
#!/usr/bin/python3 # Import custom functions from functions import createUser, getUserInfo, getUserID, datetime_handler from functions import getInjuryRates, getWeather, verifyUser from functions import login_required, owner_required, check_if_report_exists from connect import connect # Import database objects from da...
6b15385537c2c10b2f7f6b7235842b680e70f69c
bce7ea42bddfbdeb64ad7b39e2c1848f4bd45bf2
/data_analysis.py
6f8de660c44cc8e890127f7ffb4e95a7f0a027cc
[]
no_license
Gerdome/research-model-annotation
20b3c9e38f01642a8f17e2917d8ab6fd47725a8c
324ec44d477f61a311e2f977fb51950ed7254678
refs/heads/master
2022-12-17T16:43:17.371781
2020-09-24T14:04:35
2020-09-24T14:04:35
222,924,421
0
0
null
null
null
null
UTF-8
Python
false
false
2,027
py
data_analysis.py
import pandas as pd import json import csv import numpy as np img_data = pd.read_csv('images_mapping.csv') annotations_data = pd.read_csv('annotations_api.csv') print(annotations_data.columns) df = pd.merge(img_data, annotations_data, left_on="id", right_on="image_id") df = df[['id_y','image_id','dataset_...
33ae222cc444bc68a67a69cd163c7627b16a4d39
fdb1f742c95ba4782b5c5a5de88eb727f70311ab
/model_l2l.py
754f06efebfec08075b1a236799cdac425705361
[]
no_license
varya-p/learning_to_learn
b03671a44b47709e3df3c8a181ff1aa5d21b97b5
6b7c76396daafbabf8381083964d8206f76e5272
refs/heads/master
2021-09-16T17:54:31.732032
2018-05-25T20:05:50
2018-05-25T20:05:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
18,890
py
model_l2l.py
import tensorflow as tf import numpy as np import task import matplotlib.pyplot as plt from parameters import par from convolutional_layers import apply_convolutional_layers import os, sys # Ignore "use compiled version of TensorFlow" errors os.environ['TF_CPP_MIN_LOG_LEVEL']='2' print('TensorFlow version:\t', tf.__ve...
63ac5e817b9fdea2f8e8533f035bd85e5d62b503
887ff6786eb8f2e4fa1150e0ee7633ba586241eb
/test_server.py
9bb99853dc286e21404e5af256881169ec1e7bec
[]
no_license
navshaikh/sudoku-api
23e7c1198dfbff19848cb4f0b646f5a5d7d61870
3527fe69ea9545308190d7dab3111172fdc77c3e
refs/heads/master
2022-12-21T01:22:35.502619
2019-01-10T20:47:08
2019-01-10T20:47:08
164,238,179
10
3
null
2022-12-10T13:38:04
2019-01-05T17:50:29
Python
UTF-8
Python
false
false
6,159
py
test_server.py
import json import unittest from collections import namedtuple from app import app Sudoku = namedtuple('Sudoku', ['puzzle', 'solution']) class SudokuAPITesT(unittest.TestCase): def setUp(self): app.config['TESTING'] = True self.sudoku = Sudoku( '.1...8...3.472169...6....1....9.253..4...
0cff110b04f644d72fbd78a8ab62e0a4410632bd
3fe63f7059b4e32a0c7a1a345123d0dabef29235
/enemyStatusBar.py
eabdbdefa8299b3d1beeb6a62f2c80da31f7311c
[]
no_license
BenjaminHuangPA/LaunchPad-project
b16d8aa274519284b33cd626218a153d0498024f
98cd1c0398fb29af6de8aeb4b98dc23d407be182
refs/heads/master
2020-08-21T21:16:17.156436
2019-12-01T21:37:03
2019-12-01T21:37:03
216,247,467
0
0
null
2019-12-01T21:37:04
2019-10-19T17:50:30
Python
UTF-8
Python
false
false
2,370
py
enemyStatusBar.py
import pygame from collections import deque from random import randint from Enemy import * class enemyStatusBar(pygame.sprite.Sprite): def __init__(self, game, enemy, x, y): self.groups = game.all_sprites pygame.sprite.Sprite.__init__(self, self.groups) self.game = game self.enem...
93010a170990c040b615eabedb0e546f382d5f17
b0a72d79708acf4fce6e74a382e1779a2b59a153
/Strings/non_recurring_character.py
116de5103aad40bd57cbda1b1cbe99ebcaafd3df
[]
no_license
mokshithpyla/DS-Algo
966dbf7d49da30af07e795aa75270d5fb9bc44da
4ab0fc9f5807e00a631f0f7eb78ffae2c4301a6d
refs/heads/master
2021-07-12T13:53:16.433049
2020-08-17T13:44:14
2020-08-17T13:44:14
193,083,284
0
0
null
null
null
null
UTF-8
Python
false
false
502
py
non_recurring_character.py
t = int(input()) for _ in range(t): n = int(input()) S = list(input()) flag = False originals = {} for i in range(n): if S[i] not in originals: originals[S[i]] = [1, i] else: originals[S[i]][0] += 1 originals[S[i]][1] = i for i in range(n): ...
c8b5acd5f3d062234cce2b3bee69e45642ff6ded
7aa6a5e94c9dea6686a55f316b78a91e8e301ad0
/14-consecutive-strings/index.py
22fb798f876d2668d66ce0f0d85d18c5ebf1ad7c
[]
no_license
marinasupernova/codewars
3ede0d61693462551112bee1019c34396d91b2d9
fcea73a6cf564159a7fc776edc47cf57fab121df
refs/heads/main
2023-04-26T07:17:56.149954
2021-05-31T06:01:13
2021-05-31T06:01:13
345,687,012
0
0
null
null
null
null
UTF-8
Python
false
false
378
py
index.py
def solution(string, ending): ending_length = len(ending) if ending == "": return True if ending == string[-ending_length:]: return True else: return False print(solution('abcde', 'cde')) print(solution('abcde', 'abc')) print(solution('abcde', '')) print(solution('sam...
9321b5fb78c9a27e657c9555fcbfb5727d3dfb06
06e4d719ea23cc239974e958283db3d2bb4589ad
/migrations/versions/0773d0c62142_order_payment_id.py
2ce85482b69a288cb8eddaaa58b5a3ffe72e1c8b
[]
no_license
treetrnk/flask_webstore
d12a17a2353cf087031b245ba1f51801fb8173a3
84598fd7fa815d5c0c140ec164523afb4ce15384
refs/heads/master
2022-12-09T23:05:14.068359
2020-09-15T11:16:25
2020-09-15T11:16:25
287,518,335
0
0
null
null
null
null
UTF-8
Python
false
false
670
py
0773d0c62142_order_payment_id.py
"""Order payment id Revision ID: 0773d0c62142 Revises: 746cb2239ed3 Create Date: 2020-08-28 14:14:49.728068 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '0773d0c62142' down_revision = '746cb2239ed3' branch_labels = None depends_on = None def upgrade(): ...
7aaf4c3e625292b1fd6c3c120f5cd5bf04e1dcfd
d38b92f2f41897b4c730b9022ccd1ed65f9af657
/tasks.py
3d71d80eea48f25c42c9fa37f1f7adc1fe7536ad
[ "MIT" ]
permissive
rgreinho/tfpy
2860eac121a73d029d95cfe2ec01922b354457c7
ee02eac42c3d020c3b081cc591fb1ca837f0a609
refs/heads/master
2022-11-11T11:33:57.376178
2020-06-28T20:37:50
2020-06-28T20:37:50
257,696,073
4
1
MIT
2020-06-28T20:37:51
2020-04-21T19:30:52
Python
UTF-8
Python
false
false
1,232
py
tasks.py
import os from pathlib import Path from invoke import task PROJECT = Path(".").absolute().name @task def format(c, write=False): """Format the codebase.""" write_or_diff = "" if write else "--check" c.run(f"poetry run black {write_or_diff} .") @task def lint(c): """Lint the codebase.""" c.run(...
cef5d3d8a916679b501d74ec75c19830f8694635
efc8f0a4fb50486a4d4504d7c59111ed483aeddf
/equipment/admin.py
f6be243d8f613963d6c61a72445880c7b7a2c0ac
[ "MIT" ]
permissive
rit-sailing/website
6774e23156d96d0133316d8d7ff72a94bd084904
945e58bc6badefa775cdd975ae6b6b964cf02ef2
refs/heads/master
2021-01-10T05:13:58.820981
2017-04-11T23:09:09
2017-04-11T23:09:09
47,478,888
3
2
null
2017-04-11T22:52:24
2015-12-06T01:05:30
HTML
UTF-8
Python
false
false
199
py
admin.py
from django.contrib import admin from models import ItemRequest, ItemType, Item admin.site.register(ItemRequest) admin.site.register(ItemType) admin.site.register(Item) # Register your models here.
4562b3250260b76810f979fbeb66fb2c3867bd36
9a60a4e2709e43051f0432808c0a37d1e38cb5f0
/笔试题 记录/秋招/腾讯 - 提前批/No_3.py
f103ad1e7cf64acf91e73a464af67a7d6ddb4ee5
[]
no_license
wuyaqiang/Algorithm_Learn
82eede27e3e4a5f04e49d58dba3484f86d62808c
0c938ebaef19b7d5ed911fe46681a372c1df64cd
refs/heads/master
2020-05-02T14:25:24.019395
2019-09-23T03:27:13
2019-09-23T03:27:13
178,010,385
0
0
null
null
null
null
UTF-8
Python
false
false
708
py
No_3.py
import math import sys def helper(n, m): s1, s2, m = 0, 0, min(m, n - m) for index in range(m+1,n+1): s1 += math.log10(index) for index in range(2,n-m+1): s2 += math.log10(index) return math.ceil(10 ** ((s1 - s2) % 10)) def func(n, p, q): upper, up, down = n - q, 0, 0 for...
2bb4303dd59c57170f1037e76beaac18b6d68c73
27398b2a8ed409354d6a36c5e1d2089dad45b4ac
/backend/controller/decapod_controller/apt.py
3c2ab0db7aec7643497a031f30a7ff1f08fb2233
[ "Apache-2.0" ]
permissive
amar266/ceph-lcm
e0d6c1f825f5ac07d2926bfbe6871e760b904340
6b23ffd5b581d2a1743c0d430f135261b7459e38
refs/heads/master
2021-04-15T04:41:55.950583
2018-03-23T12:51:26
2018-03-23T12:51:26
126,484,605
0
0
null
2018-03-23T12:50:28
2018-03-23T12:50:27
null
UTF-8
Python
false
false
3,124
py
apt.py
# -*- coding: utf-8 -*- # Copyright (c) 2016 Mirantis 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 ...
18b958179c29ddb300d1210796abb0ab7dd17a01
c674825c6d6ea6bf3289af01e2dd9db148629d94
/mitx6.00.2x/work.py
0df7423024e130fad6424e14f4e5593405a8c9f5
[]
no_license
ekepes/DemoCode
d426473dcc29b49e9d7c25f4e19278e73edaddf1
f7c7cae49bfe0b3124dc627370b14c879bd3611b
refs/heads/master
2020-12-20T10:34:11.719144
2018-10-22T15:07:04
2018-10-22T15:07:04
1,412,931
0
0
null
null
null
null
UTF-8
Python
false
false
608
py
work.py
import math import random def sim(numTrials, experiment): successEvents = 0.0 for i in range(0, numTrials): if experiment(): successEvents += 1 return successEvents / numTrials def singleSuccess(): return random.randint(1, 10) == 1 def onlyOnce(): successes = singleSuccess() ...
2f51fc3e214230fd00caf33caec8b93d71ccc3ca
9024028cac910dd75bf11bd73cde31657e7aef7d
/tictactoe.py
b30903b7d53eb42fd41908a8db827432e7e2f2a6
[]
no_license
k7wu/Python-Practice
f2c5a6cd5485481114fff42d2c5025ed0e9b0ffe
982e0c9f77e3564032ed746fc7d5feb27af8fb52
refs/heads/master
2022-07-26T15:29:35.870473
2020-05-21T19:38:55
2020-05-21T19:38:55
238,058,775
0
0
null
null
null
null
UTF-8
Python
false
false
917
py
tictactoe.py
def tictactoe(): ''' Tic Tac Toe Game ''' print( f'Hello World' ) ### Setting up variables to represent spaces in 3x3 grid tictactoe_array = [None, None, None, None,None,None,None,None,None] print(tictactoe_array) turn_number = 0 player1_turn = True while turn...
183e6cf045473b0881a22f15bc99b353d001fcd0
ce75bce747bf60b364bc2e516824fc69c64a7eec
/opengever/maintenance/scripts/show_preserved_as_paper_default.py
6b5b55db0b31d3a7c9cc870bb7535c4f9eebcd8d
[]
no_license
4teamwork/opengever.maintenance
c94e470af31f891d0969877533e5acd37369f70f
f2b9866fb6cce1d24e29b084b757eec857119479
refs/heads/master
2023-07-28T17:57:09.619138
2023-07-14T13:08:20
2023-07-14T13:08:20
14,493,557
2
0
null
2023-08-31T09:07:21
2013-11-18T13:46:30
Python
UTF-8
Python
false
false
822
py
show_preserved_as_paper_default.py
""" Show default for 'preserved_as_paper_default' bin/instance run show_preserved_as_paper_default.py """ from opengever.document.interfaces import IDocumentSettings from opengever.maintenance.debughelpers import setup_app from opengever.maintenance.debughelpers import setup_option_parser from opengever.maintenan...
c1e02f56fb38fe5a154ffc35abc65d39ec3c21c1
53e18781d95bcad3820087645cd94876769d00c6
/pairseslib/wikidump/__init__.py
5cea2e2b9cc29158acc7a342c4108c09bdd93646
[]
no_license
riccardoangius/pairses
bf646cee91ba446ca854ba582d3d34a0dd0dfce9
f4d8a6a49dd33291965daf872b15de6d05d0fd34
refs/heads/master
2020-12-05T10:28:17.896483
2020-01-06T11:18:59
2020-01-06T11:18:59
232,080,303
0
0
null
null
null
null
UTF-8
Python
false
false
3,372
py
__init__.py
import sys import csv import os.path import logging import argparse import tempfile from argparse import ArgumentParser logger = logging.getLogger('wikidump') import dataset from utils import build_index, load_dumps, find_dumps from model import Dump from config import config def c_list(args): """ List availa...