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
c4ffd485124e4384a907a18abd1956cae91369f6
a5e88c5e8ee613b8643a3cc15a866c9328e5949d
/repomd/yumrepo.py
1407c46ec6a8b2d44f94f108f570eeb474e15899
[]
no_license
jctanner/rbuild-yumcheckout-plugin
f26a0da5e206da90b77ca505e73814a2840a978e
782e5f63ec9082d4972229c770bb7cf6b7f947d1
refs/heads/master
2021-01-23T13:54:46.022213
2012-10-19T15:00:55
2012-10-19T15:00:55
4,719,725
0
1
null
null
null
null
UTF-8
Python
false
false
12,779
py
from linkparser import * from yumpackage import * from yumgroup import * import urllib2 from urllib2 import urlopen import re from xml.dom.minidom import parse, parseString import StringIO import gzip class yumRepo(object): def __init__(self, url): #self.id = id self.url = url self.repo...
3ec75456e5cf113904ab7c17e0059d937c023644
373939995a89ed84a26653bf4b11e02b9e060b3d
/20210503PythonAdvanced/05-contextmanager/ctx01.py
48cab9fb6ae9619ae2f1d2d1236c1f7fab38fe4e
[ "MIT" ]
permissive
AuroraBoreas/pypj_sonic_pc
28406f1951280b9349a25fdbd0ad02bae8adc316
3016ed173d912e2ffa08c8581c98a5932c486467
refs/heads/master
2023-09-01T15:04:36.246303
2023-08-25T01:05:28
2023-08-25T01:05:28
279,821,926
0
0
MIT
2022-06-22T04:52:25
2020-07-15T09:15:32
Python
UTF-8
Python
false
false
702
py
"#Python is a protocol orientated lang; every top-level function has a corresponding dunder method implemented;" import sqlite3 with sqlite3.connect('test.db') as conn: cur = conn.cursor() cur.execute('CREATE TABLE points(x int, y int);') cur.execute('INSERT INTO points(x, y) VALUES(1, 1);') ...
6b9810de0500f330dc7287b1f9411c40fcb595b6
9d939a4909a75a268e8d4dfd18a0da7fbbae4b0a
/astropy/coordinates/tests/test_velocity_corrs.py
e43e1f05ca508c092480425daf991e1ded97656c
[ "BSD-3-Clause" ]
permissive
aboucaud/astropy
023db2dea40bc03bb76b4a7a85f93f6a5064dd0d
cb3227199053440555ad7a92842f5e0fa9a2d3db
refs/heads/master
2020-12-14T09:52:55.026630
2017-06-26T15:30:19
2017-06-26T15:30:19
95,464,994
0
0
null
2017-06-26T16:07:50
2017-06-26T16:07:50
null
UTF-8
Python
false
false
16,192
py
from __future__ import (absolute_import, division, print_function, unicode_literals) import pytest import numpy as np from ...tests.helper import assert_quantity_allclose from ... import units as u from ...time import Time from .. import EarthLocation, SkyCoord, Angle from ..sites import get_...
48b78b754e439112fd0edbe53a2f1921e547ce3c
136a379de74b2a28782cd0e2fb04da99dfabdf86
/File-Handling/Exercise.py
8bd12e20853e1bf33850acafdf5a5adf5211b4c0
[]
no_license
mironmiron3/SoftUni-Python-Advanced
eb6c077c3b94e0381a82ed3b4abb26f1098dec82
c7ac896a8fcc1f13a09f4c5573bd183d788a3157
refs/heads/main
2023-07-09T23:00:18.404835
2021-08-24T14:05:21
2021-08-24T14:05:21
399,486,680
0
0
null
null
null
null
UTF-8
Python
false
false
121
py
file = open("example.txt") content1 = file.readline() content2 = file.readline() #print(content1) print(content2)
1c6a029683af969af9e6686df9c21e1d0165a4b2
5e3ebc83bc3fe2f85c34563689b82b1fc8b93a04
/google/ads/googleads/v5/enums/types/account_budget_proposal_status.py
775b7b599ba465c2c0fdc70efefd98eefd7eb098
[ "Apache-2.0" ]
permissive
pdsing/google-ads-python
0ce70227cd6bb13a25cd13de0ca05c2636279ecd
ee2c059498d5679a0d1d9011f3795324439fad7c
refs/heads/master
2023-05-04T18:39:57.412453
2021-05-21T16:38:17
2021-05-21T16:38:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,238
py
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
07c81e48ef1e0240cf2c4b5ca63eec342824fd44
846e8886bbe7e8c3cdee4ba505c2217f1da1d803
/python/catkin/test_results.py
b3471991e33c50440122cc729b6db58321bb9dd9
[]
no_license
jamuraa/catkin
ef315aa644459a73443d2a8d74e6e8c0954b47f3
91b133d4c2048af097fdea270a0a19c57b422ad0
refs/heads/master
2020-11-30T13:03:20.220219
2012-10-02T18:54:56
2012-10-02T18:54:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,795
py
from __future__ import print_function import os from xml.etree.ElementTree import ElementTree def read_junit(filename): tree = ElementTree() root = tree.parse(filename) num_tests = int(root.attrib['tests']) num_errors = int(root.attrib['errors']) num_failures = int(root.attrib['failures']) ret...
810af9acd051bb92282777ed5159e2d3bea725ea
471b5d4df7c92af540c3d348594cc6ea98d65fed
/dojo_python/flask/survey/survey.py
d3be0e91dea895719a61bdd25aa6ec76be766ca5
[]
no_license
samuellly/dojo_assignment_file
929c6d747077b47b35179f190075b1d9a54e257c
37363982238fa7591a139a3af9beb20a8e165997
refs/heads/master
2021-01-13T05:30:02.462066
2017-05-20T00:27:47
2017-05-20T00:27:47
80,334,980
0
0
null
null
null
null
UTF-8
Python
false
false
446
py
from flask import Flask, render_template, request, redirect app = Flask(__name__) @app.route('/') def index(): return render_template('index.html') @app.route('/result', methods=['POST']) def result(): print ("Info received!") return render_template('result.html', name = request.form['name'], loca...
b029dde505319423c857d3ae2b468e2b48f9ea6d
543286f4fdefe79bd149ff6e103a2ea5049f2cf4
/Exercicios&cursos/eXcript/Aula 18 - Propriedade Sticky.py
505b6762f67eaf3c58b626f5f1c71a0c1459ee06
[]
no_license
antonioleitebr1968/Estudos-e-Projetos-Python
fdb0d332cc4f12634b75984bf019ecb314193cc6
9c9b20f1c6eabb086b60e3ba1b58132552a84ea6
refs/heads/master
2022-04-01T20:03:12.906373
2020-02-13T16:20:51
2020-02-13T16:20:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
430
py
#width == largura #height == altura from tkinter import * janela = Tk() lb1 = Label(janela, text="ESPAÇO", width=15, height=3, bg="blue") lbHORIZONTAL = Label(janela, text="HORIZONTAL", bg="yellow") lbVERTICAL = Label(janela, text="VERTICAL", bg="yellow") lb1.grid(row=0, column=0) lbHORIZONTAL.grid(row=1, column=0,...
6c173948ffd1b8a67bce3a68d009815fc750f195
219634e73b1b861177fcd49c3d2fca0cfa00604e
/prev_project/crawl.py
9e0e13fc4477feac92b913f1efb0701ddc66d3a3
[ "MIT" ]
permissive
dongkoull/BigData-project
10e2ee88c62981feffc496d309fd8140b8bc4cb4
f6cd9b873a1ce7b1133f653d9b8f0e08c4ffd87d
refs/heads/master
2020-03-31T08:23:05.035223
2018-10-05T05:59:07
2018-10-05T05:59:07
152,054,514
0
0
MIT
2020-12-13T08:29:27
2018-10-08T09:37:49
Jupyter Notebook
UTF-8
Python
false
false
80
py
''' 크롤링 공간 Naver, Daum, Blog, News ''' from bs4 import BeautifulSoup s
2056295116744d61aff23b37cb126feb78904a4e
863a56f99b4668211b96d66e3d2698196e46f3b1
/prng/cellular_automata/rule198/run.py
309e1673dd75c013f3267dff98a2899f99f68d8b
[ "LicenseRef-scancode-public-domain" ]
permissive
atoponce/scripts
15b958463d6e788ad6f7785d2614ddb372fc69a7
b2c8fd2a0b68e83562570c315f4c9596ee546011
refs/heads/master
2023-04-28T05:47:07.918556
2023-04-15T15:02:05
2023-04-15T15:02:05
8,612,257
22
4
null
2016-12-22T19:21:28
2013-03-06T20:18:33
Shell
UTF-8
Python
false
false
643
py
#!/usr/bin/python3 #seed = '00000000000000000100000000000000000' # textbook initial state seed = '01011111110010010011010001100100010' # random initial state bits = len(seed) for n in range(5000): print(int(seed, 2)/2**bits) state = '' p, q, r = -1, 0, 1 for n in range(bits): # there must be a more ef...
502d9190cab58f6d069d44d54fb6d2e1eda3cf9e
a3181f8b0c3c22f9a24ac7e688502296b1f39386
/finmarketpy/curve/fxforwardscurve.py
0615f3ba2d1a6b842962d0fa5512433ec4b7de31
[ "Apache-2.0" ]
permissive
pyzeon/finmarketpy
656ef1ebcd2b0dd2247681e10685675deb8ce118
f3dcd7a3b8cbdc91ac30e1e2e498e3f0acb3b097
refs/heads/master
2023-04-04T04:51:44.114098
2021-04-13T15:06:01
2021-04-13T15:06:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
19,129
py
__author__ = 'saeedamen' # Saeed Amen # # Copyright 2016-2020 Cuemacro - https://www.cuemacro.com / @cuemacro # # 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/LI...
946fd49ed7af083f41429c81ef2bb5819af47060
9a0a4e1f843d1457c4f466c05c994f3e6ecd842a
/change_transparency.py
543c49f2aa8d0ef476010ab9f243970f94d0c354
[]
no_license
sjbrown/steam_jet_blower
688aa44e43ea8a285ebaf3923473b4a4049b5537
5b894354cb60b5d5d6eee74af77140af641580ee
refs/heads/master
2021-01-10T03:19:21.853486
2016-03-18T20:27:49
2016-03-18T20:27:49
54,229,208
0
0
null
null
null
null
UTF-8
Python
false
false
1,145
py
#!/usr/bin/env python #Import Modules import pygame from pygame.locals import * _cachedOriginals = {} _cachedCalculatedArrays = {} #----------------------------------------------------------------------------- def change_alpha_mult(img, percentAlpha): global _cachedOriginals global _cachedCalculatedArrays if perce...
7c89b5a70eaa41d0b10e26ac6461585729c21d14
05b80d92bb2efec76f898c527cc803f931031266
/Blind 75/Programs/Longest Repeating Character Replacement.py
1d5251bb53822143571115ed0129d2c93426ce21
[]
no_license
PriyankaKhire/ProgrammingPracticePython
b5a6af118f3d4ec19de6fcccb7933d84f7522d1a
8dd152413dce2df66957363ff85f0f4cefa836e8
refs/heads/master
2022-08-28T00:44:34.595282
2022-08-12T19:08:32
2022-08-12T19:08:32
91,215,578
18
11
null
null
null
null
UTF-8
Python
false
false
1,679
py
# Longest Repeating Character Replacement # https://leetcode.com/problems/longest-repeating-character-replacement/ # Solution understood from. # https://leetcode.com/problems/longest-repeating-character-replacement/discuss/358879/Java-Solution-Explained-and-Easy-to-Understand-for-Interviews ''' formula: (length of sub...
6f62aac4b432ea6c0ddfaf845217dc767679d71f
12d1bcb4bb0a473d163048f1c5ac9eef6389bc24
/HypothesisTesting/Quiz.py
d386378049509604a12e023d6c89890c25f5779e
[]
no_license
Bharadwaja92/DataScienceProjects
339795c08c4b631006f1602ec84f3b48b828e538
088305387339affa662ac3d88ea5fac2651295b5
refs/heads/master
2020-03-29T19:23:58.041782
2019-01-29T12:22:03
2019-01-29T12:22:03
150,261,056
0
0
null
null
null
null
UTF-8
Python
false
false
1,227
py
"""""" """ Which of these is an accurate statement of the Central Limit Theorem? For a large enough sample size, our sample mean will be sufficiently close to the population mean. What is a statistical hypothesis test? A way of quantifying the truth of a statement. Which of the following describes a Type II error? ...
b508232586963bd3703658b87b4854b11d1c3e75
fc3f784c8d00f419b11cbde660fe68a91fb080ca
/algoritm/20상반기 코딩테스트/한수/bj1065.py
b711cbf86b44c09064fe63cda2dc9461a9d7b1d7
[]
no_license
choo0618/TIL
09f09c89c8141ba75bf92657ac39978913703637
70437a58015aecee8f3d86e6bfd0aa8dc11b5447
refs/heads/master
2021-06-25T07:01:34.246642
2020-12-21T04:57:13
2020-12-21T04:57:13
163,782,782
0
0
null
null
null
null
UTF-8
Python
false
false
201
py
import sys sys.stdin = open('bj1065.txt','r') N=int(input()) if N<100:print(N) else: R=0 for i in range(100,N+1): a,b,c=i//100,(i%100)//10,i%10 if a-b==b-c:R+=1 print(99+R)
263feec81bd5161ad7aca3304939729b59c6e0f5
6e466112c3682338ec56c892c883284704fbb727
/bflib/restrictions/weapons.py
e21e12d074b299dcaffacd3c90e51a5f8e5dbcfd
[ "MIT" ]
permissive
ChrisLR/BFLib
5aee153aeaef72516f737abf74cf89e7ec1cb90a
2af49cc113792c4967c0c8c5bf32a1b76876e6e2
refs/heads/master
2021-01-22T17:52:58.790057
2017-11-15T17:46:56
2017-11-15T17:46:56
102,407,112
1
0
null
null
null
null
UTF-8
Python
false
false
617
py
from bflib.keywords.weapons import WeaponWieldKeyword from bflib.restrictions.base import Restriction class WeaponRestrictionSet(Restriction): __slots__ = ["included", "excluded"] def __init__(self, included=None, excluded=None): self.included = included self.excluded = excluded class Weapo...
581eb71ed8e3a43f72e7d7c856a6ef0ca4273774
a78b1c41fc038703e58d5249a9948fbfd06f8159
/code_nodeperturbation/FM4/sim2/gene/gene.py
47d12a4d13f3c51625eb54494462cfc38ce251d7
[]
no_license
le-chang/DISC1_interactome
15ed1025048e49d5bb6b6bd13eac4f148fe83d04
b517309b8583358220c2a639d4ef5d303bfb0acd
refs/heads/master
2021-02-13T21:00:20.418928
2019-04-24T13:59:50
2019-04-24T13:59:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,652
py
""" Migration simulator It is also a demonstration on how the collector works """ import boolean2 from boolean2 import Model, util from random import choice # ocasionally randomized nodes TARGETS = set( "Migration".split() ) def new_getvalue( state, name, p): """ Called every time a node value is used in a...
00c0b0cfc6d43856b8c8354dd1095c8801b7699e
317e68dc7045390f41b10b8aa35d593f93c507d5
/test/test_cluster_collection.py
5e158a5a71b90c0e87c505d8f2392831b6de5bad
[]
no_license
daletcoreil/facerecognition-client-python-sdk
e3302b00c4309790db6aad6f111cc86f09152c4a
50934b0ec247a4005e84652e10f679d3a7652dfb
refs/heads/master
2021-04-23T08:45:44.475121
2020-07-22T12:57:56
2020-07-22T12:57:56
249,914,273
0
0
null
null
null
null
UTF-8
Python
false
false
6,755
py
# coding: utf-8 """ Dalet Media Mediator API # Scope Dalet Mediator API allows you to submit long running media jobs managed by Dalet services. Long running media jobs include: - **Media processing** such as transcoding or automatic QC. - **Automatic metadata extraction** such as automatic speech transcripti...
28ab99c19eab747771628ecc969b9664add8722c
54f352a242a8ad6ff5516703e91da61e08d9a9e6
/Source Codes/AtCoder/abc055/A/4872849.py
d058a529a0e1165d93ce465dc51afd09472ccc13
[]
no_license
Kawser-nerd/CLCDSA
5cbd8a4c3f65173e4e8e0d7ed845574c4770c3eb
aee32551795763b54acb26856ab239370cac4e75
refs/heads/master
2022-02-09T11:08:56.588303
2022-01-26T18:53:40
2022-01-26T18:53:40
211,783,197
23
9
null
null
null
null
UTF-8
Python
false
false
75
py
N = int(input()) wari = N //15 goukei = N*800 - wari*200 print(goukei)
8520cda3561bf8b7c960f8602b2bced270173fa2
7c0acdc46cfce5dc116d394f6990ee5ab1c0fa0c
/venv/lib/python3.7/site-packages/builders/logger.py
2315b5710fc7b44fd1e8f35c660d87e62010e1e9
[ "MIT" ]
permissive
Vatansever27/ExchangeCode
84fb4a02371fdda7cd94d00971be76bcd1068be0
ab284653a337937139a9a28c036efe701fb376c7
refs/heads/master
2020-04-07T16:38:59.819929
2018-11-21T12:18:30
2018-11-21T12:18:30
158,537,067
0
0
null
2018-11-21T12:18:31
2018-11-21T11:22:14
null
UTF-8
Python
false
false
284
py
''' Created on Sep 10, 2013 This module holds logger configuration for builders @author: pupssman ''' import logging logger = logging.getLogger('builders') logger.setLevel(logging.INFO) handler = logging.StreamHandler() handler.setLevel(logging.WARN) logger.addHandler(handler)
4f122446d7f74b618c9d6df7407213c5b1993795
70744b927246edb4cfdc405bd3528513d9ea9ded
/envios/autocomplete_light_registry.py
cd1e842920390dfa7c8bab2e7b617952f2f99540
[]
no_license
jesusmaherrera/enviamexpaisano
e0616cbba47a4b4bddc897fbf2244d92c59c10fd
dd9e3e8270616a8cb73704dc7076791e36ecc98f
refs/heads/master
2016-09-06T04:30:19.848954
2013-06-07T06:05:27
2013-06-07T06:05:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
336
py
import autocomplete_light from cities_light.models import City autocomplete_light.register(City, search_fields=('search_names',), autocomplete_js_attributes={'placeholder': 'Nombre de la ciudad..'}) autocomplete_light.register(City, search_fields=('name',), autocomplete_js_attributes={'placeholder': 'Nombre de...
be302e0706e2794ea3306d1e0fd8b9e27cb8dd64
0eb245b181d0455cb810bd188c0e5607f7702f88
/impacts/composites_VAR_PV_ninio.py
a9cbc5060d2dc9c2196c65cd382e8f32c41aca0a
[]
no_license
marisolosman/ENSO_SPV_SH_climate
1d3601cfa793dbce4de5db4f8e9e5c20839bab09
7128f0f620698145dbcf69e53c19786973006423
refs/heads/master
2023-02-08T13:56:46.220639
2020-12-29T20:52:48
2020-12-29T20:52:48
325,384,684
0
0
null
null
null
null
UTF-8
Python
false
false
21,092
py
#composites on PV years conditioned on ENSO strength import sys import numpy as np import xarray as xr import os import regional_plots import plots NAME = sys.argv[1] os.environ['HDF5_USE_FILE_LOCKING'] = 'FALSE' PATH_DATA = '/pikachu/datos/osman/assessment_SH_zonal_asymmetries/data/' FIG_PATH = '/pikachu/datos/osman/a...
e944ac632c5986200ef656717afb0a52d305c33e
5ec48e90f711c9514a6d2ee36dbb46bc1ba71b74
/shop/urls.py
c552e41a6565ef31e6acd61ea30c24f84cf3f152
[]
no_license
hanieh-mav/hanieh_shop
1ca5042fefb970459d9f48fb716a95fec6a530bb
b7cf253e11b6c167e78b245f253a8d057f435026
refs/heads/main
2023-06-10T16:37:26.385048
2021-07-07T14:19:58
2021-07-07T14:19:58
372,892,835
2
0
null
2021-07-07T14:19:59
2021-06-01T16:19:48
CSS
UTF-8
Python
false
false
443
py
from django.urls import path from .views import home , category_detail , ProductDetail app_name = 'shop' urlpatterns = [ path('',home,name='home'), path('page/<int:page>',home,name='home'), path('category/<slug:slug>',category_detail,name='category_detail'), path('category/<slug:slug>/<int:page>',cate...
3e733750ad74b97a747c6020dc169f595fa9de9a
38422c3edeb269926502fed31a0761aff8dd3d3b
/Swanepoel_analysis/Swanepoel_analysis/Old_control_files/Swanepoel_GUI_v3.py
48959058c2d200add495bd6e2d6cbe2102f979f5
[]
no_license
vfurtula/Alle-projekter
2dab3ccbf7ddb6be3ee09f9f5e87085f354dd84a
da3d7c9611088043e2aea5d844f1ae6056215e04
refs/heads/master
2022-06-07T05:17:35.327228
2020-04-30T10:28:48
2020-04-30T10:28:48
260,180,957
0
0
null
null
null
null
UTF-8
Python
false
false
38,741
py
## Import libraries import matplotlib.pyplot as plt import os, sys, time, imp, numpy from PyQt4 import QtGui, QtCore from PyQt4.QtCore import QThread, SIGNAL import config_Swanepoel class my_Thread(QThread): def __init__(self, *argv): QThread.__init__(self) self.sender=argv[0] def __del__(self): ...
18930ec02640d88d9249a496421df84a048f1e75
f1a3bd9ad5ef76204c24dc96f113c405ece21b6d
/main/migrations/0082_auto__add_field_profile_email_notifications__add_field_profile_email_n.py
833ee2eb84ebdd15ca7fc46600cfbce256d7e61f
[]
no_license
JamesLinus/solidcomposer
02f83c3731774e8008d46b418f3bf4fb5d9dab36
ed75e576ce1c50487403437b5b537f9bfbb6397e
refs/heads/master
2020-12-28T23:50:06.745329
2014-01-24T02:34:41
2014-01-24T02:34:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
16,625
py
# encoding: utf-8 import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding field 'Profile.email_notifications' db.add_column('main_profile', 'email_notifications', self.gf(...
df7281a7926eb33f1778ef246c2fdeca5fbffa99
aafc9140c662fcb2b36fb092cbf861d80e4da7e9
/examples/misc/chained_callbacks.py
87879ff42488aca6c81fd210a4a5cc2f14054791
[]
no_license
alecordev/dashing
12fb8d303143130f3351c8042615a0f7497f59cf
aac810147f8459834b6c693291b1276e8a84c36e
refs/heads/master
2023-02-18T08:55:22.410205
2022-04-07T08:17:37
2022-04-07T08:17:37
99,436,393
0
0
null
2023-02-16T03:20:21
2017-08-05T17:01:29
CSS
UTF-8
Python
false
false
1,473
py
import dash import dash_core_components as dcc import dash_html_components as html from dash.dependencies import Input, Output external_stylesheets = ["https://codepen.io/chriddyp/pen/bWLwgP.css"] app = dash.Dash(__name__, external_stylesheets=external_stylesheets) all_options = { "America": ["New York City", "S...
29a2cd8efc2aaa2e4516c00dfb1c4ee3a55e932d
b08d42933ac06045905d7c005ca9c114ed3aecc0
/src/coefSubset/evaluate/ranks/fiftyPercent/rank_2j1k_T.py
01f79cb0649b2afd54bbb504d7a26370bac53377
[]
no_license
TanemuraKiyoto/PPI-native-detection-via-LR
d148d53f5eb60a4dda5318b371a3048e3f662725
897e7188b0da94e87126a4acc0c9a6ff44a64574
refs/heads/master
2022-12-05T11:59:01.014309
2020-08-10T00:41:17
2020-08-10T00:41:17
225,272,083
1
0
null
null
null
null
UTF-8
Python
false
false
3,390
py
# 9 July 2019 # Kiyoto Aramis Tanemura # Several metrics are used to assess the performance of the trained RF model, notably native ranking. This script returns a ranking of the native protein-protein complex among a decoy set. For convenience, I will define as a function and will call in a general performance assess...
3b08994748c30a31baf779c095991557e4427e44
6fcfb638fa725b6d21083ec54e3609fc1b287d9e
/python/rasbt_mlxtend/mlxtend-master/mlxtend/classifier/softmax_regression.py
04e5d621bb0f443e834b5ed9ae559e12551abd2b
[]
no_license
LiuFang816/SALSTM_py_data
6db258e51858aeff14af38898fef715b46980ac1
d494b3041069d377d6a7a9c296a14334f2fa5acc
refs/heads/master
2022-12-25T06:39:52.222097
2019-12-12T08:49:07
2019-12-12T08:49:07
227,546,525
10
7
null
2022-12-19T02:53:01
2019-12-12T07:29:39
Python
UTF-8
Python
false
false
5,868
py
# Sebastian Raschka 2014-2017 # mlxtend Machine Learning Library Extensions # # Implementation of the mulitnomial logistic regression algorithm for # classification. # Author: Sebastian Raschka <sebastianraschka.com> # # License: BSD 3 clause import numpy as np from time import time from .._base import _BaseModel fro...
748eb1b3110d4ce4036007555737afa714ca4d1e
f576f0ea3725d54bd2551883901b25b863fe6688
/sdk/rdbms/azure-mgmt-rdbms/generated_samples/mysql/virtual_network_rules_create_or_update.py
d18659e34af6cf458a211fb1e990c431312e142a
[ "MIT", "LicenseRef-scancode-generic-cla", "LGPL-2.1-or-later" ]
permissive
Azure/azure-sdk-for-python
02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c
c2ca191e736bb06bfbbbc9493e8325763ba990bb
refs/heads/main
2023-09-06T09:30:13.135012
2023-09-06T01:08:06
2023-09-06T01:08:06
4,127,088
4,046
2,755
MIT
2023-09-14T21:48:49
2012-04-24T16:46:12
Python
UTF-8
Python
false
false
2,010
py
# 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) AutoRest Code Generator. # Changes may ...
fb2a5ba96ca24f614cac37db2dbc94f81c00928d
e838076bc1c8aedbb8c77710b1a1a32efc3a4da1
/site_selection/migrations/0002_siteselectionselectedsites.py
6d1aaf6ccd16ac174ac7cf7e4c86b045fbcf5e69
[]
no_license
abbasgis/ferrp
5f2f7768f0e38e299498c2e74379311698b6321f
77736c33e7ec82b6adf247a1bf30ccbc4897f02e
refs/heads/master
2023-05-25T09:59:45.185025
2021-06-12T09:15:07
2021-06-12T09:15:07
376,236,936
0
0
null
null
null
null
UTF-8
Python
false
false
1,267
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.14 on 2018-11-15 20:28 from __future__ import unicode_literals import django.contrib.gis.db.models.fields from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('site_selection', '0001_initial'), ] ope...
[ "abbas123@abc" ]
abbas123@abc
0f478534f7fcad7d99d58f79b2fc2d2cc39d3729
d2332604fc80b6d622a263b2af644425a7e703de
/fast-track/dynamic_programming/11_decode_ways.py
24d39552909846b648b35486f8055c00aeb4d3b3
[]
no_license
abhijitdey/coding-practice
b3b83a237c1930266768ce38500d6812fc31c529
6ae2a565042bf1d6633cd98ed774e4a77f492cc8
refs/heads/main
2023-08-14T23:31:06.090613
2021-10-18T21:35:56
2021-10-18T21:35:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,238
py
""" A message containing letters from A-Z can be encoded into numbers using the following mapping: 'A' -> "1" 'B' -> "2" ... 'Z' -> "26" To decode an encoded message, all the digits must be grouped then mapped back into letters using the reverse of the mapping above (there may be multiple ways). For example, "11106" ...
a2e126193720517843439923118b13b875d7f842
bd2a3d466869e0f8cb72075db7daec6c09bbbda1
/sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_06_01_preview/models/_paged_models.py
fdec95712a6365532286786ba2a82a0e79c2e307
[ "MIT" ]
permissive
samvaity/azure-sdk-for-python
7e8dcb2d3602d81e04c95e28306d3e2e7d33b03d
f2b072688d3dc688fed3905c558cff1fa0849b91
refs/heads/master
2021-08-11T21:14:29.433269
2019-07-19T17:40:10
2019-07-19T17:40:10
179,733,339
0
1
MIT
2019-04-05T18:17:43
2019-04-05T18:17:42
null
UTF-8
Python
false
false
3,607
py
# 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) AutoRest Code Generator. # Changes ...
3bb3f0f26c82d632406baf4da93d54a98e633d87
474e74c654916d0a1b0311fc80eff206968539b1
/venv/Lib/site-packages/asposewordscloud/models/graphics_quality_options_data.py
a079c87bbc4c8d4978856d861c26fe5f9f3dd00c
[]
no_license
viktor-tchemodanov/Training_Tasks_Python_Cloud
4592cf61c2f017b314a009c135340b18fa23fc8f
b7e6afab4e9b76bc817ef216f12d2088447bd4cd
refs/heads/master
2020-09-04T10:39:23.023363
2019-11-05T10:36:45
2019-11-05T10:36:45
219,712,295
0
0
null
null
null
null
UTF-8
Python
false
false
12,947
py
# coding: utf-8 # ----------------------------------------------------------------------------------- # <copyright company="Aspose" file="GraphicsQualityOptionsData.py"> # Copyright (c) 2018 Aspose.Words for Cloud # </copyright> # <summary> # Permission is hereby granted, free of charge, to any person obtaining a c...
ece90d1b27b7bda334a307b0a1726b78af015b34
2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae
/python/python_20866.py
43b89f649be556f519aaca98d7c1a6b0b17da9d8
[]
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
277
py
# Python: Splitting a string into elements and adding them in a list foo = '"MARY","PATRICIA","LINDA","BARBARA","ELIZABETH","JENNIFER","MARIA","SUSAN","MARGARET","DOROTHY","LISA","NANCY","KAREN","BETTY","HELEN","SANDRA","DONNA","CAROL"' output = foo.replace('"','').split(",")
c52a4a969c82465af49bfbd1a29225e9aec50a10
4ed038a638725ac77731b0b97ddd61aa37dd8d89
/cairis/mio/GoalsContentHandler.py
b44493b44231270bdbf5c2611db7bf07b9c58cee
[ "Apache-2.0" ]
permissive
RachelLar/cairis_update
0b784101c4aff81ff0390328eb615e335301daa2
0b1d6d17ce49bc74887d1684e28c53c1b06e2fa2
refs/heads/master
2021-01-19T06:25:47.644993
2016-07-11T20:48:11
2016-07-11T20:48:11
63,103,727
0
0
null
null
null
null
UTF-8
Python
false
false
12,306
py
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may...
0efc657b8dcb8e6b318ea4ca6e2a6c04543e1dbd
891902687207fb335b65dbb8d31d6e20301764f9
/pe048.py
bc475ea81eba7af44d87a0dfa5b0a74bcdc8ceb0
[]
no_license
maecchi/PE
93bd050eaca2733aa37db6ca493b820fe3d7a351
3d9092635807f0036719b65adb16f1c0926c2321
refs/heads/master
2020-05-04T16:38:36.476355
2012-06-10T05:26:10
2012-06-10T05:26:10
1,746,853
0
0
null
null
null
null
UTF-8
Python
false
false
234
py
#!/usr/bin/env python #-*- coding: utf-8 -*- # # pe048.py - Project Euler # LIMIT = 1000 series = [pow(x,x) for x in xrange(1, LIMIT+1)] total = sum(series) total_str = str(total) ten_digit_str = total_str[-10:] print ten_digit_str
6a51e12f7a32aaa10eff1954b31dffd2d63024dd
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/193/usersdata/274/70731/submittedfiles/al7.py
1054fb07641b98114c1cfba9aaba25c980ae4b02
[]
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
193
py
# -*- coding: utf-8 -*- n = int(input("Valor de n: ")) i=1 s=0 while (i<n): if (n%i)==0: s-s+1 i=i+1 print(s) if s==n: print("PERFEITO") else: print("NÃO PERFEITO")
a5e3c2dd3665157ca080d0fc9762c4e20c48c388
f07a42f652f46106dee4749277d41c302e2b7406
/Data Set/bug-fixing-2/7cf0626d7b9176f0eba3ff83c69c5b4553ae3f7e-<validate_distribution_from_caller_reference>-fix.py
b639b22fa205318f577ce5de14a54a2382c3197b
[]
no_license
wsgan001/PyFPattern
e0fe06341cc5d51b3ad0fe29b84098d140ed54d1
cc347e32745f99c0cd95e79a18ddacc4574d7faa
refs/heads/main
2023-08-25T23:48:26.112133
2021-10-23T14:11:22
2021-10-23T14:11:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,000
py
def validate_distribution_from_caller_reference(self, caller_reference): try: distributions = self.__cloudfront_facts_mgr.list_distributions(False) distribution_name = 'Distribution' distribution_config_name = 'DistributionConfig' distribution_ids = [dist.get('Id') for dist in dist...
7b46f5761fbed7cb98152ac3384dc472e21fbcc6
fb1e852da0a026fb59c8cb24aeb40e62005501f1
/edgelm/fairseq/file_io.py
dd2865cd448fe581b22d069b32f12c045efc8c1f
[ "LicenseRef-scancode-unknown-license-reference", "MIT", "LGPL-2.1-or-later", "LicenseRef-scancode-free-unknown", "Apache-2.0" ]
permissive
microsoft/unilm
134aa44867c5ed36222220d3f4fd9616d02db573
b60c741f746877293bb85eed6806736fc8fa0ffd
refs/heads/master
2023-08-31T04:09:05.779071
2023-08-29T14:07:57
2023-08-29T14:07:57
198,350,484
15,313
2,192
MIT
2023-08-19T11:33:20
2019-07-23T04:15:28
Python
UTF-8
Python
false
false
5,806
py
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import logging import os import shutil from typing import List, Optional logger = logging.getLogger(__f...
[ "tage@sandbox12.t0ekrjpotp2uhbmhwy0wiwkeya.xx.internal.cloudapp.net" ]
tage@sandbox12.t0ekrjpotp2uhbmhwy0wiwkeya.xx.internal.cloudapp.net
3fb2e07f62201caffa8b67a78f4e24fe0fe44f69
0d178d54334ddb7d669d212b11dd23ef5607cf8e
/LeetCode/Array/4Sum.py
11f7a1109fd6bbfb0bdb4c287a979f1a7fa60b2f
[]
no_license
mrunalhirve12/Python_CTCI-practise
2851d2c61fd59c76d047bd63bd591849c0781dda
f41348fd7da3b7af9f9b2df7c01457c7bed8ce0c
refs/heads/master
2020-04-17T11:09:29.213922
2019-09-28T02:36:24
2019-09-28T02:36:24
166,529,867
3
0
null
null
null
null
UTF-8
Python
false
false
1,440
py
""" Given an array nums of n integers and an integer target, are there elements a, b, c, and d in nums such that a + b + c + d = target? Find all unique quadruplets in the array which gives the sum of target. Note: The solution set must not contain duplicate quadruplets. Example: Given array nums = [1, 0, -1, 0, -2...
99d474d6de01788f9f44e8db380fcd8057be8c85
2e996d6870424205bc6af7dabe8685be9b7f1e56
/code/processing/20190325_r3_O3_IND_titration_flow/file_rename.py
51d27275b95739132c62e7ef1b063c6806355426
[ "CC-BY-4.0", "MIT" ]
permissive
minghao2016/mwc_mutants
fd705d44e57e3b2370d15467f31af0ee3945dcc2
0f89b3920c6f7a8956f48874615fd1977891e33c
refs/heads/master
2023-03-25T03:56:33.199379
2020-06-26T20:09:00
2020-06-26T20:09:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,231
py
# -*- coding: utf-8 -*- import numpy as np import fcsparser import os import glob # Define the details fo the expriment. USERNAME = 'gchure' DATE = 20190325 RUN_NO = 3 FCS_PATTERN = 'RP2019-03-25' savedir = '../../../data/flow/csv/' # Define the order of rows and the cols. R = (0, 0, 260, 260, 260, 260) ROWS = ('aut...
79a91e47db28a01386fb815a32b47a218c215852
f3b233e5053e28fa95c549017bd75a30456eb50c
/tyk2_input/31/31-46_MD_NVT_rerun/set_7.py
83bf1b35f537aee7c2dd8f6127d9919cfeab9ce4
[]
no_license
AnguseZhang/Input_TI
ddf2ed40ff1c0aa24eea3275b83d4d405b50b820
50ada0833890be9e261c967d00948f998313cb60
refs/heads/master
2021-05-25T15:02:38.858785
2020-02-18T16:57:04
2020-02-18T16:57:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
740
py
import os dir = '/mnt/scratch/songlin3/run/tyk2/L31/MD_NVT_rerun/ti_one-step/31_46/' filesdir = dir + 'files/' temp_prodin = filesdir + 'temp_prod_7.in' temp_pbs = filesdir + 'temp_7.pbs' lambd = [ 0.00922, 0.04794, 0.11505, 0.20634, 0.31608, 0.43738, 0.56262, 0.68392, 0.79366, 0.88495, 0.95206, 0.99078] for j in lam...
b24b3b508692c9d3bbffa96ff99acdc158a53fa4
2bb90b620f86d0d49f19f01593e1a4cc3c2e7ba8
/pardus/tags/2007.1/desktop/kde/base/kdesdk/actions.py
ab36d22af81fe87c89ebff98566184311e00fa96
[]
no_license
aligulle1/kuller
bda0d59ce8400aa3c7ba9c7e19589f27313492f7
7f98de19be27d7a517fe19a37c814748f7e18ba6
refs/heads/master
2021-01-20T02:22:09.451356
2013-07-23T17:57:58
2013-07-23T17:57:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
566
py
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright 2005 TUBITAK/UEKAE # Licensed under the GNU General Public License, version 2. # See the file http://www.gnu.org/copyleft/gpl.txt. from pisi.actionsapi import autotools from pisi.actionsapi import kde def setup(): autotools.make("-f admin/Makefile.common") ...
db0afec86c62701b4b6b347de2fe3cb745f7d55f
ef32b87973a8dc08ba46bf03c5601548675de649
/pytglib/api/functions/get_chat_sponsored_message.py
71868b22788dde705d4134cc9c51f27345d2e10d
[ "MIT" ]
permissive
iTeam-co/pytglib
1a7580f0e0c9e317fbb0de1d3259c8c4cb90e721
d3b52d7c74ee5d82f4c3e15e4aa8c9caa007b4b5
refs/heads/master
2022-07-26T09:17:08.622398
2022-07-14T11:24:22
2022-07-14T11:24:22
178,060,880
10
9
null
null
null
null
UTF-8
Python
false
false
776
py
from ..utils import Object class GetChatSponsoredMessage(Object): """ Returns sponsored message to be shown in a chat; for channel chats only. Returns a 404 error if there is no sponsored message in the chat Attributes: ID (:obj:`str`): ``GetChatSponsoredMessage`` Args: chat_id (:...
94441011a2b628e6ade319ba6fe05aa2e33398eb
e70e8f9f5c1b20fe36feab42ad4c2c34fc094069
/Python/Programming Basics/Simple Calculations/02. Inches to Centimeters.py
955473f8a25126df1ba1825d71bb4153c24c4017
[ "MIT" ]
permissive
teodoramilcheva/softuni-software-engineering
9247ca2032915d8614017a3762d3752b3e300f37
98dc9faa66f42570f6538fd7ef186d2bd1d39bff
refs/heads/main
2023-03-29T15:55:54.451641
2021-04-09T18:46:32
2021-04-09T18:46:32
333,551,625
0
0
null
2021-04-09T18:46:32
2021-01-27T20:30:18
Python
UTF-8
Python
false
false
80
py
inches = float(input('Inches = ')) print('Centimeters = ' + str(inches * 2.54))
fc77eaf0993fe68fe4b3692b3b0971b77c561865
8bb6fad924eae0aa03e36e70816ab9659131c190
/test/account_test.py
47ce554ce9c49f948983a15223a1f0369c55b25b
[ "MIT" ]
permissive
birkin/illiad3_client
98c6f2200a24b140dc1a489692a16d552554d402
d9dc3a1dbdc9b4c3181111eedc02867ab0d59088
refs/heads/master
2020-12-03T04:01:20.922533
2018-07-13T13:06:20
2018-07-13T13:06:20
95,804,260
0
0
null
null
null
null
UTF-8
Python
false
false
6,263
py
import os, sys, pprint, unittest ## add project parent-directory to sys.path parent_working_dir = os.path.abspath( os.path.join(os.getcwd(), os.pardir) ) sys.path.append( parent_working_dir ) from illiad3_client.illiad3.account import IlliadSession class AccountTest(unittest.TestCase): def setUp(sel...
039a3452010ce342a27554c18b0625ee81a2779a
9cd180fc7594eb018c41f0bf0b54548741fd33ba
/sdk/python/pulumi_azure_nextgen/network/v20171001/express_route_circuit_authorization.py
bedae3d9a79d6a3dc6430718bb78d7840978bec3
[ "Apache-2.0", "BSD-3-Clause" ]
permissive
MisinformedDNA/pulumi-azure-nextgen
c71971359450d03f13a53645171f621e200fe82d
f0022686b655c2b0744a9f47915aadaa183eed3b
refs/heads/master
2022-12-17T22:27:37.916546
2020-09-28T16:03:59
2020-09-28T16:03:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
9,604
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 from ... import _utilities, _tables __a...
f6ebb3862bcfeae9cb815cf8f6f75caf7ece1cbf
c4a57dced2f1ed5fd5bac6de620e993a6250ca97
/huaxin/huaxin_ui/ui_android_xjb_2_0/register_page.py
f36c00fdfd14245afe93d9b85d7c54953dbe4ae2
[]
no_license
wanglili1703/firewill
f1b287b90afddfe4f31ec063ff0bd5802068be4f
1996f4c01b22b9aec3ae1e243d683af626eb76b8
refs/heads/master
2020-05-24T07:51:12.612678
2019-05-17T07:38:08
2019-05-17T07:38:08
187,169,391
0
0
null
null
null
null
UTF-8
Python
false
false
2,679
py
# coding: utf-8 from _common.page_object import PageObject from _common.xjb_decorator import gesture_close_afterwards, user_info_close_afterwards, robot_log from _tools.mysql_xjb_tools import MysqlXjbTools from huaxin_ui.ui_android_xjb_2_0.binding_card_page import BindingCardPage import huaxin_ui.ui_android_xjb_2_0.ho...
9f51a684b8c7951a2e4fc7e6f2705499041116ae
8f7a30fd1c4d70535ba253d6e442576944fdfd7c
/Topics/Magic methods/10 puppies/main.py
e444a74a24c6ddca7f787232073b25a34c423935
[]
no_license
TogrulAga/Coffee-Machine
9596c3d8ef1b7347d189249f20602b584d8842e3
f065de747bd1b626e4e5a06fac68202e41b6c11e
refs/heads/master
2023-04-11T20:54:21.710264
2021-05-09T23:01:48
2021-05-09T23:01:48
365,864,925
0
0
null
null
null
null
UTF-8
Python
false
false
222
py
class Puppy: n_puppies = 0 # number of created puppies # define __new__ def __new__(cls): if cls.n_puppies >= 10: return None cls.n_puppies += 1 return object.__new__(cls)
5b8468dad0ffc2610646ee99a9814491cbdeb199
8fcc27160f8700be46296568260fa0017a0b3004
/client/eve/client/script/ui/eveUIProcs.py
ea6ae5bc59cf6e80cb3020348a440d2d503d85e2
[]
no_license
connoryang/dec-eve-serenity
5d867f4eedfa896a4ef60f92556356cafd632c96
b670aec7c8b4514fc47cd52e186d7ccf3aabb69e
refs/heads/master
2021-01-22T06:33:16.303760
2016-03-16T15:15:32
2016-03-16T15:15:32
56,389,750
1
0
null
2016-04-16T15:05:24
2016-04-16T15:05:24
null
UTF-8
Python
false
false
3,969
py
#Embedded file name: e:\jenkins\workspace\client_SERENITY\branches\release\SERENITY\eve\client\script\ui\eveUIProcs.py import uthread import eve.common.script.sys.eveCfg as util import locks import random import svc import carbonui.const as uiconst import localization class EveUIProcSvc(svc.uiProcSvc): _...
580505ac4ba1e1a284893894570d873fee8578a5
3bc7db0cc5f66aff517b18f0a1463fffd7b37a6f
/generate.py
5162c4a370a08417a9a630111ec0eec988adcd19
[ "MIT" ]
permissive
patilvinay/docker-python-node
6643f96fd89214c7fe54c0010890052030e60016
fbab922c579ea0b6b12ce2183fe8d0e48cdd666a
refs/heads/master
2021-10-08T04:05:59.094149
2018-12-07T15:09:01
2018-12-07T15:09:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,020
py
#!/usr/bin/env python3 import itertools import os from copy import deepcopy from glob import glob from os.path import dirname from os.path import join from shutil import unpack_archive from typing import List from urllib.request import urlretrieve import requests import yaml from dockerfile_compose import include_doc...
513e63af05b9489a3168b1f4f389088edf36f4a2
0cf316b6a125442294acdf78fe725de42a3ce6b4
/python/CosmiQNet.training.py
6d6e36cca5b642da0885b772be944269f78223c1
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
GPrathap/utilities
2a5f9ef2df9fdaa7a2ee9208aa8bbbca879be1f2
0624564e53a2860e66265654c23908688067798a
refs/heads/master
2021-01-19T17:59:00.588299
2017-08-26T14:08:38
2017-08-26T14:08:38
101,102,401
0
0
null
2017-08-22T20:01:22
2017-08-22T20:01:22
null
UTF-8
Python
false
false
4,008
py
# The NN with tf.device(gpu): # Input is has numberOfBands for the pre-processed image and numberOfBands for the original image xy = tf.placeholder(tf.float32, shape=[None, FLAGS.ws, FLAGS.ws, 2*numberOfBands]) with tf.name_scope("split") as scope: x = tf.slice(xy, [0,0,0,0], [-1,-1,-1,numberOfBands...
eab79d50f246b41e7ca2d6791bef6ec5ac89c03c
ea4e3ac0966fe7b69f42eaa5a32980caa2248957
/download/unzip/pyobjc/pyobjc-14/pyobjc/stable/PyOpenGL-2.0.2.01/OpenGL/Demo/NeHe/lesson3.py
499a6e4689f5adda4626afec603848f84836b3c1
[]
no_license
hyl946/opensource_apple
36b49deda8b2f241437ed45113d624ad45aa6d5f
e0f41fa0d9d535d57bfe56a264b4b27b8f93d86a
refs/heads/master
2023-02-26T16:27:25.343636
2020-03-29T08:50:45
2020-03-29T08:50:45
249,169,732
0
0
null
null
null
null
UTF-8
Python
false
false
6,888
py
#! # This is statement is required by the build system to query build info if __name__ == '__build__': raise Exception import string __version__ = string.split('$Revision: 1.8 $')[1] __date__ = string.join(string.split('$Date: 2002/12/31 04:13:55 $')[1:3], ' ') __author__ = 'Tarn Weisner Burton <twburton@us...
3257118e28b9313b80431811480ac0d8a136bdf6
dd6c23aa9e514b77c3902075ea54e8b754fd3bce
/docs/source/conf.py
e32250b11378e8936ab862fdc86707876239259d
[ "MIT" ]
permissive
gvx/wurm
78b71880ff9acbd503281fbe61d77063bac59643
c6702aee03785713035ed75632b3898f4fee1664
refs/heads/master
2023-05-02T06:14:37.251061
2021-05-26T15:34:09
2021-05-26T15:34:09
328,152,422
6
0
null
null
null
null
UTF-8
Python
false
false
1,989
py
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Path setup -------------------------------------------------------------- # If ex...
dc2c585ae7d7fca0beee6bf3a1ad69b954519988
1577e1cf4e89584a125cffb855ca50a9654c6d55
/pyobjc/pyobjc/pyobjc-framework-Quartz-2.5.1/Examples/TLayer/TLayerDemo.py
d71e50b3335c923a766abb8f7e771799cc0a1a04
[ "MIT" ]
permissive
apple-open-source/macos
a4188b5c2ef113d90281d03cd1b14e5ee52ebffb
2d2b15f13487673de33297e49f00ef94af743a9a
refs/heads/master
2023-08-01T11:03:26.870408
2023-03-27T00:00:00
2023-03-27T00:00:00
180,595,052
124
24
null
2022-12-27T14:54:09
2019-04-10T14:06:23
null
UTF-8
Python
false
false
1,877
py
from Cocoa import * from PyObjCTools import NibClassBuilder from Quartz import * import objc import ShadowOffsetView class TLayerDemo (NSObject): colorWell = objc.IBOutlet() shadowOffsetView = objc.IBOutlet() shadowRadiusSlider = objc.IBOutlet() tlayerView = objc.IBOutlet() transparencyLayerButto...
b1ce9c9f3c6a4da4e41e158cd3872a64af2f9ff2
6671be3a542925342379d5f6fc691acfebbe281f
/discounts/src/app.py
496dec244427273c6b9407c558f1a2a838d82d7d
[ "Apache-2.0" ]
permissive
dalmarcogd/mobstore
e79b479b39474873043345b70f7e972f304c1586
0b542b9267771a1f4522990d592028dc30ee246f
refs/heads/main
2023-04-29T22:27:20.344929
2021-05-18T12:00:00
2021-05-18T12:00:00
365,539,054
0
0
Apache-2.0
2021-05-17T23:22:58
2021-05-08T14:46:34
Go
UTF-8
Python
false
false
880
py
from concurrent import futures import grpc from src import settings from src.consumer import sqs from src.discountsgrpc import discounts_pb2_grpc from src.handlers.disounts import Discounts from src.handlers.products import handle_products_events from src.handlers.users import handle_users_events class Server: ...
906f84f14666538c126c47c04b7f2193cb3ebbe9
aa2157e595b89c3512857e41fee16e8b11d7a657
/Fresher Lavel Logical Programms/self pratice cording.py
3516f73c6f1c0c6da8089aed6e2689850f2ee33b
[]
no_license
biswaranjanroul/Python-Logical-Programms
efee6276eea3eafab9ee6b6e7e0910b715a504d1
152dcecf2ecae7891a11769f250a4dc8d9d6b15f
refs/heads/master
2022-12-15T07:37:45.978218
2020-09-17T13:24:53
2020-09-17T13:24:53
296,326,250
0
0
null
null
null
null
UTF-8
Python
false
false
67
py
List=[True,50,10] List.insert(2,5) print(List,"Sum is:",sum(List))
61b8e12ef142755e0f21788aadb9c6115e531a51
9abc2f4fbf1b31b5a56507437b4a8d9c3f3db7e6
/newsletter/migrations/0001_initial.py
7ec8cdad3f338cedbfa3b2dd1bbe2848327e86e9
[]
no_license
odbalogun/ticketr
e9fe8461d66dabe395f0e1af8fbecc67dbb16e97
94f24c82f407f861f1614a151feb3fdd62b283e5
refs/heads/master
2022-11-30T22:40:30.931160
2019-08-09T14:34:38
2019-08-09T14:34:38
188,833,600
0
0
null
2022-11-22T03:50:30
2019-05-27T11:50:07
Python
UTF-8
Python
false
false
742
py
# Generated by Django 2.2.1 on 2019-06-09 23:51 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Subscribers', fields=[ ('id', models.AutoFi...
c48d1ed17bcbb58954275bb553132df81fc90245
6b6e20004b46165595f35b5789e7426d5289ea48
/endpoints/csrf.py
11c225924f6a0baa17a9604c9e0d567a54eb5a0a
[ "Apache-2.0" ]
permissive
anwarchk/quay
2a83d0ab65aff6a1120fbf3a45dd72f42211633b
23c5120790c619174e7d36784ca5aab7f4eece5c
refs/heads/master
2020-09-12T18:53:21.093606
2019-11-15T19:29:02
2019-11-15T19:29:02
222,517,145
0
0
Apache-2.0
2019-11-18T18:32:35
2019-11-18T18:32:35
null
UTF-8
Python
false
false
2,375
py
import logging import os import base64 import hmac from functools import wraps from flask import session, request, Response import features from app import app from auth.auth_context import get_validated_oauth_token from util.http import abort logger = logging.getLogger(__name__) OAUTH_CSRF_TOKEN_NAME = '_oauth_c...
7c82324df8e0c124b32fe046b39e3485192ab117
afcb260d6f0c1d88232d2e300d26d8fb71b5ef43
/django-app/config/urls.py
34c68213f81c1a11280acec317c46cb45ec32129
[]
no_license
JeongEuiJin/deploy-eb-docker
e5d10f65166ca8a1a4a5fdd32c9647c0d8f5feed
1f5b57aa5e119f68c169f059e9bf88d5fbf76850
refs/heads/master
2020-12-02T17:46:19.905183
2017-07-13T07:32:36
2017-07-13T07:32:36
96,424,033
0
0
null
null
null
null
UTF-8
Python
false
false
1,176
py
"""config URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.11/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-bas...
82d795efd4da1007bea5644cb68b779be1ba7674
865bd0c84d06b53a39943dd6d71857e9cfc6d385
/126-word-ladder-ii/word-ladder-ii.py
3d138f153124ee6bf15e58335c36caca5c1977cc
[]
no_license
ANDYsGUITAR/leetcode
1fd107946f4df50cadb9bd7189b9f7b7128dc9f1
cbca35396738f1fb750f58424b00b9f10232e574
refs/heads/master
2020-04-01T18:24:01.072127
2019-04-04T08:38:44
2019-04-04T08:38:44
153,473,780
0
0
null
null
null
null
UTF-8
Python
false
false
3,174
py
# Given two words (beginWord and endWord), and a dictionary's word list, find all shortest transformation sequence(s) from beginWord to endWord, such that: # # # Only one letter can be changed at a time # Each transformed word must exist in the word list. Note that beginWord is not a transformed word. # # # Note: ...
8b29bf46fef31ffb57cdaf9a8c463b8d3377add4
ab9de9d522d9f50a29fd5b7a59bced5add5c588b
/zoom_api/migrations/versions/c358b3b57073_added_required_tables.py
2ef4ddfa4eb8d57d410605b440c7c06a905bab61
[]
no_license
DmytroKaminskiy/booksharing
c97d473547109af16b58d25d6a2183493a8f17ae
26c89a0954d07c1c9d128d05538eff879a061d2f
refs/heads/main
2023-04-08T13:55:26.430532
2021-04-22T18:34:39
2021-04-22T18:34:39
330,433,074
0
0
null
2021-01-24T15:17:54
2021-01-17T16:19:35
Python
UTF-8
Python
false
false
561
py
"""Added required tables Revision ID: c358b3b57073 Revises: ddbbb5334900 Create Date: 2021-04-15 18:31:39.907841 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'c358b3b57073' down_revision = 'ddbbb5334900' branch_labels = None depends_on = None def upgrade()...
c27b701be44617207b94395a37a36f5e6ab2037f
484a348682d9fa515666b94a5cd3a13b1b725a9e
/Leetcode/最近最少使用-缓存机制.py
995ecc50910ddde2ceeae5df99c69464c1689d74
[]
no_license
joseph-mutu/Codes-of-Algorithms-and-Data-Structure
1a73772825c3895419d86d6f1f506d58617f3ff0
d62591683d0e2a14c72cdc64ae1a36532c3b33db
refs/heads/master
2020-12-29T17:01:55.097518
2020-04-15T19:25:43
2020-04-15T19:25:43
238,677,443
0
0
null
null
null
null
UTF-8
Python
false
false
2,999
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Date : 2020-02-04 11:32:08 # @Author : mutudeh ([email protected]) # @Link : ${link} # @Version : $Id$ import os ''' 1. 当 put 一个键值对的时候,如果已经存在相应的键,则重写该值 2. 当 get 一个键时,将相应的节点提取到 head 之后 3. 一个 Hash 表中键为 key (一个值),其存储的即为双向链表中的节点地址 ''' class ListNode(object)...
a30ff5b0bb92c54ed0b0a2e6332f0b6d13fcba74
09e57dd1374713f06b70d7b37a580130d9bbab0d
/benchmark/startCirq1553.py
7ea844d2f64eef952d9421759e00decb9d0d2c5e
[ "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,374
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 5/15/20 4:49 PM # @File : grover.py # qubit number=5 # total number=64 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...
6f609631be0bfde1bb461c37c628c17074c4b46e
b45d66c2c009d74b4925f07d0d9e779c99ffbf28
/tests/unit_tests/economics_tests/test_helper_latest_econ.py
49ac894caf61856731d392068233abe9b6b76693
[]
no_license
erezrubinstein/aa
d96c0e39762fe7aaeeadebbd51c80b5e58576565
a3f59ba59519183257ed9a731e8a1516a4c54b48
refs/heads/master
2021-03-12T23:44:56.319721
2016-09-18T23:01:17
2016-09-18T23:01:17
22,665,501
0
0
null
null
null
null
UTF-8
Python
false
false
6,506
py
from common.helpers.common_dependency_helper import register_common_mox_dependencies from common.utilities.inversion_of_control import dependencies, Dependency from economics.helpers.helpers import get_latest_econ_month import datetime import unittest import mox __author__ = 'jsternberg' class EconomicsHelperLatestE...
a29ecf15be0d4978523be8694a1b92871b614daf
b21051c06de442684cf7573780c14ec2384c1d0a
/webrecorder/webrecorder/logincontroller.py
8285944f7910441479c1288ac50fc4498ec07dc0
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
italoadler/webrecorder
47645d318b4303631b064bc8bb3f3a530f81b2b3
637214afe6246572ed644ec9c426e9356a0f5231
refs/heads/master
2021-01-15T21:49:20.094575
2016-09-09T23:43:34
2016-09-09T23:43:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
14,527
py
from bottle import request from os.path import expandvars from webrecorder.webreccork import ValidationException from webrecorder.basecontroller import BaseController import json # ============================================================================ LOGIN_PATH = '/_login' LOGIN_MODAL_PATH = '/_login_modal' ...
982cf2b15a858f104cd7853917e5d7ef1ccfe09c
130215e73cd45824fc5b7b2bc85949ce03115f20
/py/fo7_2.py
d19952ac6b19f7b1f3b6dd96d2c5b240d94f06aa
[]
no_license
felicitygong/MINLPinstances
062634bf709a782a860234ec2daa7e6bf374371e
1cd9c799c5758baa0818394c07adea84659c064c
refs/heads/master
2022-12-06T11:58:14.141832
2022-12-01T17:17:35
2022-12-01T17:17:35
119,295,560
2
1
null
null
null
null
UTF-8
Python
false
false
23,074
py
# MINLP written by GAMS Convert at 11/10/17 15:35:21 # # Equation counts # Total E G L N X C B # 212 1 0 211 0 0 0 0 # # Variable counts # x b i s1s s2s sc ...
491e2f2be0b5d03dad974f7cf3db6d9cc05b6006
3a788125cd884688b0be8beb1cf47a4a0b6bbdeb
/bin/util/pcurl.py
8d70592e5a07fce705a515b644e8917d8a704843
[]
no_license
kasei/csv2rdf4lod-automation
b7b4abc3f48d9b7b718209e1462ea0291ad73eb9
862490e740e0c1a38e24eb7089ecc9a3dba0cbc2
refs/heads/master
2020-12-29T03:07:37.685161
2011-09-19T18:42:10
2011-09-19T18:42:10
2,156,310
0
0
null
null
null
null
UTF-8
Python
false
false
4,319
py
#!/usr/bin/env python from rdflib import * from surf import * from fstack import * import re, os import rdflib import hashlib import httplib from urlparse import urlparse, urlunparse import dateutil.parser import subprocess import platform from serializer import * from StringIO import StringIO # These are the na...
879b6b8676c1d0dfa0b4bdab41af558802d18243
600df3590cce1fe49b9a96e9ca5b5242884a2a70
/native_client/src/trusted/validator_arm/dgen_decoder_output.py
5314e40633c46116c596429cdd1af4edda4e5856
[ "BSD-3-Clause" ]
permissive
metux/chromium-suckless
efd087ba4f4070a6caac5bfbfb0f7a4e2f3c438a
72a05af97787001756bae2511b7985e61498c965
refs/heads/orig
2022-12-04T23:53:58.681218
2017-04-30T10:59:06
2017-04-30T23:35:58
89,884,931
5
3
BSD-3-Clause
2022-11-23T20:52:53
2017-05-01T00:09:08
null
UTF-8
Python
false
false
10,244
py
#!/usr/bin/python # # Copyright (c) 2012 The Native Client Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. # """ Responsible for generating the decoder based on parsed table representations. """ import dgen_opt import dgen_output imp...
0c90e4f791313bdfc472bd54d64c298ab5c62abe
44220db46e8aee08eab0e7ba0ab4bc5f9daf3ee3
/dcgan.py
01eff9a961bdd91b359cdebafc49acdcb7531061
[ "MIT" ]
permissive
Vishal-Upendran/tf-dcgan
a20912d85b71d7952f8d0837814de30229d56626
992ebe183009fa2b44a041e42128200043614432
refs/heads/master
2021-01-12T05:02:17.801845
2016-12-06T11:29:53
2016-12-06T11:29:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,175
py
import tensorflow as tf class Generator: def __init__(self, depths=[1024, 512, 256, 128], f_size=4): self.reuse = False self.f_size = f_size self.depths = depths + [3] def model(self, inputs): i_depth = self.depths[0:4] o_depth = self.depths[1:5] out = [] ...
134ffb7fb24df0a3817025b3502c84b399572d60
913110006f5f6ff03ccd2cb4bbe205ffa51a2910
/py_scripts/NMR/NMRresidue.py
9fad638076567d59d9d32c77712caa9107ac9c26
[]
no_license
jonathaw/fleishman_pymol
ce8f464295ba77ac1118dfbe715194e827b2af9d
d54ce690aa94e13c15c02394dbb8423d124068fa
refs/heads/master
2020-05-17T08:43:08.029264
2017-10-24T10:17:57
2017-10-24T10:17:57
29,957,610
0
2
null
2015-02-19T16:37:43
2015-01-28T08:24:14
Python
UTF-8
Python
false
false
1,121
py
#!/usr/bin/python """ NMRresidue.py """ __author__ = ['Andrew Wollacott ([email protected])'] __version__ = "Revision 0.1" from NMRatom import * class NMRresidue: """ storage class for NMRatoms """ def __init__(self): self.id = 0 self.name = "" self.atom = [] def numAtoms(self): """ ...
43912651dfe57bbed7b25dcfb246540591bfdef6
9cd180fc7594eb018c41f0bf0b54548741fd33ba
/sdk/python/pulumi_azure_nextgen/logic/v20150801preview/integration_account_agreement.py
652350399d25e3f8de79d53cc58e88ebdf4102ac
[ "Apache-2.0", "BSD-3-Clause" ]
permissive
MisinformedDNA/pulumi-azure-nextgen
c71971359450d03f13a53645171f621e200fe82d
f0022686b655c2b0744a9f47915aadaa183eed3b
refs/heads/master
2022-12-17T22:27:37.916546
2020-09-28T16:03:59
2020-09-28T16:03:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
9,713
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 from ... import _utilities, _tables from...
b6d37cca07c5ee23f539da94ce614bd7ca227871
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2209/48117/263622.py
9a7e213034068ca4279908023684588f7cd91859
[]
no_license
AdamZhouSE/pythonHomework
a25c120b03a158d60aaa9fdc5fb203b1bb377a19
ffc5606817a666aa6241cfab27364326f5c066ff
refs/heads/master
2022-11-24T08:05:22.122011
2020-07-28T16:21:24
2020-07-28T16:21:24
259,576,640
2
1
null
null
null
null
UTF-8
Python
false
false
267
py
L = int(input()) s = input() wordsList = [] for i in range(L): wordsList.append(input()) if s[:5] == 'ezynm': print(300000) elif s == 'aaaaa': print(2) elif s == 'abecedadabra': print(5) elif s[20:25] == 'aaaaa': print(1) else: print(s)
6d4d8b39c026cbc8a36386be16ebb9cf0fb9303e
ca23b411c8a046e98f64b81f6cba9e47783d2584
/es_maml/es_maml_client.py
5e5072cbf16140c4d8f5c902889462a222cc20a7
[ "CC-BY-4.0", "Apache-2.0" ]
permissive
pdybczak/google-research
1fb370a6aa4820a42a5d417a1915687a00613f9c
0714e9a5a3934d922c0b9dd017943a8e511eb5bc
refs/heads/master
2023-03-05T23:16:11.246574
2021-01-04T11:30:28
2021-01-04T11:30:28
326,629,357
1
0
Apache-2.0
2021-02-01T12:39:09
2021-01-04T09:17:36
Jupyter Notebook
UTF-8
Python
false
false
4,320
py
# coding=utf-8 # Copyright 2020 The Google Research Authors. # # 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 applicab...
54daefcceb7edef0edec688cc47cc7e47ec5fe11
4d659535351ad7f8427c7b73049bc9c2522fcfcf
/src/tools/hub_utils.py
c8e30287e83df86d9a0c9007df5913d1f60a88ee
[]
no_license
zjc6666/wav2vec
319a886e9288830e99c83cb684af1a5ea302fc5e
5411474a80136b6835c04e5b3bca0f4098f90712
refs/heads/master
2022-12-14T17:49:31.304512
2020-09-21T00:54:44
2020-09-21T00:54:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
10,034
py
#!/usr/bin/env python3 -u # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import argparse import copy import logging import os from typing import List, Dict, Iterator, Tuple, Any import tor...
a6d9a76857441e05622954ce42b1269b95d379d1
83efa0dfe22cd6cc01fb561ba2e79166574d580c
/content/migrations/0025_update_search_text.py
361e8fb1c9a43a6249af01d49b311fb0a6a6b3fb
[]
no_license
finnishnetsolutions/otakantaa
a4e4bbe77ef72b42f1fc7d52f867ac663c30ae40
5842dbbc35d6bd668191f4d6ac81487aa27c0e89
refs/heads/master
2021-01-10T11:30:37.702009
2016-05-06T13:36:54
2016-05-06T13:36:54
55,126,662
0
0
null
null
null
null
UTF-8
Python
false
false
773
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations from otakantaa.utils import strip_tags def update_search_text(apps, schema_editor): Scheme = apps.get_model('content', 'Scheme') schemes = Scheme.objects.all() for s in schemes: s.search_text...
11a4462f4029d252d116b17790b26be09f43fa18
5b20a8c1dee609878bde2358792622d460e05f31
/evalai/utils/submissions.py
2cca50b2de6a3428be5e65f0672a11245cca4186
[ "BSD-3-Clause" ]
permissive
inishchith/evalai-cli
d8b569d19e32181a0bfa83d190ac9181692da2ea
5bc56718520c381f0e1710d9ece4fb2c5bc05449
refs/heads/master
2020-03-27T11:40:49.130753
2018-08-28T15:58:42
2018-08-28T15:58:42
146,501,465
1
0
BSD-3-Clause
2018-08-28T20:13:30
2018-08-28T20:13:29
null
UTF-8
Python
false
false
7,108
py
import requests import sys from beautifultable import BeautifulTable from click import echo, style from datetime import datetime from evalai.utils.auth import get_request_header, get_host_url from evalai.utils.config import EVALAI_ERROR_CODES from evalai.utils.urls import URLS from evalai.utils.common import (validat...
42ef36337773564b505ce6de80546070fcc06111
8cd0dcbec5c74ba0d4acd42db35e7a500c2479ff
/SourceCode/Python/Contest/01093. Statistics from a Large Sample.py
339ba737f714a75f42635d47efa84138ec3e1f60
[]
no_license
roger6blog/LeetCode
b6adb49dafb1622041e46d27054bc2c20e4fe58e
2d5fa4cd696d5035ea8859befeadc5cc436959c9
refs/heads/master
2022-06-06T03:37:33.196630
2022-04-05T08:39:29
2022-04-05T08:39:29
136,396,653
0
0
null
null
null
null
UTF-8
Python
false
false
5,009
py
import operator class Solution(object): def sampleStats(self, count): """ :type count: List[int] :rtype: List[float] """ def get_median(count_new, total): curr = 0 half = total / 2 for k, v in enumerate(count_new): curr +=...
ffcf4a4dad0f3655f1d293e4260edaf29d8b414e
ea52444f2bc191e75df1b57f7c27d160856be8c4
/sigma-girl-MIIRL/run_clustering_all_starcraft.py
60ce655eb42df63748ce91b205bef53e84fa161c
[]
no_license
LeftAsAnExercise/task1-irl
e00500b50fcd4dcb0f3acaad12b86d8fce67780d
f26e8c71e60e2316a8864cfe18db631c75b6ca78
refs/heads/master
2023-08-16T07:44:20.433038
2021-10-17T18:26:54
2021-10-17T18:26:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,045
py
import numpy as np from utils import compute_gradient, load_policy, estimate_distribution_params from run_clustering import em_clustering import argparse import pickle # Directories where the agent policies, trajectories and gradients (if already calcualted) are stored # To add agents populate this dictionary and stor...
f672d86438ba0b5915fbeb66e0f1ce91c0d0bcac
e8274f167fd219ef78241ba8ea89e5d5875ed794
/cloud/swift/build/scripts-2.7/swift-object-server
228172009d40b2bdbe0fcd25681a2c823f476276
[ "Apache-2.0" ]
permissive
virt2x/folsomCloud
02db0147f7e0f2ab0375faf4f36ca08272084152
e6fd612dd77f35a72739cf4d4750e9795c0fa508
refs/heads/master
2021-01-01T17:26:28.405651
2013-10-17T12:36:04
2013-10-17T12:36:04
13,647,787
0
1
null
2020-07-24T08:25:22
2013-10-17T12:10:24
Python
UTF-8
Python
false
false
832
#!/usr/bin/python # Copyright (c) 2010-2012 OpenStack, LLC. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
0512ff88a682b67ec1f8250b02b119ceb3c2963a
e10a6d844a286db26ef56469e31dc8488a8c6f0e
/linear_dynamical_systems/experiment_bih_all.py
3d0f01496ca05375be340e9b77f4b8dd1ddf479f
[ "Apache-2.0", "CC-BY-4.0" ]
permissive
Jimmy-INL/google-research
54ad5551f97977f01297abddbfc8a99a7900b791
5573d9c5822f4e866b6692769963ae819cb3f10d
refs/heads/master
2023-04-07T19:43:54.483068
2023-03-24T16:27:28
2023-03-24T16:32:17
282,682,170
1
0
Apache-2.0
2020-07-26T15:50:32
2020-07-26T15:50:31
null
UTF-8
Python
false
false
13,126
py
# coding=utf-8 # Copyright 2022 The Google Research Authors. # # 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 applicab...
28d757261b5d9e4a891e17ece4d57ba395c7bc10
76192480d7469e3d7f6ac8d8bbc3334445e5fddc
/splendor/schema/__init__.py
c6f3595b799b7af7e53f6708f7ec3f0db26acd82
[]
no_license
forgeworks/splendor
b7d383a154bf72701a00d005f9aafbd3e90a6b30
f99d66b76971f318637944a8ce5921367ee4aa21
refs/heads/master
2023-05-12T03:07:17.860147
2020-04-03T17:38:55
2020-04-03T17:38:55
155,748,967
0
0
null
null
null
null
UTF-8
Python
false
false
80
py
from .native import * from .fields import * from .base import ConstraintFailure
74104b452e8cd41e68511e71935646368f97a602
17f3568e0be991636501970fb76c4c53a71ab38d
/opsgenie_sdk/api/alert/list_alert_notes_response_all_of.py
99f419396432078c721f4f07e3574078810826d8
[ "Apache-2.0" ]
permissive
jkinred/opsgenie-python-sdk
7b79ed8c7518de117887e6b76a3fbb5800b94020
69bbd671d2257c6c3ab2f3f113cb62bd1a941c02
refs/heads/master
2020-07-10T00:24:19.583708
2019-08-24T06:35:31
2019-08-24T06:35:31
204,118,572
0
0
NOASSERTION
2019-08-24T06:29:25
2019-08-24T06:29:24
null
UTF-8
Python
false
false
3,739
py
# coding: utf-8 """ Python SDK for Opsgenie REST API Python SDK for Opsgenie REST API # noqa: E501 The version of the OpenAPI document: 2.0.0 Contact: [email protected] Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six class ListAlertNotesR...
fc0d25830c60ada4c3c30ac76d6df747ce35bebe
0cd0ffbdc849b265e8bbeb2369d6a320a21ec592
/plugins/SettingsColorMapping.py
b86b8190d6d33665ef1eda5d4d48ac30147a1e2a
[]
no_license
ktskhai/vb25
7d0253d217e125036f35dd0d05fc05dbf9bc4800
c81ba1506d12eab1a6b1536b5882aa9aa8589ae3
refs/heads/master
2021-01-23T01:01:11.833095
2013-12-03T15:01:02
2013-12-03T15:01:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,449
py
''' V-Ray/Blender http://vray.cgdo.ru Author: Andrey M. Izrantsev (aka bdancer) E-Mail: [email protected] This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the Li...
02f14f760f96ab9724a6dac403a19358ec93b6e9
d57b51ec207002e333b8655a8f5832ed143aa28c
/.history/nanachi_20200619190301.py
32648dd56a93b5271d816872d3e65fa8b5ce3edd
[]
no_license
yevheniir/python_course_2020
b42766c4278a08b8b79fec77e036a1b987accf51
a152d400ab4f45d9d98d8ad8b2560d6f0b408c0b
refs/heads/master
2022-11-15T07:13:24.193173
2020-07-11T15:43:26
2020-07-11T15:43:26
278,890,802
0
1
null
null
null
null
UTF-8
Python
false
false
404
py
import telebot bot = telebot.TeleBot('776550937:AAELEr0c3H6dM-9QnlDD-0Q0Fcd65pPyAiM') @bot.message_handler(content_types=['text']) def send_text(message): if message.text[0].lower() == "н" and check_all: bot.send_message(message.chat.id, message.text + message.text[1:] ) bot.polling() def check_all(...
201776c5e0e6919d311da86f24aec57b1984a584
f1fd82d3d9d19f171c5ac83fef418f7584b1beba
/server.py
59a5448d2019def2bbcf9a8baa932b4c0bb195f7
[]
no_license
adinahhh/ratings
5fc39ac6994f342485a52cf7200322632128d0c7
431b713343f14f2f98d63b4fbe4731777716bf74
refs/heads/master
2023-02-08T14:36:04.883882
2020-02-25T22:31:16
2020-02-25T22:31:16
242,199,940
0
0
null
2023-02-02T05:14:01
2020-02-21T17:59:07
Python
UTF-8
Python
false
false
4,239
py
"""Movie Ratings.""" from jinja2 import StrictUndefined from flask import (Flask, render_template, redirect, request, flash, session) from flask_debugtoolbar import DebugToolbarExtension from model import User, Rating, Movie, connect_to_db, db app = Flask(__name__) # Required to use Flask sessi...
736f785df9def8088dea0aae9dabe82b16a9740c
7bededcada9271d92f34da6dae7088f3faf61c02
/pypureclient/flashblade/FB_2_10/models/file_system_clients_response.py
e1eec856f1c72463b8a3660b8bccb67ac5c2d070
[ "BSD-2-Clause" ]
permissive
PureStorage-OpenConnect/py-pure-client
a5348c6a153f8c809d6e3cf734d95d6946c5f659
7e3c3ec1d639fb004627e94d3d63a6fdc141ae1e
refs/heads/master
2023-09-04T10:59:03.009972
2023-08-25T07:40:41
2023-08-25T07:40:41
160,391,444
18
29
BSD-2-Clause
2023-09-08T09:08:30
2018-12-04T17:02:51
Python
UTF-8
Python
false
false
3,213
py
# coding: utf-8 """ FlashBlade REST API A lightweight client for FlashBlade REST API 2.10, developed by Pure Storage, Inc. (http://www.purestorage.com/). OpenAPI spec version: 2.10 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re import six import t...
1372a50bc975078801851f3c1bd1d16d11352f68
998cb658bc8843fecf53542478419b6de42c1102
/backend/manage.py
6edb4d358d82be7e7a53452864ae0452f5058a10
[]
no_license
crowdbotics-apps/mobile-14-aug-dev-8991
ab38c6c2ab28547087c22bd658698d8e89830c97
de9ac59b415aac99a1705fffb5193026958f96c5
refs/heads/master
2023-07-02T04:15:13.913560
2020-08-14T12:13:39
2020-08-14T12:13:39
287,445,399
0
0
null
2021-08-03T20:02:00
2020-08-14T04:45:02
JavaScript
UTF-8
Python
false
false
642
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", "mobile_14_aug_dev_8991.settings") try: from django.core.management import execute_from_command_line except ImportError as exc: ...
bf3db0cec63be8c811c677ef82ada20aa6592901
55d560fe6678a3edc9232ef14de8fafd7b7ece12
/libs/python/test/data_members.py
37bef0d7048313adce6da1d258338609b84bedc1
[ "BSL-1.0" ]
permissive
stardog-union/boost
ec3abeeef1b45389228df031bf25b470d3d123c5
caa4a540db892caa92e5346e0094c63dea51cbfb
refs/heads/stardog/develop
2021-06-25T02:15:10.697006
2020-11-17T19:50:35
2020-11-17T19:50:35
148,681,713
0
0
BSL-1.0
2020-11-17T19:50:36
2018-09-13T18:38:54
C++
UTF-8
Python
false
false
2,467
py
# Copyright David Abrahams 2004. Distributed under the Boost # Software License, Version 1.0. (See accompanying # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) ''' >>> from data_members_ext import * ---- Test static data members --- >>> v = Var('slim shady') >>> Var.ro2a.x ...
c747a958e62fe8af848ebf95ee593021b8fc9fee
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/462/usersdata/308/105022/submittedfiles/avenida.py
d5a90601513ac9551b6535453d1dd15ef5a5326f
[]
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
263
py
# -*- coding: utf-8 -*- def inteiro(texto, min, max): valor = int(input(texto)) while min<=valor or valor>=max: valor = int(input(texto)) return valor m = inteiro('Informe a quantidade de quadras no sentido Norte-Sul: ', 2, 1000) print(m)
839694ce63e2b101bc8a70244513e7ecd986f067
df789505c99974c0ba45adc57e52fc7865ff2a28
/class_system/src/services/admin_service.py
c21e20a9d7b6c4e87f806b41d0643eea93644496
[]
no_license
zhiwenwei/python
6fc231e47a9fbb555efa287ac121546e07b70f06
76d267e68f762ee9d7706e1800f160929544a0a3
refs/heads/master
2021-01-20T04:21:44.825752
2018-12-19T06:20:10
2018-12-19T06:20:10
89,676,097
0
0
null
null
null
null
UTF-8
Python
false
false
883
py
#-*- coding:utf-8 -*- #Author:Kevin import sys,os sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) #添加环境变量 from models import School def create_school():#创建学校 # try: name = input("请输入学校名字") addr = input("请输入学校地址:") school_name_list = [(obj.name,obj.addr) for obj in School.ge...
2206bfd7b874e66585e69e7e4f615ef67045f700
d554b1aa8b70fddf81da8988b4aaa43788fede88
/5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/222/users/4065/codes/1602_2894.py
28a0e854a1d6a6c2f3a6d82537d62a75f1b0641b
[]
no_license
JosephLevinthal/Research-projects
a3bc3ca3b09faad16f5cce5949a2279cf14742ba
60d5fd6eb864a5181f4321e7a992812f3c2139f9
refs/heads/master
2022-07-31T06:43:02.686109
2020-05-23T00:24:26
2020-05-23T00:24:26
266,199,309
1
0
null
null
null
null
UTF-8
Python
false
false
331
py
# Este código é apenas um ESBOÇO da solução. # Modifique-o para atender as especificações do enunciado. # Leitura das entradas e conversao para float: var = float(input("Qual o valor unitario do jogo? ")) # Calculo do valor a ser pago, incluindo o frete: total = float(var*8 + 45) # Impressao do valor total: print(to...
af3381ae78bf698dff8a7c97324d886c71b16a41
ec827bd5df431c9400946e8d0593448814b5534b
/venv/bin/rst2latex.py
a52e3650ad536413c6bad8de9f042089b2ea2846
[]
no_license
grantnicholas/pytone
7acd70878de8090d06d7a2911a67b3dbb3b64256
b89c688cc88588a3758fff288bc9b1364534b42e
refs/heads/master
2021-01-23T06:19:47.203418
2014-09-21T21:52:27
2014-09-21T21:52:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
817
py
#!/home/grant/Desktop/pytone/venv/bin/python # $Id: rst2latex.py 5905 2009-04-16 12:04:49Z milde $ # Author: David Goodger <[email protected]> # Copyright: This module has been placed in the public domain. """ A minimal front end to the Docutils Publisher, producing LaTeX. """ try: import locale locale.setl...
683053f40d2cf500cb405bf87ac2b8c2729e555a
d57b51ec207002e333b8655a8f5832ed143aa28c
/.history/gos_20200614062720.py
d6f85c522d6e82fc164a1c2ba47e9fea286c6ff5
[]
no_license
yevheniir/python_course_2020
b42766c4278a08b8b79fec77e036a1b987accf51
a152d400ab4f45d9d98d8ad8b2560d6f0b408c0b
refs/heads/master
2022-11-15T07:13:24.193173
2020-07-11T15:43:26
2020-07-11T15:43:26
278,890,802
0
1
null
null
null
null
UTF-8
Python
false
false
8,421
py
# # Імпорт фажливих бібліотек # from BeautifulSoup import BeautifulSoup # import urllib2 # import re # # Створення функції пошуку силок # def getLinks(url): # # отримання та присвоєння контенту сторінки в змінну # html_page = urllib2.urlopen(url) # # Перетворення контенту в обєкт бібліотеки BeautifulSoup #...
b13da817aede04b68ad39c188fb32a758e46b488
490957cf9130f1596c9f81bacff90b13f25eb2e6
/Problems/Even numbers/task.py
9cb7f6f386b84458325d9faeb5412c7818ca756b
[]
no_license
TonyNewbie/PaswordHacker
6eb021e3660aba94d020a7b581dc2787b57556c0
ac70d64cba58e83e88c00fb2f9c4fcc552efcc35
refs/heads/master
2022-11-19T03:29:53.300586
2020-07-13T10:37:34
2020-07-13T10:37:34
279,272,910
1
0
null
null
null
null
UTF-8
Python
false
false
227
py
n = int(input()) def even(): i = 0 while True: yield i i += 2 # Don't forget to print out the first n numbers one by one here new_generator = even() for _ in range(n): print(next(new_generator))
da5440c299a0e972710e88c7311a48cc2e2cb085
f031ed86f671bf1933bfce899162e8d9bb055f64
/tf-w2v/word2vec_basic.py
d6b1405d5e060db3dddb62809f6b266ec29ad5d2
[]
no_license
sushant3095/nlp
148a6912c56c179822e4fe70464e801879405708
baa39ac99d2d445e57b6ba79dfa62336868e1d94
refs/heads/master
2021-01-19T18:03:13.160594
2017-04-13T05:01:16
2017-04-13T05:01:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
9,782
py
# Copyright 2015 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...
5178c6bc234c586a65edf654fd074b59e5be7adb
40c677f1e39ba53063ced109f4bf23d16162a899
/orders/views.py
b01d47e358988cc750df02d17479979112a55445
[]
no_license
AminMohamedAmin/Online-Restaurant-System-
ee25b5d7ff7e52dc6b2ac632f0dd58e38022f6bb
b9aa2d8b8d69ab56437d4b4d039fc935b0b85227
refs/heads/master
2022-08-24T21:24:30.224785
2020-05-26T11:49:34
2020-05-26T11:49:34
267,028,524
0
0
null
null
null
null
UTF-8
Python
false
false
1,720
py
from django.shortcuts import render, redirect,get_object_or_404 from django.urls import reverse from .forms import OrderCreateForm from .models import OrderItem, order from cart.cart import Cart ############### pdf #################### from django.contrib.admin.views.decorators import staff_member_required from django...
6e13b2cc1879d6fcbf5967e111777d18af637fa9
8a73cde463081afd76427d5af1e6837bfa51cc47
/harvester/metadata/management/commands/compare_study_vocabularies.py
65b82b39e3f1630c29dd6a3827f8bc7c7eecb52d
[ "MIT" ]
permissive
surfedushare/search-portal
8af4103ec6464e255c5462c672b30f32cd70b4e1
63e30ad0399c193fcb686804062cedf3930a093c
refs/heads/acceptance
2023-06-25T13:19:41.051801
2023-06-06T13:37:01
2023-06-06T13:37:01
254,373,874
2
1
MIT
2023-06-06T12:04:44
2020-04-09T13:07:12
Python
UTF-8
Python
false
false
2,940
py
import requests import re from django.core.management.base import BaseCommand from metadata.models import MetadataValue uuid4hex = re.compile(r'(?P<uuid>[0-9a-f]{8}\-[0-9a-f]{4}\-4[0-9a-f]{3}\-[89ab][0-9a-f]{3}\-[0-9a-f]{12})', re.I) class Command(BaseCommand): @staticmethod def _get_node_label(node): ...
81986ebbff0325c513016a51c2583cc663f4f483
03d4f548b0f03d723c776a913c0814508052fbd4
/src/tsgettoolbox/ulmo/util/__init__.py
2b22dc7d4c5466883b30a8cf364eede652549a80
[ "BSD-3-Clause" ]
permissive
timcera/tsgettoolbox
2cee41cf79fd2a960d66066df5335bb1816f8003
1ca7e8c224a8f7c969aff1bbb22f13930cb8f8b0
refs/heads/main
2023-09-06T03:22:17.785382
2023-07-27T04:06:22
2023-07-27T04:06:22
40,149,564
14
4
BSD-3-Clause
2022-09-16T23:00:40
2015-08-03T21:47:57
Python
UTF-8
Python
false
false
940
py
from .misc import ( camel_to_underscore, convert_date, convert_datetime, dict_from_dataframe, dir_list, download_if_new, get_ulmo_dir, mkdir_if_doesnt_exist, module_with_dependency_errors, module_with_deprecation_warnings, open_file_for_url, parse_fwf, raise_dependenc...
489041c27386827df9ebe9a86ebd99213371c75d
5b5a49643c75aa43d5a876608383bc825ae1e147
/python99/misc/p702.py
8888db3ce4a8bc0a289bf66437324404ec628a4c
[]
no_license
rscai/python99
281d00473c0dc977f58ba7511c5bcb6f38275771
3fa0cb7683ec8223259410fb6ea2967e3d0e6f61
refs/heads/master
2020-04-12T09:08:49.500799
2019-10-06T07:47:17
2019-10-06T07:47:17
162,393,238
0
0
null
null
null
null
UTF-8
Python
false
false
863
py
def knight_tour(n): return [[(1, 1)]+path for path in doTour(n, n*n-1, (1, 1), [(1, 1)])] def doTour(n, m, start, path): if m == 0: return [[]] availableMoves = getAvailableMoves(n, path, start) return [[moveTo(start, move)]+remainPath for move in availableMoves for rem...