blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
942831fbb12927eeb7a94a6bbcb2d5a380233baa | 284e0b95e1699085e24eafc1f59d53024d7860b5 | /sum.py | 60dc63df91862cc0e359c500dc16385fd23c8744 | [] | no_license | lisael/parallel_bench | 014ecc3399cee9aa510f025257488b30a81f0b3e | 7bd64804b3866c09964f55bc7b18090c4ee04014 | refs/heads/master | 2020-07-14T11:14:57.186921 | 2016-08-29T08:49:59 | 2016-08-29T08:49:59 | 66,700,580 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,305 | py | #! /usr/bin/python
from cStringIO import StringIO
FIELDS = ["name",
"lang",
"run_time",
"run_mem",
"build_time",
"build_mem",
"exe_size",
"version",
]
HUMAN_FIELDS = {
"name": "Bench",
"lang": "Language",
"run_time": "Duratio... | [
"bruno.dupuis@novapost.fr"
] | bruno.dupuis@novapost.fr |
230b8d139a3fe1b4a2b0befd673aebccdac45332 | c5959b7e4fc5b752b54a6352449c1bb0d28d9115 | /bab/bab-12/mysql_fetchmany.py | 1efde507ffa28d2168fa13356bdb0bff188622af | [] | no_license | romanbatavi/kickstarter-python | f5592a371740b28c045ef99dd510d1c6a92ff8d1 | ed3eb692e09a3f44fd3e0b16ab7b042ee2658db6 | refs/heads/master | 2023-03-29T11:34:23.774873 | 2021-04-04T09:11:28 | 2021-04-04T09:11:28 | 354,500,208 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,086 | py | ######################################################
# Nama file: mysql_fetchmany.py
######################################################
import mysql.connector
import sys
def main():
try:
conn = mysql.connector.connect(
user="raharjo",
password="123456789",
host="127.0.0.1",... | [
"romanbatavi98@gmail.com"
] | romanbatavi98@gmail.com |
61e475a5edea621de678d0145c84983bda3de604 | f09bfc764408cbe6eb3a28f3f3eadb0318fcd0f2 | /data/urls.py | 09bbae519ec3b6cc2a1d7fcd0574f1d3f36b11f9 | [] | no_license | PRAJWAL7HS/Data-Visualator | 3261c173626739a1ef7b2640a1527fbb3c22de7f | b0e63cf404e0988226cef80dcb5e21c43fc8244f | refs/heads/master | 2022-12-14T06:35:02.662995 | 2020-09-25T09:31:30 | 2020-09-25T09:31:30 | 298,526,654 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 258 | py | from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^$',views.index,name='index'),
url(r'^output/', views.output,name='output'),
url(r'^output2/', views.output2,name='output2'),
url(r'^keyerror/', views.keyerror,name='keyerror')
] | [
"prajwal7nov@gmail.com"
] | prajwal7nov@gmail.com |
ae2ebf4e7e2e931e5ea35f2da3fa9bb7e21123ff | f1176e03005a3691cbc779cad290bd2878e78a2f | /gui/input_manager/database_object.py | d258244b0d5d9b52e105676737925ba0e3ccd70b | [
"MIT"
] | permissive | anglebinbin/Barista-tool | 0aa69acb21a14c4c4f913e76dffb64709763563d | 2d51507fb3566881923f0b273127f59d23ed317f | refs/heads/master | 2020-03-29T08:55:15.918365 | 2018-09-21T08:36:47 | 2018-09-21T08:36:47 | 149,732,951 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,432 | py | from backend.input_db.lmdb_input import *
from backend.input_db.leveldb_input import *
from backend.input_db.hdf5_txt_input import *
class DatabaseObject:
'''abstraction to make accessing databases easy and consistent across types'''
def __init__(self):
self._legalTypes = ["LMDB", "LEVELDB", "HDF5TXT... | [
"yangjibin1989@gmail.com"
] | yangjibin1989@gmail.com |
ae143a2e7ad13058328e29e9199d2583870747f5 | 614688221eb0168bab80e167fcad1b173c4b73c2 | /main.py | 172d0adf8aa06f21ff67c19007fc1496bcb58f10 | [] | no_license | levyn96/PodByIP | b2d6b390c348d2ecb560d1b0ef3807a98cae9755 | 610b47eb484adc563b88464ae39782e3286ab411 | refs/heads/master | 2023-04-16T21:41:45.447853 | 2021-04-17T18:33:03 | 2021-04-17T18:33:03 | 358,329,963 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 798 | py | from kubernetes import client, config
from flask import Flask, request
import json
app = Flask(__name__)
@app.route('/', methods=['GET'])
def get_query_string():
return check_pods(request.query_string.decode())
def check_pods(req_ip):
ans_json = []
config.load_incluster_config()
v1 = client.CoreV1Api... | [
"levyn96@gmail.com"
] | levyn96@gmail.com |
b8c2b057911a64868d18df5dbdc0e7bb1e32fd32 | 0843fa7de40159bdbdfcbb682967b372864dea5b | /cgi-bin/loginController.py | fec03b5b0ed86571bf7b1a96d6a7c200d8b7a787 | [] | no_license | mohini-vaish/PlantcareWebsite | 6feac5a6371b7979f4051929822d31c6791c595e | fd2d18ca377a1763bf275254636b2b1a5708b5aa | refs/heads/main | 2023-09-03T00:48:42.707730 | 2021-11-14T06:41:52 | 2021-11-14T06:41:52 | 427,855,879 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,195 | py | import cgi
import model
import home
form = cgi.FieldStorage()
email = form.getvalue("login_email")
pwd = form.getvalue("login_pwd")
data = model.loginUser(email,pwd)
def header(email):
print(f"""<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
<a class="navbar-brand" href="#" styl... | [
"noreply@github.com"
] | noreply@github.com |
ee6d38fc60ae5824a4dd7212393652fa2b9d2c3a | 1ef3a9845d0d0af1f6ae6a8ab313de01a1da3bf3 | /bcipy/signal/viewer/lsl_viewer.py | 53f8841d0230d6b4112132aea61e7dd2ca257274 | [
"MIT"
] | permissive | andrewjsauer/BciPy | 9f4968d7f78521a281939651de70a1066f4b58fc | 0684a820c140824d9756bedca667b68622b30ef4 | refs/heads/master | 2020-04-07T04:06:28.094043 | 2018-11-10T00:52:25 | 2018-11-10T00:52:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,041 | py | """LSL Viewer.
An easy to use lsl signal viewer. Not suitable for use while running
BciPy experiments.
Adapted from: https://github.com/NeuroTechX/bci-workshop
"""
import numpy as np
import matplotlib.pyplot as plt
from scipy.signal import butter, lfilter, lfilter_zi, firwin
from time import sleep
from pylsl import... | [
"memmott@ohsu.edu"
] | memmott@ohsu.edu |
3a5da2f959277cfd6a787fcda66e8b3ab4edae0a | 7ab98be70d3925e24096b222f2f0b6d8da4f286d | /setup.py | 51e1805ec0c72836dcc9735bac3f8189a8bfc164 | [
"MIT"
] | permissive | arunj18/SimpleNN | 9858c47f7b2815a3a3bfa0502707ea9c4001ecfd | dcc31a9debef36443d7a148cec908b5ac0e09b4c | refs/heads/master | 2023-01-27T18:39:53.410663 | 2020-12-05T22:04:05 | 2020-12-05T22:04:05 | 188,019,342 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 364 | py | from setuptools import setup
setup(
name='SimpleNN',
version='0.0.3',
description='Simple Multi Layer Neural Network',
url='git@github.com:arunj18/SimpleNN.git',
author='Arun John',
author_email='arunjoh@gmail.com',
license='MIT',
packages=['SimpleNN'],
install_requires = [
... | [
"arunjoh@gmail.com"
] | arunjoh@gmail.com |
941eed0f81560dccbcd378a4fa258db160bfd547 | 07bab8cd09c27e93c6eb0e0c47b6f472b4a89d45 | /web/home/urls.py | f6c1eb52d83ff48da122cf768e4c2cc1af36d91e | [] | no_license | arunchaganty/webbed-feet | 0b0de344a64fe6a1d5619982d603a785d4ee02cb | d7b3d96900935d43bea97d175cb5552a1aba02d5 | refs/heads/master | 2021-01-01T06:44:59.555676 | 2011-11-28T17:17:52 | 2011-11-28T17:17:52 | 887,725 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 213 | py | from django.conf.urls.defaults import *
urlpatterns = patterns('web.home.views',
(r'^logout/$', 'logout'),
(r'^login/$', 'login'),
(r'^ping/$', 'ping'),
(r'^help/$', 'help'),
(r'', 'home'),
)
| [
"arunchaganty@gmail.com"
] | arunchaganty@gmail.com |
afc06c30376199769572b5ef146da4f678b86726 | 610b242b1e5c308b8910cc62ce151fd1b766dc46 | /similar_images_TL/src/vgg19.py | 982e5b605fc4a1e57ba8c08cc5d4ac8cebf0570a | [
"Apache-2.0"
] | permissive | david30907d/artificio | 3f12cb7b46024363e50367a170d61220d92accf7 | 6c4947ad4fae7c82d1d4403d505715118e6d92bf | refs/heads/master | 2020-03-27T23:10:11.750300 | 2018-09-06T01:20:08 | 2018-09-06T01:20:08 | 147,297,235 | 1 | 0 | Apache-2.0 | 2018-09-04T06:18:05 | 2018-09-04T06:18:05 | null | UTF-8 | Python | false | false | 8,952 | py | # -*- coding: utf-8 -*-
'''VGG19 model for Keras.
# Reference:
- [Very Deep Convolutional Networks for Large-Scale Image Recognition](https://arxiv.org/abs/1409.1556)
'''
from __future__ import print_function
import numpy as np
import warnings
from keras.models import Model
from keras.layers import Flatten, Dense,... | [
"ankonzoid@users.noreply.github.com"
] | ankonzoid@users.noreply.github.com |
5db01d9532ec3aa7e4ec5e949ecf86e9bcdf2d61 | d4e69803307989c49244fcccdc6bf30cec972a71 | /dist/ecbf38d52d37/src/lib/protocol/sync_pb2.py | 97351d65bdae0410ece4ba5c715be1cd0e3ff9f9 | [] | no_license | jdtsillas/chromium-sync-server | a19fc0ce0b51b3681ecc1566362010e20df383c6 | c29b97a5022560eb377755e19fad74babebd08ab | refs/heads/master | 2023-03-03T20:22:52.478340 | 2020-05-01T19:25:37 | 2020-05-01T19:25:37 | 270,761,500 | 0 | 0 | null | 2020-06-08T17:28:54 | 2020-06-08T17:28:53 | null | UTF-8 | Python | false | true | 140,251 | py | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: sync.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflecti... | [
"jtsillas@viasat.com"
] | jtsillas@viasat.com |
4a6c6564a7410d1c6c84a83dbea800cab257207e | aae15f07796cbd399c67eba6842188fd6476bb7d | /cluster_manager.py | c425314dd005258a57314a6abc1cc7f15480d07c | [] | no_license | brian-yu/tetris-scheduler-simulator | bfcf98651e4001fc98b0d56d5a6e745f440ccf14 | 37853d58480f48831ef48c0091d7f04d35b00712 | refs/heads/master | 2020-09-23T08:53:45.721940 | 2019-12-03T00:28:48 | 2019-12-03T00:28:48 | 225,457,521 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,445 | py | """
- Do you have any guidance on how I should begin implementing the scheduler? Are there any existing frameworks that I can build on top of?
- You can just implement the key idea of the scheduler at first. Just try as simple as you can and use your most familiar programming language. For example, if you need to imp... | [
"brian@byu.io"
] | brian@byu.io |
e7b11669bf061164882487a122583d6f8eb2ec25 | ff94e398ac5ea9d607521870357cbf5ee835bbc0 | /arbitrage/private_markets/vircurexusd.py | c86a2d314ea8a9bec822b5eac9165c279ef3b4d1 | [
"MIT"
] | permissive | franciscopassos/bitcoin-arbitrage | 4772e286c3d6916a7fed57ea6b38270f02f8d444 | a17b5452cd21a1ffc6d5bb2b6d9e153836361cb3 | refs/heads/master | 2020-05-20T12:59:18.488928 | 2014-02-17T05:49:33 | 2014-02-17T05:49:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,978 | py | from .market import Market, TradeException, GetInfoException
import time
import urllib.request
import urllib.parse
import urllib.error
import hashlib
import json
import config
import logging
import http.client
import random
class PrivateVircurexUSD(Market):
domain = "api.vircurex.com"
auth_api_url = "https://a... | [
"bearish_trader@yahoo.com"
] | bearish_trader@yahoo.com |
499e493f09f9e3412bba7e389a4aee9469610538 | f68256a61670f831be52284c3cd307ddb5536fe4 | /step2.py | 8bd23043634c1dfd727ed0381a53ad5f662a9208 | [] | no_license | fang-tong/pythonroad | 4a68e8317d42426dc18df9bc8a8b6d2f78a70bd6 | db1f4d2b0881ebf76a84279eb5a441271b54d0c3 | refs/heads/master | 2020-03-29T18:48:20.084239 | 2018-03-25T14:31:49 | 2018-03-25T14:31:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 595 | py | #基本数据类型
#int
123
-345
0
0x11 #16进制
0b11 #2进制
#float
3.14
-1.23
1.2e5
1.3E5
-3.4e-4
#string
"a"
'abc'
'I\'m OK!'
"print('I\\'m OK!')"
print(r"\\") #\\ 运行时不转义 但语法检查时按转义检查
#print(r"\\\") #语法错误
'''abc
def \n geh
d''' #转义
"""abc
def \n geh
d""" #转义
r"""abc
def \n geh
d""" #不转义
#bool
True
False
True and False or... | [
"vchengyun@163.com"
] | vchengyun@163.com |
e5cbbd4c004873e29e27943013a56bab2fcc47c1 | 67b03be734efbd794b266d98a339504f4e40f670 | /problem2.py | ceafba85691a6ffec8bba740ad647c7040bb3e32 | [] | no_license | Yuudachi530/Watchpoint-0522 | b0849294bd7696765085ee250f207929c8d2c269 | cc17e561425a8eb06ef6fa0cf11fba179c7282e5 | refs/heads/master | 2020-05-25T13:55:44.235982 | 2019-06-01T13:04:39 | 2019-06-01T13:04:39 | 187,832,765 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 211 | py | s = input('')
c = 0
counter = 0
while c != len(s)-2:
if s[c] == "b" and s[c + 1] == "o" and s[c + 2] == "b":
counter = counter + 1
c = c + 1
print(counter)
| [
"noreply@github.com"
] | noreply@github.com |
da26a9153d07a7afce398fe04106124e6bda0376 | 78e14dc48266b51790f6b6038f25cfad3163b3e6 | /cnn.py | e0d4c61436d411ef4b6a4e31c117d20b0a6355bc | [
"MIT"
] | permissive | nzufelt/theano_nn | fe9be57d98121566cdb39d1d4b10dcbc9b9bbdd3 | af8f34ff861c04d999b3205831708371f573e5bf | refs/heads/master | 2021-01-10T05:48:04.613741 | 2016-04-06T21:49:31 | 2016-04-06T21:49:31 | 55,208,670 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,016 | py | """
Implement a convolutional neural network using theano. This script was
created by Nicholas Zufelt as a part of the London Machine Learning
Practice meetup.
"""
import sys
import numpy as np
import numpy.random as rng
import pandas as pd
import theano
import theano.tensor as T
from theano.tensor.signal.pool import ... | [
"nicholas.zufelt@gmail.com"
] | nicholas.zufelt@gmail.com |
fc9ebc40b72057112432c4d26972d6703adce9c7 | 4bf1cd19243cfaf8df502862f204dc31d59e5516 | /Python/hello_world_colored.py | 000cba07f27180bf342d65b1a4d45beec130c18a | [
"MIT"
] | permissive | frogo123/HelloWorld | 56b212f65dcfd8bd14c87e96ea634efb3a7a053b | 71540f3ea4f53037ff6cf8a55aee519621fc9082 | refs/heads/master | 2023-08-19T11:56:46.545113 | 2021-10-15T09:39:12 | 2021-10-15T09:39:12 | 417,229,253 | 1 | 0 | MIT | 2021-10-14T17:47:56 | 2021-10-14T17:47:55 | null | UTF-8 | Python | false | false | 619 | py | def prRed(skk): print("\033[91m {}\033[00m".format(skk))
def prGreen(skk): print("\033[92m {}\033[00m".format(skk))
def prYellow(skk): print("\033[93m {}\033[00m".format(skk))
def prLightPurple(skk): print("\033[94m {}\033[00m".format(skk))
def prPurple(skk): print("\033[95m {}\033[00m".format(skk))
def prCya... | [
"noreply@github.com"
] | noreply@github.com |
baeaee6e85070d0678d4a84d36b5c31c6120c37d | 409a3d53b08f55b6b42643dc68b1eb6daeb54ced | /mars/worker/storage/manager.py | e86274236fdd73677dad204ffac904129d42f61c | [
"BSD-3-Clause",
"MIT",
"OFL-1.1",
"LicenseRef-scancode-unknown-license-reference",
"Python-2.0",
"CC0-1.0",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | sighingnow/mars | 06cbcd8f4aa132a85cdb6c7215c61139636e316b | c7897fbd144d230fff5edabc1494fb3ff44aa0d2 | refs/heads/master | 2023-01-21T12:11:12.469853 | 2019-09-26T09:34:13 | 2019-09-26T09:34:13 | 189,408,668 | 0 | 0 | Apache-2.0 | 2021-01-12T06:19:58 | 2019-05-30T12:19:28 | Python | UTF-8 | Python | false | false | 5,231 | py | # Copyright 1999-2019 Alibaba Group Holding Ltd.
#
# 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 a... | [
"qin@qinxuye.me"
] | qin@qinxuye.me |
b64413a5f1f43411b6c1a509d2bbac03e8461e78 | 07c4ee718cf0a3e2eb92afd136b9e5fc0bdb531f | /Example/Robertson/geodesics.py | c919f8bc847e5e04b427362fa381df91e920c15f | [
"BSD-3-Clause"
] | permissive | robertvsiii/sloppycell | 3df21728881e84d5c2001513d81e32268185b9b1 | caf6daa09f2202acccf26ad31890fddaf4af82e8 | refs/heads/master | 2020-06-13T17:35:51.787416 | 2019-07-01T19:50:54 | 2019-07-01T19:50:54 | 194,734,411 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,850 | py | """
Code from Mark Transtrum
"""
import scipy
import scipy.linalg
from scipy.integrate import ode
# XXX: Commented out by RNG, because he couldn't import it. Unused?
#from leastsq import leastsq
def AvvFD(x,v,func,args):
return (func(x + 0.1*v,*args) + func(x - 0.1*v,*args) - 2.0*func(x,*args))/0.01
def geodesic_... | [
"robertvsiii@gmail.com"
] | robertvsiii@gmail.com |
3007a901d86dc2f56c052a97d3e226e0d6e29254 | 29ac6042090b539a9b3c9dc1baa701310496cf41 | /failed/phre.py | 7c6e80d3ac20d7f79e5ec2c241aeb8a1691a72b8 | [] | no_license | taw/rosalind | b1a6609479f3b8c4eec1f3335a456360aada21bb | ec69de3a75eabba00f3748757e642d7de23287b0 | refs/heads/master | 2020-05-28T06:51:12.994742 | 2014-04-08T15:22:54 | 2014-04-08T15:22:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 248 | py | #!/usr/bin/env python3.4
import sys
from Bio import SeqIO
# path = sys.argv[1]
path = "phre.txt"
fh = open(path)
threshold = int(fh.readline())
record = SeqIO.parse(fh, 'fastq')
print(threshold)
print(record)
# print(record.letter_annotations)
| [
"Tomasz.Wegrzanowski@gmail.com"
] | Tomasz.Wegrzanowski@gmail.com |
c583fe5d6dfa28105ddeea402846deee5ff26b57 | a7fa7821b000faa683181fc38cd635d236a9529d | /python/backjoon/1967:diameter_of_tree.py | e2a603b1d5fa3377944c85d3e034cfc53117f546 | [] | no_license | LouiMinister/algorithm_study | 909b891e840bbe5f9c0510fc2749445eb826e212 | 5ed325a76228d001125c0feea3217ed4ec956649 | refs/heads/master | 2023-06-07T16:31:43.424491 | 2023-06-01T01:55:01 | 2023-06-01T01:55:01 | 248,213,715 | 7 | 0 | null | 2023-03-05T14:52:40 | 2020-03-18T11:31:31 | JavaScript | UTF-8 | Python | false | false | 661 | py | import sys
sys.setrecursionlimit(10 ** 5)
N = int(input())
G = dict() # val: (node, cost)
for _ in range(N-1):
p_node, c_node, edge = map(int, input().split(' '))
if p_node not in G:
G[p_node] = []
G[p_node].append((c_node, edge))
max_res = 0
def dfs(node, cost):
global res, max_res
# 끝... | [
"louiminister@gmail.com"
] | louiminister@gmail.com |
573f4c351e671916ffa5970d3e4f0805bfefe12d | 8c4a366c5dc9762e3c922b991e64c691a154ea88 | /36.py | 141e9ea9b51adc24496e1eb27e73e0aabb26772a | [] | no_license | VINITHAKO/pro | bd7fec9b46d7975c46ba0cb42d353bc10965dbdb | c1c3cd943606324f5252f46dd33edf7e180bbb48 | refs/heads/master | 2020-06-24T13:36:15.327211 | 2019-08-13T06:10:52 | 2019-08-13T06:10:52 | 198,976,260 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 227 | py | v = int(input())
n = [ int(x) for x in input().split()]
v = len(n)
s = 0
for i in range(0,v-2):
for j in range(i+1, v-1):
for k in range(j+1, v):
if n[i] > n[j] > n[k] :
s =s+ 1
print(s)
| [
"noreply@github.com"
] | noreply@github.com |
741ee1c0ff9fa37d5e30902816177b90a02fde86 | fee78d2a05e434ce9b6ac0c59b1a1a13a20d84a3 | /watermark.py | 2c34c0e049f03f8337da6b513e8d84700247e24d | [] | no_license | any54299/videoEdit | 01f17dc2758951fae657870ead006939a293153c | 371be1f6372e5f845ad5c3dfb4d15066e3fd81e5 | refs/heads/master | 2022-11-29T12:25:44.709650 | 2020-08-07T02:26:27 | 2020-08-07T02:26:27 | 285,715,751 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,784 | py | import toml
import csv
from moviepy import editor
import moviepy.editor as mp
import sys
def read_conf(file="conf/conf.toml"):
try:
with open(file) as configfile:
confstr = configfile.read()
return toml.loads(confstr)
except Exception as e:
print('Conf File not found. Check... | [
"1265086941@qq.com"
] | 1265086941@qq.com |
212bc3e7cfa0f28c20e3ded690bf037ac34fb3d8 | 7b6db4f4cecad7f1e1bf8efb5959f32afdd701d9 | /sentsync/settings.py | 1d00bccc46367e5b6ec4d0aef15c073fc32a1509 | [
"MIT"
] | permissive | Neisvestney/SentSyncServer | d89e463e7e7d19ffe8168e0bb73fba9a0ddac41f | 45e9572b6c9b274ed2cbad28749fcb2154c98757 | refs/heads/master | 2023-06-29T18:53:14.343716 | 2021-08-02T14:17:03 | 2021-08-02T14:17:03 | 383,874,034 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,737 | py | """
Django settings for sentsync project.
Generated by 'django-admin startproject' using Django 3.2.5.
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/
"""
import confi... | [
"neisvestney113@gmail.com"
] | neisvestney113@gmail.com |
62554bee19465f8c9bcacd025f8a276e40d98181 | 89ecf7892e2f8c42364f2ed9f4aebe55d2527c1b | /backend/users/views.py | 8b2b081c3589597f94f98898736b604941ad1050 | [
"MIT"
] | permissive | dokenzy/singlecolumn | 0c02a9b65410a599b6af963b4eadf3d29a50ea58 | 5001a8a870775fb1c2ee5dcf7f92ee04208a696a | refs/heads/master | 2021-01-24T08:16:14.959184 | 2017-06-14T13:21:55 | 2017-06-14T13:21:55 | 93,379,208 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 349 | py | # -*- coding: utf-8 -*-
from django.contrib.auth import get_user_model
from rest_framework.generics import RetrieveAPIView
from .serializers import UserProfileSerializer
User = get_user_model()
class UserProfileView(RetrieveAPIView):
serializer_class = UserProfileSerializer
queryset = User.objects.all()
... | [
"dokenzy@gmail.com"
] | dokenzy@gmail.com |
4f3c4d25593b78c9d95361a9cc3790d9365991d2 | 0fa6902111e24836a4d7f260a2fb725108c64a07 | /ex035.py | fc7b50d972077176818000c2eea11ad2485b1823 | [
"MIT"
] | permissive | mateusguida/ExerciciosPython | 62e6a365d04bcb8e9f32bd0a3a0fca46f4dd0e30 | 70f2df0a2a7bfd152205bcce228e2161c11f5888 | refs/heads/master | 2021-05-24T16:15:20.204610 | 2020-05-15T19:38:39 | 2020-05-15T19:38:39 | 253,651,126 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 356 | py | print("-=-" * 10)
print("Analisador de Triângulos")
print("-=-" * 10)
a = int(input("Primeiro segmento: "))
b = int(input("Segundo segmento: "))
c = int(input("Terceiro segmento: "))
if (a + b) > c and (a + c) > b and (b + c) > a:
print("Os segmentos acima PODEM FORMAR triângulo")
else:
print("Os segmentos ac... | [
"guidamaster@gmail.com"
] | guidamaster@gmail.com |
a90cf650bf1fb64fc1e55e83bc390af95dac2afa | f14bfd79d8bdcd012f21895084598d4bfe9fb9f2 | /0x03-python-data_structures/7-add_tuple.py | 4112e9aab615eb65a9654a62ed3705ceb696cbbd | [] | no_license | ch-canaza/holbertonschool-higher_level_programming | 1c62ae2e7798d79e619d8a133c3929720f317196 | 1d7402c90de37b920e163a04f196491a99d516c0 | refs/heads/master | 2023-01-18T23:06:57.738005 | 2020-11-12T21:57:53 | 2020-11-12T21:57:53 | 259,409,858 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 352 | py | #!/usr/bin/python3
def add_tuple(tuple_a=(), tuple_b=()):
len_a = len(tuple_a)
len_b = len(tuple_b)
if len_a < 2:
for i in range(2 - len_a):
tuple_a += (0,)
if len_b < 2:
for i in range(2 - len_b):
tuple_b += (0,)
a = tuple_a[0] + tuple_b[0]
b = tuple_a[1]... | [
"ch-canaza@hotmail.com"
] | ch-canaza@hotmail.com |
5f351a0315abb6b08fe1bba638fa071b663abec5 | b89de29f2af866fe61e8bde0b6fe06f4309574f6 | /predict/deanonymize_graph.py | fa8591b441b0a70bb77837003262c0fc0df37998 | [] | no_license | n0ncetonic/genetic_privacy | 82009865cf866db032b8f79f7d87a96dbdb26bd8 | c57a33729701400380df5a1c6521bf4acc6b9742 | refs/heads/master | 2020-04-01T21:34:43.422073 | 2018-09-12T21:27:54 | 2018-09-12T21:27:54 | 153,663,932 | 1 | 0 | null | 2018-10-18T17:45:42 | 2018-10-18T17:45:42 | null | UTF-8 | Python | false | false | 1,755 | py | #!/usr/bin/env python3
from random import sample, seed
from pickle import load
from argparse import ArgumentParser
import pdb
from bayes_deanonymize import BayesDeanonymize
from population import PopulationUnpickler
parser = ArgumentParser(description = "Evaluate performance of classification.")
parser.add_argument... | [
"pe5@cs.princeton.edu"
] | pe5@cs.princeton.edu |
b9916047f3fb8c62b89e7a1b4cc7ad6be73d0e5f | 2f81370c79bd3cff8abfe484050b0d95489cb054 | /steps/steps.py | 704777d56679b5b8450671867158985363405a2e | [
"MIT"
] | permissive | premshyam/cucumber_demo | 3fe0c3824c4dcd1644b04c009992b8c550c7db5c | cc93f9ba294fe0748c89eca718676586cb5b78df | refs/heads/master | 2021-07-03T16:16:35.365257 | 2020-02-17T12:08:49 | 2020-02-17T12:08:49 | 241,076,721 | 0 | 0 | MIT | 2021-06-02T01:03:56 | 2020-02-17T10:13:06 | Python | UTF-8 | Python | false | false | 725 | py | """
behave uses tests written in a natural language style, backed up by Python code.
It's the cucumber counter part in python. Supports Gherkin language
This file contains the step definitions.
"""
from behave import *
@given('we have behave installed')
def step_impl(context):
# do nothing
pass
@when('we vi... | [
"prem.shyam01@gmail.com"
] | prem.shyam01@gmail.com |
3165eb13ee2933155a4c0955b6e6ebd0ecf2fe74 | 738faea84e721fd181bb9a570ddb1a2b52983e5d | /textalert.py | b7d712c15223dcfeb9260f6e5f245b10c46773be | [] | no_license | wmodes/textalert | 9b5dd88001d34f534910c2eca90d8af85afe9803 | 67f27ab5fe629152f9a1b7bdebc47f028d2e64f9 | refs/heads/master | 2021-01-21T06:55:30.831411 | 2017-03-16T05:56:15 | 2017-03-16T05:56:15 | 82,875,432 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 308 | py | #!/usr/bin/python
"""textalert.py: textalert system
Authors: UBEW (ubew000@gmail.com)
Copyright: 2017, MIT"""
# -*- coding: iso-8859-15 -*-
# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4
#
# imports
#
# local modules
#
# Control
#
def main():
pass
if __name__ == "__main__":
main()
| [
"wmodes@gmail.com"
] | wmodes@gmail.com |
f34f89f8237ebf0fc5008efc7c89f869b7d62bb1 | 1a6c3d9a70b6091b740540f6801491043793eb22 | /venv/lib/python3.7/genericpath.py | 387578e6ba48c99069eb63feb70d7dd2aa41fe88 | [] | no_license | nxwcharlene/marketChronicles | a21ea5c02c83420fa5dfdebc313f5df9360afc7e | ff198c4269f9b6eb0da2bfab32953e96dde17245 | refs/heads/master | 2022-12-10T14:56:14.919772 | 2020-04-18T00:47:31 | 2020-04-18T00:47:31 | 242,910,756 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 61 | py | /Users/nxwcharlene/opt/anaconda3/lib/python3.7/genericpath.py | [
"charlene.nxw@gmail.com"
] | charlene.nxw@gmail.com |
11e688603eb21eb921026493870db758cc328738 | e55ac4ca7d93de4319b266a5dadef41aaedab2b1 | /3.py | 4ee2b9c4f5b5b5cd33e7d840bab418d310051c1d | [] | no_license | astr4/hello-world | 8e680163a53f4447ca3f13c430724cb8ca602b78 | 7bc9f220cf7f649e4b74507799343c90adf66d58 | refs/heads/master | 2022-02-22T01:08:32.718807 | 2019-10-11T22:00:20 | 2019-10-11T22:00:20 | 109,610,931 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 49 | py | # Hello world in Python 3
print("Hello World!")
| [
"noreply@github.com"
] | noreply@github.com |
3f6185d27af2a0cec9d7825cae72b4a476206fe0 | 466607c14d76c8d798e08f05dde2d79a07f6e069 | /tests/databases/constructed_molecule/mongo_db/utilities.py | 48ae44f71584e4bcfa63e090dc020faf4557262b | [
"MIT"
] | permissive | andrewtarzia/stk | 7c77006bacd4d3d45838ffb3b3b4c590f1bce336 | 9242c29dd4b9eb6927c202611d1326c19d73caea | refs/heads/main | 2023-08-03T12:29:21.096641 | 2023-07-27T09:45:25 | 2023-07-27T09:45:25 | 191,198,174 | 0 | 1 | MIT | 2023-09-04T16:53:05 | 2019-06-10T15:49:25 | Python | UTF-8 | Python | false | false | 850 | py | from collections import Counter
from ...utilities import DatabaseState, get_entry
def get_database_state(database):
"""
Get the state of a :class:`.ValueMongoDb`.
Parameters
----------
database : :class:`.ValueMongoDb`
The database whose state is wanted.
Returns
-------
:cla... | [
"noreply@github.com"
] | noreply@github.com |
c9aa2624559df4b7b212f9b9b3dd00c4c0a4efa6 | bb959d4fdd3f2eb0d2a86126464c7b169eb1fb3f | /data_structure/Queue/Joseph_problem.py | 89c8c62d3d90ccc15de75353940eb5b0f2259621 | [] | no_license | caoxiang104/algorithm | 0d8142c65e435a489c7ca7529816fc1e7fcfe6ba | 2470b744706741f9e121e32944a6426ecac0f1b0 | refs/heads/master | 2020-03-18T09:04:03.901115 | 2018-06-06T14:03:43 | 2018-06-06T14:03:43 | 134,543,235 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 538 | py | # coding=utf-8
from data_structure.Queue.queue import Queue
def joseph_problem(name_list, k):
# 约瑟夫问题:每次第k个人死
queue = Queue(len(name_list))
for i in name_list:
queue.enqueue(i)
while queue.size() != 1:
queue.rotate(k - 1)
queue.dequeue()
return queue.front()
def main():
... | [
"caoxiang112@gmail.com"
] | caoxiang112@gmail.com |
872a9c9f67e0dda9dbb5ded25dcc5a53ba331d4f | c0f7cc71eb5732d3b90da4f1e40c3f806f63bb29 | /python/fibermeas/exceptions.py | e4375607ef2fc9760f3570e749c674ad21f10151 | [
"BSD-3-Clause"
] | permissive | sdss/fibermeas | 6bb696ca2e46ded83baf3bc09a7b0e2024884789 | 4d29ff58a14b025cf6320ab1caef5f4bcbba394b | refs/heads/master | 2023-06-24T12:09:38.449736 | 2021-05-07T08:14:52 | 2021-05-07T08:14:52 | 329,701,571 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,887 | py | # !usr/bin/env python
# -*- coding: utf-8 -*-
#
# Licensed under a 3-clause BSD license.
#
# @Author: Brian Cherinka
# @Date: 2017-12-05 12:01:21
# @Last modified by: Brian Cherinka
# @Last Modified time: 2017-12-05 12:19:32
from __future__ import print_function, division, absolute_import
class FibermeasError(Ex... | [
"csayres@uw.edu"
] | csayres@uw.edu |
94a35c10d664ace45300895053c8ae43f188eec2 | ef3fc0c1c18f010037fc8dea1658e10f6e6284bb | /assignment1/cs231n/classifiers/neural_net.py | 00930e21ab23dfc13e6ede14707a07c540a6e83d | [] | no_license | yucongxing/cs231n | eb83f5773c7e6b3a9f0ae718d1ae57ce96585080 | accf7617bb7a911bbab4e49cc8f643d08a7c229a | refs/heads/master | 2023-01-20T09:13:24.025118 | 2020-11-20T05:23:45 | 2020-11-20T05:23:45 | 314,454,357 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,893 | py | from __future__ import print_function
from builtins import range
from builtins import object
import numpy as np
class TwoLayerNet(object):
"""
A two-layer fully-connected neural network. The net has an input dimension of
N, a hidden layer dimension of H, and performs classification over C classes.
We... | [
"yucongxing@163.com"
] | yucongxing@163.com |
7ce16b6085783f7c1b0d8070c0e230cb541a5b0d | 693a3384f0bec9ca1020435f526d37502cae6116 | /n_eff.py | 3f5d79c1345b7ae168daad062cd00a6665f6d35d | [
"MIT"
] | permissive | Christopherkrause1/Bachelor | 2532aa45b5b4bb013255c643f39baf738c947159 | 292f5fbec0924f30d6034091a58ab4e88e0f8e47 | refs/heads/master | 2020-04-28T09:40:29.328820 | 2019-07-10T09:00:10 | 2019-07-10T09:00:10 | 175,175,002 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,954 | py | from configuration import *
t_1 -= t_1[0] #converts unix time stamps to seconds
k_B = 1.38064852 * 10**(-23) #Boltzmann constant in J/K
print(t_extra)
def N_Y_inf(phi): #longterm annealing amplitude
return g_y... | [
"christopher2.krause@tu-dortmund.de"
] | christopher2.krause@tu-dortmund.de |
8e4fcf94c5195fb0f3147ed82a9d0aa7e6f89291 | 746a945455a9cfcee5a69410b30e275d4890787f | /untitled/prioritization_function_full.py | 1a1fe4a78adff7dc0a302021ee8227c2f3849eee | [] | no_license | earlfernando/2D-3D_prioritization | 58daf4694c72618237a8ebaa557816b5b0b31c4b | 7b295e3de1ba0b0f0da999ea2a98d6b1e90842dd | refs/heads/master | 2020-05-23T17:59:39.255831 | 2019-10-20T12:50:38 | 2019-10-20T12:50:38 | 186,878,706 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 56,547 | py | import numpy as np
import sqlite3
import sys
from read_model import read_images_binary, read_points3d_binary
import pandas as pd
from sklearn.model_selection import train_test_split
from sklearn.ensemble import RandomForestClassifier
from sklearn import metrics
import csv
import pickle
from sklearn.cluster import KMean... | [
"earlfernando"
] | earlfernando |
1af6f14bf835eb52765719f2bb940f0f54714028 | 76d34125c5341d7faefaf955968df3fc25e4deb6 | /req_post.py | 51a29aaa8682326388f6ce62321d5aafce6ab9aa | [] | no_license | TobiasFuellmich/web_vid_player_controler | 1cbaea14c5483fba243ba9a8c9c0b7a5d57f53be | c9fe215ef49341ed694da58c1acaa92ab6d6c291 | refs/heads/master | 2021-05-09T21:44:05.875832 | 2018-12-20T02:22:58 | 2018-12-20T02:22:58 | 118,733,531 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,253 | py | import requests
import sys
import time
url=str(sys.argv[1])
req= requests.get(url)
data_str=req.text
str1='<input type="hidden" name="op" value="'
str2='<input type="hidden" name="id" value="'
str3='<input type="hidden" name="fname" value="'
str_title='<h1>Watch video: '
end ='"'
end_title_str='</h1>'
sta... | [
"noreply@github.com"
] | noreply@github.com |
2f78bd1f6bc462d026579f398379118dc3bdc186 | c6759b857e55991fea3ef0b465dbcee53fa38714 | /tools/nntool/nntool/importer/tflite2/tflite_schema_head/WhileOptions.py | c1ecce2b777e295124727c75a226511d952f2ee9 | [
"AGPL-3.0-or-later",
"AGPL-3.0-only",
"GPL-1.0-or-later",
"LicenseRef-scancode-other-copyleft",
"Apache-2.0"
] | permissive | GreenWaves-Technologies/gap_sdk | 1b343bba97b7a5ce62a24162bd72eef5cc67e269 | 3fea306d52ee33f923f2423c5a75d9eb1c07e904 | refs/heads/master | 2023-09-01T14:38:34.270427 | 2023-08-10T09:04:44 | 2023-08-10T09:04:44 | 133,324,605 | 145 | 96 | Apache-2.0 | 2023-08-27T19:03:52 | 2018-05-14T07:50:29 | C | UTF-8 | Python | false | false | 2,169 | py | # automatically generated by the FlatBuffers compiler, do not modify
# namespace: tflite_schema_head
import flatbuffers
from flatbuffers.compat import import_numpy
np = import_numpy()
class WhileOptions(object):
__slots__ = ['_tab']
@classmethod
def GetRootAs(cls, buf, offset=0):
n = flatbuffers... | [
"yao.zhang@greenwaves-technologies.com"
] | yao.zhang@greenwaves-technologies.com |
3b45b0807afd3b0d8410d0c10c6a434862a43cce | d891c11affe040da93f0cd89454012dc060dd90b | /core/context_processors.py | 50791d9796f4eae3424e5a908ff4f6905d93c6c5 | [
"MIT"
] | permissive | Egorka96/med-org-portal | bf0761b4e4e4e9587a9cf4eb5d5f7efd5b414013 | a4d233508e9557872b4f692ab6f4dd786dd2fedf | refs/heads/master | 2023-04-15T02:08:56.428611 | 2022-03-01T06:54:29 | 2022-03-01T06:54:29 | 241,070,974 | 2 | 1 | MIT | 2023-03-31T14:56:43 | 2020-02-17T09:45:47 | Python | UTF-8 | Python | false | false | 241 | py | from django.conf import settings
def base_templates(request):
base_template = settings.TEMPLATES_DICT.get("base") if hasattr(settings, "TEMPLATES_DICT") else 'core/base.html'
return {
'BASE_TEMPLATE': base_template
}
| [
"egorkaraz@gmail.com"
] | egorkaraz@gmail.com |
fa1e5d1a1dd8b4f41b614de53acd58af100637ec | 53d45b2a397be87c98df6c9002ad246f92eed597 | /thingshappening/wsgi.py | bd05fb7ab8a27baabed8fc3b972770b82d913647 | [
"MIT"
] | permissive | bayersglassey/thingshappening | 7f0ff4e9ee5fca384cd3c7af57f22c980f2fc065 | 197f233073f7bb3ece87ff0271a477daf20d587c | refs/heads/master | 2022-01-29T20:23:27.507342 | 2019-05-30T05:14:49 | 2019-05-30T05:20:36 | 118,008,729 | 0 | 0 | MIT | 2022-01-21T19:04:45 | 2018-01-18T16:33:03 | JavaScript | UTF-8 | Python | false | false | 408 | py | """
WSGI config for thingshappening project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJA... | [
"bayersglassey@gmail.com"
] | bayersglassey@gmail.com |
faf1f3684f84eac1eeec3b33cdfae00169f4277a | c38b292e7bfaa95ac9a5fbf56d247403941139f4 | /ticket_details/views.py | b9fc42bf585a470a67fc1c6f572b4ab7f393d0dc | [] | no_license | poojapauskar/vzcards-api | f6a79938ee032c1da1d04b86a266d939d73b8797 | ed0185f36e274d46f978a8f670a4189571280e8b | refs/heads/master | 2020-12-29T02:38:14.288750 | 2017-08-08T12:30:51 | 2017-08-08T12:30:51 | 44,667,282 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,046 | py | from ticket_create.models import Ticket_create
from ticket_details.serializers import Ticket_detailsSerializer
from rest_framework import generics
# from ticket.permissions import IsOwnerOrReadOnly
# from rest_framework import permissions
from django.shortcuts import get_object_or_404
class Ticket_detailsDetail(gener... | [
"git.poojapauskar@gmail.com"
] | git.poojapauskar@gmail.com |
b6735cbd2b50e373e4bdb1dfdaebf45d83a327a4 | b2cf17f19a901dab04606cc0f29866244854f836 | /praktikum7/kasus1.py | ed414790e5ff83ce9c0640b6fd735ac35c6b9792 | [] | no_license | rizalpahlevii/learn-python | 6ad93235b5da2b146b1cfaa026d7e95063ad69f8 | 395333964446f3a7f7af53bebdc06b265df4665b | refs/heads/main | 2023-02-18T10:23:23.585197 | 2021-01-19T04:51:47 | 2021-01-19T04:51:47 | 308,001,554 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 190 | py | n = int(input("Masukkan angka : "))
for i in range(n):
a, b = map(int, input().split())
if a > b:
print(">")
elif a < b:
print("<")
else:
print("=")
| [
"mrizalpahlevi372@gmail.com"
] | mrizalpahlevi372@gmail.com |
e1fb0821c00054365b7452d5b9ee05d208da67f2 | 6189f34eff2831e3e727cd7c5e43bc5b591adffc | /WebMirror/management/rss_parser_funcs/feed_parse_extractUnknowntranslationsCom.py | 896536aca1cc20dfe50f401116dd029e1050a31a | [
"BSD-3-Clause"
] | permissive | fake-name/ReadableWebProxy | 24603660b204a9e7965cfdd4a942ff62d7711e27 | ca2e086818433abc08c014dd06bfd22d4985ea2a | refs/heads/master | 2023-09-04T03:54:50.043051 | 2023-08-26T16:08:46 | 2023-08-26T16:08:46 | 39,611,770 | 207 | 20 | BSD-3-Clause | 2023-09-11T15:48:15 | 2015-07-24T04:30:43 | Python | UTF-8 | Python | false | false | 559 | py |
def extractUnknowntranslationsCom(item):
'''
Parser for 'unknowntranslations.com'
'''
vol, chp, frag, postfix = extractVolChapterFragmentPostfix(item['title'])
if not (chp or vol) or "preview" in item['title'].lower():
return None
tagmap = [
('PRC', 'PRC', 'translated'),
('Loit... | [
"something@fake-url.com"
] | something@fake-url.com |
eac16e632089b419581854ebc6168da6a9eb5e02 | 49d7d8702714c14ad0b5a6a236a4d858f180f889 | /Old Code/master_file.py | cd65b9cebdf57e0e152d2aabe190a95b3b04faca | [] | no_license | AJStangl/ENCODE | ce813954886979fba246f252564ffe5e7acf386c | 7f93f32d609300072a730250c3a275bbfd298eba | refs/heads/master | 2016-09-06T11:47:35.521419 | 2016-01-25T19:27:16 | 2016-01-25T19:27:16 | 32,476,078 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 224 | py | __author__ = 'AJ'
from metadata_extractor import get_exp_url, metadata_extractor, exp_dict_writer
'''Depricated Script'''
get_exp_url()
exp_url = get_exp_url()
test = exp_url
metadata_extractor(test)
#exp_dict_writer(test) | [
"ajstangl@gmail.com"
] | ajstangl@gmail.com |
961f5210073e65e97035f9988a10a43e6401148c | 503779be86ed7719d001711adf35a577f6a3442f | /pascal triangle II.py | 783801e26377b99a2e2d6c0feaaebcac04ae7a9c | [] | no_license | MartinTrojans/Leetcode-Python | a447620e808325317e794bfb1d48fc810672f16c | a62f5518113392126a08b1bdb94b94685f618c72 | refs/heads/master | 2021-01-10T17:04:27.566844 | 2016-02-01T00:30:54 | 2016-02-01T00:30:54 | 50,803,201 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 459 | py | __author__ = 'Martin'
class Solution(object):
def getRow(self, rowIndex):
"""
:type rowIndex: int
:rtype: List[int]
"""
if rowIndex < 0:
return []
res = [[1]]
for i in range(1, rowIndex+1):
row = [1]
for j in range(1, i):
... | [
"martinglory1992@gmail.com"
] | martinglory1992@gmail.com |
ca1d6f94e0fb65fe463c6f78f6153d7397e7b997 | 7cb83560d1c9d1777dc0367ffa6bcac1e819f29d | /CA1/TomsHardwareGraphicsCards.py | 1f7945bdc59b55d449522c0a43306956d7595ef8 | [] | no_license | alyoshapulledbs/B8IT105 | 4982e1ffdb3cd9a1d161ab7c947d4be68b02c212 | 2d5fb5d9d5e6a2ee643a67f3d519c8f326c0797f | refs/heads/master | 2021-03-27T21:27:01.827611 | 2020-06-01T20:21:14 | 2020-06-01T20:21:14 | 247,808,146 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,616 | py |
"""
Module : B8IT105 - Programming for Big Data
Assignment : CA1 - Scrape website graphics cards to CSV.
Description : Class to scrape the website graphic cards.
Student Code : 10541255
Student Name : Alyosha Pulle
"""
import requests
from bs4 import BeautifulSoup
class TomsHardwareGraphicsCards:
def __... | [
"10541255@mydbs.ie"
] | 10541255@mydbs.ie |
79528529e7721b4ce884635d9311c974caaae0f7 | d90ce0d7cca42ed6197dcd2ad2a5a2a8dac49d79 | /projeto/rotinas_flask.py | fd880ac2b5227537875e8982b2d3136121ea9780 | [] | no_license | TangerinoGT/IoT_2017 | 5efafa026651e2d1008f2f92f1d51fe0848e46fd | 8bcdbee2b63708184b2fc5d2e6b6ba3c1dbc23b0 | refs/heads/master | 2021-08-23T12:58:05.722702 | 2017-12-05T00:40:26 | 2017-12-05T00:40:26 | 108,047,356 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,412 | py | from flask import Flask, render_template, jsonify
# import fake_sensores as sensores
import db_sqlite
import sensores
import indicadores
app = Flask(__name__)
@app.route('/')
def principal():
return render_template('principal.html')
@app.route('/casa')
def casa_rota():
return render_template('casa.html')
@a... | [
"giovanatt@gmail.com"
] | giovanatt@gmail.com |
d1353c31503e6d8d403d93c3e6896c4c42bb991d | 16b81ffcb40b429bde1e9bc10e5eeddd9d2ec51f | /leetcode/largest-number.py | 0fe00afd4ba572d7756d887bcf9932bddb740397 | [] | no_license | suminb/coding-exercise | 564424b7b98ea768c57a5b7f106fd7844e8e2843 | b8b9377e7a76b498a9e6fb325743b16cbc943932 | refs/heads/master | 2023-06-16T03:01:59.009635 | 2020-05-09T11:09:25 | 2020-05-09T11:09:25 | 171,614,062 | 8 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,394 | py | # 179. Largest Number
# difficulty: medium
# https://leetcode.com/problems/largest-number/
from typing import List
import pytest
class CustomString(str):
def __gt__(self, other):
return self + other > other + self
def __lt__(self, other):
return self + other < other + self
class Solution:... | [
"suminb@gmail.com"
] | suminb@gmail.com |
10ffc26fb5e7ea3a5b49fdb07fd64a8b10a49dba | 44cee5c731ca4bec9228fe6154f4ced421e831ad | /tools/disclosures_site/declarations/migrations/0001_initial.py | d40c775204b69423738942f8e212d43d78515d9c | [] | no_license | kasthack-labs/smart_parser | cce3432ab0fecc333f837433e2adf577f3b38ae2 | b631f1b444a220571b7455e877860c763bf3f813 | refs/heads/master | 2023-01-28T16:13:25.403554 | 2020-11-04T02:30:10 | 2020-11-04T02:30:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,541 | py | # Generated by Django 3.0.5 on 2020-04-11 20:50
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Office',
fields=[
... | [
"alexey.sokirko@gmail.com"
] | alexey.sokirko@gmail.com |
47988ca905cb3ae6c32570da65fa9871373954fa | cfa6c494cdcac4ddc20fc8cb271df06cd10ec08b | /NTDWeb/wsgi.py | 09b4c14d6191e84af739f6f53d7bf031751d1e49 | [] | no_license | Ryaner-Tsai/NTDWeb | aa1367bf0d532288e27f893552fc21e9a7bdc5a3 | dd8a56292a2d560cb8182422316afee8846258d6 | refs/heads/master | 2023-03-07T04:34:39.615889 | 2021-02-21T04:16:22 | 2021-02-21T04:16:22 | 288,192,744 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 389 | py | """
WSGI config for NTDWeb project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTIN... | [
"eddie456858@gmail.com"
] | eddie456858@gmail.com |
d9d5b6ba7ac083e1a04d5c6a9423d36fccc86aba | c35d652dfd2da07ed0f75bd7b60682b95bc48ad0 | /mutatingArray.py | 64ec2df3b6023e17aa7f5de414fd7f6ca9835ae9 | [] | no_license | vivekdevaraju/Coding-Challenges | 70a66d4fe7da737aa42c798b638daf62b14cd99a | 027bd53c23153d0d78cf0f3ab4d6557feba14429 | refs/heads/main | 2023-09-05T08:32:49.332086 | 2021-11-23T11:18:54 | 2021-11-23T11:18:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 291 | py | def mutatingArray(n, a):
b = [None] * n
for i in range(n):
if ( i-1 >= 0 and a[i-1]):
b[i] = a[i-1]
else:
b[i] = 0
if(a[i]):
b[i] = b[i] + a[i]
if( i+1 < n and a[i+1]):
b[i] = b[i] + a[i+1]
return b
| [
"noreply@github.com"
] | noreply@github.com |
921da651bc78d658a880579006bc9466e1dc0da0 | d89cfab2df023234555db6fa777ff9b14355f946 | /main.py | 31daaba5f86ba43d92353a18bf835ac89f32f37d | [] | no_license | xiaoyaowan456/git_test | 96b131488d6d56f624396073795e4fdcd320f3e2 | f2afa9ed08a794614c2af144b3af6f07c3b4da70 | refs/heads/master | 2022-12-07T10:13:15.521338 | 2020-08-29T09:07:28 | 2020-08-29T09:07:28 | 289,943,979 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 857 | py | #!/usr/bin/env.python
from flask import Flask
from flask import render_template
from flask_script import Manager
from flask_migrate import Migrate, MigrateCommand
from libs.orm import db
from user.views import user_bp
#初始化app
app = Flask(__name__)
app.secret_key = r'sdhajlkdhjql22jkjklfdnfui43phj#@#Rdwfjf8'
app.co... | [
"675235295@qq.com"
] | 675235295@qq.com |
a883ff7197a5a4730c6e407128daf2638ef98e59 | beda359ee1f1cb29e82fc791968140cec87c5a7d | /class1.py | 7c2343aea17c27b861e001483f5321ab5e961b37 | [] | no_license | muneeriqbal/test-hello-world | 5f7212f139d3afe292647221995259fa92d82b6d | 107f33d91aa62e15268b24d5fb16041b9c2b213a | refs/heads/master | 2021-09-10T06:24:06.388291 | 2018-03-21T14:01:30 | 2018-03-21T14:01:30 | 108,759,929 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 235 | py | def findprime(upto):
for a in range(1,upto):
if a%2:
print(a , "prime number")
findprime(100)
def findodd(upto):
for b in range(1,upto):
if b%2:
print(b, "odd")
findodd(100) | [
"noreply@github.com"
] | noreply@github.com |
021003017dc987d758d40e09bc5677f98f34364a | 5e26232dab444cb06361c256dfb2c874e2978c8d | /pass.py | 024e13775367a47d268a91c29264149e184b218a | [] | no_license | JERINRAJU/rep1 | 1a96cf4755959efb6ae1418ec81d5cac26b47247 | 3d09937a8b42dcbbd8ef670fb77d58d38e74bffb | refs/heads/master | 2021-07-17T19:39:21.313144 | 2017-10-24T08:45:12 | 2017-10-24T08:45:12 | 107,939,242 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 57 | py | var1 = int(input())
if var1 <6:
pass
else:
print(var1)
| [
"jerinraju@cs.ajce.in"
] | jerinraju@cs.ajce.in |
a148bdd4b5abf051978b3d5052d7711006c9868f | 2555b9a0bb2b7876596791aba6251e142c914d7e | /cAuth/apps.py | 9ba38a292471e05d33af3b79c32169ee65d72cf6 | [] | no_license | rajdip34/ioclapp | 17bde386bc4018f7e5090eb41faeaa33860682bd | 9c447b55908fccc13d2b6ec1004d3bc20ffa192d | refs/heads/master | 2022-05-18T12:10:39.010934 | 2019-09-15T15:07:37 | 2019-09-15T15:07:37 | 208,609,306 | 0 | 0 | null | 2022-04-22T22:21:29 | 2019-09-15T14:51:31 | Python | UTF-8 | Python | false | false | 85 | py | from django.apps import AppConfig
class CauthConfig(AppConfig):
name = 'cAuth'
| [
"rajdipmondal34@gmail.com"
] | rajdipmondal34@gmail.com |
11a8e7bcf3bd5f16c043c8d3a971c1a58796c3ac | 8b656ea9cc220b2a06c1880eb4f0a683913972ca | /utilities/customLogger.py | 3d1a56d0bfc159418f288ab38729b8d80ad5e006 | [] | no_license | Vidushigupt/NopComerceApp | bbef4844894411fef69bae79707dc1b4ccf15d5e | 8cf096229e495f001db239135be61f23f15870e8 | refs/heads/master | 2023-04-14T07:02:28.056106 | 2021-04-27T22:29:28 | 2021-04-27T22:29:28 | 362,267,066 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 572 | py | import logging
class LogGen:
@staticmethod
def loggen():
# logging.basicConfig(filename=".\\Logs\\automation.log",
# format='%(asctime)s: %(levelname)s: %(message)s',
# datefmt='%m/%d/%Y %I:%M:%S %p')
formatter = logging.Formatter("%(as... | [
"Vidushi.gupta34"
] | Vidushi.gupta34 |
8e8be09d2a84c32daac3f5af9233b2981859a259 | 3b9bf497cd29cea9c24462e0411fa8adbfa6ba60 | /placement-test/pt-test-2/Kangaroo.py | 9915efe82926333e63f3e269d4b28590f33cbaa9 | [] | no_license | niteesh2268/coding-prepation | 918823cb7f4965bec096ec476c639a06a9dd9692 | 19be0766f6b9c298fb32754f66416f79567843c1 | refs/heads/master | 2023-01-02T05:30:59.662890 | 2020-10-17T13:12:34 | 2020-10-17T13:12:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 550 | py | #!/bin/python3
import math
import os
import random
import re
import sys
# Complete the kangaroo function below.
def kangaroo(x1, v1, x2, v2):
if v2 >= v1:
return 'NO'
if (x2-x1)%(v1-v2) == 0:
return 'YES'
return 'NO'
if __name__ == '__main__':
fptr = open(os.environ['OUTPUT_PATH'], 'w'... | [
"akualajayaprakash@gmailcom"
] | akualajayaprakash@gmailcom |
5fdaf863e782058cb85f3d022793642b1156ffb6 | b3b68efa404a7034f0d5a1c10b281ef721f8321a | /Scripts/simulation/statistics/trait_statistic_tracker.py | 3413320ad579da85723ab46f98b68565cc9fbddb | [
"Apache-2.0"
] | permissive | velocist/TS4CheatsInfo | 62195f3333076c148b2a59f926c9fb5202f1c6fb | b59ea7e5f4bd01d3b3bd7603843d525a9c179867 | refs/heads/main | 2023-03-08T01:57:39.879485 | 2021-02-13T21:27:38 | 2021-02-13T21:27:38 | 337,543,310 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,846 | py | # uncompyle6 version 3.7.4
# Python bytecode 3.7 (3394)
# Decompiled from: Python 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:58:18) [MSC v.1900 64 bit (AMD64)]
# Embedded file name: T:\InGame\Gameplay\Scripts\Server\statistics\trait_statistic_tracker.py
# Compiled at: 2020-10-02 01:43:01
# Size of source mod 2**32:... | [
"cristina.caballero2406@gmail.com"
] | cristina.caballero2406@gmail.com |
b073a56b6ce489b3cff9e79afee800da4e9cfbbb | d7214b7c62d32c22d18023a827ef35fe483163ad | /Archive/validation.py | eeb1f7af22df90b733ce84da66c484eede1f1ed6 | [] | no_license | shawn-y-sun/ReportingAnalytics | 85058608126486b425161efd8edff0e7ba84b609 | 10504711a5c512fce81f061c43ce8c6edc672721 | refs/heads/main | 2023-07-13T06:32:57.793954 | 2021-08-27T18:21:00 | 2021-08-27T18:21:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,427 | py | from Reporting import load_data, Metrics
master_file = r'C:\Users\sunsh\Documents\Daily Approval Report\Data\master dataset\master.csv'
bench_210507 = r'C:\Users\sunsh\Documents\Daily Approval Report\Data\May - July 2021 patch 1.6 dataset Aug 3 DL.csv'
bench_2006 = r'C:\Users\sunsh\Documents\Daily Approval Report\... | [
"noreply@github.com"
] | noreply@github.com |
e886ce5ca64a437047bd9810beec796511e19574 | 500443c735bb6198853c0a840a89719055acbf6a | /py.leetcode9.py | a048d05241b8288ea99844c75bb5cfedf374e2cd | [] | no_license | qwerasdft/pyLeetcodes | 09404f20d44c8e8af4dd7ff382468a28daf45746 | 8514d9834150518bda44e0357a00ecb8a9b843f3 | refs/heads/master | 2020-09-16T09:35:10.640169 | 2020-02-24T08:26:30 | 2020-02-24T08:26:30 | 223,562,176 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 837 | py | # class ListNode:
# def __init__(self, x):
# self.val = x
# self.next = None
# def listtolk(ls):
# head=ListNode(0)
# pre=head
# for item in ls:
# head.next=ListNode(item)
# head=head.next
# return pre.next
# def listNodeToString(node):
# if not node:
# ... | [
"qwerasdft8@gmail.com"
] | qwerasdft8@gmail.com |
4b96035041b7630998193e2f914500f0471f2080 | d69fdad37f06530a8de46adcb79a31ec7397795c | /crawler.py | 37c41641e71c04ab0624b1421c78cebc3c498ca3 | [] | no_license | fabrizzo/Python | bca8aafeac3a777a9b2b02357d6b3efdf7d8307a | 0beb9e70b277324fb273de9332f2c083a64d0ce5 | refs/heads/master | 2021-08-15T00:45:45.398174 | 2017-11-17T03:31:17 | 2017-11-17T03:31:17 | 111,052,675 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,430 | py | import requests
from bs4 import BeautifulSoup
import csv
from datetime import datetime
from multiprocessing import Pool
def get_html(url):
r = requests.get(url) #Response
return r.text
def get_all_links(html):
soup = BeautifulSoup(html, 'lxml')
tds = soup.find('table', class_='catalog_table').find_all('td', ... | [
"fre-osa@mail.ru"
] | fre-osa@mail.ru |
da5ef9b75bad572cf0481e6b6f45eb475ec74222 | f5ea9fd219c3aefe55840703187db7de08eeb269 | /my_blog/urls.py | 75d357e4961da74c332cef62935b862021c8ad2e | [] | no_license | qkmaosjtu/MyBlog | 81f1362085651d85dc19ae5606c14088b623249d | e23e46358f5095593ae5603401dd6f957164a566 | refs/heads/master | 2020-05-17T13:55:12.110922 | 2019-04-27T13:22:17 | 2019-04-27T13:22:17 | 183,749,338 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 859 | py | """my_blog URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based... | [
"qiankangmao@QiankangdeMacBook-Pro.local"
] | qiankangmao@QiankangdeMacBook-Pro.local |
e16efcd80c277faa377fba53cffb871733af2d26 | 9bb0d69e5ebe7ae8c6a96eb68dfe24797b525b9e | /lib/working_days_test.py | 06f4315e0d0c5e7380110df09cd15e51e213eceb | [] | no_license | elmundio87/daily-standup | fbdd523d16eebefe0c7015cb46fcd4cbfca56a35 | d55206d14986e450c2b490890e1a6a43a77411bb | refs/heads/master | 2021-01-22T17:14:55.291502 | 2016-10-17T13:29:39 | 2016-10-17T13:29:39 | 68,332,581 | 0 | 0 | null | 2016-10-14T15:06:37 | 2016-09-15T21:26:01 | JavaScript | UTF-8 | Python | false | false | 2,050 | py | import unittest
import working_days
from datetime import date
class TestWorkingDays(unittest.TestCase):
def test_monday_is_working_day(self):
self.assertTrue(working_days.is_working_day(date(2016, 10, 3)))
def test_tuesday_is_working_day(self):
self.assertTrue(working_days.is_working_day(dat... | [
"elmundio1987@gmail.com"
] | elmundio1987@gmail.com |
4d0a0479e569957daeaf4a042a0a4a3f5105fd49 | 4c39b259394a4f8354c7d9f727f3853282c5c244 | /0x03-python-data_structures/9-max_integer.py | 7323dca2295af54d5f603c3446d6d2d769146ec5 | [] | no_license | eamt/holbertonschool-higher_level_programming | 4e10d12461df551913e29fdd336c0ebe2b6a22e4 | 16069e8612a2c1378ce4f5a67eb0653791b78f52 | refs/heads/master | 2023-04-03T22:00:45.706636 | 2021-04-14T03:18:30 | 2021-04-14T03:18:30 | 319,390,185 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 232 | py | #!/usr/bin/python3
def max_integer(my_list=[]):
if len(my_list) == 0:
return (None)
maxi = my_list[0]
for i in range(len(my_list)):
if my_list[i] > maxi:
maxi = my_list[i]
return (maxi)
| [
"katananata500@gmail.com"
] | katananata500@gmail.com |
6fe75c8f5b323d1035afb99283468de94ec63bc8 | 4a81f78adf1a1adfc7bb1d19e42171cc856b2ccc | /bin/sqlformat | aebd25c96ed652302ce3c726c885c87b9c66a703 | [] | no_license | Prones94/Music_Site | af910c18c442b802971bc0a624891860266d8f85 | 924bffbc2a935217e84292e682c06fe1e83bb018 | refs/heads/master | 2022-04-21T02:33:41.006384 | 2020-04-21T22:38:15 | 2020-04-21T22:38:15 | 256,361,521 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 269 | #!/Users/admin/Desktop/MAKE/BEW/BEW-1.2/Music/music_site/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from sqlparse.__main__ import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"ronesp.85@gmail.com"
] | ronesp.85@gmail.com | |
949bdd33912dec9468f0c4e0d06933263a1fd57f | 27789165f2d33a6cdc75387589c685bb4a5108d0 | /browse/motif_report.py | fba179d699171580442df54077dfddff6db5e1e6 | [] | no_license | poneill/collecTF | 61006e7616ea6593677a14f1ee3b57ff4b337c6b | 435f3da67cbb78b7ee0499e80bd52793b231a563 | refs/heads/master | 2021-01-18T05:17:10.901697 | 2014-05-29T22:56:45 | 2014-05-29T22:56:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,003 | py | """
This file contains the class implementation for reports. A MotifReport object is
constructed from a collection of curation-site-instance objects that have the
same TF and species. For some uses of MotifReport class, all
curation-site-instance objects have to have exactly the same TF-instances
objects, but in other ... | [
"sefakilic@gmail.com"
] | sefakilic@gmail.com |
1b85505ed625ae8824079b87509f505853c08d84 | aadd75ea4547e50e5079f898306b5ef1883e66e7 | /python/spider/xiubai.py | 97f6b79b4eb742dd8e189b536737d10fd8e86739 | [] | no_license | thatking/Study | e0cde634806284a4fcacb6f2b55472473af549f5 | 442a1749ad3f05849e771e10f3116a32eb77e724 | refs/heads/master | 2020-03-15T17:17:02.711149 | 2015-06-16T13:55:42 | 2015-06-16T13:55:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,813 | py | #coding:utf-8
from __future__ import print_function
import urllib2
import urllib
import re
# 获取一个页面
def get_page(category, n):
print('正在努力加载中...')
realurl = 'http://www.qiushibaike.com/' + category + '/page/' + str(n)
headers = {'User-Agent' : 'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like G... | [
"wuhonghui0280@163.com"
] | wuhonghui0280@163.com |
f743a0d111f8b3360e91aaf494b4103c4ca98714 | bef35774ebe121d9657a3d513a21073b8086b331 | /advanced-algorithms/greedy-algorithm/min_operations.py | 542e345b8a1ad9a2798e2bfebe31f3c693f476b0 | [] | no_license | greatertomi/Python-Algorithms-DataStructure | dab0097ec8a450dfddc47e3153359e6fcd873225 | a0ad6aa78086ba39e6f100ac551ddadb9433f724 | refs/heads/master | 2022-04-14T10:52:32.986333 | 2020-04-17T16:04:22 | 2020-04-17T16:04:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 243 | py | def min_operations(target):
steps = 0
while target != 0:
while target/2 == target//2:
target = target // 2
steps += 1
target -= 1
steps += 1
return steps
print(min_operations(18))
| [
"oshalusijohn@gmail.com"
] | oshalusijohn@gmail.com |
e81009e45e45d6874890e6a83bc22199cc2874f5 | ae16cd1619cba188fa86d01a482bb1df1aa7b9d2 | /no_prior/train_pruned_step3.py | 77f78923b549cec589bb356cc0fba05bb7ca5fb1 | [] | no_license | absf123/HFCN_TPAMI | 2a6703b98409860ef8e65d17088a47bd5605cc58 | f88b8cc1213b9ebc2761c0122eb3a0ede297facd | refs/heads/master | 2022-01-11T22:01:53.777964 | 2019-07-03T20:00:57 | 2019-07-03T20:00:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,172 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Nov 20 22:06:38 2017
@author: chlian
Train pruned nH-FCN, Step 3 (optimize only subject-level subnet)
"""
import keras
import SimpleITK as sitk
import numpy as np
import os
from scipy import ndimage as nd
import scipy.io as sio
from keras.models import Model
from keras.opt... | [
"noreply@github.com"
] | noreply@github.com |
46c8e9e6a6cbb24bfc77f84d82f9ffd48e5cfacb | acdf4db6d82813ef895813f3416e2a7284ccea2f | /promedio.py | c8c97a5194d3737caae1122fa0579971e900ed64 | [] | no_license | guayiyo89/AdvectionDiffusion | 09000605527953776e16b4a0f7f625e3f260aa75 | dcf93ae67ff45a6ac69bc1b05a2381a91a03943b | refs/heads/master | 2021-12-27T23:57:06.886739 | 2021-08-07T20:32:05 | 2021-08-07T20:32:05 | 222,826,647 | 1 | 0 | null | 2020-09-02T15:49:47 | 2019-11-20T01:45:23 | Python | UTF-8 | Python | false | false | 1,052 | py | import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
#### CARGAMOS LOS DATOS DE PM
f = lambda x : (x.replace(",","."))
# PM 2.5
data = pd.read_csv("pmdatos\dnielolDia_25.csv", sep = ",", encoding = "ISO=8859-1")
result = data.values.tolist()
pm25 = []
for a in result:
c = -1 # defaul... | [
"noreply@github.com"
] | noreply@github.com |
c5ad8acf3ef621ddbe564c94507c29e895fafa90 | 4597edccd8f5a72637ee878f0a70a28cbdb2d338 | /useRRD.py | 57f29b6fcb386e490e7661e251c1fb190c563012 | [
"MIT"
] | permissive | luonglearnstocode/pibooth | ac8328105eff27d563dfdbdbb498bb561c8fff6a | 5003c580bdc092e38ebdf4d9ab40454f71aa9f49 | refs/heads/master | 2021-01-01T03:36:31.295781 | 2018-09-08T22:38:56 | 2018-09-08T22:38:56 | 56,664,819 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 627 | py | #import rrdtool
import subprocess
from PIL import Image
def addData(temperature,light):
subprocess.call([ 'rrdtool','update','test.rrd',
'N' + ':' +
str(temperature) + ':' +
str(light) ])
print('data update')
def graphRRD():
subprocess.call([ 'rrdtool','graph','test.png',
'-w','1000','-h','400',
... | [
"lwowngj92@yahoo.com"
] | lwowngj92@yahoo.com |
68508d1589f3578e446248ce769edc8837396e0f | 03a3db007975cab6ca1218c376db590b31915164 | /gothonweb/bin/app.py | 262fdc48b87086e4fad08dd71bc0977f2e1b70f5 | [] | no_license | tej-pitt/LPTHW | 29ecb5501eaee115956f64215649f5931a35868f | f52d098cd8e2de66809e65110deca636c9d26a3c | refs/heads/master | 2021-01-21T13:08:28.983690 | 2016-05-26T12:59:28 | 2016-05-26T12:59:28 | 54,264,441 | 0 | 1 | null | 2016-05-26T12:59:29 | 2016-03-19T12:18:53 | Python | UTF-8 | Python | false | false | 2,012 | py | import web
from web import form
from bin import map
urls= (
'/game' , 'GameEngine',
'/' , 'Index' ,
'/upload' , 'Upload' ,
)
app= web.application(urls, globals())
render = web.template.render('templates/', base="layout")
# little hack so that debug mode works with sessions
if... | [
"tejas2kxv@gmail.com"
] | tejas2kxv@gmail.com |
a9dd3e25ffb56451c96af14b5ef55c30f26d3c14 | 8385801a00e35bf8c3921de492b0c6ce7156b0e0 | /Epic_Car_Store/carshop/migrations/0008_auto_20210329_0422.py | 21c99e7431a159ece86643364aa4b51a015eb5fd | [] | no_license | saionaid/Online-Car-Store | 4b84d4406925b1781770c2782fd1f8826b80084b | 09310659698b4e3114ed84d49ce9af7b1d0c4747 | refs/heads/master | 2023-04-05T17:11:29.192408 | 2021-05-10T09:31:16 | 2021-05-10T09:31:16 | 347,324,833 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 752 | py | # Generated by Django 3.1.7 on 2021-03-29 01:22
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('carshop', '0007_auto_20210318_1339'),
]
operations = [
migrations.CreateModel(
name='CarType',
... | [
"Saionaid@gmail.com"
] | Saionaid@gmail.com |
70a56e9b45c2ffa7c45644376c3d8ba2bd00f4ee | 5a3700e9af06914917908a41e592289f03f0c808 | /plotly/Date_String/strings_date.py | de365dbcbf6107ea1a08f0e31c8a29dfec453802 | [] | no_license | share-with-me/flask_ex | 365265ce3e5284fc1d87e5a11debcbd3145b2c30 | 361f67bcafe181cb506b8e70ba5ee228565fdd0d | refs/heads/master | 2021-01-21T13:20:57.221926 | 2016-04-21T06:41:38 | 2016-04-21T06:41:38 | 54,552,958 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 240 | py | import plotly.plotly as py
import plotly.graph_objs as go
data = [
go.Scatter(
x=['2013-10-04 22:23:00', '2013-11-04 22:23:00', '2013-12-04 22:23:00'],
y=[1, 3, 6]
)
]
plot_url = py.plot(data, filename='date-axes')
| [
"share-with-me@github.com"
] | share-with-me@github.com |
7dc4ffb54c84d537b116948be31daee0f3767431 | 73d5d4a5563585ef10e75e8be5a42cff1fefbc2c | /samples/openapi3/client/petstore/python/petstore_api/__init__.py | 55f335276580c63fa80b0d707957eb3388ea310c | [
"Apache-2.0"
] | permissive | 4brunu/openapi-generator | 9ddb14650676fc54642b65a337b2558c60fc2f4a | f31c2a4b171daaccbae1c572e5b4652b5e0d7ced | refs/heads/master | 2023-07-20T21:30:45.293154 | 2023-07-11T09:07:06 | 2023-07-11T09:07:06 | 211,913,930 | 1 | 1 | Apache-2.0 | 2021-12-09T10:24:15 | 2019-09-30T17:17:55 | Java | UTF-8 | Python | false | false | 5,672 | py | # coding: utf-8
# flake8: noqa
"""
OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (ht... | [
"noreply@github.com"
] | noreply@github.com |
abf65c1f1b69d082fe55861689026c4a2695eae2 | 5a514c289084b358c658590f2e2599aea4e4e0a8 | /lib/engine/engine.py | ae0a01f5e1e06f6ca173a7444aeed05615dae022 | [] | no_license | gladiopeace/Tentacle | 602d51015d25f71e331a27ccf07270567d4b4a0e | 7b32937496415b77aec35a10551a4ff33863a829 | refs/heads/master | 2023-08-22T13:45:34.700076 | 2021-10-21T08:39:24 | 2021-10-21T08:39:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,293 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @author = 'orleven'
import os
import time
import asyncio
import traceback
import async_timeout
from typing import AsyncIterable
from typing import Iterable
from typing import Union
from lib.core.data import logger
from lib.core.data import paths
from lib.core.async_pool ... | [
"546577246@qq.com"
] | 546577246@qq.com |
e2090501bdf8894e0359a131e1f5c1a1dcfe08ec | 4f9de6e97802aee2e59739f8d7fd6204492b503e | /homeworks/A10119/checkin08/Day13.py | 1abda9bb45f763e32a574391082a8ae60a21161b | [] | no_license | hudefeng719/uband-python-s1 | d9e0b807f38d83a6ff4419c5072e32d9c9431867 | 1cedfbac08163b519c4283a14b64770e1639ebac | refs/heads/master | 2020-03-28T12:34:07.181634 | 2018-09-11T12:36:51 | 2018-09-11T12:36:51 | 148,311,870 | 0 | 0 | null | 2018-09-11T12:13:29 | 2018-09-11T12:13:29 | null | UTF-8 | Python | false | false | 795 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# @author: Xiangwan
def main():
week_overnight = [False, False, True, False, False] #周一到周五的情况
for index, is_overnight in enumerate(week_overnight):
print '今天星期 %d' %(index + 1)
try:
overnight_check(is_overnight)
except Exception, e:
#发生错误的情况
print '发生错误 %s' ... | [
"yekonglidexuehua@126.com"
] | yekonglidexuehua@126.com |
62c348250b8c1f6090ee9fff578870490d0ee5ec | bc1fc488f4bf92e9b749323f99bc7fde0c75c2b1 | /gol.py | 927c274430cd4cd846aac3b6ff1d760bf5c42230 | [] | no_license | gmagno/pycudadc | 0f5dc8be70bce5a584324d893f1b9c6a20fbe683 | 65b5cf44a4c3dd7e0e057b1cfc29d587fe29575b | refs/heads/master | 2020-04-06T11:45:50.305366 | 2018-11-13T18:54:52 | 2018-11-13T18:54:52 | 157,429,116 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,725 | py | # Conway's Game of Life Accelerated with PyCUDA
# Luis Villasenor
# lvillasen@gmail.com
# 3/26/2016
# Licence: GPLv3
# Usage: python gol.py n n_iter
# where n is the board size and n_iter the number of iterations
import pycuda.driver as cuda
import pycuda.tools
import pycuda.autoinit
import pycuda.gpuarray as gpuarray
... | [
"goncalo@godwitlabs.com"
] | goncalo@godwitlabs.com |
3cb2895d9be0ea7247fe79ebbaf39e1e208ce90f | 82993b1cb98de82bfab69d8a9251c19c9b050259 | /original_galaxies/Tile 120x120 into 9x9 - linux.py | 60327cda66de82f0c286987c23acc74687b5bf34 | [] | no_license | GrantLoewer/Increasing-the-Efficiency-of-Galaxy-Classification-through-MPI-OpenMP-and-CUDA-Methods | 9398b875fc7c35992aa1d424bb40eba744d820f6 | 1f3fc7f9e191df08c1aeb5fefe520a8570d92d41 | refs/heads/main | 2023-04-28T23:39:15.371539 | 2021-05-13T21:46:51 | 2021-05-13T21:46:51 | 367,181,214 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,273 | py | import subprocess
import glob
import os
import time
starting_folders = ["original_images","finished"]
images_folder = "original_images"
finished_folder = "finished"
for folder in starting_folders:
if (os.path.isdir(folder) == True):
pass
else:
os.mkdir(folder)
print("Crea... | [
"noreply@github.com"
] | noreply@github.com |
3a71509d0c18293aa9c9a0b17eaa0b048bc7c70a | 19a974c502ba48eb6e47a3dceeef90afacc1c9d0 | /pi/.pycharm_helpers/python_stubs/-1965838824/_lsprof.py | 0705bbfcb10220a688091160aa3aba261e28f944 | [] | no_license | DiderickM/TheoDisplay | 357541c9a35fa15c8c7360f3f10aa67499bc6872 | d126237e2fb6054c8055d934136731328e0eda48 | refs/heads/main | 2022-12-26T19:21:35.766225 | 2020-10-06T20:49:19 | 2020-10-06T20:49:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,496 | py | # encoding: utf-8
# module _lsprof
# from /usr/lib/python2.7/lib-dynload/_lsprof.arm-linux-gnueabihf.so
# by generator 1.145
""" Fast profiler """
# no imports
# no functions
# classes
class Profiler(object):
"""
Profiler(custom_timer=None, time_unit=None, subcalls=True, builtins=True)
Builds a p... | [
"diderick@live.nl"
] | diderick@live.nl |
bee138c86ea76bff4cbbfe536f96b266837f5288 | 337e39cb024ef57128d899bdabc43149d42c534a | /setup.py | 025c2f4fe008af018252a3adc96040aa7bac1b2e | [] | no_license | vickleford/ephc | 45f00cbb30efa9ea7d39f0467cbbe5a4e4f955b6 | 35ecc752aa5b44b814c20eac2ab59fbfcd58a25d | refs/heads/master | 2021-01-18T14:11:06.580952 | 2013-02-01T20:30:53 | 2013-02-01T20:30:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 604 | py | try:
from setuptools import setup
except ImportError:
from distutils.core import setup
config = {
'description': 'End Point Health Checker',
'author': 'Vickleford',
'url': 'https://github.com/vickleford/',
'download_url': 'https://github.com/vickleford/',
'author_email': 'vwatkinsjr@gma... | [
"vic.watkins@rackspace.com"
] | vic.watkins@rackspace.com |
591ee5f8a9340b676201a31d424b6cef89325540 | c53177ba67ad559bf586fdaa279cf13bac9a04b9 | /legoRaspiConnect.py | 43f95565f3dab166f7a19acbb81ae30c92f09ed7 | [] | no_license | windy54/legoRobot | 5d97bba86e64172409234f39e200f6480cab1fce | 1082ba10c6a5e94f3248582bfff192901008ee8c | refs/heads/master | 2021-01-10T21:43:27.759811 | 2014-10-13T11:08:52 | 2014-10-13T11:08:52 | 24,999,028 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,471 | py | #!/usr/bin/python
#+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
#|W|i|n|d|y| |S|o|f|t|w|a|r|e| | | | | | | |
#+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
#
# this program is based on lots of sources, apologies for not including all references
# wifi car from brickpi python
#
# oct 10th corrected turn logic for large err... | [
"windysoftware@virginmedia.com"
] | windysoftware@virginmedia.com |
cb26f6e77dc6106ba43de2d5bc86770671de5f53 | 7728bf63d2a4476afaec71ffe7cbea978b466b3b | /graba_grafica.py | 8d7578aa508b35c03b7ecc893f04644fd5f2e537 | [] | no_license | stephanieHM/ProyectoFinal | 80bb81b65df30a9de006f9498edd56d0b9173ded | 80a981967b1488407bf86c4040e5ae0590c8ae6f | refs/heads/master | 2021-09-04T15:41:18.558443 | 2018-01-20T00:19:34 | 2018-01-20T00:19:34 | 116,427,692 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,785 | py | try:
import pyaudio
import numpy as np
from matplotlib import use
import matplotlib.pyplot as plt
import matplotlib.animation as animation
except ImportError:
raise ImportError('Faltan modulos externos que instalar')
import wave
SEGUNDOS = 10
MILISEGUNDOS_GRABACION = SEGUNDOS*1000
... | [
"f1n3@hotmail.com"
] | f1n3@hotmail.com |
7737023212ad4ea55f95918ee36260381329eadd | 1764b65f3f7492d8d499cbcd3c8c2c07b1c1649a | /webservice/Prototyping/andruino_api.py | d03d76e566ede6d902c28df5a16769a2d354cbf6 | [] | no_license | fox216/andruino | 1859db7e765938da80cf12e6dec4b0c10207cbc0 | 991579fff3897e2a6b7a5347cada9ad63b0d52c7 | refs/heads/master | 2021-01-19T07:06:19.779945 | 2015-09-30T23:22:33 | 2015-09-30T23:22:33 | 43,465,477 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,610 | py | '''
API Provides the following:
1.) Define API for interacting with shared database resource...
2.) Interface for andruino services
Arduino Pin Map
0 = Port
'''
import sqlite3
import datetime
from Queue import Queue
from andruino_services import *
import time
sql = sqlite3.connect('Arduino.db')
cl... | [
"kevin.j.fox@gmail.com"
] | kevin.j.fox@gmail.com |
b20e8530c99058326e444665c43edd44e03a4141 | 95af0413a1a787c7b11b9c3ce2a909549036b8e3 | /04_FileDir/globbing.py | ece9f9cfb452dd04268cbcb8110f847a7338e57f | [] | no_license | tmulherin/ProgPy4 | baf2a31c536fc80c116ceae0a1858e5f998542ca | 086c6c7f2bd2aa0d08cfe67a5300e555c14efe23 | refs/heads/master | 2016-09-10T16:38:37.053679 | 2014-08-06T18:32:53 | 2014-08-06T18:32:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 224 | py | #!/usr/bin/env python3.3
import glob, os
dirname = r'/home/tim/dev/'
for file in glob.glob(dirname + '*/*/*'):
head, tail = os.path.split(file)
print(head, tail, '=>', ('/home/tim/dev/other/' + tail))
input() | [
"tmulher@bu.edu"
] | tmulher@bu.edu |
09675019fa01efbe5ec1e55fc58d6c4254443257 | a87ffbe9ad6a0b5a515506d39354669d0fb1b262 | /examples/example2_wbf/cards/dim6_for_information_parton/coupling_orders.py | 2e437a5bc05d71d75bc6e24b8ec3557f97f49d03 | [
"MIT"
] | permissive | luclepot/madminer | 3bf6d10cd7dcb6bcdba31cc2d4e7112a1c4c9ad5 | 4009c63fc8b952e102db699d9686d762016f52e9 | refs/heads/master | 2020-04-21T12:25:27.878165 | 2019-04-15T14:07:36 | 2019-04-15T14:07:36 | 166,054,404 | 0 | 0 | MIT | 2019-01-16T14:32:54 | 2019-01-16T14:32:54 | null | UTF-8 | Python | false | false | 558 | py | # This file was automatically created by FeynRules 2.3.24
# Mathematica version: 11.0.1 for Linux x86 (64-bit) (September 21, 2016)
# Date: Fri 11 Aug 2017 09:48:15
from object_library import all_orders, CouplingOrder
QCD = CouplingOrder(name = 'QCD',
expansion_order = 99,
hi... | [
"fkling@uci.edu"
] | fkling@uci.edu |
35f8bcb86ab2adfdc95d10eb5f0d794f646531d9 | bb1855bc6bb737183c930e2ee5464b8111cecfc4 | /LeetCode/nimGame.py | 043daeaded3e3659313c1da4905be86fe67cb716 | [] | no_license | dip4k/Competitive-Programming | c615c4d3d881329003b1059c797a20299336611a | f0891fd5438ac8ba2d653987c710f0d9a0451da4 | refs/heads/master | 2021-04-28T14:13:18.310157 | 2016-02-26T05:06:27 | 2016-02-26T05:06:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,261 | py | '''
You are playing the following Nim Game with your friend: There is a heap of stones on the table, each time one of you take turns to remove 1 to 3 stones. The one who removes the last stone will be the winner. You will take the first turn to remove the stones.
Both of you are very clever and have optimal strategies... | [
"tejasvya@buffalo.edu"
] | tejasvya@buffalo.edu |
af324207b3a8c6eb6b12d4899068dd503aff5478 | 3af23d79e055872310ab74b4ac8ce0ccd4f1d46b | /test_firstcirclecifile.py | d85e90956bb132b6c0c748bb2945da4fe86f6d48 | [] | no_license | sathvik0902/CircleCITests | f2d94a148489217981c996d7b445bcabd0321417 | 7096c161e1dc81f125fd868a0c71568272eaaf10 | refs/heads/master | 2021-05-21T06:40:32.114594 | 2020-04-03T11:21:45 | 2020-04-03T11:21:45 | 252,587,963 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 602 | py | import pytest
from selenium import webdriver
from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
def test_sampleDemo():
print("Hi this is my first circleCI ")
print("Hi this is my second line circleCI ")
driver = webdriver.Chrome(executable_path="D:\\selenium\\drivers\\chromedri... | [
"javamadhuker@gmail.com"
] | javamadhuker@gmail.com |
5f3f96dcbb4ce444966950b2100f3a9386fcdf8c | 408427dfca1d2c58bc91ff2e5477253aafbf0213 | /MMMSD/mean mode median .py | baf8a9cf195cb0b93e236ba91de8432421b2d645 | [] | no_license | krag57/DS-Python | 71a846122720b0dc97f8ed9b8b9f519a2cb4ce00 | a115a6837ffb1d9292ec3e427177fbf83578be1a | refs/heads/master | 2021-01-05T12:42:05.409127 | 2020-02-26T17:53:13 | 2020-02-26T17:53:13 | 241,027,104 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 988 | py | #!/usr/bin/env python
# coding: utf-8
# In[27]:
n= int(input())
#scoreList=[]
#occur={}
score=list(map(int,input().split()))
#scoreList.append(score)
score.sort()
def mean(score):
return round(sum(score)/n,1)
def median(score):
if n%2!=0:
return score[int((n+1)/2)-1]
else:
return (score[... | [
"noreply@github.com"
] | noreply@github.com |
1deab0fe04844a1eb82e2efe120db419c02e6e18 | 276b0d103a840534b4e1459d25b79d824f80c992 | /src/Position/Top20API.py | 8adb4c7dbfa8148dbba12a94091a166e0830dc4a | [] | no_license | dxcv/PreTrade | 61e3ee2d56bf904b8eea62b13361564b0c326d70 | e371e908e13c3722512587445cd1315f83f62ee9 | refs/heads/master | 2020-05-29T13:19:04.177809 | 2019-05-28T11:31:06 | 2019-05-28T11:31:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,804 | py | # -*- coding: utf-8 -*-
# @Time : 2019/4/8 17:03
# @Author : ZouJunLin
"""阶段性排名前20期货公司"""
from bs4 import BeautifulSoup
from PositionAPI import *
def GetCFFEXPositionTop20(info, startdate, ExchangeID):
insertsql = "INSERT INTO [dbo].[Position_Top20] ([TradingDay],[InstrumentID],[ExchangeID],[Rank],[Type],[Part... | [
"1927007992@qq.com"
] | 1927007992@qq.com |
d4209a045d8c2874fb783624e9d57859a3f90d01 | febb7a4b889c2f40637e2b688eb770cf0809226f | /fython/test/instruction/iruc_test.py | 4bd165906959e2adc6c9080adb1c9ba8161931ea | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | nicolasessisbreton/fython | 68253552c626640b5efc2a7cea9384c8e0425c08 | 988f5a94cee8b16b0000501a22239195c73424a1 | refs/heads/master | 2021-01-10T07:10:06.793158 | 2017-08-25T17:27:05 | 2017-08-25T17:27:05 | 50,076,320 | 48 | 3 | null | 2016-08-21T17:16:12 | 2016-01-21T02:30:31 | Python | UTF-8 | Python | false | false | 225 | py | s = r"""
.a.fy
int dimension(10) target x
int dimension(:) pointer y
y => x[3:5]
"""
from fython.test import *
writer(s)
w = load('.a', force=1, release=1, verbose=0)
# print(open(w.module.url.fortran_path, 'r').read())
| [
"contact@nicolasessisbreton.com"
] | contact@nicolasessisbreton.com |
714ef4f9fafa8905a4c1e59d9c64bcfc26dc6962 | e996842b1376e10110f3c8c73c5a72f73ca61de6 | /Scripts/create_distance.py | 15fd77209fe0e97c594f024f537b74428a66b6b6 | [] | no_license | sa000/Division-Distances | 4a32468bc7bd63234d1992b937302fa972f5570b | a0734a4cfd39caff830455fba7c36b8919f0fc6e | refs/heads/master | 2020-03-09T07:14:25.528050 | 2018-04-08T16:27:10 | 2018-04-08T16:27:10 | 128,660,051 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,377 | py | import urllib
import json
import sys
import csv
import time
cities=[]
googleaddress = "https://maps.googleapis.com/maps/api/directions/json?"
#Create our distance csv using google api
with open('nba_cities.txt') as f:
for line in f:
cleanLine=line.strip()
cities.append(cleanLine)
target=open('distances2.csv', 'w... | [
"alamsakib@gmail.com"
] | alamsakib@gmail.com |
6ab30f053b7ccacbcaab23e6c89cf9d0b2225d6c | 8f58a37804a1c8b409ff25cd65271b388cf5aaaf | /testapp/migrations/0001_initial.py | 7bbe22056b445b72590d24bacbbd86003d38e7e8 | [] | no_license | madkraft/statsProject | 1be1a8d1f9dffce0d48e9f7498b5ec8b5a1e43d6 | d711efce722c00879115d2458a8457890a24cd74 | refs/heads/master | 2021-01-21T05:55:01.703307 | 2016-02-04T16:06:12 | 2016-02-04T16:06:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 569 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
]
operations = [
migrations.CreateModel(
name='People',
fields=[
('id', models.IntegerField(se... | [
"anton.kostiuchkov@teleste.com"
] | anton.kostiuchkov@teleste.com |
df3958df4c64912e278c36ae1ee4d342b62a0f02 | b6895c2cb5b4503452e8318805633a13e04e2dfc | /thread4.py | ed827cce8f6b2528e9dc99d019814740923c0cef | [] | no_license | lima36/study | 34adda0ce84417875927b3d4c9ca0b53036ee780 | 1f7b5bb4439eb717e08f0f3c37ba7e1e60ad4fea | refs/heads/master | 2022-05-25T16:25:25.825796 | 2022-03-21T09:07:09 | 2022-03-21T09:07:09 | 154,844,789 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,960 | py | import sys
import PyQt5
from PyQt5.QtWidgets import *
from PyQt5.QtCore import QThread, pyqtSignal
from PyQt5 import uic
# This is our window from QtCreator
# import mainwindow_auto
form_class = uic.loadUiType("/home/lima/Work_Python/Study/study.ui")[0]
from openpyxl import load_workbook
import re
from PyQt5.QtCore im... | [
"lima36@empal.com"
] | lima36@empal.com |
e2309a78e13c8d75564332e76e5b1bad51bde59c | 968ac9cb244c660a219ff06eefb8cab52be0cf21 | /Swapping-Autoencoder-for-Deep-Image Manipulation/network.py | f1566ff1f9db689e3e6e1519d9a0ec33b9511aa8 | [] | no_license | jis478/Pytorch | ae987308934a95f5be9d78ab1f483de4c5fa6b78 | a1b4e5be03feb76152acf4a72ea5ad35c5b2bf95 | refs/heads/master | 2023-04-05T02:22:44.099045 | 2021-04-13T12:27:46 | 2021-04-13T12:27:46 | 305,999,464 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,738 | py | # REFELCTION PADDING FOR ResBlock, NO PADDING FOR CONV CHECK
import math
import random
import functools
import operator
import torch
from torch import nn
from layers import *
from torch.nn import functional as F
from torch.autograd import Function
from op import FusedLeakyReLU, fused_leaky_relu, upfirdn... | [
"mark.kim@webtoonscorp.com"
] | mark.kim@webtoonscorp.com |
97a7a1b661d847598f5ef105388d61266babb110 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/441/usersdata/311/109834/submittedfiles/lista1.py | 9c83a6d93621cba2175ab70f2088ceea4fd25712 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 157 | py | # -*- coding: utf-8 -*-
n=int(input('Digite a quantidade de numeros: '))
a=[]
for i in range(n):
a.append(int(input('Digite o numero%d:' %(i+1))))
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
f56acf97b9abbc3b137bf4f924ed3ee07b7c5424 | 9adc810b07f7172a7d0341f0b38088b4f5829cf4 | /experiments/vitchyr/disentanglement/n_object_pnp/exp_5_on_random_object_init.py | c4a5e28964dd857af355d261e18481bdc3671f3c | [
"MIT"
] | permissive | Asap7772/railrl_evalsawyer | 7ee9358b5277b9ddf2468f0c6d28beb92a5a0879 | baba8ce634d32a48c7dfe4dc03b123e18e96e0a3 | refs/heads/main | 2023-05-29T10:00:50.126508 | 2021-06-18T03:08:12 | 2021-06-18T03:08:12 | 375,810,557 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,317 | py | import rlkit.misc.hyperparameter as hyp
from rlkit.launchers.experiments.disentanglement.contextual_encoder_distance_launcher import (
encoder_goal_conditioned_sac_experiment
)
from rlkit.launchers.launcher_util import run_experiment
if __name__ == "__main__":
variant = dict(
env_id='OneObjectPickAndPl... | [
"alexanderkhazatsky@gmail.com"
] | alexanderkhazatsky@gmail.com |
f957ccaad9c4850b8a815994ef49492ba8f5b299 | 54f826d6103263e3983d1861ff902c62deb59916 | /cart/admin.py | 17023013cabe0fe5be3f2b25a5ad0d8d4e551005 | [] | no_license | arumjin/gt-qlik | e37582ae7d3f0ee1d4da0319459f92b588b1beb4 | 9cf859a669b2302f5430972528275fecdce70926 | refs/heads/master | 2022-11-08T18:57:35.386732 | 2020-06-30T00:55:15 | 2020-06-30T00:55:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 355 | py | from django.contrib import admin
from .models import CartItem,Cart
# Register your models here.
class CartItemAdmin(admin.ModelAdmin):
list_display = (
'chart',
'cart'
)
admin.site.register(CartItem,CartItemAdmin)
class CartAdmin(admin.ModelAdmin):
list_display = (
'user',
)
a... | [
"tlfgjawlq@naver.com"
] | tlfgjawlq@naver.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.