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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9eeb4be1cb93ab85fd14e38c367ec1ba4dc52f74 | a4e8849dfcbb64cb6b56b9eb45fb7e431c9cfdc0 | /s061-repaso/p03.py | b8bb2e0aeace2f6522ad3a560ec74647955b7d7a | [] | no_license | marvjaramillo/ulima-intro210-clases | 96b546eb79fbe34dbfa3e5726b1b8ed57523e110 | fef2d2ef487ef386196e0b9dd2fa66338de141bf | refs/heads/main | 2023-04-27T13:56:57.898602 | 2023-04-19T13:17:06 | 2023-04-19T13:17:06 | 344,644,221 | 2 | 0 | null | 2021-03-05T00:08:57 | 2021-03-05T00:08:56 | null | UTF-8 | Python | false | false | 1,466 | py | '''
Los minutos de tardanza de un grupo de empleados se encuentran almacenados en un diccionario
que tiene como clave el codigo de empleado y como valor una lista con los minutos de
tardanza por dia.
Implemente un programa que reciba este diccionario, un listado de codigos de empleado
y permita mostrar el empleado de ... | [
"usuario@correo.com"
] | usuario@correo.com |
ffd52c187b40075684ae17e912ffaad85f787083 | 82260f32dcf1597ddf4902b0b88b11c9d82ac1ae | /A6/6.1.py | 1dbdc6f1e148660aba65b0ae4a6d80eface54fb9 | [] | no_license | jorgeacosta19/BrandTech_WebDev | ac0ff9c0ee024353b9f9c046b6104a2db3bcc7fc | 1fd573ea1b0f67c6d654c9dbfe71c273b26a391e | refs/heads/main | 2023-01-14T13:22:12.235950 | 2020-11-24T20:31:42 | 2020-11-24T20:31:42 | 301,190,543 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 91 | py | # 1- Write a program that prints ‘Hello World’ to the screen.
print("Hello World")
| [
"noreply@github.com"
] | jorgeacosta19.noreply@github.com |
2d5ccf17197699d50e0b2fa57a4243eb7ca907aa | c609730a43596a2d3303f072fc97d9cf681fac7b | /cagey/carbuisness/main_currency_supply.py | ed84e5c37083ff51e2afabd4f2216adcf44c254f | [] | no_license | sinnettluo/ChenProject | 5403311c0c7b78c484145e16d692abff00d2a110 | 0e33ecf1683afb22f1deb4bd54294c41aed8a46b | refs/heads/master | 2023-03-22T23:48:08.430178 | 2020-09-02T15:05:02 | 2020-09-02T15:05:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 198 | py | from scrapy.cmdline import execute
import sys
import os
website = "currency_supply"
sys.path.append(os.path.dirname(os.path.abspath(__file__)))
execute(["scrapy", "crawl", website])
| [
"1316446041@qq.com"
] | 1316446041@qq.com |
a2c1d5da1c0a0a81f541829e0fa78e83503a4b56 | 7177274b29e5daece1c00585ec92090571b5cd28 | /__init__.py | 72734e593d1390178430c23e0923102259ae01af | [
"MIT"
] | permissive | tmizu23/SlideShow_plugin | cdd76a973269fa016f95a1b02f0b090b63a61db8 | 8634728fe497d11cd81467dc5aa29aee101887af | refs/heads/master | 2021-01-10T21:20:01.755222 | 2014-10-25T14:48:48 | 2014-10-25T14:48:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,506 | py | # -*- coding: utf-8 -*-
"""
/***************************************************************************
SlideShow
A QGIS plugin
This Plugin is SlideShow
-------------------
begin : 2014-09-20
copyright : (C) 2014 ... | [
"mizutani.takayuki@gmail.com"
] | mizutani.takayuki@gmail.com |
8df3b3f50a43565b98eb313b84920ee53a5850e9 | c86b2d4e8431e35681e9725f6174042ad7411d5f | /Exercise_02/Shop/SH_10.py | ecfd62cbe230b3c2f2c659b55a98e198083c89a9 | [] | no_license | nadung65/Assignment_10 | a44a04cd47838abf37634791e4aa4e67b93561d4 | 03faa49cba5a105475cc980001e60a88e8ff3dd8 | refs/heads/main | 2023-04-22T12:53:10.754476 | 2021-05-13T14:26:17 | 2021-05-13T14:26:17 | 367,067,897 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,774 | py | import unittest
import time
from selenium import webdriver
PATH = "C:\Program Files\chromedriver_win32\chromedriver.exe"
class SH_10(unittest.TestCase):
def setUp(self):
self.driver = webdriver.Chrome(PATH)
def testSH_10(self):
driver = self.driver
driver.get('http://practice.automat... | [
"nadung.18it1@vku.udn.vn"
] | nadung.18it1@vku.udn.vn |
d69370d7a2f4e7087b2969610f4b97703dddf151 | 2f5e406579e965acb535183f4c4cb0e889db2ecd | /ExtraDataset.py | 557cddf77b561247ca30c66f56771cc0edc5b273 | [] | no_license | rm3028/Deep-Generative-Model | 7504296de65739e842274cec824ec045526a59d2 | b7587c5f2f6aac0530d460e76e6c2614360bd570 | refs/heads/master | 2023-02-25T13:19:44.853641 | 2021-01-29T17:48:04 | 2021-01-29T17:48:04 | 329,917,999 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 671 | py |
import pandas as pd
from skimage import io
import torch
from torch.utils.data import Dataset
class ExtraDataset(Dataset):
def __init__(self, dataset_dir):
self.dataset_dir = dataset_dir
self.dataset_df = pd.read_csv(dataset_dir + '/tags.csv', names=['id', 'tag'])
def __len__(self):
r... | [
"rm3028@hotmail.com.tw"
] | rm3028@hotmail.com.tw |
244c6743b325be89e3cda486203303f568032386 | 8ea28a828b808acedb405670fa1be13f3ce1b463 | /pyqtdeploy/sysroot/packages/pyqt3d.py | aba52d3b28fdd883d1c52b50b4988d66d839de32 | [
"BSD-3-Clause"
] | permissive | GreatFruitAndy/pyqtdeploy | bed2c784e9ce554ac448ae9355bf3ffb802b885a | ea1ade32f8f5bff203ae24400381f6697da2221e | refs/heads/master | 2021-05-07T03:05:51.241234 | 2017-11-10T17:02:57 | 2017-11-10T17:02:57 | 110,604,244 | 1 | 0 | null | 2017-11-16T23:12:52 | 2017-11-13T21:26:41 | Python | UTF-8 | Python | false | false | 3,206 | py | # Copyright (c) 2017, Riverbank Computing Limited
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice,
# this list of c... | [
"phil@riverbankcomputing.com"
] | phil@riverbankcomputing.com |
5fc764e2fc52a3262e04593a0fbc5a6b954f383e | 89f3ba8905ce2ebad1a9605f683024dcd9ae1f7f | /api/models.py | 8ff6448a8317132d187dd5c7b219dbd43e49f6fc | [] | no_license | vishnualapra/carservice | 1d26efb355ff54cb942ea6f36e96590e41df88d1 | 69aba53576aad96c169f64b5384ebe7b49a73234 | refs/heads/master | 2020-08-22T16:06:48.903210 | 2019-10-23T21:07:17 | 2019-10-23T21:07:17 | 216,432,482 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,313 | py | from django.db import models
# Create your models here.
#manufacturer
class Manufacturer(models.Model):
manufacturer_code = models.IntegerField(primary_key=True)
manufacturer_name = models.CharField(max_length=100)
manufacturer_detail = models.TextField()
created_at = models.DateTimeField(auto_now_add... | [
"vishnualapra@gmail.com"
] | vishnualapra@gmail.com |
434f059f47cc43ee8c54755a5358bb465f552f55 | 36466c39d3ae94c2f936d4fdfe0fd4b034bbfa80 | /3rdparty/tvm/python/tvm/relay/ir_pass.py | 6de6437b9eb9aad573e7603f12fc20fde1da7c86 | [
"Apache-2.0",
"Intel",
"LicenseRef-scancode-unknown-license-reference",
"BSL-1.0",
"MIT",
"BSD-2-Clause",
"Zlib",
"NCSA",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"BSD-2-Clause-Views"
] | permissive | zhouhuaman/dgt | ccc674dc6abb055eeb5b88eaa0177de3a051b362 | a1df50efa3b635c20ddaa6bc5068e5f7bb863b5e | refs/heads/master | 2022-11-27T21:53:05.980980 | 2020-01-13T09:33:14 | 2020-01-13T09:33:14 | 233,558,790 | 1 | 2 | Apache-2.0 | 2022-11-23T15:05:17 | 2020-01-13T09:29:56 | C++ | UTF-8 | Python | false | false | 1,556 | py | # pylint: disable=no-else-return,
# pylint: disable=unidiomatic-typecheck
"""The set of passes for Relay.
Exposes an interface for configuring the passes and scripting
them in Python.
"""
from . import _ir_pass
from . import _make
# pylint: disable=invalid-name
def infer_type(env, expr):
"""Infer the type of expr... | [
"zhouhuman@163.com"
] | zhouhuman@163.com |
38968e8d9f98d633ef3f2e85e0e1b808a3a42451 | be3f8597b2d3224c7a6d9d64eba54b382f3e5936 | /WebApp/TextRank.py | 798e266b8092c584de82cc4b02a3b9fb45e010e9 | [] | no_license | ya2366/unilever_nlp_capstone | a979e7717af1e97a83a36dbb30f89be5cfe23cff | 5df3d094765ae01874fe66b8b3579aca02648e99 | refs/heads/master | 2021-09-02T10:44:28.980591 | 2018-01-02T01:37:56 | 2018-01-02T01:37:56 | 113,112,355 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,973 | py | """
From this paper: https://web.eecs.umich.edu/~mihalcea/papers/mihalcea.emnlp04.pdf
External dependencies: nltk, numpy, networkx
Based on https://gist.github.com/voidfiles/1646117
"""
import io
import nltk
import itertools
from operator import itemgetter
import networkx as nx
import os
# apply syntactic filters ba... | [
"yutingan@graphen.ai"
] | yutingan@graphen.ai |
28ae56610dcda85516ba0f5cbeda86fcbdc07548 | 862c806d1d277ad4444af13b05f0d364f1c24b83 | /examples/operator_v1.py | 85a5ba5aa1f47f2f57e738add72e9c953fbd2a2f | [] | no_license | irvinlim/pymesos-0.3.4-bugrepro | babc1f057093f3e291c780e337b856d67b3e581e | 38909cad4f1feb7d7b996ac701340f305e364905 | refs/heads/master | 2020-03-24T07:43:13.893083 | 2018-07-27T12:11:28 | 2018-07-27T12:11:28 | 142,572,827 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,287 | py | #!/usr/bin/env python2.7
from __future__ import print_function
import sys
from pymesos import MesosOperatorMasterDriver, OperatorMaster
class MinimalOperator(OperatorMaster):
def __init__(self):
pass
def taskAdded(self, task_info):
logging.debug('Task added')
logging.debug(task_info)
def taskUpdated(self... | [
"limir@seagroup.com"
] | limir@seagroup.com |
69bef76ac68fc60f87f5f5e549027b0bcfae66f7 | 91a2ecfaf5dc6c917ec2fda31f56291103f68ceb | /tests/protos/test_ctc_loss.py | 6da44120062bdda6381ed74e2c0f8225fffc8ae4 | [
"BSD-3-Clause"
] | permissive | MyrtleSoftware/myrtlespeech | 635d1d16d1bd60fb07a4d30edbf9acb61786c13f | 8522048fd37744ffa06827a0cbd202b839a15453 | refs/heads/master | 2021-07-16T14:55:00.479967 | 2020-03-20T14:33:15 | 2020-03-20T14:33:15 | 192,501,300 | 12 | 1 | NOASSERTION | 2020-03-20T14:33:17 | 2019-06-18T08:44:33 | Python | UTF-8 | Python | false | false | 1,042 | py | from typing import Dict
from typing import Optional
from typing import Tuple
from typing import Union
import hypothesis.strategies as st
from myrtlespeech.protos import ctc_loss_pb2
from tests.protos.utils import all_fields_set
# Fixtures and Strategies -----------------------------------------------------
@st.co... | [
"sam@samgd.com"
] | sam@samgd.com |
641393e4ba73eb019ef8abc5d60bcf52802b1b08 | b82efae8184e01630e0befb2be675cbcec254758 | /src/GraphGP.py | 1a3daddddffb4d1351f884553595eff014a03f1b | [] | no_license | tankred-saanum/Cognitive-maps-for-rewards | 9ba16e3252c1c4698b719d017cc4d4e9a262802b | 1ebb133af8e3a37bec4863ee38b233f1c15c4edd | refs/heads/main | 2023-04-07T03:28:04.269511 | 2023-01-16T20:29:54 | 2023-01-16T20:29:54 | 371,415,219 | 4 | 3 | null | 2023-01-16T20:29:30 | 2021-05-27T15:08:34 | Jupyter Notebook | UTF-8 | Python | false | false | 8,842 | py | import matplotlib
from matplotlib import pyplot as plt
import networkx as nx
import numpy as np
import copy
import scipy
from scipy.optimize import minimize
#from scipy import minimize
from MonsterPrior import MonsterPrior
import pickle
class LaplacianGP():
''' A GP model which computes the kernel function over ... | [
"tankred.saanum@gmail.com"
] | tankred.saanum@gmail.com |
35614a4b8e4a335c54fd174d3cf65ff29c823483 | db9ff8accaa4d8d4a96d3f9122c0fdc5e83ea2a5 | /test/test_price_quantity.py | 12635c2d23b1dcacf3ca517e059fcaba37c32bd5 | [] | no_license | agtt/ebay-openapi-inventory | 4754cdc8b6765acdb34f6b8f89b017ccbc6b1d2b | d990c26f16e811431892ac6401c73c4599c2d414 | refs/heads/master | 2023-06-17T10:53:43.204075 | 2021-07-14T18:32:38 | 2021-07-14T18:32:38 | 386,039,734 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,200 | py | """
Inventory API
The Inventory API is used to create and manage inventory, and then to publish and manage this inventory on an eBay marketplace. There are also methods in this API that will convert eligible, active eBay listings into the Inventory API model. # noqa: E501
The version of the OpenAPI docum... | [
"csd@hotmail.com.tr"
] | csd@hotmail.com.tr |
73a212ad058bfe0804c7b0bca1a93042ce35c082 | 8783d015169267c27062a231c33aa7450fc7153d | /hackers_rank/euler/0013_large_sum.py | c36466ed1a90eb344d6aadd42097768775c0189f | [] | no_license | thangarajan8/misc_python | 51619e932ffd972be78a23b62ad69b34f84f035d | b00ad259e240a3897348bc80fb9040a257db208f | refs/heads/master | 2021-06-26T02:14:13.613212 | 2021-02-05T04:35:25 | 2021-02-05T04:35:25 | 209,036,549 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 369 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Nov 7 17:16:29 2019
@author: Thanga
"""
a = [37107287533902102798797998220837590246510135740250,
46376937677490009712648124896970078050417018260538,
74324986199524741059474233309513058123726617309629,
91942213363574161572522430563301811072406154908250,
230675882075393461711... | [
"Thangarajan.P@tvscredit.com"
] | Thangarajan.P@tvscredit.com |
5d314b91eab30ca0734edabfe18f84b0b0ac2a17 | 9aab31e0a55d1f56c5e4eff383760f93cf7445ca | /RamseyNumber/classification/irrep_preloaded.py | fff97eaf5329ea2031f367a9a5aa6fecd051f6be | [] | no_license | chngr/kakko | d6ecbe252dfed19e62e221116aea9e2ec696a1f6 | 92ab05ccda63d92a0f8c81df82b1f7d624dc03f6 | refs/heads/master | 2020-12-03T05:10:43.592407 | 2017-08-02T17:21:53 | 2017-08-02T17:21:53 | 95,740,495 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 11,491 | py | # irrep.py
# weight_space_gen(): generates root spaces
# Input: cartan_basis -- list with Cartan basis set
# diag_mat_list -- list of diagonal matrices corresponding to Cartan basis
# (with corresponding indices)
# alg_dim -- dimension of overall Lie algebra
# Output: weight_space... | [
"alb2281@columbia.edu"
] | alb2281@columbia.edu |
1d50b61828a456cb2f62f40d2b4df66539beed6a | 262867f5676720d60387d39028079ba564bb0d87 | /bot_news/ml_news/ml_news/ml.py | 9110b160ffc7066ad520b72b573909cc937ae916 | [] | no_license | carlosb1/projects-rust | 665da7a98a3c73bb6d23208f63718deb888e4f6b | 43415681cd15a5a3745f135173654eba79fe6908 | refs/heads/master | 2023-09-03T15:46:34.422455 | 2023-08-18T20:53:24 | 2023-08-18T20:53:24 | 163,627,222 | 5 | 0 | null | 2023-03-24T23:41:54 | 2018-12-31T00:26:47 | Rust | UTF-8 | Python | false | false | 872 | py | from transformers import AutoTokenizer, AutoConfig
from transformers import AutoModelForSequenceClassification
from transformers import TextClassificationPipeline
def model_fn(name_model):
tokenizer = AutoTokenizer.from_pretrained(name_model)
model = AutoModelForSequenceClassification.from_pretrained(name_mod... | [
"carlos.baezruiz@gmail.com"
] | carlos.baezruiz@gmail.com |
b03d463ca4f81654c0ca10f1a8a910e295f5ae85 | 8a6bac97182629f426e442308f6db53ee932e537 | /venv/Lib/site-packages/django/contrib/gis/db/backends/oracle/adapter.py | 40989df765a8ea953c4834167ea168d8fd853b8e | [] | no_license | AmalioF96/DashBoard | 8b8af75e7db7ab095c0cd05acb8b2b2764ab5fd5 | 4500a84a934fd5c24199d1864f0667c0d90e6174 | refs/heads/master | 2023-01-08T02:03:05.168925 | 2020-11-07T12:19:53 | 2020-11-07T12:19:53 | 230,789,973 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,507 | py | from cx_Oracle import CLOB
from django.contrib.gis.db.backends.base.adapter import WKTAdapter
from django.contrib.gis.geos import GeometryCollection, Polygon
class OracleSpatialAdapter(WKTAdapter):
input_size = CLOB
def __init__(self, geom):
"""
Oracle requires that polygon rings are in prope... | [
"amaliocabeza.16@gmail.com"
] | amaliocabeza.16@gmail.com |
5804b448d279b66e3077be6b2016ef4e6230d463 | 46279163a543cd8820bdc38133404d79e787c5d2 | /benchmarks/tensorexpr/reduction.py | bc3e4e158a1750a0c9732c91297461f01ff5126b | [
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"BSL-1.0",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | erwincoumans/pytorch | 31738b65e7b998bfdc28d0e8afa7dadeeda81a08 | ae9f39eb580c4d92157236d64548b055f71cf14b | refs/heads/master | 2023-01-23T10:27:33.628897 | 2020-12-06T01:22:00 | 2020-12-06T01:23:40 | 318,930,000 | 5 | 1 | NOASSERTION | 2020-12-06T01:58:57 | 2020-12-06T01:58:56 | null | UTF-8 | Python | false | false | 5,706 | py | from . import benchmark
class ReduceBench(benchmark.Benchmark):
def __init__(self, mode, device, dtype, case, M, N, K):
super().__init__(mode, device, dtype)
self.case = case
self.M = M
self.N = N
self.K = K
self.inputs = [self.randn(
[M, N, K], device=... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
084d8ca89f293bf5398b5ab07d7076af43a5fb8d | 590a0c3a7254b8dac85ab18072dbf766aca7af93 | /Python-Exercise-100/python-exercise-example07.py | 01777ba168c7f8e9c5ee7615fd7642d9f407aaf6 | [
"MIT"
] | permissive | MiracleWong/PythonPractice | 90c66d29a9cdf0200d3dbac946d05f12dd856e91 | 40aecd84045ad18f6aff95d5b8be8e352ca0a726 | refs/heads/master | 2021-08-15T17:19:51.543013 | 2021-06-15T03:59:51 | 2021-06-15T03:59:51 | 98,256,005 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 164 | py | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
# 地址:http://www.runoob.com/python/python-exercise-example7.html
a = [1, 2, 4, 5, 5, 6, 7, 7]
b = a[:]
print(b)
| [
"cfwr1991@126.com"
] | cfwr1991@126.com |
49ad24efef53d23c86760ee96c78f87e3dbe2cf5 | 7200d065030f2daf00a5249e9e4fe569438c78c7 | /scrapers/dizilab_scraper.py | 76713de8e84af6b17220f3eaed0295e7b7a714f8 | [] | no_license | matt2005/salts | c765b037be1a2bb0e486ae9b30eceaf2b7c3bf14 | 5f71bc71e7b0b480f40d948d5568604dd181b6ad | refs/heads/master | 2020-12-31T04:16:45.574380 | 2015-12-07T22:57:31 | 2015-12-07T22:57:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,957 | py | """
SALTS XBMC Addon
Copyright (C) 2014 tknorris
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 3 of the License, or
(at your option) any later version.
T... | [
"tknorris@gmail.com"
] | tknorris@gmail.com |
6b51b24a86d97f35f69a59c8dbc0e913bf0876c9 | cdf9ba7b329d66a1b664d505332d4a441f6bf075 | /benchmarks/SimResults/_bigLittle_hrrs_spec_tugberk_pinned/cmp_mcf/power.py | ba961d5f8f3483e208416648d0c7e4f2c4795df5 | [
"MIT"
] | permissive | TugberkArkose/MLScheduler | 3247c0bbc11c09261a3bad777f3940a465e5f15a | e493b6cbf7b9d29a2c9300d7dd6f0c2f102e4061 | refs/heads/master | 2021-03-27T19:11:44.207818 | 2020-03-19T11:32:08 | 2020-03-19T11:32:08 | 92,518,861 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 68,592 | py | power = {'BUSES': {'Area': 1.33155,
'Bus/Area': 1.33155,
'Bus/Gate Leakage': 0.00662954,
'Bus/Peak Dynamic': 0.0,
'Bus/Runtime Dynamic': 0.0,
'Bus/Subthreshold Leakage': 0.0691322,
'Bus/Subthreshold Leakage with power gating': 0.0259246,
'Gate... | [
"dn@fabre.ac.upc.es"
] | dn@fabre.ac.upc.es |
2c21c9fdf85b8db3d86708de109471dd19577441 | 3ed216ddff0ce7c303c33cfb54c0153518ee26d6 | /2_Last Position & Math Table.py | 594b4079ef607f75ec526eb8776c3f43f911e3bb | [] | no_license | Tuseeq1/PythonPractice | 9d289e49b71b00701100e22120d37f76d0bba8f7 | c1b3f9e1844be11b1211add17dcdffaeaf0820c1 | refs/heads/master | 2020-03-26T11:13:28.165390 | 2018-08-15T09:42:47 | 2018-08-15T09:42:47 | 144,834,065 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 637 | py | # Define a procedure, print_multiplication_table,
# that takes as input a positive whole number, and prints out a multiplication,
# table showing all the whole number multiplications up to and including the
# input number. The order in which the equations are printed matters.
def print_multiplication_table( n ):
... | [
"noreply@github.com"
] | Tuseeq1.noreply@github.com |
af928c4a421a6a4199fcdf6c6e6f13a037405bf3 | 4870cf316c69e6c404915318839b9bffd19233ba | /haystack/pipeline.py | bbad3380406c5891a4e24ae9272fa5f263f8dc7d | [
"Apache-2.0"
] | permissive | marjanhs/haystack | bdf16e3f7365772462efd199ceb3f9654e1c3715 | 2a226daac4ceec3eb9707fa6618500e247929684 | refs/heads/master | 2023-07-12T06:42:30.266327 | 2021-08-20T15:01:55 | 2021-08-20T15:01:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 58,675 | py | import copy
import inspect
import logging
import os
import traceback
from abc import ABC
from copy import deepcopy
from pathlib import Path
from typing import List, Optional, Dict, Union, Any
import pickle
import urllib
from functools import wraps
try:
from ray import serve
import ray
except:
ray = None
... | [
"noreply@github.com"
] | marjanhs.noreply@github.com |
26cb0c372639eca1917f3f89ff693d0b6ea8e6c8 | c6c0ed7585ee7dbdb328e23ffd6f9f8e007b3356 | /python/everything_app/trainer.py | cc842a06dc85bcf616831906fc6132a791114daf | [] | no_license | yoavilovich/Everything_Test_App | 51fe18d8a35d0899b109cae307292b4c7030973a | 4d8c73c415fcfbed852ab57ff7efa0b332e5eb0b | refs/heads/master | 2021-01-18T14:10:38.728437 | 2013-02-25T20:02:09 | 2013-02-25T20:02:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,752 | py | '''
Created on Feb 25, 2013
@author: yoav
'''
import json
import nltk
import math
import urllib
import os, sys
### Trainer extracts a relevant dictionary from the training set, and creates the occurunce matrix of the words in the movie plot
def get_training_set(): #extracts the training set from file into a python l... | [
"yoav.ilovich@outlook.com"
] | yoav.ilovich@outlook.com |
bcb87b977ae9f3dda477d957cc6ee78f8f5cdf2e | fbf6fcd3720d1a5f1f01f91c7ecad68f1b296924 | /tools/test_modules.py | 85199d0138cfbbde70f10f93fa006cc06675053a | [
"MIT"
] | permissive | uvavision/DrillDown | 9602ddabd712d14df10e7026db3d7e62e7e4edba | ad0ef773b3af0859e48ea302f4f1d87215b26cef | refs/heads/master | 2022-04-28T21:42:06.366515 | 2022-04-15T12:14:25 | 2022-04-15T12:14:25 | 214,220,415 | 11 | 4 | null | null | null | null | UTF-8 | Python | false | false | 14,358 | py | #!/usr/bin/env python
import _init_paths
import os, sys, cv2, json
import math, PIL, cairo
import numpy as np
import pickle, random
import os.path as osp
from time import time
from config import get_config
from copy import deepcopy
from glob import glob
import matplotlib.pyplot as plt
from vocab import Vocabulary
from... | [
"fuwen.tan@gmail.com"
] | fuwen.tan@gmail.com |
b7558607fcad286760fb506037fdaea76c39703a | 5662986bdd309e898186fab4b18e3c2acd7b854b | /your_project/your_package/migrations/0001_initial.py | 939d2573e283f839628f5c24ea1c6a7d2f34813a | [] | no_license | axiome-oss/dive-into-django-i18n | 8cf02243d20b47a5c4df39e0ce2434c72b3fd031 | 94016731ee58200feae56bfa5fa0c7d75cd76ba1 | refs/heads/master | 2021-01-19T21:36:42.338160 | 2015-11-06T13:27:23 | 2015-11-06T13:27:23 | 39,247,664 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 674 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
operations = [
migrations.Create... | [
"vbilley@axiome.io"
] | vbilley@axiome.io |
6d3a3465b4ee31a0ef11af36dbc99065914d9f18 | dae17a2d278ce78ab987e77658a24f89903e8fac | /ecomm/account/migrations/0003_auto_20180402_1601.py | 4709df63bfa1ba9b83496a7c91f2ca6efc625579 | [] | no_license | derikkip96/efarm | fdf15412cc3d77e166ffe90a2f6cb8a47f28092d | a1588ae6e7d49bac87e41b1fc5e566b28f437581 | refs/heads/master | 2022-12-09T23:28:01.200170 | 2019-09-02T21:41:12 | 2019-09-02T21:41:12 | 137,985,336 | 0 | 0 | null | 2022-11-22T02:34:00 | 2018-06-20T05:44:09 | CSS | UTF-8 | Python | false | false | 404 | py | # Generated by Django 2.0.2 on 2018-04-02 13:01
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('account', '0002_auto_20180331_0212'),
]
operations = [
migrations.AlterField(
model_name='profile',
name='image',
... | [
"derikkip96@gmail.com"
] | derikkip96@gmail.com |
e59eaebb53a1dd0de0208e35718b32e92973811d | b7126fb70f72fea0e7bba6fe2fef6925302ef07b | /tceh5_opp/self_work/task1.py | 735da977c22bdb199e6944c42bfec6b0ac104bb8 | [] | no_license | duk1edev/tceh | 79cd909c5a6221a2ca77d342b917462345140faa | 21649d42488883beb58d709f4a9d1a05c75d2900 | refs/heads/master | 2021-07-12T10:20:22.330005 | 2020-04-29T09:24:08 | 2020-04-29T09:24:08 | 239,434,484 | 0 | 0 | null | 2021-03-20T03:38:26 | 2020-02-10T05:25:33 | Python | UTF-8 | Python | false | false | 1,781 | py | # 1. Создать класс корзина у кторого можно выставить разную вмесительность
# для разных обьектов. В обект можн опомещать разные
# 2. Создать класс - пакет в кторый тожно можн опомещать предмет у него тоже есть вместимость
# 3. Любой класс что бы можно было помещать в корзину и в пакет
# 4. Если вместимоть не достаточ... | [
"duk1e.ptc.ua@yandex.ru"
] | duk1e.ptc.ua@yandex.ru |
e6363546ba11afa88ac3d92f07661dcdc012c4da | 8c44cf09689711b9389eeb9416c8fad45aee2009 | /phron/text_sanitizer.py | cdf2b53e6de63af45639f2cb6c8e3dd940d5c3ba | [
"Apache-2.0"
] | permissive | pacu/phron | 71e880865a13d194257acc399c3397da58739e2e | 03d6b0cb997b361bb1c7fe6a1be5414638036450 | refs/heads/master | 2021-06-16T23:13:24.420625 | 2021-05-27T18:09:28 | 2021-05-27T18:09:28 | 197,436,355 | 0 | 0 | Apache-2.0 | 2021-05-27T18:09:29 | 2019-07-17T17:45:29 | Python | UTF-8 | Python | false | false | 1,228 | py |
def sanitize_weka(text: str, remove_newlines=True, escape_doublequote=True, escape_singlequote=True,remove_separator=None) -> str:
"""
sanitize this text for weka CSV importer.
Parameters:
remove_newlines(Bool): removes newline charaters and replaces them with blank spaces. Default: T... | [
"francisco.gindre@gmail.com"
] | francisco.gindre@gmail.com |
9002db9fb689e2de7cb305ce596ae3d6f5abfe61 | 59062b36911a3f827d638910a653d280556869cb | /python/snippet1.py | 14e7233d5cb9b374b8e1a8da7099bc8edf2fce31 | [] | no_license | atharva-bhange/codesnippets | aedeca7782b730ea35b5cf1de589f9d577b5e839 | d6d2dc1da5889f26f1864b547f5cdc14cfd071d9 | refs/heads/master | 2021-01-02T07:37:48.514000 | 2020-02-10T20:02:08 | 2020-02-10T20:02:08 | 239,551,206 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 139 | py | # Snippet 1
class dog(object):
def __init__(self):
pass
def speak(self):
pass
mark = dog()
print("Code complete")
| [
"atharva.bhange@gmail.com"
] | atharva.bhange@gmail.com |
31bda42177c67668b02106a2e58888a61630ed09 | 99e1a15d8f605be456f17608843c309dd8a3260f | /src/Battle/Attack/Steps/Test/suite.py | a11d3df523d7d71da56074941becf66d934c86c9 | [] | no_license | sgtnourry/Pokemon-Project | e53604096dcba939efca358e4177374bffcf0b38 | 3931eee5fd04e18bb1738a0b27a4c6979dc4db01 | refs/heads/master | 2021-01-17T23:02:25.910738 | 2014-04-12T17:46:27 | 2014-04-12T17:46:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,034 | py | import unittest
from Battle.Attack.Steps.Test.remove_pp_step_test import suite as remove_pp_step_suite
from Battle.Attack.Steps.Test.handle_miss_effects_step_test import suite as handle_miss_effects_step_suite
from Battle.Attack.Steps.Test.handle_contact_step_test import suite as handle_contact_step_suite
from Battle.... | [
"cloew123@gmail.com"
] | cloew123@gmail.com |
74a70cddec3707af88424f902a735dd471053666 | 7ed05e81c563b8931bdf232daf88d466bb06d698 | /polls/admin.py | 896bfe8b3f74c75e466c660292ed8b4b3f4afc85 | [] | no_license | chetansurwade/poller | c940ffc8bd19b6a5ee671322c8d2483a53170ee9 | 77657f248a3ba856e89b432593b41eaa7f455e7f | refs/heads/master | 2020-09-25T22:29:36.609327 | 2019-12-05T15:17:39 | 2019-12-05T15:17:39 | 226,101,472 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 555 | py | from django.contrib import admin
from .models import Question, Choice
admin.site.site_header = "Poller Admin"
admin.site.site_title = "Poller Admin Area"
admin.site.index_title = "Welcome to the Poller admin area"
class ChoiceInline(admin.TabularInline):
model = Choice
extra = 3
class QuestionAdmin(admin.... | [
"chetansurwade@outlook.com"
] | chetansurwade@outlook.com |
8375cedfd57bf1a7dd0794d23b840cd0ffe5bb75 | 6f7495631dcf2d8ad1e878f8492ffc686691d50a | /day03/ex03/ColorFilter.py | 37bff11b9302a956184f017affb0d8cde2999409 | [] | no_license | mli42/python_bootcamp | 0e0012f611902c0be40ea4933d17255652465501 | 4e71ec20b12676016514875ee96d15dafb177718 | refs/heads/main | 2022-12-11T00:55:44.880734 | 2022-09-16T15:13:16 | 2022-09-16T15:14:13 | 233,590,858 | 3 | 2 | null | 2022-12-08T13:07:05 | 2020-01-13T12:30:49 | Python | UTF-8 | Python | false | false | 6,240 | py | # **************************************************************************** #
# #
# ::: :::::::: #
# ColorFilter.py :+: :+: :+: ... | [
"mli@student.42.fr"
] | mli@student.42.fr |
8ebeb25ae069db43b23b35eea9b3cb49e7564d1c | d4e1b610db981020019a10af1fc90311cc0900d6 | /students/ReemAlqaysi/lesson06/test_mailroom.py | af851981a3cb52f99e0b0734f1d64f3604772217 | [] | no_license | InduKolli/SP_Online_PY210 | c9c7b52b6ac6be3f10c210cebe74b4564f35b989 | 49589778454c1549a12fd6f8bc2e44e022b86b72 | refs/heads/master | 2020-06-11T16:40:49.368669 | 2019-11-11T03:17:54 | 2019-11-11T03:17:54 | 193,431,588 | 1 | 0 | null | 2019-06-24T04:06:29 | 2019-06-24T04:06:29 | null | UTF-8 | Python | false | false | 2,046 | py | #!/usr/bin/env python3
import mailroom
import os
donor_list = {
"Jan Balard": [600.00,250.00],
"Joe McHennry": [1500.00,1500.00],
"Jeff Hansen": [450.00,150.00],
"Scott Newman": [100.00,5000.00],
"Rabi Das": [500.00,950.00]
}
def test_send_letter_text():
letter = '''\n\nDear Reem Alqaysi:... | [
"reem3@uw.edu"
] | reem3@uw.edu |
7f4cb87cab420060f0713c8c91401f606532723a | b26c0b0d767f62325fb3963118698e5c77819c70 | /Rice Python/Rice Rocks (no animation).py | c441c42cf385f97d4c47b119bfa31f318d65ec60 | [] | no_license | alecmchiu/MOOCs | 8336ad3ed52262ce543ed0a817252362041900c9 | f87549d19f304b64df8ad51387aa8252062676fd | refs/heads/master | 2021-01-12T01:31:48.061261 | 2017-08-18T02:59:06 | 2017-08-18T02:59:06 | 78,399,530 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,259 | py | # implementation of Spaceship - program template for RiceRocks
import simplegui
import math
import random
# globals for user interface
WIDTH = 800
HEIGHT = 600
score = 0
lives = 3
time = 0
started = False
class ImageInfo:
def __init__(self, center, size, radius = 0, lifespan = None, animated = False... | [
"alecmchiu@gmail.com"
] | alecmchiu@gmail.com |
9a2ea1d5b16e6bceebfb05ef2b319e294caf9509 | f61208a1bb90c03c2a6c4540c04623d9c2a77064 | /python labs/hackerrank/percentage.py | 3f151c38e935d737f7360773b3c8c44a2492f4bc | [] | no_license | albinai/Wd | f49b39ae8387fd02d04c5721b9505ebc1c6897da | 2d2e315327cf60c1943da3b8ca29017d07fc3843 | refs/heads/master | 2020-12-29T06:02:27.177059 | 2020-04-09T23:54:49 | 2020-04-09T23:54:49 | 238,482,757 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 312 | py | if __name__ == '__main__':
n = int(input())
student_marks = {}
for _ in range(n):
name, *line = input().split()
scores = list(map(float, line))
scores=sum(scores)/3
student_marks[name] = scores
query_name = input()
print('%.2f' % student_marks[query_name]) | [
"Albina.13.2.2001@gmail.com"
] | Albina.13.2.2001@gmail.com |
c03744b393ec5f98ff295969921ddf3de80aecaf | 9c52998e7d92640b82284e7e85bf69205fc94d73 | /SeleniumLearningFiles/SeleniumLearning01/webdrivertest/web04.py | ec6aa9036031cb6a57f01829bff64e05c5c91ab3 | [] | no_license | github653224/GitProjects_SeleniumLearing | b0c57d27fa48b0cd7475f8d8e8b19c57160e65fc | 818b573a3b0f18def98610e59e3c0c6500a675bc | refs/heads/master | 2021-07-20T05:54:46.392948 | 2017-10-27T12:53:41 | 2017-10-27T12:53:41 | 107,764,014 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 473 | py | from selenium import webdriver
from selenium.webdriver.common.action_chains import ActionChains
from selenium.webdriver.common.keys import Keys
import time
from random import randint
verify =randint(1000,9999)
print(u"生成的随机数字: %d " %verify)
number=input("请输入随机数字:")
print(number)
number=int(number)
if number ==verif... | [
"944851899@qq.com"
] | 944851899@qq.com |
a72473ebf4f825bee83939c8f6354360345830ee | 1781eeb99cb758106f3a41a6aab96c4108c3bffd | /ParserTranscript.py | 6e8ae6169dc4e4507392a3dd762cc3256f694668 | [] | no_license | Ilhyon/Scripts | 10015163647c2204c93d0da4d58224a116863a1d | 496b6eb589501aa8e84ef25720d465bda2eb305f | refs/heads/master | 2021-07-13T16:26:28.576512 | 2020-07-09T18:41:27 | 2020-07-09T18:41:27 | 159,869,935 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,828 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-:
import os
import argparse
import numpy as np
import pandas as pd
from pprint import pprint
def readTr(filename):
dico = {}
with open(filename) as f: # file opening
content = f.read()
lines = content.split('\n')
for l in lines:
... | [
"anais.vannutelli@gmail.com"
] | anais.vannutelli@gmail.com |
30f858dd902db2be0d5101090796c8980b6e4b42 | d990f320b549916aea7ae9f7349e5445d472a61e | /replay_buffer.py | c867c91d31d0269f53f6b8e8cf052c0a62931090 | [
"MIT"
] | permissive | alleboudy/navigation-drl | d88ac83bb72824f2bfc18aebd6aacea7bf12415e | 091ae4ffb028288dc4f0464c8109a2b54cab8250 | refs/heads/main | 2023-04-12T20:15:39.204542 | 2021-05-04T21:49:20 | 2021-05-04T21:49:20 | 363,675,615 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,942 | py | import torch
import numpy as np
import random
from collections import namedtuple
class ReplayBuffer:
"""Fixed-size buffer to store experience tuples."""
def __init__(self, action_size, buffer_size, batch_size, seed):
"""Initialize a ReplayBuffer object.
Params
======
actio... | [
"ahmad.alleboudy@outlook.com"
] | ahmad.alleboudy@outlook.com |
b81fcd5e3a4bced2bbf26ad772ff6291dd4a369c | 40a441c075fdb63a5b30f9baa7d3e5165070c034 | /trained_model.py | 1fa8e983e420f1ce49702cf3b7b85a38d2e62812 | [] | no_license | nanditashekar/Food-Classifier-Tool | aef8a8a92056118f11eacab3ebb7b63948f1ea30 | e7025b9dd99771a6b8b06ebb588da8a2a7f2bfb7 | refs/heads/master | 2022-11-22T06:29:30.607387 | 2020-07-27T16:07:02 | 2020-07-27T16:07:02 | 282,947,275 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,142 | py | # -*- coding: utf-8 -*-
"""Model_Demo_File.ipynb
Created by Aravind R Krishnan
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1BRvmIlk4lgc-UMRxssbJtJxRk1h4bAdE
"""
#Loading the model and testing
from keras.models import load_model
from keras.preprocess... | [
"noreply@github.com"
] | nanditashekar.noreply@github.com |
402bc890c5f10dde4ade6ceda9b8d76f67c850f4 | 843d8d6bcba5ceff4f289b9566a6594d8984308d | /Week_3/lab-code-simplicity-efficiency/your-code/challenge-1.py | a4c913ff1da118ef30a143fa02097131421afc0b | [] | no_license | GuillemGodayol/Ironhack_Data_Labs | df6e1db00ca3c4370b26f25a06aa9d4fdcd1a821 | 56275959d276d3ef9542efb8c287aa16876d45fa | refs/heads/master | 2020-11-26T16:34:07.971756 | 2019-12-19T21:25:01 | 2019-12-19T21:25:01 | 229,141,062 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,910 | py | """
This is a dumb calculator that can add and subtract whole numbers from zero to five.
When you run the code, you are prompted to enter two numbers (in the form of English
word instead of number) and the operator sign (also in the form of English word).
The code will perform the calculation and give the result if you... | [
"guillemgodayol@gmail.com"
] | guillemgodayol@gmail.com |
6843646e4bfc8dd6d189f4981122d415672c1403 | 8937c4d452c98699610923f76a395a2247f576df | /preprocess/crop.py | 5b05cb13ad998812b4d8e78a1b99878b47e16046 | [] | no_license | mistycheney/MouseBrainAtlas | 812b204af06ed303f3c12d5c81edef50c8d9d1ed | bffbaa1ede9297084e64fc197716e63d5cb54275 | refs/heads/master | 2020-04-11T13:44:09.632311 | 2018-11-20T22:32:15 | 2018-11-20T22:32:15 | 20,377,173 | 3 | 9 | null | 2017-03-15T19:39:27 | 2014-06-01T12:42:08 | Jupyter Notebook | UTF-8 | Python | false | false | 3,884 | py | #! /usr/bin/env python
import os
import argparse
import sys
import time
import numpy as np
from multiprocess import Pool
sys.path.append(os.path.join(os.environ['REPO_DIR'], 'utilities'))
from utilities2015 import *
from metadata import *
from data_manager import *
from learning_utilities import *
parser = argparse... | [
"cyc3700@gmail.com"
] | cyc3700@gmail.com |
61d30e685f5062f0bd16062b1d190bee3ea93ccf | 5c4c8fcf39d83c3ba9031825115f7416f474ecfd | /Paxel/wsgi.py | 430007cb764f6c7f483a7190f91bfd4b2a87d076 | [] | no_license | SergioParraC/Paxel-Django | 0fc42cec94c3c142fd06bf4cbbb550f1786c6c1a | 25e9501902151b1b7ded45c1abf9282a5c1c0dd9 | refs/heads/master | 2023-03-11T09:41:55.248734 | 2021-02-25T21:08:10 | 2021-02-25T21:08:10 | 328,280,984 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | """
WSGI config for Paxel project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTING... | [
"stevenparracuesta@gmail.com"
] | stevenparracuesta@gmail.com |
b8c56deb337421b8e05a8a70c59c71923d4bf996 | 9039db1d63664122ac65176b1159d61eccc1ec61 | /cables/models/__init__.py | 1b560f4780f9466098aae59bf3a22d20f298f283 | [] | no_license | yjacolin/Avifaune-Cables_aeriens | 8e28594c0a9b58084f3371e77ec49ed11d879a78 | 273b95be496d1b37163a40c4e2a92b60b733b903 | refs/heads/master | 2020-03-22T07:41:44.926554 | 2018-07-04T11:58:37 | 2018-07-04T11:58:37 | 139,718,598 | 0 | 0 | null | 2018-07-04T12:22:56 | 2018-07-04T12:22:55 | null | UTF-8 | Python | false | false | 28,487 | py | #-*- coding: utf-8 -*-
import logging
import sqlahelper
from sqlalchemy import BigInteger, Boolean, CheckConstraint, Column, Date, DateTime, Float, ForeignKey, Index, Integer, String, Table, Text, text, Unicode
from sqlalchemy.sql.sqltypes import NullType
from sqlalchemy.orm import relationship, mapper
from sqlalchemy... | [
"antoine@abt.im"
] | antoine@abt.im |
b8cf141fea4b1a22938b4d48884f5fa6a015aed3 | 8be847caa7b226c7530a530a719a6987feacf7fb | /large_app/python/auth0.py | 5a027e14dbb6f3c93af41684fdee5aa6c67522e5 | [
"MIT"
] | permissive | sahilGupta89/large_flask_app | 91af1a6fc32d6d9b9903720d132773ae5e8d18a7 | e1ab54431bb935c02186f586d9246b741d9f2d33 | refs/heads/master | 2023-05-29T16:51:46.599875 | 2020-11-08T11:10:35 | 2020-11-08T11:10:35 | 213,057,891 | 0 | 0 | MIT | 2023-05-01T21:37:35 | 2019-10-05T19:19:37 | Python | UTF-8 | Python | false | false | 8,356 | py | from dataclasses import dataclass
from datetime import datetime, timedelta
import logging
from urllib.parse import urljoin
from jose import jwt
import requests
import env
from jwks import jwks
log = logging.getLogger(__name__)
def auth0_url(path=""):
return urljoin(f"https://{env.AUTH0_DOMAIN}/", path)
@data... | [
"er.sahil@gmail.com"
] | er.sahil@gmail.com |
d0c47516027d338f264dbded0c03ad00d6542d82 | 17bd49682f7236956f0681c7126a11f8981503fe | /conftest.py | a8f4dd7cfa3dbf3a34bd1384bbd9fb8cec552a97 | [] | no_license | saferq/TZ_tenzor | d7104a30a91a6da3242a4be8d9a1e21410b66952 | 42e07f32682776ae91986e48f82b546c21451cc0 | refs/heads/main | 2023-08-06T01:52:45.279315 | 2021-09-30T06:04:26 | 2021-09-30T06:04:26 | 411,941,523 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 163 | py | import pytest
from selenium import webdriver
@pytest.fixture(scope="session")
def browser():
driver = webdriver.Firefox()
yield driver
driver.quit()
| [
"safer88q@gmail.com"
] | safer88q@gmail.com |
a7c3a8dc9de426e13429cbc87ae0f7f5de87a5fb | fd69c5d94b20161a9f4dd6c39c7f61289d16b603 | /replics/errors.py | 5723c0af9a6ce486a6ef14acd1059d553960bf6c | [] | no_license | k-t-l-h/AIS-2 | 57785a284eed9f460551c69a77d297be19dcc6c8 | 560f4de6271fa26e2bdff1d685722a158f4eca57 | refs/heads/main | 2023-02-02T23:08:53.580104 | 2020-12-26T04:31:06 | 2020-12-26T04:31:06 | 320,883,945 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 542 | py |
SORRY = ["Извини, я пока не понимаю, что ты говоришь",
"Оу, я тебя не совсем понимаю, можешь перефразировать?",
"Извини, я пока не очень хорошо умею разбирать слова. Можешь повторить?"]
ALL = ["Что я могу сделать для тебя?", "Чем я могу помочь?", "Что сегодня делаем?", "Я пришел помочь, что мне... | [
"laciedreamer@gmail.com"
] | laciedreamer@gmail.com |
7fcc061464f4b66349e06e3ed825d4fc3e207c07 | 9b9a5ae297558d87e871e052d3d2e2c582e17ec4 | /COW_PROJECT/テストコード/Beysian/gibbs_sampling_main.py | dc4c1c8950674625557baf35504f929a5515cde6 | [] | no_license | vijaydairyf/cow_python | 9b7632915db1685b6fd2813db9d4310a54d5600b | 8e07845c4527e753e405da708a010a8c2ca7c425 | refs/heads/master | 2021-01-09T17:52:07.500578 | 2020-02-11T07:51:02 | 2020-02-11T07:51:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,049 | py | import numpy as np
import math
import matplotlib.pyplot as plt
import pdb # デバッグ用
# 自作クラス
import myClass.plotting as plotting
import myClass.mixed_model as mixed_model
def create_artificial_poissondata(lam, num):
""" テスト用のデータセットを作成する
Parameter
lam : ポアソン分布のλパラメータ (1次元)
num : データ生成個... | [
"sfukumoto123@gmail.com"
] | sfukumoto123@gmail.com |
e770ee03f163f76ae10f97c7f4917e3649348a06 | 01799c12f6f18573cb132c6706c4d2fd7c56aadc | /billings/billing/venv/Scripts/pip3-script.py | ce92d9b3396739ad519f1ed29ab68109aff0f4a4 | [] | no_license | MyPrivatePlace/billing | 2d1a2ef0fde83ac98c8b1b75ac56ed1b17c27116 | 5bd2ffccaac3863a5909699c70f89ddd363dd184 | refs/heads/master | 2020-03-28T10:42:29.653496 | 2018-10-31T19:54:23 | 2018-10-31T19:54:23 | 148,136,514 | 0 | 0 | null | 2018-09-10T10:39:43 | 2018-09-10T10:09:08 | null | UTF-8 | Python | false | false | 395 | py | #!C:\Projects\billings\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip3'
__requires__ = 'pip==10.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(
... | [
"sunkang_99@126.com"
] | sunkang_99@126.com |
04dd25f2e360e6a0b81d6329398e7373d37c3db2 | ff801544b1979442b886d2d1eaf8480e7d6b0d24 | /main.py | 20bae383952351920f5e31df5cc21b3dcc2b56c3 | [] | no_license | BLimmie/OctoGAN | 7d420cd223ea0dd77dd0dfa1827f12fcd32e9dec | 38bb4d76eb8dea22278da2d496b712c171be080f | refs/heads/master | 2021-05-11T02:11:55.498819 | 2018-01-21T17:34:58 | 2018-01-21T17:34:58 | 118,352,908 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,747 | py | from __future__ import print_function
import argparse
import os
import random
import torch
import torch.nn as nn
import torch.nn.parallel
import torch.backends.cudnn as cudnn
import torch.optim as optim
import torch.utils.data
import torchvision.datasets as dset
import torchvision.transforms as transforms
i... | [
"brian01.lim@gmail.com"
] | brian01.lim@gmail.com |
e57b674fc4450a28f95cfb01f1c0395260b4adec | 3ae12bedf5c32d91fe148d49cfa0cfb59651e43e | /backend/users/admin.py | 71f60e56d93c75c186127f3a31f3e6620af645ac | [] | no_license | aminuolawale/personal_store | cb3aa4a09b5392d4cd7d400c44787d8ae4fab9ec | 9ae2da507140430af519f27edc23340948db9e55 | refs/heads/master | 2023-01-03T12:01:35.291757 | 2020-11-06T21:45:25 | 2020-11-06T21:45:25 | 308,445,011 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 123 | py | from django.contrib import admin
from .models import User, Address
admin.site.register(User)
admin.site.register(Address)
| [
"aminuolawalekan@gmail.com"
] | aminuolawalekan@gmail.com |
b32507222fde3f24d7b8b4d925485d3b237f7ea4 | 6e1fe9ac115c8404e61e880375af685fb09696f1 | /__main__.py | 439817a9148425e5eb50db57a8a891ffa5ec19d4 | [
"MIT"
] | permissive | ValentinKolb/scon | 01ab016775df71bd767c92ab26b1db03ef8912ac | c4a6646a0815d0c8ef9fa2505f7afb7ac68c3c2c | refs/heads/main | 2023-08-28T04:16:21.075881 | 2021-11-03T20:37:28 | 2021-11-03T20:37:28 | 399,600,661 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,112 | py | #!/usr/bin/env python3
# This script configures ssh for new hosts
# Author: Valentin Kolb
# Version: 1.1
# License: MIT
import os
import subprocess
import sys
from dataclasses import dataclass
from pathlib import Path
from typing import List, Union
import re
import argparse
from prompt_toolkit import PromptSession, H... | [
"valentinkolb@ValentinsLaptop.localdomain"
] | valentinkolb@ValentinsLaptop.localdomain |
7c4b4221e5c0374176572d6f71f5c551f817f379 | 0c08a15045b24b56bdb42dff5cf210f9bee6827f | /family_album/images/models.py | d5b5c4f36766d7947af2bbdb671029aa4607d9dd | [
"MIT"
] | permissive | squadran2003/family-album | 205d6f4a7256e466506d796d7da37a0eeff65fe3 | eae75987e4786255269ecee2482d715ae2229db2 | refs/heads/master | 2022-12-05T00:19:29.629432 | 2019-01-20T13:10:22 | 2019-01-20T13:10:22 | 165,837,569 | 0 | 0 | MIT | 2022-11-22T03:23:44 | 2019-01-15T11:15:38 | JavaScript | UTF-8 | Python | false | false | 1,199 | py | from django.utils import timezone
from PIL import Image as img
from io import BytesIO
from django.core.files.uploadedfile import InMemoryUploadedFile
import sys
from django.db import models
from django.contrib.auth.models import User
class Image(models.Model):
user = models.ForeignKey(User, on_delete=models.CASCA... | [
"cormackandy@hotmail.com"
] | cormackandy@hotmail.com |
b42c9a05e876a611b682a0b70a86878e4a80aebb | 27426683a9af095c4bbbf9bb6f2dce68a49b8302 | /stacked_generalization.py | d19bff9deaba6a8bad04eaedd0a34bd231abbd48 | [] | no_license | chetanmehra/stacked_generalization-1 | aae8bcdedd05e59d93063f5058f3c9f875b9bf5b | 5eab38bcd9cebf0f37f52fb58b4793b85e8f0b1e | refs/heads/master | 2021-06-01T00:22:58.495122 | 2016-05-09T11:31:03 | 2016-05-09T11:31:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 437 | py | from sklearn.cross_validation import StratifiedKFold
import numpy
class StackedGeneralization:
def __init__(self, n_folds, train_data, train_target, test_data):
self.n_folds = n_folds
self.train_data = train_data
self.train_target = train_target
self.test_data = test_data
se... | [
"sergeant.wizard@gmail.com"
] | sergeant.wizard@gmail.com |
c3ce6f4907c56922e923d921e78478a4fe44f176 | ce73050565ebdec828919f339e81da54b5fd7fcf | /GeneralProblems/DynamicArray.py | cb9487aadfc557076f184d6d7d48c600069796c3 | [] | no_license | VaibhavDesai/Algorithms | b4b1ad6a13a32cfe16abb4174a672841d45628e2 | 32f43f0c4b28eb4aa2b6142ff962fc322ac796b0 | refs/heads/master | 2020-12-30T13:28:11.729137 | 2017-10-02T08:02:30 | 2017-10-02T08:02:30 | 91,217,973 | 1 | 0 | null | 2017-05-19T16:52:25 | 2017-05-14T03:41:20 | Python | UTF-8 | Python | false | false | 231 | py |
firstIn = [int(x) for x in input().split()]
n = firstIn[0]
q = firstIn[1]
quries = []
for i in range(q):
ans.append(calDy([int(x) for x in input().split()],n))
def calDy(inputList,n):
if(inputList[0] == 1):
| [
"admin@Admins-MacBook-Pro-2.local"
] | admin@Admins-MacBook-Pro-2.local |
1884b26999b578c08e920c4f7f1ae2e648715491 | 174d1c8465550eeb356a698e370828c4854ac883 | /chapter04/qt04_QTextEdit.py | 1afeb7d0415818bda0b65def2e78652ca439d518 | [] | no_license | Junkiwang/PyQtUI | a34876da8fc65b546f7e5348eaad7b9c1e54321d | d93a793d18c4bfc117ca374ae28a2a71631c2121 | refs/heads/master | 2020-03-18T23:45:13.314811 | 2018-07-09T05:58:13 | 2018-07-09T05:58:13 | 135,425,386 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,449 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
# Author: Junki
from PyQt5.QtWidgets import QApplication, QTextEdit, QWidget, QVBoxLayout, QPushButton
import sys
class textEditDemo(QWidget):
def __init__(self, parent=None):
super(textEditDemo, self).__init__(parent)
self.setWindowTitle('QTextEdit例子'... | [
"350187552@qq.com"
] | 350187552@qq.com |
41f2df2137a227386f0dece011dcf1d628037fd7 | ad544b38ec09828cda1b1918f407975bc79bf976 | /missioncontrol/mc/mc/views.py | 82f5e002d54b800f164e42ee9229c4612ff2bd76 | [] | no_license | mattvenn/earth-to-mars | 6de13606f3f8087da40e8ed0543a03e0093c25fb | c2b0064ef87c3d095d231587ee3ef48b00360bfd | refs/heads/master | 2021-01-10T07:29:17.557441 | 2016-03-17T16:34:42 | 2016-03-17T16:34:42 | 45,628,116 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,754 | py | from mc import app
from mc import db
from sqlalchemy.exc import IntegrityError
import datetime
from flask import Flask, request, session, g, redirect, url_for, \
abort, render_template, flash, jsonify, make_response, send_file
from contextlib import closing
from flask_admin.contrib.sqla import ModelView
import tim... | [
"matt@mattvenn.net"
] | matt@mattvenn.net |
bf055d3d9a0f6250e6e0336a5e27ccf9328377c7 | 0a118de91d880058dd2b9301d81ffa3ffd17514a | /benchmarking/smartseq2/merge_picard_metrics/merge_picard_mets.py | a39d568b22a0d409d3946b10422bf79c73dfc4ec | [] | no_license | garyluu/skylab | 9b15aee18f1240122331eef6de8cc04e8212bf81 | 319d0ac57654d14056669dc836f894d482891dbc | refs/heads/master | 2020-03-13T08:51:55.944993 | 2018-05-24T13:42:59 | 2018-05-24T13:42:59 | 131,052,488 | 0 | 4 | null | 2018-04-25T19:13:26 | 2018-04-25T19:13:25 | null | UTF-8 | Python | false | false | 4,167 | py | from crimson import picard
import pandas as pd
import numpy as np
from google.cloud import storage
import json
from os.path import basename
import sys
import requests
import argparse
def retrieve_workflow_outputs(cromwell_uuid, output_name):
# load cromwell credential
logins = json.load(open('/usr/secrets/bro... | [
"noreply@github.com"
] | garyluu.noreply@github.com |
37e0fb4dbe4d99d999a4a4ff25c33d7f504d8fc8 | ab574f7511fa15e5ea50a26f26e3e38f7e33505a | /win_2018/scipy/special/_ufuncs_cxx.py | 65fc513447b7d344b151f7ba228174ebe12f7257 | [] | no_license | zclongpop123/maya_python_packages | 49d6b340512a2580bc8c14ae6281ca3f57017acd | 4dd4a48c41749443ac16053d20aec04e9d2db202 | refs/heads/master | 2021-11-30T01:49:41.846727 | 2021-11-17T01:47:08 | 2021-11-17T01:47:08 | 49,186,909 | 16 | 9 | null | 2017-03-07T00:13:41 | 2016-01-07T06:48:35 | Python | UTF-8 | Python | false | false | 288 | py | def __bootstrap__():
global __bootstrap__, __loader__, __file__
import sys, pkg_resources, imp
__file__ = pkg_resources.resource_filename(__name__, '_ufuncs_cxx.pyd')
__loader__ = None; del __bootstrap__, __loader__
imp.load_dynamic(__name__,__file__)
__bootstrap__()
| [
"aton.lerin@gmail.com"
] | aton.lerin@gmail.com |
d0594ba180ac2eb8f8df3854ae9e4fd1f3cf86e6 | e2b4c4dc7b9ad43e5e06d050eccd43ebf98d76c3 | /snap_plugin/v1/pub_proc_arg.py | c6486d5adc3ed1562e447aa52d1182f141293507 | [
"Apache-2.0"
] | permissive | intelsdi-x/snap-plugin-lib-py | 4bcf7d6c665f85285af83271380f23413b23082e | 24b08eb5feaeb64d7c6e25781abe3b8ce2fa9277 | refs/heads/master | 2022-11-12T11:31:11.420061 | 2022-11-07T23:11:16 | 2022-11-07T23:11:16 | 69,615,435 | 5 | 16 | null | 2017-08-28T13:38:17 | 2016-09-29T23:16:25 | Python | UTF-8 | Python | false | false | 1,282 | py | # -*- coding: utf-8 -*-
# http://www.apache.org/licenses/LICENSE-2.0.txt
#
# Copyright 2016 Intel Corporation
#
# 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/li... | [
"joel.cooklin@gmail.com"
] | joel.cooklin@gmail.com |
e66e93413063fb93740bd8dbb7b6721fabef46c9 | 22adb6a4cbd88a5d5e8b006b07fbdd03a23dca97 | /update_scheduler.py | 945c39766368bcc821432e3d79db6b9ded1f8f97 | [] | no_license | shatteroff/flask_CU_price_checker | 71719bf6865a0775923909f43a67af8cb0c74f22 | a285cd70905d95ec452cdb68acf14705e3011cef | refs/heads/master | 2022-12-14T08:52:41.408014 | 2020-12-30T09:30:42 | 2020-12-30T09:30:42 | 241,875,724 | 0 | 0 | null | 2022-07-06T20:29:15 | 2020-02-20T12:14:07 | Python | UTF-8 | Python | false | false | 738 | py | import datetime
from apscheduler.schedulers.blocking import BlockingScheduler
from config import Config
from redis_helper import RedisHelper
scheduler = BlockingScheduler()
redis_helper = RedisHelper()
@scheduler.scheduled_job('cron', misfire_grace_time=3000, hour=Config.hour_for_update, minute=Config.minute_for_u... | [
"shatter007@mail.ru"
] | shatter007@mail.ru |
139a60ffd6e82195e835f691c53c0f317ab5a8d9 | acf7457d3a799cb9bff12686d2d616688bcd4b5b | /packages/python/plotly/plotly/validators/heatmap/_yperiod.py | 6496c7ed1592b867d1b2a5946e177c084910c381 | [
"MIT"
] | permissive | plotly/plotly.py | f4f61639f08160f16195efc95b5901dc5a937346 | 975a704074f01c078e0fdfa32bdf17130bf89e69 | refs/heads/master | 2023-09-06T06:15:08.340035 | 2023-08-24T12:28:14 | 2023-08-24T12:28:14 | 14,579,099 | 14,751 | 2,989 | MIT | 2023-09-08T19:55:32 | 2013-11-21T05:53:08 | Python | UTF-8 | Python | false | false | 470 | py | import _plotly_utils.basevalidators
class YperiodValidator(_plotly_utils.basevalidators.AnyValidator):
def __init__(self, plotly_name="yperiod", parent_name="heatmap", **kwargs):
super(YperiodValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
e... | [
"nicolas@plot.ly"
] | nicolas@plot.ly |
a2116f849321bb09ca0351c79ae1a80cf17d6dec | 588396f66a5c0fbfcf1d2af44386c8f4dca95abf | /sanjiaoxing.py | c045ef04118103c5a2613365e5f8cf7601af0c9d | [] | no_license | yuki9965/PAT_python | 219dc4deedf097bbb41b325f538f8a5bb806104d | 5a7ad358d9beaeb9e4c47a4026248cd5d2268b5b | refs/heads/master | 2021-05-04T18:41:35.403984 | 2017-10-06T05:19:18 | 2017-10-06T05:19:18 | 105,956,338 | 1 | 0 | null | 2017-10-06T01:15:10 | 2017-10-06T01:15:10 | null | UTF-8 | Python | false | false | 325 | py | #-*- coding=utf-8 -*-
__author__ = 'Yaicky'
sides = map(int, raw_input().strip().split())
sides.sort()
longside = (sides[2])**2
shortsides = (sides[0])**2 + (sides[1])**2
if longside > shortsides:
print (u"钝角三角形")
elif shortsides > longside:
print (u"锐角三角形")
else:
print(u"直角三角形") | [
"ajirencnty@gmail.com"
] | ajirencnty@gmail.com |
821a36d24596e0ac1a7bce97e1a3d9b9992c271f | 03043b715d2e177dd3ba93078463ce79c33173dc | /NI_DAQmx/models/NI_PXIe_6535.py | ffdfbaabce93ed1ea32f606174fc1da92d542ec7 | [] | no_license | labscript-suite-bitbucket-archive/cavitylab-labscript_devices--forked-from--labscript_suite-labscript_devices | 2efc068eb35ca70e1eecab9c7fec7991fd596c9c | e665d3ee0ce1cfd7fb7cd5c6cc4d783528bc4935 | refs/heads/master | 2020-12-27T02:35:41.710162 | 2019-12-06T20:57:48 | 2019-12-06T20:57:48 | 253,143,395 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,629 | py | #####################################################################
# #
# /NI_DAQmx/models/_subclass_template.py #
# #
# Copyright 2018, Christopher Billington... | [
"chrisjbillington@gmail.com"
] | chrisjbillington@gmail.com |
0702087eed1caf59c86a54c11a4482b18f7b120e | b0346d8d798a8534fb2e1c0f1f98b4038e23d1ba | /Modetool/wsgi.py | 7e2c4b744a0f08c2f3c78b30af8c415c12c9cb53 | [] | no_license | pavelcerny/modetool | ed1237f1ac54b617eed7161341ab640e52190fe3 | ba5379e6b2604e1c1b0c5a84fec01ab0ef4e5e41 | refs/heads/master | 2020-03-29T12:36:41.111251 | 2018-09-23T08:30:26 | 2018-09-23T08:30:26 | 149,908,494 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 394 | py | """
WSGI config for Modetool project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SET... | [
"cerny.pav@gmail.com"
] | cerny.pav@gmail.com |
d978aee1a03ddbd4eec8a61a6d7792586dbbeb14 | a25aa09af984d08084a395f9b6df427d3756f11a | /35.Search Insert Position.py | 39611cdd7879d9f73747e131d4d9446fec4691dc | [] | no_license | luyihsien/leetcodepy | 31971e851a4ae77942a5d9e3ff07faea6e504c66 | a54bd09f4b28f106196a6cd8a0f9c056bcd237e6 | refs/heads/master | 2020-05-19T13:21:57.854086 | 2019-10-16T14:23:00 | 2019-10-16T14:23:00 | 185,037,569 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 724 | py | ''''
class Solution:
def searchInsert(self, nums: List[int], target: int) -> int:
'''
class Solution:
def searchInsert(self, nums, target):
if len(nums)==0:
return 0
for i in range(len(nums)):
if nums[i]==target:
return i
for i in range(1,len(nums)... | [
"luyihsien@gmail.com"
] | luyihsien@gmail.com |
3cc871344d6720297182aaba7b29ac5e814f33b7 | 2b4e7f8dcf3296bdb33b29b44a83650f5bfab8e1 | /common/content.py | 43a8c8ab1da8f1697d3f2ef0dd1ec2649a9305f4 | [] | no_license | bp72/asd | 9e42e88f6fe18abfcce52be646649aab11946aaf | a687dfba154b2682c521d5a4ee329ef13c84c5a7 | refs/heads/master | 2016-09-10T12:42:37.485619 | 2015-06-22T17:50:27 | 2015-06-22T17:50:27 | 37,869,546 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,031 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
__author__ = 'bp'
__version__ = (0, 0, 1)
from fields import MD5Field, FilenameField
################################################################################
class File(object):
"""
Объект файла
>>> with open('./filename.txt', 'w') as f:
... ... | [
"pavleg.bityukov@gmail.com"
] | pavleg.bityukov@gmail.com |
4dade9f8a38ec5174c7440af316e5d916ab2f049 | 488a2817b9c55856d367a37fc1d029ebf335f3c7 | /crawling/cheogajip_scraping.py | f6b266219af8026669233763ba9606d556772031 | [] | no_license | qudals55/chicken-store-visualization | 18d518df0ad99f10e5d593742d585e0e1e40dcfb | d8ac96afc0ae4bdc53fd282f29854b8ff04f0b8e | refs/heads/master | 2020-04-30T21:17:40.395764 | 2019-03-22T07:13:37 | 2019-03-22T07:13:37 | 177,090,052 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,192 | py | import sys
import csv
import re
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.support.ui import WebDriverWait
from bs4 import BeautifulSoup
def address(state, city) :
return ({ '경기' : '경기도',
... | [
"gongbyeongmin@gmail.com"
] | gongbyeongmin@gmail.com |
1234f26b6c4eeb7584ae2a210bca4db698d88a26 | e5712ee7ff8e013b33d0ee236252909997429b15 | /Python/Sets/No Idea.py | 7378798bad44140fa629cac23a0e92ac26634898 | [] | no_license | shubhamkatore/HackerRank | fdb031b2875eebcf63b0f7dc5c996f8f80fc42ac | 11b75a356987d3aa63901413994bffb8d33b50bb | refs/heads/master | 2021-05-05T06:10:47.537066 | 2018-06-24T06:41:12 | 2018-06-24T06:41:12 | 118,781,433 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 223 | py | n,m=map(int,input().split(' '))
narr=map(int,input().split(' '))
a=set(map(int,input().split(' ')))
b=set(map(int,input().split(' ')))
ha=0
for i in narr:
if i in a:
ha+=1
if i in b:
ha-=1
print(ha) | [
"shubhamkatore@gmail.com"
] | shubhamkatore@gmail.com |
0ab0e2bee34871966bf2bcc9d4aeefec6b1a9287 | 0196ff82d8022ae81aa7e5d6f0797aa746e40a08 | /huobi_crawler.py | 5f3bce850fd40654dd7db5e2624f5d6ca32fa605 | [] | no_license | Sungbin17/coin_exchange | 85d691c954f5e58087c7504c5b11451658a3e604 | 4fdf0ffa5d180fac6726516a261fc359f7888c5a | refs/heads/master | 2020-03-18T22:08:28.442186 | 2018-06-07T09:01:11 | 2018-06-07T09:01:11 | 135,327,506 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,172 | py | import urllib.request, json
from urllib.request import Request, urlopen
huobi_symbol_api = 'https://api.huobipro.com/v1/common/symbols'
response = Request(huobi_symbol_api, headers={'User-Agent': 'Mozilla/5.0'})
data = json.loads(urlopen(response).read())
data = data.get('data')
print(type(data))
['BTC', 'BCH', '... | [
"wd1kr1@gmail.com"
] | wd1kr1@gmail.com |
9464793a12fd15b36cf79f711c7308ed8e638665 | e56ad8a3c8b34bed3c5ff0f168beb4ceec19b8bc | /test.py | 3bdc36b350229988e79d2b89c8c32aac239b247f | [] | no_license | YoungseogChung/angry_turtle | 77ba732008abf7433e21a39dc145d9ffde8284cb | 8d9288c030de3d40d8554aad688a80082ce095c7 | refs/heads/master | 2020-05-21T00:57:01.277698 | 2019-05-09T20:08:23 | 2019-05-09T20:08:23 | 185,842,247 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 881 | py | import turtle
import random
import math
player = turtle.Turtle()
player.color("blue")
player.shape("turtle")
player.penup()
player.speed(0)
screen = player.getscreen()
a1 = turtle.Turtle()
a1.color("red")
a1.shape("circle")
a1.penup()
a1.speed(0)
a1.goto(random.randint(-300, 300), random.randint(-300, 300))
a2 = tur... | [
"yschung55@hotmail.com"
] | yschung55@hotmail.com |
6140826c1e42e213c230cc67aa4e7a4aa67603fd | 81e87227fb6eee0c6c00608d3913f6c5fb951b41 | /project_1/task_1.py | a6ed401a518727661b498183be37886a29ead373 | [] | no_license | pierwiastekzminusjeden/Graph-Theory-Course | e43b7e8b7dba0945360b09873aa300d778da3638 | 6c95575b3bea397d1b8ad9aeb29d23280dab4a71 | refs/heads/master | 2020-03-11T15:35:00.953471 | 2018-07-11T18:52:38 | 2018-07-11T18:52:38 | 130,088,484 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,126 | py | #!/usr/bin/env python3
#############################
#@author Karolina Mizera
#@author Krystian Molenda
#@author Marcin Miś
#############################
#import sys
#sys.path.append('$(src)') #add path to project_11/src or being all files in the same catalog is required
from list import List
from adjmatrix import... | [
"krystian.molenda@gmail.com"
] | krystian.molenda@gmail.com |
9c6a07dcfbdf352a591d9e7fe0d53f19f2b65bf9 | c486c7bfe16804a8fd28b2f8d833b44df1a0f553 | /topi/python/topi/x86/conv3d_transpose.py | ad035d34c3a13e715a1247ed4ba5c11825a4df4f | [
"Zlib",
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"Unlicense",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | TexasInstruments/tvm | 9ef8ebc5825030e595ea8a667387ea430dd92259 | c78ea878a05e262a30c3ffa250c1479a695ecf33 | refs/heads/dev | 2023-08-03T19:59:53.639979 | 2020-06-15T22:29:11 | 2020-06-18T03:22:39 | 225,893,305 | 14 | 3 | Apache-2.0 | 2020-07-08T14:34:47 | 2019-12-04T15:02:32 | Python | UTF-8 | Python | false | false | 2,238 | 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 not u... | [
"trevoraidanmorris@gmail.com"
] | trevoraidanmorris@gmail.com |
387635873635283c5290831c6f2104f6d7e1fed8 | aeb2f0bb7b01f87a1b6c65b88b216bed47025fe5 | /experiment/ex_025_predict.py | db89c037080c832fffa5c1b6a6ffee69035c39e7 | [] | no_license | kurupical/riiid | 7e68239cd50243fbb734bf433d60ebd7469cb180 | 7bab580ce03d03873748a6afc91092c11871465f | refs/heads/master | 2023-03-30T04:15:54.109815 | 2021-04-04T01:20:33 | 2021-04-04T01:20:33 | 302,828,112 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 10,041 | py | from datetime import datetime as dt
from feature_engineering.feature_factory import \
FeatureFactoryManager, \
TargetEncoder, \
CountEncoder, \
MeanAggregator, \
TagsSeparator, \
UserLevelEncoder, \
NUniqueEncoder, \
ShiftDiffEncoder
import pandas as pd
import glob
import os
import tqdm
... | [
"kurupical@gmail.com"
] | kurupical@gmail.com |
07216bcd55a48955b32cea2c65be6627df8648d9 | 56ff870edec243b9b4b6d54e15fd95f741a9bd33 | /settings_dev.py | c49d68ea5358f1c59db2320d72f631b35990dca6 | [
"Apache-2.0"
] | permissive | mushkevych/grazer | 2a0357c33448fadc6e91528098e0eabf74bc3cd1 | 37254a550eeaaa8125bb1a643d493bcaa785fb25 | refs/heads/master | 2016-09-15T20:03:30.653432 | 2015-05-05T06:00:19 | 2015-05-05T06:00:19 | 31,232,304 | 0 | 1 | null | 2015-02-24T00:00:08 | 2015-02-23T22:05:11 | Python | UTF-8 | Python | false | false | 594 | py | settings = dict(
# created with: sudo rabbitmqctl add_vhost /hadoop
# set permissions with: sudo rabbitmqctl set_permissions -p /hadoop guest ".*" ".*" ".*"
mq_host='rabbitmq.yourdomain.com',
mq_user_id='MQ_USER',
mq_password='MQ_PASSWORD',
mq_vhost='/grazer',
mq_port=5672,
aws_redshift... | [
"dan.mushkevych@mobidia.com"
] | dan.mushkevych@mobidia.com |
41527e638d93cfffa7419214e8a19a547c0222fc | 7c0cffba0b0e37daee3cf33d3750e1c8a89d1822 | /Controller/control.py | c4c437dd392a25382a5c2fc191f5ec90304aeb1b | [] | no_license | ShanghaitechGeekPie/IFTHEN | 47f0e9ebf51a65ed16ea130139e2a8cc9ff900e9 | c67b5c925d91553a5e07a9dee84bb8af419b5827 | refs/heads/master | 2021-01-18T18:11:42.077635 | 2016-10-15T04:17:24 | 2016-10-15T04:17:24 | 59,354,507 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,190 | py | # Python 3.4.3 #
from apscheduler.schedulers.blocking import BlockingScheduler
from logic.models import Logic
import django
import json
import requests
import time
def excute():
commands = Logic.objects.all()
for command in commands:
time_present = time.time()
query = json.loads(command['Q'])
action = json.loa... | [
"yuanyzh@shanghaitech.edu.cn"
] | yuanyzh@shanghaitech.edu.cn |
32b5c6c58b4c8eeaa2951f17ab0bf0380b2b5467 | a92b6ed6ba2091e4d4ec9613c6f6affe6e655c40 | /main.py | b3135588610a604ee17520ff6956c0d1e5caabfe | [] | no_license | rushali09/Python-Coffee-Machine | f3f8770449fb42772ab970f6a52eb43250f856b9 | 572a3b45b414ba8723f972de500fe98d7e9bfcf3 | refs/heads/main | 2023-02-17T15:56:41.170337 | 2021-01-21T08:07:39 | 2021-01-21T08:07:39 | 331,557,917 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,594 | py | MENU = {
"espresso": {
"ingredients": {
"water": 50,
"coffee": 18,
},
"cost": 1.5,
},
"latte": {
"ingredients": {
"water": 200,
"milk": 150,
"coffee": 24,
},
"cost": 2.5,
},
"cappuccino": {
... | [
"rushalisreedhar37@gmail.com"
] | rushalisreedhar37@gmail.com |
165063736ccff5a78e51a0ed056d596280d583b3 | 532a912beca7dc986d2f3ff34fb22edd692932f0 | /deploy.py | cef1301b10c0ac8cd26827be8c47d552f8b4aa27 | [] | no_license | aGHz/aptgregator | ce1539feaeb9bd2cf607a1fea334b415028b7cc4 | 2abed7bebd88e1ad4de2b60b4d5cf668e8d907e8 | refs/heads/master | 2021-01-23T03:12:58.027835 | 2014-04-08T01:11:27 | 2014-04-08T01:11:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,939 | py | #!/bin/python
import getopt
import os
import subprocess
import sys
def syntax():
print """Generate instructions to deploy this new installation of aptgregator
After review, the output can be run manually or piped through sh
Syntax:
python deploy.py [restart] [options]
Options:
--flow Initializes gi... | [
"adrian.ghizaru@gmail.com"
] | adrian.ghizaru@gmail.com |
341cddee35f5b6e4b78500da685d57d1aaee67e7 | 47ee13dce0907de438461ea7e33832a09f1ba362 | /corpus/c4bf475a-19a9-11de-ba4e-3babc36f5e84/solution/python/test | d33d6575b8e97b88cf40da8de6cfc8937109eb57 | [] | no_license | Marta81/tapperdan | 1c6624b12d33a0a0fc7906c11c8c0de88d0d3e05 | d9d27f47ea378ad04ea0f91ce82b699b1e1d8f5d | refs/heads/master | 2021-01-18T20:42:09.957943 | 2009-03-26T03:18:02 | 2009-03-26T03:18:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 46 | #!/usr/bin/env python
print "Hello, World!"
| [
"rblackwe@rblackwe.com"
] | rblackwe@rblackwe.com | |
6d1a9a8a9639cc6ec0093c2eb0ba511f0654f894 | 4a9ed707b3b9adffd3e2f98c39040cede7dc0cc8 | /garage/envs/mujoco/gather/ant_gather_env.py | 7c0e3c54faf07ce45971d590b3efea02eb491053 | [
"MIT"
] | permissive | flyers/garage | f0c568bd850a0770a0f13d6c550318338049a462 | 745dff67d6777b78c5faaf2f2bfafcaf6f71d575 | refs/heads/master | 2020-04-15T15:38:42.500998 | 2019-01-29T11:56:29 | 2019-01-29T11:56:29 | 164,802,583 | 0 | 0 | MIT | 2019-01-29T12:11:13 | 2019-01-09T06:28:48 | Python | UTF-8 | Python | false | false | 161 | py | from garage.envs.mujoco import AntEnv
from garage.envs.mujoco.gather import GatherEnv
class AntGatherEnv(GatherEnv):
MODEL_CLASS = AntEnv
ORI_IND = 6
| [
"noreply@github.com"
] | flyers.noreply@github.com |
713a24a7ccdd51e993b29e4b2f542ce44c4723f6 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03448/s790400785.py | 17c0ac19efb39097ef60a9bdde7f5b5bfd5d9764 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 337 | py | def resolve():
A = int(input())
B = int(input())
C = int(input())
X = int(input())
ans = []
for a in range(A + 1):
for b in range(B + 1):
c = (X - 500 * a - 100 * b) / 50
if c <= C and c >= 0:
ans.append((a, b, c))
print((len(set(ans))))
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
0c00cb5df809def448fd1c5f50e41d957f662365 | e6e3e22f4111e7a9a1c3c8f719a4a00f1a76e36b | /ConnectedComp.py | 3be7256728c3e817679d9c6afafe0a3f9929cadd | [] | no_license | GiuliaLovati/Tesy | 656553b383633c1426abbae7f3da483dd152e238 | 3bb50bfea37c3b0316a479453d629e839aa9a4c4 | refs/heads/master | 2022-12-12T00:53:36.020812 | 2020-09-11T17:01:03 | 2020-09-11T17:01:03 | 211,265,687 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,822 | py | import cv2 as cv
import numpy as np
def imshow_components(image, threshold=70):
img = cv.threshold(image, 70, 255, cv.THRESH_BINARY)[1] # ensure binary
num_labels, labels = cv.connectedComponents(img)
# Map component labels to hue val
label_hue = np.uint8(179*labels/np.max(labels)) #each label gets a ... | [
"giulialovati.gl@gmail.com"
] | giulialovati.gl@gmail.com |
5cd7a65e1435a46c2cb3ade49bcdca5022026d27 | 0e461c3ca52347efe1df6d7bf4dc9754a1a60bc9 | /send_text.py | 86ce81b32de0ab9867834519f07bec56065df80c | [] | no_license | nena6/Udacitiy-Programming_foundations_with_Python | ebb92837ca7cd002d84b290a7bae6fa55031630c | c06a5d32835b603d2fc82dec7e0bec80fdd77226 | refs/heads/master | 2021-08-31T19:06:04.076417 | 2017-12-15T13:43:33 | 2017-12-15T13:43:33 | 113,049,865 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 402 | py | from twilio.rest import Client
# Your Account SID from twilio.com/console
account_sid = "ACc7c6527d71af857207a258a1f0ffeb5e"
# Your Auth Token from twilio.com/console
auth_token = "85b43dbae62be16d3831e23cdda59bb0"
client = Client(account_sid, auth_token)
message = client.messages.create(
to="+385913653829",
... | [
"nevia.vidakovic@gmail.com"
] | nevia.vidakovic@gmail.com |
80fc4b38b7dff6b4f630a8e31f713c5c9b512f3c | 53163d4129930426c2d7aa650cb1b638d1347d21 | /lxmert/lxmert/src/tasks/nlvr2_model.py | ef93474403461f18461d1da85fb8877b6f6b5364 | [
"MIT"
] | permissive | fdsig/Transformer-MM-Explainability | 5e4d9d0c927afd0316311259fc318b325d74628e | accc4dd3491d321948e826079ce85f61bb02e0a6 | refs/heads/main | 2023-09-03T01:21:27.188260 | 2021-11-17T23:56:49 | 2021-11-17T23:56:49 | 433,759,755 | 1 | 0 | MIT | 2021-12-01T09:20:31 | 2021-12-01T09:20:31 | null | UTF-8 | Python | false | false | 1,773 | py | # coding=utf-8
# Copyleft 2019 project LXRT.
import torch.nn as nn
from lxrt.modeling import GeLU, BertLayerNorm
from lxrt.entry import LXRTEncoder
from param import args
class NLVR2Model(nn.Module):
def __init__(self):
super().__init__()
self.lxrt_encoder = LXRTEncoder(
args,
... | [
"hilach70@gmail.com"
] | hilach70@gmail.com |
8b22af7888df6c2ed8a9604c7b942d3091b1ae42 | 0039e09b2c18efad98a0c51995b68c9c22582ed0 | /portfollio/migrations/0010_auto_20200327_1914.py | dc3138a3efdf84c6ef75038c142e7b9bfa0314bd | [] | no_license | aishmn/base_app | b72dee7d4ebea2efbd64208c2e4dfbf6a2085779 | 1fde6cd9c95ccf2ada0cf5b802c11f49d3a75048 | refs/heads/master | 2021-05-17T02:58:18.861534 | 2020-03-27T16:35:43 | 2020-03-27T16:35:43 | 250,587,235 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 595 | py | # Generated by Django 3.0.4 on 2020-03-27 13:29
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('portfollio', '0009_blog_category'),
]
operations = [
migrations.AddField(
model_name='blog',
... | [
"manish.sinuwari@gmail.com"
] | manish.sinuwari@gmail.com |
807c48c6962ab4fd329836f97eaeb05bb435f2bf | d93b5c753ac9c9309d946cc8cfde005027fc1859 | /No6_1.py | 82c1e33002a93e0d5c1e77e851c0cd200b024e6b | [] | no_license | injoinD0913/Python-case | 12e0d53ee493e748d51240666f8bb699c21fbbb3 | 13f2cdebf815aaf0367bde1372f7720a792b6d36 | refs/heads/master | 2020-09-07T10:17:47.884970 | 2019-11-15T15:55:58 | 2019-11-15T15:55:58 | 220,750,132 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 669 | py | # _*_ coding:utf-8 _*_
# 开发团队:
# 开发人员:Administrator
# 开发时间:2019/10/12 20:34
# 文件名称:No6_1.py
# 开发工具:PyCharm
# 题目:斐波那契数列。
# 程序分析:斐波那契数列指的是这样一个数列:0、1、1、2、3、5、8、13、21、34、……。
# 可以以递归的方法来定义:
# F0 = 0(n=0)
# F1 = 1(n=1)
# Fn = F[n - 1] + F[n - 2](n= > 2)
# 输出指定个数的斐波那契数列
i = int(input())
def fib(n):
if n == 1:
r... | [
"injoin_d@aliyun.com"
] | injoin_d@aliyun.com |
c8dd76f68361f90919bc5ca4d3b4e315a3f3ab89 | fe752040ed8552246e465d4259a73579acf1b623 | /drift.py | 35b4acfa8de452bebd0dfbeb10a4c4adf4c33903 | [] | no_license | abdifatah87/imt3003 | 2d119c4868fd868de02f78b5716430a38f73f6b4 | 28c471032944fbbd78fcf18b483a2b91b308bd39 | refs/heads/master | 2020-12-13T06:53:04.286139 | 2020-01-26T17:34:50 | 2020-01-26T17:34:50 | 234,341,227 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 685 | py | import os
from openstack import connection
conn = connection.Connection(auth_url= "https://api.skyhigh.iik.ntnu.no:8774/v2.1",
project_name=str(os.getenv("OS_PROJECT_NAME")),
username=str(os.getenv("OS_USERNAME")),
password=str(os.g... | [
"abdifatah87@live.no"
] | abdifatah87@live.no |
7f1173e8bb1f003e5a7f5f407b9c460188d6b251 | 20406108a91d05b5e05a16fa17329b68d8cbfc7c | /src/mario_maze/settings.py | 7374af9a22637d9afd5737f2054d705de0181241 | [] | no_license | Olena-Mordas/mario-maze_be | d85f81022f66c7c699e5db11cf187451d96d68a0 | dc2426793149f81ec275ee64ea3d4344e3fa5c99 | refs/heads/master | 2023-04-11T02:32:26.307974 | 2021-04-29T14:49:48 | 2021-04-29T14:49:48 | 359,937,585 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,557 | py | """
Django settings for mario_maze project.
Generated by 'django-admin startproject' using Django 3.2.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
from pathli... | [
"alyonaalive@gmail.com"
] | alyonaalive@gmail.com |
82499eb923a32ad19aeec1efd231f9c15b47ec86 | 62e7db04e60e07a6def7bc7e32e17d381ef0fa44 | /test/test_unpack_status.py | 712bddc93c308d9e45d7cfcafdaf90bb79d08937 | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | kryptoslogic/unpacme-python | 0e830cb44fb137bd076f4100da736b929c8cd30b | 86529853f24ed00afa7e90b87fa64104dfc68dfe | refs/heads/master | 2023-02-26T16:17:57.047693 | 2021-02-02T14:23:47 | 2021-02-02T14:23:47 | 335,313,234 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,386 | py | """
UnpacMe
# Introduction Welcome to the UNPACME API! All the malware unpacking and file analysis features that you are familiar with on the [unpac.me](https://www.unpac.me/) website are available through our API. You can easily integrate our unpacker into your malware analysis pipeline and begin unpacking a... | [
"jamieh@kryptoslogic.com"
] | jamieh@kryptoslogic.com |
fa634099a27ded13c1952c58524029bb04dfce23 | 41986b7a1b95784f0a6256ae24d5942c70ced4d7 | /prod/google-cloud-sdk/lib/googlecloudsdk/third_party/apis/container/v1alpha1/container_v1alpha1_messages.py | 49c00a4745dfa8067e647185d258367759f8dcfb | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | wakabayashi-seiya/terraform_gcp | ed829a5a21d5d19d6663804ee5d5f7f3d23b4ec4 | f757e56779f33c2fabd8a8eed9c51ff0b897a38f | refs/heads/master | 2021-07-07T21:51:35.993317 | 2020-03-11T05:42:57 | 2020-03-11T05:42:57 | 239,411,772 | 0 | 1 | null | 2021-04-30T21:05:04 | 2020-02-10T02:32:04 | Python | UTF-8 | Python | false | false | 175,511 | py | """Generated message classes for container version v1alpha1.
Builds and manages container-based applications, powered by the open source
Kubernetes technology.
"""
# NOTE: This file is autogenerated and should not be edited by hand.
from apitools.base.protorpclite import messages as _messages
from apitools.base.py im... | [
"e1517234@soka-u.jp"
] | e1517234@soka-u.jp |
164f7e179ec264ee49337f55cfdcec1944421c2b | 685e1a25f56109de935d1ad443372d3fff8a2264 | /lesson8/main.py | 852514b91d0a45e92292f03dc3c701221fcd5b92 | [] | no_license | osydorchuk/ITEA2 | 8a8afdcfc08aa96aae3182ff19bc9b173d043a67 | 7e64e9d9843017413705367c1e742c3f83b76d14 | refs/heads/master | 2020-06-24T16:38:15.625652 | 2019-09-07T13:58:24 | 2019-09-07T13:58:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | print(__name__)
print(globals())
print(locals())
def check_locals():
a = 0
b ="q"
print(locals())
check_locals() | [
"a.sydorchuk@gmail.com"
] | a.sydorchuk@gmail.com |
4c8316dcfdb30ccba4b2ac6a9c266ca950e5db88 | 7ad63f456925594105573cdf3eebdf719b19a1e1 | /python/code_challenges/hashmap-repeated-word/hashmap_repeated_word/hashmap_repeated_word.py | c3099cd4b8bf4706efd1eea98ff4b79ab93fcd6b | [] | no_license | laithfayizhussein/data-structures-and-algorithm | 18425437b238a9fe1060daec13d3c6aa378093d4 | c0ef81bc7e0aa04627d0b2a08a2070fbb3b01b65 | refs/heads/master | 2023-08-03T15:29:52.697073 | 2021-09-14T14:47:10 | 2021-09-14T14:47:10 | 373,604,346 | 1 | 0 | null | 2021-09-14T14:47:12 | 2021-06-03T18:25:08 | JavaScript | UTF-8 | Python | false | false | 2,196 | py | import re
class Node:
def __init__(self, data):
self.data=data
self.next=None
class LinkedList:
def __init__(self):
self.head=None
def add(self, data):
node=Node(data)
if not self.head:
self.head=node
else:
current=self.head
... | [
"laithalsanory9919@gmail.com"
] | laithalsanory9919@gmail.com |
bfc47b482deb0ccf1f3e645d49665369758987ff | 3a3e823f6b94b7eae8a363b0b51b036d2b0a1669 | /metvae/dataset/biom.py | aa3196a0a38243f360389493a4983f3f36972811 | [] | no_license | mortonjt/metvae | 8a28bbbd72ee79d66992bd31bd82af65b83ea819 | f2f241fdedd2f4c045a088727df1f155b9ce9a20 | refs/heads/main | 2022-12-31T16:24:26.014394 | 2020-10-20T23:38:50 | 2020-10-20T23:38:50 | 305,812,115 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,780 | py | import os
import re
import biom
import math
import logging
import numpy as np
import pandas as pd
import torch
from torch.utils.data import Dataset
from typing import List
logger = logging.getLogger(__name__)
class BiomDataset(Dataset):
"""Loads a `.biom` file.
Parameters
----------
filename : Path... | [
"jamietmorton@gmail.com"
] | jamietmorton@gmail.com |
6176590b086fa51c97cf9f07166346416c151b32 | c1a8dd3a5379caa8124ff0c20f4a0b775874c614 | /venv/bin/pip3 | 0c0400dbeb62afdbd7d795b71041e7d20d471cef | [] | no_license | ssm5/illini | 25a40833be60c125cf91485d78aaa0506bf3b5c9 | 9ca880e9603790e16b7439ece54502884a2a171d | refs/heads/master | 2021-08-15T03:48:12.666900 | 2017-11-17T08:16:55 | 2017-11-17T08:16:55 | 108,466,970 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 251 | #!/Users/johnqian/Documents/College/CS196/illini/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from pip import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"johnlongqian@gmail.com"
] | johnlongqian@gmail.com | |
a5da3fc38c2b91b2122f0fd2cb7e5d2e1f764ad9 | 9dc3ae479c1b5c6941681917151fcb0379f9173d | /CanvasFeatureFlag.py | 7a8e37d3b28a61f52fb91ba58b6f1eb53cf1381a | [] | no_license | cthacker-udel/Python-Canvas-API-Wrapper | bf2400b42b644791f45bbda7ed42e2c03a8d97b2 | 0263c591a2b02197529559346558b9be02f592c3 | refs/heads/master | 2023-08-25T12:01:48.417204 | 2021-10-09T10:49:51 | 2021-10-09T10:49:51 | 388,362,237 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 575 | py | from CanvasClient import CanvasClient
class CanvasFeatureFlags(CanvasClient):
def __init__(self):
self.course_id = None
self.account_id = None
self.user_id = None
self.feature_id = None
self.state = None
def generate_queries(self):
body = {}
if self... | [
"cthacker@udel.edu"
] | cthacker@udel.edu |
6e0ae3e9c859c2ff133011147002083abb1e1ecf | 6dfb7fe44b6c5bfb7feb5a101656e3d3402a621f | /simp_py_examples/course/S1800/t105.py | 14b64f55e86d1ce9d76af5b273b6ada48bd93378 | [
"MIT"
] | permissive | kcfkwok2003/Simp_py | 11d6813fac83ab6309eb8efc22fcd8edde5b19b8 | f75e66da01b45dc8688dda602f8b33d4258f0c31 | refs/heads/master | 2021-05-11T00:36:36.872754 | 2018-12-19T01:41:15 | 2018-12-19T01:41:15 | 118,306,332 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 149 | py | from simp_py import tft
lcd = tft.tft
lcd.clear()
import time
cnt=10
while cnt >=0:
lcd.text(10,10, 'count: %s ' % cnt)
cnt -=1
time.sleep(1)
| [
"kcfkwok@gmail.com"
] | kcfkwok@gmail.com |
b1b504761ef386bea3c5ec22159ec1973a0ac635 | d4c47276c8fbd15240aa228eda04ee8e338caf02 | /Python/Python Lesson/Second/Lesson9/Sample8.py | 447d9972d35e1c1f96525406233e419f925a3a61 | [] | no_license | developer579/Practice | a745384450172fb327913c130303ab76492096f1 | 54084468af83afcc44530e757800c8c3678147c1 | refs/heads/main | 2023-05-06T01:36:06.222554 | 2021-06-02T07:04:03 | 2021-06-02T07:04:03 | 324,312,009 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 365 | py | import re
ptr = ["TXT","TXT..",".TXT","..TXT"]
str = ["TXT","TXTT","TXTTT","TTXT","TTTXT"]
for valueptr in ptr:
print("------")
pattern = re.compile(valueptr)
for valuestr in str:
res = pattern.search(valuestr)
if res is not None:
m = "o"
else:
m = "x"
mrs = "(パターン)" + valueptr + "(文字列)" + valuestr +... | [
"69954570+developer579@users.noreply.github.com"
] | 69954570+developer579@users.noreply.github.com |
50ac7fee9fba9158cdaa1d59c98b29131acafa31 | 234c0ce6a3c867b882f5aa6c8eb260f1a48c70ac | /mysite/blog/migrations/0003_auto_20190304_1654.py | 542615bc94cb88de9e5182da038b20998688ab20 | [] | no_license | mubarakmaddy/MySite | b32e064f3d09a1d2898f6e0cb07f316ab1436079 | 5650a8c108e2cabf990a8e0cfd2e66b69d68d839 | refs/heads/master | 2020-04-23T21:46:11.204773 | 2019-06-27T09:02:22 | 2019-06-27T09:02:22 | 171,480,172 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,009 | py | # Generated by Django 2.1.7 on 2019-03-04 11:24
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
... | [
"mubarakalis1@gmail.com"
] | mubarakalis1@gmail.com |
d02fb0c15d67504305264787a3321d77fe9822f8 | 068ac6386ff76431e308b7d7b69d8f8c8ae4f724 | /jmj/wsgi.py | bccbd5fdc6024710a40b741290eb0bce529d8b94 | [] | no_license | Cesarcalles1/proyecto | 67cf0a618e34c728bcf51ec54015170446997ba4 | 6417126c57ace7854b25ad5a042e8080bbd52f82 | refs/heads/master | 2021-05-04T05:30:38.363080 | 2018-02-05T16:58:47 | 2018-02-05T16:58:47 | 120,339,693 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 383 | py | """
WSGI config for jmj project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETTINGS_... | [
"ridiazx@gmail.com"
] | ridiazx@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.