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
753bdbf080e7a8652c39e40beeae51f74382d606
66901af5d34ac1426c080b0512659d4c87a2316b
/feat/tests/test_detector.py
a2049108ff29634b720e624b3ae09804dd2c5327
[ "MIT" ]
permissive
TiankangXie/feat
ac3bfd0641a817efc538f0da0fa23d48899c7b9d
1df9a69d4cefc4fcc44920044c5e8a6eca45b7ec
refs/heads/master
2023-03-04T13:49:26.673504
2021-01-11T17:32:43
2021-01-11T17:32:43
332,314,767
0
0
MIT
2021-02-16T19:02:16
2021-01-23T21:48:50
null
UTF-8
Python
false
false
2,651
py
test_detector.py
#!/usr/bin/env python # -*- coding: utf-8 -*- """Tests for `feat` package.""" from feat.detector import Detector from feat.data import Fex from feat.utils import get_resource_path from .utils import get_test_data_path import pandas as pd import feat import os import wget # def test_models(): # print("Downloading...
1e24952006afebb7bf10a83077fc4effd5cc9c58
2d5b1a9b85fcf908590fe015dc11b5b1be0e9f71
/abc.py
04792df63e0142b023ff75c63cef2f251b45ad49
[]
no_license
banerjeesujan/hello-world
cee3c142aee7e64f6348a420120b0c9060992a4e
f736794afd173c5248daaaac6e3ab301bf3b9740
refs/heads/master
2020-04-27T22:29:22.259865
2019-03-10T18:00:35
2019-03-10T18:00:35
174,738,681
0
1
null
2019-03-10T18:00:36
2019-03-09T19:43:19
Python
UTF-8
Python
false
false
70
py
abc.py
#Sample Python Code print("Different Code!!!") #print("Hello World!")
fc26574ac8628d7e2896e3e6d055ac61264c7db0
892feebbccc8d0644b0ac2a21bedbbcb48fb8353
/experiments/simulations/config.py
4805027c3bfad8d9f3df5d7e3461b945d22a6797
[ "MIT" ]
permissive
neurodatascience/dataset_shift_biomarkers
8ce5c8165a4c160b78bd9655e899413e684a4e09
22dc792adfdddcff29d8bbfe4bb358efa816ccc6
refs/heads/main
2023-06-11T09:51:32.563599
2021-07-06T17:36:48
2021-07-06T17:36:48
383,469,471
1
2
null
null
null
null
UTF-8
Python
false
false
528
py
config.py
import sys import pathlib from matplotlib import pyplot as plt import matplotlib as mpl script_name = pathlib.Path(sys.argv[0]).stem FIGURES_DIR = pathlib.Path( __file__).parents[2] / "figures" / "simulations" / script_name FIGURES_DIR.mkdir(exist_ok=True, parents=True) # mpl.rc("text", usetex=True) # mpl.rc("fo...
8ddb7abb480ea8ee674c59719c0946f133ef0a4b
58c6e33d00f85100174473574f64b99903e68685
/watchdog/Launch_qt.py
7f8a8798ab2931e57a611badc3ab82b3f6a1bf3e
[]
no_license
1782777/op
f93631a9289255fc446912cd976fb408a97c2011
5aba520b08d6f9c96cb9ad9c47a1098bdde5658e
refs/heads/master
2020-07-13T02:19:00.074508
2020-01-27T13:43:34
2020-01-27T13:43:34
204,966,914
0
0
null
null
null
null
UTF-8
Python
false
false
8,491
py
Launch_qt.py
from PyQt5.QtWidgets import QPushButton,QWidget,QApplication,QGridLayout,QListWidget,QLineEdit,QVBoxLayout,QLabel import pyqtgraph as pg import sys import numpy as np from tools import DataModel,HoldPositions from load_sina import LoadNet import time from get_day_histroy import history import pandas as pd from volume ...
c3de6cd76ca7180a1a4d236bb2a6a18f7594f38b
581394ecad75d875f2b7f57fd8d06d22a1149d5f
/backjun_2577.py
4ed3ad52ca064abb4ac3fcac10a1d7a8da8d28a4
[]
no_license
aqkhsg/algorithm
861febc08021012315abab7cf1855a47238a5afb
9f61638dd7861cc9aa3e13793794a5a7adb6de61
refs/heads/master
2021-07-10T00:04:47.797663
2020-10-03T09:10:21
2020-10-03T09:10:21
203,165,972
0
0
null
null
null
null
UTF-8
Python
false
false
258
py
backjun_2577.py
import sys numList = list(range(3)) for i in range(3): numList[i] = int(sys.stdin.readline()) result = numList[0] * numList[1] * numList[2] resultList = list(str(result)) intList = list(range(10)) for i in intList: print(resultList.count(str(i)))
8d8ea6ad7a3ed1a1e6e96ab75260ecf6e8211d32
8272b7b2c4f1e3464e772ed4183a7ccf53582e05
/plot_raspshake_event_waveforms_rays.py
78a185aa9f38fc9bbc435c39a2936ddec08e5901
[]
no_license
shicks-seismo/obspy_plotting
a1305d13d1c2aa7d92364189c8a638c327502735
b9328b338dd4e1b51c48562f39682e952493c1fa
refs/heads/master
2021-01-03T10:19:11.116397
2020-02-13T11:49:41
2020-02-13T11:49:41
240,038,368
0
0
null
null
null
null
UTF-8
Python
false
false
3,491
py
plot_raspshake_event_waveforms_rays.py
#!/usr/bin/env python """ Script to download and plot RaspberryShake station data Also computes and plots theoretical phase arrival times and raypaths. See https://docs.obspy.org/packages/obspy.taup.html for more info on Earth models and phase-nmaing nomenclature. Stephen Hicks Imperial College London Feb 2020 """ ...
85c2a4163a3132794186b95b4068f6c6e1104828
e90248c334c3bf95694f4b78a988336f8633ccc4
/styleguide/migrations/0003_auto_20180627_2149.py
f45da9d2720836e6d2fef48013101ea2701535fa
[]
no_license
BrandonBlanchard/allen-styleguide-2018
95744583579002a1ef182a0592e10363b944ac9d
a7dc4c84bcb28834eba7b75989bdd988bed72c0a
refs/heads/master
2020-03-23T13:22:05.666464
2018-07-19T22:37:51
2018-07-19T22:37:51
141,614,145
0
0
null
null
null
null
UTF-8
Python
false
false
1,336
py
0003_auto_20180627_2149.py
# -*- coding: utf-8 -*- # Generated by Django 1.11.13 on 2018-06-27 21:49 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('cms', '0020_old_tree_cleanup'), ('styleguide', '00...
38f9cddfde4787ead2314fc70c1f4d91a3da9687
c99ec87b91e9065ae531be1e4ee462036fc88bec
/devoutils/faker/generators/template_parser.py
1a5fbd6225cf539902b451d1331fc57f3dcf5981
[ "MIT" ]
permissive
DevoInc/python-utils
d833afea7b02e4050d1753c7b24efbd0c0ffaec6
7a33f6ee26939db4088e0cf16c2cbf31a3ac3b4c
refs/heads/master
2023-05-25T09:42:34.742485
2021-05-18T14:30:46
2021-05-18T14:30:46
171,713,408
4
4
MIT
2023-05-22T23:19:21
2019-02-20T16:55:31
Python
UTF-8
Python
false
false
1,637
py
template_parser.py
# -*- coding: utf-8 -*- """Template parser for Faker""" from datetime import datetime from jinja2 import Template from faker import Faker from faker.providers.internet import Provider as InternetProvider from ..providers.file_data_source_provider import FileDataSourceProvider from ..providers.numbers_provider import Nu...
13da16ba89e4743b12d9b8e24929864747f8bbf2
422f278342c2b0b837c4bd4165a716e077db8c83
/test_project/modd/__init__.py
5e294bec67a07f2699a2a2f470ba173b307372ab
[ "BSD-3-Clause" ]
permissive
futurice/fabric-deployment-helper
a1e95c1db114a757e5fe1fbbefe32b54076f8d67
fc152b9b3d4c67f77642577c7d29b25093cebdff
refs/heads/master
2020-05-06T15:19:08.336411
2014-10-08T13:34:19
2014-10-08T13:34:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
100
py
__init__.py
from soppa.contrib import * class ModD(Soppa): needs = ['test_project.modf'] something = 1
3eb071fa826c838d847e3f97abe3b706760a1336
5b56dc63227da95552564ac506bc7407c7550402
/utils/ipython_shell.py
b6c9332a9235601b28e3c960d1f3234a16cce94f
[ "DOC" ]
permissive
jeffhsta/faraday
59b4ccc97bc0caa72c2b30ff7577f676e7f2b763
0cae558d7e22a7911597525a8255391208e035be
refs/heads/master
2021-01-18T13:23:50.270523
2016-07-21T17:05:42
2016-07-21T17:05:42
64,257,104
1
0
null
2016-07-26T21:49:34
2016-07-26T21:49:34
null
UTF-8
Python
false
false
3,026
py
ipython_shell.py
''' Faraday Penetration Test IDE Copyright (C) 2013 Infobyte LLC (http://www.infobytesec.com/) See the file 'doc/LICENSE' for the license information ''' """ This module contains some useful functions to embedd an IPython shell. This allows to interactively test things. TODO: create a QT Widget capable of running the...
a5a5b72dd70c26a80fa7ae4ff07b0a941e00af93
b2c0517a0421c32f6782d76e4df842875d6ffce5
/Algorithms/Tree/543. Diameter of Binary Tree.py
df5753d3624e6c553381c1d56660117f99043eb4
[]
no_license
SuYuxi/yuxi
e875b1536dc4b363194d0bef7f9a5aecb5d6199a
45ad23a47592172101072a80a90de17772491e04
refs/heads/master
2022-10-04T21:29:42.017462
2022-09-30T04:00:48
2022-09-30T04:00:48
66,703,247
1
0
null
null
null
null
UTF-8
Python
false
false
513
py
543. Diameter of Binary Tree.py
# Definition for a binary tree node. # class TreeNode(object): # def __init__(self, x): # self.val = x # self.left = None # self.right = None class Solution(object): def diameterOfBinaryTree(self, root): self.diameter = 1 def depth(root): if(not root): return 0 leftDepth = depth(...
34cb2de70b23f6c5234557fb6790192895f39c3a
da5cc0ffb4729118eeb347242b0a566332cc32f4
/crawler/test/mercadolivre/mercadolivre/spiders/TopSearch.py
41a10c5e5e316570ef4d223f0f335c55aa357fd3
[]
no_license
lihanxin/python_spider
9d1b694dbdc5bb2c9725a0f49024079dcce59375
7019dba8701bbe79d2a4ad68c5cd28f1a26fd4f9
refs/heads/master
2022-12-28T05:45:52.977035
2020-10-12T06:29:52
2020-10-12T06:29:52
267,869,070
0
0
null
2020-06-16T01:21:30
2020-05-29T13:48:25
Python
UTF-8
Python
false
false
308
py
TopSearch.py
# -*- coding: utf-8 -*- import scrapy class TopsearchSpider(scrapy.Spider): name = 'TopSearch' allowed_domains = ['mercadolivre.com'] start_urls = ['https://lista.mercadolivre.com.br/bebes/roupas/#menu=categories'] def parse(self, response): category_list=response.xpath("//div/")
06ba031f8c915c373a95b79cd9d0d48d27bdf760
b29f82ef5d93338b7e3435e578c144d472fb1fbd
/tests/test_csv_to_submit.py
88a87c4919a2ccbba4b1c650d7fcc3864613b463
[ "MIT" ]
permissive
uwmadison-chm/condor_csv
badc16d90c47c77b3d2982123eb1d1b231c65471
f8f2152c6ab7da3932c7c2406dfea5808f25606d
refs/heads/master
2021-06-13T15:09:50.577330
2017-04-17T18:53:46
2017-04-17T18:53:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
447
py
test_csv_to_submit.py
from os import path from condor_csv import csv_to_submit DATA_PATH = path.join(path.dirname(path.abspath(__file__)), "examples") def test_full_integration(capsys): # It's dumb simple but hey, this package is too. csvfile = path.join(DATA_PATH, "example.csv") csv_to_submit.make_submit([csvfile]) out,...
665f5b4f328eae58d7afd0d454c559a685fd1cd8
3beadeda29af8fc3a2cc3f13f69b9f69fec18bef
/apps/agg_national_accounts.py
292fcf57fca1c729957ce33bad764aa6230534bb
[ "Apache-2.0" ]
permissive
vatikagupta/sih-2019
4ecdd2476b247ce6f275285e0ea24975701892a5
ea12e2618128dcab3f49988311451e7da9a52b0d
refs/heads/master
2020-04-26T07:53:44.567596
2019-03-02T18:46:23
2019-03-02T18:46:23
173,397,251
0
0
null
2019-03-02T03:11:46
2019-03-02T03:11:45
null
UTF-8
Python
false
false
2,067
py
agg_national_accounts.py
import dash import dash_core_components as dcc import dash_html_components as html from dash.dependencies import Input, Output, State from collections import OrderedDict import pandas as pd from app import app data = pd.read_excel('data/2018/economic-aggregates/S1.1.xlsx') years = data.iloc[5:6, 2:-2] year_set = lis...
135bc96b565a510fe01dbd145bb51761dbf9c468
e73910c985fcb006de985f3c63267c27cf73966d
/run-srv.py
dc03060681cf97726168580647bbafd5b878c3b0
[]
no_license
Sl33pyPanda/CL-deGam
8edaeedcb4d3b43abf736e5b931b2d162688a02e
26967c6ce771e88bc91c8f50896fd173f0eef697
refs/heads/main
2023-06-16T09:01:52.399507
2021-07-05T04:07:09
2021-07-05T04:07:09
379,481,983
2
0
null
null
null
null
UTF-8
Python
false
false
5,262
py
run-srv.py
from config import * #import setting from ngrok import open_ngrok,close_ngrok from utils.logger import * import hashlib, random, secrets import json try: open_ngrok() except Exception as ex : printlg(ex, 'main-head') import socket import os from _thread import * ServerSocket = socket.socket() ThreadCount = 0...
0fdbe81892dfa3a98429a9a1ca7d3769ed05e830
4a0f2cc27cd39b8b8901ade728f3b1dc20c2a2ee
/view/Ui_PlanAttributeEditDialog.py
d87c9a683441a159b52849b7d062ebf0743e25cc
[]
no_license
teamlm2/lm2_mgis
2c016423983a31fcdf15e34508401acf48177f35
9144b1234b25665737986995bd1da7492871151c
refs/heads/master
2021-11-11T23:43:12.647749
2021-10-26T07:55:58
2021-10-26T07:55:58
155,568,182
0
1
null
null
null
null
UTF-8
Python
false
false
3,895
py
Ui_PlanAttributeEditDialog.py
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file '.\PlanAttributeEditDialog.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: d...
18a2310b518351e49e13f507aa9c84cd2b61ccc1
6e16c445e2350bcafa178f7e65429d3ecd55eb26
/day3assgn3.py
1f152a2d308d39a2bed7fd835803d709a76055f7
[]
no_license
Aashutosh180/python-code
cc46feee4ba72b5609f6ce9c8323b7b68a9b7d73
df1b2a95db0eeb85a15ff31784121a85e0e840dd
refs/heads/master
2023-02-18T00:37:59.408735
2021-01-19T13:51:15
2021-01-19T13:51:15
274,715,281
0
0
null
null
null
null
UTF-8
Python
false
false
259
py
day3assgn3.py
for num in range (100000,702648265): sum = 0 temp = num while temp > 0: digit = temp % 10 sum += digit ** 6 temp //= 10 if num == sum: print(num,"is an Armstrong number") break
820de5d22e27a801e96b45d355b3c94604a1c529
71e50da74ae2d203f69a2f594d346891bc38d565
/cloudmesh/volume/openstack/Provider.py
b00f97fb3c7a362fc256d5722161d5117483a972
[ "Apache-2.0", "Python-2.0" ]
permissive
asingam2017/cloudmesh-volume
03fe7ae1b4e89a5cc98c17268a9b4d0bb9e548d5
27e8a20028419d5130c1340ad564176eb9daba20
refs/heads/master
2021-01-09T10:50:39.727863
2020-03-27T17:49:38
2020-03-27T17:49:38
242,272,615
0
0
NOASSERTION
2020-02-22T03:24:37
2020-02-22T03:24:36
null
UTF-8
Python
false
false
7,830
py
Provider.py
import pprint import openstack from cloudmesh.volume.VolumeABC import VolumeABC from cloudmesh.common.util import banner from cloudmesh.common.Shell import Shell from cloudmesh.configuration.Config import Config from cloudmesh.common.dotdict import dotdict from cloudmesh.common.Printer import Printer class Provider(Vo...
266ce2a3ff14558bfde34ba932de449b5e6b7b08
c78c3a96182d07f6c13bf239f0dcb68a682b991d
/accounts/migrations/0001_initial.py
7d47466ac134638aaccc2e751910d3208f8d8c56
[]
no_license
bengisucam/WebProject
eec1e13baae9dc83c4b57a093edf58f0e8393263
0e2b28378d9e5cccc27936ce4ec6b12f41bc0e42
refs/heads/master
2022-10-21T13:35:56.726139
2020-06-12T21:36:32
2020-06-12T21:36:32
264,029,030
1
0
null
null
null
null
UTF-8
Python
false
false
1,440
py
0001_initial.py
# Generated by Django 3.0.6 on 2020-06-01 09:43 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('address', '0002_auto_20200526_1305'), ('sportcenter', '__first__'), ] operations = [ ...
b8dc52798c01fbf1d7e86b2351312627fbe679dc
cbc4eec2c39bc954d05d28be812592a205106b8b
/python/text/dv.py
032fa7b41ba6049d605e31fd344123da0451e4dd
[]
no_license
pranab/avenir
756abaf6dc1d11bdafb61a5df77b0ed3ce56008c
4381166d61f7bc6088be34e6b35927a37ef6ba98
refs/heads/master
2022-10-07T20:58:12.992960
2022-09-06T04:28:47
2022-09-06T04:28:47
4,390,566
171
84
null
null
null
null
UTF-8
Python
false
false
6,543
py
dv.py
#!/usr/bin/python # avenir-python: Machine Learning # Author: Pranab Ghosh # # 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 require...
e6dc8bb86df97442bfb87ef8501e50eb780cd7ec
de5be7e4d9e20bbfda3ce8697afc3433a3ccf55d
/python_tutorial/excercise/in_keyword.py
1ca9747d4dc94908865030362af154aa9ee16102
[]
no_license
poojataksande9211/python_data
42a88e0a0395f383d4375000a3d01b894bd38e62
64c952d622abfa77f2fdfd737c210014fce153c5
refs/heads/main
2023-04-16T10:24:27.213764
2021-04-27T16:34:32
2021-04-27T16:34:32
360,673,774
0
0
null
null
null
null
UTF-8
Python
false
false
227
py
in_keyword.py
#(in keyword is use to search perticular character in string ) name="raniukey" if "i" in name: #(in keyword use in data structure and loop) # if "i" in "raniukey": print ("i is present") else: print("i is not present")
3730d43a30270a97863762c9535fb221b9d5c39f
9ee116e5f739f654e21dffe17c398a746430c764
/mysite/betting/migrations/0013_auto_20171106_2017.py
c3c90888e9351616e9b0f067c3c160a70805e40f
[]
no_license
davidic2ofu/better_betting_pool
2a72520a77ca8517681abfcfb83d23a930f0ee5c
61d7704a51b283e08526441017865a081890c9e0
refs/heads/master
2022-12-12T11:51:36.506359
2018-10-31T23:48:18
2018-10-31T23:48:18
153,817,375
0
0
null
2022-12-08T01:15:58
2018-10-19T17:17:06
Python
UTF-8
Python
false
false
724
py
0013_auto_20171106_2017.py
# -*- coding: utf-8 -*- # Generated by Django 1.11.5 on 2017-11-07 02:17 from __future__ import unicode_literals import datetime from django.db import migrations, models from django.utils.timezone import utc class Migration(migrations.Migration): dependencies = [ ('betting', '0012_auto_20171...
344cba2e66fb1dddcec054f0c4caf20520812190
4c513075de5af0f450268cef78d81a2a8e7a7929
/spider/12306/12306.py
218d3a311fc15ddf11a18040c287b902cdfb4178
[]
no_license
zaishuiyixia911/python2017
436a38aa82efaf74b706eaeb6ec9e76eed7d1f1c
9ef6864d2a42da4bb68ab3df0a0d686817bb34fb
refs/heads/master
2021-01-19T21:50:37.420642
2017-09-22T19:24:16
2017-09-22T19:24:16
88,710,787
1
1
null
null
null
null
UTF-8
Python
false
false
7,624
py
12306.py
#!/usr/bin/python #-*- coding:utf-8 -*- import argparse import os import json import urllib2 import ssl import sys import re import socket from datetime import datetime PURPOSE_CODES = ['ADULT', '0X00'] # 成人票,学生票 CITY_CACHE = None CITY_CACHE_FILE = '.cities' ADDR_CACHE_FILE = '.addr' CITY_LIST_URL = 'https:/...
631703917e941612b4c4e0ab1e1c3e6791cc6050
4e18682cda3359b7f295b91baac07fe8349ee6d4
/evaluate_model.py
d301885317beaddeb700219674490185a4ac5b1f
[]
no_license
Rampagy/openai_general
956ee2a1306dd48260939aef618294276363b8c0
c12ba72dd998233c2443dfae6b619b3ce8d593d7
refs/heads/master
2021-05-03T22:59:17.189193
2018-02-08T01:52:48
2018-02-08T01:52:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,275
py
evaluate_model.py
import gym import NeuralNetwork as nn import numpy as np def EvalModel(model, env, eval_episodes, render_episodes, history_len, obs_len): cumulative_reward = 0 for i in range(eval_episodes): done = False obs_img = np.zeros((history_len, obs_len)) observation = env.reset() wh...
4f63e019c6e0f0562f796ad7418a8ddcee15dcad
ad2c06a61ab1e5a939d93deba31532350aba0622
/tests/support/module_fabtasks.py
e7b88cede4f350686a8362d9c65ef919b7d036df
[ "BSD-2-Clause" ]
permissive
eplaut/fabric
3893bc764e72d33f6dfd1bc49cec1724a9a2438e
b0751c36f38781407d620fa3c0d32e200a705c00
refs/heads/master
2021-01-12T21:05:23.899468
2014-10-29T11:32:47
2014-10-29T11:32:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
98
py
module_fabtasks.py
import logging def hello(): logging.debug("hello") def world(): logging.debug("world")
4550fc47000b18a5308a2e0918c7e9a78570d303
fea4db29a15b3a0dea4a17d8f42ae86b5a2ef8f7
/python_code_for_parallel.py
c61c05a91991d3cc113ab6019389313bda652c53
[]
no_license
Charleshthomasiii/benchmarking_ray_parallelization
5cc48cb3dff9b3509b0b43a7426fb2e62e7ad031
ae6551c20dc3bd57614f20c8dd27c17fd39055e2
refs/heads/master
2020-07-26T02:06:20.902234
2019-09-14T20:45:58
2019-09-14T20:45:58
208,497,894
0
0
null
null
null
null
UTF-8
Python
false
false
2,076
py
python_code_for_parallel.py
import ray import time import random def timerfunc(func): """ A timer decorator """ def function_timer(*args, **kwargs): """ A nested function for timing other functions """ start = time.time() value = func(*args, **kwargs) end = time.time() runtim...
2e132ed393e1d8f803f4b5ee189f4654450b9045
2c1923ec6ef02279632e547874532e95e252a84b
/records_search/products/export_shapefiles.py
60db3daf0d318423f5086af6c5f10025aaecc149
[]
no_license
AtlasStudioCode/arcmap-utilities
a4e03616cab39035d9b8e72e84537c711fe5b838
acc12bbd9672fca6d5de77f26c404da87bf41533
refs/heads/main
2023-03-16T21:30:47.481244
2021-03-18T16:50:42
2021-03-18T16:50:42
295,579,878
0
0
null
null
null
null
UTF-8
Python
false
false
684
py
export_shapefiles.py
import arcpy, os def ExportShapefiles(gdb, out_dir): # export shapefiles for all feature classes in the input geodatabase try: out_shp_fld = os.path.join(out_dir, 'shapefiles') if os.path.exists(out_shp_fld): return else: os.mkdir(out_shp_fld) a...
3b5e5b6a4b5761e538752ff6cc3dd76d1c748079
1f2d1e2fba843c9bbbc34625b719962601dfb8c7
/dashboard/models.py
1472e62c73874a591c24b7fa7b77fff1380788a4
[ "Apache-2.0" ]
permissive
Ashilesh/rainfall_india
42fde254425c658a9f3735cf316ff9b09dc7e1ee
930b005b3e8f04d46bd8bf3dadac24550e9951e0
refs/heads/master
2023-07-25T00:09:44.565191
2022-02-10T12:36:37
2022-02-10T12:36:37
211,028,238
3
1
Apache-2.0
2023-07-06T21:45:55
2019-09-26T07:32:39
CSS
UTF-8
Python
false
false
401
py
models.py
from django.db import models # Create your models here. class Index: def __init__(self): self.card1_head = 29 self.card1_tail = 'States' self.card2_head = '881 cm' self.card2_tail = 'Average Rainfall' self.card3_head = 91 self.card3_tail = 'Major Reservoirs' ...
0e40fec3ce9a67b8c5d94c920fd84a4059693ffe
5ffbd8cd76c24ed444e97eaef2c316981bcab2e2
/speed_generator_moto_0.py
609e5996ed69b08efd88ea65f6f66ac305d86379
[]
no_license
kidataku/practice
ece15f188479bcbe33fdcb57455df7745acee01d
f07408f4fd0ee55741a1f677fd783b7b3bee4b67
refs/heads/main
2023-03-12T19:42:13.297248
2021-03-03T11:09:08
2021-03-03T11:09:08
315,305,920
0
0
null
null
null
null
UTF-8
Python
false
false
5,280
py
speed_generator_moto_0.py
# region speed_generator_moto_0:スピード指数作成のための元データを作成してDBに出力するスクリプト コードの最適化までたぶんOK # ⓪騎手・調教師・血統・馬主・生産者ごとの勝率・複勝率・単勝回収率・回収率などの特徴量を作成 # uma_raceから必要な馬の情報の取り出す 元データ matome_data = n_uma_race.loc[:,['year', 'monthday', 'jyocd', 'kaiji', 'nichiji', 'racenum', 'bamei', 'futan', 'time', 'kakuteijyuni']] matome_data['ID'] = n_uma_...
c9a955a1dcc4a7590e6bffd7f80ea1f098667881
0848a60ee15d16f5f8be254051861874379ed40b
/Person.py
9d5959d0f29975e02f77389e2399ccc50f2af65b
[]
no_license
Heroico/MetaXcanSynthesizer
cc2fc31059141f67fca9b4a0862df840253b9d9a
b5515c064eeda10659bab57b475724f31da03c41
refs/heads/master
2020-04-27T14:03:56.943820
2015-11-20T15:33:39
2015-11-20T15:33:39
39,507,662
0
0
null
null
null
null
UTF-8
Python
false
false
2,513
py
Person.py
__author__ = 'heroico' import csv class STFS(object): """sample file table format""" ID = 0 POP = 1 GROUP = 2 SEX = 3 class Person(object): """A person.""" def __init__(self): self.id = None self.population = None self.group = None self.sex = None def ...
69148e189179eee46b020a0f5b04aab611a489dd
78e996d0bbfd974e5f0d92cdb45d97b683624d00
/UxUyLoader.py
2bc11386daf2f3191e860d7f9ae924b130438494
[]
no_license
ushasi/A-Simplified-framework-for-Zero-shot-Cross-Modal-Sketch-Data-Retrieval
e379427fdacef821f8291c88e881bf80733fb621
f225d047cb6f8cc4a064719b0f5149ce6ca44f2e
refs/heads/master
2023-08-02T15:51:48.979862
2021-09-13T05:45:14
2021-09-13T05:45:14
256,947,358
16
1
null
null
null
null
UTF-8
Python
false
false
2,462
py
UxUyLoader.py
# -*- coding: utf-8 -*- """ Created on Tue Dec 11 11:33:06 2018 @author: ushasi2 """ #from graphcnn.helper import * import scipy.io import numpy as np import datetime import h5py #import graphcnn.setup.helper #import graphcnn.setup as setup #import os #os.environ["CUDA_VISIBLE_DEVICES"]="0" def lo...
cc0397ddfdb471d4260b0778e353c290beff8033
e3f1b783759e7fa41b9aebc6095c74e5b7959b25
/RS_3week/실습/Homework.py
81ebea8ba556217143b95244666ac95136d48b89
[]
no_license
seeheee/Robot-Study
8555af9e15ca29d3f89204a02a1234dac43d6f87
55a8965c436daa5ba107308d6ab4c8ff2d4b9f09
refs/heads/main
2023-06-15T16:26:55.454665
2021-07-04T09:39:28
2021-07-04T09:39:28
335,568,529
0
0
null
null
null
null
UTF-8
Python
false
false
1,369
py
Homework.py
import cv2 as cv import numpy as np img = cv.imread('homework.jpg') # image size : (429, 697) # 1. 주어진 이미지를 Gray Scale로 변환 gray = cv.cvtColor(img, cv.COLOR_BGR2GRAY) # 2. 이미지 Blurring 처리 blur = cv.GaussianBlur(gray, (7, 7), 2) # 3. Canny Edge로 Edge만 검출 canny = cv.Canny(blur, 30, 70) # 4. ROI로 차선 부분만 추출 ## 직사각형...
4d23ba1fe6c72b873e524d1aee812fabe9eb1d4a
06019925ea083c428723c63660bfcba140bfbfc9
/customuser/models.py
9145c635d4b85180adf4153c13de37eaf4d7d345
[]
no_license
NvermaG/usermanager
96c3721efdbf0070a898a81b2b8a54272b2599a6
c6b9f5c795a6a69cff3b2045560da6367ac7595f
refs/heads/main
2023-06-11T09:01:07.016364
2021-07-01T04:31:35
2021-07-01T04:31:35
379,499,813
0
0
null
null
null
null
UTF-8
Python
false
false
2,087
py
models.py
import re from django.db import models from django.contrib.auth.models import AbstractUser from django.utils.translation import gettext_lazy as _ from rest_framework import status from django.core.mail import send_mail from django.conf import settings from rest_framework.exceptions import ValidationError from .manager...
2323093d4a76efad973afb788305732a69458b04
79a79ce042816dbaa1045c8043b196fd58dcfdff
/src/ConfigPDR.py
a47bc196051f047e6b1317c1a0a57346e0286f0c
[]
no_license
evripidispar/delta-AccountableStorage
2d880e98cabd00a27c52b679aff4eccb8dc04bef
12f76fa98bc91945d6b0365b52382f52d2ab409c
refs/heads/master
2021-01-09T07:41:57.449191
2016-08-05T19:15:38
2016-08-05T19:15:38
64,879,625
1
1
null
2016-08-03T21:10:59
2016-08-03T21:10:58
null
UTF-8
Python
false
false
28
py
ConfigPDR.py
ID_LEN = 32 RSA_MODULUS=1024
5e3f55ac31bd7a9a5a69f831ccbc6a155b7aac35
85a9ffeccb64f6159adbd164ff98edf4ac315e33
/pysnmp-with-texts/Nortel-MsCarrier-MscPassport-AtmCoreMIB.py
92b59e47b6741a7a93dee0f435129cca5c3b8753
[ "Apache-2.0", "LicenseRef-scancode-warranty-disclaimer", "LicenseRef-scancode-proprietary-license", "LicenseRef-scancode-unknown-license-reference" ]
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
1,841,574
py
Nortel-MsCarrier-MscPassport-AtmCoreMIB.py
# # PySNMP MIB module Nortel-MsCarrier-MscPassport-AtmCoreMIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/Nortel-MsCarrier-MscPassport-AtmCoreMIB # Produced by pysmi-0.3.4 at Wed May 1 14:29:02 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwan...
c44c431b6c66970784863faa25957b22d4d0a178
2fa918012b1974168fcc28572ea5c3dd63960398
/commboy.py
d5422ef7250d05570ab279949f418eaee9328dfc
[]
no_license
PPL-IIITA/ppl-assignment-nilinswap
1e1d0210d8b70d898db74d2475723eb54f4e3d7a
5cada11219af1afe971530f8aa8d481888e23133
refs/heads/master
2021-01-21T06:24:19.572800
2017-02-26T19:22:37
2017-02-26T19:22:37
83,224,131
0
0
null
null
null
null
UTF-8
Python
false
false
3,649
py
commboy.py
import gift import boy import girl class commboy:#after the boy gets committed def __init__(self,name,clvrn,sxn,minhotn,budget,gir,typ): self.name=name self.clvrn=clvrn#boy's cleverness: a no. from 0-9 self.sxn=sxn#boy's attractivenss: a no. from 0-9 self.minhotn=minhotn#boy's minimum requirement of hotness: ...
9f746d7716bec7c8a9c306714bf3111fe6107b03
a0bb3f8b0605a92a5b706ca89b76e84f7afffc24
/generated/python/test/vision.py
86f314a6f8824b13ca630e012445f2b4f24d3859
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
daspecster/api-client-staging
eef2ce2c80f9b3f4a7e7283a600d77d231a81ce3
1df4d263995a0b1899bae29707348ab2edadae3b
refs/heads/master
2020-06-10T09:28:05.532921
2016-12-08T19:49:21
2016-12-08T19:49:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
734
py
vision.py
"""Functional test for Google Cloud Vision API.""" from google.cloud.gapic.vision.v1.image_annotator_api import ImageAnnotatorApi from google.cloud.grpc.vision.v1 import image_annotator_pb2 # point this at an image for your project image_url = 'gs://gapic-vision-v1/demo-image.jpg' api = ImageAnnotatorApi() image_sou...
241bdc624df0bbd2d3f813c62961f12b5c0f460d
1e1900abc849ab211386fe85ef8fa8a0db5dd0d3
/compoments/nlu/helpers/correction.py
4b2b17d9dfbe2857f5913fe10b47083032ccd319
[ "MIT" ]
permissive
wmtlike/rasa_ch_faq
7ee55d71ccc0144308f7b8547ba7cbe55f1e55f3
de875cef3af5490cb86a5b461681ab2b2409951c
refs/heads/main
2023-06-25T04:24:35.061813
2021-07-14T02:59:46
2021-07-14T02:59:46
390,896,028
1
0
MIT
2021-07-30T01:42:15
2021-07-30T01:42:14
null
UTF-8
Python
false
false
1,734
py
correction.py
from typing import List, Text, Dict, Optional, Any, Tuple from rasa.nlu.components import Component from rasa.shared.nlu.constants import TEXT as R_TEXT from rasa.shared.nlu.training_data.message import Message class TextCorrection(Component): defaults = { "model_dir": "./pre_models/xmnlp-models", # 模型地...
71d5b7a408c7f25e832c10d914f9d8c7a79f1962
2b8ab716575f1c07932e162eb12b7b83a708342d
/douban/mtime_spider/old_mtime_coms.py
864397c0fa0443f56a9db5b5bc78602e8fcbd2a0
[]
no_license
WiseKeys/crawl
9039fca7c4e0373803483ef6c84df405e10952f8
3cfef39d1d0e07b6eebf1de4bb8f24641488f4c6
refs/heads/master
2020-04-08T01:54:20.074066
2017-12-13T16:05:33
2017-12-13T16:05:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,154
py
old_mtime_coms.py
# -*- coding: utf-8 -*- """ Created on 01/11/2017 3:50 PM @author: SimbaZhang """ import requests from random import choice from lxml import etree from bs4 import BeautifulSoup as bs import re import traceback from urllib import parse from utils.log import logger from utils.mail import send_mail from pymongo import Mon...
b72e6c63a3e937dc9c62482fd8d4be5ce2c089f5
bcf7178b121a5baf5c889249997bfa6bf56fb73e
/Hill_cllimbing/epochs_graph.py
376d13d5fcd66f5f3834babfc079130e6e28c26f
[ "Apache-2.0" ]
permissive
Wookhwang/Machine-Learning
c57e03768ba20d361c284f0c14d2909b4314ee48
8eaf8517057d4beb3272081cb2f2092687123f3d
refs/heads/master
2020-12-14T15:02:15.504806
2020-02-09T14:32:02
2020-02-09T14:32:02
234,778,812
0
0
null
null
null
null
UTF-8
Python
false
false
1,395
py
epochs_graph.py
import AdalinGD as ad import matplotlib.pyplot as plt import numpy as np import pandas as pd # 붓꽃 데이터를 주소를 통해 받아온다. Header=None를 해주어 attribute의 명칭을 기록하는 행을 삭제해준다. df = pd.read_csv('https://archive.ics.uci.edu/ml/machine-learning-databases/iris/iris.data', header=None) # setosa와 versicolor 선택 # setosa이면 -1을 할...
3e6dd45a272cdb0214ac477f6356d90de65b31aa
2734b77a68f6d7e22e8b823418ad1c59fe1a34af
/opengever/ogds/base/upgrades/to3101.py
16f36e0f41699080fc5af425f496b16a2e6987ad
[]
no_license
4teamwork/opengever.core
5963660f5f131bc12fd0a5898f1d7c8f24a5e2b1
a01bec6c00d203c21a1b0449f8d489d0033c02b7
refs/heads/master
2023-08-30T23:11:27.914905
2023-08-25T14:27:15
2023-08-25T14:27:15
9,788,097
19
8
null
2023-09-14T13:28:56
2013-05-01T08:28:16
Python
UTF-8
Python
false
false
606
py
to3101.py
from ftw.upgrade import UpgradeStep from opengever.base.model import create_session from opengever.ogds.models.utils import alter_column_length class IncreaseUserAndGroupIDColumnLengths(UpgradeStep): """Increase UserID and GroupID column lengths in OGDS SQL schema.""" def __call__(self): session = cr...
92b5a7ac6d6f26e023fb61a8dd46844b38450afc
76feed07a5152d66217c1d8498c36204e4f46b83
/mileage/migrations/0001_initial.py
f199c29cda0cd22fe1b288c322d043bc25d7fdfb
[]
no_license
rladpwl0512/foodream
15ea7cea306b4fde5119b86ada6499031df37cff
d6d3857e20679692098fbc28a5f31624635b6b40
refs/heads/master
2023-01-18T19:15:59.093002
2020-11-30T13:41:59
2020-11-30T13:41:59
286,187,682
0
1
null
2022-03-31T17:20:56
2020-08-09T07:21:12
Python
UTF-8
Python
false
false
1,292
py
0001_initial.py
# Generated by Django 3.1.1 on 2020-09-28 11:02 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Mileage', fields=[ ...
59d06a73d56329c2cba8fd4f237c12d2c9a46fd3
1feea6cd786c8a1241b2a0019581e7330518ff42
/member/cached_templates/scripts/calc.jsm.py
002e821cb12b123a574fd6a96b392051100d2e8f
[ "Apache-2.0" ]
permissive
bmackley/history
2ff8eba6f81ab560b0bce5c09ca952bc3432a698
cddf1405f23c98702f2c5b4c02571b5cc20a449a
refs/heads/master
2021-03-22T01:27:21.110105
2016-02-23T21:07:00
2016-02-23T21:07:00
45,206,144
0
0
null
null
null
null
UTF-8
Python
false
false
1,224
py
calc.jsm.py
# -*- coding:ascii -*- from mako import runtime, filters, cache UNDEFINED = runtime.UNDEFINED __M_dict_builtin = dict __M_locals_builtin = locals _magic_number = 9 _modified_time = 1389308004.208106 _enable_loop = True _template_filename = 'C:\\myStuff\\calculator\\scripts/calc.jsm' _template_uri = 'calc.jsm' _source_e...
b217de6d963a422dcfe02b9fa064c2330e960b39
7a83af399a8d80a64e139d32f5ab5a39b5ace7cb
/rms_utility/affiliate/service/service.py
40a154134ffaf0664b8e8436c5e5bb797697d60f
[]
no_license
kevtraver1/RMS
e74a188afe5e0820cf903d879cdfb6d62d0db310
3bcad5b0c2f2e5e69c355727de2e105b395916e4
refs/heads/master
2022-04-23T10:00:32.833319
2020-04-27T19:36:58
2020-04-27T19:36:58
259,433,104
0
0
null
null
null
null
UTF-8
Python
false
false
190
py
service.py
#fetch data #checks on data #call domain #save and update if all is good #this does all the orchestrations stuffs #add unit of work layer to decouple last step #orchestraton is done here
49fa0492af0bcd5544e34e0274e3ab3409ab1f65
7bc88986b141a49787bab67e6211d49d0c0fa16b
/problems/0065/valid_number_manual_rule.py
8a96255bcbdb3f51378815b797f5635923f29bc3
[]
no_license
printfoo/leetcode-python
1b544021b5166ed6ba4ce80a7535d77eca1aafdc
e8169847b8dbdf049408658a0d77a5d59a736e7b
refs/heads/master
2021-01-20T07:00:18.133236
2019-11-17T03:37:20
2019-11-17T03:37:20
89,947,168
2
1
null
null
null
null
UTF-8
Python
false
false
1,556
py
valid_number_manual_rule.py
""" Solution for Valid Number. Idea: """ # Solution. class Solution: def isNumber(self, s: str) -> bool: signs = "+-" digits = "0123456789" s = s.strip().lower() # allow leading and trailing space, \t, and \n if not s: return False # After e can only b...
cf89d513d6803a3b0cda445cb442fd3870fcbc6c
2ab258174d45e11b8cce3e740181b17ab828fe12
/Statistics_Gatherer/oddmon/oddpub.py
328593e34fc7cd687e939f984ea826cb53de900d
[]
no_license
arnabkrpaul/lustreLoadBalancing
c2abd5c7be52b21efa497743ee2f89b0c04e764d
d75568d10a033be49934fb2470f256537cc7158f
refs/heads/master
2021-08-22T22:47:41.725751
2017-12-01T14:19:44
2017-12-01T14:19:44
112,746,872
2
0
null
null
null
null
UTF-8
Python
false
false
5,497
py
oddpub.py
#!/usr/bin/env python __version__ = "0.1" """ A simple distributed monitoring tool with plugin support """ import sys import time import random import logging import json import plugins import ConfigParser import pika # RabbitMQ client library import ssl # for encrypted connections to the RabbitMQ broker import...
1ce8f7272f26195e19d12ddd4f096977784cc9be
abb220936a91946738c67c5310fe98d2e450f913
/0x03-python-data_structures/7-add_tuple.py
ce607d403b63a58edd6e57815d4de59b6756c0b6
[]
no_license
JavaPhish/holbertonschool-higher_level_programming
aeaea93836238a240247a765cb3581db3e2cdc2e
21ced28281b9fb73cc158c494314b4e338472f38
refs/heads/master
2022-12-18T17:55:26.828425
2020-09-24T15:15:39
2020-09-24T15:15:39
207,327,823
1
0
null
null
null
null
UTF-8
Python
false
false
533
py
7-add_tuple.py
#!/usr/bin/python3 def add_tuple(tuple_a=(), tuple_b=()): val1 = 0 val2 = 0 if len(tuple_a) > 1 and len(tuple_b) > 1: return (tuple_a[0] + tuple_b[0], tuple_a[1] + tuple_b[1]) if len(tuple_a) > 1: val1 = val1 + tuple_a[0] val2 = val2 + tuple_a[1] elif (len(tuple_a) is 1): ...
7a8e733d76ffdf14bcdd96c9af928683dd724334
2793f5e33c77d2e36647c4c3f22f76f5e27ca452
/uiautomator2/ui.py
d0d44f7b6cb1b8cdd4c968949e6c171d7b8dc3c9
[]
no_license
Baoquanlong/vscode_mypy
f6496a6d67559cf2af665d0fccbd1536e9eb1527
51fc04be06941d6c6081c7e7b32861a02e2533f1
refs/heads/master
2023-06-06T08:05:41.945711
2021-06-28T14:56:22
2021-06-28T14:56:22
374,914,803
0
0
null
null
null
null
UTF-8
Python
false
false
777
py
ui.py
from typing import Text import uiautomator2 as u2 #链接手机 device = u2.connect('MQS0219628044133') #点击微信 # device(text='微信').click() # print(device.device_info) # print(device.app_current()) #apk_package = 'com.tencent.mm' #启动微信,通过包名 # device.app_start('com.tencent.mm') #关闭微信 # device.app_stop('com.tencent.mm') # d...
d75046ff0b18f4bdf4bc5162d4f6cc5fe011acc6
971347bc495a4c38bc3fdc61442ac7efbbfce06d
/nepse/util_nepse.py
417a71121ee1617a31eab3920d4336e89609baee
[ "MIT" ]
permissive
BkrmDahal/nepse
48299743d8506996d794157981f2405846d0053f
f8d159e351c935b7155cd6911f37be5844875ee5
refs/heads/master
2023-01-20T10:23:22.507309
2023-01-18T10:52:20
2023-01-18T10:52:20
108,440,451
9
0
null
null
null
null
UTF-8
Python
false
false
1,586
py
util_nepse.py
"""utili for npse api""" import re import csv import requests from bs4 import BeautifulSoup import pandas as pd # In[] def get_soup(url: str) -> 'Beautiful soup': headers = {'User-Agent': ('Mozilla/5.0 (Windows NT 10.0; Win64; x64)' 'AppleWebKit/537.36 (KHTML, like Gecko)' ...
ad9dd88fdcf1f910993a92c57787f5b6174121ae
02cded0413eda05c2c1ba9e3a19eaf51890ada3c
/APIGeneradorDeCuestionarios/generador/models.py
db9f508d1b21e7ff4d8edcfbc86b88f5bbe68a26
[]
no_license
josehuerta/generadorAutomaticoDeCuestionarios
32451e12ec69836f4a652b7ed12a0b344301fdb7
63260f54297d558c0b7da7d5b89bb84046897b36
refs/heads/main
2023-03-04T16:42:12.326069
2021-02-09T15:02:29
2021-02-09T15:02:29
337,440,663
0
0
null
null
null
null
UTF-8
Python
false
false
94
py
models.py
from django.db import models class Contenido (models.Model): texto = models.TextField()
ea23c3145458f5447b855e89dc8a2609c7d68a54
cfad3be655a0d30956b84c9239285fcd0acf27e6
/file_handling/read_file.py
b8c91d19baa2a294514fdbf90925df6b7ef46ca4
[]
no_license
heysushil/python-practice-set-two-with-3.8
385144330e9b8647a292762de30f01313d135421
5483bd9f7559b21b3e37fecebafc6ce8946a60b8
refs/heads/master
2023-01-21T12:37:40.051058
2020-11-19T14:29:24
2020-11-19T14:29:24
301,434,864
1
0
null
null
null
null
UTF-8
Python
false
false
1,631
py
read_file.py
import os # if os.path.exists('file_handling/files/demo.txt') == True: # print('\n I got the file') # os.rename('file_handling/files/demo.txt', 'file_handling/backup/demo.txt') # exit # choose_file_for_read() def choose_file_for_read(): pass # choose_to_write_in_file() def choose_to_write_in_file(): ...
f019cb3f297ca501c48590fc648c228015c5f932
0471bef659b52a316035c0d700b6d6f60f5ba0b7
/Proyectos/arbubu/aplicaciones/principal/migrations/0007_auto_20191106_1243.py
8224573b5c70b44e19a459de06c40b25786c305c
[]
no_license
fma0043/TFG_ARBUBU
72a301fd95e1093468451a73ef8df454c666aced
9fbc03a59618e3f04c83a8ba755055e1fecea48c
refs/heads/master
2022-11-30T03:47:33.284831
2020-01-19T19:40:19
2020-01-19T19:40:19
182,979,903
0
3
null
2022-11-21T16:43:39
2019-04-23T09:22:02
Python
UTF-8
Python
false
false
636
py
0007_auto_20191106_1243.py
# Generated by Django 2.2.6 on 2019-11-06 11:43 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('principal', '0006_auto_20191105_1844'), ] operations = [ migrations.AlterField( model_name='especie', name='nombreCi...
1d6a344c786a70a00faa59fbf5be37c84c84ce2f
868f9b66756c299579df484d3504024f4247acab
/tpypc/tpypc/pipelines.py
7442c7b30af2a62afadac28142f2953a3e5551b7
[]
no_license
601252067/scrapy
cbd1bf31fd5eb90d71165289b97bb55ad9d880f3
c296f15ec8aaa848a731ed32fc4b11d7bf725eeb
refs/heads/master
2021-01-25T12:49:22.132818
2018-03-02T02:02:14
2018-03-02T02:02:14
123,514,066
0
1
null
null
null
null
UTF-8
Python
false
false
2,459
py
pipelines.py
# -*- coding: utf-8 -*- # Define your item pipelines here # # Don't forget to add your pipeline to the ITEM_PIPELINES setting # See: https://doc.scrapy.org/en/latest/topics/item-pipeline.html import pymysql class TpypcPipeline(object): def __init__(self): # 连接数据库 self.connect = pymysql.connect( ...
1a3c99d8e9a7a22b5497e05f512410b214e09fbb
c9500ad778b8521aaa85cb7fe3239989efaa4799
/plugins/pagerduty/komand_pagerduty/util/async_requests.py
3c8e3b2b949b1ba490919e360ace25b91572079a
[ "MIT" ]
permissive
rapid7/insightconnect-plugins
5a6465e720f114d71b1a82fe14e42e94db104a0b
718d15ca36c57231bb89df0aebc53d0210db400c
refs/heads/master
2023-09-01T09:21:27.143980
2023-08-31T10:25:36
2023-08-31T10:25:36
190,435,635
61
60
MIT
2023-09-14T08:47:37
2019-06-05T17:05:12
Python
UTF-8
Python
false
false
2,576
py
async_requests.py
import aiohttp import json from insightconnect_plugin_runtime.exceptions import PluginException class AsyncRequests: def __init__(self, api_key: str): self.api_key = api_key def get_async_session(self): """ Create and return a new aiohttp ClientSession :return: aiohttp ClientS...
0bf9f5721b8c8b4e82e699f5aa571ff0c531f6f6
03778e9985613ffccd8e2076ed51e86e86f997b6
/pysad/evaluation/__init__.py
ccf3ed11435eca0931252ce9ee75534e559644d2
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
isci1102/pysad
e3fe263a075fc51ee2bce548da458222ec5a3b7a
dff2ff38258eb8a85c9d34cf5f0b876fc1dc9ede
refs/heads/master
2023-03-18T03:33:19.345541
2020-09-08T01:32:29
2020-09-08T01:32:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
366
py
__init__.py
""" The :mod:`pysad.evaluation` module includes evaluation metrics for anomaly detection on streaming data. """ from .windowed_metric import WindowedMetric from .metrics import BaseSKLearnMetric, RecallMetric, PrecisionMetric, AUPRMetric, AUROCMetric __all__ = ["BaseSKLearnMetric", "PrecisionMetric", "RecallMetric", "...
32b344dce5b14498961aa4795d4b28a07beafc96
3967090c44cba1a77dd573ac1b16566ccbdfc5d7
/utilities/importquotes.py
e53b5963b30a8898ff0122ae29f688c8a2afd41f
[]
no_license
cgperschon/slickqa
c0e79656b4352140b4ef6a31bc32415a4352b94f
6eae7361da4a95ab22377edf9d1349295d248982
refs/heads/master
2021-01-01T17:15:56.475399
2014-02-05T19:49:34
2014-02-05T19:49:34
35,633,779
0
0
null
null
null
null
UTF-8
Python
false
false
626
py
importquotes.py
#!/usr/bin/python import slickqa import sys def main(quotefile, slickurl): with open(quotefile, 'r') as quotes: slick = slickqa.SlickConnection(slickurl) for quote in quotes: chuckquote = slickqa.Quote() chuckquote.imageUrl = "https://twimg0-a.akamaihd.net/profile_images/1...
4f6408526c406a98b7867db705b87cf770aa2b5f
51c255de526c7f0b6a0f8b232a184ba69128e7af
/05_PREPAREDATA_compressing_data_feature_extraction_to_dimensionality_reduction/01_unsupervised_hand_made_PCA_wine_linear.py
9ff6e2fea43d5b2943fca5cfa88f29c69e9ec458
[]
no_license
jerrychen44/python_machine_learning_sr
eea7e2b873763c15b8582af05dfcd9b20c589123
bcf5fc0188d4aa956af46496c4498a2bb42bdc3d
refs/heads/master
2021-01-11T04:16:58.669737
2016-11-05T07:46:55
2016-11-05T07:46:55
71,191,453
0
0
null
null
null
null
UTF-8
Python
false
false
5,601
py
01_unsupervised_hand_made_PCA_wine_linear.py
import pandas as pd import numpy as np import os import matplotlib.pyplot as plt def read_data(): #df_wine = pd.read_csv('https://archive.ics.uci.edu/ml/machine-learning-databases/wine/wine.data', header=None) #read from csv filepath=os.path.dirname(os.path.realpath(__file__))#root, where the apk_integ...
b79389443e8cbad64098435e49a3d6fe0e144024
796c815b2b045ecb79a99c19978aa1cdf6f7e4dd
/label_generator_v4.py
de0cb3b93758cf8f046a1c7f54a78dcaf81489c4
[]
no_license
SpikeKing/number_scripts
e07248138d455a5ccf0066c8f6f0a2937d3b1307
5fdf95b1d93658e33eb728707a7db9ff54d0c54e
refs/heads/master
2023-07-08T21:19:25.944859
2021-08-23T14:39:07
2021-08-23T14:39:07
391,874,706
0
0
null
null
null
null
UTF-8
Python
false
false
7,562
py
label_generator_v4.py
#!/usr/bin/env python # -- coding: utf-8 -- """ Copyright (c) 2021. All rights reserved. Created by C. L. Wang on 2.8.21 """ from multiprocessing.pool import Pool from urllib.parse import unquote import pandas from myutils.cv_utils import * from myutils.project_utils import * from root_dir import DATA_DIR class Lab...
349f12655bf021c2a3564cd0c30554e09c1edec7
a2f1a02f236acc7e3202c2d6cfe5cca3ab7f1bc2
/scatterplot3d_rotation_stkde_ah_20140505.py
62d86b2ac48df165b3d7cbec48453822bab21d7e
[ "Apache-2.0" ]
permissive
alexandster/timespin
95e8f9e07d843323fee96b306ead821537ea4742
41dce529a5cbeae8e0bdfc7839101717633490d2
refs/heads/master
2021-09-07T14:44:20.063712
2018-02-23T16:58:21
2018-02-23T16:58:21
112,880,662
0
0
null
2017-12-27T22:14:06
2017-12-02T22:08:51
Python
UTF-8
Python
false
false
2,998
py
scatterplot3d_rotation_stkde_ah_20140505.py
from mayavi.mlab import * import os import math import inspect # Dear user, please specify the parameters below. If you don't do as instructed, the python will eat you! #========================================================================================================= range1 = 45 # Upper temporal bo...
c8e764efd9f33e425cf06ca8f8dd2e5b5ed08b9b
f5f5898878c6bd8f2628bb992bf9708dc87490ac
/my_solutions/ch1/check_permutation.py
2d40cb9d4db51bee378e170fbed1635d55ffb9f4
[]
no_license
gitryder/ctci-python
e5d6b818e2c5669e41b11431ecc50cb8053c8bed
341a80800b8422c2aad5745e8968f0e4b5ff5527
refs/heads/master
2020-09-16T19:35:44.854406
2019-08-20T09:31:58
2019-08-20T09:31:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
385
py
check_permutation.py
str1 = input("Enter string 1:\n") str2 = input("Enter string 2:\n") temp = [] if len(str1) == len(str2): for i in range(len(str1)): for j in range(len(str2)): if str1[i] == str2[j] and j not in temp: temp.append(j) if len(str1) == len(temp): print("Y...
723d8819b5341f1397163533f59c17ba1a74b77d
d44496228a4498f7099cba0962c7a6a06be86137
/maya/general_lesson/lesson_v01.py
3fb8316631358842497dc95d32a53872ed93fb15
[]
no_license
shrimo/vfx_dev
33da30f60076655da9963c28bc34da8950fce128
ec3e18b077fc6d7b0df8f47b5ca5797a6e75a703
refs/heads/master
2022-05-13T10:01:59.305030
2022-04-28T14:00:32
2022-04-28T14:00:32
219,617,060
3
0
null
null
null
null
UTF-8
Python
false
false
4,384
py
lesson_v01.py
""" get poly data(face center, face id, etc), select face, create object by face data setPosition for vertex (random) import sys module_path = '/home/shrimo/Desktop/course/git/vfx_dev/maya/general_lesson' if module_path not in sys.path: sys.path.append(module_path) import lesson_v01 reload(lesson_v01) lesson...
325efe65030ad3488a7fc45c0d4a289eb0b17196
ac216a2cc36f91625e440247986ead2cd8cce350
/appengine/findit/services/test/step_util_test.py
ca0373df7236cc3117d1c6720351fc52dbfa456e
[ "BSD-3-Clause" ]
permissive
xinghun61/infra
b77cdc566d9a63c5d97f9e30e8d589982b1678ab
b5d4783f99461438ca9e6a477535617fadab6ba3
refs/heads/master
2023-01-12T21:36:49.360274
2019-10-01T18:09:22
2019-10-01T18:09:22
212,168,656
2
1
BSD-3-Clause
2023-01-07T10:18:03
2019-10-01T18:22:44
Python
UTF-8
Python
false
false
26,603
py
step_util_test.py
# Copyright 2018 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import datetime import json import logging import mock from parameterized import parameterized from buildbucket_proto import common_pb2 from buildbucket_pr...
aec311cae7cb6cbe3e3a927a133ec20a2d2afbf5
6d5770c51ebe8020a0fe9600d305d907065cbb6e
/017.py
ae3c7022bc399c5fc8b5aedd26c37584f85ecbba
[]
no_license
berkayinan/Leetcode
4ca8d93099835290489896b03388f27db74cb424
1edbe63018e5a11bf326ea16cad3d80b16a1d5a3
refs/heads/master
2020-03-07T18:38:10.014310
2018-05-12T09:55:13
2018-05-12T09:55:13
127,646,373
0
0
null
null
null
null
UTF-8
Python
false
false
702
py
017.py
class Solution: def letterCombinations(self, digits): """ :type digits: str :rtype: List[str] """ if not digits: return [] result_set=[] letters={'2':'abc','3':'def','4':'ghi','5':'jkl','6':'mno','7':'pqrs','8':'tuv','9':'wxyz'} def permuta...
2dbb1051b35898288db629fd0c5b3887c429e9b8
fbe68d84e97262d6d26dd65c704a7b50af2b3943
/third_party/virtualbox/src/VBox/Devices/EFI/Firmware/BaseTools/Source/Python/Common/MigrationUtilities.py
3fb2bab26413f1149bc9d5b3edf6a0b8932e6203
[ "GPL-2.0-only", "LicenseRef-scancode-unknown-license-reference", "CDDL-1.0", "LicenseRef-scancode-warranty-disclaimer", "GPL-1.0-or-later", "LGPL-2.1-or-later", "GPL-2.0-or-later", "MPL-1.0", "LicenseRef-scancode-generic-exception", "Apache-2.0", "OpenSSL", "MIT", "BSD-2-Clause" ]
permissive
thalium/icebox
c4e6573f2b4f0973b6c7bb0bf068fe9e795fdcfb
6f78952d58da52ea4f0e55b2ab297f28e80c1160
refs/heads/master
2022-08-14T00:19:36.984579
2022-02-22T13:10:31
2022-02-22T13:10:31
190,019,914
585
109
MIT
2022-01-13T20:58:15
2019-06-03T14:18:12
C++
UTF-8
Python
false
false
19,834
py
MigrationUtilities.py
## @file # Contains several utilitities shared by migration tools. # # Copyright (c) 2007 - 2014, Intel Corporation. All rights reserved.<BR> # This program and the accompanying materials # are licensed and made available under the terms and conditions of the BSD License # which accompanies this distribution. The full...
645f8f1ebd3bfa0ba32d5be8058b07e2a30ba9b5
a16e3229a02ccc06b6d66a73a76db51ce14acbad
/barriers/migrations/0012_auto_20171002_1441.py
2f4f5829a54a5e01c87fbc84853069aef5c222f9
[]
no_license
uktrade/market-access-prototype
5d1c83fb63fe35f185c1e2d25e3bd06ee1c46f0b
3d040d2a64a9051947133941caed3edb5afb0931
refs/heads/master
2021-07-24T19:18:05.826356
2017-11-05T20:53:14
2017-11-05T20:53:14
104,319,717
0
0
null
null
null
null
UTF-8
Python
false
false
13,511
py
0012_auto_20171002_1441.py
# -*- coding: utf-8 -*- # Generated by Django 1.11.4 on 2017-10-02 14:41 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion import mptt.fields class Migration(migrations.Migration): dependencies = [ ('barriers', '0011_auto_20170904_1658'), ...
a34584a71fdff65e5b1bb15a6304af79774dac2c
4be3e857eb24017078856f07d85b58c02e4374ef
/dci/alembic/versions/1bb42ff54435_change_varchar_id_to_uuid.py
67ebf2d26577fa0b38b25bd57f77129a60442474
[ "Apache-2.0" ]
permissive
CNXTEoEorg/dci-control-server
a442f81b0a32c5e6ead1414d006eeb77bbe606df
b171fcec065e5254fbac32c33f7e6f0abb0079b9
refs/heads/master
2018-02-07T14:55:56.124352
2017-06-30T19:14:19
2017-06-30T19:14:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
14,685
py
1bb42ff54435_change_varchar_id_to_uuid.py
# # Copyright (C) 2017 Red Hat, Inc # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writin...
a288e66e64d386afd13bfc7b5b13d4a47d15cd6d
88a48541d548a8b93d6dda12a464484da5ce18ae
/Models/models.py
a7f05111c25d4867d334e5f32dc24f2a6efd1849
[ "MIT" ]
permissive
RomaOkorosso/fes-test-task
93a024198c0f6a473958648ec8542276e278fcb2
cfd8212dfbc9b2b0669ce6e1ea0a59b3f96809dc
refs/heads/master
2023-03-26T20:32:56.758678
2021-03-22T16:24:57
2021-03-22T16:24:57
350,404,290
0
0
null
null
null
null
UTF-8
Python
false
false
1,524
py
models.py
# created by RomaOkorosso at 21.03.2021 # models.py from datetime import datetime from sqlalchemy import ( Column, Integer, String, Boolean, DateTime, ForeignKey, Date ) from sqlalchemy.dialects import postgresql from sqlalchemy.orm import relationship from Database.database import Base ...
2ec41e02c95a270455c096e85829b7220eeda0c7
bbc08401999073b0883ddbbbaae10f0a98a65bf0
/newsletter/admin_views.py
774921fae2abf512a3266f15ac191cdbd3c4b715
[ "BSD-3-Clause" ]
permissive
sunjoomoon/django-newsletter
5979bbcbc65f63b9067e45935d9d63bfedcd2b28
e2dc577db216405fe13a64a2f69a740b49c458ad
refs/heads/master
2021-01-15T14:11:36.030807
2013-11-29T10:55:13
2013-11-29T10:55:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,941
py
admin_views.py
import xlrd from django.shortcuts import redirect from django.contrib import messages from django.utils.translation import ugettext_lazy as _ from django.core import validators from utils.views import render_to from accounts.models import Account from .models import ExternalSubscriber from .forms import ExternalSubsc...
b42414b7d8ed80d8794ab7c49dfde1e5df0721f1
122854cade829aa82d16c0e7b0b4f0f1b4a08eb3
/messengerext/config/settings_base.py
721c7e477984b1a8c973f5dcbea912def2bb2275
[ "MIT" ]
permissive
fakegit/groupsome
7f7b087d2fcf4be829548924322cf6ad61ba519f
4edcf30d66ff458c4df37d3198ef187219a768d7
refs/heads/master
2022-04-03T16:22:03.351827
2016-10-07T12:24:32
2016-10-07T12:24:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,791
py
settings_base.py
""" Django settings for gamelibrary project. Generated by 'django-admin startproject' using Django 1.9.5. For more information on this file, see https://docs.djangoproject.com/en/1.9/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.9/ref/settings/ """ import o...
449ae193f8817d4ee2fe67eadf72d9c19b2c5e53
86f86dcc531e362831cb60f767eb872aaa575f38
/movie/models.py
571151f9fef483be14631f2a69c512af702eb091
[]
no_license
yexiaoguai/blogproject
b814a120ca47c764ffc353c15c7bd4b9db851f3d
bb69368b73e1632076cd9353381351250588f246
refs/heads/master
2021-01-25T06:36:25.277817
2017-07-28T09:08:46
2017-07-28T09:08:46
93,547,142
0
0
null
null
null
null
UTF-8
Python
false
false
3,781
py
models.py
# -*- coding: utf-8 -*- from __future__ import unicode_literals import markdown from django.db import models from django.contrib.auth.models import User from datetime import datetime class MovieRankings(models.Model): """ 各种电影排行榜. """ name = models.CharField(max_length=100) def __unicode__(self)...
354dfcb87cf4ee516e1e4e1587732048cffb9a9c
8ffbec4227bb425088807f50ccaf822f23aabd9f
/python_api/marklogic/models/database/index.py
073eda48f7b3afec6d225bee612abaaf11021564
[ "Apache-2.0" ]
permissive
supriyantomaftuh/python_api
9227dcab0410227fa2b87ade3f9415cb3e6d13a6
a077be723efdd0b4d6a68736d80a9f7dc369ced8
refs/heads/master
2018-03-10T22:24:01.683072
2015-08-21T17:01:08
2015-08-21T17:01:08
41,457,736
0
4
null
null
null
null
UTF-8
Python
false
false
20,684
py
index.py
# # Copyright 2015 MarkLogic Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0# # # Unless required by applicable law or agreed to i...
e81d7a77c9e0f4124ac8d065459ec9881f333e59
56c6a57db903979bad3a876e80ea5c1269cc6f8b
/libraries/crypto/private_key.py
290a0b6f87c3ee9ea1f61bdc0d7b42289f23cc9c
[]
no_license
benzoa/pythonStudy
ea28916265e4223eed0043a274b702d1f997f578
ae36a0daf360d7e948fb6b3704ecbf2629cc5e4e
refs/heads/master
2021-03-29T18:20:57.966073
2020-10-31T13:08:20
2020-10-31T13:08:20
247,975,252
0
0
null
null
null
null
UTF-8
Python
false
false
201
py
private_key.py
from Crypto.PublicKey import RSA rsa = RSA.generate(2048) # private key private_pem = rsa.exportKey(format='PEM', passphrase='password') with open('private.pem', 'wb') as f: f.write(private_pem)
0fdec055185d60c3d4238dfc43bad318f0bcf76c
1aebeeeb076a512e1ae5a010f9b0ed9d2c323d14
/strategy/live/OptionScalper_Live.py
eb3f8fe2c4bee3b71acba8b72ba75bfbd2ea2ea0
[]
no_license
kiniamogh/xts
a59af7abd8ef3ff0d1c7a65fd9ac439c49821b3c
6a2f073534f7f75cbdc0fe1284d83d68b816c436
refs/heads/main
2023-08-15T00:02:54.498158
2021-09-22T14:01:48
2021-09-22T14:01:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
30,295
py
OptionScalper_Live.py
# -*- coding: utf-8 -*- """ Created on Sun Mar 7 13:22:38 2021 Option Scalper Live Script (Strategy-2) @author: mling """ ############## imports ############## from datetime import datetime,date from dateutil.relativedelta import relativedelta, TH, WE from XTConnect.Connect import XTSConnect import XTConnect.Exception...
4423606cd3e443b23f3f5c15a20d0c36157ad349
22613c7f6d51f955476bea5aa46481cf6a2f8234
/travel-versi2/controllers/schedule.py
614d707850effef7abb4773ba36bc85ff144f36e
[]
no_license
adahra/travel
afde233c2a28759419930a71499df3cf888e3a73
a5a71d495950f69020eb57526604450f68ed21ea
refs/heads/main
2023-02-09T23:13:41.493587
2021-01-07T09:48:45
2021-01-07T09:48:45
327,565,459
1
0
null
2021-01-07T09:35:53
2021-01-07T09:35:52
null
UTF-8
Python
false
false
1,183
py
schedule.py
#import json #import array from odoo import http from odoo.http import request from odoo.exceptions import ValidationError # # Website Travel untuk Schedule # class Schedule(http.Controller) : # # Mendapatkan List Schedule # # @http.route('/travel/schedules', type='http', auth='public', methods=['GET'], website=True...
8071019928ca4fc67d6498975d3ef10e4d912ce7
6dca808360feb75411e41edd24cd00756ff9a528
/utils.py
d177797a9dee5bd09ed28f6889265d25d3fdcc10
[ "MIT" ]
permissive
jcsharp/DriveIt
555f944c38b760e8d1cdbace1d43f1481b710d38
656fdff219d743794b56d468709456bdaa263ec9
refs/heads/master
2020-01-23T21:52:57.412798
2019-06-04T14:45:41
2019-06-04T14:46:29
74,735,363
0
0
null
null
null
null
UTF-8
Python
false
false
3,006
py
utils.py
# -*- coding: utf-8 -*- """ @author: Jean-Claude Manoli """ import math import numpy as np from numpy import cos, sin, pi right_angle = pi / 2.0 three_quarter_turn = 3.0 * pi / 2.0 def canonical_angle(x): ''' Gets the canonical value of an angle. ''' return wrap(x, -pi, pi) def wrap(x, m, M): ...
e1032ef206483c7966e2fe2805057bbee92b711f
7e9864a12caad37569ac018a2c2a5bac60a079e4
/habakkuk-alpha_new/elasticsearch/dump_data_for_date.py
4c0cd683b2e6cf6cfc4aa4541ad3e20b7ef90535
[]
no_license
lbzv9/Report3
2d607f0e960ea5cd480318413aa4db1579129872
7b2d339776a029120a6f29367a4269ab96c684eb
refs/heads/master
2022-12-05T17:41:23.119220
2014-12-09T05:12:15
2014-12-09T05:12:15
27,750,501
0
0
null
2022-11-16T03:54:58
2014-12-09T05:07:23
Java
UTF-8
Python
false
false
2,678
py
dump_data_for_date.py
#!/usr/bin/env python """ dump elasticsearch data to json based on date """ from pyes.es import ES from pyes.query import MatchAllQuery,FilteredQuery from pyes.filters import RangeFilter from pyes.utils import ESRange from datetime import date,timedelta,datetime import jsonlib2 as json import shutil,os,sys,gzip from op...
b1e916a70b8b09872fa1a46c9267b9eef4050795
bf7e09b43c065022b83968aa8ea2801acbba0bfe
/train_learn_F01.py
af7ce9c90b10fca33ca05396b1c43bfa180e3cbc
[]
no_license
JeSuisUnProgrammeur/AAI-Network-SAFN
4f28b94c90b3a521915a151993347708690f4750
bccc16bb1311d8298a8250f64a6ad6018bde5b3b
refs/heads/main
2023-03-22T10:26:33.591854
2021-03-22T11:53:51
2021-03-22T11:53:51
304,305,817
1
0
null
null
null
null
UTF-8
Python
false
false
22,523
py
train_learn_F01.py
#!/usr/bin/env python # -*- coding: utf-8 -*- import os, sys, inspect currentdir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe()))) parentdir = os.path.dirname(currentdir) sys.path.insert(0, parentdir) import os import numpy as np import argparse from Training.model_learning_F01 import my_a...
8b188bc0ec167b2d9b45c076d6f3b86ff89ea4a5
fdb7d250c6dbb77bd19059dba1f2a8b8e8c69c23
/main.py
3a30fad4d2524f39a008572fedaabc8ef553f17a
[]
no_license
alexdebrie/corey-luigi-demo
e7ebbe1c13d19e6cfaf2c9b3a00e23d3d447ffac
479362013157be41c05e58069f2a11e924b566c9
refs/heads/master
2021-06-23T05:38:23.255691
2019-11-22T15:24:42
2019-11-22T15:30:25
223,431,292
0
0
null
2021-06-02T00:41:20
2019-11-22T15:25:08
Python
UTF-8
Python
false
false
2,166
py
main.py
import luigi from luigi.contrib.s3 import S3Target BUCKET = 'alex-luigi-test-bucket' ## Update this to your bucket name # Each run of the script should call out to a class that subclasses luigi.Task class MyS3Report(luigi.Task): # This Task subclass will take some parameters that are specific to each run, s...
545531a172919238e27d3251742fda615b2af202
1ac66ef4f7438f6499f216035debc3209d32ce28
/Beginner/MinToHr.py
59890e10c79559aca79ea16d3bab683e33b01c09
[]
no_license
StephenRaymond/COMPETITIVE-PROGRAMMING
2c41afb014d95317956e3892123f84de7e399141
501e030ac062b932967d5c55573e9d16c84c06af
refs/heads/master
2022-12-19T03:03:52.888931
2020-09-29T11:08:09
2020-09-29T11:08:09
299,588,394
0
0
null
null
null
null
UTF-8
Python
false
false
137
py
MinToHr.py
n=int(input()) hr=0 min=0 if n<60: print(hr,end=' ') print(min+n) else: a=n//60 print(a,end=' ') b=n%60 print(b)
e9de617a7d5db215a1d2962b19698dd4cf659a9c
e69c0b63b6bdee0d436baf71423541df7bd671a1
/main.py
c7089025f95afb60ab87b4da0b5d616c21755ea2
[]
no_license
wordtinker/TaskTools
aa192f2f6bb705942c43fe431f4bf4279e3afadc
fb4cdf8b4692a3616701d7358fe756d72faec623
refs/heads/master
2016-09-05T20:00:12.189970
2015-04-22T22:29:34
2015-04-22T22:29:34
32,929,270
1
0
null
null
null
null
UTF-8
Python
false
false
15,447
py
main.py
from PyQt5.QtCore import Qt, QAbstractListModel, QModelIndex, pyqtSignal,\ QSize, QMimeData, QVariant, QObject from PyQt5.QtWidgets import QApplication, QMainWindow,\ QListView, QLabel, QAbstractItemView from ui.mainWindow import Ui_MainWindow from taskedit import TaskEdit from genmanager import GenManager fro...
c5e0733eb28055258c0064575daec78e4a57970b
e9b630120028f7440d010b9e53c28f25decb69ed
/0430/mysite/blog/urls.py
a7a0463a458ce54cc8bc6020649df3d8617882d8
[]
no_license
JackieRobinson42/JerryHW
c4edce71e8977fa7ff4fa71b232e10b2e35604f0
4aaa59958d2147a4406e053be4a702f8d0aaf12f
refs/heads/master
2022-11-07T13:01:28.941500
2018-05-11T15:32:01
2018-05-11T15:32:01
125,753,866
0
1
null
2022-10-09T23:17:45
2018-03-18T18:12:53
Python
UTF-8
Python
false
false
192
py
urls.py
from django.conf.urls import url from .import views urlpatterns = [ url(r'^$',views.blog,name = 'blog'), url(r'^new/',views.new,name = "new"), url(r'^edit/',views.edit,name = "edit"), ]
aab8fc5098b47fb26ebb3934cc691e17a889d5b7
28de04457e8ebcd1b34494db07bde8a3f25d8cf1
/easy/cousins_in_binary_tree_993.py
f9287873cb94acd19408fcbe621ff96a10db1f37
[]
no_license
YangXinNewlife/LeetCode
1df4218eef6b81db81bf2f0548d0a18bc9a5d672
20d3d0aa325d79c716acfc75daef32f8d4f9f1ad
refs/heads/master
2023-08-16T23:18:29.776539
2023-08-15T15:53:30
2023-08-15T15:53:30
70,552,512
0
0
null
null
null
null
UTF-8
Python
false
false
851
py
cousins_in_binary_tree_993.py
# -*- coding:utf-8 -*- __author__ = 'yangxin_ryan' import collections """ Solutions: 题目的含义是找出来二叉树的兄弟节点。 兄弟节点定义: 高度相同,父节点不同。 我们使用深度遍历,并记录下高度和父节点,最后比较即可。 由于每个节点不同我们可以使用set来记录。 """ class CousinsInBinaryTree(object): def isCousins(self, root: Optional[TreeNode], x: int, y: int) -> bool: self.tree = collectio...
d42e12bce0c2e7f336683e1516e21be6d7514c03
cfd80873140b1b8d037b49f89195dbba0f3be5d6
/5_Mortal_Fibnacci_Rabbits_Version_2.py
70eef4b9d88e8ddb7d34ad2bfd694af7c6fae975
[]
no_license
VineethSendilraj/RosalindBioinformaticsCourse
a3765bcd93a5e92f25cc4da75b967740377e7d82
6d6b7ca16914afa77ea658af2f412bbc29c844e8
refs/heads/main
2023-06-30T01:39:23.381307
2021-08-02T16:12:00
2021-08-02T16:12:00
327,121,005
1
0
null
null
null
null
UTF-8
Python
false
false
781
py
5_Mortal_Fibnacci_Rabbits_Version_2.py
# 1: count, 2: count, 3: count die rabbits={} months = 95 maxLifeCount= 20 for lifeCount in range(1,maxLifeCount+1): rabbits[lifeCount]=0 rabbits[1]=1 # 1:1 2:0,3:0 for month in range(months - 1): numberofBabies =0 # go from last month to 0 for lifeSpanMonth in range(maxLifeCount,0,-1): ...
ce0d65a0b0e39b03f463c364ec1d080284de760c
5b683c7f0cc23b1a2b8927755f5831148f4f7e1c
/BigData/learn_and_tests/kafka/producer/kafka_producer_compress.py
e456ae8d65472197be840a2bdfa3d293764bd36f
[]
no_license
Shmilyqjj/Shmily-py
970def5a53a77aa33b93404e18c57130f134772a
770fc26607ad3e05a4d7774a769bc742582c7b64
refs/heads/master
2023-09-02T04:43:39.192052
2023-08-31T03:28:39
2023-08-31T03:28:39
199,372,223
1
0
null
null
null
null
UTF-8
Python
false
false
1,772
py
kafka_producer_compress.py
#!/usr/bin/env python # encoding: utf-8 """ :Description: Kafka生产者发送压缩数据流 :Author: 佳境Shmily :Create Time: 2021/11/25 21:44 :File: kafka_producer_compress :Site: shmily-qjj.top """ import gzip from kafka import KafkaProducer import time from kafka.errors import kafka_errors import io BOOTSTRAP_SERV...
86ea880de7ef23dff7a2e3635cc6f6581eab4d75
3dd2d572213cdddbc4e1a47656b344bada018b61
/server/code/game/task/task_mgr.py
4710d30834990f11819237f98759600e051e7dbc
[ "MIT" ]
permissive
hw233/twisted_zdzl
d7632dfd20ac6e8fcf7beecaeeda327de075359d
fb97923c503aa032b08774323cda2b2c603efe41
refs/heads/master
2020-03-19T09:48:13.108622
2016-05-05T06:51:34
2016-05-05T06:51:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,837
py
task_mgr.py
#!/usr/bin/env python # -*- coding:utf-8 -*- from game.base.msg_define import MSG_RES_RELOAD from game.base.constant import (TT_BRANCH, TT_HIDE, TT_MAIN, TT_OFFER, TUL_EQUIP, TUL_ITEM, TUL_LEVEL, TUL_ROLE, TUL_TASK, ) from corelib import log from corelib.data import IntRegionMap class TaskMgr(obje...
5227370a2ebe38b798161aa2d76d3dec0672f648
ea93e6f9654611f061e531ba6bb2e65cf658f70d
/mq/tests/test_mq_facade.py
ebb8d3ba660af289c606e9aa25effa90d6546e49
[]
no_license
warforgad/final
2ac2d1d83c6b5fed8754a5b415ec6e67868f0f58
e370221c7c8b283c7ac3d1169b1798777b3628c1
refs/heads/master
2021-01-11T23:44:12.368136
2017-01-16T15:36:39
2017-01-16T15:36:39
78,629,936
0
0
null
null
null
null
UTF-8
Python
false
false
285
py
test_mq_facade.py
import mq_facade MESSAGE = 'test message' def test_facade(): publisher = mq_facade.Publisher('test') subscriber = mq_facade.Subscriber('test') publisher.publish(MESSAGE) method_frame, properties, body = subscriber.consume().next() assert body.decode() == MESSAGE
f1ceaad148968bfc0236d11d74b5fe79a426c3cd
95809243d68745337017f5b0bde1cc6862a47407
/src/146.py
37f7bbf74dfbf2d4624e132943369edf35e13ca3
[]
no_license
liuyaqiao/Algorithms
403ea768f5cf39583e86b86baca84c05c0e34f65
14193efc60bd3ec9cef48e777fdba022ce190285
refs/heads/master
2020-04-07T11:52:14.974453
2019-03-22T17:04:32
2019-03-22T17:04:32
158,344,870
0
0
null
null
null
null
UTF-8
Python
false
false
1,599
py
146.py
class ListNode: def __init__(self, key = None, value = None, next = None): self.key = key self.value = value self.next = next class LRUCache: def __init__(self, capacity: int): self.head = ListNode() self.tail = self.head self.hash = {} self.capacity = ...
5431ac307bba5c56b200abe12dcd29996063f345
f0681b8c129e8afce21e340697502230f45ce930
/venv/Lib/site-packages/com/vmware/esx/settings/hardware_support_client.py
4974a1fad1bc5f5158cfeef37892436bf9b2812f
[]
no_license
dungla2011/python_pyvmomi_working_sample_vmware_easy
8852b6fdcd0f7d0f648f6f7b6c6e4f70c7213746
a3b6d86a802f28c7ee249fc03523d5e5f0a2e3bd
refs/heads/main
2023-07-05T14:56:46.551091
2021-08-20T12:19:39
2021-08-20T12:19:39
395,496,219
1
0
null
null
null
null
UTF-8
Python
false
false
7,234
py
hardware_support_client.py
# -*- coding: utf-8 -*- #--------------------------------------------------------------------------- # Copyright 2021 VMware, Inc. All rights reserved. # AUTO GENERATED FILE -- DO NOT MODIFY! # # vAPI stub file for package com.vmware.esx.settings.hardware_support. #----------------------------------------------------...
d90f1df357af6de911313013fbcba7a345bb6d99
404d16667b694a899b1a175a3972fe65baaf206e
/Hangil/day24_2662_choi.py
0e66e4b9c9c07bae548bda8ce2ec5f822c0f20d3
[]
no_license
NOCHISUNG/DailyPS
48df4c353c9e6601dfe930cdfaea5613ce7780c3
577abcdad2eed3e613203557de0b296f2e7d0595
refs/heads/main
2023-07-18T11:38:29.545178
2021-08-29T01:44:41
2021-08-29T01:44:41
392,146,646
0
0
null
2021-08-13T02:39:19
2021-08-03T01:25:08
Python
UTF-8
Python
false
false
977
py
day24_2662_choi.py
import sys input = sys.stdin.readline n, m = map(int, input().split()) #company[x][y] x회사에 y원 투자할 때 가치 company = [[0 for money in range(n+1)] for com in range(m+1)] #dp[x][y] x회사까지 y원으로 얻을 수 있는 최대 가치 dp = [[0 for money in range(n+1)] for com in range(m+1)] #back[x][y] dp[x][y]를 결정할 때 x 회사에 투자한 금액 back = [[0 for mon...
746021bd0cbb42968e96f299550f303d9cc61fae
7ece038fbc68de16ad6d0f153b3ffd4606453721
/app/render_manager/base.py
1880d135b4ed22ebf06acf08f9b69b56e8e0fc1d
[ "MIT" ]
permissive
KaiserMovet/K-homeServer
74d314d45338de2cf196f291f1e3518eefb1f034
2f367359b17061eb75d7b64f4982d3c8e7ca837e
refs/heads/master
2023-01-28T22:34:19.651640
2020-11-24T03:51:19
2020-11-24T03:51:19
266,869,637
2
0
null
null
null
null
UTF-8
Python
false
false
861
py
base.py
from flask import render_template, request class Base: BASE_TEMPLATE = "base.html" @staticmethod def get_theme(theme): themes = { "white": [ 'theme/ccolors.css', 'node_modules/bootstrap/dist/css/bootstrap.css', ], "dark": [ ...
ab067e87fa67e5391d52044a7f68bfb3169cde61
f434aad7a9296ef8ab47c1bd6e23ee06e090b4a9
/reqres.py
acc24b92911a96b7a153644bc2dd3a2c6a7f3d5d
[]
no_license
salekinsirajus/DIPP
7857564776791e20cd991e2bfbdb778d372e5332
1808a5174cc9295f565978c91b010e7535935fa7
refs/heads/master
2021-08-31T11:36:56.131835
2017-12-21T07:18:01
2017-12-21T07:18:01
110,488,071
1
0
null
null
null
null
UTF-8
Python
false
false
1,025
py
reqres.py
# This module implement request-response methods. from payloadParser import res, parse_payload def req_res(method, payload): # If it's a REQ field, try match with the listed things # Come up with a response, return the response to caller # if it's RESponse field, print thanks. (or get me out of the loop?)...
0112f6b24a28610cad2d7003b0b307e32974dc5e
491875b5eda930c881473e8b3ed4d63bf198fc32
/tests/test_invenio_bulkindexer.py
edb065fe9b2f222c2c938a341c3f4fa730bb4d6a
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
topless/invenio-indexer
c6c978ebf6914b7742a33c593f0f9d20c694b455
514fe2e18da651e501164d3eb54a490a5f79f988
refs/heads/master
2020-04-11T12:46:55.116193
2018-12-14T14:03:21
2019-05-24T14:15:28
161,792,020
0
0
MIT
2018-12-14T14:00:30
2018-12-14T14:00:29
null
UTF-8
Python
false
false
2,668
py
test_invenio_bulkindexer.py
# -*- coding: utf-8 -*- # # This file is part of Invenio. # Copyright (C) 2016-2018 CERN. # # Invenio is free software; you can redistribute it and/or modify it # under the terms of the MIT License; see LICENSE file for more details. """Module tests.""" from __future__ import absolute_import, print_function import u...
71eac053f47563953020e285586427258c6e11b9
f27227d045c6954bee82334c4fee064db86432af
/Create pendulum database.py
743f4b11321bc80f8fabcaf16302268efd22bf15
[]
no_license
Bironicus/A-level-project
8e6784588a5e8a72de927948ab73bee3a846b31f
d987c5e159f4de9b8201924b22d4b9bc1d28550b
refs/heads/master
2021-01-02T20:12:18.305636
2020-04-30T17:21:58
2020-04-30T17:21:58
239,781,265
0
0
null
null
null
null
UTF-8
Python
false
false
671
py
Create pendulum database.py
import sqlite3 def create_table(db_name,table_name,sql): with sqlite3.connect(db_name) as db: cursor = db.cursor() cursor.execute("drop table if exists {0}".format(table_name)) cursor.execute("select name from sqlite_master where name = ?",(table_name,)) cursor.execute(sql) ...
298d74186cdd04ea8dc2cac440d6a498071c2991
4473811d5ffa2a60adbad8f848b47e12d9d3b6e1
/python/LinkedList.py
8d4e95c13c2bd4a72b8bb49e58b436a90cb37c27
[]
no_license
EvansDaniel/Coding-Problems
538aa95dcb78de79a231637810badc14b7644a2c
bab7dd53e693a10457e4e62be0989363060dc007
refs/heads/master
2020-05-21T23:10:31.274904
2016-10-03T13:51:28
2016-10-03T13:51:28
58,461,833
0
0
null
null
null
null
UTF-8
Python
false
false
1,891
py
LinkedList.py
class LinkList: def __init__(self): self.nil = LinkListNode(None) self.nil.next = self.nil self.nil.prev = self.nil def insert(self, x): x = LinkListNode(x) x.next = self.nil.next x.prev = self.nil x.next.prev = x x.prev.next = x def search(s...
12a63698467e5a1fdeaf5d7e8f98bd23f8cfc981
693f4f147fdde00b2d728318332a8d4e0748b91f
/ch3/ex3-3.py
d94a13cbf066da5cb6c602c6e4478aa5acf6e296
[]
no_license
kbcmdba/pcc
792f426ac096798971ba45d67359d46599cae54d
4008703ada445fc9c8944ce83740fc65573bdbce
refs/heads/master
2022-02-07T23:07:23.717442
2019-08-11T22:05:37
2019-08-11T22:05:37
198,295,701
0
0
null
null
null
null
UTF-8
Python
false
false
242
py
ex3-3.py
manufacturer = ["Cessna", "Beechcraft", "Mooney"] print(manufacturer[0] + " makes airplanes that I like to fly.") print(manufacturer[1] + " makes airplanes that I like to fly.") print(manufacturer[2] + " makes airplanes that I like to fly.")
962183b4c36716348d8a56312d1384609b606864
031f6df209a71e4afc288f24d074a738e0e12015
/total.py
20da06a1a041c472c5b13bf86fd449fa7c7c4733
[]
no_license
Sky19980923/Zero-Shot_Learning
8ca3dcb97aa090fe286b5c1f91fba6cab44b134d
3e814a423e76aad1f8c90dbb4776278bb284c844
refs/heads/main
2023-05-24T00:04:49.428500
2021-06-22T07:33:49
2021-06-22T07:33:49
379,126,811
1
0
null
null
null
null
UTF-8
Python
false
false
10,253
py
total.py
from sklearn.linear_model import Lasso,SGDRegressor,PassiveAggressiveRegressor,ElasticNet,LinearRegression,LassoCV, Ridge, MultiTaskLassoCV import os import cv2 from PIL import Image import numpy as np import pandas as pd import torch from torchvision import datasets, models, transforms from torch.autograd import Varia...
6e9b311cb8e1535989efc29d488dfc3de33a6562
f9ec78257003435c25303d3b90343cc285dc216e
/mygithubprojects.py
0fcae0d3e3d9c4c2dd99075cba137ee288a5ed9e
[]
no_license
kaushikgandhi/MyGithubProjects
7b114a13f2bfb3495ed5d933fcdebfd0cfb4d67a
be64a9b7589b2a1b170ac2af5d2ee36e6ec01a0d
refs/heads/master
2020-12-31T02:14:29.056831
2013-02-03T12:15:41
2013-02-03T12:15:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,809
py
mygithubprojects.py
# -*- coding: utf-8 -*- from __future__ import absolute_import import json from github import Github class MyGithubProjects(object): """ Get your projects and upstream projects you contribute to in Github. """ def __init__(self, access_token, username): """ Initialize MyGithubProject...
a28bd1843cf4d2d4a9d5b4f6963d1cd4b131b74b
0569a4eea1206fd9ac72ad40e06a15517a0eb474
/examples/models/bernoulli/create_conv_rbm.py
8d2dda40129beae02e87fbab567dbea5a175c861
[ "Apache-2.0" ]
permissive
gugarosa/learnergy
38ef1d9c4b9c5bdcac40407797ae1d07207c99b6
027401355c38b088fbf3d4f70fafd0b37d598362
refs/heads/master
2023-08-11T16:50:14.170051
2023-08-03T13:12:41
2023-08-03T13:12:41
189,021,939
63
8
Apache-2.0
2023-09-01T16:50:10
2019-05-28T12:14:39
Python
UTF-8
Python
false
false
272
py
create_conv_rbm.py
from learnergy.models.bernoulli import ConvRBM # Creates a ConvRBM-based class model = ConvRBM( visible_shape=(28, 28), filter_shape=(7, 7), n_filters=10, n_channels=1, steps=1, learning_rate=0.01, momentum=0, decay=0, use_gpu=True, )
21385e88a96d3925c8d17715356b22a2d164747d
1057e36d5fe56b04a0bbe0395ebdf7251983e168
/demo/monkey/Monkey.py
f2c43d01fd856d1e4b419175eb1b60fc91d1d8b1
[]
no_license
BillDior/Autotest
643d864864d7e16cb804bb29d0ed6c60268f2f92
8a9f8f7364d373227089c9e2502d60bf10771f0a
refs/heads/master
2020-05-21T21:21:55.588900
2019-06-16T05:45:20
2019-06-16T05:45:20
186,151,923
0
0
null
2019-05-11T15:47:09
2019-05-11T15:47:09
null
UTF-8
Python
false
false
13,248
py
Monkey.py
# _*_ coding:utf-8 _*_ """ Monkey.py 作用为从UI获取具体的操作 通过socket发送消息给MonkeyServer进行具体操作 简化MonkeyServer的功能,仅接受信息并进行简单操作。 功能: 1.创建测试队列 2.保存、读取测试队列 3.控制测试的运行 """ import sys import time import random import os from Operation import * from MonkeySender import * logpath = "log.txt" oplist = [] resolu...
efeade45873b0b3b76dcfdd82620edd0ba0800d9
481b7922a39c514e12087b8fde1e6595315ecaa3
/social/views.py
8cb263c237cac2ddf66400ff801b84561c8f3c96
[]
no_license
Zolo-2000/mape-1
3ad994b285229924f23a3a895a925b7551ba3ebd
87651ff08590ff5dd2685fa08956632493ee97c9
refs/heads/master
2021-01-19T22:21:46.884952
2017-08-31T16:23:57
2017-08-31T16:23:57
88,803,138
0
0
null
2017-04-20T00:27:07
2017-04-20T00:27:07
null
UTF-8
Python
false
false
6,052
py
views.py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db.models import Q from django.shortcuts import render, redirect from django.contrib.auth import login as auth_login, logout as auth_logout from django.contrib.auth.forms import AuthenticationForm from django.contrib.auth.models import User f...