blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
75419ffc09accdf0f019f59d0aa96a351eae269c | 4e808ecca7a94a70a63c59b4c91a15cd61bada6e | /natuurpunt_imp_members/__openerp__.py | 221b109ac4860426ef44dae4d8e49d5516107f55 | [] | no_license | smart-solution/natuurpunt-crm | 79b98cfc8c69027dc82afa3779b65616141e6779 | 0bd247e78c01e79ec54b90c0d0bcaca38742f04d | refs/heads/master | 2021-05-22T05:43:42.913854 | 2020-12-02T08:06:05 | 2020-12-02T08:06:05 | 39,186,027 | 0 | 0 | null | 2020-12-02T08:06:06 | 2015-07-16T08:36:27 | Python | UTF-8 | Python | false | false | 665 | py | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
##############################################################################
#
#
##############################################################################
{
"name" : "natuurpunt_imp_members",
"version" : "1.0",
"author" : "SmartSolution",
... | [
"fabian.semal@smartsolution.be"
] | fabian.semal@smartsolution.be |
8e95b1b3e5cc552591714c4ce302853bf108fcf8 | 68b9c85d75c1750f86d4b59f0b66f352c2cc6cc6 | /app/tests/assignments/test_models.py | dcd06df63bda737b74da8e202cb9344626836162 | [] | no_license | vladhoi/labs-management | ca83f62e570297a3ba447c79da2d223cd27240bb | 755975666cdb0de43a6198040297157c86c16137 | refs/heads/main | 2023-03-05T01:07:37.230764 | 2021-02-15T10:10:05 | 2021-02-15T10:10:05 | 301,190,579 | 1 | 0 | null | 2021-01-08T20:55:35 | 2020-10-04T17:49:20 | Python | UTF-8 | Python | false | false | 816 | py | import pytest
from assignments.models import Assignment
from django.db.utils import IntegrityError
@pytest.mark.django_db
def test_create_assignment(create_valid_user):
"""
Ensure we can create a new assignment.
"""
assignment = Assignment.objects.create(
title="Test", description="Test test t... | [
"hoivladyslav@yahoo.com"
] | hoivladyslav@yahoo.com |
c0953bc8d705f98dee0f549ec128f45edebd4d06 | ac23a149c7ea1563b0a2cb2c5497968969e6e67a | /examples/example.py | 4cc2613998e63ad90a9e097dde664724996fb54a | [
"MIT"
] | permissive | sschrijver/cryptory | aa3872d7937bdecf00f8a9ed923b31c81c790b58 | b69eb8511f4745fd35b906c860974d3d1a2a1202 | refs/heads/master | 2022-07-27T01:05:04.177745 | 2020-05-21T11:28:48 | 2020-05-21T11:28:48 | 265,830,582 | 0 | 0 | MIT | 2020-05-21T11:25:16 | 2020-05-21T11:25:15 | null | UTF-8 | Python | false | false | 2,841 | py | # load package
from cryptory import Cryptory
# initialise object
# pull data from start of 2017 to present day
my_cryptory = Cryptory(from_date = "2017-01-01")
######## Basic Usage
# get historical bitcoin prices from coinmarketcap
my_cryptory.extract_coinmarketcap("bitcoin")
# get daily subscriber num... | [
"noreply@github.com"
] | noreply@github.com |
980267217fa1f364d062ee5f7667d2a196c09849 | 33bdefcb000eafbb0bbd40858d0521e726832051 | /dinproj/restagger/models.py | c057b56ff364494421ae75b7aaa3594c784bc596 | [] | no_license | bkdinoop/learnDepot | d5b37c0a914c8ca8290451f6e5659892b75c18db | 5b0c2db48de74f4838f29f2f5af60cf6685bd7a4 | refs/heads/master | 2021-06-24T12:33:44.470044 | 2020-12-24T14:38:50 | 2020-12-24T14:38:50 | 8,137,247 | 0 | 0 | null | 2020-12-24T14:38:51 | 2013-02-11T11:52:56 | Python | UTF-8 | Python | false | false | 306 | py | from django.db import models
# User model creation.
class User(models.Model):
name = models.CharField(max_length=50)
company = models.CharField(max_length=50)
designation = models.CharField(max_length=50)
def __str__(self):
return "%s, %s, %s " % (self.name, self.company, self.designation)
| [
"bkdinoop@gmail.com"
] | bkdinoop@gmail.com |
91fd50ac90996739cb1d8e4e7060a3a0c1b5c896 | 86e8dcfde36108b5be006de5ae08ece5912e085e | /network/getIP.py | c6a2fde3c5c26e26c7984500ec04841e4bc965c2 | [] | no_license | chulman/python | 5069ad5dc6b4d1bf41dd51a1f374decd075cd9e9 | c7638fd5095de16a5cde24143d167dbead08208e | refs/heads/master | 2020-04-25T16:50:08.136818 | 2019-03-24T06:14:50 | 2019-03-24T06:14:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 632 | py | import socket
def print_mynetwork_info():
host = socket.gethostname()
ip_addr = socket.gethostbyname(host)
print('HOST:' + host)
print("ip Address:" + ip_addr)
def print_remoteNetwork_info():
remote_host = 'www.naver.com'
remote_ip = socket.gethostbyname(remote_host)
try:
print... | [
"chlcjfals0122@gmail.com"
] | chlcjfals0122@gmail.com |
b82d28a9bb1202704a831c4a7933897c6011faed | fb97539728891fa10c6546f2c6c1b6b9beafa62f | /worker.py | 59835182ca21935e1f82a650fcd2a1870690fd1f | [
"MIT"
] | permissive | sile16/swarm | f905da838a0532202be3ee6c7dfa88ba1ecbc431 | 4c7f7b33b189d520ced5f25164909dff74bd8785 | refs/heads/master | 2016-08-09T07:14:02.304963 | 2016-04-07T17:04:08 | 2016-04-07T17:04:08 | 55,651,273 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,510 | py | import common
import zmq
import socket
import argparse
import json
import datetime
class JobWorker():
def __init__(self,args):
worker_ip = common.get_client_ip(args.server)
self.context = zmq.Context()
#setup message queue for work messages, bind to random port to allow for multiple wor... | [
"roberm3@usxxroberm3m3.corp.emc.com"
] | roberm3@usxxroberm3m3.corp.emc.com |
963e8e5907d09eebfaf7037246d1159961f065d5 | 4fd9fee808cd29fab5f495b41c7713840139ba90 | /preparar_data.py | 1c7b2298ba96fe3811a28c180d64355033fe2116 | [] | no_license | 0xNymerio/detect_botnet_traffic | 8df92091f782ce96063023d3e9eb1c34427035e2 | 2e4506577631f5457d54c6ca2d49aa02f4a97d70 | refs/heads/main | 2023-02-03T04:13:27.069343 | 2020-12-23T18:44:21 | 2020-12-23T18:44:21 | 323,816,757 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,799 | py | import pandas as pd
import numpy as np
# Dataset - https://www.stratosphereips.org/datasets-ctu13
#Carregando os datasets --- usar o delim_whitespace=True para os pcaps convertidos
df_s6 = pd.read_csv("./data/pcaps_ataque/nmap_sV.flow",delim_whitespace=True,low_memory=False)
df_s6 = df_s6.fillna(0)
#df_s6 = pd.read_... | [
"tulio.gomes01@fatec.sp.gov.br"
] | tulio.gomes01@fatec.sp.gov.br |
83c15c91e823cb01243fc1d331f0af7db291c0f8 | 262b91ee24fd9ff49aa0f74aa9f3867cb13b63e8 | /UVA/2020-2021/Practice 3/crazedboar.py | 4d902bdac4f651383058d532d9981a6d5b2d5593 | [] | no_license | Senpat/Competitive-Programming | ec169b1ed9ee85186768b72479b38391df9234b3 | d13731811eb310fb3d839e9a8e8200975d926321 | refs/heads/master | 2023-06-23T01:25:35.209727 | 2023-06-15T02:55:48 | 2023-06-15T02:55:48 | 146,513,522 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,006 | py | from decimal import *
n_trees = int(input())
trees = []
for i in range(n_trees):
trees.append([Decimal(a) for a in input().split(' ')])
boar_radius, boar_dist = [Decimal(a) for a in input().split(' ')]
intervals = []
PI = math.pi
# treat bull as point
# add bull radius to trees
def circle_intersections(
c... | [
"pgz11902@gmail.com"
] | pgz11902@gmail.com |
62540dacf49d9e7a0fb31b7bb00b4dcf170529e0 | a38180435ac5786185c0aa48891c0aed0ab9d72b | /S4/S4 Library/simulation/adaptive_clock_speed.py | 482b71de05bca52f5016f06ad1ea611dacb76b72 | [
"CC-BY-4.0"
] | permissive | NeonOcean/Environment | e190b6b09dd5dbecba0a38c497c01f84c6f9dc7d | ca658cf66e8fd6866c22a4a0136d415705b36d26 | refs/heads/master | 2022-12-03T13:17:00.100440 | 2021-01-09T23:26:55 | 2021-01-09T23:26:55 | 178,096,522 | 1 | 1 | CC-BY-4.0 | 2022-11-22T20:24:59 | 2019-03-28T00:38:17 | Python | UTF-8 | Python | false | false | 6,643 | py | from sims4.tuning.tunable import TunableTuple, Tunable, TunableEnumEntry, OptionalTunable
import clock
import clock_telemetry_helper
import services
import sims4.log
logger = sims4.log.Logger('AdaptiveClockSpeed', default_owner='trevor')
with sims4.reload.protected(globals()):
first_tick_above_threshold = None
... | [
"40919586+NeonOcean@users.noreply.github.com"
] | 40919586+NeonOcean@users.noreply.github.com |
9b511b109badfe42c94de954f51dacc59cae4098 | 73e407516c4241ddffd568b31d16e1e66de811ee | /apps/users/migrations/0002_auto_20180130_2131.py | 2ab46f7428a5a0e9584ba090e16c657746265399 | [] | no_license | lannyMa/mxonline | 0eed4a974bf2972c7a1ca71a90e50a6fd35f06a1 | 98b08fb14e51cd3b46b7139650141ee11ca65c0c | refs/heads/master | 2021-05-09T08:33:22.011712 | 2018-02-07T13:47:16 | 2018-02-07T13:47:16 | 119,395,825 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 711 | py | # Generated by Django 2.0 on 2018-01-30 21:31
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='emailverifyrecord',
name=... | [
"iher@foxmail.com"
] | iher@foxmail.com |
c3cb985f31bdc8125c74e56602410d093f515f33 | 8da9c672aeb0a006344a452a817163b9e46c2a1c | /code/check_order_events.py | 575df372212a7e5f66c1553d172a06440926f1dd | [] | no_license | tuandnvn/ttk | 2d200218645dc84df8aebb236381191da1177a8d | 72b57f34f194bbb3049a6f3c879580b8a5755c7f | refs/heads/master | 2021-04-07T07:25:04.780157 | 2018-03-15T00:39:14 | 2018-03-15T00:39:14 | 125,291,243 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,286 | py | from library.relation import get_standard
from library.classifier.classifier_ordering_loader import ClassifierRuleDictionary as crd
from docmodel.xml_parser import Parser
from docmodel.xml_parser import XmlDocElement, XmlDocument
from nltk.corpus import wordnet as wn
def check_event_pair_in_doc(file):
xmldoc = Par... | [
"tuandn@brandeis.edu"
] | tuandn@brandeis.edu |
adbebc0e38d0e887d90116b6ce7ef045724bd137 | 184daa07dc0ee3fbc1b0d056494bf65a6857af99 | /Day2_2.py | 35bfefbb71031184fe405fb34879d94d2a6369bf | [] | no_license | tomdave01/AdventOfCode2020 | 27130dd1a8181f5800ec22788473cb333e6c4428 | 42e194db4707d5625a67accf3c413cb07d000da7 | refs/heads/master | 2023-01-27T19:03:25.509901 | 2020-12-10T22:30:57 | 2020-12-10T22:30:57 | 317,665,714 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 551 | py | import re
def PasswordScreener(file):
second_counter = 0
with open(file, 'r') as file:
for line in file:
line = line.rstrip()
parameters = re.compile(r'\w+')
parameters = parameters.findall(line)
first = int(parameters[0]) - 1
second = int(par... | [
"tomdave01@gmail.com"
] | tomdave01@gmail.com |
d1cb31e3e17e1f1df6732515909cc08bde3cae71 | 624561e652e2879f34eb82c017e9ccaaa6d05eb2 | /kaggregate/decorators.py | 17deff00beebaa83508adff50758509ac06dd465 | [
"BSD-2-Clause"
] | permissive | kaleidos/django-kaggregate | 2a4b3fc61710f91e7494a24f5e0f5df0c3816844 | 99483657f1e0c9753a74190d23b96518de69dda7 | refs/heads/master | 2021-01-01T05:49:17.085576 | 2012-04-15T21:02:17 | 2012-04-15T21:02:17 | 3,824,614 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 413 | py | # -*- coding: utf-8 -*-
import functools
def as_map_reduce(key):
def _wrapper(method):
method._kaggregator_mode = 'map-reduce'
method._kaggregator_key = key
return method
return _wrapper
def as_django_aggregator(key):
def _wrapper(method):
method._kaggregator_mode = 'djang... | [
"niwi@niwi.be"
] | niwi@niwi.be |
bac29774ca143dd8f33456bc4189f0355a59ed8f | 51c39b7d82417d668df6203d1fd976a68ec22c22 | /solved/P361B.py | 8fdbb4bdc7efd7b89930e34bf91e93196f3659fd | [] | no_license | adityagupta1089/Codeforces-Solutions | b6dc50346532be2cd1a3da9a8f916d0037359f21 | 8c5d8e15069a534478cbcc482f8926574d6974c1 | refs/heads/master | 2021-08-08T16:50:48.254775 | 2021-07-25T11:42:18 | 2021-07-25T11:42:18 | 62,494,247 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 160 | py | n, k = map(int, input().split())
if k == n :
print(-1)
else:
print(' '.join(map(str, list(range(2, n - k + 1)) + [1] + list(range(n - k + 1, n + 1)))))
| [
"adityagupta1089@gmail.com"
] | adityagupta1089@gmail.com |
a2fefcffdc865b501ac06d4c5071ce1f8e6da082 | 0a916363a895b68c5e0903872573cf062e5cdb7f | /main.py | 70bdc63de0b022b2c7726ff627b873c090394dab | [] | no_license | guomingjin/face_detection_mediapipe | 11ac5a079f4494fc958e8cc2594fa1adf1a59cb1 | 2e8f90fae5e54012ac15ef6448abd458ac1867dc | refs/heads/master | 2022-12-30T23:16:56.185972 | 2020-10-21T15:22:39 | 2020-10-21T15:22:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,096 | py | # Import packages
import importlib
import os
import argparse
import cv2
import numpy as np
import time
from threading import Thread
from postprocess import _tensors_to_detections, _weighted_non_max_suppression
import time
pkg = importlib.util.find_spec('tflite_runtime')
if pkg:
from tflite_runtime.interpreter impo... | [
"ammar.nourallah.freelance@gmail.com"
] | ammar.nourallah.freelance@gmail.com |
2e6a4295cb536526c49bdfa7f37aa6c5d929331e | f0e40f956405d4f5535ec14202580b4b6a192d35 | /i3/py3status/wifi.py | 525c7589403d3e53dcb2401958ea71a2f02827cf | [] | no_license | devmarcstorm/dotfiles | aa63ac7b41fb4be3d5be61cf988a59e99fe8649d | 74fbecf6c6c11ee31e5145ddf9c2f1d8ab77b156 | refs/heads/master | 2020-09-13T08:43:30.540463 | 2019-10-02T18:11:08 | 2019-10-02T18:11:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,142 | py | # -*- coding: utf-8 -*-
"""
Display wifi information and onclick notifications with more info
@author rixx
"""
import fcntl
import socket
import struct
import subprocess
from time import time
class Py3status:
# available configuration parameters
cache_timeout = 60
ssid_cmd = 'netctl-auto current'
h... | [
"r@rixx.de"
] | r@rixx.de |
e5a0a3019cbd9cd66a3c8b49b16bed324882de57 | 4d4c956f84189cfbeda2c48ecdc9465a2ea0ca8b | /jekoffice/users/migrations/0003_auto_20200429_1700.py | b066733c05578d2a81b695be9f3b724c99ab8b46 | [] | no_license | fpribeiro3069/JekOffice | aae37b31914464895979fe872f8aa8db6924a21a | 1473ed7bd09ad23e2fd74b7cb2feae27e4df97f5 | refs/heads/master | 2022-11-28T16:36:43.488543 | 2020-09-12T16:07:08 | 2020-09-12T16:07:08 | 253,244,161 | 0 | 0 | null | 2022-11-22T04:01:07 | 2020-04-05T13:41:49 | CSS | UTF-8 | Python | false | false | 917 | py | # Generated by Django 2.2.10 on 2020-04-29 16:00
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0002_auto_20200405_1450'),
]
operations = [
migrations.AlterField(
model_name='customuser',
name='cargo',
... | [
"franciscoribeiro24@gmail.com"
] | franciscoribeiro24@gmail.com |
67e711882e9dbc92c4e9356ebb73b6ab3c9b152f | c915a42b2c64aed7dbb5c571d23f128cd32e65a7 | /testing.py | 1ba59ca223d885de32c6d734631b29eb96227938 | [] | no_license | vineetred/polynomialEstimator | 0c91458ee0055b6e235f7bbb4115e27184cb8944 | b7c707e7bfe3c55a930e2c8d4d5de92e63c2efc6 | refs/heads/master | 2020-04-19T10:03:36.837727 | 2019-02-04T18:23:19 | 2019-02-04T18:23:19 | 168,129,026 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,678 | py | import numpy as np
import matplotlib.pyplot as plt
from sklearn.linear_model import LinearRegression
from sklearn.preprocessing import PolynomialFeatures
from sklearn.metrics import mean_squared_error, r2_score
from sklearn.model_selection import train_test_split
fileopen = open('hw1data.txt')
x,y = np.loadtxt(fileo... | [
"hotshot2797@gmail.com"
] | hotshot2797@gmail.com |
fdd84a307f4c9c33968065e4f6dc85b44b78a86c | 43f01f6538335e335177de2267c888906a7dbf1c | /shop/migrations/0001_initial.py | 307ac1bb8944508e2a7fe7a223c769aad13e661d | [] | no_license | Chiefautoparts/equipmentRental | bb5f2b0db1588a9372e96cc20b7e8bcfd8fb73c9 | bba249af27bbbc67e8e5d50c7169dcb801a4b314 | refs/heads/master | 2020-02-20T06:57:57.201816 | 2018-03-23T03:08:11 | 2018-03-23T03:08:11 | 126,425,626 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,893 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
]
operations = [
migrations.CreateModel(
name='Category',
fields=[
('id', models.AutoField(aut... | [
"chiefautoparts@outlook.com"
] | chiefautoparts@outlook.com |
04f8aae44c3d7323abaffd9ce2d0d4b45fc70ea6 | 24fe1f54fee3a3df952ca26cce839cc18124357a | /servicegraph/lib/python2.7/site-packages/acimodel-4.0_3d-py2.7.egg/cobra/modelimpl/eqptcapacity/polusage5min.py | 2e9231c5855b38f91a1336da0ef00fc2d7d19682 | [] | no_license | aperiyed/servicegraph-cloudcenter | 4b8dc9e776f6814cf07fe966fbd4a3481d0f45ff | 9eb7975f2f6835e1c0528563a771526896306392 | refs/heads/master | 2023-05-10T17:27:18.022381 | 2020-01-20T09:18:28 | 2020-01-20T09:18:28 | 235,065,676 | 0 | 0 | null | 2023-05-01T21:19:14 | 2020-01-20T09:36:37 | Python | UTF-8 | Python | false | false | 20,533 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2019 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"rrishike@cisco.com"
] | rrishike@cisco.com |
d2c148ca3f684d6fdf31f65d0e7fe95757d2fda7 | 18b5f6cc1bbd7ff724980165cb5a36d6848541b9 | /End2End/load_data.py | 48ac1c3c4429e662439968802a786c9a2a2d1481 | [] | no_license | charusharma1991/LinkPred | d2292fa7fd48359971321f425854ec071e514f74 | e7a1fe7334001635b334c4d0b167f13a344f5fcf | refs/heads/master | 2022-11-11T17:59:33.999142 | 2020-07-11T20:59:12 | 2020-07-11T20:59:12 | 265,319,479 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,119 | py | import torch
import os
from gensim.models import FastText, Word2Vec, Doc2Vec
import numpy as np
from scipy.io import loadmat
import networkx as nx
from networkx import laplacian_matrix, normalized_laplacian_matrix
from get_neighbors import load_neighbors
NODES = set()
DEGREE = {}
def load_embeddings(filename, split, ... | [
"charusharma1991@gmail.com"
] | charusharma1991@gmail.com |
a49c58921b720dab2611c6e66d4b961e850d6e5e | 42d2dea48cba0dc6eb9ffcc40677783f18f97c01 | /main.py | 42cc09bd7a59dc85c9b60845540ea37b85fcd08c | [] | no_license | BreadBomb/FameGrame | 0e32f6d919873c1453dc6c2efc9d6b239f2c5c84 | 2115f49fe44abeed60383825b3273c00252d5be3 | refs/heads/master | 2022-11-18T15:09:05.809544 | 2020-07-17T21:03:55 | 2020-07-17T21:03:55 | 280,434,336 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 489 | py | from core import bootstrap_application
from core import Application
from programs.animations import Animations
from programs.menu import Menu
from utils.program_manager import ProgramManager
class Main(Application):
def __init__(self):
super().__init__()
program_manager = ProgramManager()
... | [
"jonah@wichtrup-li.de"
] | jonah@wichtrup-li.de |
06aa5e423457db569be40a7e7808af588a06e85b | 21a77ed3498e649ecc7446584edf46b62c361d59 | /orange/models/myf_baogao.py | 8f19876bc9259eb848684612e79482ce0db3252b | [] | no_license | kejukeji/heart_counsel_py | e45419d9b2baf3fe392d64c5596a45e96f96a280 | 3fa2dbdad43b0c12da6130d6e634e6c7003fd1f0 | refs/heads/master | 2021-01-13T02:11:00.869579 | 2013-11-28T08:08:15 | 2013-11-28T08:08:15 | 14,770,940 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 512 | py | # coding: utf-8
from sqlalchemy import Column, Integer, String, Boolean, DATETIME, ForeignKey, text
from .database import Base
myf_baogao_table = 'myf_baogao'
class Myf_baogao(Base):
__tablename__ = myf_baogao_table
#__table_args__ = {
# 'mysql_engine': 'InnoDB',
# 'mysql_charset': 'utf8'
... | [
"250440083@qq.com"
] | 250440083@qq.com |
674ee051f2c26412adda69172a73673ccb1c54d1 | ca40f738ab37b81b094d88899b6bf7ded05720a4 | /customUser/users.py | f5a43f7b4a57fe61d8f3f6e084257c0305b9734f | [] | no_license | jrod617/PhotoBlog | a53cd656ee22791493cb6e57c791270e39a6dd2b | fb4cad8ad7bab82606545d5223aa2fad52dd5f6c | refs/heads/master | 2020-09-20T20:12:08.035318 | 2016-09-01T14:33:27 | 2016-09-01T14:33:27 | 67,138,167 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 385 | py | from django.conf import settings
def UserModel():
try:
from django.contrib.auth import get_user_model
return get_user_model()
except ImportError:
from django.contrib.auth.models import User
return User
def UserModelString():
try:
return settings.AUTH_U... | [
"jrod617@a2plcpnl0401.prod.iad2.secureserver.net"
] | jrod617@a2plcpnl0401.prod.iad2.secureserver.net |
a239b59d01641912fdc938fb968bf7a487b0644c | 985da847a33bfb5a83940a8b410c3c1374d28ae5 | /2번.py | 82c8743c5254acf2b968817df0f82f17ec46773e | [] | no_license | hyeminshin99/Python-3byte | 9b023325627fee716f11c3597a98abe3d09ccee8 | 080f9e374ae77ddf3a4461661d6e6374cf99a84f | refs/heads/master | 2021-10-10T06:00:11.810067 | 2019-01-07T12:41:56 | 2019-01-07T12:41:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 63 | py | a=input('정수입력: ')
b=str(a[0:3])+str(a[5:9])
print (b) | [
"noreply@github.com"
] | noreply@github.com |
0375e3edc709a394148e31cbbb0183a3a7dd5ba7 | 92496ee365db2732bee7a0e5efbb475ec7d361d2 | /ConvNet.py | f410ee294c64eb52f19141c717b62f3103e973a4 | [] | no_license | caffery-chen/vdsr_tf_keras | 9b966877180bbcdf7af0560afcfa9863f9254fbd | d53302753d5110fcf2ca3be2284a1bd18eecc964 | refs/heads/master | 2020-07-02T19:36:54.797746 | 2019-09-29T15:44:33 | 2019-09-29T15:44:33 | 201,641,314 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,169 | py | import tensorflow as tf
class ConvNet:
def __init__(self, d = 64, s = 32, m = 18, input_shape = None):
self.d = d
self.s = s
self.m = m
self.input_shape = input_shape
self.activation = tf.nn.leaky_relu
self.kernel_size = [1, 1]
def build_model(self):
inpu... | [
"cyk@mytum.de"
] | cyk@mytum.de |
db8b7e00e42e8ea30890926167172ddfe2f304dd | 877e5d244956fb33c614096cb284590d350d11df | /17.py | 928c9784b67acf133675985576bd5875bcdc8a91 | [] | no_license | szymek156/project_euler | 5390348e866f114f21ce29c62c821c584589165f | 4f308d0342bbfbbe6b9c25666a374b0567cb081e | refs/heads/master | 2023-03-23T17:14:10.111856 | 2021-03-19T18:00:57 | 2021-03-19T18:00:57 | 167,685,505 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,677 | py |
numbers = {
1 : "one",
2 : "two",
3 : "three",
4 : "four",
5 : "five",
6 : "six",
7 : "seven",
8 : "eight",
9 : "nine",
10 : "ten",
11 : "eleven",
12 : "twelve",
13 : "thirteen",
14 : "fourteen",
15 : "fifteen",
16 : "sixteen",
17 : ... | [
"szymon.zimnowoda@gmail.com"
] | szymon.zimnowoda@gmail.com |
cf1c124c69840a4ee6a164559e18f85bffa0a466 | 3c03073d609ea59bf3086828b6f39ccea9830d43 | /test/test_inline_object32.py | a78b295f07020301e21bfa705b99efbbd78ba7f5 | [] | no_license | mkj28/codefresh_client | 7226201ca1958b9ee880cebccef531e43880390d | bd2bfeb43fbc27ac00e98428f1a1382df08f5a95 | refs/heads/master | 2020-04-30T07:22:20.265388 | 2019-03-22T07:49:26 | 2019-03-22T07:49:26 | 176,682,127 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 856 | py | # coding: utf-8
"""
Codefresh API
Codefresh API openAPI 3.0 specification # noqa: E501
OpenAPI spec version: 0.0.1
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
import unittest
import codefresh_client
from codefresh_client.models.inline_object32 import I... | [
"michal@gladly.com"
] | michal@gladly.com |
6a3352ef4958a93ca9234ba063736d84bb2351f4 | b320a76f07cdef8f063234f918b3c2621c4c1b26 | /treeoflife/test/util.py | 0e8331c662b12f322ebe1fce0cc06572bd2bced4 | [
"MIT"
] | permissive | lahwran/tree-of-life | 64edaf4890ced7776a8d766d185d421444d7888e | a617e7dc299420439d743a2c5408e34db041f35c | refs/heads/master | 2016-09-05T17:01:08.165680 | 2015-06-21T19:31:11 | 2015-06-21T19:31:11 | 11,141,247 | 5 | 1 | null | 2015-06-21T19:31:11 | 2013-07-03T03:39:35 | Python | UTF-8 | Python | false | false | 939 | py | from __future__ import unicode_literals, print_function
from treeoflife.nodes.node import _NodeCreatorTracker
from collections import defaultdict
from fnmatch import fnmatchcase
from difflib import ndiff
def match(string, pattern):
matches = fnmatchcase(string, pattern)
if not matches:
diff = ndiff(s... | [
"lahwran@lahwran.net"
] | lahwran@lahwran.net |
3250ab59d21e71dd2ef3507ab8740cb05530a3c9 | c48b05e48fa4bc114b57033bfba378d7b23e4edb | /lib/listeners/http.py | eb43d2d2e2c4eb66f3dfcf37c5ebe99a46994ef7 | [
"MIT"
] | permissive | swagkarna/invader | 39f14ed42c176caaf62b7c418e091ce426d87cfb | 3e4adf56e089bdd16f6950419db7a31428bce352 | refs/heads/master | 2020-09-25T06:24:42.066772 | 2019-12-04T17:41:37 | 2019-12-04T17:41:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 58,448 | py | import logging
import base64
import sys
import random
import os
import ssl
import time
import copy
import json
import sys
from pydispatch import dispatcher
from flask import Flask, request, make_response, send_from_directory
# Invader imports
from lib.common import helpers
from lib.common import agents
from lib.common ... | [
"noreply@github.com"
] | noreply@github.com |
ce67986877888b730a1b3e206cd3232e3c1b53ce | 07af810a11f6869452397b127cb726517e939dcc | /02_Arrays/08_allprimenoinarray.py | 93608fb21ca6ed54660a6ce4c52b747b6ee321a8 | [] | no_license | anshi595/Python_codes | 6a6c375a4191383148d74c22034a298322f8333f | dc523661719cc5b388a0d01a6dce407e7fd15aed | refs/heads/master | 2022-11-25T14:35:44.421486 | 2020-08-01T09:02:49 | 2020-08-01T09:02:49 | 269,951,964 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 464 | py | def isprime(n):
c=0
for i in range(2, n):
if ( n % 2 == 0):
c = 1
break
if(n==1):
print("1 is not prime")
elif(c==0):
return print(n, " is a prime no")
else:
return print(n, " is not a prime no ")
arr= []
n = int(input("Enter size of... | [
"anshi595@gmail.com"
] | anshi595@gmail.com |
834bf43617c4670f1c534f430f9945cfbefff3a9 | 47722a7d90ba237bb7eb87bd0066ac5701c6cdf4 | /src/pymon.py | cc005866e0dd050182b44ed3b3318897c47872d7 | [] | no_license | didw/openapi_w | 3b28cb2ac6bae5ea79d6eb5111871010ebf3a636 | 21ed07800ff0dcb1f53d1415f252842f734abcae | refs/heads/master | 2021-09-04T13:23:01.071611 | 2018-01-19T05:19:34 | 2018-01-19T05:19:34 | 112,623,369 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,060 | py | import sys
from PyQt5.QtCore import Qt, QTimer, QTime
from PyQt5 import uic
from PyQt5.QtWidgets import *
import test_kiwoom
import pandas as pd
import time
import datetime
import webreader
MARKET_KOSPI = 0
MARKET_KOSDAK = 10
class PyMon:
def __init__(self):
self.kiwoom = test_kiwoom.Kiwoom()
s... | [
"yangjy0113@gmail.com"
] | yangjy0113@gmail.com |
d03422b7d92716ff0306c439bdb206c762480b5a | 036a41c913b3a4e7ae265e22a672dd89302d3200 | /1201-1300/1299/1299_Python_1.py | 1eb51ea5b0a0337c27da4b1396473de3c50fbd56 | [] | no_license | ChangxingJiang/LeetCode | e76f96ebda68d7ade53575354479cfc33ad4f627 | a2209206cdd7229dd33e416f611e71a984a8dd9e | refs/heads/master | 2023-04-13T15:23:35.174390 | 2021-04-24T05:54:14 | 2021-04-24T05:54:14 | 272,088,506 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 340 | py | from typing import List
class Solution:
def replaceElements(self, arr: List[int]) -> List[int]:
now = -1
for i in range(len(arr) - 1, -1, -1):
arr[i], now = now, max(now, arr[i])
return arr
if __name__ == "__main__":
print(Solution().replaceElements([17, 18, 5, 4, 6, 1]))... | [
"1278729001@qq.com"
] | 1278729001@qq.com |
3b13a955c57fc17fbf3a81275dbfa0810d9478f9 | 00c2e5f24df4d96261f2245b6fa96dfe307a7b9f | /Python/shuffle.py | ae162f1528cd5ec390092611d0628ac06b620639 | [
"MIT"
] | permissive | Barmp/BarmpScripts | e5e636e831f4f498560f4e4bfb98ccadd58050f5 | f3492b64285b7f88261a9ac8486a4b450c8d0215 | refs/heads/main | 2023-02-06T17:05:28.851294 | 2020-12-20T04:27:59 | 2020-12-20T04:27:59 | 318,947,703 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 943 | py | ###############################################################
#
# Function to shuffle two lists together, emulating a riffle
# shuffle like a deck of cards that does not perfectly
# interlace the list.
#
# Written by Greg Malone - August 2013
#
###############################################################
fr... | [
"Barmp@users.noreply.github.com"
] | Barmp@users.noreply.github.com |
b30ad4aa90f64bd05b22729b5827927286559f7d | 7074fb85f72dfbb738ee02e71f5fdead9b9332b9 | /migrations/versions/2490594fc279_.py | dcd050603d6510e8e91092bd912e3670cf37d831 | [
"MIT"
] | permissive | divident/pitkalkulator | 6502910e59a58f8143ae44b0f50550fa99fdf23e | 82f36ebadd8d0c4a0e394c0fd2a25ee520ee91c5 | refs/heads/main | 2023-05-12T12:02:04.314985 | 2023-05-04T19:29:13 | 2023-05-04T19:29:13 | 338,898,626 | 8 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,109 | py | """empty message
Revision ID: 2490594fc279
Revises: 5bf04708c9f5
Create Date: 2020-11-21 20:35:53.300357
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '2490594fc279'
down_revision = '5bf04708c9f5'
branch_labels = None
depends_on = None
def upgrade():
# ... | [
"pchmielewski6@gamil.com"
] | pchmielewski6@gamil.com |
e4f24df03b5d5fa748b26f3ab1243563f738fa05 | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/prope.py | fbadb92cdd06669ddf67db4b61b7be9f9c72bc7d | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 161 | py | ii = [('BentJDO2.py', 1), ('LeakWTI2.py', 2), ('LeakWTI3.py', 2), ('GellWPT.py', 1), ('SoutRD2.py', 1), ('FitzRNS.py', 1), ('RoscTTI.py', 1), ('SadlMLP2.py', 1)] | [
"prabhjyotsingh95@gmail.com"
] | prabhjyotsingh95@gmail.com |
bb866122021c5b6969bef8a11505fa2c51db36c7 | cf87d20c407a69c1b4cb8dc970666170cbcf5455 | /Raspberry Pi Part/main.py | 8d298d41ff215c902bf97b31aa3a485cb9a2621c | [] | no_license | yahbouss/S3G1 | 187549844fc6b92b8a29802f78e112385604e934 | 97b3d7fbe9797ea8dd280ea5596f88cea8418fa2 | refs/heads/main | 2023-03-04T19:43:31.371871 | 2021-02-07T09:28:47 | 2021-02-07T09:28:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 953 | py | import psycopg2
DATABASE_URL = "postgres://ddrwyxdrclgapj:2d618ce3846acfe8048a05384a5242e377ee04d576efde709256c18f3291a323@ec2-34-248-148-63.eu-west-1.compute.amazonaws.com:5432/d83pdd4puormrb"
DB = psycopg2.connect(DATABASE_URL, sslmode='require').cursor()
def collectFromDB(entredPin):
DB.execute("SELECT * FROM ... | [
"yahbouss@hotmail.fr"
] | yahbouss@hotmail.fr |
fcbe9458aba7245a68a3e3c83218816a985a0ac1 | b4dcdf6a38747f06f381a23941b49db8793b43f0 | /python/ex15.py | bfa4d527ef8ae3bebbdd79a65aec867a9db48179 | [] | no_license | marcinsieciechowicz/PycharmProjects | 83a45b85b3899e636bca4d1b717eed76159bd9a3 | 4d8022736a20e1d2ad94e36eaf27dcd6a6bf3736 | refs/heads/master | 2020-06-28T11:15:59.518767 | 2019-08-02T10:43:52 | 2019-08-02T10:43:52 | 200,218,212 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 601 | py | # pobierz od uzytkownika ile ma pieniedzy w skarbonce
# pobierz informacje ile doklada do skarbonki co miesiac
# pobierz cene wakacji
# stworz zmienna do przechowywania ilosci miesiecy
# uzywajac petli while sprawdz po ilu miesiacach stac go bedize na wakacje
current_money = int(input("Ile masz teraz pieniedzy? "))
mo... | [
"sieciechowiczmarcin@wp.pl"
] | sieciechowiczmarcin@wp.pl |
c16da0f0a455bc621e9082e85bfce4869dd47261 | 90ce093726ebaedc227f70472a1bb11a683415f9 | /mysite2/blog/migrations/0223_auto_20200330_1443.py | 886d85f4c5d0bc74eca4b6f707f575f89a0767de | [] | no_license | gogutier/Proto2 | 5e5158e0a53c8804738444ea7d45d4ddd1915d52 | fe653f9795f94de8621d7c2a56d89f801c7ece7b | refs/heads/master | 2022-04-17T03:07:04.052499 | 2020-04-16T18:49:33 | 2020-04-16T18:49:33 | 161,278,844 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,591 | py | # Generated by Django 2.0.13 on 2020-03-30 17:43
import datetime
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('blog', '0222_auto_20200328_2217'),
]
operations = [
migrations.CreateModel(
na... | [
"g.gutierrez.gagliardi@gmail.com"
] | g.gutierrez.gagliardi@gmail.com |
ae23442f004fb33ad4c2e966166e53c39ebf7cfe | d47b9cf613fa78abdf40fa1ecb5d243c8864c104 | /eventsfinder/ajax.py | df97adbbebdf8784019f6ee5576d46164d46f2e1 | [
"BSD-2-Clause"
] | permissive | nikolas-k/eventsfinder | 6e5c4149aca14e85497eb1747abbe38157d1c5f2 | c2e4b46609ff8456062a4dd140d230f8c92144c1 | refs/heads/master | 2021-01-12T21:05:26.685780 | 2014-01-04T17:04:16 | 2014-01-04T17:04:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,345 | py | from django.views.decorators.http import require_POST
from django.http import HttpResponse
from django.contrib.auth.decorators import login_required
import json
from eventsfinder.models import Event, Attendee, Staff
from django.contrib.auth.models import User
@login_required
@require_POST
def attend_event(request):
... | [
"axsauze@gmail.com"
] | axsauze@gmail.com |
dad7e7a5844e0574680a439929b81681ef9279cb | cd7d53669289d8ac20888b49de3b863adfa467fe | /09_artificial_neural_networks/04_CNN_Keras_Tuner_MNIST.py | 564472830ab627d4bd6f02a6061c7cfac086367a | [] | no_license | bakstansky/bootcamp | 6c9e743816c5ad63e30a7f6000d0c0d8e28e32d4 | f5a2841c3cc9efb7dcca0b5dcc18ef2e349b7966 | refs/heads/master | 2023-05-31T20:00:39.292425 | 2020-09-12T08:36:53 | 2020-09-12T08:36:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,040 | py | from kerastuner import HyperModel
from kerastuner.tuners import Hyperband
from tensorflow.keras.datasets import mnist
from tensorflow.keras.models import Sequential
from tensorflow.keras.layers import (Dense,
Flatten,
Conv2D,
... | [
"feligges@gmx.de"
] | feligges@gmx.de |
06352d861735bddcbde97997fc74b782b6faa5cf | 9d0fd3f782c7114ab6e5362e21dd7bd9abef755b | /userdemo/config/middleware.py | 2eb53c20aa61064ca6c9b2de50a87cbbbbd5e688 | [] | no_license | dfee/userdemo | fcb67abb92b36691e9eac851b95a20eaf3abfa78 | a04f243549cd72bad1311ff16eedf36e09cb54a7 | refs/heads/master | 2016-09-05T21:35:18.574745 | 2010-11-04T02:54:19 | 2010-11-04T02:54:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,414 | py | """Pylons middleware initialization"""
from beaker.middleware import SessionMiddleware
from paste.cascade import Cascade
from paste.registry import RegistryManager
from paste.urlparser import StaticURLParser
from paste.deploy.converters import asbool
from pylons.middleware import ErrorHandler, StatusCodeRedirect
from p... | [
"devin.fee@gmail.com"
] | devin.fee@gmail.com |
07a9b09c4093747a3ae8f82d07f1277cb8497a7a | 83eb4cbd6cf5d612e50d83a294e1c28e4b2ffd11 | /src/settings.py | 7e95d78b952b8d115b38e688c4e5f1cbc6329a50 | [
"MIT"
] | permissive | Darkwing42/app_scaffold | 105a57fa6439800b977fc75c0ea5a4f3c401d9ca | 61356d96f5c44c426e11706ac8b185d5cfb3439a | refs/heads/master | 2020-04-04T11:17:39.463580 | 2018-11-14T09:50:04 | 2018-11-14T09:50:04 | 155,885,608 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,251 | py | import os
class Config(object):
DEBUG = False
CSRF_ENABLED = True
POSTGRES_USER = os.getenv('POSTGRES_USER')
POSTGRES_PW = os.getenv('POSTGRES_PASSWORD')
POSTGRES_URL = "database:5432"
POSTGRES_DB = os.getenv('POSTGRES_DB')
SECRET_KEY = os.getenv('SECRET_KEY')
JWT_SECRET_KEY = os.getenv('JWT_SECRET_KEY')
JWT_... | [
"noreply@github.com"
] | noreply@github.com |
79980da45e833043fba859050842b0c1717da683 | abf6a5270d4eb7edc6e61d44c33603accd632f81 | /myenv/Scripts/django-admin.py | 0da2f47544257ae3437f1df26240fd6b579c82b3 | [] | no_license | alvaroguarda/my-first-blog | a21e9f38dab445f9e5fe4ad4ae6f300e0ec94ec9 | 33748e21cfbc30ba117daa772f59d4d833b137e5 | refs/heads/master | 2020-03-18T15:27:52.421195 | 2018-05-27T18:12:09 | 2018-05-27T18:12:09 | 134,909,794 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 160 | py | #!c:\users\alvar\djangogirls\myenv\scripts\python.exe
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| [
"alvaroguarda@gmail.com"
] | alvaroguarda@gmail.com |
c4525512f529cd7c447e0ef3b92e8347f00d33c9 | 2ed82968a60f7b2ef7ca70ff000e2098a853de75 | /recipe budget mybank billing/Mybank/bank/models.py | 304661edc24824287e3573b8a08d67f2f98460a1 | [] | no_license | mariachacko93/DjangoProjectsFull | 9d4fd79b51166fe10d322757dbba96feb68fdde1 | 5c4dbd142a553b761e660e237a40572d610b97cc | refs/heads/master | 2023-02-28T01:57:25.578004 | 2021-02-04T10:05:34 | 2021-02-04T10:05:34 | 335,884,831 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 547 | py | from django.db import models
# Create your models here.
class createAccount(models.Model):
personname=models.CharField(max_length=120)
accno=models.IntegerField()
acctype=models.CharField(max_length=120)
balance=models.IntegerField(default=3000)
mpin=models.IntegerField()
def __str__(self):
... | [
"mariachacko93@gmail.com"
] | mariachacko93@gmail.com |
73b2bb132274cba31e3bdf45457c708cd82b8001 | ff146032b867e83336d698f210d779f2ee1d3fde | /autoencoder.py | f0fcf250d5979d6623f9edcb72244a5e4f448f92 | [] | no_license | Kevini05/ML-Internship | e4cb5189254cc0ece0efa8e63199e62f93660b4a | 3a6859e182e7d927b562eff8b94ba01cb7259963 | refs/heads/master | 2023-01-10T11:38:36.033442 | 2020-11-19T10:15:53 | 2020-11-19T10:15:53 | 292,557,272 | 1 | 0 | null | 2020-09-15T11:31:20 | 2020-09-03T12:01:15 | Python | UTF-8 | Python | false | false | 11,812 | py | # Import deep learning library
import sys
import os
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3' # or any {'0', '1', '2'}
import keras
from keras.layers.core import Dense, Lambda
from keras.layers import LeakyReLU
from keras.layers.normalization import BatchNormalization
import keras.backend as K
import tensorf... | [
"noreply@github.com"
] | noreply@github.com |
98a3ece2d4512ba5ff70cd36a4a3bb55045c7236 | f66208594ddab6672d0feeb64227c812f3297274 | /test/model_test.py | a902bb9364b0584ff58f8ad7fc2675de0edb2f94 | [
"MIT"
] | permissive | fmcooper/matchingproblems | 409b1e13576df06d92acc40fd008fbd4a47d40eb | 0d99e442c581427a7f09dce9f64d487f276e906c | refs/heads/master | 2022-12-27T01:33:21.456272 | 2020-10-04T10:05:58 | 2020-10-04T10:05:58 | 300,849,559 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,035 | py | import matchingproblems
from matchingproblems.solver import model
import unittest
"""Testing class for the model class."""
class TestModel(unittest.TestCase):
def create_example_model(self):
m = model.Model()
m.num_students = 2
m.num_projects = 2
m.num_lecturers = 2
m.proj... | [
"f.cooper.1@research.gla.ac.uk"
] | f.cooper.1@research.gla.ac.uk |
5272d10e4e3f87de963dff588ca12e65a76b0e84 | 972076fc0ef8ce960a85a1df0be393f51fa95d0a | /commands/manipulation/__init__.py | faa8c1e638fcc07bf9e0a482923c52e31a6b8c77 | [] | no_license | miri-sharshevsky/dna_command_line | 6a906174824bc6690b0e98dd8bf0aa884a75b477 | bfd3815e56bc3178c7bd58f7ff77770e5d42c273 | refs/heads/main | 2023-06-06T16:26:32.989683 | 2021-07-13T18:29:23 | 2021-07-13T18:29:23 | 385,698,106 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 151 | py | from commands.manipulation.manipulation import *
from commands.manipulation.command_replace import *
from commands.manipulation.command_slice import *
| [
"miri.sh883@gmail.com"
] | miri.sh883@gmail.com |
4529b4490207d78cd018df1f8899babddfecebb8 | 7f6141caf56970c97840130b9983598ed75c2ff9 | /python/plotsCodes/LaunchCadenceByLSP.py | a3ea32b1b78b1ddafbb4ac6f9233c9b1cfd93cf5 | [
"Apache-2.0"
] | permissive | Nosudrum/launch-stats | 7350904ffe2e09e61fe79462ca7674e47cc0ef5a | 9934b0447eb9ffe26718c452c1bba0c93525b5b7 | refs/heads/main | 2023-08-30T12:39:27.502636 | 2023-08-27T02:40:32 | 2023-08-27T02:40:32 | 454,174,062 | 14 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,118 | py | import calendar
from tqdm import tqdm
from Processing import PastT0s, PastLSPs
from plotsCodes.PlotFunctions import (
LSPs_dict,
colors,
monthsLabels,
dark_figure,
finish_figure,
prepare_legend,
datetime,
timezone,
np,
)
# Plot of orbital launch attempts by LSP for the last 8 yea... | [
"arnaud.muller1308@gmail.com"
] | arnaud.muller1308@gmail.com |
ccae0416288591c367619d1a71a4ffeb426c9051 | dd31d59e96d80d6f16ea6ef3f3a464fa4eb58bce | /{{cookiecutter.app_name}}/manage.py | 4060fd52b1f6e631b4d1914759bb7272b0cd2ba1 | [
"BSD-3-Clause"
] | permissive | xen/flask-ptc | e887181ed68da3d1df1ba2ecbc2bbce9561491b4 | 32cf0654c7f6fb5e907314d97e23d923f8bbf06b | refs/heads/master | 2021-05-15T01:38:25.457483 | 2018-06-13T08:37:26 | 2018-06-13T08:37:26 | 34,637,425 | 1 | 7 | BSD-3-Clause | 2018-06-13T08:37:27 | 2015-04-27T00:12:11 | Python | UTF-8 | Python | false | false | 2,103 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from flask import json
from flask.ext.script import Manager
from flask.ext.migrate import MigrateCommand
from {{ cookiecutter.app_name }} import create_app
from {{ cookiecutter.app_name }}.extensions import db
from sqlalchemy.exc import OperationalError
from sqlalchemy.... | [
"m@xen.ru"
] | m@xen.ru |
5e7911bb5a916c8dc84d2b157fc6fc1f316e3119 | d181ba95d7c5989add382258dcb8a47121066e20 | /alembic/versions/56b218f585f9_machine.py | f20be6695fe05eb448f92548cdc7500b42801976 | [] | no_license | ngocvinhvu/base-api | f764f6b1fea03a8b00c209d0109bf7c061a55444 | 301993e973ae5fd1690524c1da359a5c32072dbc | refs/heads/main | 2023-04-20T00:59:50.988674 | 2021-05-06T02:02:06 | 2021-05-06T02:02:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,374 | py | """machine
Revision ID: 56b218f585f9
Revises: 4f338dbcc0b3
Create Date: 2021-04-24 11:33:51.087059
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '56b218f585f9'
down_revision = '4f338dbcc0b3'
branch_labels = None
depends_on = None
def upgrade():
# ### com... | [
"ducpx96@gmail.com"
] | ducpx96@gmail.com |
92972b0266dc282ec7dff9f3c1d7d1b032670df5 | 8dac94d2bfd5a328e81c96635fd40e19c0d5296b | /py/aci-get-global-endpoints.py | fd6e74ca805f079be13a19bb38745c2cd952c64c | [
"Beerware",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | kantkrish/aci-python | 944504233bd0dbc2173a229817ff3694c9e9b9fe | a508789bfe5f99edc734aa4f2b1b361336f4e96a | refs/heads/master | 2020-06-16T12:05:28.152921 | 2019-06-12T19:45:45 | 2019-06-12T19:45:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,634 | py | #!/usr/bin/env python
# # Unofficial ACI Guide
# ## Python 3 Get Global Endpoints Example
# This is a simple Python example demonstrating how to obtain Global Endpoints list.
# In the GUI, this is done through Fabric -> Inventory -> Topology -> Global End-Points.
# This is boilerplate code. Feel free to use in your ... | [
"andrew@andrewboring.com"
] | andrew@andrewboring.com |
ad0ad89c7f0e1cc011ccaf354ce0485660ac335d | 326670c01f58a7ba07b1c237335cfccaaa90c4bf | /problem_2/problema_2_a.py | d853bfac3253a1bb369125e3652a0f8fb6977b44 | [] | no_license | noobcode/Soccer-Data-Analysis | fa014ce19364db8419efb5638a17842c23dc2661 | 0597692d306fb29cceb1e16e0a3ffb1f1a024f63 | refs/heads/master | 2020-03-28T18:26:57.503571 | 2018-09-15T18:21:57 | 2018-09-15T18:21:57 | 148,882,297 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,692 | py | import json
import numpy as np
import csv
# lista di eventi di gioco
events = json.load(open('../worldCup-final.json'))
players = json.load(open('../players.json'))
accurateID = {'id': 1801}
event_count= {}
# Accuratezza media dei passaggi
# Per ogni squadra, memorizza il numero di passaggi accurati e il numero to... | [
"noreply@github.com"
] | noreply@github.com |
df5e4860e9dc15d7a39ae92743dc942bc415802c | e6195dde6db1113597d404978a581e6a66f6af45 | /EduRnd100D2/A.py | 5c30429153c1dfde094a8e4d57c9a90d905dac55 | [] | no_license | chasecolford/Codeforces | e6e43dc1721f9e05b7f593a6fd66776ecc4fa8ce | 5995622411861d6e2f1fcdb14f15db3602aa571f | refs/heads/main | 2023-02-03T17:25:31.865386 | 2020-12-23T17:12:49 | 2020-12-23T17:12:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 438 | py | import itertools as iter
import collections as col
import hashlib as hash
import math
import json
import re
import os
import sys
def main():
lines = [x.strip() for x in sys.stdin.readlines()]
lines = lines[1:]
for line in lines:
line = [int(x) for x in line.split()]
summy = sum(line)
... | [
"56804717+ChaseSinify@users.noreply.github.com"
] | 56804717+ChaseSinify@users.noreply.github.com |
fd631383090680e884041d338cb06134d89ae326 | 5608a9cd3bec8cab1c3f9d7f42896107b78593cc | /runway/cfngin/hooks/docker/image/_push.py | 946ecc07d129f4e81c63b48852c59654f673bf46 | [
"BSD-2-Clause",
"Apache-2.0"
] | permissive | troyready/runway | cdee6d94f42173c8aa0bd414620b68be36a510aa | 4fd299961a4b73df39e14f4f19a7236f7be17dd8 | refs/heads/master | 2021-06-18T16:05:30.712211 | 2021-01-14T01:44:32 | 2021-01-14T01:44:32 | 151,314,626 | 0 | 0 | Apache-2.0 | 2018-10-02T19:55:09 | 2018-10-02T19:55:08 | null | UTF-8 | Python | false | false | 4,739 | py | """Docker image push hook.
Replicates the functionality of the ``docker image push`` CLI command.
.. rubric:: Hook Path
``runway.cfngin.hooks.docker.image.push``
.. rubric:: Args
ecr_repo (Optional[Dict[str, Optional[str]]])
Information describing an ECR repository. This is used to construct the repository URL... | [
"noreply@github.com"
] | noreply@github.com |
bbc45ec7a148319470784f7f0b57cb0df56a3b49 | 1ffc17893d9e15fd939628bbc41c3d2633713ebd | /docs/tests/test_utils_benchmark.py | dbfa979ef34b9756e7e72364f14161d8b0e593a5 | [
"Apache-2.0"
] | permissive | xadupre/sklearn-onnx | 646e8a158cdded725064964494f0f8a760630aa8 | b05e4864cedbf4f2a9e6c003781d1db8b53264ac | refs/heads/master | 2023-09-01T15:58:38.112315 | 2022-12-21T01:59:45 | 2022-12-21T01:59:45 | 382,323,831 | 0 | 2 | Apache-2.0 | 2023-01-04T13:41:33 | 2021-07-02T11:22:00 | Python | UTF-8 | Python | false | false | 774 | py | # SPDX-License-Identifier: Apache-2.0
"""
@brief test log(time=3s)
"""
import unittest
import numpy
from skl2onnx.tutorial import measure_time
class TestMeasureTime(unittest.TestCase):
def test_vector_count(self):
def fct():
X = numpy.ones((1000, 5))
return X
res = ... | [
"noreply@github.com"
] | noreply@github.com |
487e58d4fff3b8dfbb319f03ed66f41de9d4929f | 58990584cfd03959ffc1699d71df2cc9c43c8201 | /client-server-pyramid/server.py | 9b1cdf54a009f56b6ffe83d06685b4c83beb43b4 | [] | no_license | schatty/misc | 666ca84f177c349797130d869d46b9cb0a6dd66c | e933d0b2c125384dc6e438fbd0bc1d0b44b17cea | refs/heads/master | 2021-07-10T10:26:12.714099 | 2020-07-18T05:28:26 | 2020-07-18T05:28:26 | 177,027,629 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 900 | py | from wsgiref.simple_server import make_server
from pyramid.config import Configurator
from pyramid.response import Response
def post_a_request(request):
print("Post a request")
json = {'n': 1}
return Response(json=json)
def post_b_request(request):
print("Post b request")
json = {'n': 2}
ret... | [
"igorkuznetsov14@gmail.com"
] | igorkuznetsov14@gmail.com |
c1e2b4e5e70f92eda953bfdfff89d0c99c733926 | e10e2fea4607fb057e7a3061117f9f8923847c33 | /settings.py | d73c5c55d2f38666c6df3dffff534a8e65b4ab2d | [] | no_license | barbuza/apnstornado | 491c66af236bb5fc49e31b81c9024ac6d1f3ffae | 133699a6fca34dc85b2f1d44dbf3a0f95efdaf26 | refs/heads/master | 2020-12-25T01:06:25.778203 | 2012-03-23T20:06:10 | 2012-03-23T20:06:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,245 | py | import tornado.options
import logging
tornado.options.define("environment", default="dev", help="environment")
options = {
'dev' : {
'logging_level' : logging.DEBUG,
'certfile' : 'apns_development.pem',
'apns_host' : ( 'gateway.sandbox.push.apple.com', 2195 ),
'feedback_host' : ( '... | [
"jayridge@gmail.com"
] | jayridge@gmail.com |
bf7e5a5d46d8733e22a7858ada1043dbf8979474 | e56214188faae8ebfb36a463e34fc8324935b3c2 | /test/test_compute_server_config_ref.py | 06d779505eab02f1b3867d64f9db950ef7538e5c | [
"Apache-2.0"
] | permissive | CiscoUcs/intersight-python | 866d6c63e0cb8c33440771efd93541d679bb1ecc | a92fccb1c8df4332ba1f05a0e784efbb4f2efdc4 | refs/heads/master | 2021-11-07T12:54:41.888973 | 2021-10-25T16:15:50 | 2021-10-25T16:15:50 | 115,440,875 | 25 | 18 | Apache-2.0 | 2020-03-02T16:19:49 | 2017-12-26T17:14:03 | Python | UTF-8 | Python | false | false | 1,949 | py | # coding: utf-8
"""
Cisco Intersight
Cisco Intersight is a management platform delivered as a service with embedded analytics for your Cisco and 3rd party IT infrastructure. This platform offers an intelligent level of management that enables IT organizations to analyze, simplify, and automate their environmen... | [
"ucs-build@github.com"
] | ucs-build@github.com |
40e466ac3e749b0a8d69c51f57018cd80b9918f9 | 12362aa3c315e2b72ed29193ee24e3fd7f1a57db | /LeetCode/0329-Longest Increasing Path in a Matrix/main.py | 57544dc82de4a956de4547a7fa5b61540c75074e | [] | no_license | PRKKILLER/Algorithm_Practice | f2f4662352516965777605ccf116dd7945c4b94a | 73654b6567fdb282af84a868608929be234075c5 | refs/heads/master | 2023-07-03T23:24:15.081892 | 2021-08-09T03:55:12 | 2021-08-09T03:55:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,483 | py | """
Given an integer matrix, find the length of the longest increasing path.
From each cell, you can either move to four directions: left, right, up or down.
You may NOT move diagonally or move outside of the boundary (i.e. wrap-around is not allowed).
Example 1:
Input: nums =
[
[9,9,4],
[6,6,8],
[2,1,1]
]... | [
"dw6000@163.com"
] | dw6000@163.com |
0d2e16f6e3030a8069f7a19f570add75127425f0 | f812d0ee4c9b41ba2e0d001b5b02b5a9f18f06aa | /CodeLibrary/migrations/0004_referencebook_article_updated_by.py | 3b41e47c46d966bf8d5e6d97a68cc9f6f6a0c13a | [] | no_license | kottilukkalarun/CodeGenLib | aa353f7e99bb8285493af974d7186449253601a2 | a219d8f35ec585256fef714517d85dc96ea4084b | refs/heads/master | 2022-07-10T18:32:03.778459 | 2020-05-17T08:24:45 | 2020-05-17T08:24:45 | 264,615,105 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 481 | py | # Generated by Django 3.0.6 on 2020-05-15 18:13
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('CodeLibrary', '0003_auto_20200515_2339'),
]
operations = [
migrations.AddField(
model_name='referencebook',
name='ar... | [
"arunkesavan.kottilukkal@intelenetglobal.com"
] | arunkesavan.kottilukkal@intelenetglobal.com |
ba6a7f7c2c1fdd56f9a2ffa2ebc289ccad885ad1 | 3d045303abcde82889929fbb15def13859226d52 | /Interview_algo/Python/SwordOffer/two_dimension_array_search.py | 7bbda8a0bdea8c61740c47f5fd6e6802b953e08b | [] | no_license | Milittle/Interview_algo | 3e3d10cd4ff238d413e21da93c12d35d92c53c98 | 39ed51e42eaf5bb3627d5036d97b299ce6ee7fd5 | refs/heads/master | 2020-04-27T00:52:26.213089 | 2019-05-10T07:07:49 | 2019-05-10T07:07:49 | 173,947,753 | 1 | 0 | null | null | null | null | WINDOWS-1252 | Python | false | false | 302 | py | # -*- coding:utf-8 -*-
class Solution:
# array ¶þάÁбí
def Find(self, target, array):
for i in range(len(array)):
for j in range(len(array[i])):
if target == array[i][j]:
return True
return False
# write code here | [
"mizeshuang@gmail.com"
] | mizeshuang@gmail.com |
4ee3d70e988a9553f012711d0000087510aa04c5 | ef99def9532f5ebe35d168d483860ea55fc84db8 | /leapor.py | fcd600ba97091ab1d8452e97bb7d8ac8eef8ceb6 | [] | no_license | Gayathri200/gaya07 | 3bd77ab733d87e07119670d1724b46579264c861 | 1f9bf063b47e7ea2c6d3e223076de691f6b1fc26 | refs/heads/master | 2020-06-24T18:49:53.965227 | 2019-08-22T12:32:13 | 2019-08-22T12:32:13 | 199,051,750 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 63 | py | q=int(input())
if(q%4==0):
print("yes")
else:
print("no")
| [
"noreply@github.com"
] | noreply@github.com |
f98346a9bf8bda678e0cbe846b50fb44d613b3a1 | b521802cca8e4ee4ff5a5ffe59175a34f2f6d763 | /maya/maya-utils/Scripts/Animation/2019-2-15 Tim Cam_Route_Manager/.history/Cam_Main/Cam_Main/Cam_Item_Layout_20190119210020.py | b40656585cb8c5777a070050814bed7b54279237 | [] | no_license | all-in-one-of/I-Do-library | 2edf68b29558728ce53fe17168694ad0353a076e | 8972ebdcf1430ccc207028d8482210092acf02ce | refs/heads/master | 2021-01-04T06:58:57.871216 | 2019-12-16T04:52:20 | 2019-12-16T04:52:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,460 | py | # -*- coding:utf-8 -*-
# Require Header
import os
import json
from functools import partial
# Sys Header
import sys
import traceback
import subprocess
import plugin.Qt as Qt
from Qt.QtCore import *
from Qt.QtGui import *
from Qt.QtWidgets import *
def loadUiType(uiFile):
import plugin.Qt as Qt
if Qt.__bindin... | [
"2595715768@qq.com"
] | 2595715768@qq.com |
a6a4fbf95d91161c5153992eed82531c7c377df9 | ed9278ce7ba6e05166b7d65f995e1f0b2720b2d6 | /DEPS | e35641d8677c8be6c396a9d9d39dbf9732c93146 | [] | no_license | dwks/crystallizer | 10858a923e6768ccf36eb23b601aa4714f5cd4fd | 4a962c63bc55a952e3fbe1dfe2d8ce18f8cf154f | refs/heads/master | 2021-03-12T21:49:22.114468 | 2011-07-17T23:13:47 | 2011-07-17T23:13:47 | 2,062,887 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 42 | Dependencies:
- Boost.Asio [headers only]
| [
"dwks42@gmail.com"
] | dwks42@gmail.com | |
0883b0824b527f1e7460ee29a4751499ef824c84 | 609c4a8304225b5e1aee78c957ed4e98f3147a99 | /examples/pillow.py | 7966036dae7232356f23be03c34ad685cb7eb096 | [
"MIT"
] | permissive | captcha-api/keptcha-py | 07e2ceaec967be2b92f29a5b0dced5f1f72c76d9 | fcd64db98417eb66425cdd8526a6398a9ae9b634 | refs/heads/master | 2023-06-23T18:37:10.866472 | 2021-07-14T10:11:25 | 2021-07-14T10:11:25 | 385,735,706 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 224 | py | from keptcha import Captcha
from PIL import Image
from io import BytesIO
captcha = Captcha.new(height=250, width=500, circles=150, length=10)
captcha.decode()
img = Image.open(BytesIO(captcha.captcha_decoded))
img.show()
| [
"smahkam57@gmail.com"
] | smahkam57@gmail.com |
dd62a04d0cb1f3fbeb79bb6fb9306ea139f79db0 | 7df39c6f1bc6c21db2b3bdfe6262af1f5f4ba5b7 | /flaskblog/users/routes.py | b1660af55ac67d9e3c879b8ae15f49d2faaff06f | [] | no_license | jalajrastogi4/flask_blog_application | 6a933cebb2e03b8e34b873f199f05825d46d00c0 | 21eef16f4718e4a8d0354ac88aa3fc78b30ff0d9 | refs/heads/master | 2020-09-22T12:34:53.342567 | 2019-12-03T03:32:21 | 2019-12-03T03:32:21 | 225,196,717 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,830 | py | from flask import render_template, url_for, flash, redirect, request, Blueprint
from flask_login import login_user, current_user, logout_user, login_required
from flaskblog import db, bcrypt
from flaskblog.models import User, Post
from flaskblog.users.forms import (RegistrationForm, LoginForm, UpdateAccountForm,
... | [
"jalajrastogi4@gmail.com"
] | jalajrastogi4@gmail.com |
b808d6a898bf57319977f7481a13e14f20b16780 | d193a2472c232306149d69c04ebfaba910c31077 | /PythonZTM/oop_cs_employee_variables.py | a29d6e9a7fb16dab709b33add178b5a6d0158a13 | [] | no_license | eloghin/Python-courses | d244a3f3bfcaef9d924dc1049ffd94de2d30e01e | 3f2ad34136623c2abce01e4a88b09b8869d26163 | refs/heads/main | 2023-03-28T14:28:34.869866 | 2021-03-29T06:42:18 | 2021-03-29T06:42:18 | 310,083,984 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 867 | py | # class setup with __init__
class Employee:
# class variables/attributes:
raise_amount = 1.04
num_of_employees = 0
def __init__(self, first_name, last_name, pay):
# instance variables/attributes:
self.first_name = first_name
self.last_name = last_name
self.pay = pay
self.email = first_name + '.' + last_n... | [
"contact@elenaloghin.ro"
] | contact@elenaloghin.ro |
2efe04ee76ebd819253e8b50b20680a8bff8cd84 | a10b92034d6486f9c54f163bf6837ef4587763df | /scripts/export_test_splits.py | 401a881843f99c068520724f49ade5a533aeee06 | [
"MIT"
] | permissive | eghbalhosseini/lm_perplexity | a05732c63bbd35d92bc6302123b6d3bd255d541f | 24c5a04beb2f073b2230c7c7420bd1ec7776f513 | refs/heads/main | 2023-03-19T14:43:43.748853 | 2021-03-05T23:48:37 | 2021-03-05T23:48:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,690 | py | import argparse
from collections import Counter
from tqdm import auto as tqdm_lib
import requests
import os
import json
import gzip
from best_download import download_file
from lm_dataformat import Reader, Archive
def parse_args():
parser = argparse.ArgumentParser()
parser.add_argument('--output_dir', requir... | [
"email@jasonphang.com"
] | email@jasonphang.com |
854f3dc7e716cc8464d09d0f471f1d1a05289f51 | d15916d78067640554ced079d228c86b69e9c954 | /Image Captioning/code/coco_dataset.py | c2e7f6e6388368924309e60bd560e8f435cba0e6 | [] | no_license | JerryYC/Intro-to-Deep-Learning-Projects | 95007e7ca3fc87aae4cb3a288b04d88529f40e0e | 9b0bef0d8349e6e7f9301a9971f890da05d3e46d | refs/heads/master | 2023-08-30T16:12:22.997803 | 2021-11-04T08:42:16 | 2021-11-04T08:42:16 | 424,520,809 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,247 | py | ################################################################################
# CSE 253: Programming Assignment 4
# Code snippet by Ajit Kumar, Savyasachi
# Fall 2020
# Finely implemented and refined by Colin Wang, Jerry Chan
################################################################################
import to... | [
"900116jerry@gmail.com"
] | 900116jerry@gmail.com |
383579a1a998e718b8ec4fcb34eba1949b834581 | a3a6eeb340735664c863952bf3c1e3070e61d987 | /_py2tmp/optimize_ir3.py | 1b6e1328465ef2cdec681edf63b338e65bdf8ab8 | [
"Apache-2.0"
] | permissive | DalavanCloud/tmppy | dab593789d6e1ae6a3b25db6c4b41ce4fcfb378c | cdde676ba9d5011b7d2a46a9852e5986b90edbbc | refs/heads/master | 2020-03-27T19:55:42.295263 | 2018-09-01T18:13:21 | 2018-09-01T18:13:21 | 147,021,787 | 1 | 0 | Apache-2.0 | 2018-09-01T18:14:23 | 2018-09-01T18:14:23 | null | UTF-8 | Python | false | false | 5,556 | py | # Copyright 2017 Google Inc. 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 applicable law or... | [
"poletti.marco@gmail.com"
] | poletti.marco@gmail.com |
56b8557c78182aff00953d4558e53ae830453b7e | a4da8205c94986699c79f56f527a1d1cfe43b47b | /CAMCW2/Q5b.py | ba9e1f2cbfad09ce5d56c78b256961752c4cacca | [
"MIT"
] | permissive | IsaacOldwood/PythonPortfolio | ecef894e4d299e600303ded1e556541d7381bae9 | 1a781331c27cad8c007a480a1edd65e1ac58c5f1 | refs/heads/master | 2023-07-10T11:41:06.569889 | 2021-08-27T20:22:38 | 2021-08-27T20:22:38 | 262,792,109 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,444 | py | #All credit to Catherine F. Higham Desmond J. Higham in Deep Learning: An Introduction for Applied Mathematicians
import numpy as np
import matplotlib.pyplot as plt
import random
#Activation function
def activate(x,W,b):
return 1/(1+np.exp((-1)*(W@x+b)))
#Uses backpropogation to train a network. This code is a... | [
"isaac.oldwood@gmail.com"
] | isaac.oldwood@gmail.com |
13aebded958140472cc06d70e64dbdef221141c5 | ee2547fb19d8307f770250417c2e3b06c1b20057 | /new_client3.py | abc5fd8544bfabd1d42d1bd93ec2ce34a095f91f | [] | no_license | rosh11/JP-morgan-Chase-Stock | 54c4187401bf5bd0f9d0aa8a481e092b092c8158 | b97a88bc9b461ab2400921271e0a6099e0c7c764 | refs/heads/master | 2022-06-16T23:48:35.548664 | 2020-05-05T19:12:38 | 2020-05-05T19:12:38 | 261,561,641 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,170 | py |
import urllib.request
import time
import json
import random
# Server API URLs
QUERY = "http://localhost:8080/query?id={}"
# 500 server request
N = 500
def getDataPoint(quote):
stock = quote['stock']
bid_price = float(quote['top_bid']['price'])
ask_price = float(quote['top_ask']['price'])
price = (bid_price + as... | [
"roshanrajbe@gmail.com"
] | roshanrajbe@gmail.com |
6391dbd8c4ab32148400220889975652d6ea970d | 625c7fa3222232443e91300d62b62d25fcfe491a | /main/model/word.py | f35ed0030a15f87284f584a8fa5d0de4dffef793 | [
"MIT"
] | permissive | sotheara-leang/xFlask | 0a8d28fa2cdab393d71c5ff18a84331c0fb12ddc | b6899d4b6d1bdc4acfd812bfa8807e2cba7e8df0 | refs/heads/master | 2021-01-02T06:37:21.752339 | 2020-06-20T02:45:34 | 2020-06-20T02:45:34 | 239,531,603 | 2 | 0 | MIT | 2020-06-20T02:46:30 | 2020-02-10T14:29:16 | Python | UTF-8 | Python | false | false | 332 | py | from xflask.sqlalchemy import Column, relationship
from xflask.sqlalchemy import Integer, String
from xflask.sqlalchemy.model import Model
class Word(Model):
id = Column(Integer, primary_key=True)
word = Column(String(50))
docs = relationship('Document', secondary='document_word',... | [
"leangsotheara@gmail.com"
] | leangsotheara@gmail.com |
59baa4ccac65a7f5c8488ac68d26ade52d54bb2e | a0b855fb1b34ea4351828c0a3d73db5f8dbc194d | /pycode/PyTorch/Practice/readmnist.py | 06509ae9fa16a93e918c558057928a23ac0cbf84 | [] | no_license | I-am-Fine-1994/DeepLearningCode | d2f3811645d22e609da349e21f9f179106197569 | aa08dfb02b879d4549ffe2a47b2552bd26f8d54d | refs/heads/master | 2021-09-06T18:27:38.028727 | 2018-02-09T17:39:12 | 2018-02-09T17:39:12 | 119,629,126 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,153 | py | import struct
def load_train_image():
print("loading training image set")
filename = "../mnist/train-images-idx3-ubyte"
mnist_file = open(filename, 'rb')
buffers = mnist_file.read()
head = struct.unpack_from('>IIII', buffers, 0);
offset = struct.calcsize('>IIII')
img_num = head[1]
img_height = head[2]
img_w... | [
"32637516+I-am-Fine-1994@users.noreply.github.com"
] | 32637516+I-am-Fine-1994@users.noreply.github.com |
52403d92ecaa7c1c162d2ddc03f5222753769846 | 578db86c51d44ebddd0dc7b1738985b3dc69eb74 | /corehq/apps/appstore/__init__.py | ae0e3b8b88ece0f7fd57ef6c59aa1396b7618360 | [
"BSD-3-Clause"
] | permissive | dimagi/commcare-hq | a43c7dd32b5f89c89fd5aa1b1359ab7301f4ff6b | e7391ddae1af1dbf118211ecb52c83fc508aa656 | refs/heads/master | 2023-08-16T22:38:27.853437 | 2023-08-16T19:07:19 | 2023-08-16T19:07:19 | 247,278 | 499 | 203 | BSD-3-Clause | 2023-09-14T19:03:24 | 2009-07-09T17:00:07 | Python | UTF-8 | Python | false | false | 27 | py | __author__ = 'spencertank'
| [
"npellegrino@dimagi.com"
] | npellegrino@dimagi.com |
c2f39d47998e25b1b33a5544e430c1d517b13df9 | 03783f94051b90854e12c4b44109ce662bac52dc | /model/layers_4.py | d02988658fe32650c8c20b549d157cddf2902c72 | [] | no_license | huukim136/voice_conversion | 8bd77dc29b04abaff740e73cc56fce647c31aeff | d63200beb34b839a66609366a25959c56334ea7f | refs/heads/master | 2022-08-29T00:30:22.695585 | 2020-04-21T08:24:41 | 2020-04-21T08:24:41 | 256,962,733 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 33,405 | py | import torch
from torch.autograd import Variable
from torch import nn
from torch.nn import functional as F
from .basic_layers import sort_batch, ConvNorm, LinearNorm, Attention, tile
from .utils import get_mask_from_lengths, to_gpu
from .beam import Beam, GNMTGlobalScorer
import pdb
class SpeakerClassifier(nn.... | [
"huukim136@gmail.com"
] | huukim136@gmail.com |
7cd0df45ad5a2e8ca91797a9ee8111683a053a17 | cc8734b3fe1c0378f99a2639158a1bbce6d11c23 | /blog/migrations/0001_initial.py | 1ef4d26ef35fda8ad84362a1854dc6296e780d72 | [] | no_license | ronnycss/my-first-blog | 6d486117e59cf49699f7372550e80a6aa1d80863 | ac2457d7818a6bf58e92068a512ceecc08ae73fb | refs/heads/master | 2020-09-25T00:45:51.531456 | 2019-12-06T15:17:09 | 2019-12-06T15:17:09 | 225,882,100 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 986 | py | # Generated by Django 2.2.8 on 2019-12-04 12:59
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUT... | [
"ronnycss@gmail.com"
] | ronnycss@gmail.com |
e9032bd1955d21dc80f25921ddc1b2f27cdd6018 | 29e85f9b1cce5252742753b05d8731131365312c | /giveaway/migrations/0002_donation_phone.py | ea491eb8ca85df29b728d067dd6a12fc33ad47eb | [] | no_license | borkowskibartosz/giveaway-app | 0c5a0d20b6be06d7f86305d6952f219cd74da01a | 27ba9d39d8fb542f386da36c317acf779883e086 | refs/heads/master | 2023-01-08T06:35:54.755001 | 2020-10-29T13:48:07 | 2020-10-29T13:48:07 | 298,546,387 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 418 | py | # Generated by Django 3.1.1 on 2020-10-02 12:40
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('giveaway', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='donation',
name='phone',
f... | [
"borkowski.bartosz@gmail.com"
] | borkowski.bartosz@gmail.com |
f81bb2e416df214a43332980c316ef87d27d29bc | 14c6e73296657ba2bc4c088aed3b1a84637200b7 | /11 May 2020 PR Rifqi Muammar Rianputra.py | 7b01f7adbfbfc92f329f27f1c22a5dcce4dd1948 | [] | no_license | rifqirianputra/DSMLCourse-Module-1 | 674f52e277d156166c2c3a16e4f64c9c5297137c | 3f8960c10c7f4ea0e7b27efe31bc89ecbcfb646a | refs/heads/master | 2022-09-13T14:10:45.778024 | 2020-06-03T08:43:19 | 2020-06-03T08:43:19 | 268,992,463 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,076 | py | # A = himpunan bilangan genap dari 1 - 20
# B = himpunan bilangan ganjil dari 1 - 20
# C = himpunan bilangan negatif lebih dari -20
# D = himpunan bilangan prima dari 1 - 20
# E = himpunan bilangan komposit 1 -20
import math
x = set(range(1,21))
a = set(range(2,21,2))
b = set(range(1,21,2))
c = set(range(-20,0))
# d =... | [
"connectwithrifqi@gmail.com"
] | connectwithrifqi@gmail.com |
cd16af1b63d57fd896b42948d92a0bff70396206 | 94bf7b3d09947fa7375acecd59e4b062e6381c09 | /parsifal/reviews/models.py | f8cf789530ca2f6518df3be2f8514f13b6c3b081 | [] | no_license | epkanol/parsifal | 5302c0eadad04f5bbcd2ff61bdb7c6718f7982c2 | 9ff8308b7a3827cdbfec5910de8a52a9ff0a0dc3 | refs/heads/master | 2020-04-09T12:27:50.251269 | 2015-11-19T16:53:24 | 2015-11-19T16:53:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,150 | py | # coding: utf-8
import datetime
from django.utils import timezone
from django.utils.html import escape
from django.db import models
from django.db.models import Sum
from django.contrib.auth.models import User
from django.template.defaultfilters import slugify
from parsifal.library.models import Document
class Sour... | [
"vitorfs@gmail.com"
] | vitorfs@gmail.com |
f2b9fcd3e8899f16665c4b2496f13225eb5eb755 | 00e25b8aa2e4ddd33cfd912f68625cab59588184 | /serial-printer-demo3.py | c042d58876ba5005967cb3195d717f741db0c911 | [] | no_license | jesenator/Violin-analysis-system | 578fba2de31cde9890ae28bf7616ad575f11f2d6 | 19239e98dbb9e615aea5c9e369ce7e89d12c7d43 | refs/heads/main | 2023-07-18T09:18:47.980137 | 2021-08-31T17:22:59 | 2021-08-31T17:22:59 | 390,883,362 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,546 | py | #!/usr/bin/python
# make work with wav files
# increase baud
import sys
import time
import serial
import base64
import os
import wave
def encode(line):
temp = base64.b64encode(bytes(str(line), encoding))
temp = temp.decode("Ascii") + "\n"
encoded = bytes(temp, encoding)
return encoded
def upload(file... | [
"noreply@github.com"
] | noreply@github.com |
6adb6638844dc28708e2d1ac57356e824fd3dabd | 52c36a3d830fe862f734709adc9acdae68ec2378 | /exercise1_1.py | fd4eb7b04573b1423988999e46399e5735c8128b | [] | no_license | HaneWall/numerical_physics | 942aa1565d7127cda25c9c9ddea45e8cfcdeff0d | 4f938e10281451562250c5601c125007b44499bd | refs/heads/main | 2023-04-19T17:32:52.546269 | 2021-05-11T07:58:30 | 2021-05-11T07:58:30 | 357,342,192 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,283 | py | import numpy as np
import matplotlib.pyplot as plt
# data given by exercise
x_min = 0.
x_max = 2.
x_true = np.pi/4.
tol = np.finfo(float).eps # smallest absolute float number
def test_function(x):
res = 1/np.sqrt(2) - np.cos(x)
return res
def test_derivative(x):
res = np.sin(x)
return re... | [
"noreply@github.com"
] | noreply@github.com |
a26dda6b8a08d16a2a2e072921f7fa1795462660 | c83fce2e2eb2ca7b821b443e71bee42ee45e3b7a | /classification.py | a84ef3de3ba7ad74cd4690bf703e6b995794d10d | [] | no_license | cympfh/gpytorch-tutorial | c87969ae104cb8c1f162a93de193e877280162f3 | 5c2d741f5238bdf11004f5eda2aa8fd3e2b57210 | refs/heads/master | 2020-09-30T14:19:10.498571 | 2019-12-11T07:41:39 | 2019-12-11T07:41:39 | 227,305,479 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,988 | py | """
Classification with GP
https://gpytorch.readthedocs.io/en/latest/examples/02_Simple_GP_Classification/Simple_GP_Classification.html
This works with the latest version.
And the learning is unstable (it may be success if the loss get less than 0.2).
"""
import math
import torch
import gpytorch
import visdom
vis = v... | [
"cympfh@gmail.com"
] | cympfh@gmail.com |
537c290540a1393c40bf87b42de6c6a0aab8d1f0 | 6ace96c33189d46974cb162cb724c81c4b07ad57 | /后端接口/viusts/App/urls.py | a5a6b7709bb986dac5bde0dfbefb0a59c701efa1 | [] | no_license | Best755/MyCharts | 28bcc7e9b1dd1fef19cf674a397fc48147867c63 | b76c61aa25577eb5911585beec624d6018137310 | refs/heads/master | 2022-10-21T19:09:14.697900 | 2020-06-16T09:09:37 | 2020-06-16T09:24:08 | 272,660,912 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 499 | py | from django.conf import settings
from django.urls import path, re_path
from django.views.static import serve
from App import views
app_name = "User"
urlpatterns = [
path('app_area/', views.app_area, name="app_area"),
path('app_stockdata/',views.app_stockdata,name='app_stockdata'),
path('app_statistical_da... | [
"1127828659@qq.com"
] | 1127828659@qq.com |
a2f55159eabe63e273d9da343f3f1ca3f8a9ea6c | d31408b38e3cc401587f8445a058b0c0fa185caf | /CeilBattler-win32-x64/resources/app/Connectors/Sample/sample_player.py | 77ab5ed8d96a2305a045c1862ca5bf7082f84eea | [
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"CC0-1.0"
] | permissive | Jatana/CeilBattler-win32-x64 | a983f9c2194ecb5b9c28696f95878149135349fe | 47cb6c1a6480c03a45b00f8ac64c2a853742d612 | refs/heads/master | 2021-01-25T07:54:57.323004 | 2017-06-24T18:09:34 | 2017-06-24T18:09:34 | 93,684,773 | 1 | 0 | null | 2017-06-14T13:17:18 | 2017-06-07T22:24:18 | HTML | UTF-8 | Python | false | false | 532 | py | import sys
def fprint(*args):
print(*args)
sys.stdout.flush()
fprint('python')
each, width, height, colors = input().split()
width = int(width)
height = int(height)
colors = int(colors)
table = [[None] * height for i in range(width)]
while True:
cmd = input().strip()
if cmd == 'exit': exit()
... | [
"alex.v.shekhovtsov@gmail.com"
] | alex.v.shekhovtsov@gmail.com |
8d0b223e39395b67573bffd2e82aa6dd7b53dca8 | 5ea230f1fe014dea806380b13eefb1f9877e39ac | /Day 83/DepthofBST.py | d6ffd5865fcbd189a78036c0980030915fc4c44c | [] | no_license | RajParab/100DaysOfAlgo | 8c88f437134acab2a47df1dfeb74605bed8f767c | 7ec65860abe0acaa35950cc30a738f08c8e4f1ee | refs/heads/master | 2023-02-04T10:21:31.478073 | 2020-12-22T17:38:36 | 2020-12-22T17:38:36 | 291,676,060 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 498 | py | #Questions - https://leetcode.com/explore/challenge/card/december-leetcoding-challenge/569/week-1-december-1st-december-7th/3551/
class Solution:
def maxDepth(self, root: TreeNode) -> int:
self.ans=[]
def helper(root,count):
if root is None:
self.ans.append(coun... | [
"raj.parab99@yahoo.com"
] | raj.parab99@yahoo.com |
ec3d36114446f1268111619b1974ede1f81d89b9 | ff1e1d561205066cc4dd49d25c433dca08120ad6 | /checks/unlimited_resting_contract.py | 1e94b936e253d19d8ec54eb11e855fdf4f8657af | [] | no_license | berlincount/cteward-sa-meckerfritze | 2f5a52e65597d32c9cfb0e11b8deffd411801a23 | 62736f717a0f7726527488e8b53f05c48e5f7c26 | refs/heads/master | 2020-05-18T17:14:23.105259 | 2015-10-04T22:38:06 | 2015-10-04T22:38:06 | 28,538,648 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 43 | py | #$#
# ** Unbefristet ruhender Memberstatus
| [
"count@flatline.de"
] | count@flatline.de |
42d8bc15b6f5efa191019cc1de216ded58fe428b | 893f5d208f0a748c62d8622a4b0bb361479171c5 | /tests/test_result.py | 357455acdc2f03075cef1b1660d01454d1615884 | [
"MIT"
] | permissive | mahmoudimus/option | 2aa678930b4500ed081ed7262b2e1c8773d36dd2 | d9220b2c9f8407220133b8dd01b40a80739adf98 | refs/heads/master | 2023-03-01T14:06:52.103942 | 2021-02-13T20:18:55 | 2021-02-13T20:18:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,076 | py | # MIT License
# Copyright (c) 2018-2021 Peijun Ma
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge,... | [
"peijun.ma@protonmail.com"
] | peijun.ma@protonmail.com |
e43008a6abcd788ab4350891bce40fc3299a0e55 | da289be5c4d841ac33fcc7f6e0041edaf7ad27ec | /nlp_sentiment.py | 2ce2671f1b5deb791a682fd535ce5a9ad92e2721 | [] | no_license | alogicduck/teste_repository | c533996b225a17cc7f04d4d72f745c7217605fff | 709107f45ae1890f0a6ac612cbb3c06c75307e2c | refs/heads/master | 2023-07-18T07:33:07.713319 | 2021-08-24T18:44:15 | 2021-08-24T18:44:15 | 107,491,787 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,100 | py | import re
import pandas as pd
import numpy as np
from nltk import ngrams
from lexicon_dict import dict_lexicon
from lexicon_dict_lx import lexicon_dct_lx
def generate_ngrams_nltk(s, n):
# Convert to lowercases
s = s.lower()
# Replace all none alphanumeric characters with spaces
s = r... | [
"noreply@github.com"
] | noreply@github.com |
24185aaff4d8922350b8b8c20f96cf7eade2e680 | 26bd175ffb3bd204db5bcb70eec2e3dfd55fbe9f | /exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/module_utils/network/onyx/onyx.py | d537e048b9865db661965f5e99f57ce572658931 | [
"MIT",
"GPL-3.0-only",
"CC0-1.0",
"GPL-1.0-or-later"
] | permissive | tr3ck3r/linklight | 37814ed19173d893cdff161355d70a1cf538239b | 5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7 | refs/heads/master | 2021-04-11T04:33:02.727318 | 2020-03-25T17:38:41 | 2020-03-25T17:38:41 | 248,992,437 | 0 | 0 | MIT | 2020-03-21T14:26:25 | 2020-03-21T14:26:25 | null | UTF-8 | Python | false | false | 7,437 | py | # -*- coding: utf-8 -*-
#
# (c) 2017, Ansible by Red Hat, inc
#
# This file is part of Ansible by Red Hat
#
# Ansible 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 y... | [
"joshuamadison+gh@gmail.com"
] | joshuamadison+gh@gmail.com |
288d4df6079ba249c72a88ea07dd8841fbb3990f | 6a6e63674ab48b7208f56d79d536276b510d04ab | /backups/venv/lib/python3.6/site-packages/octaviaclient/tests/unit/api/test_octavia.py | 632dc5242ca462da75bcc5b3118015bb9d7d07ae | [] | no_license | Roynuka/virtIN720 | 4eccc85274348c69538c9dd7c1c1963a27c970f9 | 2b4eaa04e8f13ea6c34e9af8702d15e4e3dcbfe5 | refs/heads/main | 2023-01-04T07:10:50.479926 | 2020-11-07T05:03:41 | 2020-11-07T05:03:41 | 310,767,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 48,764 | py | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distrib... | [
"NUKAR1@student.op.ac.nz"
] | NUKAR1@student.op.ac.nz |
38fba0b1c22a2bc23bbabf3ed7f26b144ecdd661 | 08aba912f1d42bab3c1c2e300af84daa8e54a874 | /ABC156/c.py | 26b188b85199220b1c8fc82baa4c6fadd58785dd | [] | no_license | ishida722/atcoder-study | 8266505de20c75deeff8eaa5924d7832a9c92167 | 147a8d1897eec2f8b5587faeff75dbee9172bc11 | refs/heads/master | 2023-06-20T06:59:24.248055 | 2021-07-08T21:56:54 | 2021-07-08T21:56:54 | 278,298,855 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 216 | py | n = int(input())
X = list(map(int, input().split()))
ans = 10000000000000000000000
for i in range(1, 101):
cost = 0
for x in X:
cost += (i - x) ** 2
if cost < ans:
ans = cost
print(ans)
| [
"tadashi.ishida.722@gmail.com"
] | tadashi.ishida.722@gmail.com |
11b84a96b1e989f59c01cb1e50ed26fc75a1c892 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_106/ch31_2020_07_24_03_09_48_007984.py | fb32201e90e5bcb5dc7c5110dabfc9441b413c77 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 254 | py | def eh_primo(n):
if n < 2:
return False
elif n==2:
return True
elif n%2==0:
return False
else:
i=3
while i<n:
if n%i==0:
return False
i+=2
return True | [
"you@example.com"
] | you@example.com |
1c83aada1c782212a807ce657c47363837d82663 | 3a6b82016ad10550d3f4ad8f2475c8ce6256430b | /scheduler/task_container.py | eadd8987d8a7c138626a9a51e4bba58b501c5e72 | [] | no_license | lxn5321/xspider | e2f40d4025ee9fd6e202fcb39e3e692653e6996e | a39bdad4a72d9e0debec684af261ee270fb3abd2 | refs/heads/master | 2021-10-09T13:08:48.818015 | 2018-12-28T15:53:21 | 2018-12-28T15:53:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,173 | py | # -*- coding: utf-8 -*-
import time
import math
import re
from proto.xspider_pb2 import *
import logging
logger = logging.getLogger(__name__)
class TaskSummary(object):
"""A tasksummary is corresponding to a document is Summary Collection"""
def __init__(self, taskid, basic_task=None, summary=None):
... | [
"hqiuzhen@gmail.com"
] | hqiuzhen@gmail.com |
1292b0b17f440943350f50eca0dffca8b67db5b1 | 35fdd9b051309210b80c188990e13438ee41d169 | /Chapter3/problem13.py | 4b2beadc44ef3f3d599aae3b8ab7a817ad9893f2 | [] | no_license | DanAnastasyev/Bioinformatics | 176fab90c8a3d97d4eee24319849a31b868325a1 | 76e022e28ea093e79a111b4e655826ef689a3530 | refs/heads/master | 2021-01-21T14:16:43.526852 | 2017-06-23T22:35:25 | 2017-06-23T22:35:25 | 95,260,888 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 947 | py | with open('input.txt', encoding='utf8') as f:
k, d = [int(x) for x in f.readline().strip().split()]
graph = {}
from_nodes = set()
to_nodes = set()
for kmer_pair in f:
kmer1, kmer2 = kmer_pair.strip().split('|')
node_from, node_to = kmer1[:-1] + kmer2[:-1], kmer1[1:] + kmer2[1:]
... | [
"dan.anastasyev@gmail.com"
] | dan.anastasyev@gmail.com |
65c0df7301baf3fd49612d23b32c78370d56e16b | f707303e4dfe383cf82c23a6bb42ccfdc4cfdb67 | /pandas-quant-data-provider/pandas_quant_data_provider_test/data_provider/test__yfinance.py | db5f9723526185060aab01287a8f9d6fb8168d82 | [
"MIT"
] | permissive | jcoffi/pandas-ml-quant | 1830ec256f8c09c04f1aa77e2eecfba07d34fe68 | 650a8e8f77bc4d71136518d1c7ee65c194a99cf0 | refs/heads/master | 2023-08-31T06:45:38.060737 | 2021-09-09T04:44:35 | 2021-09-09T04:44:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,007 | py | from unittest import TestCase
from datetime import datetime
import pandas as pd
import pandas_quant_data_provider as dp
class TestYFinance(TestCase):
def test_simple_download(self):
df = dp.fetch("APPS")
self.assertGreater(len(df), 1)
self.assertNotIsInstance(df.columns, pd.MultiIndex)... | [
"kic@kic.kic"
] | kic@kic.kic |
86adc71758661c1e2baae4ab17221033d6fafba5 | 0dc6d786a7551857cbb5de8a5fb350965b7e361a | /venv/bin/django-admin | 498244b3b3dedaba60e485d93e057a164aed360f | [] | no_license | soohyun99/Mark-at_Server | b7b70d9706490e27e698ad0c9e458759c8a4f052 | b42bbf22bbc126d9aad709b8bcbe2d9620b6fba3 | refs/heads/master | 2023-04-04T21:26:33.065921 | 2021-04-14T01:50:54 | 2021-04-14T01:50:54 | 351,669,418 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 290 | #!/Users/suhyeon/Desktop/celo/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from django.core.management import execute_from_command_line
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(execute_from_command_line())
| [
"yeo7764@gmail.com"
] | yeo7764@gmail.com | |
9bdac4dd1ec45dd0083efe7999fcb04096443744 | f374756b18f329578789e1dc370b8eec0572c47e | /ElectreTriBMInference-scip/model.py | a34ecc23d128e1ce56c3fb3e7474ec15fbfac795 | [] | no_license | ncarrico1975/ws-PyXMCDA | caab2d401eeec3334cac877dd9811e444b38488e | 2fb98f89d5082c80050b5ac0849e4e982b2c72bc | refs/heads/master | 2021-12-13T18:27:02.176784 | 2012-04-02T08:04:42 | 2012-04-02T08:04:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,821 | py | from zibopt import scip
from itertools import product
class leroy_linear_problem():
def __init__(self, a, c, pt, af, cat, epsilon=0.0000001):
self.a = a
self.c = c
self.pt = pt
self.af = af
self.cat = cat
self.solver = scip.solver(quiet=False)
self.epsilon... | [
"olivier@sobrie.be"
] | olivier@sobrie.be |
9df2e8c317df10439fcd814efb334a15c62833b7 | 164a500894ec7173d46aae1d63db44f0b015007a | /build/turtlebot_interactions/turtlebot_dashboard/catkin_generated/pkg.installspace.context.pc.py | a41605847222466c55f99c431f3890080ae0bb0b | [] | no_license | ddlyRabbit/udacity_robotics_project5 | 592b67dd1bc126d778e23b17069244fbfc2018e2 | 339da0dd624f5a28c4c294aa305507b6bd41afc7 | refs/heads/master | 2022-04-23T00:01:28.801905 | 2020-04-24T04:52:05 | 2020-04-24T04:52:05 | 258,086,688 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 402 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "turtlebot_dashboard"
PROJECT_SPACE_DI... | [
"akabhinav32@gmail.com"
] | akabhinav32@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.