blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
2
616
content_id
stringlengths
40
40
detected_licenses
listlengths
0
69
license_type
stringclasses
2 values
repo_name
stringlengths
5
118
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringlengths
4
63
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
2.91k
686M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
23 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
213 values
src_encoding
stringclasses
30 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
2
10.3M
extension
stringclasses
246 values
content
stringlengths
2
10.3M
authors
listlengths
1
1
author_id
stringlengths
0
212
9aa43822098b1d19715a01e7607e3f68485f1762
e422af828a758368fa7a16745b7ae7d0e6c800e8
/804_UniqueMorseCodeWords.py
3811f21858311a91bdadb404e90903673715033a
[ "MIT" ]
permissive
xyp8023/LeetCode_Python
8b2eb8f4d036c6510f83a3d50e34ce9383cee0f7
09281f9a1eafb262b06336a6969c97d2418899b4
refs/heads/master
2020-03-30T20:26:21.966605
2019-09-08T09:32:52
2019-09-08T09:32:52
151,588,098
0
0
null
null
null
null
UTF-8
Python
false
false
1,287
py
# class Solution: # def uniqueMorseRepresentations(self, words): # """ # :type words: List[str] # :rtype: int # """ # MorseCode = [".-", "-...", "-.-.", "-..", ".", "..-.", "--.", "....", "..", ".---", "-.-", ".-..", "--", "-.", # "---", ".--.", "--.-", "...
[ "xyp8023@gmail.com" ]
xyp8023@gmail.com
a5a47498059620de02d04269f2c99b0f5501de51
bb986a65799c427efb36032c0e8020d0e4647eea
/ScoreCardModel/feature_selection/distribution.py
1e0e98efae96d1c8d59adb1c8d98d51f8105a17a
[]
no_license
likaituo/ScoreCardModel
a743d4573a1627f8e248a3193ab00e3176d805ef
1c19405e9bb2a76bb65208751ee3a6e228a85c81
refs/heads/master
2020-12-02T11:06:24.674264
2017-06-05T10:27:02
2017-06-05T10:27:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,387
py
__all__ = ["Distribution"] import numpy as np from typing import Tuple import matplotlib.pyplot as plt class Distribution: """ Property: x (np.ndarray): - 输入的数组 X (np.ndarray): - 数组分段的下表 Y (np.ndarray): - 数组中的元素每个分段中的出现的个数 xticks (np.ndarray): - 均分的分段信息 segment (int): -...
[ "hsz1273327@gmail.com" ]
hsz1273327@gmail.com
7c6d1222f99c5f665ac6b7c7951cb4aef9e82116
bfe81fda7d7b444e57d03571e619002d74af50c1
/homework/hw5/layers.py
a15d5cfb4b3c3ca6240f18ea328e40971e0dc3dc
[]
no_license
irishsoul0/Comp-540-----Statistical-Machine-Learning
562284e9eb0f3eda0418ff75e09422d9d5621ab2
e987e0eaf53964c865374ce647acf052fdc83734
refs/heads/master
2020-05-18T20:55:32.027388
2019-05-02T20:17:43
2019-05-02T20:17:43
184,645,865
0
0
null
null
null
null
UTF-8
Python
false
false
16,198
py
import numpy as np def affine_forward(x, theta, theta0): """ Computes the forward pass for an affine (fully-connected) layer. The input x has shape (m, d_1, ..., d_k) and contains a minibatch of m examples, where each example x[i] has shape (d_1, ..., d_k). We will reshape each input into a vector of dimen...
[ "irishsoul92@gmail.com" ]
irishsoul92@gmail.com
9a3b95bdccdb7b503d60155acf43892274ec58d9
62d403765fce807597b33c284a4008c59beeb3e8
/第二组代码/爬虫/firstscrapy/firstscrapy/spiders/first.py
fedd9a7bc4ce473b56759b685e8391f742b073b9
[]
no_license
CS1803-SE/The-second-subsystem
aa19a26128da51268b7e8e8b492b4df9487417f3
fa0dc3d931c658bd8f42d4e95ff72049fe7db5f7
refs/heads/main
2023-05-26T08:49:49.599816
2021-05-30T15:27:49
2021-05-30T15:27:49
363,661,347
0
0
null
null
null
null
UTF-8
Python
false
false
6,543
py
#import scrapy from firstscrapy.items import FirstscrapyItem # # class FirstSpider(scrapy.Spider): # name = 'first' # #allowed_domains = ['https://www.baidu.com/s?tn=news&rtt=4&bsst=1&cl=2&wd=%E5%8D%9A%E7%89%A9%E9%A6%86&medium=0'] # baseurl='https://www.baidu.com/s?tn=news&rtt=4&bsst=1&cl=2&wd=%E5%8D%9A%E7...
[ "noreply@github.com" ]
CS1803-SE.noreply@github.com
5f6660405d8bf94af3a1d0da7c371a3746fb9c7b
8a4bc47685427204365b1668b3d7b5a6fd7546f1
/service/routing/registration.py
87716e98f4e46cd52db262f430ddd7eebf9214b7
[]
no_license
myronww/hello-service
3b1705ad8c25a6763d5a9673086b01d388b7817a
8b59054dd4cb09fb5f1697e14a050d8251b3ada8
refs/heads/master
2020-04-07T03:43:08.728638
2019-04-10T17:12:24
2019-04-10T17:12:24
158,027,190
0
0
null
null
null
null
UTF-8
Python
false
false
314
py
import os from flask import Blueprint from routing.versions.v1 import apply_namespaces as apply_namespaces_v1 def register_blueprints(app, service_prefix): bp = Blueprint(service_prefix, __name__, url_prefix="/%s" % service_prefix) apply_namespaces_v1(bp) app.register_blueprint(bp) return
[ "myron.walker@gmail.com" ]
myron.walker@gmail.com
5e7a3f1c287c75701260d7609f3902f206f92a98
7e0619c2d4556659e4ae79bfc55e4902ea6ddc33
/django_learn/asgi.py
38f9ba67a6d1c3d7c0610d8951cf8096e3060506
[ "MIT" ]
permissive
nettaku2/django_learn
b2279310535a7ecc76f47b8281cf481fc6527da7
ce07c97c8b2dd4828cae1d1b176674c843e66b35
refs/heads/main
2023-08-24T04:03:22.291999
2021-10-30T17:12:05
2021-10-30T17:12:05
413,083,446
0
0
null
null
null
null
UTF-8
Python
false
false
401
py
""" ASGI config for django_learn project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJANGO_...
[ "choyonghee1974@gmail.com" ]
choyonghee1974@gmail.com
62a62155678e8901539b27446bc18682d86188ab
5609fb00d4ec730384565d551063a31de85e0f72
/tests/tester.py
6b2ead953ef5713cbbda786096e2b25f82bac625
[]
no_license
iron-claw-972/ScoutingApp2020
5bb9b5ab929f72a58d4a1cdd22a806631edfdb89
0b287b4405ec3cae493736c483dfd8e25d90a674
refs/heads/master
2020-05-30T08:57:33.565038
2020-03-01T02:43:37
2020-03-01T02:43:37
189,629,437
0
1
null
null
null
null
UTF-8
Python
false
false
386
py
import unittest from flask import Flask, request, Blueprint, render_template from ..util import DatabaseUtil bp = Blueprint('tester', __name__) class TestUM(unittest.TestCase): def setUp(self): DatabaseUtil.DatabaseUtil print("GOT DE DATABASE HHEHEHEHEHE") def test_False(self): self....
[ "orca.pranav@gmail.com" ]
orca.pranav@gmail.com
730f554b7dc1eae5c4c877bb1803e310e3b7c464
394ccaa8496af51a3302edbe3f4314f781bb3f70
/src/syntaxAnalyser/helpers/subtreeGrouper.py
b4d3307100eb184670198f5cf5703fc53c59552b
[]
no_license
Banyc/SyntaxStructures
056415d7314fdfc53553493a71117e177891cae0
795534694ebdd1b9aaffc13078683f4ce9c79a91
refs/heads/master
2023-05-30T19:39:58.816201
2021-06-25T15:24:22
2021-06-25T15:24:22
379,916,963
0
0
null
null
null
null
UTF-8
Python
false
false
2,092
py
from typing import Dict, List from syntaxAnalyser.models.node import * from syntaxAnalyser.models.sentenceSet import * from syntaxAnalyser.models.treeInfo import * class SubtreeGrouper: def __init__(self) -> None: # tuple -> treeId self.treeIds: Dict[tuple, int] = {} # treeId -> treeInfo...
[ "36535895+Banyc@users.noreply.github.com" ]
36535895+Banyc@users.noreply.github.com
0a315b5bbce497aaba6fa8decae9c9d6b9178f62
babf0654a09a823693129655ba214f83ead74391
/preprocessing_code/task3.py
49ef0b11cf4c57d17c85f9ec34ed449624d11a4c
[]
no_license
rsriram-eth/DSPA-2019
6ab0e2ad48db2f60f3b903de3df80c10727e1ffd
9459e059a4576f8bdc9c28639eb88265c189a964
refs/heads/master
2022-11-17T09:30:08.307810
2019-06-09T21:48:45
2019-06-09T21:48:45
191,052,300
2
0
null
2022-11-16T10:56:57
2019-06-09T20:29:08
Java
UTF-8
Python
false
false
1,974
py
""" Preprocessing task: DSPA-2019 : step 3 : purge likes with original timestamp earlier than their post """ import pandas as pd import numpy as np import dateutil.parser # Common variables IP_DIR = "ip_data/1k-users-sorted/streams/" # Input directory MED_DIR = "scraps/" # Intermediate files OP_DIR = "...
[ "noreply@github.com" ]
rsriram-eth.noreply@github.com
d9d7d2571fc6feb5d0457b880d3af567d8dcc94e
fb50364834bed6ee1dfb0e3cfd260f13eb3c1b49
/Section5_Recursion/exploring_maze/maze_exploring.py
7460cf69536e06a38b3f9b39548e943499dfed65
[]
no_license
miguel-osuna/PS-Algos-and-DS-using-Python
521b36ceed26431f8d60c2927533fb1801bd0576
a9e0f8a7c77ff5b6a3befca5ab93030a9ae35313
refs/heads/master
2020-09-27T04:55:00.313981
2020-04-12T02:21:55
2020-04-12T02:21:55
226,435,735
0
0
null
null
null
null
UTF-8
Python
false
false
5,341
py
# Standard library imports import os # Third party imports import turtle PART_OF_PATH = "o" TRIED = "." OBSTACLE = "+" DEAD_END = "-" class Maze: """ Maze class """ def __init__(self, maze_file_name): """ Initialices a maze""" # Setup maze_file = open(maze_file_name, "r") s...
[ "osuna.angulo.miguel@gmail.com" ]
osuna.angulo.miguel@gmail.com
f3ac2e67d1f36ed5a9f2c18e6e7da8a7bc004fb6
1f1da172cbe7d9a973c2b668340c48fb0fce3aae
/src/ReverseComplement.py
a51d3cc91a3a4118a2f7e25878fdbf9f5026c3ce
[]
no_license
erb13020/coursera-bioinformatics-specialization
8353b21fc48bbc50a1ef7e66c21e3aa6e5179ab3
7a940cebe2cd7b8c69fca8e85dfec28e3a630482
refs/heads/master
2022-12-13T10:01:06.206965
2020-09-13T19:25:02
2020-09-13T19:25:02
274,309,538
0
0
null
null
null
null
UTF-8
Python
false
false
570
py
def reverseComplement(genome): ''' Solve the Reverse Complement problem Input: A DNA string Pattern Output: Patternrc , the reverse complement of Pattern ''' genome = genome[::-1] # reverse text genome = genome.upper() # ensure text is uppercase nucleotide = { # dictionary for find...
[ "eric.burt@protonmail.com" ]
eric.burt@protonmail.com
db3e2088bfc29185f472eb8137fe2aecc73ab962
be0f3dfbaa2fa3d8bbe59229aef3212d032e7dd1
/Gauss_v45r8/Gen/DecFiles/options/43900069.py
99e22a4ef36194235a12c7cff18970ba37ba0ea4
[]
no_license
Sally27/backup_cmtuser_full
34782102ed23c6335c48650a6eaa901137355d00
8924bebb935b96d438ce85b384cfc132d9af90f6
refs/heads/master
2020-05-21T09:27:04.370765
2018-12-12T14:41:07
2018-12-12T14:41:07
185,989,173
0
0
null
null
null
null
UTF-8
Python
false
false
1,921
py
# file /home/hep/ss4314/cmtuser/Gauss_v45r8/Gen/DecFiles/options/43900069.py generated: Fri, 27 Mar 2015 15:48:12 # # Event Type: 43900069 # # ASCII decay Descriptor: pp->( H_20 -> ( H_30 -> b anti-b ) ( H_30 -> b anti-b) ) # from Configurables import Generation Generation().EventType = 43900069 Generation().SampleGen...
[ "slavomirastefkova@b2pcx39016.desy.de" ]
slavomirastefkova@b2pcx39016.desy.de
eaa0bc98d033d52b4c153cbc5339e5633d9227a1
82e9579ebe6fc76f49cb9d33351383eac6790a19
/exs/search/index.py
1e7da5b3e99124c7d6a08c90dcddc059b19a919b
[]
no_license
andtsa/experiments.py
f62be2b1712a756b57c5345b64b41c0c93778503
182de0c3b959a0a460bf6ba26e6937157e995610
refs/heads/master
2022-04-09T04:30:39.302430
2020-03-03T16:40:59
2020-03-03T16:40:59
109,993,173
0
0
null
null
null
null
UTF-8
Python
false
false
254
py
########## Search ########## def search(query, field): place = 'Null' for i in range(len(field)): if field[i] == query: place = i break return place # print( search(10, [1,2,34,10,5,67,8,9,10,24,67,3,3]) )
[ "andreas@aoneo.cc" ]
andreas@aoneo.cc
920c5762a8970d91b790a58679726585c544c9fc
c9d839d04befa09ef8dffd249e0691910874c42b
/exercises/chapter-10/10.2.py
29bd51ef99b97f9a76535c5a9d55d2c8e7fa8b19
[]
no_license
imsamuel/pcc
d514278147257c8f63e0dc2aa455996ddaea8ea2
962dfc55ee72fc853d5a65ca485d7c364354c9f4
refs/heads/master
2022-11-24T17:04:41.184796
2020-07-26T07:14:13
2020-07-26T07:14:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
619
py
""" 10-2. Learning C: You can use the replace() method to replace any word in a string with a different word. Here’s a quick example showing how to replace 'dog' with 'cat' in a sentence: >>> message = "I really like dogs." >>> message.replace('dog', 'cat') 'I really like cats.' Read in each line from the file yo...
[ "samuelywp@gmail.com" ]
samuelywp@gmail.com
3fc3ea410505a3bbf1773b01dadc2d31cc7d4e6b
26957ac501c8ec4d576009f40d2a8e6b561fa019
/bandapp/migrations/0018_auto_20200516_1427.py
187d21ed0c510f6f8e9bcc69dff97f68255de9f9
[]
no_license
Bimsickle/HIT237_Django_Punk
b29d25f2b3e305845682790cff5feb77dba8366a
a72a5e761e3d8b3353d6a14a7e2a818a899a7181
refs/heads/master
2022-11-23T23:09:43.121789
2020-08-03T09:31:01
2020-08-03T09:31:01
284,658,374
0
0
null
null
null
null
UTF-8
Python
false
false
508
py
# Generated by Django 3.0.3 on 2020-05-16 04:27 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('bandapp', '0017_band_bio'), ] operations = [ migrations.AlterModelOptions( name='band', options={'ordering': ['band_...
[ "48933873+Bimsickle@users.noreply.github.com" ]
48933873+Bimsickle@users.noreply.github.com
5855cf5c1bc23ba8483f55604d4385cc797f272d
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2180/60696/250099.py
ba5d6d479f9f6bc64cfa12e11cb5e09cf0a05adc
[]
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
562
py
def tell_sub_strings(s): sub_strings = [] n = len(s) for i in range(n): for j in range(i+1, n+1): sub_strings.append(s[i:j]) return sub_strings if __name__ == '__main__': s1 = input() s2 = input() count = 0 if len(s1)<len(s2): sub_strings = tell_sub_strings(...
[ "1069583789@qq.com" ]
1069583789@qq.com
af2a2cc65f022849e70a268c54ab6efbadc98166
0aeefc4dee24d50b71b40f273dc59526a2e25bc2
/trade.py
b85431546da798f776c8ea31364443db46e4a679
[ "MIT" ]
permissive
srirag-vuppala/Trader-bot
36f0b2e1030bf1c0abdf847e20a5da60639ce2f8
28659420a9bc32be79db77dfbdfed39447c53a32
refs/heads/master
2022-11-23T15:03:47.480936
2020-07-30T22:17:20
2020-07-30T22:17:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,369
py
import requests import json import os import alpaca_trade_api as tradeapi from config import * # Setting up environmental variables os.environ['APCA_API_KEY_ID'] = '[use your own key id here]' os.environ['APCA_API_SECRET_KEY'] = '[use your own key here]' os.environ['APCA_API_BASE_URL'] = 'https://paper-api.al...
[ "noreply@github.com" ]
srirag-vuppala.noreply@github.com
39ecdc56ce356a15ab5aa007c86b1e29b1e6a38f
e223b7652a22a79e812d4909ea25cd7689383f9b
/tooner/__init__.py
056d14a6b2d64e44dafd1b5ed7993c7c25e20e37
[ "MIT" ]
permissive
jakebrehm/tooner
89974d79d2e76e2069a1e1ef3b6db877489fc28a
046034eeee1c5e33b713d8a4369c4d5d43a13aab
refs/heads/master
2023-07-17T02:27:40.259431
2021-09-11T01:12:32
2021-09-11T01:12:32
254,235,709
1
0
null
null
null
null
UTF-8
Python
false
false
49
py
from .invasions import * from .launcher import *
[ "jake.m.brehm@gmail.com" ]
jake.m.brehm@gmail.com
183322315b0144ca5291afec80efa5b97449663a
93f98dde611c138055629ae3b3b2cb1e301adc49
/DS/settings.py
2b725974d99e96e94544ee4b139fca8d8c4ebdf2
[ "BSD-3-Clause" ]
permissive
gitter-badger/djangochannel
ebd9a69bef62376d9877a5aece3f54b211880736
f9e33254739457c461e84b66879172007512f9b0
refs/heads/master
2020-08-06T01:43:26.679657
2019-10-04T10:16:32
2019-10-04T10:16:32
212,788,313
0
0
BSD-3-Clause
2019-10-04T10:18:48
2019-10-04T10:18:47
null
UTF-8
Python
false
false
5,094
py
import os import datetime from .ckeditor import * # Build paths inside the project like this: os.path.join(BASE_DIR, ...) BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) # SECURITY WARNING: don't run with debug turned on in production! ALLOWED_HOSTS = ['127.0.0.1', 'localhost', 'djangochannel....
[ "l2maximum@mail.ru" ]
l2maximum@mail.ru
65d7a977a623f1cd517b77b86c50f00b23882fe2
a735ff9df57fa54eb136b0ae1d4f37cfb79a22cd
/main_app/cnn.py
a99f7e88aae1a97d296623a9ffcb08ef08f1c8c9
[]
no_license
arascry/pollock_ai
d95e7b4209f575f413a5a9064dbcd57238f1fb40
57372bee39dce71e6572ea5937998d422b99a4be
refs/heads/master
2023-07-27T03:00:44.957258
2020-09-22T16:13:52
2020-09-22T16:13:52
294,828,393
0
0
null
2020-09-11T23:01:10
2020-09-11T23:01:09
null
UTF-8
Python
false
false
2,696
py
import tensorflow as tf import os import matplotlib.pyplot as plt from tensorflow import keras from tensorflow.keras import layers image_size = (500, 500) batch_size = 2 path = '' train_ds = tf.keras.preprocessing.image_dataset_from_directory( path, validation_split=0.33, subset='training', seed=200...
[ "aaron.tucaz@gmail.com" ]
aaron.tucaz@gmail.com
eb86d2cf93f9a3d301e370ba3dc0c468bf5628b6
0839ca3b2d745dab0b23d2b9ccae9bd5e99f1883
/models/purchase.py
3f661932338674872dbda811d69fe716d0872527
[]
no_license
quanbuinovobi/purchase_order_enhancement
f0bc267956df3a90ea5d9e8bb08e3a25c283b7b3
25aee5edfd4b182c75213fbeb456d855206c4fd8
refs/heads/master
2020-05-18T22:32:07.039674
2019-05-16T04:18:30
2019-05-16T04:18:30
184,693,271
1
0
null
null
null
null
UTF-8
Python
false
false
2,579
py
import datetime from odoo import api, fields, models from odoo.exceptions import UserError, AccessError from logging import warning # logging.warning(vals) => console.log class PurchaseOrder(models.Model): # Inherit model _inherit = 'purchase.order' # Define fields (variables) active = fields.Boolean...
[ "quandxbp@gmail.com" ]
quandxbp@gmail.com
9b214c98e4b30a70194d4fab96e9827e9da20c9c
0bf34f2fef64eb6d2c8cf7185a6a1d897b7a3ff4
/covidprojectss.py
96e712511c9ef4702d2b65aa3e1ae1abf2b0cf0f
[]
no_license
harshitaprabhu99/Covid19-Voice-Assistant-and-Visualiser
c17af044d5a414ab5e668b4cecef83546cdfc0c5
2679ec53bc12a2be8c49727dcdaa9bd873ba7f21
refs/heads/main
2023-05-22T10:51:04.251510
2021-06-15T14:11:03
2021-06-15T14:11:03
377,184,935
0
0
null
null
null
null
UTF-8
Python
false
false
4,504
py
import streamlit as st import pandas as pd import numpy as np import plotly.express as px from plotly.subplots import make_subplots import plotly.graph_objects as go import matplotlib.pyplot as plt from PIL import Image def app(): st.title("COVID-19 DASHBOARD") st.markdown('The dashboard will help...
[ "noreply@github.com" ]
harshitaprabhu99.noreply@github.com
f708463314792a83ec8427cd3f2ab0733c841f16
c90a08909c14f69b092731b6c122f0a555029947
/day5/part2/main.py
0988106a157bf37f7dc7c704b509dba27647b369
[]
no_license
tylerXMD/advent_of_code_2018
cb97302db355ef64b40604c9580d1df10565166d
20cc919d231f1129b346a0fb1fe2b28db450f538
refs/heads/master
2020-04-09T16:42:24.199678
2019-05-11T03:03:16
2019-05-11T03:03:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,032
py
#!/usr/bin/env python3 #only 1 line line = None with open("../input.txt", "r") as f: for thing in f: line = thing.strip() reaction_diff = abs(ord('A') - ord('a')) already_removed = [] #from part1 def compact_polymer(s): reacted = True while reacted: reacted = False i = 0 while i < len(s)-1: ...
[ "tmarsha9@vols.utk.edu" ]
tmarsha9@vols.utk.edu
d1f76a5e460088e85766d92f36f6cece6cfc9b93
7e953f5361aae55a16b0361d44bf72ce025450aa
/Core/FFT/test_bx200_nand_rules_mixin.py
f8c40933d3e0e879a56c34164bc21bfa5d2ff3c4
[]
no_license
MicronShanghaiDE/SEV
d2d5048212f60ae6b4b9f02376b5799d4d0fd92d
31cd12b366b0ed8d8a6a8bb800485f68443e8ecc
refs/heads/master
2021-01-21T13:14:23.403348
2015-08-11T03:02:03
2015-08-11T03:02:03
40,517,224
0
0
null
null
null
null
UTF-8
Python
false
false
32,854
py
import dm3 import sys import time from Util.decorator import method_tracer class TestBX200NandRules: def set_up(self): self.unlock() self.ThrowException = True self.InterfaceMode = -1 # -1 indicates an unknown interface def tear_down(self): pass def genericNandCommand(sel...
[ "mere_lei@hotmail.com" ]
mere_lei@hotmail.com
25757d0cc1d5d978228bba4c6f71607f502c84df
4ca64aa3ace012a2baec182d868b4e5e91545e7b
/NYU/Artifacts/ImagePairCheck.py
4965ad740083d619461e6cc468f285325f64cb7c
[]
no_license
yijun2011/tzo
79b9e23a483587b1bc0b2d9d6c94945fd01c05b5
e8c65af067c05a7c06690f2bd129b88886213b03
refs/heads/master
2020-04-10T01:05:42.135741
2019-05-12T16:07:07
2019-05-12T16:07:07
160,705,286
0
0
null
null
null
null
UTF-8
Python
false
false
2,182
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sun Nov 11 13:02:24 2018 @author: oscar seurat """ import numpy as np; import matplotlib.pyplot as plt; from matplotlib.widgets import TextBox; import sys; class verifier: def __init__(self, original, distorted): if (original.shape != distorte...
[ "ossowskj@linax1.cims.nyu.edu" ]
ossowskj@linax1.cims.nyu.edu
4587be94b0486ffa14c1ede8050b01a92b49ec20
b730976f89ef80986292a8834b0c43a824146670
/Lab 4/environments/gridworld.py
1c20fc2cf34be70cc826e2326c999d0b5a897073
[]
no_license
Matkicail/Reinforcement-Learning-Labs
d48f9013c675bc33aec13cb6b23f78fb983abfbf
616a585139c257dd1fd9c53e1ca1e3c08f60894a
refs/heads/main
2023-09-03T01:55:27.707404
2021-11-08T21:37:55
2021-11-08T21:37:55
394,694,375
0
0
null
null
null
null
UTF-8
Python
false
false
4,650
py
import io import numpy as np import sys import gym from gym import spaces from gym.utils import seeding UP = 0 RIGHT = 1 DOWN = 2 LEFT = 3 NUMBER_OF_ACTIONS = 4 class GridworldEnv(gym.Env): """ Grid World environment from Sutton's Reinforcement Learning book chapter 4. You are an agent on an MxN grid and...
[ "61425800+Matkicail@users.noreply.github.com" ]
61425800+Matkicail@users.noreply.github.com
a364c739486c3e7db3c09a309d576eba67ffbc49
043914df3cdc7349a9aa4091df4aacddda04bd30
/plugins/repo/sqlmap/plugin.py
75deb0be957a74923de1720403d9318bbff94983
[ "DOC" ]
permissive
fbjackson1989/faraday
53686c942b1622083ac83c9453078cea3c4ed854
a38e50822cd43b58c1fc2e9aaee2e6b206f1f82a
refs/heads/master
2023-01-03T02:22:09.385895
2020-10-22T20:15:42
2020-10-22T20:15:42
306,442,976
0
0
null
null
null
null
UTF-8
Python
false
false
20,692
py
#!/usr/bin/env python ''' Faraday Penetration Test IDE Copyright (C) 2013 Infobyte LLC (http://www.infobytesec.com/) See the file 'doc/LICENSE' for the license information ''' from __future__ import with_statement import argparse import hashlib import os import pickle import re import shlex import socket import sql...
[ "christopher.eldridge5@us.af.mil" ]
christopher.eldridge5@us.af.mil
183267d2c207c3fbe629fe61c7f03d91f136e22d
47eb66be297d912ec1dc6761574f9a2912490003
/client/tests/init_test.py
9fa477bdd13d7b414c9cea2d3092dfc4bab36f5f
[ "MIT" ]
permissive
stjordanis/pyre-check
53be121717d805e628b47d0e29d68f8141ad6192
a634fc4c0a60f0ad8b4e0ea5ce9ba3c2f4232450
refs/heads/master
2020-04-22T13:49:14.930541
2019-02-13T01:11:43
2019-02-13T01:21:39
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,133
py
# Copyright (c) 2016-present, Facebook, Inc. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import unittest from unittest.mock import MagicMock, patch from .. import ( EnvironmentException, __name__ as client_name, _resolve_fil...
[ "facebook-github-bot@users.noreply.github.com" ]
facebook-github-bot@users.noreply.github.com
c3d02e6e0b4ebecdb29346804444dd14259c22b5
947e71b34d21f3c9f5c0a197d91a880f346afa6c
/ambari-server/src/test/python/stacks/2.0.6/HBASE/test_hbase_master.py
5162193cbdcb7cd78cd228869aed0ea9bc788593
[ "MIT", "Apache-2.0", "GPL-1.0-or-later", "GPL-2.0-or-later", "OFL-1.1", "MS-PL", "AFL-2.1", "GPL-2.0-only", "Python-2.0", "BSD-2-Clause", "BSD-3-Clause", "LicenseRef-scancode-free-unknown" ]
permissive
liuwenru/Apache-Ambari-ZH
4bc432d4ea7087bb353a6dd97ffda0a85cb0fef0
7879810067f1981209b658ceb675ac76e951b07b
refs/heads/master
2023-01-14T14:43:06.639598
2020-07-28T12:06:25
2020-07-28T12:06:25
223,551,095
38
44
Apache-2.0
2023-01-02T21:55:10
2019-11-23T07:43:49
Java
UTF-8
Python
false
false
36,350
py
#!/usr/bin/env python ''' 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")...
[ "ijarvis@sina.com" ]
ijarvis@sina.com
fca514c7a4f0ee40a26053eec26098b988257080
cbb0bd995f5ecb64f93a30d5f1dcd106e3241214
/Scripts/torch_mnist_dense_import.py
9286cc72ef2a624b2f8f95f57cb61117afb3ff79
[ "BSD-3-Clause", "BSD-2-Clause" ]
permissive
data61/MP-SPDZ
324010a4caaa403f64d769a276d58931e0ed274e
5c26feece05e13387fc9bd2ef3f09b2735d6ea4b
refs/heads/master
2023-08-10T01:25:33.653174
2023-08-09T02:13:34
2023-08-09T02:13:34
152,511,277
724
277
NOASSERTION
2023-07-21T04:43:18
2018-10-11T01:16:16
C++
UTF-8
Python
false
false
1,225
py
#!/usr/bin/env python3 # test model output by torch_mnist_dense.mpc import torchvision import torch import torch.nn as nn import numpy net = nn.Sequential( nn.Flatten(), nn.Linear(28 * 28, 128), nn.ReLU(), nn.Linear(128, 128), nn.ReLU(), nn.Linear(128, 10) ) f = open('Player-Data/Binary-Outp...
[ "mks.keller@gmail.com" ]
mks.keller@gmail.com
8baef651c1c9e325c36893dbe9d0a0e5a375842e
9f69c4c61ca2a2082643f9316354826f6144e1f5
/TAP2014/E.py
7b156e5cad39797e8a1be50f512dfac1aa697d0f
[]
no_license
julianferres/Competitive-Programming
668c22cf5174c57a2f3023178b1517cb25bdd583
c3b0be4f796d1c0d755a61a6d2f3665c86cd8ca9
refs/heads/master
2022-03-23T05:56:53.790660
2022-03-18T14:29:33
2022-03-18T14:29:33
146,931,407
4
2
null
null
null
null
UTF-8
Python
false
false
672
py
from collections import deque A,N = map(int,input().split()) from math import inf a = [] for i in range(A): a.append(list(map(int,input().split()))[1:]) dist = {i:inf for i in range(1,N+1)} v = {i:[] for i in range(1,N+1)} lvisto = [False]*A dist[1]=0 for i in range(A): for j in a[i]: v[j].append(i) q = deque([]...
[ "julianferres@gmail.com" ]
julianferres@gmail.com
20be9797435272b97f65017a680b236f7429c7a7
49a85f8e50bf91c9c358f190226d17b0d035899e
/apps/messaging/migrations/0004_auto_20161127_1007.py
a758607211b3feffdf5d4e5dc536a97bf40174e6
[]
no_license
hpatel1/chat
f70679c2b5dd5ca49e77096572859dc1b219d1da
e9abadf3021bee36d7f2255a79f4cd890c8ecf00
refs/heads/master
2020-06-16T20:09:46.264555
2016-11-29T12:37:36
2016-11-29T12:37:36
75,069,459
0
0
null
null
null
null
UTF-8
Python
false
false
474
py
# -*- coding: utf-8 -*- # Generated by Django 1.9 on 2016-11-27 10:07 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('messaging', '0003_auto_20161127_1006'), ] operations = [ migrations.AlterField...
[ "hpatel@vavni.com" ]
hpatel@vavni.com
f277ff241b24a7a2719c4f8c5fda3d66d1f2d97b
f0ee740667f840250c39412736d9fa8ec45261d8
/squares.py
2e766bd8978a70056c011a24938ca003d32a66cc
[]
no_license
MartynasTru/Cafe-Wall
59e4eeacda4a54678352175549b1608d1c762840
940913b533b8ed3f3b01b8db9c40c3a47265a89a
refs/heads/main
2023-04-21T08:03:20.691253
2021-04-29T23:25:44
2021-04-29T23:25:44
362,972,366
0
0
null
null
null
null
UTF-8
Python
false
false
5,029
py
#Student Number: 19019021 import sys from ezgraphics import GraphicsWindow WIDTH = 500 BOARD_DIMENSION = 10 SQUARE_DIMENSION = WIDTH / BOARD_DIMENSION MORTAR_WIDTH = 2 MORTAR_COLOR = "grey" def draw_cafe_wall(canvas, x, y, square_dimension, board_dimension): """ Draw cafe wall illusion. ...
[ "noreply@github.com" ]
MartynasTru.noreply@github.com
74decdc058c850ed5d987ffa614a9bccec3acc72
6060d22d07bbde9d317cbd5af063b9b5015e62c1
/EELS_KK/pyfiles/bash_train_pyfiles/KK_one_pixel.py
f41cc579f734629a1a9bb620cc12286f88939712
[]
no_license
krishna999/CBL-ML
a1d389ad70975d2a0fdd101e66a68ce42c2fc0fe
ff850d9820d5295c3bdff88feebbd635f502fb87
refs/heads/master
2023-06-28T09:30:55.639732
2021-07-15T15:44:53
2021-07-15T15:44:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
25,756
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Tue Mar 16 22:59:40 2021 @author: isabel """ import numpy as np import sys import os from mpi4py import MPI from scipy.optimize import curve_fit from k_means_clustering import k_means import matplotlib.pyplot as plt from image_class_bs import Spectral_ima...
[ "isabelpostmes@gmail.com" ]
isabelpostmes@gmail.com
7cb3d636c58d86cdc2cefe708b06c997c54f9e12
a37e93d23ea659bafaac8034dc7aeed65bc5eb38
/stock_landed_costs_extend/models/stock_landed_cost.py
d1a3f0aeec36ad5dd0efc875329cccc986d2f7da
[]
no_license
kit9/sct-ecommerce
71831541264809715b31d802d260474975d04536
6c440a514eac8101474b6720e409a81c58bd3b7c
refs/heads/master
2022-10-03T23:35:31.563670
2020-06-09T12:35:06
2020-06-09T12:35:06
271,020,689
0
4
null
2020-06-09T14:10:49
2020-06-09T14:10:48
null
UTF-8
Python
false
false
821
py
#-*- coding: utf-8 -*- from odoo import models, fields, api, _ class LandedCost(models.Model): _inherit = 'stock.landed.cost' def _default_account_journal_id(self): """Take the journal configured in the company, else fallback on the stock journal.""" lc_journal = self.env['account.journal'] ...
[ "thanhquenguyenbkhn@gmail.com" ]
thanhquenguyenbkhn@gmail.com
be128babb87f429822e3dd3ac730543b9f9ae91c
d190750d6cb34e9d86ae96724cf4b56a2f57a74a
/tests/r/test_ant111b.py
9d0bf1c1aea84feb40beba133832bb43a7e48cfa
[ "Apache-2.0" ]
permissive
ROAD2018/observations
a119f61a48213d791de0620804adb8d21c2ad9fb
2c8b1ac31025938cb17762e540f2f592e302d5de
refs/heads/master
2021-09-24T04:28:02.725245
2018-09-16T23:06:30
2018-09-16T23:06:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
514
py
from __future__ import absolute_import from __future__ import division from __future__ import print_function import shutil import sys import tempfile from observations.r.ant111b import ant111b def test_ant111b(): """Test module ant111b.py by downloading ant111b.csv and testing shape of extracted data has 32...
[ "dustinviettran@gmail.com" ]
dustinviettran@gmail.com
3f0d512ffc2d5ae6e83bb3809a709242677010da
3aae4f5187d4600e3fbe72d15e27ac7ea64c3608
/hyranote/cmd_simple.py
a7ac073bed91cb7cba100d96ae548246942fb676
[ "MIT" ]
permissive
huuhoa/hyranote
96335081569271ee61bb8dba7c8f8aab646feaf7
bbd91256790a0fb19699761697d0121c93ffbe88
refs/heads/main
2023-07-27T13:08:07.074709
2021-09-07T23:35:14
2021-09-07T23:35:14
318,357,069
1
0
null
null
null
null
UTF-8
Python
false
false
837
py
import os import plistlib from hyranote.hyranote import SimpleGenerator from hyranote.hutil import copy_resources def simple_generate_contents(args): input_dir = os.path.expanduser(args.input) copy_resources(input_dir, os.path.join(args.output, 'images')) with open(os.path.join(input_dir, 'contents.xml')...
[ "huuhoa@gmail.com" ]
huuhoa@gmail.com
3426a8908d8572f4ffd915d0b142d8a4369c5ece
a760e489c8b4d46e0af0c5e0711e0b6da38335f5
/Examples/qfem-0010/src/postprocess.py
310bbeaed870531639034205216610ad896ddb66
[ "BSD-2-Clause-Views" ]
permissive
NHERI-SimCenter/quoFEM
b042e30badad9551c89a5f355639891644e4487e
18866db16a9d9025c73e90c5523087a9e1f3eccf
refs/heads/master
2023-08-08T22:07:49.364185
2023-07-20T17:50:40
2023-07-20T17:50:40
102,532,135
10
26
NOASSERTION
2023-08-18T22:43:39
2017-09-05T21:37:34
C++
UTF-8
Python
false
false
2,045
py
#!/usr/bin/python # written: fmk 01/18 import sys import re #print 'Number of arguments:', len(sys.argv), 'arguments.' #print 'Argument List:', str(sys.argv) inputArgs = sys.argv #outFile = open('results.out','w') # # process output file "SimCenterOut.txt" for nodal displacements # ndm = 0 with open ('SimCenterO...
[ "50180406+claudioperez@users.noreply.github.com" ]
50180406+claudioperez@users.noreply.github.com
d01afb3ac01213c93a2d43e8c810482b1db65f15
57dbccc0df6a999a9c081396a1c84d802a18008e
/src/utils/DubinsPath.py
993762cc2a143e4b5039d6f9139e1e2541e2d237
[ "MIT" ]
permissive
the-jojo/SpiderBUG
309cc6bddc9fd8b724606eca0171c4c90e068c15
6ed77b0896966e90afcaf695e68a546a1921f8f6
refs/heads/master
2023-03-08T22:33:19.313283
2021-03-06T15:12:39
2021-03-06T15:12:39
291,644,894
2
1
null
2020-09-15T18:55:38
2020-08-31T07:24:55
Jupyter Notebook
UTF-8
Python
false
false
1,955
py
import math import dubins from src.geom.Node import Node from src.utils.config import default_config def find_path(pos_0: Node, heading_0: float, pos_1: Node, pos_2: Node or None, turn_radius: float, step_size=default_config['PATH_RES'], resolution=math.pi / 64): """Finds the shortest dubins path ...
[ "2505558w@student.gla.ac.uk" ]
2505558w@student.gla.ac.uk
a9157605e769380a311a8c4c02e792653fc2caf4
787ee36fa303f968fdf846fe0f385c7018a33f31
/octavia/tests/unit/api/v2/types/test_pools.py
066e958d1718648718fbc07af28d0d65c15454f9
[ "Apache-2.0" ]
permissive
sajuptpm/octavia
b68bb502ff07cb8f7ee6721a6b0325be6c764d52
fde4ebe822072a79bb74497b504ca3f0a6a6518d
refs/heads/master
2020-03-10T06:58:57.557469
2018-04-12T02:46:35
2018-04-12T02:46:35
129,251,833
0
0
Apache-2.0
2018-04-12T12:59:35
2018-04-12T12:59:34
null
UTF-8
Python
false
false
5,850
py
# Copyright 2014 Rackspace # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agree...
[ "flux.adam@gmail.com" ]
flux.adam@gmail.com
1bcf9cfae1a9ee36fa60cef6a7710ff6110e247d
f5b3f1cb6f4e360a096bda679cb05d39364d0930
/maskrcnn_benchmark/modeling/roi_heads/relation_head/loss.py
85ca0a2e5cf2e06c2c3425ba40d455c2d51b5831
[ "Python-2.0", "MIT" ]
permissive
PeterZhouSZ/recovering-unbiased-scene-graphs
fa44b2ba4b27c3023a30489bf981dd6326e72fcd
50807a1eadab588c99d7ce7b819748065398e6b6
refs/heads/main
2023-08-26T09:56:32.786965
2021-10-23T06:15:13
2021-10-23T06:15:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
34,806
py
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. import torch import torch.nn as nn from torch.nn import functional as F import numpy as np import numpy.random as npr from maskrcnn_benchmark.layers import smooth_l1_loss, Label_Smoothing_Regression, CenterLoss from maskrcnn_benchmark.modeling.box...
[ "mengjiun.chiou@bytedance.com" ]
mengjiun.chiou@bytedance.com
3726bbe2896a068f5be60d5d92e14539400d68c1
0623ec7befa8bf52ba2eba97502190ae8e2b40a5
/sargeparse/_parser/data.py
aaaa7abb9cba7ede6c80367872af999e59033d35
[ "Apache-2.0" ]
permissive
DiegoPomares/sargeparse
f235bb58d8e6f537b954b5b34cd5e6c5310e3e1d
32424cd1a87c8efba4a2e2c08540478bec9f63a2
refs/heads/master
2020-03-18T15:54:22.456121
2018-07-11T12:52:17
2018-07-11T12:52:17
134,936,150
1
1
Apache-2.0
2018-07-11T12:52:18
2018-05-26T06:37:44
Python
UTF-8
Python
false
false
5,966
py
import sys from collections import ChainMap import sargeparse.consts from sargeparse._parser.parser import Parser class ArgumentData(ChainMap): _default_precedence = ['cli', 'environment', 'configuration', 'defaults'] def __init__(self, parser: Parser, precedence=None): super().__init__() ...
[ "noreply@github.com" ]
DiegoPomares.noreply@github.com
1f628490e35afe54b6975ea324fe54ff9696d96a
a46c3cb15f8e92ca909274c2361f2dee62bb4f8f
/rx/linq/takeWhile.py
a20593c3a97baf323688b4f3bfe24f96a245fb84
[ "MIT" ]
permissive
akuendig/RxPython
d58cbf359b613f88bc9d83b4fef394161e140725
3dd7228519fa2121e39f43d142fe64e73ac77b80
refs/heads/master
2020-05-07T08:30:33.839781
2013-04-02T13:05:06
2013-04-02T13:05:06
8,301,392
14
1
null
null
null
null
UTF-8
Python
false
false
1,290
py
from rx.observable import Producer import rx.linq.sink class TakeWhile(Producer): def __init__(self, source, predicate, withIndex): self.source = source self.predicate = predicate self.withIndex = withIndex def run(self, observer, cancel, setSink): sink = self.Sink(self, observer, cancel) set...
[ "adriankue@gmail.com" ]
adriankue@gmail.com
fc29850a9c25a51075b30b9f10dd800fad76832b
179af4c581daaa03995f6bd30c95a6583acee7e8
/KNN.py
85890b299ddd9781439cd5317773fa0366377516
[]
no_license
Harold1994/scikitlearnDemos
20b29df07125b82100498300e292ba7de87763ea
075cd8447b5dff59802ecda955f453ac6f78995e
refs/heads/master
2022-11-10T02:46:21.410865
2018-01-19T10:41:35
2018-01-19T10:41:35
118,110,608
2
0
null
2022-10-23T19:59:10
2018-01-19T10:18:22
Python
UTF-8
Python
false
false
273
py
from sklearn import neighbors import numpy as np knn = neighbors.KNeighborsClassifier() data = np.array([[3, 104], [2, 100], [1, 81], [101, 10], [99, 5], [98, 2]]) lables = np.array([1, 1, 1, 2, 2, 2]) knn.fit(data, lables.ravel()) print(knn.predict(np.array([[58, 9]])))
[ "lihe12@baidu.com" ]
lihe12@baidu.com
6a0dd13e2b196b94a54d161eb74dd636a1bd9537
a72cb4d00528fb3d2d47f99a1ccca1b8b9b41ff7
/scripts/archive/io_import_minecraft/slimes.py
a45e92a5e623d492a7c4866e361bbd0e65c419ce
[]
no_license
talocan/blenderpython
b05204881183ff901ec189916a3bcc1d3e9d3e20
056ac37e76a1b410696c9efe4fe0ea09fdc68c0e
refs/heads/master
2021-01-18T05:16:47.221786
2014-07-11T17:01:53
2014-07-11T17:01:53
21,749,332
1
0
null
null
null
null
UTF-8
Python
false
false
1,681
py
# Javarandom slime Python-version test harness. from . import javarandom rnd = javarandom.Random def isSlimeSpawn(worldSeed, xPos, zPos): rnd = javarandom.Random(worldSeed + jlong(xPos * xPos * 0x4c1906) + jlong(xPos * 0x5ac0db) + jlong(zPos * zPos) * 0x4307a7 + jlong(zPos * 0x5f24f) ^ 0x3ad8025f) return r...
[ "super3dblender@yahoo.com" ]
super3dblender@yahoo.com
bf0fc700681e156ba1a5fcc7f7484c85354f59f1
a175e3f1cbb638bedc467bd408144209b5bc1ff9
/EJERCICIO6.py
3feba996cb015efffb2727992716239b44bf0939
[]
no_license
Jelowis/Deber-De-Estructura-de-Datos
ace306332e8ea987dfefe0b0cdf458af478f91db
9704c644527725b5d9d399699d841d4599f4cee8
refs/heads/main
2023-06-05T11:15:01.372313
2021-06-28T05:07:52
2021-06-28T05:07:52
380,911,822
0
0
null
null
null
null
UTF-8
Python
false
false
200
py
#EJEMPLOS 1: # Linealizar las siguientes expresiones: # (no se olvide que linealizar significa escribir una expresión algebraica en una sola línea). a=1 b=2 x=(a/(a+b))/(a/(a-b)) print(x)
[ "noreply@github.com" ]
Jelowis.noreply@github.com
aef119967ff1e2102f99d42ccb8e2aedf28da1da
003d0e0b2cfe7179d149d035ed50daa4c5bb5c22
/LDWS_videofile.py
101bf414f1b2dfcdfe4ef1413cad751cfb29a94c
[]
no_license
dandancat123/LDWS-1
17a11d77ab731de3f65a72e9486b41afbdc8160d
2c34a1671cf4bb3aee2494118253151962b032b4
refs/heads/master
2020-06-01T05:54:37.024249
2016-11-01T16:47:44
2016-11-01T16:47:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,072
py
from __future__ import division import numpy as np import cv2 import math font = cv2.FONT_HERSHEY_SIMPLEX mp=7 cap = cv2.VideoCapture("F:/ab.mp4") while(cap.isOpened()): ret, frame = cap.read() frm1 = frame[120:238,1:425] gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY) #cv2.imshow('frame',gray) src2...
[ "ashi5119@gmail.com" ]
ashi5119@gmail.com
37f4f37f0f18dfbc2abbb9d59aa6f84967ff2d1b
86a334c6b0207703a741aedc6a5e429d409cf1d9
/main.py
e0b9f12fd8e91f364704d8e2d0c136c8559c597a
[]
no_license
fu2re/jati
acf9df450b190e68e87d7564a947b3ab7f93816e
fb39aab856b6bde47a361a68bbdf0088951c6a75
refs/heads/master
2022-12-02T19:04:41.433316
2020-08-16T22:11:02
2020-08-16T22:11:02
287,366,057
0
0
null
null
null
null
UTF-8
Python
false
false
675
py
import uvicorn from fastapi import FastAPI from wallet.conf import settings from wallet.models import db from wallet.views import router async def init_app(db_dsn=settings.DB_DSN): await db.set_bind(db_dsn, echo=settings.DB_ECHO, min_size=settings.DB_POOL_MIN_SIZE, ...
[ "darkfu2re@gmail.com" ]
darkfu2re@gmail.com
01680197696a2a264518b8624edee037385aefd9
ca8c42c0a9b16876182bacfc3a3914ed64d1d74c
/database.py
68a51d55f32066bddd770b640371f81796500421
[]
no_license
Mamdad0u/audio_fingerprint
3e2b08cf8bcb007b3fbf245777b2f75b5cf02cf6
307e5d8f53afa99d9f2d4eba4e45d0d483e3ffcf
refs/heads/main
2023-05-15T04:16:49.194575
2021-05-29T18:18:07
2021-05-29T18:18:07
372,041,078
0
0
null
null
null
null
UTF-8
Python
false
false
537
py
# -*- coding: utf-8 -*- """ Created on Sun Apr 25 22:12:29 2021 @author: duwat """ import os import warnings warnings.filterwarnings("ignore") from functions import get_filename os.chdir('C:/Users/duwat/Desktop/projet shazam/Album') # Song database song_database = get_filename('C:/Users...
[ "noreply@github.com" ]
Mamdad0u.noreply@github.com
91e47148a1cf204a5219897181db5e063e3b713f
c539bef50942b7b52b8f4184c39d2f948788a851
/polls/tests.py
971c42925ebff7e44e6cf8412999051dc9f206d9
[ "MIT" ]
permissive
TulioAbreu/django-tutorial
16cbbaf95f35017fe59ecca8ff1b98a77bebe664
3097ec5f57dccbb84737e6b847c2ebb07cb4a076
refs/heads/master
2020-05-25T23:03:10.830763
2019-08-09T15:12:36
2019-08-09T15:12:36
188,027,332
0
0
null
null
null
null
UTF-8
Python
false
false
4,967
py
import datetime from django.test import TestCase from django.utils import timezone from django.urls import reverse from .models import Question class QuestionModelTests(TestCase): def test_was_published_recently_with_future_question(self): """ was_]published_recently() returns Fasle for questio...
[ "marco-tulioabreu1@hotmail.com" ]
marco-tulioabreu1@hotmail.com
4695057503386c922f4e47a3787760213de5fdfd
0571addf2ed1adc415755dfcccd480674d57e6d3
/miye/scheduler/views.py
be351663b816fc51a18b9506fa5945be14b05f27
[]
no_license
aya0321/CGU-IST303-F21-Prj-Team-2
632f092f6810c945f8a4945c02f1f6ebe1d3b55d
e14cddb2defc3f6b3968fa0a1b3f10a461e3e144
refs/heads/main
2023-08-23T17:57:10.831347
2021-10-12T21:53:15
2021-10-12T21:53:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,166
py
from django.shortcuts import render from django.http import HttpResponseRedirect from db.models import DBService, DBGuest, DBAppointment from .forms import ScheduleForm, is_time_between from datetime import datetime, timedelta def timeslot_is_free(service, date, time): print(service) print(type(date)) d ...
[ "jaquielajoie@gmail.com" ]
jaquielajoie@gmail.com
ca2e0e976863587691cfa5559255799fc9795b57
becf4b22082a64d7bf24a89e87d90e64d677031c
/python/single_number.py
ff6b4ce9cac327fc74eb022e9569f907ce8565ee
[]
no_license
imalihaider/Hacktoberfest-2K21
ad2213ae30b87ab8a3159957e8c3541ca4a07cc4
ae43b06d8bce6154a7044b983bc8e7e87b58da2f
refs/heads/main
2023-09-05T07:22:53.956085
2021-10-21T07:07:28
2021-10-21T07:07:28
420,880,613
1
0
null
null
null
null
UTF-8
Python
false
false
494
py
''' Given an array of integers. All numbers occur twice except one number which occurs once, find the number array = [1,2,3,1,2] Required no = 2*(sum_of_array_without_duplicates) - (sum_of_array) = 2*(1 + 2 + 3) - (1 + 2 + 3 + 1 + 2) = 2*6 - 9 = 12 - 9 = 3...
[ "noreply@github.com" ]
imalihaider.noreply@github.com
71a4a495fab5597619eb47e0a72699d37a5edef9
2caf42defe0906f05850a145623f8bb82cab367d
/sendEmailAuto.py
2b5d9cd15a62ce8d5bf8f5c943f465185909328f
[]
no_license
reshinto/useless_apps
8cfc77bf4f1794400300161a27a3d051394c25c2
6d99062529abac3801d8a9a55c4e68d30ccec163
refs/heads/master
2023-05-28T12:27:45.816230
2023-05-14T07:42:27
2023-05-14T07:42:27
150,591,844
0
1
null
null
null
null
UTF-8
Python
false
false
1,360
py
import os import smtplib from email.mime.text import MIMEText from email.mime.multipart import MIMEMultipart # Use to upload attachment file from email.mime.base import MIMEBase from email import encoders import getpass # Login email username = os.environ.get("my_email") password = os.environ.get("my_email_password...
[ "noreply@github.com" ]
reshinto.noreply@github.com
a34857b1aa94ef4f72a28754feaa3cc06474bdb9
c7b0b67d3cd539fbf2cb8c9adc1a317d9d86d556
/Whatsinit.py
612119dbadb035da08b82fb66f36c962c80613ec
[]
no_license
priyank-py/GettingStarted
9636bebb66b14c109fa2e8015ddd62033e0d1627
df07a53f84e854a5762aef816de8eaa5aed1cb0b
refs/heads/master
2020-05-23T22:37:11.949297
2019-12-18T10:52:44
2019-12-18T10:52:44
186,977,603
0
2
null
null
null
null
UTF-8
Python
false
false
236
py
class Enemy: def __init__(self,x): self.energy = x def current_Energy(self): print(self.energy) enemy766 = Enemy(5) Boss_Enemy = Enemy(30) enemy766.current_Energy() Boss_Enemy.current_Energy()
[ "noreply@github.com" ]
priyank-py.noreply@github.com
4f2c1e2d7006bde5e44311d534e7d4b03ec4d140
dc8a337ea1d8a285577d33e5cfd4dbbe846ee1a0
/src/main/scala/algorithms/SquareRootDecomposition.py
1498f98cbdd0e034b612eafc6b08897437581df8
[]
no_license
joestalker1/leetcode
8a5cdda17abd33c3eef859732f75d7bec77a9d0e
ae392ddbc7eb56cb814b9e9715043c98a89a6314
refs/heads/master
2023-04-13T22:09:54.407864
2023-04-09T19:22:54
2023-04-09T19:22:54
131,803,943
0
0
null
null
null
null
UTF-8
Python
false
false
1,132
py
import math class Solution: def __init__(self, input): self.vals = [0] * len(input) n = len(input) self.block_size = math.ceil(math.sqrt(n)) self.blocks = [0] * self.block_size block_index = -1 for i in range(n): self.vals[i] = input[i] if i ...
[ "dfomenko@demandbase.com" ]
dfomenko@demandbase.com
7cb9bef4e826d7138ea79550d55b8f18d82095a0
0220dbfb5cac8dea227e72c9d2f652d21bd6bc7b
/TopoShortcutBind.py
9323c91dd86275b567f4a90ed9353106969f5c0f
[]
no_license
fornof/BlenderAddons
ca9ca6b691ae5a0c0558f93c54423cc7703e0402
e1fe966501b8613b306a55f23ce141c38059ece1
refs/heads/master
2022-03-06T03:35:02.151917
2022-02-20T20:48:33
2022-02-20T20:48:33
19,930,422
20
8
null
null
null
null
UTF-8
Python
false
false
3,307
py
bl_info = { "name": "ShortcutTool", "author": "Robert Fornof", "version": (0, 5), "blender": (2, 70, 0), "location": "Check the shortcuts for dynamic topology ", "description": "CTRL +SPACE toggles subdiv edges and collapse edges, hold down Q in sculpt to do the same", "warning": "", "wi...
[ "robertlistens@gmail.com" ]
robertlistens@gmail.com
c4b4e250e50b767a813c6fec52c7e8ccbe76717d
be5caab0d5497959b1317b1acd07d91bddb93df8
/Fig6
9cfc6db442bc96e1d35ee1a385d01d11cbaf3278
[]
no_license
wp436507/pm25_o3_paper
b60975885cd738d0d10d0d5407d2b7c56198031c
abd3354134678930b49d3ecabe660197cc3170c3
refs/heads/main
2023-07-12T23:44:59.523433
2021-08-15T07:47:59
2021-08-15T07:47:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,804
#!/usr/bin/env python3 import pandas as pd import numpy as np import matplotlib.pyplot as plt import seaborn as sns from itertools import compress from scipy import stats import matplotlib as mpl mpl.rc('font',family='Arial') # load MODIS burned area data bas = np.load('baf_sums.npy') # these arrays of PM2.5 and O3...
[ "noreply@github.com" ]
wp436507.noreply@github.com
add5de3393cb2a28c1c2499cc0c0db892962f913
00643559c0f925f0740e47ae488456b2102141fe
/Algorithm/Parameters/ES.py
c9c88613b976b557353898b5ff428806ed6aad34
[]
no_license
yutarou-1204/LabTask
9741aedf8d6772bbe341ec99c5e8cd572f7db72c
4f1611f1134871c48e8e85f7a650231147cab0f4
refs/heads/main
2023-03-07T03:09:02.448594
2021-02-18T10:37:04
2021-02-18T10:37:04
339,763,909
0
0
null
null
null
null
UTF-8
Python
false
false
131
py
u_lim = 1 l_lim = -1 u_mulim = u_lim/10 l_mulim = l_lim/10 children = 10 parent = 5 evalmax = 1000 G = int(evalmax/children)
[ "noreply@github.com" ]
yutarou-1204.noreply@github.com
617dbdcc4efae43da961d888f341f5f78d04f314
94900642790ec9dd62be461ae45cab0a71fb8c91
/tfrrs/tfrrs/middlewares.py
0cfd583c90e6f355a130e83e56fc218c7f3e2dc2
[]
no_license
Megts/progression-visualizer
0d1f9867ecc2d043a65f468f14660180a5eb00a3
9793515285c42a4903141993333c934f91595c3f
refs/heads/main
2023-04-14T02:27:45.963735
2021-04-27T00:43:17
2021-04-27T00:43:17
332,961,511
0
1
null
null
null
null
UTF-8
Python
false
false
3,646
py
# Define here the models for your spider middleware # # See documentation in: # https://docs.scrapy.org/en/latest/topics/spider-middleware.html from scrapy import signals # useful for handling different item types with a single interface from itemadapter import is_item, ItemAdapter class TfrrsSpiderMiddleware: ...
[ "78006015+Megts@users.noreply.github.com" ]
78006015+Megts@users.noreply.github.com
c2e00a821d6e92bdfbb98ecf090636164be3ef88
cbde10e19b4ed995f1649d3c05cf58245c75ac2c
/map.py
e91ab41a0e5faa0a03f8c5f9bc07320989d36074
[]
no_license
jkereako/algorithms
06b07d6f477f427ea9b9e89d95c4f00080233d71
a2e57510517e903d79887a7077cdfd1f6ff418a1
refs/heads/master
2021-01-14T10:30:44.738235
2017-07-19T14:38:29
2017-07-19T14:38:29
45,010,915
2
0
null
2015-10-27T02:13:11
2015-10-27T02:13:11
null
UTF-8
Python
false
false
1,563
py
class HashTable(object): def __init__(self, size): self.size = size self.slots = [[] for x in range(self.size)] self.data = [None for x in range(self.size)] def put(self, key, data): hash_val = self.hash_function(key, self.size) if self.slots[hash_val] is None: ...
[ "johneshiver@gmail.com" ]
johneshiver@gmail.com
b86825732337e5053f01756b9ae092a2c3d1b124
b1e85e5d848fffa13a6055c78ada579317e7ad6a
/tests/test_results.py
66e7c1f140df23b495c20f50b2919274fae59e29
[]
no_license
yjs1210/cardcounting
4560fe440a77388e5856c5382eefd10eca21eb92
b2a4d91db02c04c127fd7ed7373e7cff6a0c7b21
refs/heads/master
2023-02-19T20:48:23.775204
2021-01-21T07:23:24
2021-01-21T07:23:24
328,041,225
0
0
null
null
null
null
UTF-8
Python
false
false
20,801
py
import pytest import os import sys ROOT = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") sys.path.append(os.path.join(ROOT, "src")) from simulator import hard_policy, soft_policy, split_policy, betting_policy from blackjack import ( Actions, Cards, Deck, Player, resolve_player_actio...
[ "jamelee@riotgames.com" ]
jamelee@riotgames.com
3e056accc07c2b9d8e4f074fc52a8ccc0a071755
fd01e75f6e5cb4544484bfba48cb307f0e712ab0
/LC/146_반복제어문3_형성평가7.py
e8d259ca02d84750622cc7ee9c13665704da2b1a
[]
no_license
hybae430/Jungol
2b30aae434f6cc54f2b03e5aa9e8a5d98dc7f170
a11dae5e6043f37fc9802ba317159f528f92b9f7
refs/heads/master
2023-03-24T09:57:53.905035
2021-03-20T09:16:48
2021-03-20T09:16:48
328,375,869
0
0
null
null
null
null
UTF-8
Python
false
false
231
py
n = int(input()) num, alpha = 0, 0 for i in range(n): for x in range(alpha, alpha + n): print(chr(65 + x), end=" ") for x in range(num, num + alpha): print(x, end=" ") alpha += n num += 1 print()
[ "violet9643@naver.com" ]
violet9643@naver.com
31fd48687601609d446b72e929f41c3b200399a2
8ffc7ed2767142b67a2c16a6d664ebbe4c8fa901
/ersdtggserttye.py
1f11bb3d79623fbb574647ccc9142e2add460ac7
[]
no_license
RexDigitail/codeEge
cad9dbce67b96cf4642a4eadd90cf1a01c45be9a
77cb0891ea6dadf3c76194e0d6789699932e1d56
refs/heads/main
2023-08-21T07:23:50.588496
2021-10-16T09:12:32
2021-10-16T09:12:32
412,766,603
0
0
null
null
null
null
UTF-8
Python
false
false
264
py
k=0 l=0 s=0 m=0 for i in range(120115000,120200000+1): for j in range(1,int(i**0.5)+1): if int(i**0.5)**2==i: m=1 if (i%j)==0: l+=2 if l-m>=k: k=l s=i l=0 m=0 print(k,s)
[ "noreply@github.com" ]
RexDigitail.noreply@github.com
6448a838678049b588dad784fe27300469ce5752
bccfce9c293481a85569da8559eadeb0ed3ae062
/GO/src/alphaBetaThreaded.py
0edd50ae5a225e543476d73374b6be694ff23d42
[ "MIT" ]
permissive
aliissaoui/Developping-Go-Agents-in-Python
55d1ea20f7df9729fc6c796b9494cd22bc1d52ad
7c06374b96f94103eddf9ad3cdfc3ca0086badbe
refs/heads/main
2023-05-26T00:39:25.289877
2021-05-08T04:55:01
2021-05-08T04:55:01
315,443,906
0
0
null
2021-05-08T04:55:01
2020-11-23T21:22:02
HTML
UTF-8
Python
false
false
3,855
py
import time, os import eval import alphaBeta import operator import concurrent.futures from copy import deepcopy as cp import multiprocessing, threading class AlphaBetaThreaded(): def __init__(self, color): self._mycolor = color self._maxscore = 100000 self._processes = [] sel...
[ "aissaoui@enseirb-matmeca.fr" ]
aissaoui@enseirb-matmeca.fr
170f6cc0fae64722db202a4f1c45c41de525235a
bda0259b6400e2c394f9d1a85e1b648a54fc88dd
/shifthappens/tasks/imagenet_drawing/imagenet_drawing.py
b9a69b24312492ac021bc8c14a67cfa1309e5cc9
[ "CC-BY-4.0", "LicenseRef-scancode-proprietary-license", "Apache-2.0" ]
permissive
shift-happens-benchmark/icml-2022
f3bb118e73c06e1fa45cbba8590a7463c3cf7862
74b3cda69a2b90bcefed3848faca41a92ad0c9bf
refs/heads/main
2023-05-23T16:42:44.145930
2023-04-13T14:48:37
2023-04-13T14:48:37
422,538,065
39
24
Apache-2.0
2023-04-15T18:56:06
2021-10-29T10:46:18
Python
UTF-8
Python
false
false
3,196
py
"""Shift Happens task: ImageNet-Drawing""" import dataclasses import os import numpy as np import torchvision.datasets as tv_datasets import torchvision.transforms as tv_transforms import shifthappens.data.base as sh_data import shifthappens.data.torch as sh_data_torch import shifthappens.utils as sh_utils from shif...
[ "noreply@github.com" ]
shift-happens-benchmark.noreply@github.com
6cd826a9cb3114468f52d75933e8022deea099e1
6a659f809005d928147b1d45ae0e9d33cfdb9d91
/chapter9/example9.13.py
a8bc6597ef8b4883dcb2e5dc9d950e48718e84be
[]
no_license
uosphys/comphy2019
c347cc2cef67ad82360dffa18b6414cb8aa57a64
9a9df9185ee5b4178b7dbc465386aab54a4417fa
refs/heads/master
2022-02-17T05:51:53.853591
2019-09-11T02:46:38
2019-09-11T02:46:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
329
py
#!/usr/bin/python ## example9_13 import numpy as np from lamRange import * from inversePower3 import * N = 10 n = 100 d = np.ones(n)*2.0 c = np.ones(n-1)*(-1.0) r = lamRange(d,c,N) s = (r[N-1] + r[N])/2.0 lam,x = inversePower3(d,c,s) # Inverse power method print("Eigenvalue No.",N," =",lam) input("\nPress return to...
[ "zoshs27@gmail.com" ]
zoshs27@gmail.com
e492218b36b482d4a93daf0d1e6a28356f38bfff
439386f9097632d44d31d1f599df76ec2820d072
/常规项目/统一大厅常规checklist/1000/DFQP/src/cases/dfqp_broadcast_interface.py
db7b7a8e912baeac9d80fbdb92ce6c814f56b8d5
[]
no_license
YiFeng0755/testcase
33693f0940a6497aa40e2e51a0535c9eb6c12b29
edc19480c3e94cbcbf004aa9d20099ec6d1b9304
refs/heads/master
2020-04-28T04:34:28.232022
2019-03-11T11:13:25
2019-03-11T11:13:25
146,287,761
0
0
null
null
null
null
UTF-8
Python
false
false
15,250
py
#!/usr/bin/env python # -*- coding:utf-8 -*- ''' 地方棋牌广播测试 ''' import time from runcenter.enums import EnumPriority,EnumStatus from runcenter.testcase import debug_run_all,TestCase from appiumcenter.luadriver import LuaDriver from uilib.personinfo_page import Personinfo_Page from uilib.hall_page import Hall_Page from ui...
[ "YoungLiu@boyaa.com" ]
YoungLiu@boyaa.com
a8b593cd2c4e3a67ef96a8b426ea1bfd92635deb
7b8ea847579f409227cacf4cd073c4073b04d355
/opengl/oglc-env/Scripts/painter.py
d756d4b2b2682ea8749fa9f3f4a04af16ed3c350
[]
no_license
itaditya/Python
dcea29225826aceb3645194adede1ef5b947ecc4
5365dddf67d7456800fa58f8ae74dbff22b8fed2
refs/heads/master
2021-09-23T01:58:11.171768
2017-10-13T13:25:03
2017-10-13T13:25:03
50,483,903
5
2
null
2018-09-19T19:32:59
2016-01-27T05:27:42
Python
UTF-8
Python
false
false
2,140
py
#!f:\git\python\opengl\oglc-env\scripts\python.exe # # The Python Imaging Library # $Id$ # # this demo script illustrates pasting into an already displayed # photoimage. note that the current version of Tk updates the whole # image every time we paste, so to get decent performance, we split # the image into a set of t...
[ "adityaa803@gmail.com" ]
adityaa803@gmail.com
0b3dba9d9ee6f60e6df93d5f6116dd2d5dc156ca
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_154/ch37_2019_04_04_19_28_17_473765.py
1a7f008bfb57c2c72d4a363abdbcf74e91a11b25
[]
no_license
gabriellaec/desoft-analise-exercicios
b77c6999424c5ce7e44086a12589a0ad43d6adca
01940ab0897aa6005764fc220b900e4d6161d36b
refs/heads/main
2023-01-31T17:19:42.050628
2020-12-16T05:21:31
2020-12-16T05:21:31
306,735,108
0
0
null
null
null
null
UTF-8
Python
false
false
381
py
def eh_primo(n): if n < 2: return False if n == 2: return True for test in range(3, n, 2): if n % test == 0: return False return True def imprime_primos(n): contador = 0 x = 2 while contador != n: if eh_primo(x): print(x) ...
[ "you@example.com" ]
you@example.com
c20e5205d3fe2387f6f9ce003eea43dc26e4d3d7
dd1e2ed53fec3dca0fa60042c04ad8cf6019ed89
/python/scope/scope_testing/scope_testing.py
b33903d20d27126dfc72f0ab05cdb4d003793fcb
[]
no_license
cloudavail/snippets
9be4ee285789ff3cff1a3a71e1f505a1b1697500
340f5c2735d6ec88b793f1eea91f2b026c24586e
refs/heads/main
2023-08-03T10:30:13.976947
2023-05-15T04:46:32
2023-05-15T04:46:32
12,838,293
22
24
null
2023-09-07T03:33:17
2013-09-15T00:40:49
JavaScript
UTF-8
Python
false
false
527
py
#!/usr/bin/env python # http://simeonfranklin.com/blog/2012/jul/1/python-decorators-in-12-steps/ def test_function(): print 'test_function called' variable_in_local_scope = 'red' print variable_in_local_scope # the test_function() has access to variables in the global scope print variable_in_globa...
[ "colinbjohnson@gmail.com" ]
colinbjohnson@gmail.com
e0c121eaff7b28193f08ab0f7b1e5f48439594a0
13e7ed5e57d8706e234c8f6e8d880af977c61f77
/MarksPredict/settings.py
a8ee0bcdf99c6c81d2e57b62f2d67aad589c8020
[]
no_license
sitanshu-cse10/ML
57545cc1bb3dad71f7b061b759fc164686c728fd
21b58fee7700ec3fd9a4c52cac481be2ff1d9a27
refs/heads/master
2020-03-26T06:39:03.097462
2018-12-03T17:47:40
2018-12-03T17:47:40
144,614,770
0
1
null
null
null
null
UTF-8
Python
false
false
3,175
py
""" Django settings for MarksPredict project. Generated by 'django-admin startproject' using Django 2.0.6. For more information on this file, see https://docs.djangoproject.com/en/2.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.0/ref/settings/ """ import ...
[ "sitstripathi10@gmail.com" ]
sitstripathi10@gmail.com
d6389ebffd00aba72cd3fe58ca5a95e6459ecebd
6d339503ad7a6602f5a0ca0a231f1f7d37b163b7
/1010.py
d766217490184989bb6ba8a66796edd1abecf473
[]
no_license
pcorrea2018/URI-Python-Answers
e1c64f5be747ce7acee01835ba6576b138592f9c
f7554891ffaefa3fc997e18bb1015dbd39aa74d5
refs/heads/master
2021-05-08T16:13:12.367528
2018-02-08T00:24:13
2018-02-08T00:24:13
120,146,787
0
1
null
null
null
null
UTF-8
Python
false
false
206
py
c1, n1, v1 = input().split() c1 = int(c1) n1 = int(n1) v1 = float(v1) c2, n2, v2 = input().split() c2 = int(c2) n2 = int(n2) v2 = float(v2) valor = n1*v1 + n2*v2 print ("VALOR A PAGAR: R$ %0.2F" %valor)
[ "noreply@github.com" ]
pcorrea2018.noreply@github.com
b49a2ac7599f06a223c5f41eb449d65e472d212e
7c43576414444e83afd7c98e6d7030c3a70f42de
/utils.py
1f71c85602edc0da441f459177e6437aa5769636
[]
no_license
M-Ashmitha/object_detection_ros
bea55fd5bb0559173cf77c8b9781189a114df7d1
7342e60b85f94ac64098450b24a9e736c40914e8
refs/heads/master
2022-12-04T01:49:25.016281
2020-08-25T01:47:27
2020-08-25T01:47:27
289,602,106
0
0
null
null
null
null
UTF-8
Python
false
false
2,835
py
#!/usr/bin/env python """ Helper functions and classes will be placed here. """ import os import tarfile import six.moves.urllib as urllib import numpy as np from cob_perception_msgs.msg import Detection, DetectionArray, Rect def download_model(\ download_base='http://download.tensorflow.org/models/object_det...
[ "ashmi.manikandan@gmail.com" ]
ashmi.manikandan@gmail.com
914c0aef556843e38fecd5dd326b2ed54cfbe735
8fa162cddb2046cb47f3a06c72743ed67685d03a
/dvc/command/add.py
ba6c81801556bf43258b3bc210869f6db662c0ef
[ "Apache-2.0" ]
permissive
franekp/dvc
be9c123f03b77daa39781bd7e62fa25b9fae449f
e380a4a8586da643bf4e0d2281b13aee0d5e5207
refs/heads/master
2020-03-19T18:35:47.416381
2018-06-10T14:35:49
2018-06-10T14:35:49
136,816,230
0
0
Apache-2.0
2018-06-10T14:32:53
2018-06-10T14:32:52
null
UTF-8
Python
false
false
374
py
from dvc.exceptions import DvcException from dvc.command.common.base import CmdBase class CmdAdd(CmdBase): def run(self): for target in self.args.targets: try: self.project.add(target) except DvcException as ex: self.project.logger.error('Failed to a...
[ "kupruser@gmail.com" ]
kupruser@gmail.com
cb98d77006dd907b02aff546f824e4bbad97363d
98bedb94c7e17653046a42379821709aec4c80f4
/MCQApp/migrations/0001_initial.py
25a4b866994edf066539202cdd37b44c02cc890a
[]
no_license
AndreiKud/StudentPlatform
e5d9f1998f9d32cf92b4300c52fcb095ce99ff6f
e24ce7231a37c12cffcf0d134c0a60f8e66a0b12
refs/heads/master
2023-07-29T06:39:59.882444
2021-09-08T10:24:44
2021-09-08T10:24:44
264,679,310
0
0
null
null
null
null
UTF-8
Python
false
false
1,939
py
# Generated by Django 2.2.12 on 2020-05-26 00:33 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('QuizApp', '0001_initial'), ] operations = [ migrations.CreateModel( ...
[ "andreikudrya1995@gmail.com" ]
andreikudrya1995@gmail.com
30d4234bc4160c7c323924a2a58fef4490aba037
f3b233e5053e28fa95c549017bd75a30456eb50c
/mcl1_input/L67/67-27_MD_NVT_rerun/set_1ns_equi_1_m.py
903799fb96fc0319e908362b60c2504832808f05
[]
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
935
py
import os dir = '/mnt/scratch/songlin3/run/mcl1/L67/MD_NVT_rerun/ti_one-step/67_27/' filesdir = dir + 'files/' temp_equiin = filesdir + 'temp_equi_1_m.in' temp_pbs = filesdir + 'temp_1ns_equi_1_m.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]...
[ "songlin3@msu.edu" ]
songlin3@msu.edu
294c691170eaea3e20fc1c9b2b0ae1a41578fbf1
72ce57d187fb6a4730f1390e280b939ef8087f5d
/nuitka/codegen/OperationCodes.py
2541fe799fc5a097d966b790405863df757cf43b
[ "Apache-2.0", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
tommyli3318/Nuitka
c5b7681b73d96cb8859210ed1a78f09149a23825
ae52b56024d53159a72a5acbfaac792ca207c418
refs/heads/develop
2020-05-02T17:02:10.578065
2019-10-27T15:53:32
2019-10-27T15:53:32
178,086,582
1
0
Apache-2.0
2019-06-06T00:32:48
2019-03-27T22:53:31
Python
UTF-8
Python
false
false
26,815
py
# Copyright 2019, Kay Hayen, mailto:kay.hayen@gmail.com # # Part of "Nuitka", an optimizing Python compiler that is compatible and # integrates with CPython, but also works on its own. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in complianc...
[ "kay.hayen@gmail.com" ]
kay.hayen@gmail.com
2c9578bb8c1413bfbb0ba22784dc571ba71e0c22
52b6f2b19fb501e48fbf6e078252c305c6477d73
/_science/prod.py
4e4d221bc38ba0a1950f6d732af1e64372aae2ba
[]
no_license
IanHung/_science
60dfeb959161e392dfc5d153f13e16a69bbd0b39
cff1b8ee3fa255e0761f9d0b98564af05feede66
refs/heads/master
2020-06-02T03:06:04.722352
2013-09-03T22:24:45
2013-09-03T22:24:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,141
py
''' Created on 2013-08-27 @author: Ian ''' import os DATABASES = { 'default': { 'ENGINE': 'django.db.backends.mysql', 'NAME': os.environ['RDS_DB_NAME'], 'USER': os.environ['RDS_USERNAME'], 'PASSWORD': os.environ['RDS_PASSWORD'], 'HOST': os.environ['RDS_HOSTNAME...
[ "ianmenghung@gmail.com" ]
ianmenghung@gmail.com
f71aaa51a64a2e67ff1b9823093a2019c5a2b983
d002ef03c46773b2c53c4ff724103281ad1d3652
/0-setup/1-basics/3-decision/4-modulo-operator/bot.py
d2ac3903fb5f4f92c4d2781744f1e62b0a9e4aac
[]
no_license
4courr72/com404
6b023dfeacea9bc50b418fb3b177a2dec451ff95
9018bfe1ee928a9ea65cadb9f1ba72b36dd24e91
refs/heads/master
2020-07-31T13:39:44.815221
2019-12-10T13:26:18
2019-12-10T13:26:18
210,621,119
0
0
null
null
null
null
UTF-8
Python
false
false
562
py
#Asking for user input (an integer!) print("Please enter a whole number.") number = int( input() ) #To force saved input as an integer - think of it as gets input first (so inside brackets) then turns it into an integer #Modulo 2 to see if odd or even if (number % 2 != 0): print("The number " + str(number) + " is ...
[ "4courr72@solent.ac.uk" ]
4courr72@solent.ac.uk
16ef81874494815258632712aecd282b3d3fe109
00fed3d8f6c4b73e62048ff910c1cbcecff422e3
/sample_mini_set.py
4aeed8c8a0217f1f84119df4f05ac36174dd93eb
[]
no_license
SeanZChen/SAR_PROJECT
9ee0eca9693a8d2b624bb90b7abc1be74a9371d2
c34d734ea6d1ba19d0d7a9a29297da2c1b5cf237
refs/heads/master
2021-05-25T23:51:01.882935
2020-06-05T11:56:40
2020-06-05T11:56:40
253,970,117
0
0
null
null
null
null
UTF-8
Python
false
false
1,600
py
################################################## # # author: Zixuan Chen # Date: 2020/04/07 # Description: # Sample small training set # ################################################## import os import random import cv2 import argparse cats = ['2S1', 'BRDM_2', 'BTR_60', 'D7', 'BMP2', 'BTR70', 'T72', 'T62', 'ZIL1...
[ "chenzixuan@sensetime.com" ]
chenzixuan@sensetime.com
f8942fcf58e92e580ebc988cc3035632d869faba
a561673adf29beb7939052b898dad5bf9167cefc
/pkg/codegen/internal/test/testdata/output-funcs/python/pulumi_mypkg/func_with_dict_param.py
194d0e90d558b3e0a7ef6ea22b51830d4b8c97fb
[ "Apache-2.0" ]
permissive
orionstudt/pulumi
50fd75d4ec7bb48646cd3c83198afcf4a556a5fa
7ef0b83c0cc7c4f9093e2a8fc0303e875d35c15c
refs/heads/master
2023-08-12T13:57:32.605402
2021-10-18T12:24:46
2021-10-18T12:24:46
312,097,288
0
1
Apache-2.0
2021-01-11T17:12:44
2020-11-11T21:43:03
null
UTF-8
Python
false
false
2,134
py
# coding=utf-8 # *** WARNING: this file was generated by test. *** # *** 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 __all__ = [ 'FuncWit...
[ "noreply@github.com" ]
orionstudt.noreply@github.com
ee7f8abd5fe37016ea1dc506931e4aacbe80ac29
10316355e41f868d2ad6dcd29962a349bca082c9
/venv/bin/django-admin
5eff6d709d2c349377db07cfc4fb3d55809e03db
[]
no_license
lucas-rafa-94/bexigaprojeto
d35e098072d5a6a5f4e7a66221f6325c31b67aa8
aa3e18856c0961678e5a6d5755b5878c67daea6f
refs/heads/master
2022-03-15T05:23:38.612991
2019-07-11T05:35:44
2019-07-11T05:35:44
194,945,376
0
0
null
null
null
null
UTF-8
Python
false
false
317
#!/Users/lucasdossantos/PycharmProjects/bexigaprojeto/venv/bin/python # -*- coding: utf-8 -*- import re import sys from django.core.management import execute_from_command_line if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(execute_from_command_line())
[ "lucas.dos@oracle.com" ]
lucas.dos@oracle.com
54837d0322474f4a5bb87c841c454ed412440574
9b018e9eac8d97fbcc1e76a69b95c994f79a6ea3
/randomtest/migrations/0054_auto_20170814_1657.py
6212765bfa979c499d1d27436ef03f9a60646c2d
[]
no_license
hbgolze/contest-database
e39f269d7337652e7cdad03cc29827d4f729ec8f
263385b438f7b7e1ab99062aad561ed0cec9c079
refs/heads/master
2023-06-26T21:30:08.246647
2023-06-11T02:34:41
2023-06-11T02:34:41
71,851,839
1
0
null
null
null
null
UTF-8
Python
false
false
701
py
# -*- coding: utf-8 -*- # Generated by Django 1.10.3 on 2017-08-14 21:57 from __future__ import unicode_literals from django.db import migrations, models import django.utils.timezone class Migration(migrations.Migration): dependencies = [ ('randomtest', '0053_problemgroup_is_shared'), ] operati...
[ "hbgolze@gmail.com" ]
hbgolze@gmail.com
e9175226a256f288a61fe9f8504a7a8c5b0780ac
6ce6dccdc47f4b6a9cd5251fcd3f6ca2225931a5
/sample/chapt02/chapt02-20.py
7151b64aae909c6fcff57f56c0aa7ce7e3c89289
[]
no_license
VsPun/learning
f411bd936b069b6b3a1b3f62dc8adc946f4ca978
c517bc48e241eb1cbf1411894b9d4ab4b3ead22c
refs/heads/master
2020-08-04T04:56:57.445164
2019-04-19T11:26:21
2019-04-19T11:26:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
255
py
def plusVal( val1, val2 ): r = val1 + val2 return r a = 10 + 20 # a=30となる b = plusVal( 10, 20 ) # b=30となる c = 10 + 20 + 30 # c=60となる d = plusVal( 10, 20 ) + 30 # d=60となる e = 10 + plusVal( 20, 30 ) # e=60となる
[ "zhu4bi1@hotmail.com" ]
zhu4bi1@hotmail.com
8f8ee752f8f128767c6d850042d54e473e726596
d5d12507f8e62abd6ad4ae143ed0c30d2ec70a34
/chapter_18/chapter18.py
146d239b75801d502cb20d34a582aeef597f4d22
[]
no_license
JohnHowardRoark/thinkcspy3
5ad3add17c4b534f0a1d007c7def1ace72583223
def8e6615f2bcef367cb747d13a9f3cf23ece83a
refs/heads/master
2020-09-19T21:35:57.213913
2019-12-22T18:25:58
2019-12-22T18:25:58
224,303,785
2
0
null
null
null
null
UTF-8
Python
false
false
1,190
py
""" How to Think Like a Computer Scientist: Learning with Python 3 Wentworth et al 2012 Chapter 18: Exercise 02 """ import turtle def make_window(colr, ttle): """ setup the window with given background color and title """ w = turtle.Screen() w.bgcolor(colr) w.title(ttle) return w def ma...
[ "johnschmidt@engineer.com" ]
johnschmidt@engineer.com
b3ae8ca2d64aa838dee23fbf5110cc142cdd0a73
6e9476a1715c2b2ae2fbfea557699f63bc781e1f
/src/whispy_lispy/compiler.py
a467ea5a6125b0a538e356169777b1073d2fc3ef
[ "MIT" ]
permissive
vladiibine/whispy_lispy
f92b872d91fa82abd19f31616760a68f68b5cc57
9e5d6196f24e5c3ed5fb8753620ace5994c24add
refs/heads/master
2021-01-10T01:30:39.478372
2016-10-07T20:45:12
2016-10-07T20:45:12
36,161,333
1
0
null
null
null
null
UTF-8
Python
false
false
247
py
# -*- coding utf-8 -*- """This module marks the intention to someday convert the AST emitted by the parser into some intermediate representation (or assembler core?) to maybe run on some virtual machines, like the python interpreter, JVM, etc. """
[ "vlad.ardelean@3pillarglobal.com" ]
vlad.ardelean@3pillarglobal.com
ff36301ab905c9ebfa065c44cf6fb1f52644949a
a837c7d25f9d55c4e756652f0c597c835021820f
/test/testCancion.py
0c9f89987547bcf85f8779bfbf20e0ed51f87bcf
[]
no_license
GisselleIb/BasedeDatos
1b4457c4bd5d2cf074484b69bab286ef101b7977
c8b264ac6641431912f1c21692487251d35fc0a8
refs/heads/master
2020-03-30T15:09:18.614282
2018-10-26T01:51:54
2018-10-26T01:51:54
151,350,509
0
0
null
null
null
null
UTF-8
Python
false
false
1,038
py
import unittest import sys sys.path.append('../..') from src.cancion import Cancion class TestCancion(unittest.TestCase): def setUp(self): self.cancion=Cancion() def test_setArtista(self): self.assertEqual(self.cancion.artista,"") self.cancion.setArtista("artist") self.assertEqu...
[ "gisselleib@ciencias.unam.mx" ]
gisselleib@ciencias.unam.mx
05c2d99222f7470e4c829593f2fcbf0f3a3aa404
ed6d11f0a506fd781fe0a307ea16ecf6880770bd
/ENV/bin/easy_install
99e1f536dfa11ccd02fa5b6a8edb39b272d6cfea
[]
no_license
Xa1n/gilded_rose_python
6dfe0a4536975f0c053d2fcf590972aecd187d3a
bea23b2d49708db9d44b75446d61451cf1504981
refs/heads/master
2020-06-01T09:03:44.961899
2019-06-07T10:18:07
2019-06-07T10:18:07
190,724,589
0
0
null
null
null
null
UTF-8
Python
false
false
290
#!/Users/xainstorey/Desktop/Makers/challenges/gilded_rose/ENV/bin/python3.7 # -*- coding: utf-8 -*- import re import sys from setuptools.command.easy_install import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "xhs893@gmail.com" ]
xhs893@gmail.com
6bea42a14ebfcac2b02dee5c682277b4ca32f59f
3017e7f0e8cd99469c7c98ec8a4b9b75d39c0c2f
/pythonkitabi/ingilizce/ch19/kalam/main.py
674f344a308f3216fde766ace3ab1fc1334017cd
[]
no_license
Rmys/projects
de6cb9d5d3f027d98c812647369d1e487d902c4b
60ce197bc1fb7ad3fa31f12559b74ee450b69df1
refs/heads/master
2020-03-19T15:36:11.603931
2011-09-16T00:15:34
2011-09-16T00:15:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
895
py
#!/usr/bin/env python """ main.py - application starter copyright: (C) 2001, Boudewijn Rempt email: boud@rempt.xs4all.nl """ import sys, locale sys.setappdefaultencoding("utf8") from qt import * from kalamapp import KalamApp from kalamdoc import KalamDoc from kalamview import KalamView import kalamconfig from ...
[ "ismail@users.noreply.github.com" ]
ismail@users.noreply.github.com
b9adc7331dee337e2a3ca0f2f3e0ea8179079032
c54722779374bf15b0e1bfef9cbc5b98001bbea8
/Reinforcement/R-1.5_squareSumComprehension.py
da748599de383ee5d89782ae7e35b8e0ddde5b7b
[]
no_license
fahrulardiannugroho/struktur-data-tugas-1
f210e035045d3a685fb2e1972f2ec7bf9e017d1a
500345debcd6ea4cd67d0010be83424edc06bd29
refs/heads/master
2023-05-03T12:22:02.062493
2021-05-31T12:44:27
2021-05-31T12:44:27
372,419,952
0
0
null
null
null
null
UTF-8
Python
false
false
95
py
def squares_sum(n): return sum(number**2 for number in range(0,n)) print(squares_sum(3))
[ "fahrul.sultra@gmail.com" ]
fahrul.sultra@gmail.com
d9486a49cfb4da916da38d7215ba0be37fbd98f5
9ea53850ba6135ac6f5686c1a38a1029ebccb294
/src/infer.py
d7e92fe3313444e734712fafe6c45921eb629952
[ "MIT" ]
permissive
yangbo/pytorch-vgg-cifar10
25f0a0c5b2e482587fbed1fd05342260456a8ab0
11870ecbe1620b2a8bd7a9163da8cb9c226c2fac
refs/heads/master
2021-09-01T06:03:13.876308
2017-12-25T08:12:53
2017-12-25T08:12:53
113,654,176
0
0
null
2017-12-09T08:23:43
2017-12-09T08:23:42
null
UTF-8
Python
false
false
570
py
import torch import sys def infer(): best_epoch = 273 # from 0 start checkpoint_file = '../save_da_vgg19_bn/checkpoint_{}.tar'.format(best_epoch) checkpoint = torch.load(checkpoint_file) print('best epoch is', checkpoint['epoch']) # import vgg sys.path.insert(0, '../src') ...
[ "bob_yang_dev@163.com" ]
bob_yang_dev@163.com
bf1ec2799e38215a98eae3c52afaf3ee5ca4190d
06d22b05c4069f24949c98a099694a806c0e237c
/Работа с данными в Pandas/Titanic.py
66cd0cdddbdcb2985111cc6611e3fa604e3d812e
[]
no_license
DuwazSandbox/ds_introduce
b02c36a6c388e3870c645d2d58474b9065ae45ca
ada734804e53b063f3b7ecebbfe73298eb23ee43
refs/heads/master
2023-04-28T09:34:05.696199
2021-05-06T07:08:35
2021-05-06T07:08:35
352,138,327
0
0
null
null
null
null
UTF-8
Python
false
false
9,408
py
import bs4 import pandas as pd import numpy as np from beauty_print import beauty_print titanic_full_df = pd.read_csv("https://github.com/agconti/kaggle-titanic/raw/master/data/train.csv", sep=",") # Общее представление работы с данными #beauty_print("Размер:", titanic_full_df.shape) #print("Инфо:") #tita...
[ "sh@khmatov.com" ]
sh@khmatov.com
e9efdb9fc7477f2fd0f82b93c4d61b80333782c6
41040a12d8dd8f7fa6ca4591139c68f446190870
/manage.py
f80a8bd3661075c7dcb46185f3b4a146b56aaacc
[]
no_license
laeeqkhan01/geoloctest_1
c1db7fab420e650741dd9a68e44dfea29d28f4df
99a6fc1dd2692310a342f2f2b3257ee58b7c025c
refs/heads/master
2023-01-04T03:48:52.441389
2020-10-26T00:53:39
2020-10-26T00:53:39
307,166,733
0
0
null
null
null
null
UTF-8
Python
false
false
632
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', 'geoloctest_1.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: raise I...
[ "laeeqkhan01@gmail.com" ]
laeeqkhan01@gmail.com
77ff76fa06821167c172846bf37979d9ac39e693
dc5ad69c775f7072248d9936d9773ba93ced4b27
/fabtools/require/apache.py
c109401d3abf58f4f443f3885cb74022891e2186
[ "BSD-2-Clause" ]
permissive
MorphiX00/fabtools
b8469b686dddfc86682ef0e78d2e91cea55fa133
0cde09d10ce3b8b8df763605e53c7a06a24d588f
refs/heads/master
2021-01-18T07:49:08.019949
2013-02-26T15:13:12
2013-02-26T15:13:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
786
py
import tempita from fabtools import apache from fabtools.require.deb import package from fabtools.require.service import started from fabtools.require.files import file as _file def server(): package('apache2') started('apache2') def site(site_name, template_contents=None, template_source=None, enabled=Tru...
[ "sklein@bearstech.com" ]
sklein@bearstech.com
a6d3e8adda1b8ff6dc2c78add86277e2aba7fabf
0f155d5615d9e6aa73dd238ad8c144ac89066f91
/tests/gold_tests/tls/tls_sni_host_policy.test.py
bd2ac5b2a37d6a820fa4f2038b7c8571e5338a22
[ "BSD-3-Clause", "OpenSSL", "MIT", "ISC", "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-openssl", "Apache-2.0", "LicenseRef-scancode-ssleay-windows", "BSD-2-Clause", "HPND", "TCL", "LicenseRef-scancode-public-domain", "LicenseRef-scancode-unknown" ]
permissive
nozomi1773/trafficserver
0491fb9a3e9bd6bfacc22e463186213e2e97b1ad
2ee141137545a84584d8047eee70b171b5254c40
refs/heads/master
2021-07-10T04:51:58.601768
2020-08-04T03:21:25
2020-08-04T03:21:25
181,676,681
0
0
Apache-2.0
2019-04-16T11:32:40
2019-04-16T11:32:40
null
UTF-8
Python
false
false
7,572
py
''' Test exercising host and SNI mismatch controls ''' # 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 ...
[ "shinrich@ieee.org" ]
shinrich@ieee.org
af115fd69d7e52b2290a00ca9b39401000f50d5c
e48723e45c247e15d26144fa003c3ddf1c480929
/templateFacadePractices.py
8fed9024f35bd9ed95253c0a70cabd28851780f7
[]
no_license
simonjj/ZenossScripts
962654387ba3fc8f373ae0f9ffabf5c1fecaca46
eea7c6756af965ff72b839c56c41a72c5f8eb1d5
refs/heads/master
2020-12-24T15:05:00.204961
2012-03-28T23:58:27
2012-03-28T23:58:27
2,534,367
3
0
null
null
null
null
UTF-8
Python
false
false
4,047
py
#get a hold of API from Products.Zuul import getFacade a = getFacade("template") #listing all of the templates for template in a.getTemplates("/zport/dmd/Devices"): #printing the "raw" info object print template #printing the ID of the the object print template.id print template.getName() #filtering...
[ "simon@zenoss.com" ]
simon@zenoss.com
773cae2cb5845ed68ef3e3c463bef91ccc809a89
b2ad72ec39c7c174be23311f28822a4136cf634c
/thr_interaction_controller/scripts/interaction_controller_gestures.py
4638619df3beece338d1add70f2b372546471f54
[]
no_license
3rdHand-project/thr_infrastructure
0a2e866561f6022176e5329859de0650b6a54322
d06fb3cb55ce303703a50bc8cf12017b7c95f926
refs/heads/master
2021-01-11T08:24:08.122093
2017-12-22T19:36:22
2017-12-22T19:36:22
51,926,129
0
1
null
null
null
null
UTF-8
Python
false
false
14,027
py
#!/usr/bin/env python import os import rospy import rospkg import actionlib import json from random import choice from threading import Lock from thr_infrastructure_msgs.msg import * from thr_infrastructure_msgs.srv import * from actionlib_msgs.msg import * from collections import deque from kinect2.client import Kine...
[ "yoan.mollard@inria.fr" ]
yoan.mollard@inria.fr
571105821c9382af323e4a0cb4a3a7a127838e1f
93c036c2c9a4175162391adfb33ff9211c0ca292
/onenet/alignPrint.py
1fde1cf55bf5cc0226fdafb1ef24ec85d5455c59
[]
no_license
fiso0/MxPython
ff8f021e57279190068c0dbe484384b28c6409f7
2c1545cf0f8a8062b948346006f6dbd05a1c74e9
refs/heads/master
2023-03-12T00:40:18.960523
2023-02-27T06:51:32
2023-02-27T06:51:32
59,210,103
0
0
null
null
null
null
UTF-8
Python
false
false
1,137
py
#!/usr/bin/python3 # -*- coding: utf-8 -*- # 经测试无效 # 重写一个格式对齐函数。函数中推断字符串是否是中文字符串,有的话则加入全角空格补齐,否则加入半角空格补齐。 def myAlign(string, length=0): if length == 0: return string slen = len(string) re = string if isinstance(string, str): placeholder = ' ' else: placeholder = u' ' while slen < length: re += placehold...
[ "fiso0@126.com" ]
fiso0@126.com
89c9af3c363d991a525ae91f0b0774b14f7f2552
11e6e2dfc53073bc0dd3c74751eaa0c2e900dd94
/REL_SERVIDORES_sqlconsulta.py
5b6532f94554364987feccf44347782aae0e9c68
[ "MIT" ]
permissive
tiagotouso/TALENTOS_HUMANOS
66c3cc013da8a12e797a277f541f3c74d913943e
c391f7d7a331d5f8b186b27af6a9b61448620cc6
refs/heads/master
2021-05-25T22:08:38.450403
2020-10-15T14:02:55
2020-10-15T14:02:55
253,940,735
0
0
null
null
null
null
UTF-8
Python
false
false
3,044
py
''' GERADOR DE RELATÓRIO MODELO PARA CONSULTAR A TABELA TB_SER_REL ''' from SQL import sqlpandas from AUXILIAR import salvarPandas def sqlConsultaNova(narquivo, colunas, tipo, carreira, grupo, renomear=True): ''' FUNÇÃO MODELO PARA CONSULTAR A TABELA TB_SER_REL CRIAR CONSULTA SQL E SALVAR ARQUIVO N...
[ "44351630+tiagotouso@users.noreply.github.com" ]
44351630+tiagotouso@users.noreply.github.com
62bf5a35b3734cfe82f533f2b605f1b22012c38d
8c52d18ecf23734d5457f7fde9f2e3a66e7d73e7
/backend/wallet/migrations/0001_initial.py
45781799168796d908f498ba7d93fa311743d71e
[]
no_license
crowdbotics-apps/klapr-19351
9dd3b8a0d2fa48fdec9d70086057677b0c13f90b
e0f3a98c18bb43e2b314206e1c480d6d54edff8c
refs/heads/master
2022-11-24T14:44:00.997468
2020-08-04T00:36:18
2020-08-04T00:36:18
284,837,987
0
0
null
null
null
null
UTF-8
Python
false
false
1,875
py
# Generated by Django 2.2.15 on 2020-08-04 00:35 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('taxi_profile', '0001_initial'), ] operations = [ migrations.CreateModel( n...
[ "team@crowdbotics.com" ]
team@crowdbotics.com