blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
616
content_id
stringlengths
40
40
detected_licenses
listlengths
0
112
license_type
stringclasses
2 values
repo_name
stringlengths
5
115
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
777 values
visit_date
timestamp[us]date
2015-08-06 10:31:46
2023-09-06 10:44:38
revision_date
timestamp[us]date
1970-01-01 02:38:32
2037-05-03 13:00:00
committer_date
timestamp[us]date
1970-01-01 02:38:32
2023-09-06 01:08:06
github_id
int64
4.92k
681M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
22 values
gha_event_created_at
timestamp[us]date
2012-06-04 01:52:49
2023-09-14 21:59:50
gha_created_at
timestamp[us]date
2008-05-22 07:58:19
2023-08-21 12:35:19
gha_language
stringclasses
149 values
src_encoding
stringclasses
26 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
3
10.2M
extension
stringclasses
188 values
content
stringlengths
3
10.2M
authors
listlengths
1
1
author_id
stringlengths
1
132
70f76bc9b439c416383973f9088f2be3a89488ca
cb9b861f5f3c0a36acfa2d0e1664216587b91f07
/svr_surrogate.py
df181b6f63917221a1b40cfcb1ae7a7835fb5914
[]
no_license
rubinxin/SoTL
feae052dba5506b3750126b9f7180a02a01bd998
16e24371972aab2a5fa36f8febbe83ae4dacf352
refs/heads/master
2023-01-20T14:35:37.027939
2020-11-30T16:51:29
2020-11-30T16:51:29
307,888,874
0
0
null
null
null
null
UTF-8
Python
false
false
5,080
py
# Our implementation of SVR-based learning curve extrapolation surrogate # based on the description in B. Baker, O. Gupta, R. Raskar, and N. Naik, # “Accelerating neural architecture search using performance prediction,” arXiv preprint arXiv:1705.10823, 2017. import numpy as np from sklearn.ensemble import RandomFores...
[ "robin@robots.ox.ac.uk" ]
robin@robots.ox.ac.uk
810b042622acc9d9cedfba2b326adb4433c28b73
fe4f2aeb889f939ea6caf4a34371a3558064abcd
/vqa/model_vlmap_finetune.py
5915643c18747587a1c77fb0bddde770a3e5516d
[ "MIT" ]
permissive
HyeonwooNoh/VQA-Transfer-ExternalData
cf9c1b82dd55389dfe5f52d8fd196780dd3d4629
d21b700bcdc3ba3c392ff793b3f5efe23eb68ed6
refs/heads/master
2021-10-25T22:58:00.318492
2019-04-08T04:52:46
2019-04-08T04:52:46
122,662,354
21
3
null
null
null
null
UTF-8
Python
false
false
9,938
py
import cPickle import h5py import os import numpy as np import tensorflow as tf from util import log from vlmap import modules W_DIM = 300 # Word dimension L_DIM = 1024 # Language dimension V_DIM = 1024 class Model(object): def __init__(self, batch, config, is_train=True): self.batch = batch ...
[ "hyeonwoonoh@gmail.com" ]
hyeonwoonoh@gmail.com
69fffa27f3895ac0ec76dfa70d08f3e0ab8e62f2
e76c8b127ae58c5d3b5d22c069719a0343ea8302
/tf_ex_5_linear_reg_with_eager_api.py
31dc0013a8602daf6ff29927b818a2c4785c48cd
[]
no_license
janFrancoo/TensorFlow-Tutorials
18f3479fc647db3cbdb9fb9d5c0b9a67be804642
b34dbf903d2f5ff7bde6fb279fef6d7e2004a3bf
refs/heads/master
2020-07-23T02:01:14.940932
2019-10-26T08:41:23
2019-10-26T08:41:23
207,410,175
0
0
null
null
null
null
UTF-8
Python
false
false
1,490
py
import numpy as np import tensorflow as tf import matplotlib.pyplot as plt # Set Eager API tf.enable_eager_execution() tfe = tf.contrib.eager # Parameters num_steps = 1000 learning_rate = .01 # Training data x_train = np.array([3.3, 4.4, 5.5, 6.71, 6.93, 4.168, 9.779, 6.182, 7.59, 2.167, 7.042, 10.791, 5.313, ...
[ "noreply@github.com" ]
janFrancoo.noreply@github.com
c094ca768a09f90b5ff71b83649c758e5347b11a
dbf34d933a288e6ebca568eaebaa53e5b98ba7c1
/src/rebecca/index/splitter.py
34d4aa005a6bca3c5d5273b7acd574142148f30d
[]
no_license
rebeccaframework/rebecca.index
dc68dfa2c1b77fc273a12b3f934074722fb8300c
ab452c9b375227e84fab42496633dc026421a283
refs/heads/master
2021-01-10T21:11:53.567186
2013-05-05T18:53:58
2013-05-05T18:53:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
759
py
from zope.interface import implementer from zope.index.text.interfaces import ISplitter from persistent import Persistent from igo.Tagger import Tagger @implementer(ISplitter) class IgoSplitter(Persistent): def __init__(self, dictionary): self.dictionary = dictionary @property def tagger(self): ...
[ "aodagx@gmail.com" ]
aodagx@gmail.com
c361eca7aae2a04817c28fe837c042af887c9567
411e5de8629d6449ff9aad2eeb8bb1dbd5977768
/AlgoExpert/greedy/minimumWaitingTime.py
654f08d249d968d38d7b072c4abfa1fdfa5e8e37
[ "MIT" ]
permissive
Muzque/Leetcode
cd22a8f5a17d9bdad48f8e2e4dba84051e2fb92b
2c37b4426b7e8bfc1cd2a807240b0afab2051d03
refs/heads/master
2022-06-01T20:40:28.019107
2022-04-01T15:38:16
2022-04-01T15:39:24
129,880,002
1
1
MIT
2022-04-01T15:39:25
2018-04-17T09:28:02
Python
UTF-8
Python
false
false
486
py
""" """ testcases = [ { 'input': [3, 2, 1, 2, 6], 'output': 17, }, { 'input': [2], 'output': 0, }, ] def minimumWaitingTime(queries): queries.sort() ret = 0 for i in range(len(queries)-1): if i > 0: queries[i] += queries[i-1] ret...
[ "zerosky1943@gmail.com" ]
zerosky1943@gmail.com
3d90e1a3792eaec38062f7ea1dbe0cfdf9455b06
3fa4a77e75738d00835dcca1c47d4b99d371b2d8
/backend/pyrogram/raw/base/server_dh_inner_data.py
6813099ac6c9cffd446ad983b6da40d37ae93590
[ "Apache-2.0" ]
permissive
appheap/social-media-analyzer
1711f415fcd094bff94ac4f009a7a8546f53196f
0f9da098bfb0b4f9eb38e0244aa3a168cf97d51c
refs/heads/master
2023-06-24T02:13:45.150791
2021-07-22T07:32:40
2021-07-22T07:32:40
287,000,778
5
3
null
null
null
null
UTF-8
Python
false
false
1,903
py
# Pyrogram - Telegram MTProto API Client Library for Python # Copyright (C) 2017-2021 Dan <https://github.com/delivrance> # # This file is part of Pyrogram. # # Pyrogram is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published # by the Free...
[ "taleb.zarhesh@gmail.com" ]
taleb.zarhesh@gmail.com
6927adb2877ed18131676f2f35fb65189fcc17a5
ca617409a3a992a2014eab34bf45ea5cd22021d7
/event_management/serializers/venue.py
c595ecb61bac9e3ec3a25c229f8cb80dabf5c790
[]
no_license
Imam-Hossain-45/ticketing
89463b048db3c7b1bc92a4efc39b83c4f17d967f
65a124d579162a687b20dfbdba7fd85c110006c6
refs/heads/master
2022-04-14T22:36:23.152185
2020-03-07T11:52:38
2020-03-07T11:52:38
230,717,468
0
0
null
null
null
null
UTF-8
Python
false
false
495
py
from rest_framework import serializers from event_management.models import Venue from settings.models import Address class AddressCreateSerializer(serializers.ModelSerializer): class Meta: model = Address fields = '__all__' class VenueCreateSerializer(serializers.ModelSerializer): venue_addr...
[ "imamhossain1310@gmail.com" ]
imamhossain1310@gmail.com
8985c156f126ecc79db188ed97f0e9294a25d6d3
b048abb5f35b5c69b59387dda86ef0ed62a5b378
/elias.py
c0500cbf67226b4feaa64037b1e26cba1ccc0539
[]
no_license
vam-sin/DoctorElias
e7cc362417ad33bb0b43b354be3c65b7b38aa5fc
a3c543de17a3ab2f33e9d2c54159c0d378164084
refs/heads/master
2022-09-02T02:52:53.616775
2020-05-30T11:04:03
2020-05-30T11:04:03
257,921,467
0
1
null
null
null
null
UTF-8
Python
false
false
10,899
py
# tasks # Consider all symptoms. # Build engine # Take severity symptoms: 0-5 scale, 0 being not at all, 5 meaning extremely severe. # Libraries from experta import * symptoms_list = ['headache', 'back pain', 'chest pain', 'cough', 'fainting', 'fatigue', 'sunken eyes', 'low body temperature', 'restlesness', 'sor...
[ "vamsinallapareddy@gmail.com" ]
vamsinallapareddy@gmail.com
c9826cc909c6ccaa1d56df36acffaefce9861555
4a2f3369620add7a72de4f8c50ed208442e024ba
/my_admin/service/sites.py
690c970485c84f936cf79d39885be357d65086f3
[]
no_license
YangQian1992/CRM
a7292a48bbaf221baffdfdc80b04270f9d7a2398
7cd026f99a4bf46ed896517fbd1141d92a1072f3
refs/heads/master
2020-03-28T01:01:32.674293
2018-10-10T07:25:38
2018-10-10T07:25:38
147,470,027
1
0
null
null
null
null
UTF-8
Python
false
false
17,420
py
from django.conf.urls import url from django.shortcuts import render, HttpResponse, redirect from django.db.models.fields.related import ManyToManyField,ForeignKey,OneToOneField from django.utils.safestring import mark_safe from django.urls import reverse from django import forms from my_admin.utils.mypage import MyPag...
[ "1289089651@qq.com" ]
1289089651@qq.com
1e77c71e14d2df705175577ba95acfce83d220cc
e64db6fced156ea26497958dd3a9265db177ba2b
/manage.py
abb96d18b3314fdce50aae2b041b57e426611e36
[]
no_license
skyride/reve-flairs
9c2fe782db8f74696d4eea42c83abf1ceb55e72e
6f84d571f5756964b8bcb822147ce9b144036c76
refs/heads/master
2022-12-16T22:25:45.671614
2020-06-12T20:58:58
2020-06-12T20:58:58
110,861,354
2
1
null
2022-11-22T02:01:52
2017-11-15T16:55:30
Python
UTF-8
Python
false
false
804
py
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "flairs.settings") try: from django.core.management import execute_from_command_line except ImportError: # The above import may fail for some other reason. Ensure that the ...
[ "skylinerspeeder@gmail.com" ]
skylinerspeeder@gmail.com
2ea30df6db951105fb4bc2b8f1eb8fdd7e346f4d
cbd60a20e88adb174b40832adc093d848c9ca240
/solutions/busnumbers/busnumbers.py
690a0be7996a788721974b7b20150d4091bcf299
[]
no_license
maxoja/kattis-solution
377e05d468ba979a50697b62ce8efab5dcdddc63
b762bfa9bbf6ef691d3831c628d9d16255ec5e33
refs/heads/master
2018-10-09T04:53:31.579686
2018-07-19T12:39:09
2018-07-19T12:39:09
111,871,691
0
0
null
null
null
null
UTF-8
Python
false
false
579
py
n = int(input()) seq = sorted(list(map(int, input().split()))) prevs = [] for i in range(len(seq)): current = seq[i] nxt = -1 if i == len(seq)-1 else seq[i+1] if nxt == current+1: prevs.append(current) continue else: if prevs: ## print('enter' , prevs) ...
[ "-" ]
-
3bd03fe4d769ba382d80392cf0c083c66cb30acb
71501709864eff17c873abbb97ffabbeba4cb5e3
/llvm13.0.0/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentTwoBreakpointThreads.py
1f6832d9ecdb1b993193adf3655ceba218a19e06
[ "NCSA", "Apache-2.0", "LLVM-exception" ]
permissive
LEA0317/LLVM-VideoCore4
d08ba6e6f26f7893709d3285bdbd67442b3e1651
7ae2304339760685e8b5556aacc7e9eee91de05c
refs/heads/master
2022-06-22T15:15:52.112867
2022-06-09T08:45:24
2022-06-09T08:45:24
189,765,789
1
0
NOASSERTION
2019-06-01T18:31:29
2019-06-01T18:31:29
null
UTF-8
Python
false
false
700
py
import unittest2 from lldbsuite.test.decorators import * from lldbsuite.test.concurrent_base import ConcurrentEventsBase from lldbsuite.test.lldbtest import TestBase @skipIfWindows class ConcurrentTwoBreakpointThreads(ConcurrentEventsBase): mydir = ConcurrentEventsBase.compute_mydir(__file__) # Atomic seq...
[ "kontoshi0317@gmail.com" ]
kontoshi0317@gmail.com
433be8a7d7781edf3a6c0b6fd7ea8ce7d790b2f2
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02803/s436740421.py
e18ddeaa284997e7a2fa19641dcbbc710be7f0af
[]
no_license
Aasthaengg/IBMdataset
7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901
f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8
refs/heads/main
2023-04-22T10:22:44.763102
2021-05-13T17:27:22
2021-05-13T17:27:22
367,112,348
0
0
null
null
null
null
UTF-8
Python
false
false
1,057
py
from collections import deque H, W = map(int, input().split()) field = ['#' * (W+2)] * (H+2) for i in range(1, H+1): field[i] = '#' + input() + '#' di = [1, 0, -1, 0] dj = [0, 1, 0, -1] ans = 0 q = deque() for si in range(1, H+1): for sj in range(1, W+1): if field[si][sj] == '#': continue ...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
76f9cf3c70feb1745228287e760e543e56e9ce1d
900f3e5e0a5f9bbc28aa8673153046e725d66791
/less15/chat_v3/chat/chat/settings.py
e6a04b5f17f725ceee6cdb1c8879e9c0dbd6a011
[]
no_license
atadm/python_oop
c234437faebe5d387503c2c7f930ae72c2ee8107
2ffbadab28a18c28c14d36ccb008c5b36a426bde
refs/heads/master
2021-01-23T04:40:10.092048
2017-05-30T12:22:53
2017-05-30T12:22:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,427
py
""" Django settings for chat project. Generated by 'django-admin startproject' using Django 1.11.1. For more information on this file, see https://docs.djangoproject.com/en/1.11/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.11/ref/settings/ """ ...
[ "anna@3g.ua" ]
anna@3g.ua
6b09c02200e9cd1e184bdbbc08dba0c6c89f9b8e
e8f6a0d45cc5b98747967169cea652f90d4d6489
/week2/day2/taco_project/taco_project/settings.py
0d5bc4a9d6be4b8a4afe7e0834b1445e8f8b528f
[]
no_license
prowrestler215/python-2020-09-28
1371695c3b48bbd89a1c42d25aa8a5b626db1d19
d250ebd72e7f2a76f40ebbeb7fbb31ac36afd75f
refs/heads/master
2022-12-28T22:24:52.356588
2020-10-06T18:50:12
2020-10-06T18:50:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,128
py
""" Django settings for taco_project project. Generated by 'django-admin startproject' using Django 2.2.4. 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 ...
[ "CBaut@users.noreply.github.com" ]
CBaut@users.noreply.github.com
d45bbc2ebc3e163699e0e18d6bf32523bccae91f
978248bf0f275ae688f194593aa32c267832b2b6
/xlsxwriter/test/worksheet/test_write_sheet_views8.py
16dd94be70b03ae21d672a359c7baa4a50a33d46
[ "BSD-2-Clause-Views" ]
permissive
satish1337/XlsxWriter
b0c216b91be1b74d6cac017a152023aa1d581de2
0ab9bdded4f750246c41a439f6a6cecaf9179030
refs/heads/master
2021-01-22T02:35:13.158752
2015-03-31T20:32:28
2015-03-31T20:32:28
33,300,989
1
0
null
null
null
null
UTF-8
Python
false
false
3,068
py
############################################################################### # # Tests for XlsxWriter. # # Copyright (c), 2013-2015, John McNamara, jmcnamara@cpan.org # import unittest from ...compatibility import StringIO from ...worksheet import Worksheet class TestWriteSheetViews(unittest.TestCase): """ ...
[ "jmcnamara@cpan.org" ]
jmcnamara@cpan.org
bd1244422c562b95b4abe609a6ecc9151d8cc0f3
2c5edd9a3c76f2a14c01c1bd879406850a12d96e
/config/default.py
37e61c16709d86117c0fa3d63970296d5b8742d2
[ "MIT" ]
permissive
by46/coffee
e13f5e22a8ff50158b603f5115d127e07c2e322b
f12e1e95f12da7e322a432a6386a1147c5549c3b
refs/heads/master
2020-08-14T04:42:05.248138
2017-10-23T13:39:05
2017-10-23T13:39:05
73,526,501
0
0
null
null
null
null
UTF-8
Python
false
false
486
py
HTTP_HOST = '0.0.0.0' HTTP_PORT = 8080 DEBUG = False SECRET_KEY = "\x02|\x86.\\\xea\xba\x89\xa3\xfc\r%s\x9e\x06\x9d\x01\x9c\x84\xa1b+uC" # Flask-NegLog Settings LOG_LEVEL = 'debug' LOG_FILENAME = "logs/error.log" LOG_BACKUP_COUNT = 10 LOG_MAX_BYTE = 1024 * 1024 * 10 LOG_FORMATTER = '%(asctime)s - %(levelna...
[ "ycs_ctbu_2010@126.com" ]
ycs_ctbu_2010@126.com
e53bee84de0b19c27956646ed221e41449d3e3ae
0818a9020adc6e25b86060a8e84171d0b4958625
/tensorflow-piece/file_gene_scripts.py
840928b309ae60acdab8f757ab590e178999874f
[]
no_license
wgwangang/mycodes
2107becb6c457ed88b46426974a8f1fa07ed37dd
9fa48ca071eacf480034d1f69d3c05171d8a97d2
refs/heads/master
2020-03-28T07:58:45.017910
2018-03-14T07:21:14
2018-03-14T07:21:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,196
py
import os def generate_train_test_txt(data_root_dir, save_dir, rate=.1): train_txt_file_path = os.path.join(save_dir, "train.txt") test_txt_file_path = os.path.join(save_dir, "test.txt") dirs = os.listdir(data_root_dir) train_txt_file = open(train_txt_file_path, mode="w") test_txt_file = open(test...
[ "yinpenghhz@hotmail.com" ]
yinpenghhz@hotmail.com
8e0277e0fae0c9499d3837975223b854aed5431e
6ba406a7c13d5c76934e36494c32c927bbda7ae7
/tests/trails_fhn.py
8ff814c29523973081000a55dda715750cf1dacf
[ "MIT" ]
permissive
sowmyamanojna/neuronmd
50e5e4bd9a4340fda73e363133314118ea815360
3994d02214c3cc4996261324cfe9238e34e29f1c
refs/heads/main
2023-07-09T01:31:32.597268
2021-08-23T14:33:38
2021-08-23T14:33:38
398,491,112
0
0
null
null
null
null
UTF-8
Python
false
false
315
py
import numpy as np import matplotlib.pyplot as plt from fitzhugh_nagumo import FHNNeuron neuron = FHNNeuron() tmax = 100 dt = 0.01 I = 1.75 t = np.arange(0, tmax, dt) neuron.simulate(0.6, 0, t, 0.6) neuron.plot(name="0.1") current_list = np.arange(0.01, I, 0.01) neuron.animate(t, current_list, ylim=[-0.45,1.5])
[ "sowmyamanojna@gmail.com" ]
sowmyamanojna@gmail.com
f82263b8d652c912b1df45704b5f390611d3dfd2
3b60e6f4bbc011003ac4929f01eb7409918deb79
/Analysis_v1/PlotterVariants/MultiSets/plotsHelper.py
ffa6f171c59e9cad382935e878e872b6eb9872c4
[]
no_license
uzzielperez/Analyses
d1a64a4e8730325c94e2bc8461544837be8a179d
1d66fa94763d7847011ea551ee872936c4c401be
refs/heads/master
2023-02-09T04:54:01.854209
2020-09-07T14:57:54
2020-09-07T14:57:54
120,850,137
0
0
null
2020-06-17T16:48:16
2018-02-09T03:14:04
C++
UTF-8
Python
false
false
8,671
py
import ROOT from ROOT import TMath, TClass,TKey, TIter,TCanvas, TPad, TFile, TPaveText, TColor, TGaxis, TH1F, TPad, TH1D, TLegend from ROOT import kBlack, kBlue, kRed from ROOT import gBenchmark, gStyle, gROOT, gDirectory import re import sys CMSlumiPath = '/uscms_data/d3/cuperez/CMSSW_8_0_25/src/scripts/pyroot' sys.p...
[ "uzzie.perez@cern.ch" ]
uzzie.perez@cern.ch
8fe76f727f44429df1fc0876ce238e15960bc6ec
549d11c89ce5a361de51f1e1c862a69880079e3c
/python高级语法/线程/都任务版的UDP聊天器.py
9d751967f4b2eaba2e1846ea3f723ae9a52eca1e
[]
no_license
BaldSuperman/workspace
f304845164b813b2088d565fe067d5cb1b7cc120
4835757937b700963fdbb37f75a5e6b09db97535
refs/heads/master
2020-08-01T15:32:02.593251
2019-09-26T08:04:50
2019-09-26T08:04:50
211,034,750
0
0
null
null
null
null
UTF-8
Python
false
false
953
py
import socket import threading def recv_msg( udp_socket): while True: recv_data = udp_socket.recvfrom(1024) print("收到的数据:{0}".format(recv_data)) def send_msg(udp_socket, dest_port,dest_ip): '''发送数据''' while True : send_data = input("输入发送的数据: ") udp_socket.sendto(send_data.en...
[ "you@example.com" ]
you@example.com
f2c68ec335f6a55681c06b381e461d9c65326cee
a316a0018bd1cb42c477423916669ed32e2c5d7c
/homie/node/property/property_boolean.py
49d8eb14cd18735035fe6c9f1f25173d63f9b69c
[ "MIT" ]
permissive
mjcumming/HomieV3
a8b60ee9119059d546b69b31280cf15a7978e6fc
62278ec6e5f72071b2aaebe8e9f66b2071774ef7
refs/heads/master
2020-04-28T06:49:22.193682
2020-04-04T12:36:08
2020-04-04T12:36:08
175,072,550
5
7
MIT
2020-01-15T03:41:38
2019-03-11T19:44:17
Python
UTF-8
Python
false
false
624
py
from .property_base import Property_Base class Property_Boolean(Property_Base): def __init__(self, node, id, name, settable=True, retained=True, qos=1, unit=None, data_type='boolean', data_format=None, value=None, set_value=None): super().__init__(node,id,name,settable,retained,qos,unit,'boolean',data_for...
[ "mike@4831.com" ]
mike@4831.com
2b2ae4e3e90b1b98750f66a053a03514118123d6
e88f2f590e9b58c294ea34f9277748b6bbabeac7
/sandbox/finetuning/algos/concurrent_continuous_ppo.py
d4cd314bd47d95820381415300f80a6c264fbc93
[ "MIT", "LicenseRef-scancode-generic-cla" ]
permissive
jesbu1/rllab-finetuning
4aade730f0401f46675e5a7588ca59968272a41d
ccfbc9a612dc9c85238183209814e98666825d01
refs/heads/master
2022-12-04T10:42:37.442485
2020-08-18T00:07:39
2020-08-18T00:07:39
282,724,263
0
0
null
2020-07-26T20:03:48
2020-07-26T20:03:48
null
UTF-8
Python
false
false
10,264
py
import theano import theano.tensor as TT from rllab.misc import ext import numpy as np import copy import rllab.misc.logger as logger from rllab.spaces.box import Box from rllab.envs.env_spec import EnvSpec from sandbox.finetuning.policies.concurrent_hier_policy2 import HierarchicalPolicy from sandbox.finetuning.algos....
[ "alexlioralexli@gmail.com" ]
alexlioralexli@gmail.com
6ee0b28d5d47fef3766ee9a9567b845b290892dd
3298ad5f82b30e855637e9351fe908665e5a681e
/Regression/Polynomial Regression/polynomial_regression.py
07f16298a93575a5156ff3fe4ef8b1102a78ad42
[]
no_license
Pratyaksh7/Machine-learning
8ab5281aecd059405a86df4a3ade7bcb308f8120
74b7b045f17fe52bd02e99c0e25b8e0b4ac3f3a6
refs/heads/master
2022-12-21T14:05:28.882803
2020-09-28T17:03:55
2020-09-28T17:03:55
292,274,874
1
0
null
null
null
null
UTF-8
Python
false
false
1,924
py
import pandas as pd import numpy as np import matplotlib.pyplot as plt dataset = pd.read_csv('Position_Salaries.csv') X = dataset.iloc[: , 1:-1].values y = dataset.iloc[: , -1].values # training the linear regression model on the whole dataset from sklearn.linear_model import LinearRegression lin_reg = LinearRegres...
[ "pratyakshgupta7@gmail.com" ]
pratyakshgupta7@gmail.com
079ded3be59ad28e3f6743e307ba309423d27dcd
87cfb3d137853d91faf4c1c5f6e34a4e4a5206d9
/src/zojax/cssregistry/tests.py
41aa3e1e8e541b96a69a0706d39bde5e7b101372
[ "ZPL-2.1" ]
permissive
Zojax/zojax.cssregistry
cea24579ef73f7ea2cec9c8b95671a5eeec0ce8f
688f4ecb7556935997bbe4c09713bf57ef7be617
refs/heads/master
2021-01-10T21:06:12.664527
2011-12-16T07:15:04
2011-12-16T07:15:04
2,034,954
0
0
null
null
null
null
UTF-8
Python
false
false
1,368
py
############################################################################## # # Copyright (c) 2009 Zope Foundation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THIS SOF...
[ "andrey.fedoseev@gmail.com" ]
andrey.fedoseev@gmail.com
2a330c17396ee6d12bfa8513bad002fed30eb3aa
d7016f69993570a1c55974582cda899ff70907ec
/sdk/eventhub/azure-mgmt-eventhub/azure/mgmt/eventhub/v2021_06_01_preview/aio/operations/_configuration_operations.py
983de8a70ad7b726dd2c34712f7c3a4f291083eb
[ "MIT", "LicenseRef-scancode-generic-cla", "LGPL-2.1-or-later" ]
permissive
kurtzeborn/azure-sdk-for-python
51ca636ad26ca51bc0c9e6865332781787e6f882
b23e71b289c71f179b9cf9b8c75b1922833a542a
refs/heads/main
2023-03-21T14:19:50.299852
2023-02-15T13:30:47
2023-02-15T13:30:47
157,927,277
0
0
MIT
2022-07-19T08:05:23
2018-11-16T22:15:30
Python
UTF-8
Python
false
false
12,584
py
# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRe...
[ "noreply@github.com" ]
kurtzeborn.noreply@github.com
07f515eae1a86622a522fa62d427c819d880730d
c8efab9c9f5cc7d6a16d319f839e14b6e5d40c34
/source/All_Solutions/1116.打印零与奇偶数/1116-打印零与奇偶数.py
6ba403369346dcd95a2fdfe939a07dc70c003e60
[ "MIT" ]
permissive
zhangwang0537/LeetCode-Notebook
73e4a4f2c90738dea4a8b77883b6f2c59e02e9c1
1dbd18114ed688ddeaa3ee83181d373dcc1429e5
refs/heads/master
2022-11-13T21:08:20.343562
2020-04-09T03:11:51
2020-04-09T03:11:51
277,572,643
0
0
MIT
2020-07-06T14:59:57
2020-07-06T14:59:56
null
UTF-8
Python
false
false
1,103
py
import threading class ZeroEvenOdd: def __init__(self, n): self.n = n+1 self.Zero=threading.Semaphore(1) self.Even=threading.Semaphore(0) self.Odd=threading.Semaphore(0) # printNumber(x) outputs "x", where x is an integer. def zero(self, printNumber: ...
[ "mzm@mail.dlut.edu.cn" ]
mzm@mail.dlut.edu.cn
c8813dfc6bcc9f3e14517bbb631dad71176f78d9
32eeb97dff5b1bf18cf5be2926b70bb322e5c1bd
/benchmark/wikipedia/testcase/interestallcases/testcase6_011_1.py
f8d2461ccd955bd20d8bbd39508574f42faae36b
[]
no_license
Prefest2018/Prefest
c374d0441d714fb90fca40226fe2875b41cf37fc
ac236987512889e822ea6686c5d2e5b66b295648
refs/heads/master
2021-12-09T19:36:24.554864
2021-12-06T12:46:14
2021-12-06T12:46:14
173,225,161
5
0
null
null
null
null
UTF-8
Python
false
false
8,155
py
#coding=utf-8 import os import subprocess import time import traceback from appium import webdriver from appium.webdriver.common.touch_action import TouchAction from selenium.common.exceptions import NoSuchElementException, WebDriverException desired_caps = { 'platformName' : 'Android', 'deviceName' : 'Android Emulat...
[ "prefest2018@gmail.com" ]
prefest2018@gmail.com
9cbf5b6cf37fb49f49e1452747be65c5d74a5e7b
05887f0f20f3a57c11370021b996d76a56596e5f
/cats/articles/urls.py
ec12a3e5441c566e5a600233b109c2dba9bbd2ea
[]
no_license
kate-ka/cats_backend
11b5102f0e324713a30747d095291dbc9e194c3a
df19f7bfa4d94bf8effdd6f4866012a0a5302b71
refs/heads/master
2020-12-06T16:59:02.713830
2017-10-27T09:51:23
2017-10-27T09:51:23
73,502,091
0
0
null
null
null
null
UTF-8
Python
false
false
340
py
from django.conf.urls import url from rest_framework.urlpatterns import format_suffix_patterns from . views import ArticleList, ArticleDetail urlpatterns = [ url(r'^api-v1/articles/$', ArticleList.as_view()), url(r'^api-v1/articles/(?P<pk>[0-9]+)/$', ArticleDetail.as_view()), ] urlpatterns = format_suffix_pa...
[ "you@example.com" ]
you@example.com
ea1bcc55cfd8b75317e22e14dd2204cfadba8760
413f7768f98f72cef8423c473424d67642f1228f
/examples/10_useful_functions/ex06_enumerate.py
909474c54cfdc5aacf3c864d87b7e09cc6e3b343
[]
no_license
easypythoncode/PyNEng
a7bbf09c5424dcd81796f8836509be90c3b1a752
daaed1777cf5449d5494e5a8471396bbcb027de6
refs/heads/master
2023-03-22T01:21:47.250346
2022-08-29T18:25:13
2022-08-29T18:25:13
228,477,021
0
0
null
null
null
null
UTF-8
Python
false
false
176
py
from pprint import pprint with open("config_r1.txt") as f: for num, line in enumerate(f, 1): if line.startswith("interface"): print(num, line, end="")
[ "58902135+easypythoncode@users.noreply.github.com" ]
58902135+easypythoncode@users.noreply.github.com
7391bab13b498877c272f00e6690ce87243867f1
c85d43dc50c26ea0fa4f81b54fb37460ef6cca8d
/rms/urls.py
e59bd4b9b1b0e2b3f232d4b3be1bab71db14aab9
[]
no_license
yorong/buzzz-web-dev
c48dbc165d0aa3abce07971a2dee0280f9bf1e92
0b74bd1b7cfc7a6a7d61672f930d0bde635b4398
refs/heads/master
2021-08-23T02:38:00.544503
2017-12-02T16:01:31
2017-12-02T16:01:31
112,854,877
0
0
null
2017-12-02T15:50:40
2017-12-02T15:50:39
null
UTF-8
Python
false
false
281
py
from django.conf.urls import url # from django.views.generic.base import RedirectView from rms.views import ( RMSHomeView, RMSStartView, ) urlpatterns = [ url(r'^$', RMSHomeView.as_view(), name='home'), url(r'^start/$', RMSStartView.as_view(), name='start'), ]
[ "ppark9553@gmail.com" ]
ppark9553@gmail.com
af673f23ff715e728cc51363efba47a00d25983a
6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4
/MxNcFpABB68JCxSwA_21.py
c723eb2ea66a70cd882829dbe3acdcb56347c6b0
[]
no_license
daniel-reich/ubiquitous-fiesta
26e80f0082f8589e51d359ce7953117a3da7d38c
9af2700dbe59284f5697e612491499841a6c126f
refs/heads/master
2023-04-05T06:40:37.328213
2021-04-06T20:17:44
2021-04-06T20:17:44
355,318,759
0
0
null
null
null
null
UTF-8
Python
false
false
109
py
def legendre(p, n): sum = 0 i = 1 while n // p**i >= 1: sum += n // p**i i += 1 return sum
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
f2f5bb2c58b64f25edc908f54fe3891a4afcd5f3
ec65636f2f0183c43b1ec2eac343b9aa1fc7c459
/train/abnormal_detection_new/10.8.160.17/sga_shared_pool.py
8a737bdd656b80792eacc2ff1661d95aec78865d
[]
no_license
tyroarchitect/AIOPs
db5441e5180fcace77b2d1022adb53bbd0b11f23
46fe93329a1847efa70e5b73bcbfd54469645cdd
refs/heads/master
2020-04-16T13:45:02.963404
2018-11-15T06:50:57
2018-11-15T06:51:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,202
py
import tensorflow as tf import numpy as np import pandas as pd import matplotlib.pyplot as plt # settings of lstm model timesteps = 20 batch_size = 64 epochs = 5 lstm_size = 30 lstm_layers = 2 filename = "../../../datasets/1-10.8.160.17_20181027_20181109.csv" model = "../../../model/abnormal_detection_model_new/10.8...
[ "873869027@qq.com" ]
873869027@qq.com
a0b89519a21414737b9664285aa3073dcc619318
9ab48ad4a8daf4cab1cdf592bac722b096edd004
/genutility/fingerprinting.py
b20ca97a8ec9dc1a95e9d6192a517f13f01cf58d
[ "ISC" ]
permissive
Dobatymo/genutility
c902c9b2df8ca615b7b67681f505779a2667b794
857fad80f4235bda645e29abbc14f6e94072403b
refs/heads/master
2023-08-16T18:07:23.651000
2023-08-15T19:05:46
2023-08-15T19:05:46
202,296,877
4
1
ISC
2022-06-14T01:39:53
2019-08-14T07:22:23
Python
UTF-8
Python
false
false
4,528
py
import logging import numpy as np from PIL import Image, ImageFilter # from .numba import opjit from .numpy import rgb_to_hsi, rgb_to_ycbcr, unblock # fingerprinting aka perceptual hashing def phash_antijpeg(image: Image.Image) -> np.ndarray: """Source: An Anti-JPEG Compression Image Perceptual Hashing Algorit...
[ "dobatymo@users.noreply.github.com" ]
dobatymo@users.noreply.github.com
df66074ddd9a427cb855cccb45608dba94bd3f97
2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae
/python/python_3294.py
5e9ea46918a4f4b675a7c226efb96d67ef2616ba
[]
no_license
AK-1121/code_extraction
cc812b6832b112e3ffcc2bb7eb4237fd85c88c01
5297a4a3aab3bb37efa24a89636935da04a1f8b6
refs/heads/master
2020-05-23T08:04:11.789141
2015-10-22T19:19:40
2015-10-22T19:19:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
88
py
# Piecewise list comprehensions in python [50 if hasProperty(x) else 10 for x in alist]
[ "ubuntu@ip-172-31-7-228.us-west-2.compute.internal" ]
ubuntu@ip-172-31-7-228.us-west-2.compute.internal
b7ed771c6a32261aa34a41a784151e1f35e36ea8
01ede4fc2497943cdf64211457338838cca97997
/DatasetManager/DatasetManager/arrangement/arrangement_statistics.py
f18a60997a7ab7ca3a83dee4b298d13b2924e591
[]
no_license
qsdfo/orchestration_aws
e317cb55a39789ad270410ba886a42f67e5ce81b
10ebb1752680b03e88fd08ca0a80e55b1269e8a1
refs/heads/master
2021-05-18T03:19:49.562863
2020-07-10T10:06:24
2020-07-10T10:06:24
251,080,622
0
0
null
null
null
null
UTF-8
Python
false
false
8,588
py
import copy import csv import os import shutil from DatasetManager.arrangement.instrument_grouping import get_instrument_grouping from DatasetManager.config import get_config from DatasetManager.arrangement.arrangement_helper import ArrangementIteratorGenerator, note_to_midiPitch, \ separate_instruments_names, Orc...
[ "crestel.leopold@gmail.com" ]
crestel.leopold@gmail.com
550b55101c715dd350fa5cd27249306a0f72db95
aea7bbe854591f493f4a37919eb75dde7f2eb2ca
/startCamp/03_day/flask/intro/function.py
f11de57476cf04f3c28b5c8018c3382bdd7abb9c
[]
no_license
GaYoung87/StartCamp
6e31a50d3037174b08a17114e467989520bb9a86
231b1fd0e245acb5d4570778aa41de79d6ad4b17
refs/heads/master
2020-06-17T11:52:38.256085
2019-07-12T01:14:47
2019-07-12T01:14:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
167
py
# sum이라는 함수를 정의 def sum(num1, num2): # 숫자 num1, num2라는 인자를 받는 함수 return num1 + num2 result = sum(5, 6) print(result)
[ "gyyoon4u@naver.com" ]
gyyoon4u@naver.com
5a2524a0bd81ae136a6c230538fb8c7985d95562
09e57dd1374713f06b70d7b37a580130d9bbab0d
/data/p3BR/R2/benchmark/startCirq330.py
74d7d9238c53332a3cb7ad0438bb8c452fc6d169
[ "BSD-3-Clause" ]
permissive
UCLA-SEAL/QDiff
ad53650034897abb5941e74539e3aee8edb600ab
d968cbc47fe926b7f88b4adf10490f1edd6f8819
refs/heads/main
2023-08-05T04:52:24.961998
2021-09-19T02:56:16
2021-09-19T02:56:16
405,159,939
2
0
null
null
null
null
UTF-8
Python
false
false
4,271
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 5/15/20 4:49 PM # @File : grover.py # qubit number=3 # total number=66 import cirq import cirq.google as cg from typing import Optional import sys from math import log2 import numpy as np #thatsNoCode from cirq.contrib.svg import SVGCircuit # Symbols for...
[ "wangjiyuan123@yeah.net" ]
wangjiyuan123@yeah.net
7354bef465760c7821f2382d875c71a979be9fd7
332cceb4210ff9a5d99d2f3a65a704147edd01a2
/justext/utils.py
42e5074ec56396d742d4234e9106a0655e9de958
[]
permissive
miso-belica/jusText
16e5befcb449d3939ce62dc3460afbc768bd07cc
22a59079ea691d67e2383039cf5b40d490420115
refs/heads/main
2023-08-30T03:48:27.225553
2023-01-24T08:45:58
2023-01-24T08:45:58
8,121,947
527
70
BSD-2-Clause
2022-05-04T06:11:47
2013-02-10T11:42:20
Python
UTF-8
Python
false
false
1,965
py
# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division, print_function, unicode_literals import re import os import sys import pkgutil MULTIPLE_WHITESPACE_PATTERN = re.compile(r"\s+", re.UNICODE) def normalize_whitespace(text): """ Translates multiple whitespace into...
[ "miso.belica@gmail.com" ]
miso.belica@gmail.com
8e17f0a7737a188114983caa8fd0c1b8ec4af73e
ad6c519f356c0c49eb004084b12b5f08e3cd2e9e
/contrib/compile_po_files.py
1456bab6925d5b04a85ff3269ef94c187c334a03
[ "MIT" ]
permissive
csilvers/kake
1a773e7c2232ea243be256bb5e6bd92e0189db9d
51465b12d267a629dd61778918d83a2a134ec3b2
refs/heads/master
2021-05-05T23:07:40.425063
2019-01-23T23:35:48
2019-01-23T23:35:48
116,594,798
0
0
MIT
2019-01-23T23:19:17
2018-01-07T19:59:09
Python
UTF-8
Python
false
false
17,080
py
# TODO(colin): fix these lint errors (http://pep8.readthedocs.io/en/release-1.7.x/intro.html#error-codes) # pep8-disable:E128 """Converts translation (.po) files to the format we use internally. Most people convert .po files to .mo files and use the standard library gettext module to use the translation data. But not...
[ "csilvers@khanacademy.org" ]
csilvers@khanacademy.org
e42abe3c8e78b1c9969be47b78657894ae274870
351fa4edb6e904ff1ac83c6a790deaa7676be452
/graphs/graphUtil/graphAdjMat.py
a8211d8ac10c6c16d87eb91ba14de7aa24570e2a
[ "MIT" ]
permissive
shahbagdadi/py-algo-n-ds
42981a61631e1a9af7d5ac73bdc894ac0c2a1586
f3026631cd9f3c543250ef1e2cfdf2726e0526b8
refs/heads/master
2022-11-27T19:13:47.348893
2022-11-14T21:58:51
2022-11-14T21:58:51
246,944,662
0
0
null
null
null
null
UTF-8
Python
false
false
1,664
py
from typing import List from collections import deque from collections import defaultdict # A class to represent a graph. A graph # is the list of the adjacency Matrix. # Size of the array will be the no. of the # vertices "V" class Graph: def __init__(self, vertices, directed=True): self.V = vertices ...
[ "email.shanu@gmail.com" ]
email.shanu@gmail.com
1326a2e287de4aba98c8281869940dc914c7ec24
7db575150995965b0578f3b7c68567e07f5317b7
/tr2/models/transformer.py
f3799d94287770125fd19476f059cc6c49ce70a5
[]
no_license
anhdhbn/thesis-tr2
b14049cc3de517cdd9205239e4cf3d225d168e85
7a74bb1228f5493b37934f38a8d3e1ab5328fc3c
refs/heads/master
2023-03-27T21:51:57.763495
2021-02-26T12:51:20
2021-02-26T12:51:20
338,924,981
0
0
null
null
null
null
UTF-8
Python
false
false
4,876
py
import torch import torch.nn as nn from torch import Tensor from tr2.models.encoder import TransformerEncoder, TransformerEncoderLayer from tr2.models.decoder import TransformerDecoder, TransformerDecoderLayer class Transformer(nn.Module): def __init__(self, hidden_dims=512, num_h...
[ "anhdhbn@gmail.com" ]
anhdhbn@gmail.com
70b347db5fcd769831550b3fecad4822d3c19ea2
fe9573bad2f6452ad3e2e64539361b8bc92c1030
/Socket_programming/TLS_server.py
846eac13cb9e9873d922eb3e035275be919fb72a
[]
no_license
OceanicSix/Python_program
e74c593e2e360ae22a52371af6514fcad0e8f41f
2716646ce02db00306b475bad97105b260b6cd75
refs/heads/master
2022-01-25T16:59:31.212507
2022-01-09T02:01:58
2022-01-09T02:01:58
149,686,276
1
2
null
null
null
null
UTF-8
Python
false
false
1,090
py
#!/usr/bin/python3 import socket, ssl, pprint html = """ HTTP/1.1 200 OK\r\nContent-Type: text/html\r\n\r\n <!DOCTYPE html><html><body><h1>This is Bank32.com!</h1></body></html> """ SERVER_CERT = './certs/mycert.crt' SERVER_PRIVATE = './certs/mycert.key' # context = ssl.SSLContext(ssl.PROTOCOL_TLS_SERVER) # For Ubu...
[ "byan0007@student.monash.edu" ]
byan0007@student.monash.edu
8f5307ec6a941ac8d84d56f251ad4dbd6cccadd2
d362a983e055984c588ee81c66ba17d536bae2f5
/backend/agent/migrations/0003_beautician.py
50fc77458670228cbb0dd38577ad9635cf06145d
[]
no_license
prrraveen/Big-Stylist-CRM
1d770b5ad28f342dfc5d40002ddc3ee7cc6f840a
6cd84ce7b01a49a09b844c27ecc4575dcca54393
refs/heads/master
2021-01-10T04:37:43.414844
2015-12-15T10:47:21
2015-12-15T10:47:21
49,239,402
1
0
null
null
null
null
UTF-8
Python
false
false
2,057
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('agent', '0002_service'), ] operations = [ migrations.CreateModel( name='Beautician', fields=[ ...
[ "prrraveen@gmail.com" ]
prrraveen@gmail.com
5c1167fe99ba3fb29255afa69fa05a2a94c03178
6c2d219dec81b75ac1aef7f96f4e072ed7562f81
/scenes/siteVogov.py
2501bf763ea4538e32f964cf4d904cf6f7aeb93f
[]
no_license
SFTEAM/scrapers
7e2b0a159cb19907017216c16a976d630d883ba5
778f282bf1b6954aa06d265fdb6f2ecc2e3c8e47
refs/heads/main
2023-08-15T18:21:41.922378
2021-09-24T22:24:29
2021-09-24T22:24:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,781
py
import re import scrapy from tpdb.BaseSceneScraper import BaseSceneScraper class VogovSpider(BaseSceneScraper): name = 'Vogov' network = 'Vogov' parent = 'Vogov' site = 'Vogov' start_urls = [ 'https://vogov.com' ] selector_map = { 'title': '//meta[@property="og:title"]/@...
[ "briadin@yahoo.com" ]
briadin@yahoo.com
5e7f226554ea2fb5c3ea365c54d0f77bb1955e6d
180dc578d12fff056fce1ef8bd1ba5c227f82afc
/tensorflow_models/__init__.py
18eea8c6304e418deeb1b34e45a57fd437c81079
[ "Apache-2.0" ]
permissive
jianzhnie/models
6cb96c873d7d251db17afac7144c4dbb84d4f1d6
d3507b550a3ade40cade60a79eb5b8978b56c7ae
refs/heads/master
2023-07-12T05:08:23.314636
2023-06-27T07:54:20
2023-06-27T07:54:20
281,858,258
2
0
Apache-2.0
2022-03-27T12:53:44
2020-07-23T05:22:33
Python
UTF-8
Python
false
false
909
py
# Copyright 2023 The TensorFlow Authors. All Rights Reserved. # # 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 applica...
[ "gardener@tensorflow.org" ]
gardener@tensorflow.org
14bc7b551cf26a394151530e590ccdb32e250759
09e57dd1374713f06b70d7b37a580130d9bbab0d
/benchmark/startPyquil2701.py
b7aa787a468a8dbc6e74cfb46597078a617fc507
[ "BSD-3-Clause" ]
permissive
UCLA-SEAL/QDiff
ad53650034897abb5941e74539e3aee8edb600ab
d968cbc47fe926b7f88b4adf10490f1edd6f8819
refs/heads/main
2023-08-05T04:52:24.961998
2021-09-19T02:56:16
2021-09-19T02:56:16
405,159,939
2
0
null
null
null
null
UTF-8
Python
false
false
1,864
py
# qubit number=4 # total number=41 import pyquil from pyquil.api import local_forest_runtime, QVMConnection from pyquil import Program, get_qc from pyquil.gates import * import numpy as np conn = QVMConnection() def make_circuit()-> Program: prog = Program() # circuit begin prog += H(3) # number=32 prog...
[ "wangjiyuan123@yeah.net" ]
wangjiyuan123@yeah.net
3811c8ded3c52d3c4297b523a72aef17f3e5b4ff
fe8bd31a416d7217c8b95d2ebf36158fdc0412de
/revscoring/languages/__init__.py
8076663b037c06ed1909940273411b71a9b88537
[ "MIT" ]
permissive
nealmcb/revscoring
f0020a9009e584a0f59576adcdd16eadae21ee06
e5c889093c4f49443d12193a2da725065c87e6d6
refs/heads/master
2021-01-11T11:32:10.684223
2015-10-21T22:34:56
2015-10-21T22:34:56
44,418,672
0
0
null
2015-10-17T01:16:45
2015-10-17T01:16:45
null
UTF-8
Python
false
false
788
py
""" This module implements a set of :class:`revscoring.Language` -- collections of features that are language specific. languages +++++++++ .. automodule:: revscoring.languages.english .. automodule:: revscoring.languages.french .. automodule:: revscoring.languages.hebrew .. automodule:: revscoring.languages.indone...
[ "aaron.halfaker@gmail.com" ]
aaron.halfaker@gmail.com
9f837590386b08c2bb7b840886d6c4846297c5db
9130bdbd90b7a70ac4ae491ddd0d6564c1c733e0
/venv/lib/python3.8/site-packages/virtualenv/create/via_global_ref/builtin/python2/python2.py
6caf7949dd60cf3fde3fad0f2252a25efd921e37
[]
no_license
baruwaa12/Projects
6ca92561fb440c63eb48c9d1114b3fc8fa43f593
0d9a7b833f24729095308332b28c1cde63e9414d
refs/heads/main
2022-10-21T14:13:47.551218
2022-10-09T11:03:49
2022-10-09T11:03:49
160,078,601
0
0
null
null
null
null
UTF-8
Python
false
false
96
py
/home/runner/.cache/pip/pool/8e/42/70/9a4789553cf0ce8f7978c229b537dd040faa9b222a65ca6de3c88e8ad5
[ "45532744+baruwaa12@users.noreply.github.com" ]
45532744+baruwaa12@users.noreply.github.com
7e3edaadd3fc130cc391da1bfd5cd75125fbd91d
78b7a0f04a92499d7c7479d22a6d6ed0494f51d4
/doc/future_bottumup.py
2f3208851514d1180279d9e67312187043ba02fe
[]
no_license
duchesnay/pylearn-epac
5a6df8a68dc121ed6f87720250f24d927d553a04
70b0a85b7614b722ce40c506dfcb2e0c7dca8027
refs/heads/master
2021-01-21T00:16:09.693568
2013-07-23T10:21:56
2013-07-23T10:21:56
6,781,768
2
0
null
null
null
null
UTF-8
Python
false
false
7,240
py
# -*- coding: utf-8 -*- """ Created on Thu May 23 15:21:35 2013 @author: ed203246 """ from sklearn import datasets from sklearn.svm import SVC from sklearn.lda import LDA from sklearn.feature_selection import SelectKBest X, y = datasets.make_classification(n_samples=12, n_features=10, ...
[ "edouard.duchesnay@gmail.com" ]
edouard.duchesnay@gmail.com
2f6e31622147ccd5f16a2b68f420e3f8bf6471a0
c9c4536cebddfc3cc20f43084ccdb2ce1320b7e6
/experiments/utils.py
dfdf83bd5f97232f940217ba09e8103c9311d9a1
[ "MIT" ]
permissive
jdc08161063/gym-miniworld
adaf03db39fc47b88dfc5faa4f3f9e926c7f25ca
4e96db30cb574c6e0eb5db33e83c68a979094a7f
refs/heads/master
2020-04-06T17:06:23.350527
2018-11-14T19:47:17
2018-11-14T19:47:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,863
py
from functools import reduce import operator import numpy as np import torch import torch.nn as nn import torch.nn.functional as F import torch.optim as optim from torch.autograd import Variable class Print(nn.Module): """ Layer that prints the size of its input. Used to debug nn.Sequential """ ...
[ "maximechevalierb@gmail.com" ]
maximechevalierb@gmail.com
127d350e935ff500677c170ab861f0343b28e635
e7b312b4cc3355f4ca98313ef2ac9f3b0d81f245
/abc/229/g/g.TLE.py
756dc1a784847d74805a2326514ab64db4f673f6
[]
no_license
minus9d/programming_contest_archive
75466ab820e45ee0fcd829e6fac8ebc2accbbcff
0cb9e709f40460305635ae4d46c8ddec1e86455e
refs/heads/master
2023-02-16T18:08:42.579335
2023-02-11T14:10:49
2023-02-11T14:10:49
21,788,942
0
0
null
null
null
null
UTF-8
Python
false
false
1,868
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ 類題 https://tutorialspoint.com/program-to-find (YをN個連続させるのに必要な最小スワップ回数を求める) を見つけたので、これを使って二分探索で解こうとしたが、TLE 類題のコードは理解していない https://twitter.com/kyopro_friends/status/1464593018451750919 を参考にとき直すこと """ import array from bisect import * from collections imp...
[ "minus9d@gmail.com" ]
minus9d@gmail.com
67d1f7cd8d7bbddc37fe4bfd3e34c2c84521cfa4
5a8f9d8d1cc47ae83546b0e11279b1d891798435
/enumerate_reversible.py
fcce362a8588dd9d6a470e2f099a5cfab00ea31f
[ "MIT" ]
permissive
cjrh/enumerate_reversible
d81af841129adbad3a3d69a4955bfba202a174c7
d67044c78c1214c8749b60227d5c170d8c327770
refs/heads/master
2021-05-21T08:16:31.660568
2021-05-03T04:05:15
2021-05-03T04:05:15
252,613,686
0
0
MIT
2021-05-03T04:05:15
2020-04-03T02:27:01
Python
UTF-8
Python
false
false
438
py
original_enumerate = enumerate def enumerate(iterable, start=0): class Inner: def __iter__(self): yield from original_enumerate(iterable, start=start or 0) def __reversed__(self): stt = start or 0 rev = reversed(iterable) # First, for accurate exception msg ...
[ "caleb.hattingh@gmail.com" ]
caleb.hattingh@gmail.com
c2ad359b688548a3549a051c298426f0191150a1
492d3e666b87eff971628a74fe13facde01e2949
/htmlcov/_python_Django_My Projects_student-portal_Lib_site-packages_PIL_Jpeg2KImagePlugin_py.html.py
b8330d31117b1128e355617407fbf98b05fbbbd7
[]
no_license
OmarFateh/Student-Portal
42050da15327aa01944dc79b5e00ca34deb51531
167ffd3a4183529c0cbc5db4ab232026711ea915
refs/heads/master
2023-06-13T01:03:16.475588
2021-07-08T11:09:09
2021-07-08T11:09:09
382,895,837
0
0
null
null
null
null
UTF-8
Python
false
false
91,097
py
XXXXXXXXX XXXXX XXXXXX XXXXXX XXXXX XXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXX XXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXX XX XXXXXXXXXXXXXXX XXX XXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXX XXXXX XXXXXXXXXX X...
[ "66747309+OmarFateh@users.noreply.github.com" ]
66747309+OmarFateh@users.noreply.github.com
2b9e188a0d339e9e9ab6c6f43ca76d30a7100206
ca446c7e21cd1fb47a787a534fe308203196ef0d
/tests/graph/test_statement.py
4835355ef9be96cbb32485a349d98a91c0e3b83d
[ "MIT" ]
permissive
critocrito/followthemoney
1a37c277408af504a5c799714e53e0f0bd709f68
bcad19aedc3b193862018a3013a66869e115edff
refs/heads/master
2020-06-12T09:56:13.867937
2019-06-28T08:23:54
2019-06-28T08:23:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,279
py
# from nose.tools import assert_raises from unittest import TestCase from followthemoney import model from followthemoney.types import registry from followthemoney.graph import Statement, Node ENTITY = { 'id': 'test', 'schema': 'Person', 'properties': { 'name': 'Ralph Tester', 'birthDate':...
[ "friedrich@pudo.org" ]
friedrich@pudo.org
2d7d3d140684312694eeceace7b7556b9773c49c
2e22d14109f41ec84554a7994cd850619d73dc4d
/core/socketserver.py
acbb6e93f7ec0b453e50d8a8c82c25425d367983
[ "MIT" ]
permissive
magus0219/clockwork
35cefeac77e68c1b5e12ab275b7fde18fd07edfc
78c08afdd14f226d7f5c13af633d41a2185ebb7f
refs/heads/master
2021-01-10T07:49:09.539766
2015-09-28T08:17:46
2015-09-28T08:17:46
43,036,160
0
0
null
null
null
null
UTF-8
Python
false
false
4,035
py
# coding:utf-8 ''' Created on Feb 17, 2014 @author: magus0219 ''' import socket, logging, threading, pickle from core.command import Command def recv_until(socket, suffix): ''' Receive message suffixed with specified char @param socket:socket @param suffix:suffix ''' message = '' w...
[ "magus0219@gmail.com" ]
magus0219@gmail.com
d3c54bcbc564892dfd88c419f85921faa603d6a6
a6610e191090e216b0e0f23018cecc5181400a7a
/robotframework-ls/tests/robotframework_ls_tests/test_code_analysis.py
dd34aae67913ad1d119eaee83156b557a906088b
[ "Apache-2.0" ]
permissive
JohanMabille/robotframework-lsp
d7c4c00157dd7c12ab15b7125691f7052f77427c
610f0257fdcd79b8c38107a0ecf600f60160bc1f
refs/heads/master
2023-01-19T10:29:48.982578
2020-11-25T13:46:22
2020-11-25T13:46:22
296,245,093
0
0
NOASSERTION
2020-09-17T06:58:54
2020-09-17T06:58:53
null
UTF-8
Python
false
false
5,420
py
def _collect_errors(workspace, doc, data_regression, basename=None, config=None): from robotframework_ls.impl.completion_context import CompletionContext from robotframework_ls.impl.code_analysis import collect_analysis_errors completion_context = CompletionContext(doc, workspace=workspace.ws, config=confi...
[ "fabiofz@gmail.com" ]
fabiofz@gmail.com
9ddff1fa09a2a5c49b82729b44d4140b40e1fa55
cbdbb05b91a4463639deefd44169d564773cd1fb
/djangoproj/pos/invoices/migrations/0011_auto_20150718_0908.py
d24848402c8400bd25b51f8bef05d5d93aff8b99
[]
no_license
blazprog/py3
e26ef36a485809334b1d5a1688777b12730ebf39
e15659e5d5a8ced617283f096e82135dc32a8df1
refs/heads/master
2020-03-19T20:55:22.304074
2018-06-11T12:25:18
2018-06-11T12:25:18
136,922,662
0
0
null
null
null
null
UTF-8
Python
false
false
684
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('invoices', '0010_artikel_davek'), ] operations = [ migrations.AddField( model_name='racunpozicija', ...
[ "blaz.korosec@mentis.si" ]
blaz.korosec@mentis.si
5416209788d81dbbb8263cbf9614f1608d323758
03bf031efc1f171f0bb3cf8a565d7199ff073f96
/utils/admin.py
ad5b99e1ae02e5c6358ca6949bc8b89a84e33e2a
[ "MIT" ]
permissive
emilps/onlineweb4
a213175678ac76b1fbede9b0897c538c435a97e2
6f4aca2a4522698366ecdc6ab63c807ce5df2a96
refs/heads/develop
2020-03-30T01:11:46.941170
2019-05-10T19:49:21
2019-05-10T19:49:21
150,564,330
0
0
MIT
2019-05-10T19:49:22
2018-09-27T09:43:32
Python
UTF-8
Python
false
false
802
py
from django.contrib import admin class DepositWithdrawalFilter(admin.SimpleListFilter): """ A simple filter to select deposits, withdrawals or empty transactions """ title = 'Transaction type' parameter_name = 'amount' def lookups(self, request, model_admin): """ Tuples with ...
[ "hlsolbjorg@gmail.com" ]
hlsolbjorg@gmail.com
c6de3f7935b22b0bd74ab9d330cc17353d8e8d40
fa53fb89ca8c822acdd2f843073c36e30168edf8
/manage.py
5102e0b5c62daefba1742c6dbaae769d93ffa7d3
[]
no_license
njokuifeanyigerald/honeypot-django
6aab38c74a599bd70e27768edddd9609f59f7810
1065dee3ce160cfffdd52088c6a9cc4faaabd0b9
refs/heads/master
2022-04-14T19:02:18.426331
2020-04-14T11:04:47
2020-04-14T11:04:47
255,585,678
0
0
null
null
null
null
UTF-8
Python
false
false
631
py
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'honeypotapp.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: raise Im...
[ "brainboyrichmond@gmail.com" ]
brainboyrichmond@gmail.com
12ada9555cc15be06cd931a4408c0bd361b6eb02
caf8cbcafd448a301997770165b323438d119f5e
/.history/chapter01/python_05_if_condition_20201128214052.py
9ee4357bc39e5526dabfbdaecafa8175ebd0349b
[ "MIT" ]
permissive
KustomApe/nerdape
03e0691f675f13ce2aefa46ee230111247e90c72
aef6fb2d1f8c364b26d91bf8570b4487a24de69a
refs/heads/main
2023-01-23T10:13:26.584386
2020-11-28T22:29:49
2020-11-28T22:29:49
309,897,105
0
0
null
null
null
null
UTF-8
Python
false
false
977
py
"""[if文について] もし〜だったら、こうして """ # if 条件: # 実行するブロック # 条件によって処理を適応したい場合 # 3000kmごとにオイル交換しないといけない distance = 3403 # if distance > 3000: # print('オイル交換時期です') total = 123200 average = total / 3 print(average) if average > 3000: print('オイル交換時期ですよ!') # 文字列を比較する/リストを比較する # if 'abc' == "ABC": # print('同類です') ...
[ "kustomape@gmail.com" ]
kustomape@gmail.com
e68d1c40e9032cb0617ca2a03de48c33736f012f
9bd1daa53a7e5d65d4f7a3558f11d06006ecb000
/conditioner/tests/actions/factories.py
f744f19bb34a5f1c829d51e2f8696013d030116f
[ "MIT" ]
permissive
pombredanne/django-conditioner
55b01ac8e42a8e2c73025934c39aa72ee478c333
d5d2ad1f016bc3e6b34c74ff68cd024e8fad5125
refs/heads/master
2020-09-25T21:16:29.274170
2017-03-17T08:34:00
2017-03-17T08:34:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
988
py
""" Conditioner module actions related factories """ import random import factory from faker import Factory as FakerFactory from conditioner.actions import LoggerAction, SendTemplatedEmailAction from conditioner.tests.factories import BaseActionFactory faker = FakerFactory.create() class LoggerActionFactory(BaseA...
[ "pawel.ad@gmail.com" ]
pawel.ad@gmail.com
46b9c87173a3e66d65c3f277092f5263a0cc669f
b7ae24b0dd67a7fafbf0253f24c80924df88da62
/lab/__init__.py
626fd8575bd86bfeacf23439331383cd0297afc2
[ "MIT" ]
permissive
gear/lab
b3a2b1e5babc1adb172f842651e4db5d20939a16
ad1c5838acbcc98abb5d5d93d5c7a6c2b74bdfa2
refs/heads/master
2020-12-19T01:30:33.478027
2020-01-23T10:30:52
2020-01-23T10:30:52
235,579,450
0
0
MIT
2020-01-22T13:29:16
2020-01-22T13:29:15
null
UTF-8
Python
false
false
28
py
import lab.logger as logger
[ "vpjayasiri@gmail.com" ]
vpjayasiri@gmail.com
1129328bacebf961f72d0c0b6cf180bcc0d9483c
ee6fb9095faef4c88848f5f769b296f672d37cd0
/photomosaic/imgutils.py
791cb03f378176e1dbb5c88b361c085704f9beeb
[]
no_license
cosmozhang1995/photo-mosaic
76ca2846db0eefd6d7ded117fec1b2ac06e823ea
f5c57a9765887aeeb65804c5597727646b945814
refs/heads/master
2022-07-10T14:13:10.605884
2020-02-14T08:51:08
2020-02-14T08:51:08
240,463,724
0
0
null
2022-06-22T01:05:54
2020-02-14T08:41:38
Python
UTF-8
Python
false
false
600
py
import cv2 import numpy as np def resize_cut(srcimg, dstsize): dstheight, dstwidth = dstsize img = srcimg imgheight, imgwidth = img.shape[:2] sc = max(dstheight/imgheight, dstwidth/imgwidth) imgsize = (int(np.ceil(imgheight*sc)), int(np.ceil(imgwidth*sc))) img = cv2.resize(img, (imgsize[1], imgsize[0])) imgheig...
[ "cosmozhang1995@gmail.com" ]
cosmozhang1995@gmail.com
b4ffb6e7aa7720bf94408c4205e0d631a33ccac7
c7d7bafdff29a9e0f91bec25e88b8db1b6694643
/firebot/modules/mf.py
37002a949a6c8212931fce04e72ad19042a64323
[ "MIT" ]
permissive
ultra-noob/Vivek-UserBot
ebedb80d98ca72fe1167211c14e32c017fcdf903
6c371a4aaa0c05397efa36237e9a2118deeb0d91
refs/heads/main
2023-07-11T16:52:37.696359
2021-08-11T03:38:15
2021-08-11T03:38:15
394,882,145
0
1
null
2021-08-11T06:11:45
2021-08-11T06:11:45
null
UTF-8
Python
false
false
2,724
py
import sys from telethon import __version__, functions from firebot import CMD_HELP from firebot.utils import fire_on_cmd @fire.on(fire_on_cmd(pattern="mf ?(.*)", allow_sudo=True)) # pylint:disable=E0602 async def _(event): if event.fwd_from: return splugin_name = event.pattern_match.group(1) i...
[ "noreply@github.com" ]
ultra-noob.noreply@github.com
98ad144923dfcbae14b423be115a14fbb1c611c4
150464efa69db3abf328ef8cd912e8e248c633e6
/_4.python/__code/Pythoneer-master/Jumbled Word/Jumbled(withouttkinter).py
7211039e1c6397134008308e8017b3165e1a9494
[]
no_license
bunshue/vcs
2d194906b7e8c077f813b02f2edc70c4b197ab2b
d9a994e3afbb9ea84cc01284934c39860fea1061
refs/heads/master
2023-08-23T22:53:08.303457
2023-08-23T13:02:34
2023-08-23T13:02:34
127,182,360
6
3
null
2023-05-22T21:33:09
2018-03-28T18:33:23
C#
UTF-8
Python
false
false
1,397
py
import os import sys from collections import defaultdict print " "; print "................................Jumbled ......................................"; print "NOTE : Please make sure, you enter all the letters necessary to make the word!"; print " "; print " "; word = input("Enter the word: ") print " "; #word = s...
[ "david@insighteyes.com" ]
david@insighteyes.com
6545749e1fcb37b005fd8a17f1fe2d41493c78ba
c36679186f669c6e3bd1c106c96d4a17be1f5ab1
/Ashraf/2.2.py
82910eaba95d405311c4da597335040cd6ff75a0
[]
no_license
touhiduzzaman-tuhin/python-code-university-life
60a3d671b200a6f5222c6d176c13c5f20f013509
6d2e3d90d430faa5c83fe79e7fb1ebe516994762
refs/heads/master
2023-03-22T15:18:10.636203
2021-03-06T18:52:04
2021-03-06T18:52:04
332,467,190
0
0
null
null
null
null
UTF-8
Python
false
false
56
py
x = int(input()) y = int(input()) z = x - y print(z)
[ "touhiduzzamantuhin95@gmail.com" ]
touhiduzzamantuhin95@gmail.com
7e6c1f50001acdca960cd972aca451db26803155
68ea05d0d276441cb2d1e39c620d5991e0211b94
/1940.py
a6e8f345cdc993bcae8b3a828ab9b0865b506f3b
[]
no_license
mcavalca/uri-python
286bc43aa157d3a6880dc222e0136c80cf079565
e22875d2609fe7e215f9f3ed3ca73a1bc2cf67be
refs/heads/master
2021-11-23T08:35:17.614443
2021-10-05T13:26:03
2021-10-05T13:26:03
131,339,175
50
27
null
2021-11-22T12:21:59
2018-04-27T19:54:09
Python
UTF-8
Python
false
false
236
py
j, r = [int(x) for x in input().split()] entrada = list(map(int, input().split())) pontos = [0] * j for k in range(j): pontos[k] = sum(entrada[k::j]) pontos = pontos[::-1] vencedor = j - pontos.index(max(pontos)) print(vencedor)
[ "m.cavalca@hotmail.com" ]
m.cavalca@hotmail.com
6a26301089da81a8e292227e32da92a3e05f82e2
f7d343efc7b48818cac4cf9b98423b77345a0067
/training/Permutations.py
10acfdf1568289dd3b55bcf473e76239ead669a4
[]
no_license
vijaymaddukuri/python_repo
70e0e24d0554c9fac50c5bdd85da3e15c6f64e65
93dd6d14ae4b0856aa7c6f059904cc1f13800e5f
refs/heads/master
2023-06-06T02:55:10.393125
2021-06-25T16:41:52
2021-06-25T16:41:52
151,547,280
0
1
null
null
null
null
UTF-8
Python
false
false
845
py
def permutations1(string): def factorial(n): fact=1 for i in range(1,n+1): fact=fact*i return fact repeat=len(string)-len(''.join(set(string))) n=factorial(len(string)) k=factorial(repeat) loop=n/(k**repeat) final=[] j=0 for i in range(loop): i...
[ "Vijay.Maddukuri@virtustream.com" ]
Vijay.Maddukuri@virtustream.com
e48b80cea00aad77f599556a86f3688235cc9a93
6cfa568e2012dde5c86265226b0dd3a49849c7f7
/website_sale_booking/__openerp__.py
6573e2e4ae8e491f0af198340e85248ca9f2cfc3
[]
no_license
arinno/odoo-website-sale-booking
c48771ee30dc8791656a7a9d75efa14fe07f88bc
dd2e45873e64ad0f5bdd24a23d905b70702cd85a
refs/heads/master
2021-01-09T06:23:01.904899
2017-02-05T07:10:21
2017-02-05T07:10:21
80,975,669
0
0
null
2017-02-05T07:06:24
2017-02-05T07:06:24
null
UTF-8
Python
false
false
425
py
{ 'name': 'Website Booking System', 'category': 'sale', 'description':""" OpenERP Website Booking System view. ========================== """, 'version': '1.0', 'js': [ ], 'css': [ ], 'author': 'Vertel AB', 'website': 'http://www.vertel.se', 'depends': ['website', 'product...
[ "apollo_zhj@msn.com" ]
apollo_zhj@msn.com
883364571d231534b05121da2095291109c936e8
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/adjectives/_handpicked.py
d8b02e24092556f8401358860df23874bd852d2b
[ "MIT" ]
permissive
cash2one/xai
de7adad1758f50dd6786bf0111e71a903f039b64
e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6
refs/heads/master
2021-01-19T12:33:54.964379
2017-01-28T02:00:50
2017-01-28T02:00:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
448
py
#calss header class _HANDPICKED(): def __init__(self,): self.name = "HANDPICKED" self.definitions = [u'Someone who is handpicked has been carefully chosen for a special job or purpose: '] self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.specie = 'adjectives' def r...
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
12752faa8e6f24d7152dd05c131acb18687b7faf
94df6de2ab8eef7d21eaf08f32dd23d380ada52b
/src/generative_playground/models/pg_runner.py
ab4805df09129ee680a0e52f8490c728139b459c
[ "MIT" ]
permissive
iisuslik43/generative_playground
f6a59adb757265e55e7e12c906e9785735042127
3e0d8c137c3a8620461dd1a07fe46c51bb0d97eb
refs/heads/master
2020-09-12T02:00:51.265874
2019-11-18T14:39:04
2019-11-18T14:39:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
10,266
py
import os, inspect from collections import deque import torch.optim as optim from torch.optim import lr_scheduler import torch import gzip, dill, cloudpickle import copy from generative_playground.models.reward_adjuster import adj_reward, AdjustedRewardCalculator from generative_playground.models.temperature_schedule ...
[ "egor.kraev@gmail.com" ]
egor.kraev@gmail.com
e7694b0db2814d86d4fe4e4c05b90604614b2138
91f30c829664ff409177e83776c9f4e2e98d9fc4
/apps/events/migrations/0002_auto_20180607_0411.py
0436f1e6422da2a9e882d0161aa9c56529c7231f
[]
no_license
TotalityHacks/madras
3ac92dc6caf989efcb02590f6474ab333d1f93fa
2395a703eed1a87cca3cdd6c0fb9162b69e8df27
refs/heads/master
2021-08-17T15:29:41.055074
2018-07-18T23:05:29
2018-07-18T23:05:29
105,232,414
4
5
null
2021-03-31T18:58:56
2017-09-29T05:13:41
Python
UTF-8
Python
false
false
581
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.5 on 2018-06-07 04:11 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('events', '0001_initial'), ] operations = [ migrations.AlterField( ...
[ "ezwang1@gmail.com" ]
ezwang1@gmail.com
d4cb34b70a91e2240a08ad427a015525c61d1b39
7f8db5b974a747632729d16c431de7aca007af00
/0x11-python-network_1/8-json_api.py
482167a08bb420f6d28ad7b10c9d98d4c2ec9cbe
[]
no_license
thomasmontoya123/holbertonschool-higher_level_programming
6f5ceb636167efba1e36ed2dee7bf83b458f6751
48b7c9dccac77ccb0f57da1dc1d150f356612b13
refs/heads/master
2020-07-22T22:31:13.744490
2020-02-13T22:54:17
2020-02-13T22:54:17
207,351,235
0
0
null
null
null
null
UTF-8
Python
false
false
594
py
#!/usr/bin/python3 '''sends a POST request with the letter as a parameter.''' if __name__ == "__main__": import requests from sys import argv url = 'http://0.0.0.0:5000/search_user' if len(argv) == 2: values = {'q': argv[1]} result = requests.post(url, data=values) try: ...
[ "tomasmontoya123@gmail.com" ]
tomasmontoya123@gmail.com
43f78419297092954ae2d68c3e9a6c3cdeb59b73
8bb2842aa73676d68a13732b78e3601e1305c4b2
/1920.py
5ce8ca2d8ffeda7120bfef402770ca16c94a7353
[]
no_license
Avani18/LeetCode
239fff9c42d2d5703c8c95a0efdc70879ba21b7d
8cd61c4b8159136fb0ade96a1e90bc19b4bd302d
refs/heads/master
2023-08-24T22:25:39.946426
2021-10-10T20:36:07
2021-10-10T20:36:07
264,523,162
0
0
null
null
null
null
UTF-8
Python
false
false
277
py
# Build Array from Permutation class Solution(object): def buildArray(self, nums): """ :type nums: List[int] :rtype: List[int] """ ans = [] for i in range(len(nums)): ans.append(nums[nums[i]]) return ans
[ "noreply@github.com" ]
Avani18.noreply@github.com
b38cce92d3920a353b7dd2db6d9b362200d3e705
1f41b828fb652795482cdeaac1a877e2f19c252a
/maya_tools_backup/3dGroupTools/python/sgPWindow_projCoc_createSeparateView.py
113fa85b9bb3bb9c577bba013bb7dbe3ab4cea18
[]
no_license
jonntd/mayadev-1
e315efe582ea433dcf18d7f1e900920f5590b293
f76aeecb592df766d05a4e10fa2c2496f0310ca4
refs/heads/master
2021-05-02T07:16:17.941007
2018-02-05T03:55:12
2018-02-05T03:55:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
10,157
py
import maya.cmds as cmds from functools import partial import sgBFunction_ui class WinA_Global: winName = 'sgPWindow_projCoc_createSeparateView' title = 'UI Separate View Creator' width = 450 height = 50 camField = '' resField1 = '' resField2 = '' sepGroup1 = '' se...
[ "kimsung9k@naver.com" ]
kimsung9k@naver.com
3323c4ec71a8a7d1a3ac28964a61aeacbeb33fd6
196eb2f5e3366987d7285bf980ac64254c4aec16
/supervised/util.py
4dbf6da6ffafcd128d865320bca7ad87e38b8408
[ "MIT" ]
permissive
mfouda/codenames
f54e0c4366edbf65251aadefddef1fda6cd7de9d
ccd0bd7578b3deedeec60d0849ec4ebca48b6426
refs/heads/master
2022-01-07T02:03:42.529978
2018-12-21T13:16:27
2018-12-21T13:16:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
595
py
import time import matplotlib.pyplot as plt plt.switch_backend('agg') import matplotlib.ticker as ticker # noqa: E402 def as_minutes(s): m = s // 60 s -= m * 60 return '%dm %ds' % (m, s) def time_since(since, percent): now = time.time() s = now - since es = s / percent rs = es - s ...
[ "lukas.jendele@gmail.com" ]
lukas.jendele@gmail.com
7b80ef96fa22fd633d5e959b647de4b9f16faedc
c7f98de17088cb4df6c171f1e76614beb1f4e0f7
/modules/vulnerability-analysis/w3af.py
73cb1fc29cbd307d7038d2d133f512666a097029
[]
no_license
fryjustinc/ptf
6262ca5b94a43a51e984d3eee1649a16584b597b
ba85f9e867b65b4aa4f06b6232207aadac9782c9
refs/heads/master
2020-03-31T09:43:44.474563
2018-10-08T18:39:03
2018-10-08T18:39:03
152,107,950
0
0
null
2018-10-08T16:00:37
2018-10-08T16:00:37
null
UTF-8
Python
false
false
244
py
#!/usr/bin/env python ##################################### # Installation module for w3af ##################################### AUTHOR="Justin Fry" INSTALL_TYPE="GIT" REPOSITORY_LOCATION="https://github.com/andresriancho/w3af" LAUNCHER="w3af"
[ "fryjustinc@gmail.com" ]
fryjustinc@gmail.com
47bcf163541fb59722252c3f339c87df5bc27d1b
a8a5772674e62beaa4f5b1f115d280103fd03749
/metstationdistance.py
06718ded3fcc86dd7af918765369d469f2ed4e6b
[]
no_license
tahentx/pv_workbook
c6fb3309d9acde5302dd3ea06a34ad2aee0de4b7
08912b0ef36a5226d23fa0430216a3f277aca33b
refs/heads/master
2022-12-12T20:39:35.688510
2021-03-30T03:20:54
2021-03-30T03:20:54
172,827,250
0
1
null
2022-12-08T16:47:39
2019-02-27T02:25:24
Python
UTF-8
Python
false
false
591
py
import csv from haversine import haversine with open('tucson.csv') as file: has_header = csv.Sniffer().has_header(file.read(1024)) file.seek(0) met = csv.reader(file) if has_header: next(met) met_list = list(met) coords = [] for x in met_list: coords.append(x[1:]) print(coords) # # d...
[ "hendricks.ta@gmail.com" ]
hendricks.ta@gmail.com
ce1d4c9f9dae392dbcd0c9e6cec095469f9b8092
0fccee4c738449f5e0a8f52ea5acabf51db0e910
/genfragments/ThirteenTeV/BulkGraviton/BulkGraviton_VBF_WW_inclu_narrow_M4000_13TeV-madgraph_cff.py
2bcf409e757355e8832799dc74ad7539b4678a06
[]
no_license
cms-sw/genproductions
f308ffaf3586c19b29853db40e6d662e937940ff
dd3d3a3826343d4f75ec36b4662b6e9ff1f270f4
refs/heads/master
2023-08-30T17:26:02.581596
2023-08-29T14:53:43
2023-08-29T14:53:43
11,424,867
69
987
null
2023-09-14T12:41:28
2013-07-15T14:18:33
Python
UTF-8
Python
false
false
797
py
import FWCore.ParameterSet.Config as cms # link to cards: # https://github.com/cms-sw/genproductions/tree/91ab3ea30e3c2280e4c31fdd7072a47eb2e5bdaa/bin/MadGraph5_aMCatNLO/cards/production/13TeV/exo_diboson/Spin-2/BulkGraviton_VBF_WW_inclu/BulkGraviton_VBF_WW_inclu_narrow_M4000 externalLHEProducer = cms.EDProducer("Ex...
[ "sheffield@physics.rutgers.edu" ]
sheffield@physics.rutgers.edu
c441b84ad77af9e2410f70a7eb69c516673a72a5
8e67d8618b9be7c777597b650876fa20082a6ebb
/14501.py
74d650e562528e9b9e0e32bd3b717523cf2ba523
[]
no_license
ljm9748/practice_codingtest
c5a2cc315c1ccd8f48a9424d13d2097c9fed0efc
367710238976c1a2f8b42bfc3fc2936c47b195c5
refs/heads/master
2023-01-14T12:29:32.530648
2020-11-18T17:49:50
2020-11-18T17:49:50
282,162,451
0
0
null
null
null
null
UTF-8
Python
false
false
284
py
n=int(input()) myinp=[] for _ in range(n): myinp.append(list(map(int, input().split()))) dp=[0]*(n) for i in range(n): day=myinp[i][0] val=myinp[i][1] if i+day-1<=(n-1): for j in range(i+day-1, n): dp[j]=max(dp[j], dp[i+day-2]+val) print(dp[n-1])
[ "ljm9748@naver.com" ]
ljm9748@naver.com
2855a822a742a7fbeb6e50814966d36d5e36be0c
61a856d931688a49435b3caab4e9d674ca2a32aa
/tests/test_zeroDS.py
27f6636792c8ed111a8de6cd4169b2281cecf6d1
[ "Apache-2.0" ]
permissive
kvt0012/NeMo
3c9803be76c7a2ef8d5cab6995ff1ef058144ffe
6ad05b45c46edb5d44366bd0703915075f72b4fc
refs/heads/master
2020-08-14T16:59:18.702254
2019-10-14T22:46:48
2019-10-14T22:46:48
215,203,912
1
0
Apache-2.0
2019-10-15T04:05:37
2019-10-15T04:05:34
null
UTF-8
Python
false
false
4,613
py
import unittest import os import tarfile import torch from ruamel.yaml import YAML from nemo.core.neural_types import * from .context import nemo, nemo_asr from .common_setup import NeMoUnitTest class TestZeroDL(NeMoUnitTest): labels = ["'", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l...
[ "okuchaiev@nvidia.com" ]
okuchaiev@nvidia.com
a18ded8aafe21fcfb2e4ec9504aab06e4e2a2770
cad9ea1b8c1909d50a843426d994947f628bf890
/MARS-IEEE_IOT-HAR/MARS-v3.py
da2ad002cac6dde0c51a29d2a4891eb889b18b39
[]
no_license
xiaogaogaoxiao/MARS-IEEE_IoT-HAR
a50a34f0e8813f032d0dc326a2b397180dc13a7c
dfd5a83ef0fb9942aaba2a8c22f73e6c14c5e99f
refs/heads/main
2023-07-01T00:18:56.583927
2021-08-10T08:25:06
2021-08-10T08:25:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
14,595
py
# multi-model import warnings warnings.filterwarnings('ignore') import numpy as np import pickle as pkl import matplotlib import matplotlib.pyplot as plt import sklearn.metrics as metrics import torch.nn.functional as F import itertools import torch.utils.data as dataf from sklearn import utils as skut...
[ "noreply@github.com" ]
xiaogaogaoxiao.noreply@github.com
eaebb4666a97d396903989fc5c9df6e3c92ebdc2
e13091c137650cd31c8d9778087b369033d0cf96
/src/main/python/algo_expert/Algorithm Implementation /Sort/selection_sort.py
db348f63325d79466c26d8e70fdde8fcced1ec7b
[]
no_license
jwoojun/CodingTest
634e2cfe707b74c080ddbe5f32f58c1e6d849968
d62479d168085f13e73dfc1697c5438a97632d29
refs/heads/master
2023-08-22T09:03:32.392293
2021-10-31T01:00:33
2021-10-31T01:00:33
300,534,767
0
0
null
null
null
null
UTF-8
Python
false
false
253
py
# selection_sort def selection_sort(lst) : for i in range(len(lst)-1) : min_ = i for j in range(i+1, len(lst)) : if lst[min_] > lst[j] : min_ = j lst[i], lst[min_] = lst[min_], lst[i] return lst
[ "jjwjun10@gmail.com" ]
jjwjun10@gmail.com
cabb3418558dc0ccf9392089c057427ce71ee217
48e124e97cc776feb0ad6d17b9ef1dfa24e2e474
/sdk/python/pulumi_azure_native/containerregistry/v20210601preview/get_registry.py
946c32d8ea4c071d5a7c0fdf5ea8694660f0870d
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
bpkgoud/pulumi-azure-native
0817502630062efbc35134410c4a784b61a4736d
a3215fe1b87fba69294f248017b1591767c2b96c
refs/heads/master
2023-08-29T22:39:49.984212
2021-11-15T12:43:41
2021-11-15T12:43:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
15,021
py
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities fro...
[ "noreply@github.com" ]
bpkgoud.noreply@github.com
6aff8bc6b2649dd67495d446bfea943bd810d87e
24e7e0dfaaeaca8f911b40fcc2937342a0f278fd
/venv/Lib/site-packages/pygments/plugin.py
76e8f6cb61c2c456a487266d8ae4197c7a0293af
[ "MIT" ]
permissive
BimiLevi/Covid19
90e234c639192d62bb87364ef96d6a46d8268fa0
5f07a9a4609383c02597373d76d6b6485d47936e
refs/heads/master
2023-08-04T13:13:44.480700
2023-08-01T08:36:36
2023-08-01T08:36:36
288,455,446
1
0
MIT
2021-01-22T19:36:26
2020-08-18T12:53:43
HTML
UTF-8
Python
false
false
1,734
py
# -*- coding: utf-8 -*- """ pygments.plugin ~~~~~~~~~~~~~~~ Pygments setuptools plugin interface. The methods defined here also work if setuptools isn't installed but they just return nothing. lexer plugins:: [pygments.lexers] yourlexer = yourmodule:YourLexer formatter pl...
[ "50989568+BimiLevi@users.noreply.github.com" ]
50989568+BimiLevi@users.noreply.github.com
964d74884c5d4fe523268950f181853cad302a7e
f77028577e88d228e9ce8252cc8e294505f7a61b
/web_backend/nvlserver/module/hw_module/specification/get_hw_module_specification.py
2c708377f8fa3bf925fcbfc53584e58eb50737ec
[]
no_license
Sud-26/Arkally
e82cebb7f907a3869443b714de43a1948d42519e
edf519067d0ac4c204c12450b6f19a446afc327e
refs/heads/master
2023-07-07T02:14:28.012545
2021-08-06T10:29:42
2021-08-06T10:29:42
392,945,826
0
0
null
null
null
null
UTF-8
Python
false
false
6,170
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- __version__ = '1.0.1' get_hw_module_list_query = """ SELECT hwm.id AS id, hwm.name AS name, COALESCE(hwm.module_id::VARCHAR, '') AS module_id, hwm.user_id AS user_id, ...
[ "sudhakar@satmatgroup.com" ]
sudhakar@satmatgroup.com
42d1ab3ce84114a87a59d9c3f9a7720ae4e57ece
bffe3ed7c76d488a685f1a586f08270d5a6a847b
/side_service/utils/importer.py
a6ea97b8f8a7a02c6df5fb58ea6838cd08c9642a
[]
no_license
ganggas95/side-service
86a863d7b8d164e05584938aa63e56aa1ed8f793
c58ee47d1145cb704c4268006f135a141efc0667
refs/heads/nizar_dev
2021-06-21T11:37:54.771478
2019-10-14T23:45:39
2019-10-14T23:45:39
213,881,364
0
1
null
2021-05-06T19:55:47
2019-10-09T09:52:06
Python
UTF-8
Python
false
false
2,443
py
import os from numpy import int64 import pandas as pd from flask import current_app as app from side_service.models.prov import Provinsi from side_service.models.kab import Kabupaten from side_service.models.kec import Kecamatan from side_service.models.desa import Desa class FileImporter: temps = [] def __i...
[ "subhannizar25@gmail.com" ]
subhannizar25@gmail.com
485fa53a3ac3eaa8756d5ab54cf31b30b0eb63c8
1daac610a9954619b136507cbef8db313c24fa42
/app/memory_cache/models.py
f69cc50f13703162f1f43536e2de8361e6d3f27c
[]
no_license
waynerv/memory-cache
b17a8d1c57382313e0b646e079a65f303b47bc2f
aa63044d9138b1da6149e54c8e83cb8d584451a1
refs/heads/master
2020-04-17T22:43:41.890703
2019-04-22T01:56:26
2019-04-22T01:56:26
167,005,947
8
1
null
null
null
null
UTF-8
Python
false
false
10,970
py
import os from datetime import datetime from flask import current_app from flask_avatars import Identicon from flask_login import UserMixin from werkzeug.security import generate_password_hash, check_password_hash from memory_cache.extensions import db from memory_cache.extensions import whooshee tagging = db.Table(...
[ "ampedee@163.com" ]
ampedee@163.com
b637325039f49ef3a68474942e03ff5f45a15a45
6455c57f85289fae2195e15b9de126ef1f6bf366
/project/job/models.py
d76497cb302d53dfa50245b326202b283d94f849
[]
no_license
muhamed-mustafa/django-job-board
8fcb76e8543509d233cb7697ced67c96f5d81fbc
6b3fa1d7126d9c400c1c6cf3ccb4c8061db8692b
refs/heads/master
2022-12-15T00:53:15.202174
2020-09-17T21:43:48
2020-09-17T21:43:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,523
py
from django.db import models from django.utils.translation import ugettext as _ from django.utils.text import slugify from django.contrib.auth.models import User def image_upload(instance, filename): imagename, extension = filename.split(".") return 'jobs/%s.%s' % (instance.id, extension) class Job(models.M...
[ "muuhamed14mustafa@gmail.com" ]
muuhamed14mustafa@gmail.com
3d07fac9d2bb63738f35e626530cf62382648804
127e99fbdc4e04f90c0afc6f4d076cc3d7fdce06
/2021_하반기 코테연습/boj16937.py
6d06ddfaf0afe6fb35157d542a1476f2a0119f6a
[]
no_license
holim0/Algo_Study
54a6f10239368c6cf230b9f1273fe42caa97401c
ce734dcde091fa7f29b66dd3fb86d7a6109e8d9c
refs/heads/master
2023-08-25T14:07:56.420288
2021-10-25T12:28:23
2021-10-25T12:28:23
276,076,057
3
1
null
null
null
null
UTF-8
Python
false
false
999
py
from itertools import combinations h, w = map(int, input().split()) n = int(input()) sti = [] for _ in range(n): r, c = map(int, input().split()) if (r<=h and c<=w) or (r<=w and c<=h): sti.append((r, c)) answer = -1 johab = list(combinations(sti, 2)) for cur in johab: r1,c1, r2, c2 = cur[0][...
[ "holim1226@gmail.com" ]
holim1226@gmail.com
925993af5a8f5017c130ba97532dac8831608bdd
18c1cbda3f9f6ca9cc9a27e93ddfece583c4fe43
/projects/DensePose/densepose/data/structures.py
340c396d95257f5bcb1728753f7883a205924856
[ "Apache-2.0" ]
permissive
zzzzzz0407/detectron2
0bd8e5def65eb72bc9477f08f8907958d9fd73a1
021fc5b1502bbba54e4714735736898803835ab0
refs/heads/master
2022-12-04T14:25:36.986566
2020-08-26T10:39:30
2020-08-26T10:39:30
276,800,695
1
0
Apache-2.0
2020-07-03T03:42:26
2020-07-03T03:42:25
null
UTF-8
Python
false
false
25,296
py
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved import base64 import numpy as np from io import BytesIO from typing import BinaryIO, Dict, Union import torch from PIL import Image from torch.nn import functional as F class DensePoseTransformData(object): # Horizontal symmetry label transfo...
[ "facebook-github-bot@users.noreply.github.com" ]
facebook-github-bot@users.noreply.github.com
66249f846adc240a436f156b941e6d0a01b7be95
4bed9030031fc99f6ea3d5267bd9e773f54320f8
/sparse/repos/katyhon/hello-world.git/setup.py
9910a87c354430aea7dbbdccc76c28a3264a91f0
[ "BSD-3-Clause" ]
permissive
yuvipanda/mybinder.org-analytics
c5f4b939541d29727bc8d3c023b4d140de756f69
7b654e3e21dea790505c626d688aa15640ea5808
refs/heads/master
2021-06-13T05:49:12.447172
2018-12-22T21:48:12
2018-12-22T21:48:12
162,839,358
1
1
BSD-3-Clause
2021-06-10T21:05:50
2018-12-22T20:01:52
Jupyter Notebook
UTF-8
Python
false
false
1,133
py
# -*- coding: utf-8 -*- # @Author: Zebedee Nicholls # @Date: 2017-04-10 13:42:11 # @Last Modified by: Chris Smith # @Last Modified time: 2018-01-11 19:17:00 from setuptools import setup from setuptools import find_packages import versioneer # README # def readme(): with open('README.rst') as f: return...
[ "yuvipanda@gmail.com" ]
yuvipanda@gmail.com
5aa1c34ec0e9bdc71669f247d97e9017b69ffe4c
1d928c3f90d4a0a9a3919a804597aa0a4aab19a3
/python/pandas/2017/4/test_partial.py
20cec2a3aa7db8b918db50da92411c32c9ee713d
[]
no_license
rosoareslv/SED99
d8b2ff5811e7f0ffc59be066a5a0349a92cbb845
a062c118f12b93172e31e8ca115ce3f871b64461
refs/heads/main
2023-02-22T21:59:02.703005
2021-01-28T19:40:51
2021-01-28T19:40:51
306,497,459
1
1
null
2020-11-24T20:56:18
2020-10-23T01:18:07
null
UTF-8
Python
false
false
20,616
py
""" test setting *parts* of objects both positionally and label based TOD: these should be split among the indexer tests """ import pytest from warnings import catch_warnings import numpy as np import pandas as pd from pandas import Series, DataFrame, Panel, Index, date_range from pandas.util import testing as tm ...
[ "rodrigosoaresilva@gmail.com" ]
rodrigosoaresilva@gmail.com
757fdd5ec99459542dde88e360700156603c2846
ee8c4c954b7c1711899b6d2527bdb12b5c79c9be
/assessment2/amazon/run/core/controllers/vivacious.py
6023c96df4e75d647fba458235af9ef85c64b4ef
[]
no_license
sqlconsult/byte
02ac9899aebea4475614969b594bfe2992ffe29a
548f6cb5038e927b54adca29caf02c981fdcecfc
refs/heads/master
2021-01-25T14:45:42.120220
2018-08-11T23:45:31
2018-08-11T23:45:31
117,135,069
0
0
null
null
null
null
UTF-8
Python
false
false
372
py
#!/usr/bin/env python3 from flask import Blueprint, Flask, render_template, request, url_for controller = Blueprint('vivacious', __name__, url_prefix='/vivacious') # @controller.route('/<string:title>', methods=['GET']) # def lookup(title): # if title == 'Republic': # TODO 2 # return render_template('r...
[ "sqlconsult@hotmail.com" ]
sqlconsult@hotmail.com
0743fab55b7760c26dc13b3922aea2a97eec77c6
50008b3b7fb7e14f793e92f5b27bf302112a3cb4
/recipes/Python/580763_Context_Manager_Arbitrary_Number_Files/recipe-580763.py
150135fb1201d2a97d2a7f356d35cb1f5cb58577
[ "MIT" ]
permissive
betty29/code-1
db56807e19ac9cfe711b41d475a322c168cfdca6
d097ca0ad6a6aee2180d32dce6a3322621f655fd
refs/heads/master
2023-03-14T08:15:47.492844
2021-02-24T15:39:59
2021-02-24T15:39:59
341,878,663
0
0
MIT
2021-02-24T15:40:00
2021-02-24T11:31:15
Python
UTF-8
Python
false
false
416
py
class Files(tuple): def __new__(cls, *filePaths): files = [] try: for filePath in filePaths: files.append(open(filePath)) files[-1].__enter__() except: for file in files: file.close() raise else: return super(Files, cls).__new__(cls, files) def __enter...
[ "betty@qburst.com" ]
betty@qburst.com
8bc30b4ffffdd2a9e6c67b806b72324ac9bcf8c5
699c7f26a91106a2fc79bb15299ce0cee532a2dd
/test/pivottest.py
a875542be8d7a661c68859711f9c108434bede2c
[]
no_license
samconnolly/astro
70581a4d3f2086716aace3b5db65b74aaaa5df95
3731be313592c13dbb8af898e9734b98d83c0cc2
refs/heads/master
2020-04-06T03:40:27.454279
2014-03-12T14:36:34
2014-03-12T14:36:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,709
py
# Programme to test how a pivoting spectral component, plus a # constant soft component changes the shape of the flux-flux diagram import numpy as np from pylab import * # parameters epivot = 2.0 # KeV pivot energy pivmin = 2.0 pivmax = 10.0 cindex = 2.0 # index of constant component nsteps = 10.0 # c...
[ "sdc1g08@soton.ac.uk" ]
sdc1g08@soton.ac.uk
cbb97a71e43ba0aeae79c64781b1c2a7c1f09cb8
8fb4f83ac4e13c4c6de7f412f68c280d86ddea15
/eon/tests/unit/deployer/network/ovsvapp/test_vapp_util.py
6e5508948b41971f8773c56807dceeb902078137
[ "Apache-2.0" ]
permissive
ArdanaCLM/hpe-eon
cbd61afa0473bbd9c6953e5067dbe5a7ff42c084
48a4086d2ccc5ccac60385b183f0d43f247c0b97
refs/heads/master
2021-07-25T18:55:30.176284
2017-10-24T08:49:42
2017-10-24T08:49:42
103,971,673
0
1
null
2017-11-07T15:47:45
2017-09-18T17:43:45
Python
UTF-8
Python
false
false
6,225
py
# # (c) Copyright 2015-2017 Hewlett Packard Enterprise Development Company LP # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless require...
[ "srivastava.abhishek@hp.com" ]
srivastava.abhishek@hp.com
e646bb93cc2e371f15aec3b80cb3f8c0380cccc1
51a37b7108f2f69a1377d98f714711af3c32d0df
/src/leetcode/P292.py
5c48dc1f6e7885796ce6210fadce7d6c63219433
[]
no_license
stupidchen/leetcode
1dd2683ba4b1c0382e9263547d6c623e4979a806
72d172ea25777980a49439042dbc39448fcad73d
refs/heads/master
2022-03-14T21:15:47.263954
2022-02-27T15:33:15
2022-02-27T15:33:15
55,680,865
7
1
null
null
null
null
UTF-8
Python
false
false
136
py
class Solution: def canWinNim(self, n): """ :type n: int :rtype: bool """ return n % 4 != 0
[ "stupidchen@foxmail.com" ]
stupidchen@foxmail.com
632dde6bdbc21624a39c299566810a9f9a7bbac0
24a9c8f2fac4e2b20f731387336ec4e22d5fd2c7
/AdministrativePenalty/天津市/1.保险监督管理局.py
40398e49e4a5061da89e045b006e224c3d4e1126
[]
no_license
yunli45/pycharmProjectHome
94833822e3036bf2baf8700c4493132e63177d4c
9a382c060963eb801a3da07423e84a4132257b02
refs/heads/master
2020-05-23T23:35:20.476973
2019-05-16T09:45:58
2019-05-16T09:49:16
186,986,803
0
0
null
null
null
null
UTF-8
Python
false
false
12,095
py
import requests import re import time from bs4 import BeautifulSoup import pymssql # # # # # # # # # # # # # # # # # # # # # # # # # # # # # 抓取天津市滨海新区 —银监分局数据 # # # # # # # # # # # # # # # # # # # # # # # # # # # # class Utils(object): def __init__(self): self.header = {'User-Agent': 'Mozilla/5.0 (Win...
[ "yunli_45@163.com" ]
yunli_45@163.com