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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
569976ce007d96645231274a1b5b570bdffd55bc | 6ada2963ec266fe22c3890b4aa0fae1bd179efbd | /排序/低频考点选择排序/SelectSort.py | 3a9e31a59212f71a3b3d1b1aca331ef7cb508bf0 | [] | no_license | guohaoyuan/algorithms-for-work | e40bc920dbae0436146b590441d4c83d1fb8ab51 | f1bbd6b3197cd9ac4f0d35a37539c11b02272065 | refs/heads/master | 2023-06-20T21:55:46.037990 | 2021-08-06T08:20:05 | 2021-08-06T08:20:05 | 267,294,002 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 500 | py | def SelectSort(nums):
n = len(nums)
if not nums:
return nums
for i in range(n):
# 初始化最小值索引
nMin = i
# 找到i+1..n-1中最小值所在索引
for j in range(i + 1, n):
if nums[j] < nums[nMin]:
nMin = j
# 将最小值索引所在位置放到有序区后
nums[i], nums[nMin] =... | [
"970992936@qq.com"
] | 970992936@qq.com |
4fece9a10c8b3a7bd61a3ad0fa6e6c520c609d01 | bb1359ea6000e2d64f66e408aae2197b22b3a4bf | /setup.py | ff2a71b81bfeba7094a18b34cae7fdeb41e45198 | [] | no_license | aver007/proc-conveyor | 34ff575a0750858936a575e5f3187349defcab28 | 2c07ec9f77d7253e97e4cf779962b2b99c948341 | refs/heads/main | 2023-02-10T03:03:46.943617 | 2021-01-07T13:49:24 | 2021-01-07T13:49:24 | 327,293,933 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 597 | py | from setuptools import setup, find_packages
with open("README.md", "r") as readme_file:
readme = readme_file.read()
requirements = []
setup(
name="procconveyor",
version="0.0.3",
author="aver",
author_email="a.v.e.r@mail.ru",
description="A package to make conveyor of parallel data processing... | [
"a.v.e.r@mail.ru"
] | a.v.e.r@mail.ru |
2e6f87fe63ffda59f760bcfcff3525573e2a2a3b | a9c0d5962138e54932be71d46e6ddf30242f874a | /evalml/pipelines/components/transformers/imputers/target_imputer.py | cd91575090fd467e44b7c1c1098cf13cfdb72185 | [
"BSD-3-Clause"
] | permissive | ObinnaObeleagu/evalml | b7ddaea238fce3278266a756d0d3173a5ea3ad96 | 3b5bf62b08a5a5bc6485ba5387a08c32e1857473 | refs/heads/main | 2023-06-29T05:00:57.351501 | 2021-07-28T14:01:24 | 2021-07-28T14:01:24 | 390,377,439 | 1 | 0 | BSD-3-Clause | 2021-07-28T14:17:26 | 2021-07-28T14:17:25 | null | UTF-8 | Python | false | false | 4,818 | py | from functools import wraps
import pandas as pd
from sklearn.impute import SimpleImputer as SkImputer
from evalml.exceptions import ComponentNotYetFittedError
from evalml.pipelines.components import ComponentBaseMeta
from evalml.pipelines.components.transformers import Transformer
from evalml.utils import (
_reta... | [
"noreply@github.com"
] | ObinnaObeleagu.noreply@github.com |
1a896dc28ce4ced3fec850b05826db2ed69b1f3c | f23efb6ae136f7a5c9124807bb5561ddfb6e76d6 | /get-weather-data updated minneapolis.py | fd698c4dc908ee14bc1b668e56b1ff445d1bcd97 | [] | no_license | amschons/Python-Data-Mining | 5998c12ef3ee96a711f46130c8dabd433b78386b | 1528ca0d434424fc956cf40e59fb3ae5bf28e977 | refs/heads/master | 2021-01-16T10:25:34.496974 | 2020-02-28T03:37:16 | 2020-02-28T03:37:16 | 243,081,487 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,063 | py | from bs4 import BeautifulSoup
import urllib, urllib.request, time
from urllib.request import Request, urlopen
# Create/open a file called wunder.txt (which will be a comma-delimited file)
f = open('minneapolis-data.txt', 'w')
# Iterate through year, month, and day
for y in range(2018, 2019):
for m in ra... | [
"noreply@github.com"
] | amschons.noreply@github.com |
4284532b66837296269e49b95c780a3711beeef6 | 556bf04696deb7226661bf09df59b858a7d05cff | /ProyectoCarnet/ProyectoCarnet/urls.py | ec2315b48e42c5ecde4a8b2ab5418f9a85d79a50 | [] | no_license | Maxi78-star/ProyectoCarnet | 469f604761cbaeecfa0c77d751f2ca5a4f01af5a | 0cc71b3fb7a086422d9af611337bc18f380061e1 | refs/heads/master | 2022-12-17T00:04:38.510951 | 2020-09-07T18:20:23 | 2020-09-07T18:20:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 756 | py | """ProyectoCarnet URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Clas... | [
"lucascar007@gmail.com"
] | lucascar007@gmail.com |
629159ba52f417906f5bb6cc4601b105867512b8 | 74482894c61156c13902044b4d39917df8ed9551 | /cryptoapis/model/list_omni_transactions_by_block_height_response_item_senders.py | a069a0dc3dc1c953c0673e13e17bfe8dc8044370 | [
"MIT"
] | permissive | xan187/Crypto_APIs_2.0_SDK_Python | bb8898556ba014cc7a4dd31b10e24bec23b74a19 | a56c75df54ef037b39be1315ed6e54de35bed55b | refs/heads/main | 2023-06-22T15:45:08.273635 | 2021-07-21T03:41:05 | 2021-07-21T03:41:05 | 387,982,780 | 1 | 0 | NOASSERTION | 2021-07-21T03:35:29 | 2021-07-21T03:35:29 | null | UTF-8 | Python | false | false | 7,262 | py | """
CryptoAPIs
Crypto APIs 2.0 is a complex and innovative infrastructure layer that radically simplifies the development of any Blockchain and Crypto related applications. Organized around REST, Crypto APIs 2.0 can assist both novice Bitcoin/Ethereum enthusiasts and crypto experts with the development of thei... | [
"kristiyan.ivanov@menasoftware.com"
] | kristiyan.ivanov@menasoftware.com |
ddd782644d54dc416f234e5963dc3d4a507117b2 | 244ecfc2017a48c70b74556be8c188e7a4815848 | /res/scripts/client/gui/scaleform/daapi/view/meta/referralreferrerintrowindowmeta.py | 74b474d33d70854685ec4e30e04785d04176fbd3 | [] | no_license | webiumsk/WOT-0.9.12 | c1e1259411ba1e6c7b02cd6408b731419d3174e5 | 5be5fd9186f335e7bae88c9761c378ff5fbf5351 | refs/heads/master | 2021-01-10T01:38:36.523788 | 2015-11-18T11:33:37 | 2015-11-18T11:33:37 | 46,414,438 | 1 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 859 | py | # 2015.11.18 11:55:12 Střední Evropa (běžný čas)
# Embedded file name: scripts/client/gui/Scaleform/daapi/view/meta/ReferralReferrerIntroWindowMeta.py
from gui.Scaleform.framework.entities.abstract.AbstractWindowView import AbstractWindowView
class ReferralReferrerIntroWindowMeta(AbstractWindowView):
def onClickA... | [
"info@webium.sk"
] | info@webium.sk |
0664321ec6bb6e160de4796989e888b1495f9241 | c7adbb31dd6ca54c32d5e4eaf8c7479f5d5147a2 | /src/battalion/autodoc.py | e21839fa0739e82c88db94027b71d5393124afd4 | [
"MIT"
] | permissive | rocktavious/battalion | 7ba8e4f5325e76fc3798acd029b5a7e5c07a30bf | 1364bf8a17b354e67c7c9db17989e39e8bab9a39 | refs/heads/master | 2020-04-06T06:58:36.909682 | 2016-02-12T16:56:41 | 2016-02-12T16:56:41 | 31,448,476 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,923 | py | from __future__ import absolute_import
import logging
from inspect import getdoc, cleandoc, isclass
from .base import BaseCommand
from .handler import HandlerMarker
from .utils import get_command_args, get_command_spec
LOG = logging.getLogger(__name__)
class AutoDocCommand(BaseCommand):
"""
Class that suppo... | [
"kyle.rockman@mac.com"
] | kyle.rockman@mac.com |
a28f0d2eec4575032824f25a67eb200a4bf0eded | 6f452f316d0efe21d713dca1fea8d2ff6b9cec4d | /week3-homework/day0x12/run.py | af977f62f7fc1d78c0e77e7d76e6bfabe76cba2c | [] | no_license | Qingyaya/python-S2 | 6901babee1179822c84e0c9c6f94d322190f2a94 | eac4eaf818fdd9afa05950394599211305b1bd00 | refs/heads/master | 2021-01-20T12:16:45.126346 | 2017-09-25T16:20:24 | 2017-09-25T16:20:24 | 101,709,084 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 350 | py | #-*- coding:utf-8 -*-
from flask import Flask
from flask import render_template
import json
app = Flask(__name__)
@app.route('/')
def hello_world():
file = open('test.json','r+')
file_text=file.read()
file_text = dict(json.loads(file_text))
return render_template('real.html',data=file_text)
if __name__ == '__ma... | [
"shashaxiaoge@163.com"
] | shashaxiaoge@163.com |
bdfd14d14304c356823395ce7952ae3075594c07 | 0abd812a50ba3330734fcbb0088a74c5ad6735a2 | /breadth-first-search/bfs.py | 423ec23b5d3dfe5433e2d6d4e8b312e43421fa24 | [] | no_license | scMarth/Learning | a914af6f6327454234e5f98dfc8cf95d6d4f8077 | ae696461c2c8edc9944879503cce01d525cf4ce0 | refs/heads/master | 2023-08-03T05:13:03.162533 | 2023-07-28T22:58:51 | 2023-07-28T22:58:51 | 120,689,926 | 2 | 0 | null | 2022-12-11T13:14:07 | 2018-02-08T00:33:42 | JavaScript | UTF-8 | Python | false | false | 1,086 | py | class Node(object):
def __init__(self, value):
self.value = value
self.children = []
def bfs(node, searching_for):
unvisited = []
visited = []
unvisited.append(node)
while unvisited != []:
curr_node = unvisited.pop(0) # remove and return item 0
print(curr_node.valu... | [
"vlantaca@gmail.com"
] | vlantaca@gmail.com |
a88915a21da701b82de03cc99e7b2670f76d2b6a | a4c6dd040b96a8b351fa555fab3f660e8f74e924 | /college/users/views.py | 1e9be0fdc8c9926a897abe7719d2bb1505435d68 | [] | no_license | lambusandeep29/interview-task | 277fff674ce0840e8af6e5e51cdd891b7e8c47f5 | 054aad2baf2d03330d78486237f316cd5e4a5524 | refs/heads/main | 2023-03-21T02:49:11.282118 | 2021-03-10T10:33:34 | 2021-03-10T10:33:34 | 346,321,300 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,999 | py | from django.shortcuts import render
from rest_framework import generics, status
from rest_framework.response import Response
from rest_framework_simplejwt.views import TokenViewBase
from .permissions import IsAdmin, IsStudent, IsTeacher
# Create your views here.
from .models import User
from .serializers import UserLo... | [
"lambusandeep29@gmail.com"
] | lambusandeep29@gmail.com |
41bf2e1ac07b069d10926ef5e0e04ca1b17115fc | 7b437e095068fb3f615203e24b3af5c212162c0d | /enaml/wx/wx_toolkit_object.py | 280c0ed530eb8a10ffe97619b83d71ddfa0c89b1 | [
"BSD-3-Clause"
] | permissive | ContinuumIO/enaml | d8200f97946e5139323d22fba32c05231c2b342a | 15c20b035a73187e8e66fa20a43c3a4372d008bd | refs/heads/master | 2023-06-26T16:16:56.291781 | 2013-03-26T21:13:52 | 2013-03-26T21:13:52 | 9,047,832 | 2 | 3 | null | null | null | null | UTF-8 | Python | false | false | 3,594 | py | #------------------------------------------------------------------------------
# Copyright (c) 2013, Nucleic Development Team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file COPYING.txt, distributed with this software.
#-------------------------------------------------... | [
"sccolbert@gmail.com"
] | sccolbert@gmail.com |
544c64522277631404326eeb304e2a5d5f03898f | fcd7f75c0d8c02160ac1a6bdc8e0020fe61a59ac | /apps/usuario/models.py | cd25eeb02a9e36922663c5e6cb6c7ab95fe832e6 | [] | no_license | KevinFernandoVidal/Reto4-Datetime | 2a2d6668eb077f8155d2997001ce54c5e6843309 | 110c0d38505b5f66f55531a70177bb0944178c0f | refs/heads/main | 2023-08-15T17:08:00.380183 | 2021-10-17T23:12:11 | 2021-10-17T23:12:11 | 418,275,677 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 451 | py | from django.db import models
from django.contrib.auth.models import User
# Create your models here.
class Persona(models.Model):
cedula = models.IntegerField(unique=True)
nombre = models.CharField(max_length=100)
apellido = models.CharField(max_length=100)
telefono = models.IntegerField(null=True, ... | [
"kefevimi@gmail.com"
] | kefevimi@gmail.com |
1d1db61384515c6227ccc9f8acd8f51139c80d47 | 6cce75b61bec5762cfdef7fee3c5f3b5ec4960ae | /Corrfunc/bases/dcosmo.py | 170d804f7e520ec5fa115be8d3720f7a04502816 | [
"MIT"
] | permissive | abbyw24/Corrfunc | 1321d372ca97076daad389410701e0b908f7cc51 | d9c821bcebd7225cf43ec9e09dfe817387c73f62 | refs/heads/master | 2022-11-26T17:45:47.553308 | 2020-07-31T22:29:13 | 2020-07-31T22:29:13 | 285,667,263 | 0 | 0 | MIT | 2020-08-06T20:40:12 | 2020-08-06T20:40:11 | null | UTF-8 | Python | false | false | 1,523 | py | import numpy as np
from nbodykit.lab import cosmology
from utils import partial_derivative
def write_bases(rmin, rmax, saveto, ncont=300, **kwargs):
bases = get_bases(rmin, rmax, ncont=ncont, **kwargs)
np.savetxt(saveto, bases.T)
nprojbins = bases.shape[0]-1
return nprojbins, saveto
def get_bases(r... | [
"kstoreyfisher@gmail.com"
] | kstoreyfisher@gmail.com |
183c89bbdbad838815b0202aaa3b8244c0c3e0a0 | 9f748485689732d700b3fc09b5ab30113fb42b62 | /src/_pytorch_toolbox/pytorch_toolbox/metrics/focal_loss.py | 7a2643091c454914f8f34d77402844e0dfde86df | [] | no_license | rawmarshmellows/atlas-human-protein-classification | 8178d98454920c2221f933c9ca6fd29451a14369 | af34a9a4cfe1d6cfaca5a323df92762b68afac24 | refs/heads/master | 2023-03-12T23:48:47.153703 | 2019-05-06T05:53:13 | 2019-05-06T05:53:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 258 | py | from pytorch_toolbox.losses import FocalLoss, focal_loss
def focal_loss_metric(preds, targs, gamma=2):
loss = FocalLoss.reshape_to_batch_size_x_minus_one_and_sum_over_last_dimension(
focal_loss(preds, targs, gamma=gamma))
return loss.mean()
| [
"kevinyihchyunlu@gmail.com"
] | kevinyihchyunlu@gmail.com |
d1866a3db14523626c503c07527ff173bd86f01f | ecf9745ec63e01090259603d638f95ba99960cfa | /scripts/fix_read_labels.py | 618e574bcfa6ff335f9d10ed3c91656c03419f75 | [] | no_license | mujundi/bioinformatics-util | d5e90191253ec7893da67ac54a742de9f2a3bf5d | 56c8b187941307bc4bab302b87bedca732d299ca | refs/heads/master | 2022-06-11T18:46:04.113964 | 2020-05-09T07:08:12 | 2020-05-09T07:08:12 | 262,510,926 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 287 | py | #!/usr/bin/env python
import sys
with open(sys.argv[1], 'r') as infile:
with open(sys.argv[2], 'w') as outfile:
for line in infile:
if line[0] == "@":
x = line.split()
outfile.write("@" + x[2] + "\n")
else:
outfile.write(line)
infile.close()
outfile.close()
| [
"musajundi@gmail.com"
] | musajundi@gmail.com |
8e681924b90b6613bc689d9c2644d9d6e0d6cc26 | d7097277f4232a6fed712f6cc93962ab1b9faf0f | /backend/home/migrations/0001_load_initial_data.py | 5f46feda5305099e279ea7206a991d9d7b879937 | [] | no_license | crowdbotics-apps/damp-math-26639 | 5f61e59e81e58886e60ca26fff72752e1f2bc8ed | 257a3502acdb2dda8199c642cc36b90d0071a209 | refs/heads/master | 2023-04-23T09:42:20.501952 | 2021-05-13T06:22:15 | 2021-05-13T06:22:15 | 366,954,391 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 536 | py | from django.db import migrations
def create_site(apps, schema_editor):
Site = apps.get_model("sites", "Site")
custom_domain = "damp-math-26639.botics.co"
site_params = {
"name": "Damp Math",
}
if custom_domain:
site_params["domain"] = custom_domain
Site.objects.update_or_crea... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
2f0232b8da18ff839444f156012af2c4c401d005 | 3675330ee6d8a025d3f8647f184b5800cc0459bc | /UnetModel/scripts/UnetModelClass.py | 44ee6bfdf2dd4a42c1f55e04278f8a701668f007 | [
"MIT"
] | permissive | RoyHirsch/BrainTumorSegmentation | b5f1122b4ebabcb912c4c358c233bf5d5bac9a52 | 671326447f77eb750a96a42e1d9b0bfca42e42ce | refs/heads/master | 2020-04-08T02:03:42.171663 | 2018-11-27T08:19:59 | 2018-11-27T08:19:59 | 158,921,146 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,654 | py | from UnetModel import *
from UnetModel.scripts.layers import *
class UnetModelClass(object):
def __init__(self, layers, num_channels, num_labels, image_size,
kernel_size, depth, pool_size, costStr, optStr, argsDict = {}):
logging.info('#### -------- NetModel object was created -------- #... | [
"roymhirsch@gmail.com"
] | roymhirsch@gmail.com |
b604b1845abdf19c599b7e779d700cd061ce05e6 | 13f8323d5a3179fe78015e7345fef4c61ddfe421 | /plus.py | e53945fb501cc0d2dab37b94661457b8b4ac8a2f | [] | no_license | SeongyeonOh/new | 2d4697827a51e09db20cc5c93b3219d7b8a35e25 | 50b7fcb14294304be7e7218c306b7857942c43fe | refs/heads/master | 2020-05-22T16:05:25.828330 | 2019-05-13T14:08:59 | 2019-05-13T14:08:59 | 186,422,047 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 94 | py | def plus(a, b):
print("====plus====")
print("result", a + b)
print("this is plus") | [
"songyon95@gmail.com"
] | songyon95@gmail.com |
9e61862fe63317bbf7901aa72a3a8f989ab495cb | 2b1f728f29dcab2dc6f9446c25a9f34d71135552 | /healthcare_disease_prediction/multiLayerPerceptron/predict.py | 5a516c996bf53f2aec6edc8e9d3fc29117f32501 | [
"Apache-2.0"
] | permissive | joneswan/certifai-reference-models | 968bec94592b57202da01d76a5df1648dd2b2897 | a201edc63edb0ba876eabd459cd3d7f364a99874 | refs/heads/master | 2020-11-23T18:34:51.740649 | 2019-12-10T07:42:22 | 2019-12-10T07:42:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 851 | py | import numpy as np
import os
import pickle
import sys
from utils.encode_decode import init_model
model_name = os.getenv("MODElNAME", "diabetes_mlp")
model_ctx = {}
# entrypoint for predict daemon
def predict_diabetes_mlp(msg):
instances = msg.payload.get("instances", [])
if not model_name in model_ctx:
... | [
"akumar@cognitivescale.com"
] | akumar@cognitivescale.com |
ae4bbbf1cc3997fd4d7544bf9c6a3dbf27f7066c | b8681049e61dd3da02ff0851a10109f0656e260a | /db_config/hxn_db_config.py | 90197c8525847636aa4945e0fa91573aa60fe1bf | [] | no_license | NSLS-II-HXN/dpc | a14c52839a0a589fa23a3e023b2cbfc822529610 | da9323806bd693a847e920ca14e149b02d080906 | refs/heads/master | 2021-09-11T03:51:03.084718 | 2021-09-07T20:36:22 | 2021-09-07T20:36:22 | 69,591,740 | 0 | 2 | null | 2021-09-07T20:36:23 | 2016-09-29T17:36:51 | Python | UTF-8 | Python | false | false | 540 | py | try:
from databroker.v0 import Broker
except ModuleNotFoundError:
from databroker import Broker
from hxntools.handlers.xspress3 import Xspress3HDF5Handler
from hxntools.handlers.timepix import TimepixHDF5Handler
db = Broker.named("hxn")
# db_analysis = Broker.named('hxn_analysis')
db.reg.register_handler(Xsp... | [
"gavrilov.dvs@gmail.com"
] | gavrilov.dvs@gmail.com |
c7133dd56eb6758b342a923c518289a067533253 | 85681ec94458b8555822763ec79e7af0892a9ae4 | /scripts/metadata.py | 62faad5bb06148176e4141f7bd1d1564c1f82e61 | [] | no_license | akkartik/readwarp | ac32079667ee8ac9be7cd5553f32607ae63df81e | fb03aceb892f7b62e3e4e52ce11f6252f89abbd5 | refs/heads/master | 2016-09-05T16:01:54.900960 | 2012-07-07T09:38:46 | 2012-07-07T09:38:46 | 37,795,282 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 136 | py | import os, sys, re, traceback, time, pickle
import json
file=sys.argv[1]
var=sys.argv[2]
mdata=json.load(open(file))
print mdata[var]
| [
"vc@akkartik.com"
] | vc@akkartik.com |
72b66300b925ba76ec9dbce59730ec3bd22dee6e | 1d1217bc1dcdd13151d6650d408819fe5855e7d8 | /btre/realtors/migrations/0001_initial.py | 820aef27c6a5777ead56b65e0701a3f8a15054c7 | [] | no_license | maryamrahdaran/Real-Estate---Django | c29e6a283490bb641bc4028d093d7f56dc771690 | b99bc2103cbc3ba00a45831344a881df8536bbeb | refs/heads/main | 2023-07-04T14:39:22.959728 | 2021-07-29T17:28:33 | 2021-07-29T17:28:33 | 390,793,791 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 921 | py | # Generated by Django 3.1.7 on 2021-03-04 20:13
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Realtor',
fields=[
('id', m... | [
"mrahdara@ucsd.edu"
] | mrahdara@ucsd.edu |
1815c9b5a6e628a6614d71c113b2d6c36c07cbb2 | dd3757d77300812ccc494cc98b3359480ef5636c | /project_Data/Project Programs/clustering k-means & mediods/iphoneClu.py | ef9dcef94182515e1ed7220647b05cf3c59adb25 | [] | no_license | neerajsh2008/RProgrames | 92f43d5407e10941092c095948a145bf93e08d46 | 8c89f165105b70e3976882ff72d3038d5554529f | refs/heads/master | 2021-01-12T00:56:38.585647 | 2015-09-26T06:46:06 | 2015-09-26T06:46:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,231 | py | import simplejson as json
fin=open("iphone_processed_tweets_unigram.json","r")
dataEmo=fin.read()
fin.close()
x=json.loads(dataEmo)
y=["iphone","itunes","gameinsight","iphonegame","collected","coins","gold","apple","states","united","apps","mac","music","food","harvested",
"app","ios","ipad"]
for i in y... | [
"inturi99@gmail.com"
] | inturi99@gmail.com |
f1258fc7049de702914eefc85c684a346fa52696 | b0fb856c67ffbba5aff193449e4af7c678f02556 | /gigasecond/gigasecond.py | 11a3506f1b13b4774a7b6b40c2b8e65d32bd36e0 | [] | no_license | naufalmukhbit/exercism-py | fd4e4deda2166591110b11d48c6cd6cdd2f7f936 | 243cf8135e12a4099f0a0a6bbad30bbf02066730 | refs/heads/main | 2023-02-05T12:37:56.102161 | 2020-12-11T11:04:27 | 2020-12-11T11:04:27 | 319,959,338 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 93 | py | from datetime import timedelta
def add(moment):
return moment + timedelta(seconds=10**9)
| [
"nmukhbit@gmail.com"
] | nmukhbit@gmail.com |
9924dbe22dcfb30ebdab051f6ee0911e6ea2a451 | 781df0aa332a808cd9046791e6886dc8ac26ff5b | /jobs/refine/template/reducer_template.py | df4ed8a3accb717bf6dc1b284b3aa92b0b8b2ef7 | [] | no_license | BlueStalker/PyEsReduce | dd88ad0422f7e1f6b9b61dcfdcdb66f92dea3a9d | 6cd345a4a3244a7e5331cc966b47b2d465cd88e5 | refs/heads/master | 2021-03-12T19:59:31.436081 | 2014-12-24T05:09:53 | 2014-12-24T05:09:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 992 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from collections import defaultdict
import nltk
import os
import sys
from os.path import abspath, dirname, join
from datetime import datetime, date
from decimal import Decimal
import unittest
import requests
import six
import time
# Test that __all__ is sufficient:
from ... | [
"curt@loyal3.com"
] | curt@loyal3.com |
e7944174ddb9418b08bba2755f4f25a1956c875d | dae3b0eda78265cb2316aa8fec1f3a333d9441da | /flops_comparison.py | b8fed93bc1543e1b69431b88a67da7fe118b3af8 | [
"MIT"
] | permissive | SebastianWang9/DCANet-1 | ae26fcd81df4a31e17c0d04fb3a5679816597a45 | 7adbd1a7b59ef8a311e22ea8908d1652efd3f28c | refs/heads/main | 2023-05-14T21:30:12.509093 | 2021-06-09T09:11:48 | 2021-06-09T09:11:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,492 | py | import torch.nn as nn
import torch
import numpy as np
import time
from thop import profile
from thop import clever_format
import os
os.environ["CUDA_VISIBLE_DEVICES"] = "0"
from ptsemseg.models.fusionmodel import *
from ptsemseg.models.AMTUnet import *
from ptsemseg.models.ESFNet import *
from ptsemseg.models.RCNNUNet ... | [
"Huhu01495"
] | Huhu01495 |
d55aac6e7fe17a01ac011129dcadef06d513a28e | af727f1a052ccd72553f8efade08fad7e0cfbe88 | /chapter4/q10.py | e07ea350ff2128f696d2caadd2529053edc49111 | [] | no_license | jojotan/Think_Python_Exercises | 711e84a31dfec98a2b236d906f3219f35a592f62 | dd383643781fae2c1813097d0318ec23bd5ef73a | refs/heads/master | 2021-02-20T12:58:21.158540 | 2020-03-08T04:22:08 | 2020-03-08T04:22:08 | 245,337,115 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 546 | py | import turtle
def make_window(color,title):
w = turtle.Screen()
w.bgcolor(color)
w.title(title)
return w
def make_turtle(color, size):
t = turtle.Turtle()
t.color(color)
t.pensize(size)
t.speed(2)
return t
def make_star(t, size):
for i in range(5):
t.forward(size)
... | [
"tanzheyu@tans-MacBook.local"
] | tanzheyu@tans-MacBook.local |
1c606234500c22dab6cb271f8a8f8089902dcda2 | 410c2a1157447b8753bb7ca1aa0aa9329417c421 | /unlock.py | 9d74f8e49d5e5e10e1500c0815eb8df2025dfdfd | [
"Apache-2.0"
] | permissive | maxQ05/huawei-honor-unlock-bootloader | 3f1035fdb9ece1b0429f8820dffdac236ed808f7 | dbd8d445cdb3e1db0001e46b924f94e089f5caff | refs/heads/master | 2021-02-21T02:45:37.430857 | 2020-03-06T06:54:32 | 2020-03-06T06:54:32 | 245,349,732 | 0 | 0 | Apache-2.0 | 2020-03-06T06:51:09 | 2020-03-06T06:51:08 | null | UTF-8 | Python | false | false | 2,114 | py | # -*- coding: utf-8 -*-
"""
SkyEmie_' 💜 https://github.com/SkyEmie
https://en.wikipedia.org/wiki/Luhn_algorithm
"""
import time
#from flashbootlib import test
import os
import math
##########################################################################################################################
... | [
"noreply@github.com"
] | maxQ05.noreply@github.com |
4cbc9378c01a4f9a28ff8a7a46fef64fb95eeb00 | b9dc3b984fa70012e8ca74340b471692f0a2542d | /model/image.py | df402e72282a59d63fe75c11a4839c9cf5cb5a24 | [] | no_license | Zumbalamambo/RetinaNet-Keras | 0c1e765aba0a435ece6b68c91c5f84e8507350cc | 80dfcfee71a5d5ba685688c62a841d60c404b26a | refs/heads/master | 2020-03-15T06:13:26.119442 | 2018-04-21T21:34:21 | 2018-04-21T21:34:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,324 | py | from __future__ import division
import PIL
import cv2
import keras
import numpy as np
from model.transform import change_transform_origin
def read_image_rgb(path):
image = np.asarray(PIL.Image.open(path).convert('RGB'))
return image.copy()
def read_image_bgr(path):
image = np.asarray(PIL.Image.open(pa... | [
"ccasadei@maggioli.it"
] | ccasadei@maggioli.it |
a68e884048a4a15846273ef1809df5ae52cf12ee | f4b0fad9a8a6937021c526f2560d47dbd0fccdb0 | /venv/lib/python3.6/site-packages/_pytest/config/findpaths.py | 20a8d3dadb18eab7ce7007f86563d5c80371314e | [
"BSD-3-Clause"
] | permissive | RALEx147/FilmColorSearch | a54917fb7353c03a7a51277a8cd2c416270c4dcb | 88b981655c4dd708ad3ad40257356791dcddf5f0 | refs/heads/master | 2021-01-04T23:07:01.820998 | 2020-09-08T18:29:52 | 2020-09-08T18:29:52 | 240,788,528 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 5,803 | py | import os
from typing import Any
from typing import Iterable
from typing import List
from typing import Optional
from typing import Tuple
import py
from .exceptions import UsageError
from _pytest.compat import TYPE_CHECKING
from _pytest.outcomes import fail
if TYPE_CHECKING:
from . import Config # noqa: F401
... | [
"mr7.jacky@gmail.com"
] | mr7.jacky@gmail.com |
43dec2a87170199a10d099ada95cfdbd0ffcd33a | 438728da6fdfc218fe84c84f412400c1f619ce03 | /lab7/util/neural-network-template-writer.py | 21e2294e3df34932ce68d9abd24a6494dc4db4bd | [] | no_license | smaft/nenr-lab | 3581032825e0244efd1a9475e075315b48b77569 | db34502aed9f89c90848b948abfc183aa825ee16 | refs/heads/master | 2022-06-28T02:07:19.183942 | 2020-01-16T22:55:37 | 2020-01-21T22:12:53 | 263,274,169 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 776 | py | import sys
def main():
placeholders="w.11, s.11, w.12, s.12, w.21, s.21, w.22, s.22, w.31, s.31, w.32, s.32, w.41, s.41, w.42, s.42, w.51, s.51, w.52, s.52, w.61, s.61, w.62, s.62, w.71, s.71, w.72, s.72, w.81, s.81, w.82, s.82, a.w0, w.a1, w.a2, w.a3, w.a4, w.a5, w.a6, w.a7, w.a8, b.w0, w.b1, w.b2, w.b3, w.b4, w.... | [
"mate.gasparini@fer.hr"
] | mate.gasparini@fer.hr |
b19940bec3074954ad59d065ad82dc93a3accefd | da5e76df4f0b172c30d2e817cdcf1bbb277890af | /Hotels/Hotels/urls.py | 0fa8b9cb857d4e3ee30f2a8c7bc8da11991d2a06 | [] | no_license | twizy/Hotels | a58e3daefd3164ec35dc5b1c6d8b2a477a3e9915 | e03543677fffb1f50a7e40f20e9098ded9127372 | refs/heads/main | 2023-02-15T04:39:42.384340 | 2021-01-19T10:18:43 | 2021-01-19T10:18:43 | 328,665,364 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,052 | py | """Hotels URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based ... | [
"twizalain@gmail.com"
] | twizalain@gmail.com |
813c90c79d872d92cc71b7bb99d20320f4869c7d | 28247c87bf546edcfd2763cd303a97ea82853bcb | /clashowords/wsgi.py | 06db7a3c737d079673d485c165258959eae1f968 | [] | no_license | bibinhashley/ClashO-Words-Blog | ec61617ae58afe2ed95bed1a6c74401a68373f27 | 219b0f2244b3670306a9e6a4164fdf937a45eebd | refs/heads/master | 2023-06-27T20:30:27.599589 | 2021-08-02T09:02:15 | 2021-08-02T09:02:15 | 296,549,817 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | """
WSGI config for clashowords 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.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_S... | [
"bibinhashley@gmail.com"
] | bibinhashley@gmail.com |
72d1eb004c32759f15586960fc6cca1ed236a1e3 | c97e43eca6a0ba9e4492da4d43cfc973dce6ac38 | /GAN_model/D_gan.py | 063d92d27364d289286949c806c35cab9739212d | [] | no_license | Hutianzhong/SR-GAN | 2f74676b4bd14d852aeb27b54e7e5b53e90b9bb1 | 1c719456571dbd7daf6cf86d5c1a6afc20c65ed5 | refs/heads/master | 2020-07-06T18:19:58.734672 | 2019-08-19T05:21:37 | 2019-08-19T05:21:37 | 203,102,102 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 586 | py | from __future__ import print_function, division
from keras.layers import Input, Dense, Flatten
from keras.layers.advanced_activations import LeakyReLU
from keras.models import Sequential, Model
def build_D(hr_shape=(128, 128, 1)):
model = Sequential()
model.add(Flatten(input_shape=hr_shape))
model.add(D... | [
"noreply@github.com"
] | Hutianzhong.noreply@github.com |
a525ebf6be93760a40a846924b98bb880a8ae54f | 975a345d2795198be60137c1a9bf94e429e997bb | /nte/data/real/gun_point/GunPointDataset.py | 0b91f91eead2d9ffef2df699270edb837cd63d75 | [
"MIT"
] | permissive | kingspp/timeseries-explain | ff36a0d22f11b796dab40e7cd3042ada2fa366df | bb2e54772d36e0ab0753075f6ce060cdeb8c2e65 | refs/heads/main | 2023-05-23T12:11:06.372789 | 2022-08-04T03:45:07 | 2022-08-04T03:45:07 | 394,703,072 | 8 | 2 | MIT | 2021-09-26T20:00:41 | 2021-08-10T15:51:07 | Python | UTF-8 | Python | false | false | 843 | py | from nte.data.dataset import Dataset
from nte import NTE_MODULE_PATH
import pandas as pd
import os
class GunPointDataset(Dataset):
def __init__(self):
super().__init__(
name='gun_point',
meta_file_path=os.path.join(NTE_MODULE_PATH, 'data', 'real', 'gun_point', 'meta.json'))
de... | [
"rdoddaiah@wpi.edu"
] | rdoddaiah@wpi.edu |
89732d3f509abfffc2a076d87fd4d409158596df | 20406d142d31d4716d720cd876adef60092999eb | /publishconf.py | e10394cf6d0bc1bff59a9bc64bbde8875284bd8c | [] | no_license | exhuma/mamerwiselen.lu | 5cdbd0f888668c5068d0226ac68c3e6668b3d482 | 6fdcba10685258f5ec1c1711dd0fdd85c3f12900 | refs/heads/master | 2021-01-15T15:48:33.039233 | 2016-09-27T18:25:16 | 2016-09-27T18:25:16 | 42,190,065 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 549 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
import os
import sys
sys.path.append(os.curdir)
from pelicanconf import * # NOQA
# This file is only used if you use `make publish` or
# explicitly specify it as your config file. You only need to specify values
# that are *differ... | [
"michel@albert.lu"
] | michel@albert.lu |
e4c79f2b082684bf5aad943b274af43ef50c6488 | 198471d7a556acfe2158fff8216887f0d3ef92a1 | /zentral/contrib/osquery/__init__.py | 486737625236825b325218db47ff68c2a7fb9dd7 | [
"Apache-2.0"
] | permissive | luisgiraldo/zentral | 30fcb8ba1d44f634cd9f3280e634d6df6a367064 | 6fdb1ea322e244f35c6b9e1c0c5bf94c68c0077f | refs/heads/master | 2021-01-15T16:14:52.912027 | 2015-11-15T23:00:21 | 2015-11-15T23:00:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,733 | py | from zentral.conf import settings, probes as all_probes
from zentral.core.exceptions import ImproperlyConfigured
# Enroll_secret structure : EnrollSecretSecret$Key$Val
# EnrollSecretSecret to test if it is a good request.
# Key / Val to try to link with the machine.
# If no machine found, not a problem.
# Enroll_secre... | [
"eric.falconnier@112hz.com"
] | eric.falconnier@112hz.com |
75652bcd97100b8281c99c6eea4946c8d1d97d74 | 59254f1c203bd7ebd3a5d85d5ec31959c1e90182 | /rdis/py/rdis.py | 02a80b9d0bf21b20bbb2b3e2a4f6ef4c58b4b29a | [] | no_license | monicadelaine/preop_create | c9c687012a23d99d200d4396237ba69862a285fc | 34dbe0bb8d96d6adcb2c79ac33474007044b65dd | refs/heads/master | 2020-04-11T04:23:20.150444 | 2013-02-22T22:02:51 | 2013-02-22T22:02:51 | 68,144,611 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25,569 | py | #!/usr/bin/env python
"""
An interpreter for RDIS models and quick-n-dirty parser for the JSON concrete
syntax.
This contains several methods which are useful to other applications which are
associated somehow with RDIS and need to emulate some of its behavior.
Usage:
import rdis
model = rdis.load( "/path/to/my/... | [
"mahodnett@crimson.ua.edu"
] | mahodnett@crimson.ua.edu |
9a3f0834fb8c95c50780b6556f338434afb755ac | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/stdlib-big-2027.py | 800ffc49d1b9b669601b8019287f65c1ce85377c | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,005 | py | # ChocoPy library functions
def int_to_str(x: int) -> str:
digits:[str] = None
result:str = ""
# Set-up digit mapping
digits = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]
# Write sign if necessary
if x < 0:
result = "-"
x = -x
# Write digits using a recursive call
... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
ca654d4af8923a06b4bc4ecf85e375843769055d | b4dfc245207c58eaf507733968cee3262d63f8e1 | /Caja.py | 21c0ba99c2bf920f09c3fc287c64ce68b0dc8e42 | [] | no_license | nicoadam/atm-python | 7029df05471febe01d8b48d0fb36b52a1c716652 | f4fe3f55615e95edef37e706067c9c7a25c11c24 | refs/heads/main | 2023-04-14T04:23:13.733255 | 2021-04-25T13:29:30 | 2021-04-25T13:29:30 | 361,435,890 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,725 | py | import banco
from os import system, path
import time #tiempo del sistema
class Caja(object):
rayas ="*"*100 #rayas
ban = "" # inicializo la variable del objeto banco
def __init__(self):
try:
self.historial = ["****ACCIONES EFECTUADAS****\n"] # titulo de la cabezera del a... | [
"edgar1391@gmail.com"
] | edgar1391@gmail.com |
9bf056a7cf20339db644c6a71488458cca6aa0c0 | b9e64241fb706cbee4523275bbfc3cbf339d4014 | /hostagent.py | c1948e9963ec3b55b54eccc0f05a6d8d26df93c3 | [] | no_license | kecorbin/apicserviceagent | 89e535b557367bdc20098c5c4371576e39bc4344 | f101a384d50a9b7747f676b976d827db7041b7e2 | refs/heads/master | 2021-01-19T07:58:33.088437 | 2014-12-07T20:49:37 | 2014-12-07T20:49:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,523 | py | #!/usr/bin/env python
import cobra.mit.access
import cobra.mit.session
import cobra.mit.request
import cobra.model.fv
from cobra.mit.request import DnQuery, ClassQuery
class Agent:
def __init__(self, host, user, passwd):
self.host = host
self.user = user
self.passwd = passwd
self... | [
"kecorbin@cisco.com"
] | kecorbin@cisco.com |
b69c8df05efb1c946c2379bbb3a7cbafc5a010d9 | 72a934f4940c4ae77682d45a2d1e8ec5b1e2ff01 | /venv/Scripts/pip3.8-script.py | f2b389e665b291cb3dc3f058d36bb6b6941f01e1 | [] | no_license | dhaval-jain/g1 | 5347160fcf4efc21207fdf9f996a10dd4e0f61e9 | a6d4deb672204b9eaf1efc5c6e0c12f38b5bb906 | refs/heads/master | 2023-03-18T22:49:03.559327 | 2020-11-17T16:59:50 | 2020-11-17T16:59:50 | 346,329,013 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 417 | py | #!C:\Users\meow\PycharmProjects\project1\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3.8'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.arg... | [
"inexorable619@gmail.com"
] | inexorable619@gmail.com |
c65e687f2a60aec60f86c88a817f06b916bede1a | 2c5b8e18262c3db5fadf30a692a525224479c1ec | /medium_config.py | 3e269c2792d2f714245da3a066f127434d672152 | [] | no_license | psaletan/hugo2medium | bb2c011eaf72a53299dfcd884720d95cfb262f9c | e194af6c74decd60d896f86add53d16e21a26f12 | refs/heads/master | 2020-03-08T21:31:54.633665 | 2018-04-06T14:52:23 | 2018-04-06T14:52:23 | 128,408,235 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 929 | py | """medium_config.py
configuration for publishing a Hugo post to Medium
"""
# Medium settings
MEDIUM_USERNAME = "paul.saletan"
MEDIUM_PUBLISH_URL = "https://medium.com"
DEFAULT_TITLE = "My Title"
PUBLISH_STATUS = "draft"
# Hugo settings
# Where markdown files are located
DEFAULT_LOCAL_DIRECTORY = '/home/paul/site/hugo... | [
"psaletan@gmail.com"
] | psaletan@gmail.com |
b0fda62c91e2ef2f82de42bc419511c8207e287d | a2dbf96b1fc3329a296b9f338b94bac9b880d85c | /call_api.py | 6a0a19d647923ae367a3e41151000a56bdd8fb22 | [] | no_license | shishirmax/py | 830894e4ca48d5e3e3eb732e64e36d1cc9f2658a | 3eaa8564f4532c460d78162d965d7905d7840918 | refs/heads/master | 2022-02-28T09:10:05.269671 | 2019-10-14T11:20:26 | 2019-10-14T11:20:26 | 109,232,985 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 943 | py | import requests
import json
api_key = "AIzaSyBEQyAbIVXfGTSbLr_S-HUpSZoxfoBbc5I"
strAdd = "0 State Highway 99"
strCity = " Montgomery Twp"
strState = " "
strZip = "56069"
complete_address = strAdd+strCity+strState+strZip
url = "https://maps.googleapis.com/maps/api/geocode/json?address="+complete_address+"&key=AIzaSyBEQy... | [
"shishirmax@gmail.com"
] | shishirmax@gmail.com |
652e5faa14374b2c8acb1e848e42cfc2a960f2ff | 78e1b2b293acca855508cbe69ade1c530fa4b676 | /06_with_logging.py | 9dcc41fc213610c0fcb0f485ca1a9e908bf05735 | [] | no_license | mfonism/learn-telethon | c9597d3a20e0e12db7c0165c6a122a8f44933fc6 | 6eb49e20df33e4a668f225212f8945475b316822 | refs/heads/master | 2022-12-13T15:33:20.561060 | 2020-02-11T14:05:22 | 2020-02-11T14:05:22 | 239,226,974 | 0 | 0 | null | 2022-11-22T05:18:05 | 2020-02-09T00:58:13 | Python | UTF-8 | Python | false | false | 476 | py | import logging
from telethon import TelegramClient, events
import settings
logging.basicConfig(
format="[%(levelname) 5s/%(asctime)s] %(name)s: %(message)s", level=logging.WARNING
)
client = TelegramClient(
settings.USER_SESSION_FILENAME, settings.API_ID, settings.API_HASH
)
@client.on(events.NewMessage)
... | [
"mfonetimfon@gmail.com"
] | mfonetimfon@gmail.com |
f408c17757ab32b3fb0706b8702baaa29e7c3158 | dec67195d506a847ff876deb0d33972f18170b5a | /coroutine_asyncio_serv.py | 5f45978297c19e9790ac24d64a0dcbca6a36cf89 | [] | no_license | madomdy/simple_servers | dc1f4e433684ea20c9a44b48cd1a3e9fedb234d7 | 83edfd9fb8f540d64787a41e21e77cba5c5ec367 | refs/heads/master | 2020-07-15T10:23:46.243124 | 2016-12-28T17:30:48 | 2016-12-28T17:30:48 | 73,964,545 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,089 | py | import asyncio, zen_utils
@asyncio.coroutine
def handle_conversation(reader, writer):
address = writer.get_extra_info('peername')
print('Accepted connection from {}'.format(address))
while True:
data = b''
while not data.endswith(b'?'):
more_data = yield from reader.read(4096)
... | [
"omar.shikhkerimov@gmail.com"
] | omar.shikhkerimov@gmail.com |
f17d81c395fa825f2af97515f5e18aa4f402bc20 | d7787de97e8969244c5179f253422adc20139ecc | /pystim/io/csv.py | 2f51220754a4b304cc6f45636d4742662a874015 | [
"MIT"
] | permissive | balefebvre/pystim | 1a731fab9efdcd72ba627f598a4c62dea13c6b36 | ae51d8a4b478da6dec44b296407099c6257fa3fa | refs/heads/master | 2021-06-30T07:56:12.652247 | 2019-05-23T15:42:25 | 2019-05-23T15:42:25 | 156,358,798 | 0 | 0 | MIT | 2019-05-23T15:42:27 | 2018-11-06T09:28:44 | Python | UTF-8 | Python | false | false | 924 | py | import pandas as pd
def open_file(path, columns=[], dtype=None):
file = CSVFile(path, columns=columns, dtype=dtype)
return file
def load_file(path, expected_columns=None):
dataframe = pd.read_csv(path, index_col=0)
if expected_columns is not None:
columns = dataframe.columns.values.tolis... | [
"baptiste.lefebvre@ens.fr"
] | baptiste.lefebvre@ens.fr |
6c4c40c1e83ecbc68e98234bc754804fb4a8a163 | 5cbd3da4febb37170663f9a76441c6d0e78c54fd | /src/programmerslevel2/제이든문자열.py | 03d812012efa20b0f88bc572a2eb6bbacbf28b1f | [] | no_license | knae11/pythonAlgorithm | fb07dc73e0c6de9a6da2f169d961148ebc74d54c | 5a17aae336028628711a9067e31b820ab0ceeb4a | refs/heads/main | 2023-08-22T05:31:06.463927 | 2021-10-08T05:00:53 | 2021-10-08T05:00:53 | 335,243,428 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 346 | py | def solution(s):
answer = ''
process = ''
s += " "
for letter in s:
if letter == " ":
converted = process.capitalize()
answer += converted
process = ''
answer += " "
else:
process += letter
return answer[:-1]
print(solution... | [
"knae11@naver.com"
] | knae11@naver.com |
75ca2a91168b539408982c9268062e6b786bbdc9 | 68a5852042c54d6f5b8f6fef3261f4cda9984eda | /Decision_Tree/DT_main.py | b51ad9e0413ddca4dd3ce5ff29cb4012dfae6889 | [] | no_license | Qu-Xiangjun/MachineLearning_Zhouzhihua_MyModleCode | c95d6c15782e4f8148709ee0274ab1e1232a4261 | 52a02d8c121525a1075ed42b857ebf602ee497d3 | refs/heads/main | 2023-02-01T09:49:19.830283 | 2020-12-10T10:25:11 | 2020-12-10T10:25:11 | 320,230,500 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,447 | py | """
@time: 2020-10-15
@author: Qu Xiangjun 20186471
@describe: 测试自定义的决策树分类算法对西瓜数据集2.0(周志华《机器学习》)二分类
"""
import pandas as pd
import json
from Decision_Tree import Create_Decision_Tree, StoreTree,ReadTree,dtClassify
from draw_decision_tree import create_plot
def load_dataset():
"""
从asv表格导入数据
@return x 训练数据... | [
"quxiangjun@cqu.edu.cn"
] | quxiangjun@cqu.edu.cn |
75b146e4891ac523f6d062a2009e4a423e15e259 | f1e1424ff858b8c636e0bcf412541fd5153cd4d6 | /Check if Array Is Sorted and Rotated.py | bfbfc45db647a120a915ccf7a30dabe2e1ef9941 | [] | no_license | soma-y1029/TechCodingPractices | 223d81eb74bfa72b6a946f8027418b8fd056d131 | cd207dd30ecc23baa9ee014191c38b9ca277d80c | refs/heads/master | 2023-04-02T22:33:27.405753 | 2021-04-06T23:29:14 | 2021-04-06T23:29:14 | 306,386,242 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 558 | py | class Solution:
def check(self, nums: List[int]) -> bool:
if len(nums) < 2: return True
prev = nums[0]
for i, n in enumerate(nums[1:]):
if n < prev: # found place of rotation
# print(n, i+1, prev, nums)
nums = nums[i+1:] + nums[:i+1]
... | [
"noreply@github.com"
] | soma-y1029.noreply@github.com |
41afd3843af692eb3adb2cfaff20ea5a4e0e7638 | bf98767ab26c0eed492a4e9817cfcb799ff6b18e | /Search/eight_puzzle/heuristics.py | 8bf6e56e0292acdc5d8f76d06bfc2842e58512b0 | [] | no_license | surbhi-145/ArtificialIntelligence | f291065340ea46f7859be22ae2e207d64591169f | 785d5faa14a1fc10c9bf412a570718f0cf3a07ab | refs/heads/master | 2022-12-11T07:15:14.947365 | 2020-08-31T06:37:31 | 2020-08-31T06:37:31 | 287,737,029 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,477 | py | '''
Heuristic Functions :
- Manhattan Distance
- No. of Misplaced tiles
- Sqrt of Manhattan Distance
- Max Heuristic max(Manhattan Distance , No. of Misplaced tiles)
'''
import math
def linear(node):
goal = (1, 2, 3, 4, 5, 6, 7, 8, 0)
return sum([1 if node.state[i] != goal[i] else 0 for i... | [
"surbhi89.agrawal@gmail.com"
] | surbhi89.agrawal@gmail.com |
b49fc24bb43a8a5b1a38eda3db1d1a457f3601fb | f401345413420583ca01a2723f66182b3007b76a | /bin/python-config | 16aa730a16e62feacf787e63cf6aedc9ab940946 | [] | no_license | irslambouf/SyncServer | 92208cbb00a067aa68348dddacbdde56c41eee1f | 293c1fef7b65cf84a600c100b23654896e159836 | refs/heads/master | 2021-01-21T15:37:12.963847 | 2016-05-18T17:36:33 | 2016-05-18T17:36:33 | 59,137,668 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,344 | #!/home/philippe/server-full/bin/python
import sys
import getopt
import sysconfig
valid_opts = ['prefix', 'exec-prefix', 'includes', 'libs', 'cflags',
'ldflags', 'help']
if sys.version_info >= (3, 2):
valid_opts.insert(-1, 'extension-suffix')
valid_opts.append('abiflags')
if sys.version_info >=... | [
"irslambouf"
] | irslambouf | |
663b39c9a6e21e392ce1a27d195c48aa3e3d88bf | 192b6b54e0408c00a828072db624ac2f52cb444d | /Delete_Node_in_list.py | ab806f7cb9c0063706ff50b3fc34114b00a1ff49 | [] | no_license | yaserahmedn/Leetcode--June-Challenge | b0c517de90e974a7d017ba0f984bda83011bf37e | 4397bde1c99f7322ab30cf3eb691ab293af5316e | refs/heads/master | 2022-10-14T09:06:41.398577 | 2020-06-12T11:58:44 | 2020-06-12T11:58:44 | 268,815,665 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 976 | py | '''
Delete Node in a Linked List
Write a function to delete a node (except the tail) in a singly linked list, given only access to that node.
Given linked list -- head = [4,5,1,9], which looks like following:
Example 1:
Input: head = [4,5,1,9], node = 5
Output: [4,1,9]
Explanation: You are given the second nod... | [
"noreply@github.com"
] | yaserahmedn.noreply@github.com |
6e2d3ce0a7edcf543768df76534c06980026ae6d | 2d82cc5ed46d067f840a8679fc054e5ca0cdd3d3 | /CODE/Data_Process/Primary_Model/Tweets_Count/Football_italy/italyTweetsCount/OlimpicoRoma.py | 9058d4d02881d751516336f31718b06035c48fcb | [] | no_license | chenvega/COMP90055-COMPUTING-PROJECT-Estimating-Crowds-Based-on-Social-Media | ec5e89171994af39188480b8596b0faf7c38a86d | 7220ed2873729e24827ddf9d0325e7b4c488ff0b | refs/heads/master | 2021-01-10T13:37:06.602347 | 2015-11-03T06:00:06 | 2015-11-03T06:00:15 | 45,310,395 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,078 | py | # Author : Weijia Chen
# Student Number : 616213
# Supervisor : Prof. Richard Sinnott
# Subject: COMP90055 COMPUTING PROJECT
# Project Name : Estimating Crowds Based on Social Media
# This program will count individual number attending one specific
# football match on a corresponding stadium
import couchdb
from couch... | [
"260435413@qq.com"
] | 260435413@qq.com |
8096da5763075f0b5a0f0373871c0b99d7e55b14 | 5aae5a7ebd03700c122b6e9f7063573e5dc72821 | /accounts/urls.py | be60bca649f8b2fa24d441cae7d925d8359fef81 | [] | no_license | sandrayousry/djangoLabs | e28ab486be010a488812d0a07ab9185a5c21887f | d1cad66eaddb8ed6dad99d07b683331829a8c619 | refs/heads/main | 2023-03-20T02:55:36.006566 | 2021-03-15T22:29:54 | 2021-03-15T22:29:54 | 347,519,327 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 155 | py | from django.urls import path
# from .views import signup
from . import views
urlpatterns = [
path('signup',views.signup,name="signup"),
] | [
"noreply@github.com"
] | sandrayousry.noreply@github.com |
8b5cb30d0f2eb905dd9fa8439b1d4bac24e708ae | 2d4bc7e7c24a918cfe959f37fb759ec3b92c1674 | /course9/sqlalchemy_example/models.py | 0b0fb3eea5ce9b8a06002e3958e25e4a64f4585d | [] | no_license | zx089/tceh-python | a3884e2ded0681a4344c9d32969a78bc4a48df58 | 7589c6f960f2a387c6ef10078f18452743608dc2 | refs/heads/master | 2020-05-30T12:55:13.355695 | 2016-04-15T16:20:19 | 2016-04-15T16:20:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,406 | py | # -*- coding: utf-8 -*-
from datetime import date
from app import db
__author__ = 'sobolevn'
class User(db.Model):
id = db.Column(db.Integer, primary_key=True)
username = db.Column(db.String(80), unique=True)
email = db.Column(db.String(120), unique=True)
def __init__(self, username, email):
... | [
"mail@sobolevn.me"
] | mail@sobolevn.me |
5cf18deede105b09c6d5140b3cc9b5e325e0f2c5 | 6df0d7a677129e9b325d4fdb4bbf72d512dd08b2 | /Django/ttscase/djvenv/bin/pip | 1d6258f3f720b9ca0981b0c6c8615694541fafbb | [] | no_license | yingxingtianxia/python | 01265a37136f2ad73fdd142f72d70f7c962e0241 | 3e1a7617a4b6552bce4a7e15a182f30e1bae221e | refs/heads/master | 2021-06-14T15:48:00.939472 | 2019-12-13T05:57:36 | 2019-12-13T05:57:36 | 152,200,507 | 0 | 0 | null | 2021-06-10T20:54:26 | 2018-10-09T06:40:10 | Python | UTF-8 | Python | false | false | 236 | #!/data/python/Django/ttscase/djvenv/bin/python3
# -*- 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())
| [
"root@room8pc205.tedu.cn"
] | root@room8pc205.tedu.cn | |
2ef43e5b57b8f8c20be85e594f3601e5fc4baca0 | 160e0880cc9926e916e3e4295bebeca2e7f45312 | /lambda/ExchangeMessages.py | 3a4046c3afed83b63f56fdad78e23f7966f9ab6f | [] | no_license | cherudim9/DiningConciergeVirtualAssistant | 000be94c3121e5f0901916965941ecf9409e2494 | 999646ac718094078ae1835faf6a823c4fdfe0ac | refs/heads/master | 2020-03-09T04:38:16.594755 | 2018-04-08T03:11:30 | 2018-04-08T03:11:30 | 128,592,084 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 539 | py | from __future__ import print_function
import json
import boto3
def lambda_handler(event, context):
data = json.loads(json.dumps(event))
message = data["message"]
userid = data["userId"]
client = boto3.client('lex-runtime')
response = client.post_content(
botName='Testbot',
... | [
"cherudim9@gmail.com"
] | cherudim9@gmail.com |
d27f53becd30cb01565191e28b3ce9b5bfe45935 | 6659c6f8ef75b98b4fe99e1ff54c22d2c052f44c | /app1/admin.py | 0e88744bf5993b00b446dc44bd7c1ee958df8433 | [] | no_license | vizul2012/bookstore | 0b2bbeca8f3eae436017bb125b669498009f5662 | 12c1abc92859efb933422aee3d9594a60ed5d00c | refs/heads/master | 2023-06-09T10:03:00.154938 | 2021-06-26T09:45:17 | 2021-06-26T09:45:17 | 380,463,135 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 112 | py | from django.contrib import admin
from .models import *
# Register your models here
admin.site.register(seller)
| [
"vizulsuthar1999@gmail.com"
] | vizulsuthar1999@gmail.com |
9c330392ee7280a8342cecca64e8c9cc46db19cc | e071c0290fbb7a48d1b6ebb04691d378a01c80ff | /ex16-1.py | 109beef186f5fb82c108ff17c7a22d0cebd2c992 | [] | no_license | dillonius01/LPTHW | d6ab9743b108cf10dff0fe850dee4b83828be5a7 | 3250f0fef4f3dbf29d09d81d90fbb58a7b9ba021 | refs/heads/master | 2020-04-06T06:55:18.717087 | 2016-08-18T15:28:13 | 2016-08-18T15:28:13 | 48,221,288 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 277 | py | #print "What file would you like to open?"
#filename = raw_input("> ")
#txt = open(filename)
#print "Press RETURN to see the file contents"
#raw_input("> ")
#print txt.read()
from sys import argv
script, filename = argv
txt = open(filename)
print txt.read()
txt.close()
| [
"dillon.c.powers@gmail.com"
] | dillon.c.powers@gmail.com |
49d8e34ba81fb8c503497a2be5ab77f389891bb6 | c8924684677eec757425fec3b063353cac1675a3 | /app/config/settings.py | 4941df16b7a532a3233210301f6b8068c9414459 | [] | no_license | Fastcampus-WPS-7th/Celery-Tutorial | 0dc34262ea0e1717df1575f2bc648af35b6f37a2 | 66f9dd009e3492941c2fe889d6a656d1dbd4f9c3 | refs/heads/master | 2020-03-07T08:42:28.002826 | 2018-03-30T06:45:59 | 2018-03-30T06:45:59 | 127,386,257 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,220 | py | """
Django settings for config project.
Generated by 'django-admin startproject' using Django 2.0.3.
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 os
# ... | [
"dev@azelf.com"
] | dev@azelf.com |
2162026b3b76bf6d2721005cbcb0d68b8d08e474 | c3f0a636a2f14a02e5f2ff4afea438195f64ecf6 | /scratch/sub-pop_algorithm_playground.py | 958287a1e8fa9fd8e76c9801d082f4661b477697 | [] | no_license | sdodd92/pandemic-sim | d6caabb43ff5f08920c41809bd3c0e636062c148 | 0bc8a1edd94c8d2be163239715dd1fcc30b4eabf | refs/heads/master | 2021-04-21T14:06:10.734117 | 2020-10-02T15:32:23 | 2020-10-02T15:32:23 | 249,785,981 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,523 | py | import numpy as np
import seaborn as sns
import pandas as pd
# np.random.seed(5)
class Network:
def __init__(self, raw_network: dict):
self.raw_network = raw_network
def as_table(self):
output = pd.DataFrame(columns=['Source', 'Target', 'weight'])
for node_from in self.raw_network.key... | [
"dodd429@gmail.com"
] | dodd429@gmail.com |
42fa495715d823a9db8a693de3ca18f53ba9d129 | ee8c4c954b7c1711899b6d2527bdb12b5c79c9be | /assessment2/amazon/run/core/controllers/tidy.py | a98e9c5baa8c3bcdb82a407edf341a643292ba3c | [] | no_license | sqlconsult/byte | 02ac9899aebea4475614969b594bfe2992ffe29a | 548f6cb5038e927b54adca29caf02c981fdcecfc | refs/heads/master | 2021-01-25T14:45:42.120220 | 2018-08-11T23:45:31 | 2018-08-11T23:45:31 | 117,135,069 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 362 | py | #!/usr/bin/env python3
from flask import Blueprint, Flask, render_template, request, url_for
controller = Blueprint('tidy', __name__, url_prefix='/tidy')
# @controller.route('/<string:title>', methods=['GET'])
# def lookup(title):
# if title == 'Republic': # TODO 2
# return render_template('republic.ht... | [
"sqlconsult@hotmail.com"
] | sqlconsult@hotmail.com |
864e0d13bb575384b5cef4c8125abecb6c3dc9f4 | 96f3c029e79f3997b97b30912b45886790a155bc | /chapter-10/employee_class.py | 3b8ae81217016774122ef9fe2dcc0d654522d699 | [] | no_license | Techwrekfix/Starting-out-with-python | ba32dff77a3360d004fa82a6dc4b62b1648022af | 6adb490daf5085f08e08c9eb847c84cfce89330e | refs/heads/master | 2020-06-02T18:52:32.064755 | 2018-12-20T16:10:33 | 2018-12-20T16:10:33 | 191,272,861 | 1 | 0 | null | 2019-06-11T01:43:38 | 2019-06-11T01:43:38 | null | UTF-8 | Python | false | false | 1,074 | py | #This module is an Employee class
class Employee:
#Initializing the data attributes
def __init__(self,name,ID_number,department,job_title):
self.__name = name
self.__ID_number = ID_number
self.__department = department
self.__job_title = job_title
def set_name(self,... | [
"kwabena4140@gmail.com"
] | kwabena4140@gmail.com |
f464f5c4280a093bbe8deed632c851d2ba4a6c53 | 392870585863452cd9c5e5bcddc0866193b7e67b | /getapp/admin.py | 84b57793f16fb0a06daffccf26dd7738b446c375 | [] | no_license | Adelice/Get-It | 684c097ff6895829e6d4b2e1b69c7ea9f3454b0c | ddc4f9739814e5a3951f8361a5550251e9c0c9ff | refs/heads/master | 2020-05-17T02:02:24.266686 | 2019-05-02T15:14:51 | 2019-05-02T15:14:51 | 183,243,765 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 199 | py | from django.contrib import admin
from .models import Store,Product
# admin.site.register(Product, ProductAdmin)
admin.site.register(Store)
admin.site.register(Product)
# Register your models here.
| [
"nancytoniw@gmail.com"
] | nancytoniw@gmail.com |
9d3c56c8feb382a952c59f61e914adf8e7b237d3 | 4c976067eea83d1b1afb1b17b5308955c5b92256 | /colleges/migrations/0006_auto_20201126_2259.py | 573bc17246409a697cc8c5e45a3a1d01ade9622b | [] | no_license | rafiqnazir/ecopy4u | 556bda8c01c52cf101f7d776859228ff7769f5de | 4d9ed43bd977491e6adabb2b1afe657f12dbeb01 | refs/heads/main | 2023-03-08T10:53:42.716120 | 2021-02-23T10:22:25 | 2021-02-23T10:22:25 | 318,174,197 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 386 | py | # Generated by Django 3.1.3 on 2020-11-26 17:29
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('colleges', '0005_auto_20201126_2258'),
]
operations = [
migrations.AlterUniqueTogether(
name='colleges',
unique_together={('... | [
"nademnazir79@gmail.com"
] | nademnazir79@gmail.com |
ccd2b55fa52d1a6ae8d1e675060a901dac050266 | 5a7987a0741db037785bc297c699f2904dc4d556 | /tests/run_setup.py | 9ed530d55f390ee334e8828a892ff2361629749f | [] | no_license | cjoyneruk/pyfpl | 581778fbd1eeb3ea2cd28689d679dcd92e0e0071 | e9c2e042b8ecf6bf37e3aeaddaccf98a493c7e59 | refs/heads/master | 2020-07-16T01:29:53.769187 | 2019-09-23T20:48:56 | 2019-09-23T20:48:56 | 205,691,839 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 32 | py | from pyfpl import setup
setup() | [
"c.joyner@qmul.ac.uk"
] | c.joyner@qmul.ac.uk |
1d940d2cf808a4a5ee8f504ad054bf07686480c0 | cfa474b083d308b0eff611163bce93919ec362c3 | /downvote_urbandictionary.py | 58ac4c7fc54db51fd067c111f2d90e688c1e5759 | [] | no_license | bubakazouba/urbandictionarydownvote | ad06715f7c451fa4af2d48e43d39d1229b1dc783 | a929b6ca6aac612e56b4d12eef57f81b074e40e4 | refs/heads/master | 2021-01-23T16:04:54.336101 | 2017-06-04T00:44:29 | 2017-06-04T00:44:29 | 93,281,672 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,497 | py | import requests, sys, threading, argparse, json
def read_list_from_file(fname):
with open(fname) as f:
content = f.readlines()
return [x.strip() for x in content]
def downvote_url_with_list(url, proxy_list, len_of_all_proxy_list, thread_number):
global proxies_failed, proxies_succeeded, now_down,... | [
"ahsahmoud@ucdavis.edu"
] | ahsahmoud@ucdavis.edu |
b83d7540a601a21c01a3242898b9d7a2394f6490 | 209a375fb65d38464fc67281643615a7a4f2012b | /abc159/c.py | f7e8cb5b361f8e772f1ab2bf2d5eebee81055fc9 | [] | no_license | satoshun-algorithm-example/atcoder | 707804c855768496676dc4711586d517945646d3 | 81e898f38d1e2db3200882dc34180c407a86de12 | refs/heads/master | 2021-06-21T23:18:32.532374 | 2020-11-23T09:05:19 | 2020-11-23T09:05:19 | 154,495,507 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 97 | py | # https://atcoder.jp/contests/abc159/tasks/abc159_c
L = int(input())
a = L / 3
print(a * a * a)
| [
"shun.sato1@gmail.com"
] | shun.sato1@gmail.com |
465197ced44448fbd1f5072861ff9b7c86cf9093 | 43e0cfda9c2ac5be1123f50723a79da1dd56195f | /python/paddle/nn/functional/pooling.py | 766a1ca3aaf64024c179f8a5d38a263e550f5c5a | [
"Apache-2.0"
] | permissive | jiangjiajun/Paddle | 837f5a36e868a3c21006f5f7bb824055edae671f | 9b35f03572867bbca056da93698f36035106c1f3 | refs/heads/develop | 2022-08-23T11:12:04.503753 | 2022-08-11T14:40:07 | 2022-08-11T14:40:07 | 426,936,577 | 0 | 0 | Apache-2.0 | 2022-02-17T03:43:19 | 2021-11-11T09:09:28 | Python | UTF-8 | Python | false | false | 84,464 | py | # Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by app... | [
"noreply@github.com"
] | jiangjiajun.noreply@github.com |
bf5915516e79b38b93c7a269ba95623d23fd8446 | ff6248be9573caec94bea0fa2b1e4b6bf0aa682b | /StudentProblem/10.21.11.40/4/1569574682.py | 2a8bdc9fdab5515c21c04740702065a86d270197 | [] | no_license | LennartElbe/codeEvo | 0e41b1a7705204e934ef71a5a28c047366c10f71 | e89b329bc9edd37d5d9986f07ca8a63d50686882 | refs/heads/master | 2020-12-21T17:28:25.150352 | 2020-03-26T10:22:35 | 2020-03-26T10:22:35 | 236,498,032 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,559 | py | import functools
import typing
import string
import random
import pytest
## Lösung Teile 1. und 2.
class Vigenere:
def __init__(self, key: str):
"""
Create object with a secret key.
"""
assert key
self.key = key
def encrypt(self, w: str) -> str:
"""
... | [
"lenni.elbe@gmail.com"
] | lenni.elbe@gmail.com |
4015633612642f4401bc86f7774e1ad5288cfac1 | a599b24b934e75336913e448e05042757316c47b | /1019.NextGreaterNodeInLinkedList.py | d8a48d3aedf89f07b7699f6b5ae3292306582712 | [] | no_license | yilunchen27/leetcode-google-python | 2e8f479c3ed63d77e6fb32d146adf51a294ceebc | e665b2a9db381bcd97e5fbaaaa566f11c3a8be32 | refs/heads/master | 2022-02-14T17:00:02.131783 | 2019-09-02T08:49:05 | 2019-09-02T08:49:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,368 | py | # Definition for singly-linked list.
# class ListNode:
# def __init__(self, x):
# self.val = x
# self.next = None
class Solution:
@staticmethod
def get_length(head: ListNode) -> int:
node = head
cnt = 0
while node is not None:
node = node.next
... | [
"huangruihaocst@126.com"
] | huangruihaocst@126.com |
734d5b3d90fd5a1bd6b690cd8ecd5522c9518feb | 4a3e6789ebbe88c95c76b15f2b1ddc77d68a8545 | /admin.py | 589b8a479b367527c49fd9c59e2c6de0d73470bc | [] | no_license | macrman/tickets | d48f916aa1e8f3e78a04dc8eb925ebf2bd7ffaed | d53be7788a9862e574b40b9c0768eea3aa229244 | refs/heads/master | 2016-09-02T01:02:00.200478 | 2012-05-10T21:35:11 | 2012-05-10T21:35:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 96 | py | from tickets.models import ticket
from django.contrib import admin
admin.site.register(ticket)
| [
"binarymac@gmail.com"
] | binarymac@gmail.com |
a87256f1ecd75f07e0e2d5006696dde6af08488c | 8c0f9efbc962d04a453422119a896e31fcdc009e | /07.string/ljustTest.py | d31d369d1f185f0d979d7d6901c34fee85817423 | [] | no_license | unclebae/Python3-tutorial | 4adf927c5a9373c83689ba9cf9a307d06d950a62 | 4bfe31013533b50804110aa90e3e25635b3b7cf9 | refs/heads/master | 2021-01-18T18:33:16.757433 | 2016-07-23T18:09:57 | 2016-07-23T18:09:57 | 64,009,014 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 69 | py | str = "this is string example....wow!!!"
print (str.ljust(50, '*'))
| [
"kido@coupang.com"
] | kido@coupang.com |
6bfc80d810a67dbe8a8a6216a966d341b0e2ac28 | ccd8aec1c3b00a62946f55a3c4b6458fca295528 | /starterbot/bin/pip3 | f58ce69b13ee993556221ca1ad77fcaba3247e74 | [] | no_license | tpriyanshu90/motiBot | e53cffc01e0316e42561b64de81ce268490e49d0 | 37d2fca2fc91fde15630b93de089ae9e0485e1d4 | refs/heads/master | 2020-04-04T10:12:49.240135 | 2018-11-05T16:34:03 | 2018-11-05T16:34:03 | 155,846,566 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 265 | #!/home/tpriyanshu/Desktop/pythonBot/motiBot/starterbot/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"tpriyanshu90@gmail.com"
] | tpriyanshu90@gmail.com | |
1fbf6a0ceed592bce3279768df724fa06ec3a90a | e00df1e9b3b501a548518034c8adf5a32aab4607 | /quiz/models.py | 1a8aa559bda3b9c5aa74c0083fdbbc5132675d2e | [] | no_license | imajaydwivedi/SQLDBAToolsInventory | f83e6f3e3d0c6a02c85ede22251b6efec64084f9 | 3df150732d283b082cc81888631003cd8917dea9 | refs/heads/master | 2020-04-10T04:03:28.261925 | 2019-01-07T07:26:40 | 2019-01-07T07:26:40 | 160,786,851 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,148 | py | from django.db import models
# Create your models here.
class Questiontechnology(models.Model):
technologyid = models.AutoField(primary_key=True)
CATEGORY_CHOICES = (
('MSSQL', 'SQL Server'),
('MySQL', 'MySQL'),
('Oracle', 'Oracle'),
)
category = models.CharField(
max_l... | [
"ajay.dwivedi2007@gmail.com"
] | ajay.dwivedi2007@gmail.com |
f3f49a15573cd234eda38635a963deb65a4e5fa6 | f57b8ea2a5b955a587488069b6b0f8bd180ff32d | /docs/source/conf.py | 3650576aefbf7fcb81bdbfde0cc13d15760efab4 | [
"NCSA",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | UIUCLibrary/HT_checksum_update | 002416e9b435c8e4c242e2f2a425dca773553137 | facee4de7f982746913f2b1b68a91395b5107e1a | refs/heads/master | 2021-07-13T23:44:04.466191 | 2021-03-30T18:39:44 | 2021-03-30T18:39:44 | 97,273,018 | 0 | 0 | NOASSERTION | 2021-03-30T18:34:58 | 2017-07-14T21:11:15 | Python | UTF-8 | Python | false | false | 6,048 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# hathiChecksumUpdate documentation build configuration file, created by
# sphinx-quickstart on Mon Jul 17 14:52:11 2017.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present ... | [
"hborcher@illinois.edu"
] | hborcher@illinois.edu |
e244ccda4d34da7aec1bbbfa2d7f4040f2834f76 | fd44e1d649cdd97dddfce18004bbe68042d13700 | /resources/lib/basictypes/wx/font.py | f7ec03aa1e272cb0fd46792b48853f0b95a82a37 | [
"MIT"
] | permissive | Flaykz/Transmission-KODI | 97e0652dff95eca15c6479a24d56cb52aae73a52 | 3b32d7a8d2685be9b958f4544c3b42b2baf4c705 | refs/heads/master | 2020-12-03T09:12:40.944762 | 2019-05-24T05:36:08 | 2019-05-24T05:36:08 | 49,025,327 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 426 | py | """Data-type definition for wxPython font class"""
from wxPython.wx import *
from basictypes import datatypedefinition, registry
##from basictypes.wx import wxcopyreg
__all__ = ( "wxFont_DT", )
class wxFont_DT( datatypedefinition.BaseType_DT ):
"""Data-type definition for wxPython font class"""
dataType = "wx.font"... | [
"david.brouste.perso@gmail.com"
] | david.brouste.perso@gmail.com |
81cacfcc4c95a515be546b246ef49adaab293c91 | 94c8f0b09ced7ae86fba0d09faf4310e508c18e5 | /scaler/dp2/dp1/ath_fibonacci_number.py | d681bacdc08f7d1b0bd4b977577937b4c9e089ee | [] | no_license | navkant/ds_algo_practice | 6e7dd427df6ac403ac23fa68b079b162b839447a | a2b762d08b151f6dbbc12d76dd930f6cd7b9017d | refs/heads/master | 2023-06-24T02:56:25.886991 | 2021-06-13T03:42:24 | 2021-06-13T03:42:24 | 376,431,047 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 936 | py | class Solution:
def __init__(self):
self.ath_term = 0
def ath_fibonacci_recursive(self, first, second, A, postion):
if A <= 1:
self.ath_term = A
return
if postion == A:
self.ath_term = second
return
self.ath_fibonacci_recursive(s... | [
"navkanttyagi@MacBook-Air.local"
] | navkanttyagi@MacBook-Air.local |
8258ae3f393ff2d10aff6c0cca258bf813913879 | 36931f23be2afadaee6a047bb3e86309f64b5e99 | /Losses/losses.py | 0339a164303ef648d1d72b45537bd41bc35628ed | [] | no_license | cvlab-stonybrook/S2N_Release | 13cf4df6b2c8ef65bdbf6163266eb5c55080ebe9 | bc32142d059add14d550c8980adf3672485d4a98 | refs/heads/master | 2022-06-26T23:46:40.490222 | 2018-12-25T13:41:02 | 2018-12-25T13:41:02 | 235,153,446 | 0 | 0 | null | 2022-06-22T00:52:01 | 2020-01-20T17:06:09 | Python | UTF-8 | Python | false | false | 4,652 | py | import torch
import torch.nn.functional as F
from torch.autograd import Variable
def EMD_L2(predictions, targets, needSoftMax=True):
#TODO: checked run but not checked correctness!
if needSoftMax:
predictions = F.softmax(predictions, dim=1)
predictions = torch.cumsum(predictions, dim=1)
targe... | [
"zijwei@cs.stonybrook.edu"
] | zijwei@cs.stonybrook.edu |
cfcede48184a481953cd48b7e63e96ad844a9104 | 29dfcadf661148c35bc3a8d292e2a61d5c8a74d0 | /application/views/runs.py | dd7dfed3af86c360ee639ac81e1483ef2b54e2d8 | [
"MIT"
] | permissive | AstroChem/MAPServer | 4fa416e4f0c66e9d1d1471282eec2415cf69b272 | 3ea8209d5d106c8799216ae2405ba1c396477eec | refs/heads/master | 2022-08-09T01:11:38.323804 | 2020-05-16T20:43:55 | 2020-05-16T20:43:55 | 249,030,766 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,882 | py | from flask import (
render_template,
session,
redirect,
url_for,
current_app,
g,
send_from_directory,
)
import os
import pandas as pd
import numpy as np
from bokeh.plotting import figure
from bokeh.models import ColumnDataSource
from bokeh.embed import components
from bokeh.palettes import... | [
"iancze@gmail.com"
] | iancze@gmail.com |
e73ce0141e056aeb4865b7b2853949b6a3bd271b | 0a919ab783d2fa8a052e6fb53ea797b10e3cb12d | /Bangalore/19th Jan 2013/FreeFloat_SetProcessDEPPloicy.py | 5b16cb230799989035a0917c42a2088f3bdc5194 | [] | no_license | SirEOF/null | 7e3969ffd605e1c7be88faff5ea9ad9819e7b1fe | e19e778b6aad8a156d9fe0fc92f9f9e44838c6d2 | refs/heads/master | 2021-05-27T12:33:55.648871 | 2014-08-12T08:00:25 | 2014-08-12T08:00:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,119 | py | #!/usr/bin/python
import socket, sys, os, time
from struct import pack
print "\n+---------------------------------------+"
print "+ Freefloat FTP Server Buffer Overflow +"
print "+ HackSys Team - Panthera +"
print "+ Ashfaq Ansari +"
print "+ hacksysteam@hotmail.com ... | [
"ashfaq_ansari1989@hotmail.com"
] | ashfaq_ansari1989@hotmail.com |
3950de9397b0d3f4b694e184e983d755ad198aa7 | 692c98fe9cda839b8c965e89de15b22747e36494 | /homework/crawler .py | ae808fbc25bc3ae94ff499dd7e9efc1505a9ac93 | [] | no_license | linafeng/Py3 | a609b6a12ffc461257d0292cb8f1178bd2746280 | fa9d9f2c65a22080bc9725c22ab57211a816efc3 | refs/heads/master | 2020-06-24T15:01:37.812013 | 2020-05-11T08:06:05 | 2020-05-11T08:06:05 | 198,994,427 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,880 | py | # -*- coding:utf-8 -*-
# https://www.zdic.net/zd/zb/cc1/
# pip3 install requests
# http请求的库
import requests
# 正则匹配的库
import re
# 抓取到网页的源代码 post
html_result = requests.get("https://www.zdic.net/zd/zb/cc1/")
print(html_result.text)
# 书写正则表达式来获取网页源代码的所有汉字
reg = "href='/hans/(.*)' "
print(re.findall(reg, html_result.tex... | [
"740792225@qq.com"
] | 740792225@qq.com |
1e7d3b7390fc94b7c2e696a74b0633d2085130fd | 62063bd79b948aeae85c50ae2e64b2d6d77a2461 | /catkin_ws/build/Bieke/src/imu/timesync_ros/catkin_generated/pkg.installspace.context.pc.py | 586a11b3064a02c71c08820f02fa51a849177835 | [] | no_license | PanHongYang/Vehicle-sensing-system | 978dc550baa1a11838045700efc6dbd0b70f7929 | 2720fef36f5c7ad8fbc6480dffdfe7e9cef6e416 | refs/heads/main | 2023-06-04T07:00:50.785549 | 2021-06-19T07:43:38 | 2021-06-19T07:43:38 | 378,354,624 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 463 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "${prefix}/include".split(';') if "${prefix}/include" != "" else []
PROJECT_CATKIN_DEPENDS = "dynamic_reconfigure;roscpp;message_runtime".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "-ltimesync... | [
"36400535+PanHongYang@users.noreply.github.com"
] | 36400535+PanHongYang@users.noreply.github.com |
f9b0e6b57b30524e0a3d3f85b1cdc4802288266e | ff29c013c24068e7409340ba1cd5b88cf3e82436 | /kobocat/onadata/libs/tasks.py | 7edd3faeef8e7d4a7fe8059abdb5aec4c47d82c6 | [
"BSD-2-Clause"
] | permissive | Jubair70/Acid-Survivors-MIS | 01c64a0589e5ed275d9f1a9cf5973303ea4b937e | 89f19607d18a6d4c88717527e2e8d557aaec2fa9 | refs/heads/master | 2021-05-26T11:26:34.503102 | 2019-08-26T10:38:59 | 2019-08-26T10:38:59 | 254,112,228 | 1 | 0 | null | 2020-04-08T14:53:52 | 2020-04-08T14:33:00 | HTML | UTF-8 | Python | false | false | 10,820 | py | __author__ = "Md Shiam Shabbir"
import os
import json
from django.db import connection
from django.shortcuts import get_object_or_404
from django.contrib.auth.models import User
from onadata.apps.logger.models import Instance, XForm
from celery import task
from celery.decorators import task
#from onadata.apps.main.da... | [
"jubair@mpower-social.com"
] | jubair@mpower-social.com |
40325fc0db4ad916152b5e05cc2ddac1ad359549 | e46060998dbdf09a152f54a311708d357885ec28 | /treehouse/Using Databases in Python - Modeling/diary.py | ecb4d71cfbb0c5c19508c267e4998fd68c92adb5 | [] | no_license | GabrielaLBazan/nfad2 | cc03d4b528388a33d7047330c943aefb45e81499 | b89fe8e606c4ca4f0cc2f7cb5ea6934c8eb078e0 | refs/heads/master | 2020-05-29T22:34:15.293023 | 2017-08-22T23:30:26 | 2017-08-22T23:30:26 | 82,612,707 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,448 | py | #!/usr/bin/env python3
from collections import OrderedDict
import datetime
import os
import sys
from peewee import *
db = SqliteDatabase('diary.db')
class Entry(Model):
content = TextField()
timestamp = DateTimeField(default=datetime.datetime.now)
class Meta:
database = db
... | [
"github@gabrielabazan.com"
] | github@gabrielabazan.com |
b9f0f7778bb25c82cc5db46b9da0d0480c6ae359 | 5b4fc401c25e83f62eafd88b76b5c7f19f94f6c8 | /experiments/historic_scripts/ppo_partial_autoregressive.py | 96f893613c8e3222750b44165b7909b2ac867032 | [] | no_license | sigvol/gym-microrts | 5efc311ad2c0f31d997fcb8ae0f98e71d72fb89d | 63ea1278b2b11e8369288ccbc47398d3310a4fec | refs/heads/master | 2023-05-15T10:24:44.403280 | 2021-06-15T20:58:34 | 2021-06-15T20:58:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,594 | py | import torch
import torch.nn as nn
import torch.optim as optim
import torch.nn.functional as F
from torch.distributions.categorical import Categorical
from torch.utils.tensorboard import SummaryWriter
import argparse
from distutils.util import strtobool
import numpy as np
import gym
import gym_microrts
from gym.wrappe... | [
"costa.huang@outlook.com"
] | costa.huang@outlook.com |
1af797637785baee1453b708d56a656cf2191fbe | 49a66a4032a74360b9fc40ea7d86065528ff73f1 | /crawler.py | b08ae3e65a9f3dc3b65a4f19187254d0466f6c41 | [] | no_license | Jivvon/cnu-computer-noti | 73713a89026f92c678d85258d77760811ae61c54 | 2918a47d3d3edf900e510526a299dbb9ec510932 | refs/heads/master | 2021-03-07T22:58:13.078129 | 2020-11-18T14:31:28 | 2020-11-18T14:31:28 | 246,302,660 | 1 | 1 | null | 2020-07-28T08:02:59 | 2020-03-10T13:03:50 | Python | UTF-8 | Python | false | false | 1,683 | py | from bs4 import BeautifulSoup
import requests
class Crawler:
def __init__(self, url_data):
self.title, self.url = url_data['title'], url_data['url']
def _prettier_title(self, str):
content = str[:-6].strip()
if content[-1] == '-':
content = content[:-1].strip()
# ... | [
"poiu8944@gmail.com"
] | poiu8944@gmail.com |
fd5dc6448f59bcfc54d560de5f9992591b9359e1 | e43b75b8420aee464960f6ddfb3412abba5b4c43 | /pkg/heap.py | 5260130c181e96e9766f3a6848c80b3a5036a84a | [] | no_license | omar00070/Search-Algorithm-Vesualiser | 44dab0985e393d3ba175dc1bcc04b79ed049d528 | bac365484961a29b810b1f128a91725e7030b435 | refs/heads/master | 2021-05-23T10:54:59.154615 | 2020-04-16T12:44:04 | 2020-04-16T12:44:04 | 253,254,791 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,082 | py |
class MinHeap(object):
def __init__(self, items):
self.items = items
def get_left_child_index(self, parent_index):
return 2 * parent_index + 1
def get_right_child_index(self, parent_index):
return 2 * parent_index + 2
def get_parent_index(self, child_index):
return (child_index - 1)//2
def has_left_... | [
"omar_omarsalama@yahoo.com"
] | omar_omarsalama@yahoo.com |
7f25f98955abe392b7dda9c8795fbed133a1490e | d01af28d2edf3e61dbf24c73d752aebd89d3fa5c | /home/management/commands/load_initial_data.py | 9f2a9023f9c62df73c459d302a05200693568061 | [] | no_license | crowdbotics-apps/django-new-backend-6-1127 | 9912710446cac1c24053caf9b291d094a438f7a3 | 7b884aa09aa326ebbeb12da20819093f966210d2 | refs/heads/master | 2022-03-15T05:32:29.638397 | 2019-11-25T19:34:16 | 2019-11-25T19:34:16 | 224,025,708 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 742 | py | from django.core.management import BaseCommand
from home.models import CustomText, HomePage
def load_initial_data():
homepage_body = """
<h1 class="display-4 text-center">DJANGO-NEW-BACKEND-6</h1>
<p class="lead">
This is the sample application created and deployed from the crowdbotic... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
f435292353b2c4e8fbb83a238cc608394eea5ab2 | 4f6b50edc726c3ae8e0fea9bbd2bd960d9b12071 | /buycoffee.py | 91b7cfc1cb7287542ff674f7891db9d98fa3a59a | [] | no_license | rumeysayilmaz/misc-python | 1fa51d7b4007ad991cbb820a431b11ca12b4f409 | 47875031b3ebd65072e69622c010c33fa7949c23 | refs/heads/master | 2023-08-15T06:21:47.905659 | 2021-10-05T11:06:51 | 2021-10-05T11:06:51 | 225,593,941 | 0 | 0 | null | 2021-04-26T12:47:49 | 2019-12-03T10:35:14 | null | UTF-8 | Python | false | false | 4,810 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'buycoffee.ui'
#
# Created by: PyQt5 UI code generator 5.15.4
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
from PyQt5 import QtCore, Qt... | [
"era.ylmaz@gmail.com"
] | era.ylmaz@gmail.com |
6caf293016e15a9355c2daf611612291c1fe1e16 | e519a3134e5242eff29a95a05b02f8ae0bfde232 | /services/control-tower/vendor/riffyn-sdk/swagger_client/models/update_activity_body.py | 6c2506664c5cc08aa10e67f70e81da898030ac23 | [] | no_license | zoltuz/lab-automation-playground | ba7bc08f5d4687a6daa64de04c6d9b36ee71bd3e | 7a21f59b30af6922470ee2b20651918605914cfe | refs/heads/master | 2023-01-28T10:21:51.427650 | 2020-12-04T14:13:13 | 2020-12-05T03:27:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,857 | py | # coding: utf-8
"""
Riffyn REST API
### Vocabulary Before you begin, please familiarize yourself with our [Glossary of Terms](https://help.riffyn.com/hc/en-us/articles/360045503694). ### Getting Started If you'd like to play around with the API, there are several free GUI tools that will allow you to send req... | [
"jaceys.tan@gmail.com"
] | jaceys.tan@gmail.com |
c2725c51490a01461ad12e6f63e3cd859f2a3494 | bb085bb384e847329d6816027aca703ce2a08c11 | /PythonExercicio/ex097.py | 8cce5b2cfb554a76997fe86ef3e8c7e38b23d3f9 | [
"MIT"
] | permissive | VazMF/cev-python | cd3174e5ea1b3574d0dff4f5ca367d2f695af789 | 9b33f0bc3de5dd9380fdd4eb3d901b04e536d45a | refs/heads/master | 2023-02-27T23:25:15.049300 | 2021-02-02T11:47:33 | 2021-02-02T11:47:33 | 262,906,059 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 691 | py | #Faça um programa que tenha uma função chamada escreva(), que receba um texto qualquer como parâmetro e mostre uma msg com tamanho adaptavel
#DEFININDO A FUNÇÃO
def escreva(txt): #função com parametro para texto
tam = len(txt) + 4 #variavel tamanho recebe o tamanho do txt + 4
print('~' * tam) #print um ~ para c... | [
"vazfernandam@gmail.com"
] | vazfernandam@gmail.com |
3974e7f5c8ad03000cf7d466e97d7638c8111a37 | 5063faf298a36466cdb90f1cbd0a4f4e855b5d3b | /test/test_task_path_reference.py | e8b6750bf47e6f452dd8b246ef0d5f54043ce65d | [] | no_license | pollination/python-sdk | d4eb4efbcbe3a76cc170cf8e71ad5bc6ca6c3011 | e4a94b236534658b150961795256224fe8dd93c2 | refs/heads/master | 2023-08-04T15:19:29.126613 | 2022-03-06T10:43:21 | 2022-03-06T10:51:08 | 224,588,062 | 3 | 1 | null | 2023-09-05T20:52:35 | 2019-11-28T06:48:40 | Python | UTF-8 | Python | false | false | 1,648 | py | # coding: utf-8
"""
pollination-server
Pollination Server OpenAPI Definition # noqa: E501
The version of the OpenAPI document: 0.27.0
Contact: info@pollination.cloud
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
import unittest
import datetime
import... | [
"antoinedao1@gmail.com"
] | antoinedao1@gmail.com |
46ec4a8216c97b11238b5fbe9a213803b9958c31 | 9997b17e63f7f41dd9c71122c5dcc39a25d1634b | /server/server.py | 2064999b8475e6707ed1475ff052015e49e49552 | [] | no_license | Darge/Messenger | 0cc4fdb753d1e3780418326d043b45e858ba635b | 84915eda13c245bb73b4c180aff62022d9f1d18a | refs/heads/master | 2021-01-25T12:01:53.559902 | 2015-09-04T05:37:29 | 2015-09-04T05:37:29 | 32,997,574 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,724 | py | '''
Tomasz Flendrich
nr indeksu 264596
'''
import sqlite3
import thread
from datetime import datetime
import Pyro4
import sys
import os
'''
This module is the server of the Messenger. It handles contacting with the clients.
'''
class Server(object):
def log_in(self, nick, password):
'''When a client... | [
"Darge@users.noreply.github.com"
] | Darge@users.noreply.github.com |
9ad135ccde28a412a93e355dd5a5c0dd4cff0f65 | 4314fabe3a4ad80af97066df65340eadc93450c8 | /The_Perfect_Guess_Game.py | 795538d562d4128fe00b978ed97da8bc5cbd410e | [] | no_license | vishal-project/Python-Projects | 7bffcd8513c43340c75deb4df415ff4d9cebd8a7 | 0a380e1a344d56cdbe0c05b4a701afce2f8946d6 | refs/heads/master | 2023-04-24T02:36:37.147505 | 2021-03-28T18:29:55 | 2021-03-28T18:29:55 | 348,380,379 | 0 | 0 | null | 2021-05-09T14:11:52 | 2021-03-16T14:33:52 | Python | UTF-8 | Python | false | false | 874 | py | # *********************PROJECT-4 THE PERFECT GUESS************************
# To guess a no. from 1 to 100.
import random
randomNumber = random.randint(1, 100)
print(randomNumber)
userGuess = 0
guessNo = 0
while userGuess != randomNumber:
userGuess = int(input("Enter your Guess from 1 to 100.\n"))
guessNo += ... | [
"vishal.maurya18995@gmail.com"
] | vishal.maurya18995@gmail.com |
947e91a3cfd114e1cb0191e08cdb24dcbe9b8292 | 00f994bb874724a8a22ec69e7d65d26f87c9af24 | /Snippets/settings.py | 9e8bfe5394b6c20cdb3cc48cf0e547d15946f3b5 | [] | no_license | Lubl-42/baruibino | 5df5219db4795ef9bc9eecd86996d4473bdf8262 | 3e08e2352301c6f944b1f5b9bbb4161c9c0b8926 | refs/heads/main | 2023-05-05T02:11:29.207839 | 2021-06-03T11:38:36 | 2021-06-03T11:38:36 | 370,471,602 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,208 | py | """
Django settings for Snippets project.
Generated by 'django-admin startproject' using Django 3.1.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
import os
from... | [
"noreply@github.com"
] | Lubl-42.noreply@github.com |
bde48762b39c43c11c6ea2a63fe088105161ec35 | 15160952eaf4fd203b91850cc1def80b89fb5bea | /requester.py | b23e95d1be13eede7a4ea0333e361178ff128ef4 | [] | no_license | gustingonzalez/arg-parliamentary-election-analyzer | 3cb9bffcdb902dac40c18ba0bfbb4b1c8f0d4555 | d7352922fc09cac447789b0a10ac44c0fbf2ae01 | refs/heads/master | 2021-08-14T07:55:28.949870 | 2017-11-15T01:37:02 | 2017-11-15T01:37:02 | 110,635,901 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,373 | py | # !/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
- Nombre: requester.py
- Descripción: obtiene el conjunto de documentos html, según los parámetros de
la sección "Connection", para luego almacenarlos en el directorio (WebCache)
especificado en el archivo de configuración.
- Autor: Agustín González.
- Modificado: 05/... | [
"agustin.ang.92@gmail.com"
] | agustin.ang.92@gmail.com |
1b9bc37ea8783d6db001d18bba0bbd9805adc243 | 263c79fd1d8541f0cf0b5dd9ed1c5e8acd463556 | /Quantum-Control-Applications/Superconducting/Single-Flux-Tunable-Transmon/17_cryoscope_amplitude_calibration.py | be89a108342c5d47a45e3284cfd32425563c5d81 | [
"BSD-3-Clause"
] | permissive | qua-platform/qua-libs | d929681da67fa4e88e96d0f96eef19034146a039 | 245bdeb625e2e64005962a02dcb58d3441e6afc6 | refs/heads/main | 2023-09-01T06:04:57.665500 | 2023-08-29T15:01:47 | 2023-08-29T15:01:47 | 293,225,951 | 45 | 13 | BSD-3-Clause | 2023-09-05T08:09:32 | 2020-09-06T07:29:42 | Python | UTF-8 | Python | false | false | 10,604 | py | """
CRYOSCOPE
The goal of this protocol is to measure the step response of the flux line and design proper FIR and IIR filters
(implemented on the OPX) to pre-distort the flux pulses and improve the two-qubit gates fidelity.
Since the flux line ends on the qubit chip, it is not possible to measure the flux puls... | [
"noreply@github.com"
] | qua-platform.noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.