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
aff1a9263e183610f403a4d6a7f27b45eacb7ff2
98501cf7fb6bbdb25af273b5125127bb722cc289
/lesson5/problem 4/problem4.py
720676501fd9dbed1f3850e6015915521e29638b
[]
no_license
valentinasil/lesson5
c267ae58810597987fd4decd116d1785db592c14
076ec7c02c0100632af6f124b3d7e49b2af2aab0
refs/heads/master
2020-04-09T14:23:21.171706
2018-12-14T14:40:39
2018-12-14T14:40:39
160,396,019
0
0
null
null
null
null
UTF-8
Python
false
false
35
py
problem4.py
name='valentina ' print(name*1000)
eabf06481509962652812af67ad59da5cfe30fae
dea01fe9c0af2cf9625219ce9e87a07d1f887990
/mupub/__init__.py
d50d0a12b75c872c58657cde423596ed35d55e98
[ "MIT" ]
permissive
MutopiaProject/mupub
8a69e357ea672deee2177499ac15ad66fd3d88de
8c59ae15ea13af14139570fcccfef850e1363548
refs/heads/master
2020-04-19T08:56:38.500272
2018-12-05T22:23:57
2018-12-05T22:23:57
66,814,838
0
0
MIT
2018-10-02T16:40:42
2016-08-29T05:44:25
Python
UTF-8
Python
false
false
1,496
py
__init__.py
""" mupub module. """ __all__ = ( '__title__', '__summary__', '__version__', '__author__', '__license__', '__copyright__', ) __title__ = 'mupub' __summary__ = 'Musical score publishing utility for the Mutopia Project' """Versioning: This utility follows a MAJOR . MINOR . EDIT format. Upon a major release, t...
54f0ed5f705d5ada28721301f297b2b0058773ad
ce942d4d85dd87aa5876bb6d221f88445ab9fe71
/bot.py
29a8695c9d7b587cf8bab99f9c55cb010b026742
[]
no_license
escramer/minecraft-bot
e258d0eee50ad28e04ade3d0cfeab83e1c2f01b5
6c7212aff62276ee955f0bbf5d73dce6e50fc4db
refs/heads/master
2020-12-24T21:22:46.668853
2016-05-08T22:37:05
2016-05-08T22:37:05
57,427,144
0
0
null
null
null
null
UTF-8
Python
false
false
19,446
py
bot.py
"""Module for the bot""" from copy import deepcopy from time import sleep import mcpi.minecraft as minecraft from mcpi.vec3 import Vec3 import mcpi.block as block from search import SearchProblem, astar, bfs from singleton import singleton _AIR = block.AIR.id _WATER = block.WATER.id _LAVA = block.LAVA.id _BEDROCK =...
45969b346d6d5cbdef2f5d2f74270cf12024072d
f52997ac7e1b41f34018c3a0028ced8638072b2b
/src/search/migrations/0004_searchsettings.py
8f890b6d97b020548bb031342abc147cca085222
[ "MIT" ]
permissive
uktrade/digital-workspace-v2
49fae1fca819b625c6f6949fb5ce51b89fbcab96
7e328d0d55c9aa73be61f476823a743d96e792d0
refs/heads/main
2023-09-03T12:03:47.016608
2023-09-01T12:07:55
2023-09-01T12:07:55
232,302,840
6
0
MIT
2023-09-13T15:50:24
2020-01-07T10:41:18
Python
UTF-8
Python
false
false
964
py
0004_searchsettings.py
# Generated by Django 4.1.9 on 2023-06-29 16:11 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("search", "0003_auto_20230209_1441"), ] operations = [ migrations.CreateModel( name="SearchSettings", fields=[ ...
3fbf1768a2fe78df591c49490dfce5fb374e7fc2
2dba401baefbb8fe63900ad079ece9f04069bbe0
/readthedocs/doc_builder/base.py
51682f64963640ccc80c2b51f19c9c8d312d2a76
[ "MIT", "LicenseRef-scancode-free-unknown" ]
permissive
thomaspurchas/readthedocs.org
a4181efe11fa306d8dd5de4009986abae24735c0
9f66756768a1950bf10f654a0abd4b6ea33d2556
refs/heads/master
2023-01-08T03:56:21.710097
2011-12-22T17:30:03
2011-12-22T17:30:03
2,247,704
0
1
MIT
2022-12-23T21:37:09
2011-08-22T09:48:15
Python
UTF-8
Python
false
false
2,231
py
base.py
from functools import wraps import os def restoring_chdir(fn): #XXX:dc: This would be better off in a neutral module @wraps(fn) def decorator(*args, **kw): try: path = os.getcwd() return fn(*args, **kw) finally: os.chdir(path) return decorator clas...
67b967b688aeac1270eee836e0f6e6b3555b933e
b38c838c67c7ac2ab666f59afb836b0f3346fba3
/pidcmes_bbu.py
275aa403b6f6cf3f0678bf66651611497724a622
[ "MIT" ]
permissive
josmet52/amod
e815493963ed08a40045c6240c2e7e08a18a7665
6fa438e3d392ce2e3cc0cb83e3ebd9b7d51b0071
refs/heads/master
2023-02-19T02:38:40.134960
2021-01-12T10:09:46
2021-01-12T10:09:46
317,339,517
0
0
null
null
null
null
UTF-8
Python
false
false
1,344
py
pidcmes_bbu.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ This program is run at regular intervals to check the battery charge status of the uninterruptible power supply. In our case, it is a LiPo battery with a nominal voltage of 3.7 volts. By setting the voltage for the Raspberry PI shutdown procedure at 3.7 V,we ensure th...
c59707ba07c1659d94684c54cdd7bb2658cba935
2d12912b799cb0d61232d1978752383f67daf2ab
/skutil/h2o/split.py
306d9909057c86a518b4cd863fa6bbb2af09348a
[ "BSD-3-Clause" ]
permissive
vedraiyani/skutil
eb932487414236fce030fbeb98c39d20cd1ddf25
672e353a721036791e1e32250879c3276961e05a
refs/heads/master
2020-03-23T19:46:36.146229
2018-04-19T14:42:20
2018-04-19T14:42:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
23,674
py
split.py
from __future__ import division, print_function, absolute_import import numbers import warnings from abc import ABCMeta, abstractmethod import numpy as np from .base import check_frame from skutil.base import overrides from sklearn.externals import six from sklearn.base import _pprint from sklearn.utils.fixes import si...
41cfd558824b6561114a48a694b1e6e6a7cb8c05
47bf64c2bc00586e39f1af5bda6f9379957f29b3
/pages/register.py
bddc375ea1da737d2d216ccb69dfe63e8e45f0e8
[]
no_license
antat2003/streamlit_multipage
713023d874e947618d3d45ba23a51eaf535292ae
5f8333de62538cec39b4ec4d9cfb4b34defcbe01
refs/heads/main
2023-09-01T14:57:27.226640
2021-11-03T05:42:05
2021-11-03T05:42:05
401,871,601
0
0
null
null
null
null
UTF-8
Python
false
false
952
py
register.py
import streamlit as st from streamlit.components.v1 import components from streamlit.report_thread import get_report_ctx from util.session import * from multipage import MultiPage from pages import register def app(page): if not login_status(): title_container = st.empty() remail_input_container = ...
f2bb44600f011a205c71985ad94c18f7e058634f
5a1049eda025b75fd67a430c2eb0a0aa5c4203d2
/data/retrieval.py
677012473e7c1695ad7d73b5ff86a92eaa841555
[ "MIT" ]
permissive
brennanmcfarland/arc23
5750ff2d82258e43b2ffb6cb4a729d1072432bd7
ea2d73c30f6c1de4d7c6c3d7c5e0df6ebc6c54d0
refs/heads/master
2023-01-24T18:03:08.537376
2020-12-08T00:11:11
2020-12-08T00:11:11
233,967,880
0
0
null
null
null
null
UTF-8
Python
false
false
2,481
py
retrieval.py
import os import requests from PIL import Image from io import BytesIO import csv from typing import Iterable, List, Tuple, Dict, Callable, Union, Collection # pull the image from the api endpoint and save it if we don't have it, else load it from disk def get_img_from_file_or_url(img_format: str = 'JPEG') -> Callabl...
302605d8bb45b1529742bf9441d476f0276085b9
4847b1fd81483ad8cf31e0e444adb5e459cdcfd4
/UIPack/MainFrame.py
ab107593a2b3dd2692c8c63463ee03d547a06d42
[]
no_license
SizeLee/Graduation
1460272e6af44b026c3f41c7ccbf252eb8d6a88d
ee541d21ec182a6c11bc8196cfaf51ad3f99e29d
refs/heads/master
2021-01-22T03:48:58.948295
2017-08-17T16:33:11
2017-08-17T16:33:11
81,462,838
0
0
null
null
null
null
UTF-8
Python
false
false
25,939
py
MainFrame.py
import sys from PyQt5.QtWidgets import (QMainWindow, QWidget, QHBoxLayout, QVBoxLayout, QFrame, QSplitter, QStyleFactory, QApplication, QPushButton, QTextEdit, QLabel, QFileDialog, QMessageBox) from PyQt5.QtCore import Qt from PyQt5.QtGui import QFont, QColor import myLoadData from UIPack import setLossParameterDia...
3e6135a87b1f2824d56438a9538df7c6a206fc7c
377bf89b212a75076ed533c9e030d029170eb885
/build/catkin_generated/order_packages.py
081af394b1dd57f83706bfa8f1970b0db3fb680d
[]
no_license
rezwanshubh/rez2-robtech
b6552d84ed9066f708dd8f58530bb18daeef97b2
1bcf5a9192c5b6332e215bafcbe4db95f7a6750f
refs/heads/master
2021-01-20T14:47:16.569917
2017-05-11T18:48:51
2017-05-11T18:48:51
90,658,845
0
0
null
null
null
null
UTF-8
Python
false
false
385
py
order_packages.py
# generated from catkin/cmake/template/order_packages.context.py.in source_root_dir = "/home/rostest/rez2-robtech/src" whitelisted_packages = "".split(';') if "" != "" else [] blacklisted_packages = "".split(';') if "" != "" else [] underlay_workspaces = "/home/rostest/rez2-robtech/devel;/opt/ros/indigo".split(';') if ...
ec010fefb6df033e2c107f6298dce6f4827e4fae
cb80241b8525dcc48eecc2be43b11ed9d5e610b8
/Aulas/Disicionarios.py
af39d55c2ac1bbfac32a046b5a576fbe8765a705
[]
no_license
LucasXS/Mundo3Python
1b5ad7863faa938faa5771cc64f9d89fb38aaffa
b5ae6807bd9674e4f0129bee489f2aa1198f8d2f
refs/heads/main
2023-06-02T06:54:23.744554
2021-06-16T22:19:32
2021-06-16T22:19:32
352,486,216
0
0
null
null
null
null
UTF-8
Python
false
false
575
py
Disicionarios.py
pessoas = {'Nome': 'Lucas', 'Sexo': 'M', 'Idade': 25} print(pessoas['Nome']) # Usar as aspas duplas print(f'O {pessoas["Nome"]} tem {pessoas["Idade"]} anos') """ print(pessoas.keys()) print(pessoas.values()) print(pessoas.items()) del pessoas['Sexo'] pessoas['Nome'] = 'Leandro' pessoas['Peso'] = '98.2' print('=-'*1...
4912d1854f278bf5977c84e70020536f8d349b93
5f2b9f4debad9cc904d607000b1ae98de1eda9e9
/lib/python/treadmill/sproc/cellsync.py
0fed597aa711939b6025bc1037560ec5e68dd86c
[ "Apache-2.0" ]
permissive
bretttegart/treadmill
42ccb6123ce136292217d528fee37c8b1657ea0b
812109e31c503a6eddaee2d3f2e1faf2833b6aaf
refs/heads/master
2021-05-05T17:38:22.611431
2018-04-09T17:30:31
2018-04-09T17:30:31
103,435,056
2
0
Apache-2.0
2018-04-09T14:51:10
2017-09-13T18:18:10
Python
UTF-8
Python
false
false
1,932
py
cellsync.py
"""Syncronizes cell Zookeeper with LDAP data. """ from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import logging import time import click from treadmill import cli from treadmill import context from treadmill import...
bc1dc6f0eb433ea6ef69e4f6f201a04a0e277be9
1bc12ae216524006129812f64584672d06ff2edd
/QUANTAXIS/QAStrategy/QA_Strategy_Loader.py
903c5cb03baf6a7e0e521aaa4331e419155ad791
[ "MIT" ]
permissive
Bourton/QUANTAXIS
874c965ef5ea0c1bc56d680aa15c16b8aa36a936
080e82bbc2c2e8f53445b741ee45304d8f4f0d31
refs/heads/0.4.0-beta
2021-01-18T16:49:17.203430
2017-08-16T05:51:08
2017-08-16T05:51:08
100,469,414
2
0
null
2017-08-16T08:58:25
2017-08-16T08:58:25
null
UTF-8
Python
false
false
964
py
QA_Strategy_Loader.py
# coding:utf-8 # strategy warpper class QA_Strategy(): def __init__(self): self.strategy_list = {} def before_strategy_exec(self): print('before') pass def after_strategy_exec(self): print('after') pass @classmethod def strategy_init(clcs, func, *arg, ...
eb0f7716f8b2a4ce81cb4cfb9bdee66a9a8e3021
01ed43604812e421793b7a70325eae14cb480e71
/PA0/task5/test.py
a57e5374493d62145b394796743738364f15a734
[]
no_license
KadeR-jpg/csci-460-fall2020
cc6a2c6b19563c841fb07982ded60879c0e8b575
fc250b24dbb2e2ab779694a863f08ad5fedb296b
refs/heads/master
2022-12-27T14:18:59.401805
2020-10-16T23:05:49
2020-10-16T23:05:49
291,146,689
0
0
null
null
null
null
UTF-8
Python
false
false
949
py
test.py
import sys import random punc = ('.', '!') count = 0 new_word = "" inFile = ("dressed.txt") with open(inFile, 'r') as shuf: for line in shuf.readlines(): for word in line.split(): if len(word) > 2: if word.endswith(punc): word1 = word[1:-2] ...
cd8891af3cb3005812b542518e54895355810426
7d45f6a2b59ada3cb1bba14ea26bc1b0740f8d8e
/stopwords_lists/views.py
06d93be04712e8511ddf980c1c2442bb9bced1dc
[]
no_license
sgs-nlp/persian-natural-language-processing
c3a37eac46fe01f44d38fdbb9f78cc0ad515f40a
857fa88d8850dd7054f310468c4d7ae04a149133
refs/heads/master
2023-08-11T10:52:19.402127
2021-09-25T10:17:29
2021-09-25T10:17:29
410,188,499
0
0
null
null
null
null
UTF-8
Python
false
false
116
py
views.py
from django.shortcuts import render from django.http import HttpRequest def index(request: HttpRequest): pass
a15e67ec1b3a19a52bcb85c16fcd4ad3c7f297d5
785248ef71ca54feaf93524299385719ec203959
/crypto/Lab0x02/COM/solve.py
487f61412b013ba0e9282b37aa3c8e56e02d8430
[]
no_license
mhsuab/ComputerSecurity2020
14336fb2c7d8865aedf059cbee0e6f2c5845a011
48c02fddf4561d5e543c700e9ec143dafde20cd9
refs/heads/master
2023-02-27T13:32:00.084130
2021-01-27T09:50:38
2021-01-27T09:50:38
297,151,353
0
0
null
null
null
null
UTF-8
Python
false
false
1,406
py
solve.py
# Common Factor Attack # n1, n2 generate from same p but different q # find the greatest common divisor(gcd) of n1, n2 to get p # then n1, n2, can be easily interger factorize from Crypto.Util.number import long_to_bytes, GCD, inverse # from output.txt n1 = 7668727925779864094785897542480563253013632380554930603470643...
c4b596ec3ebea18391dce42cda46514983599ac5
5e962ced9a0f52bf0f6106b8ebf96e1431b17cf4
/web.py
7d95ef2bd1f356c34d63bb37027fbcc7ef6b689f
[]
no_license
Anton-Cao/Charcoal
1e1a78263de1abc004611df4c9ea17c5d88a0d5f
1618ff4648ee6345f2d496a5bc28b2129f4ae0b9
refs/heads/master
2022-12-09T07:42:50.883998
2018-01-30T23:13:36
2018-01-30T23:13:36
119,257,769
0
0
null
2022-12-08T00:53:25
2018-01-28T12:50:03
Python
UTF-8
Python
false
false
942
py
web.py
import os from flask import Flask, render_template, request, jsonify, send_from_directory from predict import predict_next_chars as pnc from predict import generate_story as gs app = Flask(__name__) @app.route('/') def main(): return render_template('index.html') @app.route('/favicon.ico') def favicon(): retu...
b0e838d2cc31aa476a89b1c2d35f197ad4b478e9
4ae7cdc9292009398a292bdf6bee61428559fdfd
/SourceCodeTools/code/experiments/Experiments.py
8518ea7335ea6abda5a88887276df7b339afb011
[]
no_license
VitalyRomanov/method-embedding
52a4e6e7bf726b4db0872902a0eaf1d8cb82b4a8
1c8f0fc04eb1f495555272d9747fd2fea68525e1
refs/heads/master
2023-08-31T17:39:04.051912
2023-01-08T05:02:52
2023-01-08T05:02:52
219,153,628
5
7
null
2023-07-22T20:27:20
2019-11-02T12:54:12
Python
UTF-8
Python
false
false
34,874
py
Experiments.py
# %% import json from typing import Iterable import pandas from os.path import join from sklearn.model_selection import train_test_split import numpy as np # from graphtools import Embedder from SourceCodeTools.code.data.dataset.Dataset import filter_dst_by_freq from SourceCodeTools.code.data.file_utils import unper...
4440148fe947ef7f67b0481d36493bee3d0545ae
edf47b8132b211303644b3e5f63ccd7e0ae90ecb
/master_ui/workFile/session_form.py
e34349dc3e6a976bf7e80d60d7b959c5a0c9d770
[ "MIT" ]
permissive
mmallmann/masterreload
d302faffe678630a82ecadb58858f7d1daa4c0c6
4c00474c472be8b57f4a87f449f0906721bd9d50
refs/heads/master
2021-01-17T22:34:50.247851
2014-10-06T06:45:25
2014-10-06T06:45:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,113
py
session_form.py
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'sessionUi.ui' # # Created: Mon Sep 22 19:59:31 2014 # by: pyside-uic 0.2.15 running on PySide 1.2.2 # # WARNING! All changes made in this file will be lost! from PySide import QtCore, QtGui class Ui_session_form(object): def setup...
798c0aaa3cf478bf7ec0037de0dcb39dd6ce2cc8
ca504a1c4a6f0d42ff671a489b79de97fef41d38
/CleanRawData.py
5d516507f2a2924d09aab642f19f757d97fbfadd
[]
no_license
prateekvishnu/SemanticMovieQAonMovieData
e076d60b68b6f8a72c78a50e3aeed39464f65e27
207053b2f539b0a79bc88ba4810fa6a876c94a93
refs/heads/master
2020-03-18T01:53:44.854054
2018-05-20T16:00:37
2018-05-20T16:00:37
134,164,770
0
0
null
null
null
null
UTF-8
Python
false
false
580
py
CleanRawData.py
import os import re files = os.listdir("Data/RawPlots") for file in files: f = open('Data/RawPlots/' + file, 'r', encoding='utf8') text = f.read() text = re.sub('<[^<]+?>', '', text) text = re.sub('\n', '', text) text = re.sub('\.', '. ', text) text = re.sub('\"', '', text) text = re.sub(',...
a4e342a8a2706a34a00e122a69487fccc930853e
367eec65f36145d9d442692559fd65f66d8c5b64
/LearnPython/test/function3.py
0b0d5ae21e326e65233a20b2acacd5c6aa5bf1f1
[]
no_license
goocci/Learn_Python
1c58f1f4b7f0695f385e0dbacc44f7369b7d86f9
f2ae8ec11bc37872d13ee688645c1d7c275895b0
refs/heads/master
2021-06-11T14:25:24.109545
2017-02-26T15:17:44
2017-02-26T15:17:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,354
py
function3.py
''' 사용자 정의 함수 def 함수명(인수): <실행할 명령1> <실행할 명령2> ... *인수(매개변수, 파라미터) ''' def show_max(a, b) : if a > b : print("최댓값", a) elif a == b : print(a,"와",b,"는 같다") else : print("최댓값",b) show_max(10, 6) i = 5 j = 5 show_max(i,j) i = 10 j = 100 show_max(i,j) def sum(a,b) : ...
14a02bc9742503af43c0e72b6be89d6b18712655
f43c1909611d336a91fc8bca756803d868037a0c
/config.py
e77fca8c91e561cfcad65eddbb8224b4f8e1df7d
[]
no_license
hialstkd/python-api-challenge
b2af17964f4f3c218a4f24491a38b7a597088e51
ce18f6ef8d1e7d9482fce1f6e0b3b0844e2c0058
refs/heads/master
2022-11-15T16:56:45.388701
2020-07-14T05:34:12
2020-07-14T05:34:12
279,234,139
0
0
null
null
null
null
UTF-8
Python
false
false
71
py
config.py
apikey = "Your OpenWeather Map API HERE!" g_key = "Your Gmap Api HERE!"
a9ae4b86de6afdc2040e73f213d371c61dade05b
e961244aabd189a880b0670a94c29b85b95916b6
/圓周與面積.py
193b133fcf5ed3d0af4fafe0060f4bebb7a667b2
[]
no_license
changray1201/AE402-Python
62f9290d4c5889d21877486a2039a748cfd5723f
88a12a07aa8638d6082cd85ebec3a1c2e2721ba5
refs/heads/main
2023-03-01T17:20:03.266442
2021-02-04T08:46:44
2021-02-04T08:46:44
334,811,198
0
0
null
null
null
null
UTF-8
Python
false
false
196
py
圓周與面積.py
r = input("請輸入圓的半徑") r = float(r) square= r ** 2 * 3.14159265358979323846264 l = 2 * r * 3.14159265358979323846264 print("圓周長是:" , l) print("圓面積是:" , square)
19e1a13766914ff9ff50a59dd9c89ab6db4cc0e1
4055630059b5e8b25aebd51eef8a1e30e65078ae
/server/user/migrations/0005_auto_20181212_1506.py
37325fef91dc32fd68efbb22590253be1b50ec6b
[]
no_license
Arthur264/music-new
11834f90b6fcd0678f27703546619466fc5c661c
e87c87e69b35d17c765ac421c47a12e2270f3710
refs/heads/master
2021-07-06T02:13:12.468227
2019-03-04T22:23:24
2019-03-04T22:23:24
140,053,339
1
0
null
null
null
null
UTF-8
Python
false
false
968
py
0005_auto_20181212_1506.py
# Generated by Django 2.0.8 on 2018-12-12 15:06 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('user', '0004_auto_20181211_1547'), ] operations = [ migrations.CreateModel( name='SocialNetwork', fields=[ ...
c199060360c836e8c9a4633d7875e58bd231ba79
6d44b45ad9263ecd76df7494849b3eb8e64ba1bb
/knn.py
fcce61815d4ee38993c113ffb79debf543f40d61
[]
no_license
Hepic/Data-Mining-2
404a7868138e361d40fa6e33d41e0788c0da9ce8
286140bf167352d9d8c03748dce6f693ba8f819d
refs/heads/master
2020-03-17T03:07:20.639698
2018-06-02T14:21:17
2018-06-02T14:21:17
133,220,936
0
0
null
null
null
null
UTF-8
Python
false
false
1,081
py
knn.py
from collections import Counter from sklearn.base import BaseEstimator class KNN(BaseEstimator): def __init__(self, K, distFunc): self.data = [] self.K = K self.distFunc = distFunc def fit(self, data, ids): self.data = [] self.data.extend(zip(data, ids)) ...
f7db03139ad00acdad17a10863ef1ae580209f27
e43ff8f429a6938a4f16edc4b2c94976acbff157
/ABC/ABC 205/d.py
a30e4863d53cfeaa20aa200cbd31bc23e1a702e3
[]
no_license
Soule50431/AtCoder
4fcd6ab6b771d55c90dc62aedd75eb81fd067466
118ac5d03630ce143fb50153402eee38e988ae0c
refs/heads/master
2023-06-18T13:07:13.843361
2021-07-14T01:56:20
2021-07-14T01:56:20
357,827,698
0
0
null
null
null
null
UTF-8
Python
false
false
244
py
d.py
from bisect import bisect_left n, q = map(int, input().split()) a = list(map(int, input().split())) num_list = [(a[i]-1) - i for i in range(n)] # print(num_list) for i in range(q): k = int(input()) print(bisect_left(num_list, k) + k)
bd1f15c73d5341516ecca51adb2149ecaf2883d4
549fb8ccabefe4bdb1084793a753567dd118103c
/ProcessedPolygonsDirClass.py
24c6fe9b45c12d21b312836fc7a3fa73835f5e09
[]
no_license
jpps2408/ProjetoCMLisboa
db7226d2a8f1cd652b84f6ee3d6f93ea8a6a7895
98125355fcefb6c8c47b7ba1559115b2cecbdffe
refs/heads/master
2022-09-16T20:00:50.016591
2020-05-28T17:21:09
2020-05-28T17:21:09
251,608,640
0
0
null
null
null
null
UTF-8
Python
false
false
1,607
py
ProcessedPolygonsDirClass.py
import os from DictionaryInstantiator import * from ShiftDirClass import * import functools #processedpolygons class ProcessedPolygonsDir(object): def __init__(self, processedpolygonsdirectory, *args, **kwargs): self.processedpolygonsdirectory = os.path.abspath(processedpolygonsdirectory) se...
c8771fdfcf2ef20e3fe574311ffce79e048d9c89
62226afe584a0d7f8d52fc38ca416b19ffafcb7a
/hwtLib/mem/cam_test.py
2404cf1e23c092ccfc9f9272fd7f92d39db2b19c
[ "MIT" ]
permissive
Nic30/hwtLib
d08a08bdd0bf764971c4aa319ff03d4df8778395
4c1d54c7b15929032ad2ba984bf48b45f3549c49
refs/heads/master
2023-05-25T16:57:25.232026
2023-05-12T20:39:01
2023-05-12T20:39:01
63,018,738
36
8
MIT
2021-04-06T17:56:14
2016-07-10T21:13:00
Python
UTF-8
Python
false
false
1,089
py
cam_test.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import unittest from hwt.hdl.constants import NOP from hwt.simulator.simTestCase import SimTestCase from hwtLib.mem.cam import Cam from hwtSimApi.constants import CLK_PERIOD class CamTC(SimTestCase): @classmethod def setUpClass(cls): cls.u = Cam() ...
e463e1faf2d6596f7c697d7c6096504b9ba365c4
d0a8b4de782410e93ff5eda6ff95bab4da4a3ee4
/thenewboston_node/business_logic/tests/factories.py
5074a752c466b78fc42242c216d95c3b9a5b06b1
[ "MIT" ]
permissive
Devcentralized/thenewboston-node
4a8a0ee56e35d3bbd1fbdb088e2642dbee1355a9
3fbd0fc36c4f0eabaa8267f2a0be2fd717f133d1
refs/heads/master
2023-05-27T20:06:16.701326
2021-06-14T13:07:06
2021-06-14T13:07:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,279
py
factories.py
from datetime import datetime from thenewboston_node.business_logic.models import ( CoinTransferSignedChangeRequest, CoinTransferSignedChangeRequestMessage, CoinTransferTransaction ) from thenewboston_node.business_logic.models.account_state import AccountState from thenewboston_node.business_logic.models.block im...
a9745f513461927e416f915592ec78858be63441
bae75bf1de75fb1b76e19b0d32c778e566de570a
/smodels-database/13TeV/CMS/CMS-SUS-17-006/validation/T5HH_2EqMassAx_EqMassBx-50_EqMassC1.0.py
3d370f34017fe99e6c10323dfaf8f609ee99067f
[]
no_license
andlessa/RDM
78ae5cbadda1875c24e1bb726096b05c61627249
ac6b242871894fee492e089d378806c2c2e7aad8
refs/heads/master
2023-08-16T00:47:14.415434
2021-09-21T20:54:25
2021-09-21T20:54:25
228,639,778
0
0
null
null
null
null
UTF-8
Python
false
false
15,822
py
T5HH_2EqMassAx_EqMassBx-50_EqMassC1.0.py
validationData = [{'slhafile': 'T5HH_1000_950_1_1000_950_1.slha', 'axes': {'x': 1000.0}, 't': 0.2079949780796351, 'signal': 331.336054, 'UL': 3.1944999999999997, 'condition': 0.0, 'dataset': None, 'eUL': 3.3365, 'kfactor': 1.0}, {'slhafile': 'T5HH_1025_975_1_1025_975_1.slha', 'axes': {'x': 1025.0}, 't': 0.2079949780796...
4758d590b5d959681de62b518ecdfccd432b2ae5
ef7eabdd5f9573050ef11d8c68055ab6cdb5da44
/topCoder/srms/500s/srm528/div2/min_cost_palindrome.py
aa993eb5ec354648f8668cba20047bcdbbb19d78
[ "WTFPL" ]
permissive
gauravsingh58/algo
cdbf68e28019ba7c3e4832e373d32c71902c9c0d
397859a53429e7a585e5f6964ad24146c6261326
refs/heads/master
2022-12-28T01:08:32.333111
2020-09-30T19:37:53
2020-09-30T19:37:53
300,037,652
1
1
WTFPL
2020-10-15T09:26:32
2020-09-30T19:29:29
Java
UTF-8
Python
false
false
435
py
min_cost_palindrome.py
class MinCostPalindrome: def getMinimum(self, s, oCost, xCost): c = 0 for i in xrange(len(s)/2): e = ''.join(sorted(s[i] + s[-i-1])) print e if e == '?o': c += oCost elif e == '?x': c += xCost elif e == '??':...
65ea498288a3ae98860a5afa52d72ef4cce52295
8353ae38d193aa6e33486df29474990346f36c69
/gleam_scripts/phase1/queue/clean_array_casa.template
0a53b76c89fdfc1580f73a9851c4a09eb8f0b35b
[]
no_license
lao19881213/mwa_gleam_scripts
2e8176d5258c740f30b4b440e70773a3774efccd
c90138823bb310418471f859baf9a0d4ed9125eb
refs/heads/master
2020-04-11T01:26:31.890643
2018-08-21T07:12:18
2018-08-21T07:12:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,372
template
clean_array_casa.template
#!/usr/bin/python # CASA template to clean the data # Exports with PV keywords # Also adds the delays to the fits file import re, os, pyfits from math import * from subprocess import call from casa_fixhdr import casa_fixhdr from add_delays import add_delays from add_weighting import add_weighting vis='OBSNUM.ms' root...
db28e9bfb2fc98e059926c02bf2d689be789ef49
3166f93aa5a5082af4bc7040a2920ae96cf1face
/PlayFair_cipher.py
12b2593aea1bcddb87bc79660e330f14adb26195
[]
no_license
ahmadmostafa10495/Security
323abead261d360edca16fab533be87b62d2d747
0aec0237d14fc432990f1710610fb84b08679409
refs/heads/master
2020-04-14T06:59:41.296931
2018-12-31T22:34:43
2018-12-31T22:34:43
163,700,942
0
0
null
null
null
null
UTF-8
Python
false
false
3,232
py
PlayFair_cipher.py
alphabet = "ABCDEFGHIKLMNOPQRSTUVWXYZ" #no j # Initialize a 5 by 5 table of stars table = [] def print_table(): for row in range(5): for col in range(5): print(table[row][col],end="") print("") def clear_table(): global table table = [] for row in range(5): table....
443ef1bdd23948668f0c0fd514c3d3b8d1e66543
cdabdd9f4a4f6135af292c45642ab93cf51ab5c5
/Hill Cipher/HILL_CIPHER_ENCRYPTION.py
05a0d24ccc3c9b0134f52fda4e7f044be5036adf
[ "MIT" ]
permissive
AshwinBalaji52/Information-Security
70e160f9f50523b9875ffbe03655b41ea57bafdd
a0404f0835169f3496f0b8be4ea20f953503b0a0
refs/heads/main
2023-06-03T01:09:01.658066
2021-06-27T17:26:40
2021-06-27T17:26:40
328,220,644
0
0
null
null
null
null
UTF-8
Python
false
false
3,533
py
HILL_CIPHER_ENCRYPTION.py
# -*- coding: utf-8 -*- """ Created on Mon Jan 11 23:54:05 2021 @author: Ashwin Balaji """ import numpy as np import string as st import time as tm print("HILL CIPHER: ENCRYPTION") key_list = [] keycode_list = [] key_matrix = [] input_matrix = [] input_list = [] inputcode_list = [] split_matrix = [...
e1f85b05afe5ff69243c617133e716d9c1899cbe
80cbd9ec76a9055bf38c27026328c420138ae9fa
/pliki/main.py
ec5aa3db66578ebb4e7a43f14e6d948c070afb86
[]
no_license
Quarant/pythong
b9e8db845638c5a8313512f6061f33948f63e4af
bde7d6e373e51a13b25b4c8688666e40387b7262
refs/heads/master
2020-09-07T04:28:01.514523
2019-11-24T15:58:05
2019-11-24T15:58:05
220,655,266
0
0
null
null
null
null
UTF-8
Python
false
false
258
py
main.py
fd = open("C:/Users/Uczeń/Desktop/git/pythong/pliki/iwokacja.txt","r") lines = fd.readlines() fd.close() nn=[] for i in lines: nn.append(i.replace("o","X")) fd = open("C:/Users/Uczeń/Desktop/git/pythong/pliki/new.txt","w") fd.writelines(nn) fd.close()
4704ad4f3c50b1e70034dfdd9c7352408ae4652d
ebe0e39ec6a9ebb0bda782560ee7780c56699d5c
/layout.py
9c12d36bed1eb5345d2ef00196331ac01cdbf02d
[]
no_license
kakaacac/HubaoTestToolkit
28cee3d18ce7350fd91cc934f7f12bd2595c7177
1358705547c51af1193c7d488393355e9943931b
refs/heads/master
2020-07-18T02:42:55.547492
2016-09-01T02:01:12
2016-09-01T02:01:12
66,363,354
0
0
null
null
null
null
UTF-8
Python
false
false
10,731
py
layout.py
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'layout.ui' # # Created by: PyQt4 UI code generator 4.11.4 # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore, QtGui try: _fromUtf8 = QtCore.QString.fromUtf8 except AttributeError: def _fromUtf8(s): ...
8f6ca4f480c03124b6852c5cbf8a87b18a87342e
b5bc00ce5bddfe2e272c9ac6fce685e177737f7c
/C3_13.py
fa43b27d53ed08ec8e40b7f4181d410e38efa7cb
[]
no_license
Anson008/Python_Data_Visualization
b0e65f8c4d182abbc6beb828c96abd7cb2d55214
081a950f8a6a6c1e586a2ea90b3822190702b8a5
refs/heads/master
2020-04-28T18:31:11.294849
2019-03-13T18:57:31
2019-03-13T18:57:31
175,481,400
0
0
null
null
null
null
UTF-8
Python
false
false
534
py
C3_13.py
# Drawing scatter plots with colored markers import matplotlib.pyplot as plt import numpy as np x = np.random.randn(1000) y1 = np.random.randn(len(x)) y2 = 1.2 + np.exp(x) ax1 = plt.subplot(121) plt.scatter(x, y1, color='indigo', alpha=0.3, edgecolors='white', label='No correl') plt.xlabel("No correlation") plt.grid...
bbbf9542f2f4929526b372597c8488422b3a2b5d
75830036941d975f1a1efd73d5b5e762884ed04c
/1-008.py
138e29e5774bc7c1d43d2c3f5d57b3b682f43bcb
[]
no_license
kszabova/dynamic-programming
6daba286ab8bbb21a618f6a96912758cb4aa0f70
261d5661e2c80606f526ea9ca8455de2300c4109
refs/heads/master
2020-05-18T09:48:55.843789
2019-05-02T21:17:27
2019-05-02T21:17:27
184,336,677
0
0
null
null
null
null
UTF-8
Python
false
false
487
py
1-008.py
A = [] while True: x = input() if x: A.append([ int(i) for i in x.split()]) else: break n = len(A[0]) m = len(A) aux = [ A[i][n-1] for i in range(m) ] for col in range(n - 2, -1, -1): new_aux = [] new_aux.append(aux[1] + A[0][col]) for row in range(1, m - 1): new_aux.app...
3ee9aff4d9896396652abc2869890ce6b6fd25a2
3f0a405bbaa185181a76a9373ce0fbf4bef316cd
/student.py
c611aa69759fc5d7782d1944b136c470ef1c1a61
[]
no_license
Mathanrajseenuvasan/stu_details_flask_postman
9b05b6a12b32ffdba04c20f6f7ad49cc49b47c0a
d0033c0e461ee28cdca36851e3db29670044b166
refs/heads/master
2020-07-13T00:59:01.899724
2019-08-28T14:37:57
2019-08-28T14:37:57
204,953,485
0
0
null
null
null
null
UTF-8
Python
false
false
1,031
py
student.py
from flask import Flask, request, json, jsonify from flask.views import MethodView app = Flask(__name__) array = [] dictionary ={} class Student(MethodView): def get(self): return jsonify(array) # json format for post or put(update) # {"id":" ","name":" "} def post(self)...
80c4b756e50e716f62522f51897de3f69dc97ac9
30e4b80fec326e589eab63f76e66427fc2032407
/CalcMatchDataList.py
7b7043d8054b4037698712322d978e0f96ae8a48
[]
no_license
azukizuke/test-d2otoku
101cd1dc37687635c5ddb19fdb36ce5e8ec67e40
5be223553ce3f69d7f06748f7edb9f1d6f9eed73
refs/heads/master
2021-01-25T09:14:52.423241
2017-06-09T01:52:55
2017-06-09T01:52:55
93,804,424
0
0
null
null
null
null
UTF-8
Python
false
false
287
py
CalcMatchDataList.py
import urlLoad import fileOut import fileIn import const import MakeMatchData def getMatchDataList(filename): matchDataList=[] MatchIdList = fileIn.readMatchList(filename) for matchID in MatchIdList: matchDataList.append(MakeMatchData.getMatchData(matchID)) return matchDataList
8038daccf5813a3649fb8bb9ebdacf4ca29f79f7
c1a526662031cc5623db5593c210cc44708151c4
/Building Models/test_jitter.py
d33edf209546a09fa0511ef882c98ed09bc5046d
[]
no_license
zc-zhai/Forecasting-Model-of-Housing-Price-in-Shanghai
5286d0621a8f1e60a0ae473c6f09e8ff358b42fb
412e9cdb54cc0937e85ed64a6a5c68fdb4868f59
refs/heads/master
2020-03-22T15:54:19.130644
2018-07-13T03:11:29
2018-07-13T03:11:29
140,288,266
2
1
null
null
null
null
UTF-8
Python
false
false
680
py
test_jitter.py
#!/usr/bin/env python # -*- coding: utf-8 -*- import numpy as np from sklearn.neural_network import MLPRegressor from preprocessing import preprocessing,my_shuffle filename="data.csv" x,y = preprocessing(filename=filename) for i in range(10): X_train,Y_train,X_test,Y_test=my_shuffle(x,y,train_set_rate=0.9) reg =...
96e5146eab7a62927f84eb1bf6fba2147258d970
050e9da8733eebb8959592808437fe7d419115f7
/2d-grid-graph-frames.py
7a29d516a6798789c4b4511342f4083867a7c4c0
[]
no_license
nav610/cGAS-Binding
32fa48d36b4f9e4fa177f7339f1341c9eaf12e7d
0ef5668c7044eacb51ce3ca8960ea22a8c9de5a1
refs/heads/master
2020-10-02T04:16:15.168429
2020-05-01T20:23:37
2020-05-01T20:23:37
227,699,595
1
0
null
null
null
null
UTF-8
Python
false
false
3,029
py
2d-grid-graph-frames.py
import argparse import numpy as np import matplotlib.pyplot as plt import matplotlib import seaborn as sns import matplotlib.ticker as ticker import pandas as pd from mpl_toolkits.mplot3d import Axes3D from matplotlib.ticker import FormatStrFormatter parser=argparse.ArgumentParser() parser.add_argument("-grid","--grid"...
86f0f1769648a74d535868a96e72851774c8bf55
511e90bca22c6f5ad262f613eb3be5d95ec2a252
/juriscraper/oral_args/united_states/state/ill.py
22835427de5f81120e0cfe21f044b35efe02aac2
[ "BSD-3-Clause", "LicenseRef-scancode-generic-cla", "LicenseRef-scancode-unknown-license-reference", "BSD-2-Clause" ]
permissive
rlfordon/juriscraper
4b2c28a33e7db02177f06228fd60b8db0670ea24
7588e1527618a70fa471bfa4c3e10ac84e0e0858
refs/heads/master
2020-04-08T12:50:35.983081
2016-06-24T19:09:49
2016-06-24T19:09:49
61,344,768
0
0
null
2016-06-17T04:07:46
2016-06-17T04:07:46
null
UTF-8
Python
false
false
1,674
py
ill.py
''' CourtID: ill Court Short Name: Ill. Author: Rebecca Fordon Reviewer: History: * 2016-06-22: Created by Rebecca Fordon ''' from datetime import datetime import re from juriscraper.OralArgumentSite import OralArgumentSite class Site(OralArgumentSite): def __init__(self, *args, **kwargs): super(Site, s...
5b2a19f2a92bd802e53ad58865087bed08226c24
d972aa228eaea8c2ec938f6402c8a4238f846e5d
/envs/MfccFrozenlake.py
3bab59d0d34dda75c5f5d3f994991aaf8798ed96
[]
no_license
austospumanto/ateam-project
33243df80d045fde2895d2917b123f204d04214c
2a1e13f462e904750da09dd54fc1e3b3248cd52e
refs/heads/master
2020-12-30T13:27:50.127193
2017-06-10T05:13:57
2017-06-10T05:13:57
91,215,463
5
2
null
2017-06-01T01:36:13
2017-05-14T02:42:32
Python
UTF-8
Python
false
false
2,570
py
MfccFrozenlake.py
import gym from data.tidigits import tidigits_db from data.DigitsSample import DigitsSampleCollection, SynthesizedDigitsSampleCollection import logging import vlc logger = logging.getLogger(__name__) class MfccFrozenlake(gym.Wrapper): """ NOTE: Wrap this env around a raw FrozenLake-v0 type env """ de...
8457b47af0fde90fc62b224a377503cb62bba0dc
6714bd49adb27e85231fc10d721648c864e72fcd
/backend/memberships/models.py
868c9c75d65a6d576a84dd0a7a717825f89e1e77
[]
no_license
paveu/instagram-drf-python-social_auth-react
d5001949c398ecda7149398c5f74bde808e5f0e3
2032178639fdfd7c9939b82f0250cff1624d94e2
refs/heads/master
2022-03-26T06:40:29.449773
2019-05-30T07:28:39
2019-05-30T07:28:39
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,237
py
models.py
from django.conf import settings from django.db import models from datetime import datetime import stripe class Membership(models.Model): MEMBERSHIP_CHOICES = ( ('enterprise', 'Enterprise'), ('professional', 'Professional'), ('individual', 'Individual'), ('all-access', 'All Access'...
7137ccd848026c9db6a168a5865313aa2ecb81f2
3e1fcd73009852915d74b162ef91a631dce7986a
/source/__init__.py
3de0dab4b2f16e0b49816cf30f86da5bdd87b88f
[]
no_license
buyongji/wallet
d6e541c5e1dece23e8a7438633d3e8b36fc63012
4ddca9c77c2361a8b9f0a708353809449094137d
refs/heads/master
2020-05-30T21:34:59.751433
2019-02-19T06:43:32
2019-02-19T06:43:32
189,973,869
1
0
null
2019-06-03T09:20:51
2019-06-03T09:20:50
null
UTF-8
Python
false
false
150
py
__init__.py
import os from source.config.wallet_config import WalletConfig config = WalletConfig(os.environ["coin_type"], os.environ.get("coin_category", None))
50170c95b8022bf83851c05d089dfb8ee8bec0fa
76d2fdbde44f96fd70600189198a8a4e51aec6f9
/binary_tree.py
ecd8a96c9fcf6403acf4702021ed0f8420c52d67
[]
no_license
jkujawski321/py_examples
34fde9aa3b655faf62e56629d493c845fa081deb
76d2b7cf637f7b794b4d32c01a866d9611c8b79c
refs/heads/master
2023-07-12T17:09:08.567977
2019-03-25T18:41:52
2019-03-25T18:41:52
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,669
py
binary_tree.py
class BinaryTree(object): def __init__(self,rootObj): self.key = rootObj self.leftchild = None self.rightchild = None def getRootVal(self): return self.key def setRootVal(self, obj): self.key = obj def getLeftChild(self): return self.leftchild def ...
f23f1ad0262c6e75f07091bb1600138a51e74e02
c22cfdaa470ba4e68ee7f0ab3e5914d1e89e16e9
/LeNet4.py
e2919c6ff9762cff76ea5b9481a486d7ed078039
[ "MIT" ]
permissive
gregtyminski/Traffic-Sign-Classifier
cb2ea23af911470ef3f84f63eeeccbe70395d099
7e05817d49702ffb83882e9dd13e1d1ff90171d4
refs/heads/master
2020-08-29T19:40:49.511303
2019-11-16T18:32:20
2019-11-16T18:32:20
218,151,225
1
0
null
null
null
null
UTF-8
Python
false
false
9,178
py
LeNet4.py
import tensorflow as tf import neptune from tensorflow.contrib.layers import flatten from traffic_sign_dataset import TrafficData import tensorflow.contrib.slim as slim from sklearn.utils import shuffle import numpy as np class LeNet4(): def __repr__(self): return 'LeNet4()' def __init__(self, output...
606c972d80c2fcfd8be0e02db2737a73c70aa0ee
fdd8a801530c8864bd699d22d8a935ec9fc94452
/workspace/src/barc/src/controller_yaw.py
6a1190c916ab86139be4025b65cd082688e4aa4c
[ "MIT" ]
permissive
kangaboxer/barc
76468b5314c41eadb70e74ce1511af34873ba4d5
f385153e03b68e2f4998cf026cf70e1e8e284fc1
refs/heads/master
2021-01-22T05:47:32.499524
2016-07-20T21:59:05
2016-07-20T21:59:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,686
py
controller_yaw.py
#!/usr/bin/env python # --------------------------------------------------------------------------- # Licensing Information: You are free to use or extend these projects for # education or reserach purposes provided that (1) you retain this notice # and (2) you provide clear attribution to UC Berkeley, including a lin...
87703cc522f90cabaaba412bcb5c073e05d53d75
b652b433012b70232b6e15a8d57f88c69eb1644b
/reversing/flagcheck/src/solve.py
20a9ab4818a6a25c5e8e77a65bf2aa2fe602314a
[]
no_license
GtHoo/tg18hack
db7c7a8460df8675d2a56070e9cf27443f298a9f
a69169fc718bc9ac9d38fcf325801d27d840b147
refs/heads/master
2020-04-22T06:15:15.208284
2018-04-07T15:06:08
2018-04-07T15:06:08
170,184,350
1
0
null
2019-02-11T19:01:10
2019-02-11T19:01:10
null
UTF-8
Python
false
false
1,311
py
solve.py
import sys import string from subprocess import Popen, PIPE, STDOUT pindir = "./pin-3.5-97503-gac534ca30-gcc-linux/" pin = pindir + "pin" inscount = pindir + "source/tools/ManualExamples/obj-intel64/inscount0.so" prog = "./" + sys.argv[1] def get_count(try_flag): cmd = [pin, "-injection", "child", "-t", inscount ...
0e5164c8ca796acdda1f69ee16409ed04129072f
c6d852e5842cf6f74123445d20ff03876377ae26
/lemon/python22/lemon_11_190909_类和对象1/优秀作业/0910_类和对象_22213.py
c18ec0a3283c02614f1c4edb66b4e23c03daec5f
[]
no_license
songyongzhuang/PythonCode_office
0b3d35ca5d58bc305ae90fea8b1e8c7214619979
cfadd3132c2c7c518c784589e0dab6510a662a6c
refs/heads/master
2023-02-13T14:06:10.610935
2021-01-14T09:11:32
2021-01-14T09:11:32
327,183,429
0
0
null
null
null
null
UTF-8
Python
false
false
1,404
py
0910_类和对象_22213.py
#1. '''class phone(): def __init__(self,pinpai,xinghao,call,massage): self.pinpai=pinpai self.xinghao=xinghao self.call=call self.massage=massage def Pinpai(self): print('品牌是:%s,型号是:%s'%(self.pinpai,self.xinghao)) def gongneng(self): print('打电话:%s,发信息:%s'%(sel...
aa4480e8417ba6b4d7994085912e332339c4ad1f
c35d764ccf32644fa1da5e05521f1462fa05a85b
/My.OntoTools/NLP/html_preproc.py
e1bd02d814b7e4237a45fe8eec44a8d2da087784
[]
no_license
DevInCube/OntoTools
bfc14185faf9b1b458a2cdd353afb09a774d41a5
a34d69381a0090c3e4b3c36e4fcf3ab281ec5fd1
refs/heads/master
2021-01-01T19:02:26.607939
2015-05-07T13:30:11
2015-05-07T13:30:11
31,717,356
1
0
null
null
null
null
UTF-8
Python
false
false
1,022
py
html_preproc.py
#@todo create link parser and filter for html docs general and for wikipedia in one case from bs4 import BeautifulSoup import re from urllib.request import urlopen def test(): html_page = urlopen("http://en.wikipedia.org/wiki/Solar_System") soup = BeautifulSoup(html_page) bodyName = 'mw-content-text' ...
7d1a6fb633c3f577910154ca3e64336fca2a1e76
d29df74b746bf746212c73a3472e46078e67ba90
/models/legacy/DNN.py
3ea78b1ac528a25573731473e9f1c12276ea7d68
[]
no_license
ChangdeDu/generativeSSL
f30965cde14e1df0ca768ccf43046cab46d9cafd
9986a48ed577d184dbfce35f73acb1137fc56bb6
refs/heads/master
2021-04-26T22:25:16.985847
2018-01-08T08:40:12
2018-01-08T08:40:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,797
py
DNN.py
from __future__ import absolute_import from __future__ import division from __future__ import print_function import numpy as np import tensorflow as tf from tensorflow.contrib.tensorboard.plugins import projector import pdb, os ### Standard feedforward DNN for comparison ### class DNN: """ Class defining our ...
ca61a6c9e1ef5e8c86843c53064e68ee337688a5
fcc9c7d713179694d6e19c98693185789a1d90b9
/CMGTools/VVResonances/python/samples/samples_13TeV_Spring15.py
0468f506e63ebe366f53a03fc0497595e92247d1
[]
no_license
hengne/cmg-cmssw
aedada0ce15562380d42dcc5c241d67fb8c65965
03946e4ce821b6186c8f881e2bbe4b2a30917b2d
refs/heads/CMGTools-from-CMSSW_7_4_7
2020-04-05T23:12:59.317945
2015-07-31T08:55:33
2015-07-31T08:55:33
40,015,437
0
1
null
2015-07-31T16:55:04
2015-07-31T16:55:04
null
UTF-8
Python
false
false
2,136
py
samples_13TeV_Spring15.py
import PhysicsTools.HeppyCore.framework.config as cfg import os from CMGTools.TTHAnalysis.samples.ComponentCreator import ComponentCreator kreator = ComponentCreator() ################## Triggers #####COMPONENT CREATOR RSGravToWWToLNQQ_2000 = kreator.makeMCComponent("RSGravToWWToLNQQ_2000", "/RSGravToWWToLNQQ_kM...
c3e65ddcd92b15d83fead496f75e7e97ef376e29
a3150325bdac16d1b14af78b6df8c76951702591
/merkle_set.py
af3212a6451c6c587524b31cef79ab2eeb570391
[ "MIT" ]
permissive
kanzure/MerkleSet
a540b7c3a8e08d00ad2cbd724a858e48e2a050f7
f9afb917ebb77524b6310c0a0f0f437a84bbd187
refs/heads/master
2021-01-16T21:56:50.796855
2016-01-01T23:59:24
2016-01-01T23:59:24
48,893,449
0
0
null
2016-01-02T00:08:58
2016-01-02T00:08:57
null
UTF-8
Python
false
false
25,136
py
merkle_set.py
from hashlib import sha256 def hasher(mystr): return sha256(mystr).digest() """ memory: [block] block: empty or branch or leaf empty: next 4 # 0 for end of the line branch: active_child 4 balanced[size] # active_child 0 when there a...
c5cc7868d4de2606c32c0f400ddc5c98ff489cd4
a283b1df24d41ab8e989377013416654630cebae
/basic/bayes_test/pickle_test.py
935e84f5d1bff64733cfd9e17038c4d7adfe6bfe
[]
no_license
xutu10/python
8e057becab9bebdb344392e566d397dcc0a36038
0f9b96e9526a2a73b09bae71577c957f9c114b60
refs/heads/master
2021-01-12T08:25:35.605284
2017-01-20T19:30:00
2017-01-20T19:30:00
76,574,199
0
0
null
null
null
null
UTF-8
Python
false
false
151
py
pickle_test.py
import dic_class import pickle if __name__ == "__main__": first_pick = dic_class.dic() pickle.dump(first_pick,file("dict.pickle","wb") )
14fec4b68bda0ac8657792baafabb9b18ea77aac
0fafa6b8bb10145f910cc32750fb16a1397c008c
/stock/migrations/0016_auto_20190626_2004.py
9a44e2430250e40c7134380f32ba18b0516a52df
[]
no_license
gugajung/stockwatch
2a652e9f263b710d32a92db32cf0821676c61b1e
0efed23ba6c6fabd323ccc27bdb75bb434be8411
refs/heads/master
2022-01-13T18:44:50.621393
2019-07-05T22:50:23
2019-07-05T22:50:23
295,495,176
1
0
null
2020-09-14T17:52:16
2020-09-14T17:52:15
null
UTF-8
Python
false
false
337
py
0016_auto_20190626_2004.py
# Generated by Django 2.2 on 2019-06-26 20:04 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('stock', '0015_auto_20190626_1946'), ] operations = [ migrations.RenameModel( old_name='TickerPrices', new_name='TickerPrice', ...
925983472a1f8048b7e085c2b0564defae4d321e
e459a9608225b81bdb0a5b85cd19b7bd0f6df38e
/test_frame/other_tests/test_zeromq/test_zeromq_server.py
32b57fe407b0a96b601d4168bfed970d09e7ef23
[ "Apache-2.0" ]
permissive
ydf0509/distributed_framework
722be4957df97bfece9ca5b43d81b4e3bb09ed8e
1b1f32ed928fa44e0fb13fc738de90cb4339f408
refs/heads/master
2022-05-20T10:19:05.727086
2022-03-31T11:16:22
2022-03-31T11:16:22
201,225,545
359
90
Apache-2.0
2021-05-08T16:50:53
2019-08-08T09:30:13
Python
UTF-8
Python
false
false
219
py
test_zeromq_server.py
import zmq context = zmq.Context() socket = context.socket(zmq.REP) socket.connect("tcp://localhost:5560") while True: message = socket.recv() print("Received request: %s" % message) socket.send(b"World")
136778bbd23391568c675b0f5d10d94e7186d012
5d7a563dd6c0e141f5a037694906f5096abfd9ac
/Old Jessica Archives/examples/waypoint.py
fca0a32c5a5508f61a565c649b3965ad2f65109a
[ "MIT" ]
permissive
BruttherJOE/JESSICA-SOAR
7b6ad7682253841a0f7a77760a86e3f33a503aea
282db8570535d7605dc9b017b5f364dc3c24b5df
refs/heads/master
2021-08-07T15:54:50.806175
2020-09-22T14:37:56
2020-09-22T14:37:56
221,283,916
2
5
MIT
2020-04-01T13:46:28
2019-11-12T18:23:30
Python
UTF-8
Python
false
false
975
py
waypoint.py
#!/usr/bin/env python from __future__ import print_function import rospy import moveit_commander import moveit_msgs.msg import geometry_msgs.msg from niryo_one_python_api.niryo_one_api import * rospy.init_node('niryo') group_name = 'arm' group = moveit_commander.MoveGroupCommander(group_name) n = NiryoOne() waypoi...
5d9c8e235385ff53c7510994826ff3a04e4a5888
7d04d0a68cab1418116f0a54d53b2ebd6018a08c
/Entity_Posing/001-rnn+lstm+crf.py
40d4198263ae1aead67e088f2d4a2e67ca562506
[]
no_license
ZhangWen0629/NLP_tensorflow_project
9cd756334c25f0b5dd40570cc1244afb131c2b66
2d28301ed66405719bb565f1fc66f13cb63f90c7
refs/heads/master
2023-03-20T16:13:26.482669
2020-10-15T08:59:53
2020-10-15T08:59:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
11,032
py
001-rnn+lstm+crf.py
""" @file : 001-rnn+lstm+crf.py @author: xiaolu @time : 2019-09-06 """ import re import numpy as np import tensorflow as tf from sklearn.metrics import classification_report class Model: def __init__(self, dim_word, dim_char, dropout, learning_rate, hidden_size_char, hidden_size_word, num_l...
54e04d740ef46fca04cf4169d2e7c05083414bd8
e3cc620c95b82213ead5a76d88c7895f282a8bbf
/Ludum Dare 2000.py
717babf2bec974a890f22afa238d596796dd74f6
[]
no_license
heros1sport/ALLmyPythonCodes
d320fe96fa6e62a578b3cf929ce5730f1337534e
551239a502cd37b9b7dcc6fb92cefcf521025280
refs/heads/main
2023-01-08T13:49:45.342488
2020-11-15T09:28:40
2020-11-15T09:28:40
312,996,588
0
0
null
null
null
null
UTF-8
Python
false
false
7,083
py
Ludum Dare 2000.py
import random import math import time import pygame pygame.init() scr = pygame.display.set_mode((700,700)) enemies = [] #music = pygame.mixer.music.load('ENERGETIC CHIPTUNE Thermal - Evan King.mp3') #pygame.mixer.music.play(-1) hit = [] class Player: def __init__(self): self.x = 275 sel...
0a7ffc027511d5fbec0076f6b25a6e3bc3dfdd9b
b0856a2d66cc4c71705b8c16c169848070294cf6
/SearchInsertPosition.py
7e835e76443cea89bf2693e0db6444edfde5fdc3
[]
no_license
jfriend08/LeetCode
9e378ff015edc3102a4785b0832cf0eeb09f5fc2
f76d3cf2e7fd91767f80bd60eed080a7bad06e62
refs/heads/master
2021-01-21T19:28:25.354537
2016-01-15T04:53:11
2016-01-15T04:53:11
28,518,328
0
0
null
null
null
null
UTF-8
Python
false
false
850
py
SearchInsertPosition.py
''' Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in order. You may assume no duplicates in the array. Here are few examples. [1,3,5,6], 5 -> 2 [1,3,5,6], 2 -> 1 [1,3,5,6], 7 -> 4 [1,3,5,6], 0 -> 0 ''' class Solution(o...
2cbce618d1ec617d1c7dc0e9792b6a49361ec5a4
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_340/ch165_2020_06_20_23_48_12_067262.py
f5d63f8242cda7966c7482f6ee40cb927bb86604
[]
no_license
gabriellaec/desoft-analise-exercicios
b77c6999424c5ce7e44086a12589a0ad43d6adca
01940ab0897aa6005764fc220b900e4d6161d36b
refs/heads/main
2023-01-31T17:19:42.050628
2020-12-16T05:21:31
2020-12-16T05:21:31
306,735,108
0
0
null
null
null
null
UTF-8
Python
false
false
182
py
ch165_2020_06_20_23_48_12_067262.py
def mais_populoso(dic): p=0 sp=0 for t,i in dic.items(): for m in dic[t].values(): p+=m if p>sp: sp=p x=t return x
2092ead8b8f268a22711b8af8052241c1ac00c15
8850d7bd81a7620df9f92de3f132e1d9e3187ff3
/2-16.py
30558db48e922ad77006dde5cd920bd09a8a4878
[]
no_license
syr9711/homework
25c989cdd62dd11eabce2d85bb85d9089696d1fe
050e7dad14509a3ec7ea4928b37a7a8b15b1bee1
refs/heads/master
2020-03-24T16:27:21.438483
2018-07-30T04:33:49
2018-07-30T04:33:49
142,825,335
0
0
null
null
null
null
UTF-8
Python
false
false
270
py
2-16.py
wage=5 print("%d시간에 %d%s 벌었습니다." %(1, wage*1, "달러")) print("%d시간에 %d%s 벌었습니다." %(5, wage*5, "달러")) print("%d시간에 %.1f%s 벌었습니다" %(1,5710.8,"원")) print("%d시간에 %.1f%s 벌었습니다" %(5, 28554.0, "원"))
b5cbb73c152dd60e9063d5a19f6182e2264fec6d
6568d90f9022c1be2d882b6a54ca0431f5e2ba5f
/nlp_stack_parser.py
9d81d835391a4e37d14b6bb213d80dc36c7ebe0b
[]
no_license
Gaodo/NativeLeakProf
f263866abce6aa2ca0edcc6c2f0ff1c87b265306
51bfc7bad5bd9cd9ed9bb0d8653199656424c4fb
refs/heads/master
2023-02-13T20:44:21.807463
2021-01-12T10:08:24
2021-01-12T10:08:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,403
py
nlp_stack_parser.py
#!/usr/bin/python # coding=UTF-8 import sys import subprocess import os def printReportTail(reportHtmlFile): reportHtmlFile.write(""" </body> </html> """) def printReportHead(reportHtmlFile): reportHtmlFile.write("""<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" ...
805fc9a26650f85227d14da972311ffbd9dbd555
f9aed477f13722b4e502ea524c3dd949d131bb37
/Date.py
11717755e1e3787a9e5d0180b6fe4ad8ff11a4ba
[ "Unlicense" ]
permissive
Ellian-aragao/LifeconDocumentsOrganizer
1ddf3892a9908a92737ed0a5f7b5c89976a85061
b19b2011f605cf0487c6b1e664af451fa32fcaaf
refs/heads/master
2022-12-10T07:36:56.737087
2020-09-11T13:36:33
2020-09-11T13:36:33
274,573,815
0
0
null
null
null
null
UTF-8
Python
false
false
175
py
Date.py
class Date: def __init__(self, strDate): strDate = strDate.split('.') self.day = strDate[0] self.month = strDate[1] self.year = strDate[2]
a7218971b831e2cfda9a035eddb350ecf1cdf938
844f4f0b5463df65d780fe92c661573cff949191
/src/EMCFileCache.py
5321f90088257e11314ca20ebcbcb8e584f454a3
[]
no_license
betonme/e2openplugin-EnhancedMovieCenter
b1d17c9294809a3de2e253c5e814139ceac60905
c66e46834e7b49b518f06b7a6a247804ded1dd26
refs/heads/master
2023-06-23T22:27:43.037890
2023-06-11T19:17:31
2023-06-11T19:17:31
5,760,566
38
105
null
2023-02-15T09:12:24
2012-09-11T05:59:06
Python
UTF-8
Python
false
false
8,989
py
EMCFileCache.py
#!/usr/bin/python # encoding: utf-8 # # In case of reuse of this source code please do not remove this copyright. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the Licen...
038ccba05113fb7f2f589eaa7345df53cb59a5af
de04b721a4758ae6c157a120f225a835395b51cd
/main.py
cae62d2df6bdccb5f4c91e05c751cbc43fef29c5
[]
no_license
liu946/BiAffineSrl
5566e881db6f2aef6f08f3d5bebf8d265422d749
f0ba8cc905f550920d4c7c410cc4863137ff8688
refs/heads/master
2020-03-12T23:05:22.185593
2018-04-24T13:31:41
2018-04-24T13:31:41
130,859,163
0
0
null
null
null
null
UTF-8
Python
false
false
2,525
py
main.py
#!/usr/bin/env python # -*- coding: utf-8 -*- import sys import torch from torch import nn, autograd import config import time import copy import progressbar as pb from dataset import TrainDataSet from model import BiAffineSrlModel from fscore import FScore config.add_option('-m', '--mode', dest='mode', default='train...
b5180a2dbe1f12e1bbc92874c67ea99c9a84a9ed
59d629e8eabbcce5dda13642963651b2af348b91
/groessere_programme/beispiele/try_except_example.py
66978be29de86b58f90a598aa280094f1d958d06
[]
no_license
ahenze/python-fuer-einsteiger
a28bb7ccb076332651b688941c3947fee8fb2030
575902f428e451a96247a66072b09a8d9b2c575b
refs/heads/master
2021-01-16T05:33:14.851048
2020-02-25T12:33:37
2020-02-25T12:33:37
242,992,531
0
0
null
2020-02-25T12:18:41
2020-02-25T12:18:41
null
UTF-8
Python
false
false
326
py
try_except_example.py
# print all cards with even numbers. cards = ["2", "3", "4", "5", "6", "7", "8", "9", "10", "J", "Q", "K", "A"] for card in cards: try: number = int(card) if number % 2 == 0: # modulo operator print(card, "is an even card.") except ValueError: print (card, "can not be divi...
06dc2086d17846b5499f287f791500502be59758
a7a69fcb2c8c5de1ee71d62dfbf8fa34ae86d581
/utils/db_utils.py
7cf93f978ba26a9d49377c4e26aff8c906d61392
[]
no_license
rahul-wpm/rahul_helpdesk
9a33f1a20eefa2ec48dcf0f701cb6e62a1b49110
59d3970f060881b46332af9ed49e1c7c420e984a
refs/heads/master
2021-01-10T04:53:22.000366
2015-10-26T10:43:14
2015-10-26T10:43:14
44,562,237
0
0
null
null
null
null
UTF-8
Python
false
false
349
py
db_utils.py
__author__ = 'Rahul.R' import MySQLdb from MySQLdb.cursors import DictCursor def connect_db(): """ Connects to the :return: """ db = MySQLdb.connect(host="127.0.0.1", user="singlebox", passwd="global!23", db="test", cursorclass=MySQLdb.curs...
68ba84e73a26364900bbc36196651bd85fef7237
833b1077330aea9b9196d9945181f2f46ad39dcf
/Scripts/csiq.getScores.py
d53bd28bf86ca1f86e434af0f37aaf53ccffde60
[]
no_license
SmilingWolf/VQMTCrossVal
b86835539ed1a9163dd62cf5fa28d1a200ac0ac6
ab9d15b3c1201b51d86fa96e817c9bc890974eb9
refs/heads/master
2020-11-30T05:08:36.321090
2020-01-04T15:45:40
2020-01-04T15:45:40
230,310,905
4
2
null
null
null
null
UTF-8
Python
false
false
701
py
csiq.getScores.py
# http://vision.eng.shizuoka.ac.jp/mod/page/view.php?id=23 import os import pandas as pd df = pd.read_csv('csiq.DMOS.csv', decimal=',') df['DSSIM'] = 0 df['SSIMULACRA'] = 0 for i, dfRow in df.iterrows(): orig = 'src/%s.png' % (dfRow['image']) dist = '%s/%s.%s.%d.png' % (dfRow['dst_type'], dfRow['image...
87d568c71212cec26de41e736659e21e8612e299
09ac5476e94122bf8ccdb0b404175dff0820c8a7
/647 回文子串.py
922fe377f4186b37221f69ef70e1dc566f517106
[]
no_license
wxke/LeetCode-python
df27c456ad0c7042e3bfcf2a697e3958d3b85f1f
37a66e426e9c7e279928d2f6fcdecb9641f4121c
refs/heads/master
2020-04-29T14:03:22.554357
2020-03-10T12:38:24
2020-03-10T12:38:24
176,185,448
2
0
null
null
null
null
UTF-8
Python
false
false
432
py
647 回文子串.py
回文子串 class Solution: def countSubstrings(self, s: str) -> int: cont = 0 def dp(s,left,right,ans): while left >=0 and right < len(s) and s[left] == s[right]: ans += 1 left -= 1 right += 1 return ans for i in ran...
ba291ebe6a38523869a2fa6a95c51d7c42dcaec6
489f363c571ee3121922feebc8bf8e92e2179f9d
/game_database/forms.py
aa5aa89d87bbf888377d1d1c940a0900d2410b9c
[]
no_license
ryanchoe1205/wagering
4485c6fca5c7050139781193ec90c93b0094ae3c
6372d5c7ba79b6f6b2aa60a864955f56863ad86d
refs/heads/master
2021-01-16T18:12:14.342153
2013-08-28T13:19:48
2013-08-28T13:19:48
12,314,621
1
0
null
null
null
null
UTF-8
Python
false
false
1,419
py
forms.py
from django import forms from models import Game class ScheduleForm(forms.Form): """ A form used to validate inputs on requests that want to filter by schedule and game type. """ GAME_TYPES = ["MLB", "NBA", "NFL", "NHL", "UFC", "MLS"] MLB = forms.BooleanField(required=False) NBA = forms.BooleanField(required=F...
39d3baf12e5ddd672dd8cf195f6e05f433aff81a
6c56a451508920efae0580335068e356eb7e9282
/5kyu/lower_string.py
f0ae36d2093d9ee342424b85c3bf52a1c205c1ad
[]
no_license
supvolume/codewars_solution
928e74994aca8480e4c705bdf2988d322a3b24fc
f23855cf8873a0b558a2ae27097fcca86caecb70
refs/heads/master
2022-10-28T08:56:34.504627
2022-10-16T06:52:53
2022-10-16T06:52:53
169,083,586
0
0
null
null
null
null
UTF-8
Python
false
false
394
py
lower_string.py
""" solution for First non-repeating character challenge find first non-repeating character in string""" def first_non_repeating_letter(string): lower_string = [] for s in list(string): lower_string.append(s.lower()) not_repeat = '' for c in list(string): if lower_string.count(c.lower()...
8e2e137840c8c966807bab232aef8bd3498fee53
ec494cb645bfb5cef6dd79218c94e63c582f946b
/CameraDL/learning/pretrainconvnet.py
3e2508d9f4a39d8a636fa0eb7d5f5ffb14b9bba9
[]
no_license
dafrimer/AsYouWishDL
904a3b3ebc84a7815ced39efb5563e4869dca8ac
dc8a5189428aade4b9ea90bbdf76f23843cf4a25
refs/heads/master
2021-05-12T02:37:15.366893
2018-05-09T07:54:51
2018-05-09T07:54:51
117,591,397
0
0
null
null
null
null
UTF-8
Python
false
false
4,242
py
pretrainconvnet.py
""" RESOURCES https://github.com/fchollet/deep-learning-with-python-notebooks supplementary:L https://www.pyimagesearch.com/2017/12/11/image-classification-with-keras-and-deep-learning/ https://www.pyimagesearch.com/2017/12/18/keras-deep-learning-raspberry-pi/ """ base_dir = 'D:\Documents\PycharmProjects\AsYouWishDL\...
564b8020984faa86b45ad819e5a8a32f737648cd
5bb9cab554fb1470782fb6c0060038793a871993
/assignment5/hw5/learn_pcfg.py
8ab5c2bd903aeb98dff91c28188365341895ccc7
[]
no_license
InADyes/nlp
ddb0d4727db7f3a65a1621d659e7258e2a82a892
ffb8402c4568a3f880a7e4c227253f1f7fb54fe3
refs/heads/master
2020-06-27T13:12:12.333592
2017-06-08T05:30:15
2017-06-08T05:30:15
97,058,265
0
0
null
null
null
null
UTF-8
Python
false
false
1,362
py
learn_pcfg.py
import re,sys from tree import * from collections import defaultdict dictionary = defaultdict(lambda:defaultdict(lambda:float(0.))) # dictionary1 = defaultdict() # file = open('train.dict','r') # file_1 = file.readlines() # for line in file_1: # dictionary1[line[:-1]]=1 # # print dictionary1 def learn(tree): LHS = t...
841976ed20615fea985885936e640e5765873de0
37c9f9bd94ead1cba1fb5b5c27691ce767b89821
/plot/plotfun6.py
4b1ef2178c4b5bccb739f42c5b3d8f9570f2d295
[ "MIT" ]
permissive
cityuCompuNeuroLab/TVpgGLM
69f0567905c92cc8e42d833535b6d6b229350046
d07f81cf3a404474b640777a3ab01b0a79ad9187
refs/heads/master
2021-04-12T04:33:27.903850
2017-11-30T10:34:34
2017-11-30T10:34:34
125,807,848
0
0
null
2018-03-19T05:52:06
2018-03-19T05:52:06
null
UTF-8
Python
false
false
3,162
py
plotfun6.py
# plot simulated 2-neuron network from hips.plotting.colormaps import harvard_colors import matplotlib.pyplot as plt import seaborn as sns import numpy as np import pickle sns.set_style("white") paper_rc = {'lines.linewidth': 2.5, 'lines.markersize': 10, 'font.size': 15, 'axes.labelsize':15, 'axes.titlesiz...
b20f00eb0ce23621b5127644f5880c5e80aad9d1
8efa61042a7838613da5b8854285be0ee59a5468
/ex2/pseudo_tags_and_words.py
f82ed689309f8f553c68e7e779b1feb181e75934
[]
no_license
yonilip/nlp-ex2
21558b0e4c249586ec94c77502c3855d811282c8
31b8ac3629321a840c548e5731d3d13d82efcc5c
refs/heads/master
2021-01-11T12:17:39.943518
2016-12-21T17:57:53
2016-12-21T17:57:53
76,480,488
0
0
null
null
null
null
UTF-8
Python
false
false
2,393
py
pseudo_tags_and_words.py
from nltk.corpus import brown from collections import Counter TAGS = set([]) WORDS = set([]) THRESHOLD = 1 def contains_digits(w): return any(d.isdigit() for d in w) def contains_alpha(w): return any(x.isalpha() for x in w) class Other(object): pass class DigitsAndAlpha(object): pass class T...
86aece4720520f4522caac7da68491643d589339
55c250525bd7198ac905b1f2f86d16a44f73e03a
/Python/Scripts/Lazymux/sqlmap/plugins/dbms/informix/fingerprint.py
6d2081fe61c16eae31a9e49a6e089d25802a90e2
[]
no_license
NateWeiler/Resources
213d18ba86f7cc9d845741b8571b9e2c2c6be916
bd4a8a82a3e83a381c97d19e5df42cbababfc66c
refs/heads/master
2023-09-03T17:50:31.937137
2023-08-28T23:50:57
2023-08-28T23:50:57
267,368,545
2
1
null
2022-09-08T15:20:18
2020-05-27T16:18:17
null
UTF-8
Python
false
false
129
py
fingerprint.py
version https://git-lfs.github.com/spec/v1 oid sha256:5d594a889a22a089df3fc6314b8e9e6ab1ef0ef0f0ea1ad768d7cfb894113255 size 3277
78e1522e3f517fcede0e7ebe6c4fe331e6e33d17
848e44cf4f90a333543151e0e5302a2285e02e6a
/sec2-file-handling/part10_delete_specific_line.py
eae6ba2a9c18b06d3ffd26d80e9b59bf61f26330
[]
no_license
aman-saurabh/python-basics
d8b1b42ec3a28d83a39e4340777f309d388a2c2c
353dfdf58bd0bbffbda685ee4fea7e340a61bfe9
refs/heads/main
2023-06-12T23:31:50.043000
2021-07-11T03:24:16
2021-07-11T03:24:16
363,699,492
0
0
null
null
null
null
UTF-8
Python
false
false
443
py
part10_delete_specific_line.py
""" This is the first line of file delete-line-demo. This is its second line This is the line we want to remove. This is the last line of the file and it should not be removed. """ with open("files/delete-line-demo.txt", "r+") as f: lines = f.readlines() f.seek(0) for line in lines: if line.strip("\...
432ba56af30ee4022093dcde7527696e5bee55e4
11587d450eb274a4684a393bd1073ea7cf6e28bf
/codingtest/week09/num_sorting_3.py
6f11863db89e5948006ac3b7af5a26f39c39b162
[]
no_license
Greek-and-Roman-God/Athena
3b45869806ea06812e3d26661b159294fb49593b
73a3a24df9667402258bff038325fd31cca36cf1
refs/heads/main
2023-05-28T23:04:10.760717
2021-06-13T04:39:31
2021-06-13T04:39:31
308,242,740
0
1
null
null
null
null
UTF-8
Python
false
false
240
py
num_sorting_3.py
# 수 정렬하기 3 import sys n = int(sys.stdin.readline()) numbers = [0]*10001 for _ in range(n): numbers[int(sys.stdin.readline())]+=1 for i in range(len(numbers)): if numbers[i]!=0: for _ in range(numbers[i]): print(i)
1beac5e9e7d4060dc797b0d6a4f6253308f1590e
d87f8caea533a477b634a77485855e3776b73efd
/learning_system/practice/tests/test_practice_views.py
5af469e304811ef6f5c02d9db98b442b189a3c7d
[]
no_license
pavels-k/CLASS.NET
98b29e502ccbabad2a4652df6e849a5877c20f06
220c9caa19da2616e4b77f41fa8e0fb583a3a480
refs/heads/master
2020-12-15T12:25:55.124935
2020-07-26T16:07:35
2020-07-26T16:07:35
235,101,788
0
0
null
null
null
null
UTF-8
Python
false
false
2,109
py
test_practice_views.py
from rest_framework.test import APITestCase from django.urls import reverse from rest_framework import status from learning_system.practice.models import PracticeCategory from learning_system.courses.models import Course ''' class UpdatePracticeTask(APITestCase): """ Test module for updating an existing post recor...
c691b5d96f9133154ab4517cc5e578bd6ff717cc
01c585cd78ebd1b3654627fb667e1ca962363ef9
/pythonfolder/2845_guess.py
d79414ed394784ff8137318515608ffcaba7be8a
[]
no_license
MinSeo-Ming/Programmers-BOJ_Algo_pratice
e36350eaa767b41cbdb38f1f6cde209d912bd11f
eaf0fd38d10a79358cfade18aa2d232c32b088a8
refs/heads/master
2023-03-20T09:49:31.535130
2021-03-02T15:03:49
2021-03-02T15:03:49
292,803,836
0
0
null
null
null
null
UTF-8
Python
false
false
229
py
2845_guess.py
num , area = map(int, input().split()) real_number = num * area list = list(map(int, input().split())) for i in range(5): guess = list[i] list[i] =guess - real_number for i in list: print(i , end=' ')
dc36ca9b0defd328a059f7fdf4bcef2eb530389a
85a9ffeccb64f6159adbd164ff98edf4ac315e33
/pysnmp/CXPhysicalInterfaceManager-MIB.py
1e71a939cc47086f185ef697d65b51f4d07f33ff
[ "Apache-2.0" ]
permissive
agustinhenze/mibs.snmplabs.com
5d7d5d4da84424c5f5a1ed2752f5043ae00019fb
1fc5c07860542b89212f4c8ab807057d9a9206c7
refs/heads/master
2020-12-26T12:41:41.132395
2019-08-16T15:51:41
2019-08-16T15:53:57
237,512,469
0
0
Apache-2.0
2020-01-31T20:41:36
2020-01-31T20:41:35
null
UTF-8
Python
false
false
3,081
py
CXPhysicalInterfaceManager-MIB.py
# # PySNMP MIB module CXPhysicalInterfaceManager-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CXPhysicalInterfaceManager-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 18:17:44 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python ...
d2a88ff580caa2b0baab0e9065a4a461fb3e681b
638536e305e890c3aadf2df4cd310b41701209c6
/utils/NMS2.py
6d3945f455be78dec942390e2fd15449ea1f4c20
[]
no_license
qiqzhang/Mask_Yolo
baa0eefaac848ec5723d6ed441d8f5ee0b316574
ea0c5d9a98fd150ca1db7237763200e4561f9ad1
refs/heads/master
2020-04-01T10:49:40.436517
2018-08-16T03:45:14
2018-08-16T03:45:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,139
py
NMS2.py
import numpy as np import torch as th def mask_nms(mask, box, conf, mask_thresh, conf_thresh, roi_thresh): MAP_SIZE = 256 SUB_SIZE = 64 x = np.linspace(1, MAP_SIZE, MAP_SIZE) # 解码过程 y = np.linspace(1, MAP_SIZE, MAP_SIZE) cy, cx = np.meshgrid(x, y) cx = np.reshape(cx, (-1, 1)) cy = np.r...
608ca522e37c17f7c9a14c4a093d37f4332ae118
3420dd606acc60f921efcc79160d85af92be3740
/dexp/optics/psf/standard_psfs.py
74989f4e8d3f3633d1406a5666bd16d408517b8e
[ "MIT", "BSD-3-Clause" ]
permissive
royerlab/dexp
3e9b67b4084eacf9de8006f75754292f8d7e0fb4
8e8399f5d0d8f1e1ae0ddfa6cb6011921929ae0b
refs/heads/master
2023-05-26T04:03:44.833528
2023-04-10T16:06:09
2023-04-10T16:06:09
196,109,847
23
6
BSD-3-Clause
2023-04-07T21:48:25
2019-07-10T01:41:20
Python
UTF-8
Python
false
false
1,689
py
standard_psfs.py
import numpy from arbol import aprint from dexp.optics.psf.microscope_psf import MicroscopePSF def nikon16x08na(xy_size=17, z_size=17, dxy=0.485, dz=2, wvl=0.561, NA=0.8): return generate_psf( dxy=dxy, dz=dz, xy_size=xy_size, z_size=z_size, M=16, NA=NA, n=1.33, wd=3000, tl=165.0 * 1.0e3, wvl=wvl ) ...
2e9d3d9555c6c6f72346a6861f35d0fa7b9bb308
1c68c7b7c37ead2fd0ac59c7cad977056b847bf7
/Exercise/8个教室随机分到3个办公室.py
9f524bdce9aee4b01f2c211724329e235bda7bf1
[]
no_license
voicezyxzyx/python
f0f7b3d9faff2dd96c66aa13b659f9fb93207988
15c47863bba12579aeb9ccb05c4f72ea2bfb2984
refs/heads/master
2020-03-24T06:40:02.994891
2019-09-05T07:22:07
2019-09-05T07:22:07
142,536,736
5
0
null
null
null
null
UTF-8
Python
false
false
251
py
8个教室随机分到3个办公室.py
#一个学校,有3个办公室,现在有8位老师等待工位的分配 import random office=[[],[],[]] teacher=['a','b','c','d','e','f','g','h','i'] for name in teacher: index=random.randint(0,2) office[index].append(name) print(office)
80ce7d26110cde453fb8dea55e0e92f665ced94c
c39f999cae8825afe2cdf1518d93ba31bd4c0e95
/PYME/Analysis/expectationMaximisation.py
4363f3f8c3fea9d980747fb6547d9ac45d87a588
[]
no_license
WilliamRo/CLipPYME
0b69860136a9b2533f2f29fc29408d7471cb934d
6596167034c727ad7dad0a741dd59e0e48f6852a
refs/heads/master
2023-05-11T09:50:58.605989
2023-05-09T02:17:47
2023-05-09T02:17:47
60,789,741
3
1
null
2016-06-17T08:52:44
2016-06-09T16:30:14
Python
UTF-8
Python
false
false
8,298
py
expectationMaximisation.py
#!/usr/bin/python ################## # expectationMaximisation.py # # Copyright David Baddeley, 2011 # d.baddeley@auckland.ac.nz # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version...
3338d7e67f91e8ae1f3516beb0214ee14c1f6ad1
f762c29d03ecf3e3b0ab0428abbc5697d98292fe
/helper.py
7ab4f14e04654952ab332e492ce13f2719cdafba
[]
no_license
jamesjarlathlong/beeview_datastore
1f17a935a0799482dc9061177fcc9ffb470a0e0d
d8ecaa959e1a84dd7caf2e94aa715104aea9eb6a
refs/heads/master
2021-01-22T19:40:52.730267
2017-07-30T04:45:46
2017-07-30T04:45:46
85,220,567
0
0
null
null
null
null
UTF-8
Python
false
false
1,654
py
helper.py
import functools import itertools def with_connection(mod, db_filename, f): def with_connection_(*args, **kwargs): # or use a pool, or a factory function... cnn = mod.connect(db_filename) try: rv = f(cnn, *args, **kwargs) except Exception as e: cnn.rollback() ...
d6e6106a7531deafc00fe0208f5680de2efea24c
acdccad0fb12f6419fb78b2427c77e5f45a5604e
/CollaborativeProject/CollaborativeProject/handle/recommend.py
9c55ba9bb102f134ef5ab20e891c2fd2d3af842e
[]
no_license
newone1998/CollaborativeFiltering
851855a90fbb9effded95e4ed054fc087658f4ba
c0c7fd65a99c23c005031458dbcba0aa805f4f40
refs/heads/master
2020-05-16T02:33:49.906809
2019-04-24T14:59:30
2019-04-24T14:59:30
182,633,766
0
0
null
null
null
null
UTF-8
Python
false
false
1,891
py
recommend.py
# -- coding: utf-8 -- from CollaborativeProject.handle.data_class import DataClass # 设置参数 # 推荐歌曲数量 RECOMMEND_COUNT = 10 def main(): # data_class = DataClass() # print(data_class.all_users) # print(data_class.all_data) # print(data_class.get_row_by_song('song1')) # print(data_class.get_col_by_use...
f25ac3449cf06b922ec58515f5122c664abc8f39
275b9c008e4fdb412550da35be85c135c2a37c26
/pythonthread/process/process1.py
117a0c1690456b57171d569450fc6e2eed1c1ce2
[]
no_license
fjpiao/pyclass
cc3c12ca6c0a8b1244219a00ed86fd76699fed9b
52f73758e762df6841bf001488c2a6e5b3723ca1
refs/heads/master
2020-04-27T16:37:50.042169
2019-04-11T02:22:12
2019-04-11T02:22:12
174,488,588
0
0
null
null
null
null
UTF-8
Python
false
false
372
py
process1.py
import multiprocessing as mp from time import sleep a=1 #编写进程函数 def fun(): sleep(3) global a print('a=',a) a=10000 print('子进程执行事件') #创建进程对象 p=mp.Process(target=fun) #启动进程(父进程) p.start() sleep(2) print('父进程事件') #回收进程 p.join(2) print('=========') print('parent a=',a)
11e0a09ebb5d6ed386dbf0f3a94eb00fe3a376c3
12f8ed2d653e2c8e83cbee7a300844f1d503f87b
/panel/models.py
b9539a7fc3523a2d190070266b64710dd023b68f
[]
no_license
Nerimellx/StemSC-test
2a4361696a000c4989e60330538e8d3a3d65b0cb
f0febff5cbacb79d6f124635fab7eca802088cd9
refs/heads/master
2020-03-24T22:25:36.626583
2018-08-07T08:45:46
2018-08-07T08:45:46
143,084,899
0
0
null
null
null
null
UTF-8
Python
false
false
829
py
models.py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from phonenumber_field.modelfields import PhoneNumberField from django.db import models class Human(models.Model): firstName = models.CharField(verbose_name = 'Имя', max_length = 64, blank = False) lastName = models.CharField(verbose_name = 'Фамил...
312f157af4d1d27d0df8b39265341cbf86c3ff46
cac038b78eb47459a74c5720f8decf3206c02208
/events/importer/funactionuorille.py
2e14ff809ded0a93e020001e40335eda323ed4a7
[ "MIT" ]
permissive
iivoraitahila/linkedevents
007f62e65400b37e0e418af83e43186fa9c8a0fb
31bffb4eff97e7b9b96cb5e61f2d781e556f72ee
refs/heads/master
2023-05-26T18:59:40.895055
2021-06-07T11:52:18
2021-06-07T11:52:18
368,108,343
0
1
MIT
2021-05-17T08:18:42
2021-05-17T08:18:41
null
UTF-8
Python
false
false
18,411
py
funactionuorille.py
""" This is an importer for funactionnuorille.fi website. One course: https://funactionnuorille.fi/wp-json/wp/v2/funaction_class/1768 Course listing: https://funactionnuorille.fi/wp-json/wp/v2/funaction_class Pagination example: https://funactionnuorille.fi/wp-json/wp/v2/funaction_class?per_page=3&page=2 funactionnuori...
5c5961edb5e7fd1bd9d5f2be38d34f69c5e252e3
8e9fc599fb214fc10c61995d252b0f1f0c4e0bdb
/eff_gcn_modules/rev/gcn_revop.py
048af94497479e849fcce5149150778461d97aed
[ "MIT" ]
permissive
lightaime/deep_gcns_torch
9fbf7a2affcac87df4b333d9249a325ccf2a9890
4f6681eee2290e217bda941b5536452a7c09decb
refs/heads/master
2023-08-25T17:08:35.909609
2022-07-31T21:01:32
2022-07-31T21:01:32
199,716,757
1,162
187
MIT
2022-07-31T21:01:33
2019-07-30T19:44:00
Python
UTF-8
Python
false
false
12,894
py
gcn_revop.py
"""This module is implemented by Guohao Li based on MemCNN @ Copyright (c) 2018 Sil C. van de Leemput under MIT license.""" import numpy as np import torch import torch.nn as nn use_context_mans = True try: pytorch_version_one_and_above = int(torch.__version__[0]) > 0 except TypeError: pytorch_version_one_an...
ec696ae482f2cfa9511045966ba3df3399bb197e
4e44974b9e59dfd4324d84b12b10f008117814cd
/autofit/tools/util.py
815bea7c35986102f0252dd2f9a17c108bdf45d1
[ "MIT" ]
permissive
PriyatamNayak/PyAutoFit
2cc2608943f8c3bdbda3b268142e7307014ccaf2
32c0c30acd219030c86a12db82ae54e406fd7119
refs/heads/master
2023-03-04T07:27:41.547966
2021-02-11T23:21:00
2021-02-11T23:21:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,387
py
util.py
import numpy as np from contextlib import contextmanager import sys, os import json @contextmanager def suppress_stdout(): with open(os.devnull, "w") as devnull: old_stdout = sys.stdout sys.stdout = devnull try: yield finally: sys.stdout = old_st...
bc06a3ca586893275de491a2b18a06eb9f78b745
fc5becca3e2e48a444b512e059df1cd21601829b
/Desafios/Desafio114.py
6ebebcbaa64a4e316b7593c471ae91506e5f3078
[ "MIT" ]
permissive
Felix-xilef/Curso-de-Python
c44bf8c22b393aefaed3a2bb3127ef7999e27fb8
cdff7c7f3850e6326e274c8c1987b9e1a18ce910
refs/heads/master
2021-05-19T11:09:22.644638
2020-04-01T22:09:02
2020-04-01T22:09:02
251,665,966
0
0
null
null
null
null
UTF-8
Python
false
false
374
py
Desafio114.py
from auxiliar import color from urllib import request # site do pudim -> http://pudim.com.br try: request.urlopen('http://pudim.com.br/') except: print(f"{color('vermelho')}O site Pudim não está acessível no momento{color()}") else: print(f"{color('verde')}O site Pudim está disponível{color()}") finally: ...
0edfd38e814e674da5d5fc9e950691cad844e072
3dac960cd8cb0efa6ae726fc96e0748234f5437d
/02python-advance/socket/tcp/3-1-1-python网络套接字socket 笔记.py
c69b5004d89bf8d090a3fcf76adc39377d653bbf
[]
no_license
nebofeng/python-study
352b805163b3c81bee3d37f9240e336b6b5bd246
18c07f4ba44c9f35325e07a1c8c2984cab9abd34
refs/heads/master
2020-03-27T08:52:50.669866
2019-11-18T05:18:30
2019-11-18T05:18:30
146,294,997
0
1
null
null
null
null
GB18030
Python
false
false
2,778
py
3-1-1-python网络套接字socket 笔记.py
#coding:gbk #python 网络编程 #socket 套接字:网络接口。 #我们在网络上需要传输自己需要的数据,我们在网络上传输数据 #使用的是网络协议,而套接字就是我们将数据从本地采用协议传输 #的接口 #通信的模式 #单工通信:通信双方占有单条信道,收发双方身份不可逆 BB机 #半双工通信:通信双方占有单条信道,收发双方身份可逆 对讲机 #全双工通信:通信双方占有多条信道,收发双方身份可逆 手机 #2.x #unicode #str #3.x #bytes #str import socket #1、创...
aa70fa5e57a07eecfa7b6c43c057bee875483213
abc81b4802bf39b73199626d1d73f07b28416547
/IPInfoDB.py
76e2cebf0bc23f35a061f6ae2e8360cdbf82a4d7
[]
no_license
prehensile/OSMAdventure
7dae9174904d6f074fd7c65357e71fe541c038a2
9ba6022bde536d75e1ed7303e8f7548ef884bfd1
refs/heads/master
2021-01-01T05:34:48.932981
2011-07-14T21:54:24
2011-07-14T21:54:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
605
py
IPInfoDB.py
import urllib import urllib2 import json api_key = "e97c5b7634b39c5700d6fd4954b6cb85e8cf7355798afd95c295befa0a011ee3" api_url = "http://api.ipinfodb.com/v3/ip-city/" # OK;;31.64.140.162;UK;UNITED KINGDOM;ENGLAND;BRADFORD;-;53.788;-1.75;+00:00 def get_info( ip ): passdict = {"output":"raw", "key":api_key, "timezone":...
f9a3011f769af3f3f8cd5e8206b0319a1cd32c06
ad39e2390cdf376f46ccea105645394da875077e
/0x0A-python-inheritance/9-rectangle.py
01798f74751e1dbca51afe457ac005f9712387cc
[]
no_license
hugocortesmu/holbertonschool-higher_level_programming
6544cb6f1f361761f24251863c1d217b02f6bfe3
7f951362ca83101c1c1b011fc985dda4859f88ab
refs/heads/main
2023-08-14T05:07:03.842885
2021-09-23T03:09:38
2021-09-23T03:09:38
361,948,503
0
0
null
null
null
null
UTF-8
Python
false
false
126
py
9-rectangle.py
#!/usr/bin/python3 """ Implementing a new class called Rectangle """ BaseGeometry = __import__("7-base_geometry").BaseGeometry