blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
2
616
content_id
stringlengths
40
40
detected_licenses
listlengths
0
69
license_type
stringclasses
2 values
repo_name
stringlengths
5
118
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringlengths
4
63
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
2.91k
686M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
23 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
213 values
src_encoding
stringclasses
30 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
2
10.3M
extension
stringclasses
246 values
content
stringlengths
2
10.3M
authors
listlengths
1
1
author_id
stringlengths
0
212
e8bde86277f01bc58c8ad8188141d71a9cda07b1
6ab3d9e0b923bd8b0859a17c0355a7a1a9cc433e
/lab6/prims.py
e981790988d4cb1702de9bf50c4e200be04eea4e
[]
no_license
vishal-nirne/DAA-LAB-WORK
1328237b2b9249f250411d3cd955beb550cbf6b6
7b3157b56446feeb433c8cc79ff9b210b1be350b
refs/heads/master
2020-08-17T03:53:00.280864
2019-10-16T17:17:34
2019-10-16T17:17:34
215,603,473
0
0
null
2019-10-16T17:17:35
2019-10-16T17:16:36
null
UTF-8
Python
false
false
1,177
py
import heapq as heapq class ver: def __init__(self,u,v,w): self.u=u self.v=v self.w=w class Graph: def __init__(self,n): self.V=[[] for i in range(n)] self.V1=[float("infinity") for i in range(n)] self.pre=[None for i in range(n)] self.T=[] def addEdge(self,u,v,w): self.V[u].append(ver(u,v,w)) ...
[ "noreply@github.com" ]
vishal-nirne.noreply@github.com
212f22679ed0529f1852746b99dd1ab93923569e
956132aef29feb0dc8d7d86cba70eb2f4e3578dd
/app.py
ff8f5b32ec2fa09fa66f0466179f7c8a1ebebf16
[]
no_license
jminango20/ExploradorDatasetStreamlit
8122df13b82ce55688e9ad743638a0f07eeba540
5560ea6a2f5ebbed680326cc6059bb7f6ee3da42
refs/heads/master
2022-11-18T08:49:49.704343
2020-07-23T14:14:57
2020-07-23T14:14:57
281,966,767
0
0
null
null
null
null
UTF-8
Python
false
false
4,655
py
#Created By Juan Minango import os import streamlit as st #EDA pkgs import pandas as pd #Viz Pkgs import matplotlib.pyplot as plt import matplotlib matplotlib.use('Agg') import seaborn as sns def main(): #Common ML Dataset# st.title("App para Explorar una Base de Datos o Dataset") st.subheader("Simple E...
[ "42250853+jminango20@users.noreply.github.com" ]
42250853+jminango20@users.noreply.github.com
cfdd1871b3a9eaeeee623b209ee13b76e09ca38f
00bed06ab42cc42e8b7c0854a3f824279a3b3012
/JetBrains Academy/Coffee Machine/Problems/Tax brackets/main.py
9cc914f2ac7f55c19998ecdf8652e0ad96a26f3f
[]
no_license
GioByte10/Python
b0cfd400cde3c3bd92d95f1136d32938d70624a1
a9bbfb6b61c37f1f0305252f8603256131b436ef
refs/heads/master
2023-04-08T18:51:58.721577
2023-04-01T06:38:50
2023-04-01T06:38:50
136,672,731
0
1
null
null
null
null
UTF-8
Python
false
false
274
py
income = int(input()) tax = 0 if income > 132406: tax = 28 elif income > 42707: tax = 25 elif income > 15527: tax = 15 else: tax = 0 taxed = round(income * tax / 100) print(f"The tax for {income} is {tax}%. That is {taxed} dollars!")
[ "gvanni.bernal10@gmail.com" ]
gvanni.bernal10@gmail.com
891ebc1c1426431c417dd2be87ac1f5264ccc288
adc84231a69b2415eb6262e390a43170b6f98c62
/featurization/create_dataset_parts.py
a24e163f196efac19a3a6d9abdcc2d841cebeff6
[]
no_license
KavrakiLab/pHLA-RFclassifier-from-structure
b467a15b39dc5e7ad027ace58318d2edcd9e7a5b
044384973414e2df9d91a999790fe7772db71730
refs/heads/master
2022-09-30T09:24:41.986801
2020-06-07T15:46:57
2020-06-07T15:46:57
258,570,080
0
0
null
null
null
null
UTF-8
Python
false
false
2,170
py
import sys import create_contact_features import numpy as np import glob import pickle from threading import Thread from subprocess import call import os import time label = sys.argv[1] file_with_confs = "confs" + str(label) + ".txt" mode = sys.argv[2] pHLA_to_label = {} f = open("all_nonbinders.txt", 'r') for line ...
[ "j.abella@utexas.edu" ]
j.abella@utexas.edu
68c13c60c0dae64974ee3a6536579285bb4e9c0f
11705adf999ccf62e35585c8f172bbff0a96b0f9
/swagger_server/controllers/link_controller.py
4980f1ab0a40541d7f5b60192410abcd4cfec039
[ "MIT" ]
permissive
congwang09/sdx-test
22ab9fb4742e85926c022f44523c9e4f93cccf50
b6ea0c0496e305af5c248993e4f06fe0a02f7401
refs/heads/main
2023-06-29T22:07:56.075652
2021-07-14T01:41:11
2021-07-14T01:41:11
393,104,944
0
0
null
null
null
null
UTF-8
Python
false
false
209
py
import connexion import six from swagger_server import util def get_link(): # noqa: E501 """get an existing link ID of the link # noqa: E501 :rtype: None """ return 'do some magic!'
[ "yxin@renci.org" ]
yxin@renci.org
a7c2d7d29bd9c8d2027d79539bd06e49d5e4d075
2c699e03232318f0ddcbcc882ada3a25bf4120ed
/PROBLEM SET 3/flask_app.py
efe819c2c0ee495a6e9d7f35a112914033f0b743
[]
no_license
ohmybobobobo/COM5940
9303034156d09d898605316645b84bb6148b27df
d4c05821008703f6781d791c03ba1efd9bc84323
refs/heads/master
2020-04-21T23:27:52.764476
2019-10-14T07:53:27
2019-10-14T07:53:27
169,947,592
0
0
null
null
null
null
UTF-8
Python
false
false
2,455
py
# A very simple Flask Hello World app for you to get started with... from flask import Flask, render_template, json, request, redirect, session from flask import Markup import requests app = Flask(__name__) app.config["DEBUG"] = False @app.route("/") def main(): user = {"name":"Bowie"} return render_template...
[ "1155112753@gmai.com" ]
1155112753@gmai.com
79ed0967d587118767b614b43000140abe053db7
905fcdc6e5febde43a9d6963792e4f526186e299
/cride/circles/managers/invitations.py
35c209fe9af061428c26901df716c8d373295b4a
[ "MIT" ]
permissive
lhernerremon/demo-rider
462e926d9f1c845171c67f7cb20749bd1b2d0a5c
30783cf58513698d23730f5fa477dfeddda8ee6b
refs/heads/master
2022-12-30T14:15:35.624092
2020-10-05T16:18:39
2020-10-05T16:18:39
301,468,909
0
0
null
null
null
null
UTF-8
Python
false
false
514
py
#Django from django.db import models import random from string import ascii_letters,digits class InvitationManager(models.Manager): CODE_LENGTH=10 def create(self,**kwargs): pool=ascii_letters + digits + ".-" code=kwargs.get("code","".join(random.choices(pool,k=self.CODE_LENGTH))) ...
[ "lherner.remon.27@unsch.edu.pe" ]
lherner.remon.27@unsch.edu.pe
4993b111fc068469f0c22937337072e11f91fe65
812045c3ec6587827aeb18bde666237dfffc21ae
/tf_quant_finance/experimental/pricing_platform/framework/__init__.py
b8fcbcfb73a8cb71bc0bed15b4150533c7925160
[ "Apache-2.0", "LicenseRef-scancode-generic-cla", "LicenseRef-scancode-unknown-license-reference", "BSD-3-Clause" ]
permissive
google/tf-quant-finance
2062082c85e8679b71e69bbeb579fe338c1b0288
0d3a2193c0f2d320b65e602cf01d7a617da484df
refs/heads/master
2023-08-31T01:58:15.415811
2023-08-15T07:37:46
2023-08-15T07:38:22
198,669,252
4,165
557
Apache-2.0
2023-08-04T19:25:55
2019-07-24T16:09:50
Python
UTF-8
Python
false
false
1,195
py
# Copyright 2020 Google LLC # # 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
[ "tf-quant-finance-robot@google.com" ]
tf-quant-finance-robot@google.com
c33bbc90f3b92146aa718a36362b3e8147840ef8
e42a61b7be7ec3412e5cea0ffe9f6e9f34d4bf8d
/a10sdk/core/cm/cm_ut_post_modify_parent.py
7518cb270dd800886ec93cfb8a6187c9c97a2057
[ "Apache-2.0" ]
permissive
amwelch/a10sdk-python
4179565afdc76cdec3601c2715a79479b3225aef
3e6d88c65bd1a2bf63917d14be58d782e06814e6
refs/heads/master
2021-01-20T23:17:07.270210
2015-08-13T17:53:23
2015-08-13T17:53:23
40,673,499
0
0
null
2015-08-13T17:51:35
2015-08-13T17:51:34
null
UTF-8
Python
false
false
1,043
py
from a10sdk.common.A10BaseClass import A10BaseClass class PostModifyParent(A10BaseClass): """Class Description:: Unit test of post modify ineligible. Class post-modify-parent supports CRUD Operations and inherits from `common/A10BaseClass`. This class is the `"PARENT"` class for this module.` ...
[ "doug@parksidesoftware.com" ]
doug@parksidesoftware.com
b511950c22b5568da7f4893798de2e90eaa81866
093f33fc8016d6274d165fed9faf7fc715c47db1
/已完成/Highest and Lowest.py
39a4483bd88dcf57468cb9cf5b1d0266803fdc7a
[ "MIT" ]
permissive
karchi/codewars_kata
678b1b7b72548ed308ba462f5c7231e85753f92a
18b389134747df34eee637b352bf9dd420a601fe
refs/heads/master
2020-05-21T18:07:04.970635
2017-03-08T05:35:55
2017-03-08T05:35:55
62,529,060
0
0
null
null
null
null
UTF-8
Python
false
false
1,657
py
#!/usr/bin/python # -*- coding: UTF-8 -*- ''' # 题目地址: https://www.codewars.com/kata/554b4ac871d6813a03000035/train/python ''' import time import unittest class TestCases(unittest.TestCase): def test1(self):self.assertEqual(high_and_low("4 5 29 54 4 0 -214 542 -64 1 -3 6 -6"), "542 -214") def test2(se...
[ "karchi@users.noreply.github.com" ]
karchi@users.noreply.github.com
ae7a680710ee18f59df41e4904682ea5e82f7320
2627881c5c58fb5f58c2a13ceb2600206bc7cf14
/ExchangeMechanisms/OldVersions/V1/DatabaseScripts/MTC's/DBSearchMTCBook.py
44bc047da48504c6e9a74d441be34fdcf3ac7572
[]
no_license
cnxtech/ProjectExchange
f430b613cc84144ae69f5a8c3e7b753bdab068ca
e2591bcdd834c708a0f585ab7ef48c4ac67c68a9
refs/heads/master
2023-08-03T16:31:13.343854
2016-12-21T21:36:48
2016-12-21T21:36:48
185,272,433
0
0
null
2023-08-28T17:18:10
2019-05-06T21:10:09
CSS
UTF-8
Python
false
false
20,532
py
#------------------------------------------------------------------------------- # Name: DBSearchMTCBook # Version: 1.0 # Purpose: # # Author: Matthew # # Created: 05/26/2014 # Copyright: (c) Matthew 2014 # Licence: <your licence> # Modified: 05/30/2014 #------------------------------------...
[ "matthewrastovac@yahoo.com" ]
matthewrastovac@yahoo.com
cc05740753efb5538a022e429587b3ddd0ed2f59
6c547e3312e2d1bd3dab123b831053ed7aef7b6d
/pages/BICL/login/LoginPage.py
2596902d6d4e41bb5105b84915ea1e972a78b50c
[]
no_license
kenito2050/BICL
8c4239f1e897e4dfc04aa35e827816242b41d5dd
82891aba56cc49c9cf96ce82472847c4cb10828f
refs/heads/master
2020-12-31T22:10:44.784193
2020-02-10T23:00:10
2020-02-10T23:00:10
239,039,817
0
0
null
null
null
null
UTF-8
Python
false
false
2,330
py
from selenium.webdriver.common.by import By from selenium.webdriver.common.keys import Keys from selenium.common.exceptions import NoSuchElementException from config_globals import * class LoginPage(): def __init__(self, driver): self.driver = driver def Page_Elements(self): # User Name Field...
[ "ken.villarruel@gmail.com" ]
ken.villarruel@gmail.com
f51061be65fbe76e22ba88ad8e114082a67173b2
0f2b08b31fab269c77d4b14240b8746a3ba17d5e
/onnxruntime/test/providers/cpu/tensor/gen_mvn_test_data.py
a7c1be435d7125434f43e787233637a8d1f3e1fb
[ "MIT" ]
permissive
microsoft/onnxruntime
f75aa499496f4d0a07ab68ffa589d06f83b7db1d
5e747071be882efd6b54d7a7421042e68dcd6aff
refs/heads/main
2023-09-04T03:14:50.888927
2023-09-02T07:16:28
2023-09-02T07:16:28
156,939,672
9,912
2,451
MIT
2023-09-14T21:22:46
2018-11-10T02:22:53
C++
UTF-8
Python
false
false
1,025
py
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. import argparse import numpy as np parser = argparse.ArgumentParser() parser.add_argument("--shape", type=int, nargs="+", required=True) parser.add_argument("--axes", type=int, nargs="+", required=True) args = parser.parse_...
[ "noreply@github.com" ]
microsoft.noreply@github.com
17e0b04f1a43263e764801314f361eeab2c08818
7e6b07e49f41d99022583b4653ea2178d68f9a1e
/src/python_code/examples/examples.py
c51c550c50a46cbde65329b45cc1b50ea22dbfbf
[]
no_license
TDougy52/backup-project
532793174662c5637104d935869dc1f6988e8cdd
86089baa5524be70281ae4158e8cdd4e6c4cf36e
refs/heads/master
2021-01-11T14:25:38.663929
2016-12-06T17:30:23
2016-12-06T17:30:23
81,406,540
0
0
null
null
null
null
UTF-8
Python
false
false
2,413
py
# Code below kept only for example @route('/todo') def todo_list(): conn = sqlite3.connect('backup_info.db') c = conn.cursor() c.execute("SELECT id, task FROM todo WHERE status LIKE '1'") result = c.fetchall() conn.close() output = template('make_table', rows=result) return output @route...
[ "toddcookevt@gmail.com" ]
toddcookevt@gmail.com
00203a466d9d39ac178150437328df3a2e5589bb
f15fb8f399e8fae1d2b5c1f5351c91d2cd73610b
/app.py
7f9bee4950e39a85d8247108346a809094d4fcfd
[]
no_license
ItaloRFeitosa/stems_separator
66250482a11b4a1c765b3882898ef31cf84ebb25
728094272146e0b993bd8c9ae680f532c37871ac
refs/heads/master
2022-12-17T11:19:57.456212
2020-09-05T15:21:17
2020-09-05T15:21:17
293,101,918
2
0
null
null
null
null
UTF-8
Python
false
false
8,782
py
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'interface.ui' # # Created by: PyQt5 UI code generator 5.13.0 # # WARNING! All changes made in this file will be lost! import os from worker import Worker from separator import initSeparator from PyQt5 import QtCore, QtGui, QtWidgets impo...
[ "italo85199@gmail.com" ]
italo85199@gmail.com
7a0961c2b76f7efda10d25369297ceffaf9d029f
5fe709d0643394168dd919bbc721adabebe60a97
/optimizer/inference_optimizer_graph.py
4027661f7a5b090871b18fd5198cf7fc7a7c06f5
[ "MIT" ]
permissive
vibhatha/pipedream
8232b67366a0dd84e41fd496c9b2e8b86dbfdd89
af6b811f5d01a68e9eb91065e5242fc1a075f279
refs/heads/master
2020-12-20T18:21:35.337352
2020-07-06T04:54:23
2020-07-06T04:54:23
236,167,878
0
0
MIT
2020-01-25T12:34:04
2020-01-25T12:34:03
null
UTF-8
Python
false
false
12,670
py
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. import argparse import csv import math import os import sys sys.path.append("..") import graph import utils def main(num_machines, profile_filename, time_between_inputs, network_bandwidth, memory_size, straight_pipeline, ...
[ "vibhatha@gmail.com" ]
vibhatha@gmail.com
d4cfddd6735e751ff39658a9aa42e87da72d91cc
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_118/2547.py
16ddce5b215d59bfc9c72b24f494d31fb7fbd169
[]
no_license
dr-dos-ok/Code_Jam_Webscraper
c06fd59870842664cd79c41eb460a09553e1c80a
26a35bf114a3aa30fc4c677ef069d95f41665cc0
refs/heads/master
2020-04-06T08:17:40.938460
2018-10-14T10:12:47
2018-10-14T10:12:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
866
py
import math import sys def isPalindrome(x): palindrome = True xstr = str(x) for dindex in range(len(xstr)): if (xstr[dindex] != xstr[-dindex-1]): palindrome = False return palindrome def solve(a,b): count = 0 x = math.sqrt(a) xs = int(x * x) if (x==int(x)) and isPalindrome(int(x)) and isPalindrome(xs):...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
9c61fdde2bf632e456310592db5e8388abce9d14
98232ec22da94b2cb02551f4bbf868123fe56482
/test/mean_shift.py
55b76a195635f23b4280424d0d91b0803a1abd29
[]
no_license
SWMaestro8th/WatchCoach_ML
ab2e005ffdf22ff15b9a73205d2e509d30e45b08
bcef6ea32ac9246fd112a7561a3fd08445587ddc
refs/heads/master
2021-05-06T10:04:01.717500
2017-12-13T07:45:23
2017-12-13T07:45:23
109,802,788
0
0
null
null
null
null
UTF-8
Python
false
false
1,257
py
import numpy as np import cv2 cap = cv2.VideoCapture('/Users/itaegyeong/Desktop/camshifttest.mov') ret, frame = cap.read() r, h, c, w = 80, 5, 159, 5 # simply hardcoded the values track_window = (c, r, w, h) # set up the ROI for tracking roi = frame[r:r + h, c:c + w] hsv_roi = cv2.cvtColor(roi, cv2.COLOR_BGR2HS...
[ "taegyeong7202@gmail.com" ]
taegyeong7202@gmail.com
eddd244d5be28ac7fdcecb64007f923d79223ba1
0faef5908abdbef2a950b2c857e68e42246cb4f6
/gsuite_reports_rules/gsuite_brute_force_login.py
1eedb9291d8ad57b878b7476ffe8d000bfa0b337
[ "Apache-2.0" ]
permissive
kennycumppanther/panther-analysis
254f6b21fab093de195d832f04fd427374f00b58
78d09332a3851c6b2b47c2d411b8ab4188bf54a1
refs/heads/master
2022-12-23T10:59:07.213436
2020-09-30T15:45:35
2020-09-30T15:45:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
896
py
from panther_oss_helpers import evaluate_threshold # pylint: disable=import-error # TODO change to native thresholding once support is added # tentatively slated for 1.7 THRESH = 10 THRESH_TTL = 600 # 10 minutes def rule(event): # Filter events if event['id'].get('applicationName') != 'login': retu...
[ "noreply@github.com" ]
kennycumppanther.noreply@github.com
dea526edd69b48eaa64cbe09fe86f64a4a19d3b4
451e06f79d47bc224a543a098d946ad4b80af490
/app_registration/backends/simple/views.py
07097999e85590ba644b2a9c75aed80baf088a11
[]
no_license
emsia/TECS
dd9de33a9838409035e4a8d527dc5893df7660c2
1db1f0c1ab802644ff507c544d6f92285988143a
refs/heads/master
2020-06-04T08:02:35.593980
2016-01-04T06:33:14
2016-01-04T06:33:14
13,290,267
0
0
null
null
null
null
UTF-8
Python
false
false
1,775
py
from django.conf import settings from django.contrib.auth import authenticate from django.contrib.auth import login from django.contrib.auth.models import User from registration import signals from registration.views import RegistrationView as BaseRegistrationView class RegistrationView(BaseRegistrationView...
[ "esia.rizal@gmail.com" ]
esia.rizal@gmail.com
999474fd03e44566516cc597a511df5c01ae83f1
79189e18b1f73cb1adbd6da7afd9646e06189b01
/gitprivacy/timestamp.py
c655e52936c822ee962456d21529c5e2d39d37c7
[ "BSD-2-Clause" ]
permissive
Grotax/pyGitPrivacy
dc7a9788f9a2aa4bd2884131a108a77332eaf96a
72ac006ea578a8b59606a08440a138bd2c05fe1b
refs/heads/master
2020-04-01T13:28:17.898553
2019-01-18T11:02:49
2019-01-18T11:02:49
153,253,687
0
0
null
null
null
null
UTF-8
Python
false
false
7,399
py
"""defines git timestamps""" import time import datetime import re import itertools import random import calendar class TimeStamp: """ Class for dealing with git timestamps""" def __init__(self, pattern="s", limit=False, mode="simple"): super(TimeStamp, self).__init__() try: foo_ba...
[ "info@b-brahmer.de" ]
info@b-brahmer.de
b9d391af6cb9d1c2b13c6ea95b0a1aec6ff83535
047fb1bf7954a2de4bd91c5f2403d8d6b203108c
/photo/productupload/migrations/0005_auto_20200812_0243.py
fc5144b5c952dc8992c1904467293041b1891976
[]
no_license
vidhyaen/django
333aa2528fefe7fffda65693e0b4c19c9d2a8fca
3bddbb781a443e2f07db2a4e8ddf86cfe9bcb604
refs/heads/master
2023-04-05T06:07:43.588199
2021-04-07T12:39:02
2021-04-07T12:39:02
355,538,896
0
0
null
null
null
null
UTF-8
Python
false
false
431
py
# Generated by Django 3.0.7 on 2020-08-11 21:13 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('productupload', '0004_auto_20200812_0233'), ] operations = [ migrations.AlterField( model_name='productimage', name=...
[ "envidhya99@gmail.com" ]
envidhya99@gmail.com
c5b45087c548c99af18b87637c0194c599f18048
158acfe1fb6e12e1f57f11e2690c74b0a9000644
/juju/client/_client11.py
baa709ad4b8f6a883b9db16bd707f880292c219d
[ "Apache-2.0" ]
permissive
ycliuhw/python-libjuju
9c8329a2da3ca3d5a28ecce1c9c63f8b26103eba
271e0b65c246e88ae15ac65a8da8e71e72b4c53c
refs/heads/master
2020-04-16T21:51:16.657165
2020-01-10T16:16:45
2020-01-10T16:16:45
165,942,748
0
0
Apache-2.0
2019-01-16T00:01:53
2019-01-16T00:01:53
null
UTF-8
Python
false
false
91,751
py
# DO NOT CHANGE THIS FILE! This file is auto-generated by facade.py. # Changes will be overwritten/lost when the file is regenerated. from juju.client.facade import Type, ReturnMapping from juju.client._definitions import * class ApplicationFacade(Type): name = 'Application' version = 11 schema = {'d...
[ "stickupkid@gmail.com" ]
stickupkid@gmail.com
43f2e4cd48afe1f7c0e752b61f5f5fbec6114870
56ad91351e3a089240ff9279c82b819c44308acc
/code/utils/regression.py
01fc7ac5b48b95f8896881375afc98775f45ac27
[]
no_license
ariaaay/project-beta-1
a77a840de247f732d784a2b2b5e7c0c6594c1c4c
3ef27fb9eeb368bbb3dde3711cac4964cfb31900
refs/heads/master
2021-01-18T01:03:36.730811
2015-12-03T02:53:26
2015-12-03T02:53:26
46,064,284
0
0
null
2015-11-12T16:06:42
2015-11-12T16:06:42
null
UTF-8
Python
false
false
39,431
py
""" Module to handle all regression functions. Largely taken from Alex Huth's regression functions Notes: Split off predictions from fitting? Advantages: cleaner code Disadvantages: less efficient - need to run through chunking code 2x """ ### --- Imports --- ### import warnings import numpy as np import scipy.sta...
[ "wangy@berkeley.edu" ]
wangy@berkeley.edu
8934e68b32bdf088bd36dc74b98b372e299a8d82
6ba5c3d3755d7d295bc57d43c26235b8cb8af553
/src/gated_transformers_nlp/utils/gated_transformers/training_utils.py
8c6cc9e87042a9c1841baf56dd2dc54fedc1c5ee
[ "MIT" ]
permissive
mnguyen0226/gated_transformers_nlp
b23e016d9e7f05ffd40c588adefc86c95a80bb52
a6c870d4ed0788f15cfdf58c85ed5201dff60ee9
refs/heads/main
2023-08-18T02:49:17.220571
2021-09-26T17:59:12
2021-09-26T17:59:12
410,442,575
2
1
null
null
null
null
UTF-8
Python
false
false
6,443
py
# Script trainining gated transformers model import torch import torch.nn as nn from typing import Tuple import math import time from utils.gated_transformers.seq2seq import Seq2Seq from utils.gated_transformers.preprocess import ( SRC, TRG, device, train_iterator, valid_iterator, ) from utils.ga...
[ "mnguyen0226@vt.edu" ]
mnguyen0226@vt.edu
fc44a6c0a0541b435b013973d6089aa56bfdddb9
5666697be62a75f6d5676c04bd1849f22c900cc3
/WARSZTATY/Zadanie2.py
9a92a9885877471d368f14fe61d8b6c94248c830
[]
no_license
bartoszkoper/workshop1
35ec9c6ec398bd69b71b5b34e58a926d67e79587
3f04be9d576c22438fe1af763b419f07b6017c23
refs/heads/master
2020-09-16T04:03:41.217149
2019-11-23T20:35:43
2019-11-23T20:35:43
223,646,840
0
0
null
null
null
null
UTF-8
Python
false
false
1,819
py
"""#### Warsztat: Symulator LOTTO. ​ Jak wszystkim wiadomo, LOTTO to gra liczbowa polegająca na losowaniu 6 liczb z zakresu 1&ndash;49. Zadaniem gracza jest poprawne wytypowanie losowanych liczb. Nagradzane jest trafienie 3, 4, 5 lub 6 poprawnych liczb. ​ Napisz program, który: ​ * zapyta o typowane liczby, przy okazji...
[ "bartosz.koper@outlook.com" ]
bartosz.koper@outlook.com
5631925dad6cde26aa9cb49d8f88d3a19c44a9dd
993d84420b2e3005b1b59370db26c79d702e380a
/quantization/SLSQ/process_tune.py
79d45419625b19030d150e09795b287c8dc0d531
[ "MIT" ]
permissive
SKKU-ESLAB/Auto-Compression
25588c5e87a141049b5816940d157a7a1c478e04
614048140f00e977e53178ce0417caaf31a29bc4
refs/heads/master
2022-12-14T20:33:25.242853
2022-12-01T07:13:45
2022-12-01T07:13:45
224,101,851
16
13
MIT
2022-12-01T07:13:46
2019-11-26T04:25:02
C
UTF-8
Python
false
false
6,537
py
import logging import math import operator import time import torch as t from util import AverageMeter __all__ = ['train', 'validate', 'PerformanceScoreboard'] logger = logging.getLogger() def accuracy(output, target, topk=(1,)): """Computes the accuracy over the k top predictions for the specified values of k...
[ "ilena7440@naver.com" ]
ilena7440@naver.com
c6af8dd9dee7257067c8afe6edcb1d6b40606fd1
c2fd9c421b225862633f74f99a7a0dad635c5c67
/array/MatrixBlockSum.py
3ce867a1465eecbd7378e650c0259da5a7c1ce5c
[]
no_license
yuhangxiaocs/LeetCodePy
3751881dbd78b581a1d75beea737aed28765988b
31012a004ba14ddfb468a91925d86bc2dfb60dd4
refs/heads/master
2020-12-20T19:36:55.421295
2020-11-24T17:01:15
2020-11-24T17:01:15
236,190,313
1
0
null
null
null
null
UTF-8
Python
false
false
1,646
py
''' 和那个快速求数组某段长度的和是一直的 先有个 pre_computation 把 sum[i]代表 0-i的sum 从而 sum(i...j) = sum[j] - sum[i-1] 这题就是扩展到二维 Runtime: 72 ms, faster than 98.47% of Python online submissions for Matrix Block Sum. Memory Usage: 12.5 MB, less than 100.00% of Python online submissions for Matrix Block Sum. ''' class...
[ "1248618975@qq.com" ]
1248618975@qq.com
2ce670f2db577a36adc48c27f56c09138c83a420
f5758bd67d18f30e7e6eea7d0342f9ad04acaecf
/shimaenaga/cli.py
2dfe613d5c21720efb060920120e20a683c28e23
[ "MIT" ]
permissive
kk6/shimaenaga
f863e5d2307cd346ae70ca36710583beefdd52e9
e0fc200b1cfa13223cda14868456d92ae7b48767
refs/heads/master
2021-07-07T05:37:42.201017
2021-03-08T01:29:48
2021-03-08T01:29:48
244,536,499
0
0
MIT
2021-06-22T20:25:26
2020-03-03T03:53:55
Python
UTF-8
Python
false
false
2,003
py
import datetime import pathlib import typer from livereload import Server from loguru import logger from .config import Config, SiteMeta from .config import default_config as dc from .config import parse_config from .generators import generate_markdown_template, generate_article_template from .initializer import init...
[ "hiro.ashiya@gmail.com" ]
hiro.ashiya@gmail.com
fc28e89d7f7e027449639d4297556009da6ceeaf
26e2cd7c32549670478c82292f1657cbb1bfe635
/api/person/addPerson/app.py
14d3573f0269b10b1196e2cd38738ea406090cc9
[]
no_license
gungorerhan/bluetooth-localization
5869446c2d91041c65b5d03bf41be98eae61c281
381d7b10e9e6e3f3d2ad147b8e1203a44f8795ae
refs/heads/master
2023-01-05T15:58:10.098630
2020-07-12T16:09:02
2020-07-12T16:09:02
226,554,223
2
0
null
null
null
null
UTF-8
Python
false
false
1,709
py
import sys import logging import rds_config import pymysql import json #rds settings rds_host = "ips-1.c6mdsdjlgnmm.eu-central-1.rds.amazonaws.com" name = rds_config.db_username password = rds_config.db_password db_name = rds_config.db_name logger = logging.getLogger() logger.setLevel(logging.INFO) try: conn = ...
[ "erhangungor@zohomail.com" ]
erhangungor@zohomail.com
e184f5bfa191e589dad273770f1c3706cea852fc
26c909d5ccf36193a72e9034707b69edbfd67789
/300_longest_increasing_subsequence.py
993b20880bfa3f9225777b54a31f7e9f1750c560
[]
no_license
zeroohub/leetcode
39a835476eedea5bf8f434a15efb5e73495209f9
cfefa073d6c6f664a835b87369dbba0203b91e58
refs/heads/master
2020-03-22T03:51:22.247932
2019-02-21T11:07:13
2019-02-21T11:07:13
139,456,288
0
0
null
null
null
null
UTF-8
Python
false
false
716
py
# -*- coding: utf-8 -*- from collections import defaultdict class Solution(object): def lengthOfLIS(self, nums): """ TODO check solution https://leetcode.com/problems/longest-increasing-subsequence/solution/ brute force, O(n^2) :type nums: List[int] :rtype: int ...
[ "spamzero@yeah.net" ]
spamzero@yeah.net
1b89119e377c53d6374d3709b42f98d8b21ffd19
a0eb6744e6f7f509b96d21f0bc8b3f8387f6861c
/notebook/pass_def_class.py
e29e17921ea9fb76908f29d73e9c72df07c9ddcd
[ "MIT" ]
permissive
nkmk/python-snippets
a6c66bdf999502e52f4795a3074ced63bf440817
f9dd286a9cf93f474e20371f8fffc4732cb3c4d5
refs/heads/master
2023-08-03T04:20:05.606293
2023-07-26T13:21:11
2023-07-26T13:21:11
98,900,570
253
77
MIT
2020-10-25T01:12:53
2017-07-31T14:54:47
Jupyter Notebook
UTF-8
Python
false
false
255
py
# def empty_func(): # SyntaxError: unexpected EOF while parsing def empty_func(): pass # class EmptyClass(): # SyntaxError: unexpected EOF while parsing class EmptyClass(): pass def empty_func_one_line(): pass class EmptyClassOneLine(): pass
[ "nkmk.on@gmail.com" ]
nkmk.on@gmail.com
826afca4df28ff30b6a1d904ee64e55471bcf448
d85b190bf504191f00197a47a9426811a3d7b55e
/practice1.py
e056048cef017c6e7f157d984a9f4e4d663e5cbf
[]
no_license
0702ray/minecraft-2
c436561bb458a55d98c35f7544c233098b4fd3dc
832702b560889e59ed4877f420b735851738d78d
refs/heads/master
2022-11-29T02:52:37.800178
2020-08-06T05:34:37
2020-08-06T05:34:37
284,612,007
0
0
null
null
null
null
UTF-8
Python
false
false
295
py
# -*- coding: utf-8 -*- """ Created on Mon Aug 3 15:42:25 2020 @author: SCE """ from mcpi.minecraft import Minecraft import time mc=Minecraft.create() time.sleep(5) a=0 while a<11: a=a+1 x,y,z=mc.player.getTilePos() mc.setBlock(x,y,z,38,) time.sleep(0.1)
[ "noreply@github.com" ]
0702ray.noreply@github.com
ea93139613173aec84cb777c42e2e68be166d0a6
c04f8a554172bd6081c86c4ef89105b2b1b856f5
/multiple_processes.py
f4f7660072c49335a59f9d1c404d228c1f718011
[ "MIT" ]
permissive
RKJenamani/pybullet-parallel
da5ae2cd6e811975ed138b5cc53cf239a5325fa2
4f6693bba0299a5abf31be07863c97dedbb45cff
refs/heads/main
2023-04-26T12:43:36.527479
2021-05-22T05:02:44
2021-05-22T05:02:44
369,637,938
1
1
null
null
null
null
UTF-8
Python
false
false
6,535
py
import multiprocessing import time import numpy as np from types import SimpleNamespace def setup_exp(p): mu = 0.65 object_ids = [] local_path = "./" state = ([-0.0404755 , -0.00112935 , 0.183326,0.000183599, 0.0274296, -3.12269]) req = SimpleNamespace(o_x=state[0],o_y=state[1],o_z=state[2],o_r ...
[ "rajatkj11@gmail.com" ]
rajatkj11@gmail.com
2dfdb8b02f2200284bec6076c1f6e6d9b094ba8c
060ce17de7b5cdbd5f7064d1fceb4ded17a23649
/fn_googlesafebrowsing/setup.py
6f057bb8503335e605ed4a98ec83a02553343947
[ "MIT" ]
permissive
ibmresilient/resilient-community-apps
74bbd770062a22801cef585d4415c29cbb4d34e2
6878c78b94eeca407998a41ce8db2cc00f2b6758
refs/heads/main
2023-06-26T20:47:15.059297
2023-06-23T16:33:58
2023-06-23T16:33:58
101,410,006
81
107
MIT
2023-03-29T20:40:31
2017-08-25T14:07:33
Python
UTF-8
Python
false
false
2,041
py
#!/usr/bin/env python # -*- coding: utf-8 -*- from setuptools import setup, find_packages import glob import ntpath def get_module_name(module_path): """ Return the module name of the module path """ return ntpath.split(module_path)[1].split(".")[0] def snake_to_camel(word): """ Convert a w...
[ "shane.curtin@ie.ibm.com" ]
shane.curtin@ie.ibm.com
799d89d6eed5762ca6c85e634da9a39b18eebfff
2671293f01b2b06c7cf68070194205383ee58aee
/Scripts/tottagSmoother.py
1f783b4828743bc1831c50e2a3d6e406e83fc2d4
[]
no_license
vanderbiltsealab/tottag_methods
63481e4250a29a8959bca3b316ec146b93b6e9d5
46c454031b24b503a32aefb18d07ab496d3d7450
refs/heads/master
2023-06-25T06:45:35.438413
2021-07-27T20:21:27
2021-07-27T20:21:27
279,338,761
1
1
null
null
null
null
UTF-8
Python
false
false
3,044
py
#!/usr/bin/env python import os import sys #class to handle the moving average. #works kind of like a queue, keeping smoothVal values stored class SmoothedGroup: def __init__(self, time, mote, val, size, s): self.stamps = [] self.data = [] self.size = size self.stamps...
[ "virginia.salo@gmail.com" ]
virginia.salo@gmail.com
935b4b4690a238df2f20c0ae83eafe2b1f8af080
0738bf4f07aaa81a42757d438cb56e1fe61eb482
/3. SQL/pset7/houses/roster.py
466758bf040e737f01d3dbc3d01eb6b60d25f02e
[]
no_license
laisdeghaide/CS50x
b7072e50e19669d91e0724c9524b2e12d72c5ff0
443ab2003cd8507c3ba5cbd6b04cadf25fae27cd
refs/heads/master
2022-12-07T09:00:29.158469
2020-09-03T14:47:39
2020-09-03T14:47:39
277,606,884
0
0
null
null
null
null
UTF-8
Python
false
false
470
py
from sys import argv from cs50 import SQL if len(argv) != 2: print("Usage: python roster.py House") exit() db = SQL("sqlite:///students.db") characteres = db.execute("SELECT * FROM students WHERE house = (?) ORDER BY last", argv[1]) for c in characteres: if c['middle'] != None: print("{} {} {}, ...
[ "laisdeghaide@ufu.br" ]
laisdeghaide@ufu.br
d8c6dde444542ce844fca80c31b2000669bb9b4d
3e5d508ae0609482421b529178a52e360a58c96f
/flappy_two_players.py
0c4640f2795610f087d3a774fd1513bcd337792c
[ "MIT" ]
permissive
yasminemedhat/FlapPyBird
4a6729cf42f30262c3a5ef840eb2f86be391d5aa
a70b48340c94189690492fd34637f0e9b4041c93
refs/heads/master
2020-05-17T18:31:06.984521
2019-05-14T14:52:59
2019-05-14T14:52:59
183,885,988
0
0
MIT
2019-04-28T09:21:00
2019-04-28T09:21:00
null
UTF-8
Python
false
false
23,925
py
from itertools import cycle import random import pygame from pygame.locals import * import socket import sys from _thread import * import time from datetime import datetime HOST = '' SEND_PORT = 0 RECV_PORT = 0 ID = 0 isServer = False # ToDo: Added someone_still_playing = True my_gameover = False broadcast_port = 8...
[ "yasminemedhat97@gmail.com" ]
yasminemedhat97@gmail.com
a27232b2e85807c91a084f8cc591aab8d2abf72d
4914d636f995ecdcb69fd8180b576c168f731b9d
/ert-backend/project/config/settings/production.py
abb7bf2f27daada1a43c7fcf67f4651c9cf947b5
[]
no_license
kohrohit/againstCOVID
c1e840c710e359b5e89287a455c92d7b6e90fcdc
4efc13646eacb1f44d783fde934ddbe2d4446fda
refs/heads/backend
2022-04-20T19:33:07.461156
2020-04-21T18:57:46
2020-04-21T18:57:46
255,864,943
0
0
null
2020-04-21T19:02:20
2020-04-15T09:16:36
Python
UTF-8
Python
false
false
1,361
py
from .base import * # AWS S3 settings for static files AWS_STORAGE_BUCKET_NAME = 'drf-static' AWS_S3_REGION_NAME = 'ap-south-1' AWS_ACCESS_KEY_ID = get_secret("AWS_ACCESS_KEY_ID") AWS_SECRET_ACCESS_KEY = get_secret('AWS_SECRET_ACCESS_KEY') # Tell django-storages the domain to use to refer to static files AWS_S3_CUSTO...
[ "aishwarydhare@gmail.com" ]
aishwarydhare@gmail.com
875ff98291902fbdf522257d68d7c5f0394167ca
36210015abfb240aef4ea006b14fca0b340e0893
/jasmin/protocols/smpp/factory.py
9a02404c5ce280c3198eca8e43e3c9124e5b1455
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
flopraden/jasmin
7456d603efb2527267f2f2e56e6e8de33901b704
39b5ba99657da1bebb36b8c5f1853824ebbbc9f8
refs/heads/master
2021-01-22T16:05:40.332605
2015-10-05T06:41:10
2015-10-05T06:41:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
20,884
py
#pylint: disable-msg=W0401,W0611 import logging import re from logging.handlers import TimedRotatingFileHandler from datetime import datetime, timedelta from OpenSSL import SSL from twisted.internet.protocol import ClientFactory from twisted.internet import defer, reactor, ssl from .stats import SMPPClientStatsCollecto...
[ "fourat@gmail.com" ]
fourat@gmail.com
583df475e250658c05e7fa939aedf0cc7539e694
d253e0611a80c5649abae4dc78995b3a6fd4b61c
/count.py
d01433412cacc94e16c70670cef51cfb66bf1e93
[]
no_license
manoj652/sentiment-analysis-and-moodmapping-of-hindu-newspaper
8f3e75f116a6e85f20f2e8013dd59c751ede0cda
d54454dc0c9ba245d0cf488b873a554dcaa88df8
refs/heads/master
2021-01-24T11:04:45.017679
2018-02-27T04:46:21
2018-02-27T04:46:21
123,073,130
0
0
null
null
null
null
UTF-8
Python
false
false
3,021
py
# from string import punctuation # from operator import itemgetter # N = 10 # words = {} # words_gen = (word.strip(punctuation).lower() for line in open("test1.txt") # for word in line.split()) # for word in words_gen: # wor...
[ "noreply@github.com" ]
manoj652.noreply@github.com
e5eec9ae3eb7e318b857ee0890ed6aa5e2c7fb18
9d9d51385d4c4ac92dea36c85c3ccfde7925fbf5
/appionlib/apImage/imagefilter.py
59e419989fef0423974a7f1db6eac68b72751a90
[]
no_license
leschzinerlab/Tiltpicker_import_patched
0ae14eae93018378fc70d9bb0e3cb449cde7e040
f2885c96c16edb7ff2ed140458d22aeafd645acd
refs/heads/master
2016-09-05T23:17:19.035803
2015-07-19T18:45:33
2015-07-19T18:45:33
39,341,623
1
0
null
null
null
null
UTF-8
Python
false
false
14,146
py
#Part of the new pyappion ## pythonlib import os import time ## numpy import numpy import pyami.quietscipy from scipy import ndimage from numpy import linalg ## appion from appionlib import apDisplay from appionlib.apSpider import filters ## pyami from pyami import imagefun, fftengine ffteng = fftengine.fftEngine() ...
[ "michael.a.cianfrocco@gmail.com" ]
michael.a.cianfrocco@gmail.com
e22511135a4e7da9ed8d487fd03d90013e30cf6e
bfee1e84d58ea829c75c83dc63d2cde7bc7008be
/echo.py
d9cb0d9885f2e104a8c75b41d3e5b81f40c32f98
[]
no_license
social-coding-kr/cctv-app
be01aae87df359ddf4d3062fbe0f03c6f31a800c
bbc94b53142dbabcbdca23992b2e7292a77f2500
refs/heads/master
2020-04-22T16:58:22.856993
2016-02-15T13:21:54
2016-02-15T13:21:54
40,083,225
1
1
null
2015-10-24T19:30:33
2015-08-02T15:12:45
JavaScript
UTF-8
Python
false
false
434
py
import socket host = '' port = 9030 backlog = 5 size = 10240 s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.bind((host,port)) s.listen(backlog) while 1: client, address = s.accept() while 1: data = client.recv(size) if data or len(data) > 0: client.send(data) pr...
[ "foryou8904@gmail.com" ]
foryou8904@gmail.com
e5ceb4b64c19a9e21727c3123d215a1d28d6c014
10cdf6bb22488c165e480b2355d491abf8c1c6d9
/src/picross_processing.py
f1b8b4622e548cd79e3bc74b233cdd351151750c
[]
no_license
TommyWoh/pic_picross
771fa35f8eba59193a430ed4cd052f8a8b4fd621
9568c15a1f1dcb1f4d0dbb5f80ecba85e6395fd5
refs/heads/master
2020-12-22T16:11:36.198212
2018-04-18T15:44:24
2018-04-18T15:44:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,975
py
#encoding:utf-8 import os import cv2 import numpy as np import sys from constants import constans as co from picross_verify import * class PicrossProcessing: __img = [] __box_size = 10 __row_hint = [] __column_hint = [] def __init__(self, img, box_size): self.__img = img self.__box_size = box_size ...
[ "takowasakun@gmail.com" ]
takowasakun@gmail.com
8dce9768a9717ae3aa41c814c7f3e62c03c93efb
2a1059be149fb2eb01e0d12a98752ecccada20a6
/F_flask/Part4_数据库/venv/Scripts/rst2s5.py
c33c7d678f2b9dc3af5134065496fe8269913ce3
[]
no_license
Jhon-Chen/Code_Practice
0796c0eb4f3e4ba82e6da9cd5dd19afb5ccec51d
e4bfa900b95764880e2ca2fcfb0389113f570147
refs/heads/master
2022-12-11T10:02:14.895722
2019-09-08T01:46:32
2019-09-08T01:46:32
186,768,893
0
1
null
2022-12-08T02:34:33
2019-05-15T07:06:10
Python
UTF-8
Python
false
false
692
py
#!E:\GitHub\Code_Practice\F_flask\Part4_数据库\venv\Scripts\python.exe # $Id: rst2s5.py 4564 2006-05-21 20:44:42Z wiemann $ # Author: Chris Liechti <cliechti@gmx.net> # Copyright: This module has been placed in the public domain. """ A minimal front end to the Docutils Publisher, producing HTML slides using the S5 templ...
[ "17368089403@163.com" ]
17368089403@163.com
afa610a90ffd1caff0fe0608da948d6c705b9c3c
56953d87029820bcc695f428ea5d663e827aaf2d
/array.py
18f02be7025ce72a468d50accd3446e0b6a60378
[]
no_license
anishakthi/pythonPrograms
d5b1230e8c04b35433125300ab6a869a6591c997
2dfc44be7fd9ab8a2a898b4c03d3a6bcdcf5f5d8
refs/heads/master
2021-01-19T19:39:48.375611
2017-04-16T18:29:23
2017-04-16T18:29:23
88,434,284
0
0
null
null
null
null
UTF-8
Python
false
false
155
py
arr = [1,2,-3,4] size = len(arr) for i in range(0, size): print arr[size-1] size -= 1 print sum(arr) # printing values for i in arr: print i
[ "anishakthi@gmail.com" ]
anishakthi@gmail.com
0d9fa0cc1c27be5db42061747766a34a70099a4d
98f94bef4b2ca15a47f16db107764eeb600e2f3c
/SoftUniExamTasks/Fundamentals Exams/03. Mid Exam Retake/02. Shoot for the Win.py
85f4f65b264b1a88ea02ea1004f89228cb968bb3
[ "MIT" ]
permissive
Pittor052/SoftUniExamTasks
2cb382cf63f4bd630e20dcbbdde08b08e5246da1
7256a7f7a11c3308d3fde2e7ef5cc703cc8dba4a
refs/heads/main
2023-08-15T11:37:17.344707
2021-10-01T11:19:08
2021-10-01T11:19:08
396,364,687
0
0
null
2021-08-24T09:03:41
2021-08-15T13:44:31
Python
UTF-8
Python
false
false
664
py
targets = list(map(lambda x: int(x), input().split())) shot_targets = [] while True: command = input() if command == 'End': print(f"Shot targets: {targets.count(-1)} -> ", end="") print(*targets, sep=" ") break index = int(command) if not 0 <= index <= len(targets) - 1: ...
[ "lazar_off@yahoo.com" ]
lazar_off@yahoo.com
ae3a181d26ac2e6179b21fa9b92f8445d21ec875
099c179887b43a2925d674210e782483bf440636
/city.py
ff1e7770e31763f24fa6615f0ef84aba6b4eb47b
[]
no_license
c2huc2hu/Isometric-Game
31d50d43aed44a8c02ba93a22c7aa183bf9e3287
b1325ac31d3116d62502f5811dba01d68d31abd4
refs/heads/master
2021-01-21T07:30:27.228039
2014-10-21T03:43:13
2014-10-21T03:43:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,814
py
from product import Product from unit import Unit team_names = ["A team", "B team", "C team"] #make sure the version in main stays current too. team_colours = [0xFF0000, 0x880088, 0xFF0088] class City(): def __init__ (self, name, allegiance, x, y): self.name = name self.allegiance = allegiance ...
[ "c-squared@sympatico.ca" ]
c-squared@sympatico.ca
0b7e389f6e7f6fedb1c12477f38df96c9300d1a4
7d42c29d5171f94734bb0b3efde95ef5454380fa
/utils/pushtx.py
5374d504bc36d290b1fed4adc1fc25c4627052fb
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
CPT-Jack-A-Castle/monero-python
6fb57d86d1ec08da7955edc7007eee11986ef7dc
aa8bf90561ee48da5f2c5265b2c5e0a05aeb1363
refs/heads/master
2023-06-15T06:25:58.541586
2021-02-07T19:38:35
2021-02-07T19:38:35
342,531,136
1
0
BSD-3-Clause
2021-07-18T07:06:27
2021-02-26T09:49:01
null
UTF-8
Python
false
false
2,301
py
#!/usr/bin/python import argparse import logging import operator import re import sys import six from monero.backends.jsonrpc import JSONRPCDaemon from monero.daemon import Daemon from monero.transaction import Transaction from monero import exceptions def url_data(url): gs = re.compile( r'^(?P<host>[^:\s...
[ "michal@salaban.info" ]
michal@salaban.info
d5275baa59e82244b8069adabb2a2531dc8b92c0
80d50ea48e10674b1b7d3f583a1c4b7d0b01200f
/src/datadog_api_client/v2/model/service_definition_v1_contact.py
e3eac879a4e43a733b865237536f79e440e84e2a
[ "Apache-2.0", "BSD-3-Clause", "MIT", "MPL-2.0" ]
permissive
DataDog/datadog-api-client-python
3e01fa630278ad0b5c7005f08b7f61d07aa87345
392de360e7de659ee25e4a6753706820ca7c6a92
refs/heads/master
2023-09-01T20:32:37.718187
2023-09-01T14:42:04
2023-09-01T14:42:04
193,793,657
82
36
Apache-2.0
2023-09-14T18:22:39
2019-06-25T22:52:04
Python
UTF-8
Python
false
false
1,191
py
# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. # This product includes software developed at Datadog (https://www.datadoghq.com/). # Copyright 2019-Present Datadog, Inc. from __future__ import annotations from typing import Union from datadog_api_client.mo...
[ "noreply@github.com" ]
DataDog.noreply@github.com
f05468c51978e5789810d01bfcc9deab3bf99acb
d5d1bdbcf32b3b79fd3cc31e50d1c7767e780f8b
/linked_list/linkedlist_ops.py
0670304f1a25595b2ec0b426393caed39f6151bd
[]
no_license
bittu1990/python_code
335ff4d212f5a1acffc2466400924fbe45c98267
e288857f32d757841c1ab13de746a1aaf6f427db
refs/heads/master
2023-03-04T21:54:14.744940
2021-02-17T22:15:08
2021-02-17T22:15:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,094
py
# Linked list operations in Python class Node: def __init__(self,item): self.item = item self.next = None class LinkedList: def __init__(self): self.head = None # Insert at the beginning def insertAtBeginning(self, data): new_node = Node(data) new_node.next = ...
[ "62112081+bittu1990@users.noreply.github.com" ]
62112081+bittu1990@users.noreply.github.com
3c8813ce0926fcb66cf690f46afdc6009bda9ff8
d2c052050635a3cbcce28a5e9f164b8225581310
/binaryapi/ws/chanels/logout.py
f8349354410eb0c2be5c542315c032964408b179
[]
no_license
victalejo/binaryapi
242862192a70893b2f3c1b1415ccd58f85f6edb5
2d658cc6368a88453b79f27f1d53ac6209f70602
refs/heads/master
2023-01-04T14:05:17.271043
2020-10-31T14:04:26
2020-10-31T14:04:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
925
py
"""Module for Binary logout websocket channel.""" from binaryapi.ws.chanels.base import Base from typing import Optional, Any # https://developers.binary.com/api/#logout class Logout(Base): """Class for Binary logout websocket channel.""" name = "logout" def __call__(self, passthrough: Optional[Any] = ...
[ "mdn522@gmail.com" ]
mdn522@gmail.com
e93485072f7dde66a96f36226d73af1ce6020ef3
195df01037252363ecfd9a64cefb486e4a41b342
/kwargs.py
16f0e0ec78154d3f24402d9fc3ca8ca08de03925
[]
no_license
vitalikas/python
133e8222a14fad007d85806e868d1dde9f3682e4
79cb7b43a2e64eafd27e68f14bcb96e1f8b2fb68
refs/heads/master
2021-03-04T13:08:20.083551
2020-03-13T15:32:25
2020-03-13T15:32:25
246,035,884
0
0
null
null
null
null
UTF-8
Python
false
false
206
py
from kwargs_constr import Tag paragraph = Tag( "p", klass=("text-align-right", "text-nice"), id="heading-text", data_bind="not-above" ) paragraph.text = "Some text inside tag" print(paragraph)
[ "noreply@github.com" ]
vitalikas.noreply@github.com
0ea5708e39aa0f5393ce8193792de58cd696611e
1c8a8c51803daa4503c45caddcec632a32a5b655
/Sina/a.py
aef44345d71ce23af62fe6a4c55bf9c118b11e61
[]
no_license
Bridgegong/sina_news
2fe466a932bae4a2ff411e3f8eda8c8d62ad651f
a3ca8654737119eec93ef799f26b1e53a18decc4
refs/heads/master
2020-03-18T02:45:50.385553
2018-05-21T02:13:26
2018-05-21T02:13:26
134,206,178
0
0
null
null
null
null
UTF-8
Python
false
false
219
py
# -*- coding: utf-8 -*- # @Time : 2018/4/25 14:24 # @Author : Bridge # @Email : 13722450120@163.com # @File : a.py # @Software: PyCharm from scrapy.cmdline import execute execute(['scrapy','crawl','xinlang'])
[ "gongqf@xingyuanauto.com" ]
gongqf@xingyuanauto.com
74ca69ba3a710702817368570c10f30f0588dc56
3f411730a385c03593a9331e59259e5758fe38c3
/molecule/default/tests/test_default.py
bc3ddcca7774eccf7b9b15234554046869096d2e
[ "BSD-3-Clause" ]
permissive
tiware23/ansible-prometheus
aa3a766850e0d14afefb9232d94d2c4bdb7efdfa
c36e4f36a189a641e9fea9c9e47e7a30b0a93c85
refs/heads/master
2020-04-12T05:09:14.480660
2018-12-19T11:16:40
2018-12-19T11:16:40
162,316,859
1
0
null
null
null
null
UTF-8
Python
false
false
731
py
import os import testinfra.utils.ansible_runner testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner( os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all') def test_config(host): config = host.run("sudo grep 'localhost:9090' prometheus.yml |wc -l ") assert config.rc == 0 def test_prometheu...
[ "thiagocavalcante@MacBook-Pro-de-Thiago.local" ]
thiagocavalcante@MacBook-Pro-de-Thiago.local
758e08d3d3232922ed1c3883e4c8f21bb48407bb
1f7704c5df44247097c17789998bb5ee9a62f876
/Wave1-labs/lab1of2.py
158f8d1d8b33e9090c4d648be255b7940d78228b
[]
no_license
promisejeremiah/promisejeremiah-WEJAPA-internship-datascience-study-2
d16b40702096bec88f09b2c784d1b4c83cb5c659
3d55104fd8eb5a39fc269c4a249f361b3e1e4b66
refs/heads/master
2022-12-01T12:58:54.174912
2020-08-16T14:56:06
2020-08-16T14:56:06
281,957,825
0
0
null
null
null
null
UTF-8
Python
false
false
369
py
floor1 = 9*7 floor2 = 5*7 total_floor_area = floor1 + floor2 print(total_floor_area) # Answer1: total number of tiles needed is: (total_floor_area = 98) pack_of_tile = 6 packs17_of_tiles = pack_of_tile * 17 left_over_of_tiles = packs17_of_tiles - total_floor_area print(left_over_of_tiles) #left over numb...
[ "noreply@github.com" ]
promisejeremiah.noreply@github.com
62f0d88f3927d57627424c035823594222bde7e5
e444fa5f3806305b32cb092a43f1f32340123727
/property/migrations/0002_property_prop_type.py
2e78ab72179b74b0ec5ea6081ff478f18690fc19
[]
no_license
oronibrian/safeCubProperty
2bcdec4b94e6511ad3108bb37bb8de8d155b1690
2e54f6a7d17dd4c485e9fb3ec793c8bcceecc694
refs/heads/master
2020-04-21T21:12:40.057883
2019-02-13T12:04:32
2019-02-13T12:04:32
169,871,276
0
0
null
null
null
null
UTF-8
Python
false
false
518
py
# Generated by Django 2.1.5 on 2019-02-08 18:34 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('property', '0001_initial'), ] operations = [ migrations.AddField( model_name='property', ...
[ "brianoroni6@gmail.com" ]
brianoroni6@gmail.com
0956bb50cd2c49f015a9317467b5b03862d8afd1
fd7a642a9af2801c5248665d4966f0c14ca682fc
/data/__init__.py
24b7e22d8afc7f0b22b43cc819be1d894c438f6f
[ "MIT" ]
permissive
Tythos/kepler
fa267d7bd8752c1fbc17ae31665c8f117abae5c5
68444879db15d3932899f95784c06bcbf17f8726
refs/heads/master
2021-01-20T17:23:52.322960
2016-06-14T18:25:32
2016-06-14T18:25:32
60,046,249
1
0
null
null
null
null
UTF-8
Python
false
false
606
py
"""Interface for package data stored in the "data" folder, providing methods to both resolve and load data. """ import os def get_path(data_path): """Returns the absolute path to the indicated data file stored under the 'data/' folder co-located with this module. """ return os.path.dirname(os.path.realpath(...
[ "code@tythos.net" ]
code@tythos.net
f41b45fbd083edec87e2aa2772ee1f6e8c289ade
ae15890d6e1185eb4bdb2017b91e8c2d047c5f8e
/main.py
2cda78e748f3e97796b9a1e435eab2099186a769
[]
no_license
shlomoko/cellebriteTest
feaf10d3bf48f18efd6fb0b2078cf1d3d530563a
81e3809f93b99901b3c312da965bb1b1d08c76f4
refs/heads/master
2020-04-14T06:25:10.900430
2018-12-31T18:31:43
2018-12-31T18:31:43
163,686,037
0
0
null
null
null
null
UTF-8
Python
false
false
1,392
py
import pandas as pd import re import time class TestParser: df = pd.DataFrame(columns=['ids', 'values']) filePath = "" def __init__(self, filePath): self.filePath = filePath def parseFile(self): with open(self.filePath, 'rb') as f: for line in f: decodedL...
[ "shlomokoppel2@gmail.com" ]
shlomokoppel2@gmail.com
e2b320628ffea84913ec9ca43c9ed390d0ea2cef
ae03ae6a546a81151457151f1dfeb226a2dc82e0
/python/showcase/setup.py
af36e6829eaad3ef88c50a51a40388a5d8fae86a
[ "Apache-2.0" ]
permissive
NilsHullegien/Apache-Flink-IN4331-Group15
1991f7053b1eb7011b98da0e8852803165efd3b9
b96401c94af3fcc9075968c20f927d835c47ecec
refs/heads/master
2023-05-22T07:48:06.671233
2021-06-15T00:52:20
2021-06-15T00:52:20
370,631,557
0
0
Apache-2.0
2021-06-14T15:14:03
2021-05-25T09:09:19
Java
UTF-8
Python
false
false
2,090
py
################################################################################ # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this...
[ "Y" ]
Y
71b9ade4a56e5e81e5e9a596188e3d39ddf35892
f903b3465da8da0ac10af8058ff2e54ae26e31e2
/artnet/artnet_node_planboard.py
1042d5a9e3ba56523685dae742a1230d797a0eb0
[ "MIT" ]
permissive
protolab-rosenheim/python-artnet
f2833878e0f4b0107ff7ff498541b44cd46a52c7
d4db8270f94b6cc0295fff33e026a64805d4cb96
refs/heads/master
2021-07-06T09:38:30.673518
2020-08-19T07:12:07
2020-08-19T07:12:07
150,841,578
4
0
MIT
2020-08-19T06:34:53
2018-09-29T08:13:38
Python
UTF-8
Python
false
false
1,602
py
import copy import logging from .artnet_node import ArtNetNode, ArtNetDMXPacket, PacketType class ArtNetNodePlanboard(ArtNetNode): def __init__(self, name, ip_address, port=6454): ArtNetNode.__init__(self, name, ip_address, port, max_history_size=5) # Contains a dict with universes and a list of ...
[ "michael.list@stud.fh-rosenheim.de" ]
michael.list@stud.fh-rosenheim.de
73248824d501628d62f90cc9698b0b528a989850
f445450ac693b466ca20b42f1ac82071d32dd991
/generated_tempdir_2019_09_15_163300/generated_part007132.py
1f6089f2019b0f614d30131e3882286e759c213f
[]
no_license
Upabjojr/rubi_generated
76e43cbafe70b4e1516fb761cabd9e5257691374
cd35e9e51722b04fb159ada3d5811d62a423e429
refs/heads/master
2020-07-25T17:26:19.227918
2019-09-15T15:41:48
2019-09-15T15:41:48
208,357,412
4
1
null
null
null
null
UTF-8
Python
false
false
1,296
py
from sympy.abc import * from matchpy.matching.many_to_one import CommutativeMatcher from matchpy import * from matchpy.utils import VariableWithCount from collections import deque from multiset import Multiset from sympy.integrals.rubi.constraints import * from sympy.integrals.rubi.utility_function import * from sympy....
[ "franz.bonazzi@gmail.com" ]
franz.bonazzi@gmail.com
dc15ab72d78039c72cb7652569799005745eaab3
012a587295049839a7784a1e7969094e2e5e3881
/assets/polls/models.py
c6e6b6cc9780b4783a2aa20411e207bcbc522085
[ "MIT" ]
permissive
EmilyXu12/EmilyXu12.github.io
d9aef815c5590d2f180f8cc9cf02a19b859ccc1a
fd3359a9314be114fddf6a474acc1b87cc89f763
refs/heads/master
2022-12-11T09:05:55.883434
2020-08-30T02:45:23
2020-08-30T02:45:23
269,801,760
0
0
null
null
null
null
UTF-8
Python
false
false
862
py
# Create your models here. import datetime from django.db import models from django.utils import timezone class Question(models.Model): question_text = models.CharField(max_length=200) pub_date = models.DateTimeField('date published') def was_published_recently(self): now = timezone.now() ...
[ "yuan.yuk@husky.neu.edu" ]
yuan.yuk@husky.neu.edu
5668ef2e1bb86d4b768ee317f984f8fe7bf11a41
23ac2442f3982b135f4450582a2616c70e7b0ae7
/pp.py
280b3ddc132881b4d81e24dbb4803de5f0ee21fc
[]
no_license
RATED-R-SUNDRAM/CPP-Graph-ALgo
0e29cd87180a2a5bd8db992159f790f24f27343d
662efa7a2bdee4dae57235c2d500716f2ab39201
refs/heads/main
2023-04-07T14:40:56.522040
2021-04-15T15:05:56
2021-04-15T15:05:56
342,605,585
0
0
null
null
null
null
UTF-8
Python
false
false
164
py
def fun(): a=1 b=10 c=1 if ((a&b or 0) or (a and c and 0)): a=a+c b=b%3 a=a<<1 print(a+b-c) fun()
[ "ss6437p@gmail.com" ]
ss6437p@gmail.com
466cb7ec79e01b61046b8004e4078b5bcab517a3
b9af2c53b739ad4353ee4867aeef20e377aa90bf
/bot.py
3692492765e9190aa76978f2e5f0b6cea27dd349
[ "MIT" ]
permissive
rodrigolanes/loterias
57a70fbacf37e860762433fe40eb50e42fa1b800
6725a9a7f24c35dc753c9213bb0ec60ae1ade20c
refs/heads/master
2021-01-05T08:48:38.464079
2020-09-07T23:26:34
2020-09-07T23:26:34
240,961,156
1
1
null
null
null
null
UTF-8
Python
false
false
2,357
py
import logging import os from dotenv import load_dotenv from telegram.ext import CommandHandler, Filters, MessageHandler, Updater from utils.format import formata_concurso_text from utils.sqlite_helper import add_usuario, get_last_concurso load_dotenv() telegram_token = os.getenv("TELEGRAM_TOKEN") # Enable logging...
[ "rodrigolanes@gmail.com" ]
rodrigolanes@gmail.com
7060cb7afe9007c628f318c3bc483c28a8c8b619
f0d713996eb095bcdc701f3fab0a8110b8541cbb
/5GW5Kb2RpGwhHax2W_20.py
a667a9e58b60c21164ebaa897ae6cefc8bf30434
[]
no_license
daniel-reich/turbo-robot
feda6c0523bb83ab8954b6d06302bfec5b16ebdf
a7a25c63097674c0a81675eed7e6b763785f1c41
refs/heads/main
2023-03-26T01:55:14.210264
2021-03-23T16:08:01
2021-03-23T16:08:01
350,773,815
0
0
null
null
null
null
UTF-8
Python
false
false
1,256
py
""" Create a function that takes a two-dimensional list as an argument and returns a one-dimensional list with the values of the original 2d list that are arranged by spiralling through it (starting from the top-left). ### Examples spiral_transposition([ [7, 2], [5, 0] ]) ➞ [7, 2, 0, 5...
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
fa5c6ddf98c3a80daff815c2a86a680d44ea94a9
682319f56c17e949bab0d6e418838d33977dd760
/RP/dis_Factorial.py
a7effff9c1276fd9ca0e3f0f754704cb606138c8
[]
no_license
DilipBDabahde/PythonExample
8eb70773a783b1f4b6cf6d7fbd2dc1302af8aa1b
669762a8d9ee81ce79416d74a4b6af1e2fb63865
refs/heads/master
2020-08-23T01:05:44.788080
2020-07-25T21:59:52
2020-07-25T21:59:52
216,511,985
1
1
null
null
null
null
UTF-8
Python
false
false
505
py
''' 4.Write a program which accept one number form user and return addition of its factors. input: 5 output: 120 ''' def make_factorial(iNo): ifact = 1 if iNo <= 0: print("invalid input") return 0; while(iNo != 0): ifact = ifact * iNo; iNo = iNo - 1; return ifact; def main(): ival = int(input("...
[ "noreply@github.com" ]
DilipBDabahde.noreply@github.com
a558b468d4be4de4ce8099d14650f06b022724d4
9f64ea02913bdc5cf841ac1242ec0f237c2edf87
/utils/text_preprocess.py
1b08637dcf5ad2ca211206aa4b36493dcb9f4d71
[]
no_license
zxp93/wsr
c23cca9c04af809e1bb7e9248737e891cf3ffcec
329944087982e6e951f2f6b18b31fb86a3845524
refs/heads/master
2023-06-13T21:57:23.639240
2021-07-12T05:29:47
2021-07-12T05:29:47
385,133,409
0
0
null
null
null
null
UTF-8
Python
false
false
1,682
py
import nltk from nltk.corpus import stopwords from nltk.stem.porter import PorterStemmer from nltk.stem import WordNetLemmatizer import string import pandas as pd def Preprocessing(text): """ 1. lower 2. punctuations are replaced by ' ' 3. tokenization 4. remove stopwords 5...
[ "zxpkpnm@gmail.com" ]
zxpkpnm@gmail.com
89650fb76bc0e4a41e0cd0e7a034edd4a5070dc4
18f05db01e134c0f1869f97d6ea829ffadcc27b2
/figure5/cluster-on-2d.py
03f75968f63826e805ada337039f8ee147bd4e69
[]
no_license
neusim/locust_AL_multipara_effect
d2f8662bbe89e196c5c7f23251190f30f434c50a
a4e6cb8374ad68a5e6cf70cae14f6928a9573743
refs/heads/master
2021-05-16T09:36:04.578248
2017-09-22T14:37:22
2017-09-22T14:37:22
104,484,565
0
0
null
null
null
null
UTF-8
Python
false
false
3,321
py
execfile('../slow/slow_analy_head.py') idx = range(PN_number) tb = 1100 te = 1350 use_num = 150 # use how many PNs print('use %d PNs'%use_num) use_idx = choice(idx,use_num) # PNs in use print('PNs:',use_idx) #use_slist = [0,18,42,72,108] # shifts #use_slist = [0,12, 30, 60,90] # shifts use_slist = [0, 12, 24, 36, 4...
[ "maoji.wang@cims.nyu.edu" ]
maoji.wang@cims.nyu.edu
f69ff33856dc08396b6de73337a2ae395df10786
2d13c3f509cba7b5870aa7537bd5b8a31dea651c
/config/settings.py
17e4b53ee9cf77105e777e6ceba0615df18a7066
[]
no_license
HUe1998/dashboard_with_chart
d72620c3f2e20cd8cf91bf68f901c625db17256d
242e0324f04927ff3d74c4067c8897b3db8e7eb2
refs/heads/main
2023-05-14T09:32:01.621167
2021-06-09T17:29:09
2021-06-09T17:29:09
374,452,160
0
0
null
null
null
null
UTF-8
Python
false
false
3,640
py
""" Django settings for config project. Generated by 'django-admin startproject' using Django 3.2.4. For more information on this file, see https://docs.djangoproject.com/en/3.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.2/ref/settings/ """ from pathlib ...
[ "himanshu.1998me@gmail.com" ]
himanshu.1998me@gmail.com
544b4a184d2bb3e6c8bed77a782d8f10ece1ffda
ccc2e354dc59bc464a62273f583a981686168030
/utils/data_helper.py
5a4b5b9c56953b5aa89d7f22fcae1f22e99aab37
[]
no_license
infovis2019-nfl/nfl_visualization
bd8b1adcc55f4b750dbe64cdcf66d3b4fd9c8318
50df1ad3773bcfffe452b9fa9622789d69f15554
refs/heads/master
2020-04-20T17:58:37.467408
2019-04-10T00:52:09
2019-04-10T00:52:09
169,005,058
0
0
null
2019-04-01T02:14:16
2019-02-03T23:21:16
JavaScript
UTF-8
Python
false
false
253
py
def normalize(arr): minValue = min(arr) maxValue = max(arr) normalizedArr = [] for i in arr: normalizedValue = (i - minValue) / (maxValue - minValue) normalizedArr.append(normalizedValue) return normalizedArr
[ "jordanjay28@gmail.com" ]
jordanjay28@gmail.com
dcd633771db3d305f2e7309cc2fbf6b31b683fe0
978b43297abb5fbcae8bc71d5047ce59c85e0835
/U_NetandPSP/PSP.py
593aae0bd0328dcc1ea8b49e816185f1088bab6e
[]
no_license
SongJgit/Learning-segmentation
e76d94ca5c3998b30d9397314f1f04f7bfd4779d
caf2a3ef6f14bb044eca337d04567ba749fbf300
refs/heads/main
2023-07-04T04:03:44.811960
2021-08-11T01:02:57
2021-08-11T01:02:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,093
py
''' Descripttion: Learn PSP version: 1.0 Author: SongJ Date: 2021-07-29 19:43:47 LastEditors: SongJ LastEditTime: 2021-08-09 11:16:20 ''' import numpy as np import paddle.fluid as fluid import paddle from paddle.fluid.dygraph import to_variable from paddle.fluid.dygraph import Layer from paddle.fluid.dygraph import Co...
[ "songj95@outlook.com" ]
songj95@outlook.com
73e14457dfe2f353b233083c289ec0843c364a15
1190c052fd3673a011acaf9b89d6f819b3acba56
/reg_tap4fun_v8.6.py
dfb9282d5631b78928f3bcba5bae124976a481c0
[]
no_license
pblh123/kaggle-1
e6d9494994efe2da5d4b7e2d8976f713cad37077
ee30b6e8a8da0e097381aac6621231d8de8da5c4
refs/heads/master
2020-03-27T17:49:02.464979
2018-09-12T06:30:19
2018-09-12T06:30:19
146,876,478
0
0
null
2018-08-31T10:18:31
2018-08-31T10:18:30
null
UTF-8
Python
false
false
16,839
py
# -*- coding: utf-8 -*- """ Created on Tue Apr 10 14:22:48 2018 @author: 1707500 """ ''' V1.0回归 ->85 v2.0 LASSO回归 转化label 为 ([prediction_pay_price]-[pay_price])/[prediction_pay_price] -> 66 v3.0 LASSO回归 转化label 为 ([prediction_pay_price]-[pay_price])/[prediction_pay_price] -> 66 ''' import pandas as pd import numpy a...
[ "noreply@github.com" ]
pblh123.noreply@github.com
1230993ea613696925d7f4d532aaad2779d6e8ff
3cb720248739427782d3ff5ac19c71f865b716a9
/Decorator/base/base/settings.py
e385c8584e59a4168cb3d5e6a825ae417ff359bd
[]
no_license
nidhi61/Aurora_repo
51b20350333e7e09718e1542f4df7b29b0372e7c
7c4c0ea53614eb6240893471c948a19fe2285be9
refs/heads/main
2023-08-07T00:09:14.743506
2021-10-01T18:45:24
2021-10-01T18:45:24
410,797,525
0
0
null
null
null
null
UTF-8
Python
false
false
3,246
py
""" Django settings for base project. Generated by 'django-admin startproject' using Django 3.2. For more information on this file, see https://docs.djangoproject.com/en/3.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.2/ref/settings/ """ from pathlib impo...
[ "abhishek.mehta2k@gmail.com" ]
abhishek.mehta2k@gmail.com
6ab9f08d6457b9b944820808109b67b0941f1197
aeeb9321646de059d0c392a4afecd9b5d5aea571
/kladama/queries.py
2d58398310064911f607b12498b18dbd1a4a0933
[ "MIT" ]
permissive
kladama/kladama-api-python
090fc68bd80b54533a4782bbf153f972b9f3c9c2
4d9650e986f3753b7e4303c2fc13a71cbcdfab28
refs/heads/master
2023-05-12T07:26:52.428423
2020-10-12T16:30:01
2020-10-12T16:30:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
10,238
py
import abc from abc import ABC # Base type class QueryBase(ABC): def __init__(self, parent): self._parent = parent @property def parent(self): return self._parent @property def url_path(self) -> str: return '{0}{1}'.format(self._parent.url_path, self.sub_url) @prop...
[ "noreply@github.com" ]
kladama.noreply@github.com
03badda6c736ae77fabe6eb4d69ce4e9211884cb
401f7294cc36a33400a8e563afc29bf43ad5eaf1
/FllSite/FLLapp/migrations/0002_auto_20161104_1845.py
f40335359d831dbebf02a4728f3a58229b54040d
[]
no_license
PattonPowerPandas/Website
061663a67b947b7f885c59912dd6aeba371e5fe9
7f7f6bb3ac026904bc2726bc508a06cb4e735b6d
refs/heads/master
2021-01-19T00:15:18.729252
2016-11-18T23:35:04
2016-11-18T23:35:04
73,023,130
0
0
null
null
null
null
UTF-8
Python
false
false
1,256
py
# -*- coding: utf-8 -*- # Generated by Django 1.10.3 on 2016-11-04 22:45 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('FLLapp', '0001_initial'), ] operations = [ migrations.AlterField( ...
[ "noreply@github.com" ]
PattonPowerPandas.noreply@github.com
46d488a81158109ea8212fb75a4625cf43db29e9
614fe05c42c0b9cd157b995f9f53fc33bb723ddc
/sample.py
cdd9698f0ac5c9541c6262c393474eb6d6bcfb16
[]
no_license
ryanh121/Image-Captioning
1612a17f7e0c9dd1e95883da4e0ad09c3e896aae
bc791492de597d7ce989533bdabb6799e066f033
refs/heads/master
2020-05-22T22:15:24.158154
2019-05-14T04:09:53
2019-05-14T04:09:53
186,542,717
0
0
null
null
null
null
UTF-8
Python
false
false
4,123
py
import torch import numpy as np import pickle import os from torchvision import transforms from model import EncoderCNN, DecoderRNN import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt import matplotlib.gridspec as gridspec from PIL import Image from pycocotools.coco import COCO print('finished ...
[ "noreply@github.com" ]
ryanh121.noreply@github.com
68b6ffd46d0fbf12b15ab7c25f7a4336f5eadec5
32e730b561b771de91192b8942854c25b4989c0a
/src/models/supervised/K_nearest_neighbors.py
e4054df0ce63356dbb39f9ce9e2e05fc65138367
[]
no_license
ramesht007/Machine-Learning-From-Scratch
4c14b953c6fb983539d34f150ec58d88e4126cef
0365c1a8ebdc081fe87082d3fa9858c98be9a3ea
refs/heads/main
2023-07-03T03:47:23.850864
2021-08-07T06:24:21
2021-08-07T06:24:21
391,897,143
1
1
null
null
null
null
UTF-8
Python
false
false
1,462
py
import numpy as np from src.utils.data_operation import euclidean_distance class KNN(): """ K Nearest Neighbor classifier. -------- input: k : {int} Number of nearest neighbors that will determine the class or value of prediction. """ def __init__(self, k=3): se...
[ "36106177+ramesht007@users.noreply.github.com" ]
36106177+ramesht007@users.noreply.github.com
e2765a1f14faec13301f2a8e52b72c76e99f7e6e
9ce3a5b7a85bf5d7a99145000b995b0ca3776809
/run.py
d8b50e02c4d1888bd03c4a18cfe4d91e94d86697
[ "Apache-2.0" ]
permissive
ducha-aiki/image-matching-benchmark
29c659420cb3343f9a61e7e3fde6f6daf158c85c
f1ab8f9e1dc1545648b2e700e7179c0ef5ea6e89
refs/heads/master
2021-01-03T21:17:38.133514
2020-02-13T06:58:23
2020-02-13T06:58:23
240,239,775
3
0
Apache-2.0
2020-02-13T11:02:16
2020-02-13T11:02:15
null
UTF-8
Python
false
false
10,080
py
# Copyright 2020 Google LLC, University of Victoria, Czech Technical University # # 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 ...
[ "etru1927@gmail.com" ]
etru1927@gmail.com
8bfcc4e0bbf644fede4572d63ea6c88246f3b3c2
18b99e3badc3648ef33db3261f94b504fdd03ea3
/Process10/PythonScripts/ChIPSeqPipeline.py
d5c0fdf70343c8754a005a0fc6cac34a93736b1e
[]
no_license
inambioinfo/ChIPSeqQC
311b9ea75515f6dbd854cd2ae52fc3be6add7a70
8f902ecf521b6ec1df4853ab9930c557dc76f19f
refs/heads/master
2020-04-18T10:12:35.434219
2013-11-16T16:24:14
2013-11-16T16:24:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
13,487
py
#!/bin/env /home/mib-cri/software/PythonInstall/bin/python2.7 import argparse import textwrap import os import ConfigParser import sys import subprocess parser = argparse.ArgumentParser( prog='ChIPSeqPipeline', formatter_class=argparse.ArgumentDefaultsHelpFormatter, description='\nChIP-Seq Analysis Pipeline\nWritte...
[ "tc.infomatics@gmail.com" ]
tc.infomatics@gmail.com
7184479c3765556523e2f0825cfcd578d81e8a89
755fec3e8280d4f07de7f637ea7e3acc7001a00d
/RostrosCNN/RostrosCNN.py
159a314d3818a884c19466e95cdbe84b76d48483
[]
no_license
julianapads/RostrosCNN
980086976e96df523b95f2a73229305342056818
9d990e742d1c3fcb882a28487d8758a691f748e7
refs/heads/master
2020-09-09T00:21:32.875466
2019-11-12T19:42:15
2019-11-12T19:42:15
221,287,052
0
0
null
null
null
null
UTF-8
Python
false
false
1,630
py
# -*- coding: utf-8 -*- """ Created on Fri Nov 1 17:28:20 2019 @author: JuanMC """ from keras.models import Sequential from keras.layers import Conv2D from keras.layers import MaxPooling2D from keras.layers import Flatten from keras.layers import Dense from keras.preprocessing.image import ImageDataGener...
[ "noreply@github.com" ]
julianapads.noreply@github.com
69c57df03fa273b49d12c88542be2ea63de291c0
df5a8c7785d7e8c3a3056da2296526ea6a6f6ec2
/Learn Python The Hard Way/ex10.py
0f2957dcf226de8564eaf4e2e5ca8406cf56ff91
[]
no_license
ldpcosta/LearningBooks
1d6e06cf97bb882f2eaca4b007131aa86734c319
d0939e2b4da92db95bdcf941f830f319112babe6
refs/heads/master
2021-01-18T02:00:00.521121
2016-08-11T10:53:14
2016-08-11T10:53:14
62,816,423
0
0
null
null
null
null
UTF-8
Python
false
false
638
py
#exercise 10 - more printing tabby_cat = "\tI'm tabbed in." persian_cat = "I'm split\non a line." backslash_cat = "I'm \\ a \\ cat." fat_cat = """ I'll do a list: \t* Cat food \t* Fishies \t* Catnip\n\t* Grass """ print tabby_cat print persian_cat print backslash_cat print fat_cat print """ These are some escape se...
[ "COSTAL@hbm.com" ]
COSTAL@hbm.com
298940d3569217e9ed7accd8e0f7b762d3d7a94b
37dbc79767c29aadc0a2c60a7c20dcea1c345479
/RickyA/PythonExplorations/files/files/GripRunner.py
406350132e39dcac1134627e0f918786ed8f1ba4
[]
no_license
Team100/2016-roboRIO-repo
47e20c875fa61cbc8aff3541e28a45c2a3366148
51385443e900fc9019451eb8d1e52ca59ebc8138
refs/heads/master
2021-03-22T02:15:20.020425
2019-01-04T04:21:11
2019-01-04T04:21:11
45,866,463
0
0
null
2019-01-04T04:21:12
2015-11-09T20:59:55
Python
UTF-8
Python
false
false
2,341
py
#!/usr/bin/python3 """ Simple skeleton program for running an OpenCV pipeline generated by GRIP and using NetworkTables to send data. Users need to: 1. Import the generated GRIP pipeline, which should be generated in the same directory as this file. 2. Set the network table server IP. This is usually the robots addr...
[ "noreply@github.com" ]
Team100.noreply@github.com
34742c7fda1ef63e7c3eff473e6820fd8c28bc64
804892fd741a9148091f23e8f2bec6d3ea46b9f4
/try02.py
cf9ab3d99e4d1c068beb5337a5077ebfbdb14f97
[]
no_license
waysman1/pyapi
2505a11ddc5dcb384089cae23063f135ffc7ee7e
722b417640596cba18a1fdd8215138c36be5228d
refs/heads/master
2020-06-26T03:55:09.826493
2019-08-01T14:31:54
2019-08-01T14:31:54
199,521,004
0
0
null
null
null
null
UTF-8
Python
false
false
516
py
#!/usr/bin/env python3 import sys #start with our infinite loop while True: try: print("let 's divide x by y!") x = int(input("What is the integer value of x?")) y = int(input("What is the integer value of y?")) print("The value of x/y: ", x/y) except ZeroDivisionError as zerr: ...
[ "lovern.m.ways@verizon.com" ]
lovern.m.ways@verizon.com
5197eee454e25481782e8dd7dc12d0ee79a3be2c
5d0add2ccde6732ff646c1cafba8650e8d30db8b
/interface/beer-control.py
e8fffa37dfc2b28e658ce10a0c1c42a34afdaa68
[]
no_license
paulbaumgart/mash-lauter-control
4ae51eb8468d02de4221c4502af3160efbe9db20
d3d871344e7062dfa3b2aed7150a938768b22f99
refs/heads/master
2021-01-11T17:07:47.632080
2011-11-06T17:38:13
2011-11-06T17:38:13
957,593
0
0
null
null
null
null
UTF-8
Python
false
false
2,100
py
from SerialCommunicator import SerialCommunicator, DeviceSyncError from Recipe import Recipe import os, ossaudiodev, sys, time, wave def usage(): print 'Usage: python %s <recipe_file> <output_log_file>' % sys.argv[0] sys.exit(1) def play_sound(filename): sound = wave.open(filename,'rb') try: ...
[ "paul@baumgart.us" ]
paul@baumgart.us
0a238db51960ba7e0593dd8c6e26e12a1597966b
b2ff53d368f543b4234a5c3a699d4dc51dc2ae00
/javahome/-boto3-9am-2018/resources-demo.py
f6e69f47ca605dbf7505d3a37dd518ae1670f8a8
[]
no_license
KostivAndrii/sources
9710c1123aa628f758ee31bd29d0779db168d58b
263a7455abee59c05566977af603fb14a86aa98f
refs/heads/master
2022-12-21T14:19:40.341327
2019-08-07T11:59:58
2019-08-07T11:59:58
181,833,282
4
2
null
2022-12-16T22:58:33
2019-04-17T06:47:38
Java
UTF-8
Python
false
false
355
py
# Find all running instances and stop import boto3 """ Boto3 client is low level object, it has all operations Boto3 Resource is a wrapper around client, resources will not have all operation(methods) which client has, resources, can simplify your code. """ ec2 = boto3.resource('ec2') # list(ec2.Ins...
[ "andrii_kostiv@epam.com" ]
andrii_kostiv@epam.com
7e26db2c2d363b2bbc701f880fc9fdbada89ddd9
baa2c6f22ff563d417e34692bf3345077eb8fa5f
/tools/tests/embed/embed_flufl.py
76682fae93617336b7dc20193ee4870564a03a44
[ "BSD-3-Clause" ]
permissive
ipython/ipython
c42ea223b6e391bb7dd39888cb959d4d5d6b21a1
e5103f971233fd66b558585cce7a4f52a716cd56
refs/heads/main
2023-08-30T18:27:18.436521
2023-08-29T12:16:00
2023-08-29T12:16:00
658,518
13,673
4,729
BSD-3-Clause
2023-09-12T20:22:09
2010-05-10T04:46:06
Python
UTF-8
Python
false
false
269
py
"""This tests that future compiler flags are passed to the embedded IPython.""" from __future__ import barry_as_FLUFL from IPython import embed embed(banner1='', header='check 1 <> 2 == True') embed(banner1='', header='check 1 <> 2 cause SyntaxError', compile_flags=0)
[ "pivanov5@bloomberg.net" ]
pivanov5@bloomberg.net
02558b646dbad0d6d01ecdca115a896aeb99a244
154c3188df0f9ba0dd03694d12ee61b3996ff160
/galeria/local/__init__.py
33e293417146be75834cf79572e08861f3485147
[]
no_license
apbonillab/Galeria_Equipo3
10e5f6d808ad42695e497e0a00fa468fca384f14
6091eee36271a50c45417f31b59ef72100bf3e6e
refs/heads/master
2022-10-16T14:02:04.228708
2018-09-11T16:01:11
2018-09-11T16:01:11
145,240,831
0
1
null
2022-09-30T22:49:16
2018-08-18T17:47:40
Python
UTF-8
Python
false
false
58
py
/home/adrianab/PycharmProjects/galeria/galeria/__init__.py
[ "apbonillab@gmail.com" ]
apbonillab@gmail.com
1f7dce71e7f172553640c9717607e06c6039adfb
a86cb1d0cc2c01ccc5b7d03d25a1b98d4f8b66ca
/day_04/dictionary_04.py
cbd49b836f3792192fbfe62c8fb33c5140b986be
[]
no_license
yongseongCho/python_201911
020efd812df909f6d1150c6a15a9a4fa6ee946b6
f4696fac81a101d13a95ca0ca602e6478b4d2f58
refs/heads/master
2020-09-12T12:44:46.364259
2019-12-19T13:17:08
2019-12-19T13:17:08
222,429,853
0
0
null
null
null
null
UTF-8
Python
false
false
1,129
py
# -*- coding: utf-8 -*- dict_numbers={'one':1,'two':2, 'three':3,'four':4, 'five':5} # dict_numbers 딕셔너리에 저장된 요소의 개수 확인 c = len(dict_numbers) print('딕셔너리에 저장된 요소의 개수 : ', c) # Dictionary 변수의 keys 메소드는 해당 Dictionary 내부에 # 저장된 모든 키의 값을 dict_keys 타입으로 반환 # dict_keys 타입을 인덱스를 기반으로...
[ "noreply@github.com" ]
yongseongCho.noreply@github.com
c8045660690f63186b8d944263713fcbde1a17ea
7dc6492844ab167c623d97ad6fdd3ef2fd62125b
/scripts/etl-challenge-1/xscript.py
bc137321aa089470ea532eeea0233e988d114315
[]
no_license
NearTripleh/Airflow-snowflake
085bbda845f8485c793b16fba9bc6b678199b0b3
8c9fc21f7edc39dd4408aad0a917b1b0fdf5d58d
refs/heads/main
2023-06-13T00:26:46.423382
2021-07-14T20:00:42
2021-07-14T20:00:42
386,060,042
0
1
null
null
null
null
UTF-8
Python
false
false
1,489
py
import pandas as pd import os, sys, requests, io from datetime import datetime def create_insert(args): PWD = os.environ['pWD'] file = PWD+'/scripts/etl-challenge-1/data.csv' df = pd.read_csv(file,encoding = "utf-8") df = df.head(100) inserts = "INSERT INTO ETL_CHALLENGE_1.DATA_EXAMPLE " for in...
[ "adonovan.avila@gmail.com" ]
adonovan.avila@gmail.com
5f434e40f19de6e5c8a1e60229ee6a8c75d55095
296c96b8c5d9a4ce379a1194c3f14d06ea488142
/Checking_for_longest_gene_set.py
3fefcd2a187e1beb2cad4d19a7122523b7504518
[]
no_license
phhm/thefruitflygang
6bed7031de9da4517301a519cf3442963e83c217
064fd907d7d0c89ca9c178481c96e79070d45c89
refs/heads/master
2016-09-06T12:02:44.278226
2014-12-19T11:36:35
2014-12-19T11:36:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,235
py
Melanogaster = [23,1,2,11,24,22,19,6,10,7,25,20,5,8,18,12,13,14,15,16,17,21,3,4,9] def Swap(List, left_border, right_border): ''' Swaps a sequence of List elements between the left_border and right_border ''' i = List.index(left_border) j = List.index(right_border) templist = [] for number in reversed(List[...
[ "jasper.linmans@hotmail.com" ]
jasper.linmans@hotmail.com
03f120ae899bbdaad8234487b6738b00eac1367e
76cb5c642d1b447cefd6cde9a84b1b99e244c9bf
/IpManager.py
4d5691a9fd50bce134b203aa6a1c8dfb77707014
[]
no_license
simingjiao/WebcrawlerforCOVID-19
19aaac79e0502b8f2d8a59dfb755442e11dbc338
278e982d51ff39e84a6eb3a8862c2815727da331
refs/heads/master
2022-04-25T13:38:49.479965
2020-04-26T01:38:52
2020-04-26T01:38:52
258,660,022
1
0
null
null
null
null
UTF-8
Python
false
false
4,988
py
#管理IP,构建和维护自己的IP代理池,防止电脑的IP被封号 import pickle import pymysql import SqlManager as Sql import requests import time from bs4 import BeautifulSoup import random import json import Htmlparser as parser import re import telnetlib class IpManager(): def __init__(self): self.tablename = 'new...
[ "noreply@github.com" ]
simingjiao.noreply@github.com
21f4047c9004ca6bdb817238921564195e4409bd
896c24c5bbc82e7759e3ab8f1c4de5f1bf44ce6c
/organization/migrations/0011_alter_userinformation_address.py
e6f5d33e6067de5bb6aa2504818eb57d05f9d03b
[]
no_license
ajayradiantinfonet/lms
d92bd525d2043c6b1963596df53010cb9d98da42
16c742d20fcfc220e0e8c7fe3ebade54c516dcf4
refs/heads/main
2023-08-29T22:20:48.518174
2021-10-26T09:58:17
2021-10-26T09:58:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
434
py
# Generated by Django 3.2.4 on 2021-06-23 09:26 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('organization', '0010_alter_userinformation_phone'), ] operations = [ migrations.AlterField( model_name='userinformation', ...
[ "ajaybabu0046@gmail.com" ]
ajaybabu0046@gmail.com
0809874d62973c8e46501adf85a2889569c647eb
da1c56016a69b68fdb9010130a650778c363b4fa
/lcode/lab126/swap_bits.py
e535192b48efe3b2960a8450511188bcf956bd02
[]
no_license
sandeepbaldawa/Programming-Concepts-Python
519ab60fc9ca5bf2f52e098bab0885218a1d9411
178a1d26443066f469987467bda0390f5422561e
refs/heads/master
2023-03-06T21:35:14.585039
2023-02-26T04:38:44
2023-02-26T04:38:44
40,800,329
12
5
null
null
null
null
UTF-8
Python
false
false
427
py
''' write a program tto see is it is a prime or not bits manipulation...given: number 73 in binary, value of index i and j ...swap index i and j to get a new number. ''' #Below just toggles the bits when we know the bits are different.. def swap_bits(x, i, j): # Toggle bits only if both ith and jth value are diff ...
[ "noreply@github.com" ]
sandeepbaldawa.noreply@github.com
49c0cd88ff8e38f5ffa9e85e7d46e07391ed29c7
ef8c5c55b6ec3971adff9afe2db1f76556b87082
/code_examples.bak/VTK/visual_traits.py
cbd5ebbe2a06dd2a2a21f0eb871e662d4602aa0b
[]
no_license
wbkifun/my_stuff
7007efc94b678234097abf0df9babfbd79dcf0ff
0b5ad5d4d103fd05989b514bca0d5114691f8ff7
refs/heads/master
2020-12-10T22:40:28.532993
2017-11-15T11:39:41
2017-11-15T11:39:41
5,178,225
1
0
null
null
null
null
UTF-8
Python
false
false
1,041
py
from numpy import linspace, pi, cos, sin from enthought.traits.api import HasTraits, Range, Instance, on_trait_change from enthought.traits.ui.api import View, Item, HGroup from enthought.mayavi.core.ui.api import SceneEditor, MlabSceneModel def curve(n_turns): phi = linspace(0, 2*pi, 2000) return [ cos(phi) ...
[ "kh.kim@kiaps.org" ]
kh.kim@kiaps.org
8405b24873b73b5ee1bd8ea55d70de82dc98f7d8
c6a9a6db04cc7c28678bb91c26805fa25c3e4d89
/cocos2d/build/android-build.py
47ffe5930e403f952ddaa308c9a6f1b8b6427e14
[ "LicenseRef-scancode-unknown", "LicenseRef-scancode-unknown-license-reference", "BSD-3-Clause", "LicenseRef-scancode-warranty-disclaimer", "AFL-3.0", "AFL-2.1", "MIT-0", "MIT", "LicenseRef-scancode-proprietary-license", "Apache-2.0" ]
permissive
aftermisak/WSSParticleSystem
e51b799afff7bb0790bcde6bab4869d36226f894
94b0b0f68b6c08537efd4f2d6ab1af1228f36d02
refs/heads/master
2023-08-31T07:44:31.178492
2018-04-19T07:36:43
2018-04-19T07:36:43
132,569,861
0
0
Apache-2.0
2018-10-22T03:19:03
2018-05-08T07:18:26
C++
UTF-8
Python
false
false
3,413
py
#!/usr/bin/python # android-build.py # Build android import sys import os, os.path import shutil from optparse import OptionParser CPP_SAMPLES = ['cpp-empty-test', 'cpp-tests', 'game-controller-test'] LUA_SAMPLES = ['lua-empty-test', 'lua-tests', 'lua-game-controller-test'] ALL_SAMPLES = CPP_SAMPLES + LUA_SAMPLES de...
[ "1139454623@qq.com" ]
1139454623@qq.com
cd1e22776ab074701e0dca59a09998094b33253b
fdf5af195051846dab4d2a1e798084ba1d4c2ee7
/mysite/settings.py
f9684a67aaf8a05918f3b49309698d3b5c878615
[]
no_license
Takeru0909/first-blog
ddcf262294ca41afc42f0b9a2981f1fbbab48ce7
3529437ccb07464e44eb4e6be7bf0541d3cf943e
refs/heads/master
2023-06-28T08:51:55.400589
2021-07-29T04:21:43
2021-07-29T04:21:43
390,598,937
0
0
null
null
null
null
UTF-8
Python
false
false
3,201
py
""" Django settings for mysite project. Generated by 'django-admin startproject' using Django 2.2.24. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ import os #...
[ "shingutakeru0909@ezweb.ne.jp" ]
shingutakeru0909@ezweb.ne.jp
78d626193a10189b8c18ca9679ff23376dfddb21
5fad1b7002394b0cc32261ec2c417a916716b68f
/temp_01/src/temp_08.py
4c9e32c0e27acdc9348f0eebc75b82dc4786ef9f
[]
no_license
WenruiShen/PythonPractice
320a710e933cd99c82681db037a202097a80f182
c43c8b9db681bb5a7d60afe4a48fd361f457d198
refs/heads/master
2021-07-11T14:29:08.461917
2017-10-12T01:10:29
2017-10-12T01:10:29
106,627,351
0
0
null
null
null
null
UTF-8
Python
false
false
1,578
py
import sys ''' 360 test: 7 20 4 5 2 12 5 12 12 4 20 10 10 10 10 4 12 5 5 5 5 ''' line_1_list = sys.stdin.readline().strip().split() game_n = int(line_1_list[0]) max_t = int(line_1_list[1]) line_2 = sys.stdin.readline().strip() item_time_list = list(map(int, line_2.split())) sum_time = 0 max_sum_time = 0 # sele...
[ "wenrui.shen@ucdconnect.ie" ]
wenrui.shen@ucdconnect.ie
f1d22991161fc9da201d5eaefae33f1d470f0aa7
76cf3f747e0a640016323d8d99886a260852dcc0
/hackerrank/leetcode75.py
7dd04d9a68252a5508a72396d05fa45ebd47a3bc
[]
no_license
cocacolabe/TechInterviewProblems
be4c257c5a066cca472a95b200eddbf8c9940734
d16e6da62a6f7cdb5e18da3c0379882aac717d39
refs/heads/master
2021-06-13T18:48:10.062638
2017-02-11T18:47:25
2017-02-11T18:47:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
467
py
class Solution(object): def sortColors(self, nums): """ :type nums: List[int] :rtype: void Do not return anything, modify nums in-place instead. """ n = len(nums) i, j = 0, 0 for k in range(n): v = nums[k] nums[k] = 2 ...
[ "noreply@github.com" ]
cocacolabe.noreply@github.com
bd1a32229bba4dc8c31dffdb97a8505ea9559002
5a281cb78335e06c631181720546f6876005d4e5
/murano-7.0.0/murano/cmd/cfapi.py
9bfd922e41c8a94789f7727076f26d8c5235d109
[ "Apache-2.0" ]
permissive
scottwedge/OpenStack-Stein
d25b2a5bb54a714fc23f0ff0c11fb1fdacad85e8
7077d1f602031dace92916f14e36b124f474de15
refs/heads/master
2021-03-22T16:07:19.561504
2020-03-15T01:31:10
2020-03-15T01:31:10
247,380,811
0
0
Apache-2.0
2020-03-15T01:24:15
2020-03-15T01:24:15
null
UTF-8
Python
false
false
2,144
py
#!/usr/bin/env python # # Copyright (c) 2015 Mirantis, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless re...
[ "Wayne Gong@minbgong-winvm.cisco.com" ]
Wayne Gong@minbgong-winvm.cisco.com