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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6fb4eb76a873d3fc88f35c9106b0adf0f6670b65 | 4b028ed3ba052f96104ff5a0ec49cb8897b33c20 | /Bioinformatics-Algorithms/ubuntu-Seven/26/problem26.py | 1015429b5e8e1ce4c3deabd762943d9be3e938db | [] | no_license | ajmak/Bioinformatics-Algorithms | 3474cb91c824b4f9a369ca346569249108c6b581 | 93d0d0194341dd5a6cd6877fdd8b664a50bd9734 | refs/heads/master | 2020-03-18T02:26:12.460371 | 2018-10-29T22:34:47 | 2018-10-29T22:34:47 | 134,190,524 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,668 | py | #!/usr/bin/env python3
#Name: Allysia Mak (amak)
#Group Members:
"""
Uses the forward/backward algorithm of HMMs to calculate the probability that each node is in the most probable hidden path given the transition probabilities between hidden states and the emission probabilities of each sequence given a hidden state... | [
"amak@riverdance.soe.ucsc.edu"
] | amak@riverdance.soe.ucsc.edu |
d11100bf9ace0fb8d9238bb69856d7e8d55de85c | b54ded3401702ca301a1c8af5439b998c170191a | /amazon_filter.py | be57a634f4668b21b5d0799c8bbc02c9c0d696cd | [] | no_license | kyl3ru1z/AmazonFilterScraper | 0bdf181ebb49bb4e30ea74b9ed6c6321a8adf60f | 93c64c74491973bc612197a3c7598ee65dac24e0 | refs/heads/main | 2023-04-28T11:16:46.113978 | 2021-05-21T20:32:17 | 2021-05-21T20:32:17 | 368,325,575 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,030 | py | from tkinter import *
from bs4 import BeautifulSoup
import csv
from selenium import webdriver
import threading
root = Tk()
root.title("Amazon Filter")
root.resizable(False, False)
def getURL(product, page):
product = product.replace(' ', '+')
return f'https://www.amazon.com/s?k={product}&ref=nb_sb... | [
"noreply@github.com"
] | noreply@github.com |
2ea81a70f5853392681a2ad044988336259077ca | 64bf39b96a014b5d3f69b3311430185c64a7ff0e | /intro-ansible/venv2/lib/python3.8/site-packages/ansible/modules/network/netvisor/pn_vrouterif.py | 7f17778186a113d7de769d3a5baf96d4f0e33de6 | [
"MIT"
] | permissive | SimonFangCisco/dne-dna-code | 7072eba7da0389e37507b7a2aa5f7d0c0735a220 | 2ea7d4f00212f502bc684ac257371ada73da1ca9 | refs/heads/master | 2023-03-10T23:10:31.392558 | 2021-02-25T15:04:36 | 2021-02-25T15:04:36 | 342,274,373 | 0 | 0 | MIT | 2021-02-25T14:39:22 | 2021-02-25T14:39:22 | null | UTF-8 | Python | false | false | 15,340 | py | #!/usr/bin/python
""" PN-CLI vrouter-interface-add/remove/modify """
#
# This file is part of Ansible
#
# 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 your... | [
"sifang@cisco.com"
] | sifang@cisco.com |
ce535c8e1a1630a0b08ed8ccfc80a7fa16b3618c | b31cd3cb826e04bfd8687461a303e3abee2e674c | /consumers/faust_stream.py | 46b4f6551c6f5644e63db1b5c786ae71f98f2021 | [
"MIT"
] | permissive | bochap/dsnd-optimizing-public-transport | 6d3c6d9791ab29103637e0b08b8e7b43fe797862 | 786fbc9030642fbaf6f09e8b59df425491b1d7ab | refs/heads/main | 2023-04-24T06:15:03.264024 | 2021-05-14T19:51:13 | 2021-05-14T19:51:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,770 | py | """Defines trends calculations for stations"""
from pathlib import Path
from configparser import ConfigParser, ExtendedInterpolation
import logging
import faust
config = ConfigParser(interpolation=ExtendedInterpolation())
config.read(f"{Path(__file__).parents[0].parents[0]}/kafka.ini")
logger = logging.getLogger(_... | [
"darren@seet.dev"
] | darren@seet.dev |
df9b6ec3c51ea9ad8c25c21d87d3f8d29379fab8 | f83996a3cd95a976a36629440cf8442debab70b5 | /practice01_greedy/2875.py | d019884777104b740dae66c1afb1022a48384327 | [] | no_license | hjcdg1/baekjoon-ps-old | 048eda31d6ce9cec74169cba5f84d0301da65700 | e06894abe78813d95d7b6a3c1d9747b059d1b67d | refs/heads/master | 2023-02-19T12:58:04.599943 | 2019-07-17T13:44:34 | 2019-07-17T13:44:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 422 | py | input_data = input().split()
N = int(input_data[0])
M = int(input_data[1])
K = int(input_data[2])
def MaxTeam(N, M, K) :
max_team = 0
for i in range(K+1) :
G = N - i
B = M - (K - i)
if (G >= 2*B) :
if (B > max_team) :
max_team = B
else :
i... | [
"hjcdg197@gmail.com"
] | hjcdg197@gmail.com |
0c6a062769217d47809f80162ecb14d874a3c7e6 | 9496b49bface3a2557246cf6bd62c58467c7d2eb | /postgres/create_db_tables_sql.py | 5a04ff0b4ddc2b85c588f8b0d65007153fb8a3c1 | [] | no_license | vmos1/Databases_with_python | 8ed71c12b75c3bdbf8ed503d5a06b6ea1084aba0 | b2a54d9972d33249eb5502e0db84d7070f4d488d | refs/heads/master | 2020-07-09T03:31:05.721964 | 2019-08-22T20:14:40 | 2019-08-22T20:14:40 | 203,862,909 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,860 | py | # -*- coding: utf-8 -*-
"""
Created on Mon May 29 22:02:37 2017
@author: wijay
"""
# SQLAlchemy
import sqlalchemy as sqla
# Password and access information
import db_settings
def make_engine(NEED_PASSWORD=True,**kwargs):
"""
Makes an Engine object for interacting with SQL database.
Useful for SQLAlchem... | [
"noreply@github.com"
] | noreply@github.com |
6df36c6e616f36e98aaad4083ac2235cb08a0f6a | e637c4c75d09fb79369d4e58bb2ef72a39983033 | /site/lib/python2.7/UserDict.py | 5449782f4f9a33a82f5277b10cdddd7e24c587f9 | [] | no_license | ndrewcho/AndrewSite3.0 | d39c60c2cd49979b6c364d140536b131bbbb5d3f | cc84141bf0595706e73a047c50adb4d6dfbb6cba | refs/heads/master | 2022-10-14T18:10:05.939244 | 2019-03-04T06:00:35 | 2019-03-04T06:00:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 47 | py | /Users/ancho/anaconda/lib/python2.7/UserDict.py | [
"andycho7@gmail.com"
] | andycho7@gmail.com |
993e1f05b6625bd9b8a9e969e2a2bc0c853cb581 | 4552bce7f09cffe1770162130896c30e481f1989 | /Tensorflow components and Linear Regression/Variables.py | 16ac2f75f07572ea4151a43503576e4e67a70924 | [] | no_license | Marius-Juston/Tensorflow_Tutorial | b953745a046e068af2eb5e803180b9fdc67b9c45 | bc2217f86f31b4722426899152c6355e973de8f5 | refs/heads/master | 2021-07-17T19:11:23.685737 | 2017-10-26T03:51:46 | 2017-10-26T03:51:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,204 | py | # coding=utf-8
# In machine learning we will typically want a model that can take arbitrary inputs, such as the one above. To make
# the model trainable, we need to be able to modify the graph to get new outputs with the same input. Variables allow
# us to add trainable parameters to a graph. They are constructed with... | [
"Marius.juston@hotmail.fr"
] | Marius.juston@hotmail.fr |
99393025d8e44c931e596bb9ee46aebba296c73a | ddfa6fc28bc2eb7c0a35cdd9bd9617086aef4e9d | /sqlalch_data/main.py | e9848ae926b18e0233c092132ffaef143a14b6ac | [] | no_license | ovad4221/my-first-repository | 63a35f67eb800c94fb6dac2a7ded897de69e1758 | b0bbf6b3f789b41d791aabee0ae1f7d7d9065075 | refs/heads/master | 2023-04-28T21:21:20.937047 | 2021-04-26T13:54:56 | 2021-04-26T13:54:56 | 310,344,152 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 666 | py | # from flask import Flask
# from data.db_session import *
# from data.__all_models import *
# import datetime
# app = Flask(__name__)
# app.config['SECRET_KEY'] = 'yandexlyceum_secret_key'
name = input()
global_init(name)
db_sess = create_session()
departament = db_sess.query(Department).filter(Department.id == 1).f... | [
"andrey22ovs@yandex.ru"
] | andrey22ovs@yandex.ru |
7540c67ee87e4363953e1932e1e8090ac2b4bef0 | 444079944e66d19dd8a01fe9834b43d7aa5fc427 | /DRRQueue.py | 0083c37ff00f549cd00373f0ef062d82bde4f67b | [
"Apache-2.0"
] | permissive | dound/vns | 6ea2a6560a87fc86c6533a7e4532d61af908894d | 675c581fa18b57b801782079ed33f7b095898c7f | refs/heads/master | 2016-09-05T23:17:28.078179 | 2011-04-30T20:40:25 | 2011-04-30T20:40:25 | 288,103 | 20 | 9 | null | 2020-02-01T01:25:56 | 2009-08-25T21:54:12 | Python | UTF-8 | Python | false | false | 2,958 | py | """The DDRQueue module implements a Queue subclass for use with Deficit Round
Robin (DRR) like algorithms."""
from Queue import Queue, Empty
class DRRQueue(Queue):
"""Implements a queue for use with a DRR-like algorithm. Each queue tracks
"quanta" available to it (some unit of work - for the original DRR, th... | [
"dgu@cs.stanford.edu"
] | dgu@cs.stanford.edu |
6e591a5e888418ed9a9c93a7560a9da591c60be4 | 5537eec7f43098d216d2b550678c8d10b2a26f09 | /venv/tower/lib/python2.7/site-packages/awx/main/migrations/0033_v303_v245_host_variable_fix.py | fad3545b65c1e39e6a6594561e71708a6219f49d | [] | no_license | wipro-sdx/Automation | f0ae1512b8d9d491d7bacec94c8906d06d696407 | a8c46217d0fbe51a71597b5db87cbe98ed19297a | refs/heads/master | 2021-07-08T11:09:05.314435 | 2018-05-02T07:18:54 | 2018-05-02T07:18:54 | 131,812,982 | 0 | 1 | null | 2020-07-23T23:22:33 | 2018-05-02T07:15:28 | Python | UTF-8 | Python | false | false | 661 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations
from awx.main.migrations import _migration_utils as migration_utils
def update_dashed_host_variables(apps, schema_editor):
Host = apps.get_model('main', 'Host')
for host in Host.objects.filter(variables='---'):
... | [
"admin@example.com"
] | admin@example.com |
99fce1ecb787c18902799b2a92f8c625db4e2b4d | 342c87b969201085292187020e84e39b3464dd87 | /20200326-clojure/patterns/01_functions_first_class_python_solution.py | fa1dfeb80a5a094afb434e74ce48343a20b8ae70 | [] | no_license | shimf/webinar-live-demos | de5ab2d57c2cc4d6a51d7eeed045e21b4a52fe1a | 50f86b17994ed0393c04c46242516b5df5cef2f7 | refs/heads/master | 2022-08-26T21:39:43.883045 | 2020-05-21T07:52:31 | 2020-05-21T07:52:31 | 265,782,740 | 0 | 0 | null | 2020-05-21T07:23:31 | 2020-05-21T07:23:30 | null | UTF-8 | Python | false | false | 123 | py | from functools import partial
from operator import mul
nthice = [partial(mul, n) for n in range(10)]
print(nthice[2](3))
| [
"ynonperek@gmail.com"
] | ynonperek@gmail.com |
e8a782721bbf9f2e0b90136ec3ba69e9444d0a8b | d823a70b13068c400cd464bbffa6afd83960bc63 | /Unit3/unit3-demo2.py | d40431dfebb52050c0511ea8b997986275bac629 | [] | no_license | shoroogAlghamdi/test | 4ca4c6b68ea5b0f56750a42d88206c3555d23578 | a065e8da1fb8bcf2f2f2319f708cd8a13e44671f | refs/heads/master | 2023-03-12T15:54:57.068519 | 2021-02-27T17:40:06 | 2021-02-27T17:40:06 | 342,911,409 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21 | py | # Slide 87
PI = 3.14
| [
"shoroogalghamdi@gmail.com"
] | shoroogalghamdi@gmail.com |
fcfa541786efdf708af33218c5b1e43023b7d2fe | 3c1ab7f12b8b9d27be83a6df32d642dbc5bd2485 | /articles/migrations/0002_genre.py | b42207f07fc5147495fe71b9212214118b1fb74f | [] | no_license | darkshredder/DRF-articles | e444b54c37beaaeb01fd3758c5e257c6431ddfae | 5efc7624caecd7d22346bfef084fad050b44af0e | refs/heads/master | 2023-08-07T12:39:40.028036 | 2020-05-04T11:52:52 | 2020-05-04T11:52:52 | 261,132,915 | 0 | 0 | null | 2021-09-22T18:58:24 | 2020-05-04T09:35:51 | Python | UTF-8 | Python | false | false | 507 | py | # Generated by Django 3.0.5 on 2020-05-03 21:38
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('articles', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Genre',
fields=[
('id', m... | [
"srivastavayash58@gmail.com"
] | srivastavayash58@gmail.com |
edcebd13951c3e55352ce8f87618507b037bd632 | 74a188c3470cba0d69c437fe1c1b93e63d8327b8 | /part1/lesson25_part1_practice/support/core/migrations/0001_initial.py | 43d7c443b8b25f4ae87f64c721332d5c64850a8e | [] | no_license | skypro-008/lesson25 | 81aa8155409ed600eab1aea0c454632a2822f051 | 2d2c91879cde763743a22477e813218e00cb5a76 | refs/heads/master | 2023-08-28T15:46:25.400658 | 2021-09-20T15:26:45 | 2021-09-20T15:26:45 | 407,803,797 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,715 | py | # Generated by Django 3.2.6 on 2021-08-31 16:20
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Issue',
fields=[
('id', mod... | [
"aalmukhametova@gmail.com"
] | aalmukhametova@gmail.com |
b0b2ae1cb3d2abc4514303c32a593f0ded0f18e7 | 295064cac7177f425d4dee5418448f9e0117ef01 | /blog/migrations/0001_initial.py | 8fba89f551b7c6d337705589a85bee85d4b4baee | [] | no_license | jayymir/my-first-blog | ad052eb302fbb8e2ac758c02f708b657f75cb7a6 | a1288f3e752e5c9e186f3c23c1610cc4d2567567 | refs/heads/master | 2021-05-15T03:54:09.120208 | 2018-02-03T18:09:01 | 2018-02-03T18:09:01 | 120,036,595 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,052 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.10 on 2018-02-02 21:04
from __future__ import unicode_literals
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
dep... | [
"jmiranda@unomaha.edu"
] | jmiranda@unomaha.edu |
62a008dd18e25b996202f27f6632149fb0406118 | 1e5e73c9fcbacf68b4f55e39556d7f9dd4f13788 | /venv/Scripts/pip3-script.py | 7171bb6ee7b973aa6376fc6001dd63629a64d4d5 | [] | no_license | topherclay/imagesplitter | 00c92413e01e2ad0bbc7737d4ff1faa30b8eabe4 | fd21a7ecbcdbe907daafd37aceb82ba19546a897 | refs/heads/master | 2021-05-21T07:52:45.640526 | 2020-04-09T20:14:46 | 2020-04-09T20:14:46 | 252,605,978 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 419 | py | #!C:\Users\tophe\PycharmProjects\imagesplitter\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3'
__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... | [
"56948312+topherclay@users.noreply.github.com"
] | 56948312+topherclay@users.noreply.github.com |
4a13bb3a24415b98dd38d226476596a4a3f438f5 | ce5a060f7372cee1f7b3dc0cc86bb5b313d221c8 | /coffee/migrations/0007_auto_20170412_2211.py | a51998939592f632f8b95831aa5e4e9f1e48d2e8 | [] | no_license | zimnukhov/coffee | 00908d8539810a9c3813c610590877acd18a75d7 | 2f3d933886feb31fbcd6255eeb1d4263a9255a09 | refs/heads/master | 2022-12-04T18:43:06.570305 | 2021-01-17T20:42:55 | 2021-01-17T20:42:55 | 97,648,681 | 0 | 0 | null | 2022-11-22T07:24:31 | 2017-07-18T22:16:55 | Python | UTF-8 | Python | false | false | 714 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.6 on 2017-04-12 19:11
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('coffee', '0006_auto_20170409_0219'),
]
operations = [
migrations.AddField(
... | [
"zimnuhov@gmail.com"
] | zimnuhov@gmail.com |
b43664989e493885000eedfb7870c548fbf6dfe8 | e5023a3a6c222cbcdb7513ed9a978e30817a0df6 | /projects/SegDet/run_test_autoaug.py | 3df67287ed9aa57689db55b3dabb0f165ea32975 | [
"Apache-2.0"
] | permissive | Vandmoon/detectron2 | ff13fa93a95d1ac17c1a6618ebd5c0d2c0455aeb | 53ea16c5d9f401e9a6f1b05eead71975102d92e4 | refs/heads/master | 2022-04-26T18:58:20.718175 | 2020-04-30T15:24:45 | 2020-04-30T15:24:45 | 259,510,707 | 0 | 0 | null | 2020-04-28T02:31:52 | 2020-04-28T02:31:52 | null | UTF-8 | Python | false | false | 1,688 | py |
from autoaugment import autoaugdet
import cv2
import numpy as np
import tensorflow as tf
tf.enable_eager_execution()
def aug():
image = cv2.imread("000000011051.jpg")
bboxes = [ [195.45,197.97,61.16,226.63],
[249.33,77.09,385.44,458.91],
[7.23,2.41,386.64,525.16]
... | [
"liuyuanliu88@gmail.com"
] | liuyuanliu88@gmail.com |
ec290ea7dbb25facb40bfc13f1990d5e0bae030c | bb59a10eff428158e9cd88202f239abab2aa9f6c | /src/simple_list.py | 34849dab7495ff3a22f271655b00a48e332fb569 | [] | no_license | maemo-leste-extras/quicknote | 7eea5e33ebbb86dc35bd9c497af940c6d3ec514e | 28021bb7ed678fb374207caef175020272e27d78 | refs/heads/master | 2022-12-22T14:13:37.309000 | 2020-04-16T18:10:25 | 2020-04-16T18:10:25 | 240,957,512 | 1 | 1 | null | 2020-04-16T15:35:43 | 2020-02-16T20:04:24 | Python | UTF-8 | Python | false | false | 4,859 | py | #!/usr/bin/env python2.5
# -*- coding: utf-8 -*-
"""
Copyright (C) 2007 Christoph Würstle and in big parts by Gerold Penz
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License version 2 as
published by the Free Software Foundation.
"""
i... | [
"eopage@byu.net"
] | eopage@byu.net |
60bccdd0b292adf076dd2409f1527cfdfa80ee7b | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /q5jCspdCvmSjKE9HZ_10.py | d11123755af6974e993ef6ec8e17acbdeed16337 | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 240 | py |
def lcm(a,b):
if a<b:
a,b=b,a
for i in range(b,a*b+1):
if i%a==0 and i%b==0:
break
return i
def lcm_of_list(numbers):
m=lcm(numbers[0],numbers[1])
for i in range(2,len(numbers)):
m=lcm(m,numbers[i])
return m
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
8ef954aada42e083f2a2da61f1ee216b2dbc7c28 | 09d23b4416a3295671b8208bfdd986d7f742a7f5 | /scripts/word_models/lda.py | 26ed743aa6591a661c920f76460f26df25ef2d84 | [] | no_license | reidmcy/csc-2611-final-project | 8aa007e57b4dfa012fc89bccb553b5925dd6cdb3 | 826ba1822df2aa776ec335b30241de2ae4c11b6a | refs/heads/master | 2020-05-04T19:12:55.883441 | 2019-04-05T23:34:33 | 2019-04-05T23:34:33 | 179,383,138 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,841 | py | import gensim
import pandas
#import swifter
import json
import re
import multiprocessing
import os
import os.path
import nltk
import nltk.stem.porter
from nltk.corpus import stopwords #For stopwords
from gensim import corpora, models
import gensim.models.ldamulticore
sWords = set(stopwords.words('english'))
punc... | [
"reidmcy@gmail.com"
] | reidmcy@gmail.com |
01c4efa3c1f2bead9a6b9e6d8236a273031c1481 | 268921e7608d5094db72158bb644aff526b11950 | /app/example/countdown.py | b4035084fc0e0769ccec601948461dad09970689 | [] | no_license | lrtao2017/pythonqzs3 | 2a1871bdebc67f93f12c382e254c1ec9f1697f52 | def59547a82f88fb70393291d6a5f029fcd4f238 | refs/heads/master | 2020-03-22T05:51:36.465820 | 2018-11-16T07:46:16 | 2018-11-16T07:46:16 | 139,595,009 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 253 | py | #!/usr/bin/env python
__author__ = "lrtao2010"
# python3.7 倒计时
import time
for i in range(10,-1,-1):
print('\r','距离游戏结束还有 %s 秒!' % str(i).zfill(2),end='')
time.sleep(1)
print('\r','{:^20}'.format('游戏结束!'))
| [
"lrtao2010@163.com"
] | lrtao2010@163.com |
32bf24d2313f577153c7829b8cb6ac826ff2e0ed | f1b01af5770754fd813120e68baf66a57b513e83 | /JIHYUN/0706/pdtest.py | b4ff8dc8f5997cf04bb4d0b1f4291872f1cded03 | [] | no_license | Kangwon-MCULab/Tomatocrew_Project | 5f56f2be950f92d82b8d0457ea82013a313e42de | dd3f019a16a904e73cb98bb65f173574474035c0 | refs/heads/main | 2023-06-18T05:13:24.559052 | 2021-07-21T13:03:31 | 2021-07-21T13:03:31 | 380,467,488 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 133 | py | import pandas as pd
data=[0,1,2]
df1 = pd.Dataframe({'Roll':[data[0]], \
'Pitch':[data[1]], \
'Yaw':[data[2]]})
print(df1) | [
"psyche0w0@kangwon.ac.kr"
] | psyche0w0@kangwon.ac.kr |
1cc80ab7f1cc14d254b7aa8d4c1063259b1c3fbb | 45b180004c441663bd223219f8edef8c82481be1 | /color.py | 9c26e029d1b9faa98fc5d9d1338fca7c4d1aa9db | [] | no_license | bradbann/mypy | a679e22fdd04525faf32a73934d813a45af1092f | 8bf6234be438aaf3ce2b69e4c10b2ce84eaccb98 | refs/heads/master | 2023-02-19T14:21:59.362385 | 2020-12-31T09:35:11 | 2020-12-31T09:35:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 238 | py | from colorama import Fore,Back,Style
import colorsys
print(Fore.BLACK + 'some red text')
print(Back.BLUE + 'and with a green background')
print(Style.DIM + 'and in dim text')
print(Style.RESET_ALL)
print('back to normal now') | [
"127575708@qq.com"
] | 127575708@qq.com |
4ea931b66ee2473b13527da21d8e8b4fdc42b47b | 0bab33d355ee30502c2f5cead12e5390709197ac | /my_pyfirmata/my_util.py | a614ae6bac829779b0c785c59719da377c5db5b0 | [] | no_license | infinity922/ENGG160_Repo | 03ecbc61a77439900195d4eac94f08da93e6e6f7 | 8006f95a6972ce5e65107bf0ebd08b987455a020 | refs/heads/master | 2020-12-18T12:05:18.099415 | 2020-04-08T23:41:07 | 2020-04-08T23:41:07 | 235,373,469 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,424 | py | from __future__ import division, unicode_literals
import os
import sys
import threading
import time
import serial
from my_pyfirmata.boards import BOARDS
def get_the_board(
layout=BOARDS["arduino"], base_dir="/dev/", identifier="tty.usbserial"
):
"""
Helper function to get the one and only board connect... | [
"ethanmcghan7@gmail.com"
] | ethanmcghan7@gmail.com |
46581745b01479077c5e472cd36cc96142f1663b | 851f31c34c50cd869c1b3552c61629b7b37c46a9 | /test.py | 2a218abb13e1bf9444a7e3d71bf2f83c25699f28 | [
"Apache-2.0"
] | permissive | DragonBanana/advanced_algorithm_circuit_retiming | c8497c44998cb7e7c4ae8d5ac3ca0da0d0d7dc4e | d13949aa0d871159a0061aa926d5ef7af5e1440c | refs/heads/master | 2022-11-25T17:23:39.855377 | 2020-08-03T18:23:14 | 2020-08-03T18:23:14 | 280,196,732 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,827 | py | import time
import numpy as np
import networkx as nx
import matplotlib.pyplot as plt
import algorithm
import graph_utils
import gen_circuits
def test_graph(G: nx.DiGraph, expected_clock):
W, D = algorithm.WD(G)
# Using OPT 1
time_1 = time.time()
Gr_1 = algorithm.OPT_1(G, W, D)
time_1 = time.time()... | [
"10493858@Polimi.it"
] | 10493858@Polimi.it |
72eca21d29f394b5802ddb375bcaf3386a056e91 | 4843e2add507d7433ac6969e1f46dd0403f828cb | /players/3_edition/players.py | 4f7ce01b877cdc391efc8fea64069db475ea3f40 | [
"MIT"
] | permissive | blguweb/hand-pose-estimation-practice | 9c9857ef68348f70583c155c782c29b60124fa56 | cbc6dae96a22e36ad50ab63f4959bd9c6c80e4fb | refs/heads/main | 2023-05-14T01:05:31.489940 | 2021-06-04T07:45:13 | 2021-06-04T07:45:13 | 372,149,538 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,283 | py | from __future__ import print_function, unicode_literals
import os
import numpy as np
import pybullet
import pybullet_data as pd
import ProcessFramesMoviePy as pf
import time
import random
import math
## 规则 文字显示 左边先开始,文字显示的时候标志恢复正常 提取变成 0 ifcount = 0 则文字显示 游戏结束
# ROBOT_URDF_PATH = "./ur_e_description/urdf/ur5e.urdf"... | [
"528774315@qq.com"
] | 528774315@qq.com |
88e97776f2dcc40e428edb17c7c0b4271f3e1855 | 4d995c70ab763e0422ed52e76a3aef9a48208023 | /tests/test_data_processors.py | e2b6a855b09d563ab4023b41385a7ba32cb9a542 | [] | no_license | QualiSystems/cloudshell-autodiscovery | b254008c3422b525cdb72d4c2716ef5771a38b8a | 9ed9e8e74fcf12cb7f7c7fd945f8bc4fae6d5755 | refs/heads/master | 2021-06-03T17:45:36.975215 | 2019-05-30T13:39:30 | 2019-05-30T13:44:48 | 83,421,029 | 1 | 1 | null | 2021-03-25T22:03:43 | 2017-02-28T10:44:13 | Rich Text Format | UTF-8 | Python | false | false | 7,409 | py | import unittest
import mock
from autodiscovery.data_processors import JsonDataProcessor
class TestJsonDataProcessor(unittest.TestCase):
def setUp(self):
self.filename = "example.json"
self.logger = mock.MagicMock()
self.json_data_processor = JsonDataProcessor(logger=self.logger)
@mo... | [
"anton.p@qualisystems.com"
] | anton.p@qualisystems.com |
7c27454a6e1ee7d92a331fbe335f0b1067aae12f | a9143ba1a459ee56a73cca3538b803b962a0cdc2 | /neural_networks/min-char-rnn.py | 806b68b63c6c3524e39b0eb3f7e131459e412c18 | [] | no_license | spectraguy/scratchpad | a29c88a2de1ac9948715a12304cfa3d24961c432 | 52815ef5737a96f34c51fa9f28b555063cbef69a | refs/heads/main | 2023-03-29T13:36:28.211032 | 2021-04-06T23:30:12 | 2021-04-06T23:30:12 | 355,356,127 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,545 | py | """
Minimal character-level Vanilla RNN model. Written by Andrej Karpathy (@karpathy)
BSD License
Modified 2021 for scratchpad project
"""
import numpy as np
# data I/O
data = open('bible.txt', 'r').read() # should be simple plain text file
chars = list(set(data))
data_size, vocab_size = len(data), len(chars)
print('... | [
"noemail@nothing.com"
] | noemail@nothing.com |
86274f2d6be5ec0e61d7bdcfd74fd71805bf9bb9 | 0b3024565732948d36cb1ada431274db7fb2d6f1 | /PublicReference/config.py | 9559073ec5f12b9d486615af8f062953b627adf7 | [] | no_license | Luyaojun/DNFCalculating | adaa5b761e34985661d0c994ad52a63f092c6e62 | 02d701ec63ed083a8b7043229dfceb758e426cae | refs/heads/master | 2022-11-17T11:04:00.245554 | 2020-07-18T07:07:32 | 2020-07-18T07:07:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,886 | py | import configparser
conf = configparser.ConfigParser()
conf.read('./ResourceFiles/set.ini', encoding='utf-8')
#窗口缩放
try:
窗口显示模式 = conf.getint('窗口显示', 'value')
except:
窗口显示模式 = 0
#不计算装备属性,武器类型为角色武器选项第一个
try:
调试开关 = conf.getint('调试开关', 'value')
except:
调试开关 = 0
#输出搭配和伤害数据到csv
try:
输出数据 = conf.geti... | [
"wxh_email@yeah.net"
] | wxh_email@yeah.net |
6ad7a414e3923e60dc68a9f210c1bd4e1725160f | 0ba87b2ae2376637bfdb4bdfbce947d496c04fa6 | /download.py | 251931fdd64d713bac6153712df507f11cec0948 | [] | no_license | Janetlili/python-danmu-analysis | 803841144b79dfb8560f5e0fd1edafcfa24ce700 | 73c35a997391e5fc15caeeac7c26a7070614593e | refs/heads/master | 2023-01-27T19:21:22.964364 | 2020-12-04T07:01:44 | 2020-12-04T07:01:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 315 | py | '''依赖模块
pip install requests
'''
import re
import requests
url = input('请输入B站视频链接: ')
res = requests.get(url)
cid = re.findall(r'"cid":(.*?),', res.text)[-1]
url = f'https://comment.bilibili.com/{cid}.xml'
res = requests.get(url)
with open(f'{cid}.xml', 'wb') as f:
f.write(res.content) | [
"878972272@qq.com"
] | 878972272@qq.com |
49780bf639b137e36a419e1e5944994d3003c25c | c308a2e16c3389fce95f270f3317b325e5b7e5ad | /venv/Scripts/django-admin.py | 83faf5c81428fdd54de07429343260182b92fe58 | [] | no_license | PentaKing/adsringtest | b89580ccd436006167e7cc9e244c39c45799dd3c | aeac26c841f73c13b4d8349113bf949c96001815 | refs/heads/master | 2020-07-15T08:18:37.269763 | 2019-08-31T08:56:13 | 2019-08-31T08:56:13 | 205,520,224 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 159 | py | #!E:\learnPython\adsringtest\venv\Scripts\python.exe
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| [
"cd_penggy@163.com"
] | cd_penggy@163.com |
931f71fcbef722259a19536ae1aa215fd0b464a8 | 5ee8bf8b9c8e965f1eea5ea0ba8dbb06b17faf8a | /rabbitmqDb.py | 677143d7b8368105a58d90b0566201576d3399a4 | [] | no_license | tarun73/frameWork | 04a1280ed6eefb75a7a1ef0b007c86959c24e091 | b43d5cdc7dc190e04d245f642e9ee92bb9b3c5d1 | refs/heads/master | 2021-06-12T15:20:21.672249 | 2018-12-17T14:01:41 | 2018-12-17T14:01:41 | 162,020,409 | 0 | 0 | null | 2021-03-20T00:24:35 | 2018-12-16T16:35:28 | Python | UTF-8 | Python | false | false | 1,713 | py | import pika
import config
rabbitMqconnection = None
rabbitMqPublishChannel = None
rabbitMqConsumeChannel = None
def getRabbitMqConnection(host):
global rabbitMqconnection
if rabbitMqconnection is None :
rabbitMqconnection = pika.BlockingConnection(
pika.ConnectionParameters(host=host,heart... | [
"tarunr@policybazaar.com"
] | tarunr@policybazaar.com |
e2c8f5b29aafd526a580fbf17267f1a96aca574e | 4b22b5acd7ec97e5b1e934547d106e2408f84343 | /gosocialserver/auth.py | a0b8b8685c4358f54c9a2e4cd579906bb7c1ca56 | [] | no_license | kazemnejad/gosocial | 69d0a25bdb33d2be3984c863c4469c2f7305a5b8 | 4d247cf25d96aab4ad1fef81f00363864ad6f531 | refs/heads/master | 2021-01-22T15:50:05.157461 | 2016-05-18T04:31:47 | 2016-05-18T04:31:47 | 57,594,969 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 195 | py | class AuthExceptions:
class UserExistException(Exception):
pass
class FailedRegistration(Exception):
pass
class InvalidCredentialsException(Exception):
pass
| [
"ah.kazemnejad@gmail.com"
] | ah.kazemnejad@gmail.com |
6d8aecc8c41ff3f7b51eb4678cc55f2310d9c393 | ed7e61c8eef7fb2213adeb67557d605470c17fb3 | /ML/50-mlps/28-keras-cnn-big-filters/create_validation_curve.py | f39496852849e0b8a1383a08607ff10c06e7c771 | [] | no_license | MartinThoma/algorithms | 535840224323822f2ea6b7dd6f82a0fdd22a0ff9 | a251e9599b685dbf89c891f02d20fefd8538ead5 | refs/heads/master | 2023-02-23T17:58:10.913634 | 2023-02-21T05:58:59 | 2023-02-21T05:58:59 | 4,939,076 | 241 | 126 | null | 2023-02-16T05:16:23 | 2012-07-07T16:07:23 | Python | UTF-8 | Python | false | false | 780 | py | #!/usr/bin/env python
"""Visualize validation curve."""
import matplotlib.pyplot as plt
import pandas as pd
Y_SCALE_FACTOR = 100
# Prepare dataframe
df = pd.read_csv('log.csv', sep=';')
df = df[['epoch', 'acc', 'val_acc']]
df[['acc', 'val_acc']] = df[['acc', 'val_acc']] * Y_SCALE_FACTOR
df = df.set_index('epoch').r... | [
"info@martin-thoma.de"
] | info@martin-thoma.de |
1ff894b644f931b8a943d66f9db5730eb5d8262e | bd18d7c30774ddd6ba1c5a263ba013cc1e641c96 | /POS Tag Classifier/Scorer.py | dfdbf99bfd417372c5101ea503fefff3e50a588a | [] | no_license | jonas060/Natural-Language-Processing | 9b8b67d7f93dcf6235e27cd9e30834d5f8845408 | b03792693103c0de570e53626ce63375a4ca876b | refs/heads/master | 2021-07-10T20:03:07.010730 | 2021-02-15T18:11:43 | 2021-02-15T18:11:43 | 228,664,767 | 0 | 1 | null | 2021-02-15T18:11:43 | 2019-12-17T17:09:30 | Python | UTF-8 | Python | false | false | 3,803 | py | #Author: Alex Jonas
#Welcome to Scorer.py! Where we test your decision list created in Tag.py and see how well the algorithm did indicated by: Number of correct and Incorrect POS tags, Overall Accuracy in Percentage, as well as
#Confusion Matrixes created for Correct, Incorrect, and Should have been POS tags with count... | [
"Jonas060@d.umn.edu"
] | Jonas060@d.umn.edu |
c332706965c0bf5c72c4e5bafee81d25c543b49f | 5f2e4dea2a8adaa9c10e278b8871bbf4623bf188 | /project2/pipelines.py | 4e9f2509e360b30b56c6bc6ceff06d472fa1b70f | [] | no_license | Crispae/scrapy-projects | 2c72d50b62d0b75c91b2c824db8b6e04b1f52c8f | 45ee1ed249bafda9583712847839a83efce4965c | refs/heads/master | 2023-01-14T14:14:08.402379 | 2020-11-19T07:07:03 | 2020-11-19T07:07:03 | 313,271,699 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,298 | py | # Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: https://docs.scrapy.org/en/latest/topics/item-pipeline.html
# useful for handling different item types with a single interface
from itemadapter import ItemAdapter
import sqlite3
import os
class Project2Pipe... | [
"Sritwik396@gmail.com"
] | Sritwik396@gmail.com |
5ca3a3da95dfa01675de20c2a2689d7b0c4568a5 | b9faae037d6c2fb69406aa1f2e86f42d3a6225ce | /data/snippets/github.com/kkkmmu/useful_script/python/function.py | 07ead533d318ceefbec699c872dfd32f30dc60cf | [] | no_license | lovefcaaa/snk.dev-assistant | 9eaedd448ee2c3f532aa7acdbee1ff1d91f9c07f | 20ffcdddba19102348d75235f7d6d557c2386e69 | refs/heads/master | 2023-07-09T14:12:55.141283 | 2018-06-25T14:18:49 | 2018-06-25T14:18:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,842 | py | print(abs(-110))
print(max(1, 5, -10, 10))
print(int("123"))
print(int(1.24))
print(float("1.2345"))
print(str(1.23))
print(str(1000))
print(bool(100))
print(bool(-1000))
print(bool(0))
print(bool(None))
a = abs
print(a(-1234))
print(hex(1234))
def mabs(x):
if x >= 0:
return x
else:
return... | [
"rosco_pecoltran@msn.com"
] | rosco_pecoltran@msn.com |
576b0a80224d85071aba025ea5b76af8820e020b | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_132/ch16_2019_03_29_18_09_22_468927.py | b8183210d987ac4a8541d274fe872e653ee8da67 | [] | 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 | 116 | py | import math
def distancia_euclidiana(x1 , x2 , y1 , y2):
d = math.sqrt((x2 - x1)**2 + (yb - ya)**2)
return d | [
"you@example.com"
] | you@example.com |
cececc034bc50eef4cc153484bf19365c36c7743 | ece39cda15325e5e36c959a273fc2aab82a590b1 | /leetcode/medium/reverse_linked_list_ii/py/solution.py | 98b738f4be3417b737f3e88a284f4e61225c0848 | [
"MIT"
] | permissive | lilsweetcaligula/sandbox-online-judges | bc60283716f42d43cfc18bbc9a1058e872f8f308 | 48454a8e6b5b86f80e89eca1b396480df8960cfd | refs/heads/master | 2021-06-10T18:06:14.737911 | 2017-03-07T05:45:57 | 2017-03-07T05:45:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,046 | py | # Definition for singly-linked list.
# class ListNode(object):
# def __init__(self, x):
# self.val = x
# self.next = None
class Solution(object):
def reverseBetween(self, head, m, n):
"""
:type head: ListNode
:type m: int
:type n: int
:rtype: ListNode
... | [
"noreply@github.com"
] | noreply@github.com |
548e9695266d5aa4754683692a56feaae06ac018 | cecc729f84bd8d19d7cca55ac7173354c508ae81 | /fadedglorybotsite/fadedglorybotsite/asgi.py | 40dda3b6024aeb9df9648838f1b6aea5731163c2 | [] | no_license | jbw716/FadedGloryDiscordBot | 388a28736e61933111f084d956c24f6eea539a7f | f4daacc08001f00d6fc93f1903b5c3f83403164c | refs/heads/master | 2021-09-26T04:39:16.214072 | 2020-01-13T01:58:55 | 2020-01-13T01:58:55 | 233,272,715 | 0 | 0 | null | 2021-09-22T18:25:09 | 2020-01-11T17:48:23 | Python | UTF-8 | Python | false | false | 411 | py | """
ASGI config for fadedglorybotsite project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJ... | [
"jbw71699@gmail.com"
] | jbw71699@gmail.com |
54daff19b35cff56ece9935bdee270f55fe30599 | 8112404d9ed3e8f9235d1da097edc396f950c331 | /Python/Introduction/Python-If-Else.py | 9ccaf493fb0bf441e4e0362b352442aed5066794 | [
"MIT"
] | permissive | stripti/Hackerrank-solutions | c3e4479ce269d8bbac7df414043353e7b978e718 | 28b0e35e5747d8efff5183ae9cece52d72253d31 | refs/heads/master | 2020-05-07T15:11:25.683407 | 2019-05-23T11:10:13 | 2019-05-23T11:10:13 | 180,626,967 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 203 | py | n = int(raw_input())
if n%2!=0:
print("Weird")
elif n%2==0:
if n in range(2,5):
print("Not Weird")
elif n>=6 and n<=20:
print("Weird")
if n>20:
print("Not Weird")
| [
"stripti411@gmail.com"
] | stripti411@gmail.com |
e30ee5b11b3bf2cfe04eb10315512bde5c324b7a | 807d0d51b02690ba1ff387285ad46d3cad4a297b | /game project/Level.py | 3fafdff54b202692a429bb4ce896150fafa0e3c3 | [] | no_license | courtmok/witch-and-princess | 07efd3e6bc9bc9de260f518e1579f14f0c42e254 | 799b812ba58545ddd67b0c9c09b6a5b19e45eba1 | refs/heads/master | 2021-08-07T14:28:58.740217 | 2020-05-02T08:54:56 | 2020-05-02T08:54:56 | 167,565,829 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,286 | py | import pygame
#import platforms
from platforms import *
from Player import *
BLACK = (0,0,0)
WHITE = (255,255,255)
GREEN = (0, 255, 0)
RED = (255, 0, 0)
BLUE = (0,0,255)
SCREEN_WIDTH = 800
SCREEN_HEIGHT = 600
class Level():
def __init__(self, player):
self.platform_list = None
#self.enemy_list = N... | [
"noreply@github.com"
] | noreply@github.com |
a892c3b8705ffa0ffda05544d3ee3374853c0d4a | 65f548bbeb62d7f2476351bda7b723dab216ce08 | /train_scripts/trainScriptNN.py | aae161d89eeaafeb65bc1a94037985b9c6919291 | [] | no_license | StefanPushkov/TestDocker | f6148db20e2f50694528f88a837e4c517e5a8afe | aecdd0b5207e9f93950faa51535a888d62bb67c1 | refs/heads/master | 2022-11-21T08:44:00.607204 | 2020-07-20T10:46:39 | 2020-07-20T10:46:39 | 280,253,224 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,911 | py | import torch
import torch.nn as nn
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
from sklearn.model_selection import train_test_split
from torch.utils import data as data_utils
from sklearn.preprocessing import StandardScaler
from sklearn.metrics import roc_curve, auc
from... | [
"stefan.pushkov@icloud.com"
] | stefan.pushkov@icloud.com |
2f9e211d16bca597f7097e66e35d565757724055 | 37bfb51518f5ff6ff3adcbe5c254666ce4832f20 | /Python Primary Number testing.py | 2198863f4b3a3ac7a6e65d314a58da47214729db | [] | no_license | harun-bs23/day-1 | 3880bf4521e86f8e44f443da7e283edbf11899d6 | ba483d40184cf70f00ef15319ac23a0db0e1185d | refs/heads/master | 2021-01-13T12:59:46.677142 | 2017-06-21T10:58:48 | 2017-06-21T10:58:48 | 94,994,720 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,157 | py | import math
maxN = 10000007;
flag=[];
index={};
index2={};
def sieve():
flag.append(0);
flag.append(0);
for i in range(2,maxN):
flag.append(1);
limit = int(math.sqrt(maxN))+1;
i=2;
idx=1;
while(i<limit):
if(flag[i]==1):
index[i]=idx;
index2[i... | [
"harunur@bs-23.com"
] | harunur@bs-23.com |
d752107b0bef0548c40e60899e503cbb6f684139 | 039c06c65feb193e8de9e01b40f85d6eeb71e1f4 | /data/dualpath.py | 44b7ebf82469353db4a32c943f5b727e73d9eaef | [
"MIT"
] | permissive | nowander/BraTS2018-tumor-segmentation | e4b4cd37576cc1802aae2459cd706c4bea3bb15a | 6c81ab670f7bd035312f7ccd729776c5c05c47a3 | refs/heads/master | 2022-11-17T11:06:57.406591 | 2020-07-17T02:48:12 | 2020-07-17T02:48:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,888 | py | #echo $OMP_NUM_THREADS
import pickle
import time
import os
import torch
from torch.utils.data import Dataset
from .rand import Uniform
from .transforms import Rot90, Flip, Identity, Spatial, Compose
from .transforms import GaussianBlur, Noise, Normalize, RandSelect
from .transforms import ToNumpy, NumpyType, ToTensor,... | [
"poyu_kao@ucsb.edu"
] | poyu_kao@ucsb.edu |
6634da207df73bf435953807b98cb2f9663aeea0 | 3d705ec48c94373817e5f61d3f839988910431e3 | /misc/tool/player/create_m3u8.py | 9a477d1647cb3a6a26eaa517614fc0aad8c674d8 | [] | no_license | namesuqi/zeus | 937d3a6849523ae931162cd02c5a09b7e37ebdd8 | 3445b59b29854b70f25da2950016f135aa2a5204 | refs/heads/master | 2022-07-24T14:42:28.600288 | 2018-03-29T08:03:09 | 2018-03-29T08:03:09 | 127,256,973 | 0 | 0 | null | 2022-07-07T22:57:57 | 2018-03-29T07:53:16 | Python | UTF-8 | Python | false | false | 475 | py | # coding=utf-8
"""
不停地将m3u8子片段写入文件
用于测试直播播放器的模拟器
__author__ = 'zengyuetian'
"""
from random import randint
import time
if __name__ == "__main__":
for i in range(124):
time.sleep(randint(1, 4))
with open("zeus.m3u8", "a") as f:
url = "http://buddiestv.qiniudn.com/sUWPWh5odxh9vtorJ2tsEu... | [
"suqi_name@163.com"
] | suqi_name@163.com |
da449113cf173dbbfbed242db2940a627675b7b9 | 51f6fb7165fb2f1a91524a95f4ee6c31ac2f5bfe | /Data 2/manaDrain.py | bead3acee08986d81a81910d54198430740903ac | [] | no_license | SamCumings/ManaMaking | 5b59f632b0255b9ae629872f3984963c125729b5 | 9f3608beabd7a8c0ea58162341108106907f2e7b | refs/heads/master | 2021-01-10T15:33:07.605409 | 2015-11-30T06:31:45 | 2015-11-30T06:31:51 | 45,858,908 | 0 | 1 | null | 2015-11-18T15:57:12 | 2015-11-09T18:44:52 | Python | UTF-8 | Python | false | false | 5,339 | py | import json
import time
import re
a = open('Creature_Data2.txt','w')
b = open('Not Included.txt','w')
c = open('Creature_Cata_Arff_New.arff','w')
with open('AllCards-x.json', encoding='utf-8') as infile:
magicdb = json.load(infile)
a.write('Name' + '\t' + 'Type' + '\t' + 'Subtype' + '\t' + 'CMC' + '... | [
"thedsm@gmail.com"
] | thedsm@gmail.com |
b0f2acc333fdb31b7d83cd22298cdda5989d6f58 | 07a5a4cc4070abe25c1cd3ec7b436e9bb5b61d77 | /Lib/site-packages/mysql/connector/optionfiles.py | 0711befa2a4a779903065e3dba81a742ef205461 | [] | no_license | bopopescu/HGui_Python_Win32 | efae9cd32dd016128afb2b4f2608394d15bc8327 | b57f491274195de7c3058b035d6c51e3cd334731 | refs/heads/master | 2022-11-21T10:33:17.816196 | 2017-11-02T02:30:08 | 2017-11-02T02:30:08 | 282,014,406 | 0 | 0 | null | 2020-07-23T17:25:58 | 2020-07-23T17:25:58 | null | UTF-8 | Python | false | false | 13,678 | py | # MySQL Connector/Python - MySQL driver written in Python.
# Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
# MySQL Connector/Python is licensed under the terms of the GPLv2
# <http://www.gnu.org/licenses/old-licenses/gpl-2.0.html>, like most
# MySQL Connectors. There are special exceptions to ... | [
"gangxi.xue@100credit.com"
] | gangxi.xue@100credit.com |
717bb0be5bd5d3e07e73867dfc86c7a9a395e2f4 | 18d3e291fbae4fd085ce8a93db8dbd3e28bc1ba3 | /msclient/__main__.py | 8bc5fbfe567631f427252c8666c5880eda316c81 | [] | no_license | Rainbowlights/msspeech-client | d1e826a14740e677e85b03e84396f3867d245c6b | def7c7ceb30c1a03783026a5dc60007c9bb0c599 | refs/heads/master | 2020-04-01T19:34:21.611309 | 2018-10-18T03:52:28 | 2018-10-18T03:52:28 | 153,560,568 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 315 | py | #!/usr/bin/env python
# For some reason Python 2 and Python 3 disagree about how to import this.
try:
from msclient.msclient import main as other_main
except Exception:
from msclient import main as other_main
def main():
"""Run the program."""
other_main()
if __name__ == "__main__":
main()
| [
"mamatierraonline@gmail.com"
] | mamatierraonline@gmail.com |
77f046fd2b59bd00cb82af5aa76214a221ddebc2 | 836a4ff14ecec6e373edaef14b87a11a7cdd5887 | /webempresa/core/urls.py | 58de1759d23576b6583543e0bf7bf944d817ccfa | [] | no_license | Miangelvar/Enterprise-Django | 4e360bbf1808c74c1a0b6fac9facf80439c9918e | 6423b03c3b73f3650ed685fc0f516dea90a555d6 | refs/heads/master | 2022-12-30T10:30:44.971717 | 2020-10-23T22:46:57 | 2020-10-23T22:46:57 | 306,762,079 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 314 | py | from . import views
from django.urls import path
urlpatterns = [
path('', views.home, name="home"),
path('about/', views.about, name="about"),
# path('services/', views.services, name="services"),
path('store/', views.store, name="store"),
# path('contact/', views.contact, name="contact"),
]
| [
"miguel.vargas.bejarano@unillanos.edu.co"
] | miguel.vargas.bejarano@unillanos.edu.co |
e386fe6a75e7df2fb336f91983882abcc80f5e28 | 4331b28f22a2efb12d462ae2a8270a9f666b0df1 | /.history/dvdstore/webapp/views_20190914143025.py | 52963ede814339e5240ae95de166024a88b2f934 | [] | no_license | ZiyaadLakay/csc312.group.project | ba772a905e0841b17478eae7e14e43d8b078a95d | 9cdd9068b5e24980c59a53595a5d513c2e738a5e | refs/heads/master | 2020-07-26T23:30:22.542450 | 2019-09-16T11:46:41 | 2019-09-16T11:46:41 | 200,703,160 | 0 | 0 | null | 2019-08-05T17:52:37 | 2019-08-05T17:52:37 | null | UTF-8 | Python | false | false | 9,050 | py | from django.shortcuts import render
from .models import DVD, Transaction, Customer
from django.core.paginator import EmptyPage,PageNotAnInteger, Paginator
from django.db.models import Q
from django.contrib.auth.models import User, auth
from django.shortcuts import render, redirect
from django.contrib import messages
fr... | [
"uzairjoneswolf@gmail.com"
] | uzairjoneswolf@gmail.com |
26379e8a1e9b872d300d9d82b2da96c581854dd2 | 781b0dbe58979036580c49102200036e60910f6b | /aparo-django-mongodb-engine-b81df39/django_mongodb_engine/creation.py | 2d8da4b0caaf4d58976b256b926c634df140cbc0 | [
"BSD-2-Clause"
] | permissive | germanach/djangopractica | e1f9ed0c37953fba9e59e21ba232cbeb9a0924e9 | 3fe1c08af39eeea748844fb0b47634eb7281fb32 | refs/heads/master | 2020-05-17T17:28:03.539750 | 2013-05-03T14:32:09 | 2013-05-03T14:32:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,065 | py | from pymongo.collection import Collection
from djangotoolbox.db.base import NonrelDatabaseCreation
TEST_DATABASE_PREFIX = 'test_'
class DatabaseCreation(NonrelDatabaseCreation):
"""Database Creation class.
"""
data_types = {
'DateTimeField': 'datetime',
'DateField': ... | [
"germanach@yahoo.es"
] | germanach@yahoo.es |
3b21b0fb8bd97f615dbfa139c451a935dd887e7c | 07815507e3e5a01f4e2e8c7c55761637d76c41ed | /03 - Flask App Refresher/index.py | 7429e1a30241555b1e81aec7049be56ab181ca2a | [] | no_license | algonacci/intro_to_openCV | e8270b6cfa61eb5e3356d4ae6626165bb4e504b4 | 48c23e2fd956e4748bb969dfdc05cd69fe5bc57c | refs/heads/main | 2023-08-30T17:13:12.963887 | 2021-10-23T12:40:39 | 2021-10-23T12:40:39 | 412,552,617 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 382 | py | from flask import Flask
app = Flask(__name__)
@app.route('/')
def index():
return "Welcome to FreeAI space"
@app.route('/route1')
def route1():
return "This is executed from route1 function"
def route2():
return "This is executed from route2"
app.add_url_rule('/route2','route2',route2)
if __name__ == ... | [
"algonacci1@gmail.com"
] | algonacci1@gmail.com |
6fb6126fd185f8193f294248e43c788503867505 | 2593b9a9f73cdebc4146a3be726c6d1bf651d841 | /Pupil Detection Code/calling.py | 66c02fdf964e4d5affde3cce52cfc22d299b8ef0 | [] | no_license | Yamoksh/eyeTracking | 230c173c2ab904f2570ebd3e56c607e4c8e5e880 | 72b75d64dda308fd26a48c2cb10a7a7b830e7aec | refs/heads/master | 2020-03-20T21:59:21.147173 | 2018-06-18T16:45:17 | 2018-06-18T16:45:17 | 137,773,002 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 241 | py | from calMax import calMax
from camEye2 import locate
import cv2
"""
img=cv2.imread("MU.jpg",cv2.IMREAD_GRAYSCALE)
print img.shape
cv2.imshow("img",img)
val,x,y=locate(img)
"""
x,t,s,v=calMax()
"""
cv2.waitKey(0)
cv2.destroyAllWindow()
"""
| [
"noreply@github.com"
] | noreply@github.com |
11d75c15a2554bd44c2d34b1555cd25f4278a154 | 7e383dea26667bbb41c2be65b2eee9b150829534 | /class_example1.py | c9eeec6cfb28504b4f800632668a1c031fd6272d | [
"MIT"
] | permissive | dipakbari4/PythonExercises | 22c07cb1a9710e8d326c1f9e1f3fd150ff42c5ec | e0395b9328f92b69dca8111b237b9159e120415c | refs/heads/main | 2023-02-28T03:52:25.939144 | 2021-02-07T19:50:09 | 2021-02-07T19:50:09 | 280,236,676 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 52 | py | class MyClass:
x = 7
y = MyClass()
print(y.x)
| [
"dipakbari4@gmail.com"
] | dipakbari4@gmail.com |
27ecbd85a78b77cd2b530b325dfed4e89f836586 | 6f9263aa8f56d23f4499e91dc12bb64b03314f32 | /generateScript.py | 6b0306411a08f0b3fcec95c4fb37d1a2a3f5eded | [] | no_license | 64BitTypewriter/execute | 513419bda11ac9e303ed6b7d8b623c9049199e6a | ae39eb6ddc3068a5ad606a1b78036f0b83406e84 | refs/heads/master | 2021-01-18T15:30:14.209539 | 2017-03-30T04:04:14 | 2017-03-30T04:04:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,612 | py | import os, sys, argparse
def GenerateScript(inputFile,inputString):
commands = 0
cwd = os.path.dirname(os.path.realpath(__file__))
fOut = open(cwd+'/script.tempexe','w')
if inputFile:
fIn = open(inputFile,'r')
commands = [line[:-1] if line[-1]=='\n' else line for line in fIn.readlines()... | [
"sporzio@uboonegpvm05.fnal.gov"
] | sporzio@uboonegpvm05.fnal.gov |
dc0cd93f35f2c1313c250efce57156a66fbf52bb | 4bf3aaf77c309a489100b98a8c03532632df152c | /Python/동빈북/10주차2/트리의지름.py | 5a204ed65235c2f7a796144aba287d2f73437648 | [] | no_license | murane/PS | 7fbfc54d962231949efc67f1a35c4b0119de0780 | e938c6c503aeac08bf65e1e66709172b0e5da6ef | refs/heads/master | 2023-05-06T22:51:54.105811 | 2021-05-30T03:34:53 | 2021-05-30T03:34:53 | 293,699,199 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 632 | py | import sys
r=sys.stdin.readline
V=int(r())
tree=[dict() for _ in range(V+1)]
for _ in range(V):
line=list(map(int,r().split()))
target=line[0]
line=line[1:-1]
for i in range(len(line)//2):
tree[target][line[i*2]]=line[i*2+1]
tree[line[i*2]][target]=line[i*2+1]
leng=0
pole=0
visit=[False... | [
"murane@naver.com"
] | murane@naver.com |
12c2f992ab049c0703846905f37c4a3c31ade7b5 | 6ce202db87d69a8678dc92b3030c923a2be831b4 | /Belostenko/HM_2/hm2_1.py | db2e09d56cb3992f2405cc19f4bf3305b6ee6b2c | [] | no_license | P-Ushakov/courses_homeworks | b050970ad97e383d2ca47876a8a46bcbf1eedc58 | a9ad440e75889d1757c6f0311458a343beecf3b8 | refs/heads/master | 2020-04-01T14:39:39.078097 | 2018-12-07T19:12:24 | 2018-12-07T19:12:24 | 153,302,811 | 0 | 0 | null | 2018-10-16T14:45:39 | 2018-10-16T14:45:38 | null | UTF-8 | Python | false | false | 569 | py | import random
from string import ascii_letters as letters, digits as digit
list_string = []
list_num = []
dictionary = {}
for i in range(10):
length = random.randint(1, 10)
element = random.sample(letters, length)
element = "".join(element)
list_string.append(element)
length = random.randint(1, 10)
... | [
"22678931+PanarinM@users.noreply.github.com"
] | 22678931+PanarinM@users.noreply.github.com |
543fc3ad92abdf28e8f18a64dfa9b2a0d351a685 | 1aed332abacbec4e10de90e7843d0c722bf02703 | /setup.py | 546b17a9ecce8950c6c4159ce4b6275fc03b0f68 | [
"ZPL-2.1"
] | permissive | sttts/dataflake.fakeldap | 7f26dee090fe07f5545447686d8e2941eabe0dea | fa1b8c115e2ab5d40e36b72d1067662427bd947f | refs/heads/master | 2021-01-13T02:06:09.739934 | 2014-11-07T16:57:05 | 2014-11-07T16:57:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,619 | py | ##############################################################################
#
# Copyright (c) 2012 Jens Vagelpohl and Contributors. All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFTWA... | [
"jens@dataflake.org"
] | jens@dataflake.org |
097734386baa95dbbfd7978e0df10c5b9131f116 | 777f24af233f8cc3fb9669a9a425ecdf4aba5cc4 | /Basics/lev2/prob_42.py | 75e2f3c4867404d858a33be643322df383f4abf7 | [] | no_license | JagadeeshVarri/learnPython | 15f8fd72e4b83991eddb8e796ef3abdcc1bab333 | 9659b01dd42ca5d461c611778cd5dd729fddfc92 | refs/heads/main | 2023-04-18T23:17:23.026286 | 2021-05-04T17:27:42 | 2021-05-04T17:27:42 | 360,195,232 | 0 | 0 | null | 2021-05-04T17:27:43 | 2021-04-21T14:12:19 | Python | UTF-8 | Python | false | false | 365 | py | # Write a Python program to test whether two lines PQ and RS are parallel. The four points are P(x1, y1), Q(x2, y2), R(x3, y3), S(x4, y4)
print("Input x1,y1,x2,y2,x3,y3,xp,yp:")
x1, y1,x2, y2, x3, y3, x4, y4 = map(float, input().split())
print('PQ and RS are parallel.' if abs((x2 - x1)*(y4 - y3) - (x4 - x3)*(y2 - y1)... | [
"jagadeesh@applines.com"
] | jagadeesh@applines.com |
ab27c3d20af55d3cfcc21f64ad7966e4d06a0566 | 3056cf87ed4290ec9360e95f0164aa6f55d01193 | /premquartil_aa.py | 7cddf6a0d6557c39ea228dee9f7d2872109dc16e | [] | no_license | celine-zhu/Sarscov2-analysis | f04b09580fd053cae1aab88134a954e73a0b7a31 | 50ccf5a073945f86cee6320b40a27eb6ba3040f0 | refs/heads/main | 2023-08-16T23:38:24.350223 | 2021-09-20T16:37:31 | 2021-09-20T16:37:31 | 408,221,308 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 719 | py | def premquartil_aa(L):
#L une liste de séquences et chaque séquence est une liste de chaines de caractères, chacune correspondant à un acide aminé
n = len(L)
Q = []
if n == 0: #Pour éliminer le cas particulier d'une liste vide
return 0
for i in range(0,n):
for j in range (0,le... | [
"noreply@github.com"
] | noreply@github.com |
23cc18ee51c728fe6203cb595154805a17389974 | f5d2a1459c81eb23a745bd63f41ef980c41ea0a4 | /ZG-PhaseFour/code/website/pcauto/PcautoComments.py | 3d29bfc7086cc8fd34cc48ac7d373bdd125bca66 | [] | no_license | ErBingBing/django-tonado-crawler | 6800bb0269e99e2454fb0a9079175ffe9d4d0a0b | db31b4cdf7ecc509f1a87aa325621943df825e98 | refs/heads/master | 2021-08-22T11:30:08.419583 | 2017-11-30T04:04:40 | 2017-11-30T04:04:40 | 112,562,722 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,027 | py | # encoding=utf-8
##############################################################################################
# @file:PcautoComments.py
# @author:Ninghz
# @date:2016/11/18
# @note:太平洋汽车网获取评论的文件
# @修改日志
# @author:yongjicao
# @date:2017/9/12
# @note:修改评论存储方式为mysql
######################################################... | [
"913702626@qq.com"
] | 913702626@qq.com |
da6ebfdb2b8526dae263cda11c146cefa87e951a | 06e43389ade453e16d1ab08f6f29127a48ede422 | /sanp3.py | f3ef163a069faa011e7012056cb4ff3b7272d68d | [] | no_license | santhoshbabu4546/guvi1 | 0fd5b29c9bd7d26c2208e36cccca3c57ef58366f | 97a783c4ff8be92c9e0645ee605981177dc06dec | refs/heads/master | 2020-06-21T03:48:30.279600 | 2019-07-17T05:11:43 | 2019-07-17T05:11:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31 | py | f = input
n = f[::-1]
print(n)
| [
"noreply@github.com"
] | noreply@github.com |
7e8639c4d204e0ec86d402cf20e4c707a02e1de4 | 6d128c9a593009909424dc5d232df028f5d2cfe3 | /cnn/labeler_scripts/DarkFiles/createDarkFiles.py | 289a0b776779ec497c27fd841aaf14db985d0688 | [] | no_license | RoninHunter/sign-spotter | 9ab8d3438626fec4410398419101be648de478d3 | 94aaf2c594ea4037c47b63a49b7285fad45f7895 | refs/heads/master | 2022-12-25T21:25:03.523421 | 2020-04-19T21:03:45 | 2020-04-19T21:03:45 | 233,261,652 | 0 | 1 | null | 2022-12-11T20:10:52 | 2020-01-11T16:29:47 | Python | UTF-8 | Python | false | false | 2,424 | py | #-*-coding:utf-8-*-
import os
import pathlib
import shutil
from xml.etree.ElementTree import dump
import json
import pprint
import argparse
from formatDarkFiles.py import VOC, YOLO
parser = argparse.ArgumentParser(description='label Converting example.')
parser.add_argument('--datasets', type=str, h... | [
"jeremy80@ufl.edu"
] | jeremy80@ufl.edu |
7bcfc6024a035b4db38e418ca5e7689791d2f560 | 483d0652f45c88e138f810cb3e7184853454e905 | /nn_cpu_new.py | 04f56931c1134bf5363d4171471d44110541559f | [] | no_license | yasutomo57jp/ssii2016_tutorial | 0c6a6eab11bf0b14201601583a44101a553a642c | 4f2e6cf1c60c3bdc73c8ce47627544f0a31b8623 | refs/heads/master | 2021-01-21T14:32:54.130531 | 2018-01-06T07:08:06 | 2018-01-06T07:08:06 | 56,049,157 | 14 | 4 | null | null | null | null | UTF-8 | Python | false | false | 3,082 | py | # -*- coding: utf-8 -*-
# Chainerの新しい書き方に対応したバージョン
import time
from chainer import Chain, Variable, optimizers
import chainer.links as L
import chainer.functions as F
from sklearn.metrics import accuracy_score, confusion_matrix
from sklearn.externals import joblib
import numpy as np
# 学習データとテストデータに分ける
data_train, da... | [
"kawanishi@is.nagoya-u.ac.jp"
] | kawanishi@is.nagoya-u.ac.jp |
1652b627f1a9c72e1da43231a04e7d232d4d788c | a86eed87103b04126198f3d808c47b9ff87f39b0 | /pill/views.py | f645a71b7aa824c7f099a72acb76f74588a75849 | [] | no_license | DmitriyLush/image_resize_django | f6f636b3a86fd1e8b2c5f737f9fd20c428596898 | 037a99f1ac3d8ad70c5df28be6bc60a0eb920f32 | refs/heads/master | 2023-08-03T15:10:01.556267 | 2021-09-07T11:04:22 | 2021-09-07T11:04:22 | 355,707,593 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,448 | py | import io
import mimetypes
import os
import posixpath
from pathlib import Path
from PIL import Image
import wget
from django.http import (
FileResponse, Http404, HttpResponse, HttpResponseNotModified,
)
from django.shortcuts import redirect, render
from django.utils._os import safe_join
from django.utils.http impo... | [
"aorti0712@gmail.com"
] | aorti0712@gmail.com |
c5c35c2f87af2b3c019b4cd6db41d5672ad6da0d | 347a588d79e92953449a865e3b483f1cb75d54b0 | /eshop_api_django/wsgi.py | bc3b3f98059b4225a0284bc61007569465a733b5 | [] | no_license | javier-eche/eshop-django | 0460122831cb8dd4e3522d2566156dc888576fac | 4dc149365dbca01f4310a18bbffe1e63bbc439f1 | refs/heads/main | 2023-04-06T16:26:03.556523 | 2021-04-04T06:33:00 | 2021-04-04T06:33:00 | 352,211,677 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 409 | py | """
WSGI config for eshop_api_django project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJA... | [
"javier.eche1205@gmail.com"
] | javier.eche1205@gmail.com |
2afecb7df2cccff077b478420e358ecdd7f5bc06 | 4b52c4d71f6fca209d62f8f4e337f0369e14d92b | /fnet/cli/predict.py | b28e2cabf90d74fc7367974a814767ef609c3ce5 | [
"BSD-2-Clause"
] | permissive | PabloYG/pytorch_fnet | 8a949a2e74f7868ab6bd39a6da7aad307206d4e4 | 7ee80b4ddc6de38ec69aa3c7e6595cb0f054d35c | refs/heads/master | 2020-05-03T05:42:57.121780 | 2019-03-29T00:33:01 | 2019-03-29T00:33:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,246 | py | """Generates predictions from a model."""
from typing import Callable, Dict, Optional
import argparse
import json
import os
import numpy as np
import pandas as pd
import tifffile
import torch
from fnet.data.tiffdataset import TiffDataset
from fnet.models import load_model
from fnet.transforms import norm_around_cen... | [
"chek.o@outlook.com"
] | chek.o@outlook.com |
3cd7db46c613d33c9c5c394a11a7043512db05e3 | 466f8dec24f6949c3c650390aac6b4923662c874 | /venv/Lib/site-packages/zmq/backend/cffi/context.py | 108466351f2107617b721dd988c65e0b38000c61 | [] | no_license | CatCoinz/blockchain | 6f2bf2d88e0c375a2e5a372799a5c58f0dcf7063 | 661a63d1033e86e82c247358a53c3ac1ce7d8f18 | refs/heads/master | 2023-08-01T13:53:39.569174 | 2021-09-25T13:51:30 | 2021-09-25T13:51:30 | 410,283,153 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,991 | py | # coding: utf-8
"""zmq Context class"""
# Copyright (C) PyZMQ Developers
# Distributed under the terms of the Modified BSD License.
from ._cffi import lib as C, ffi
from .constants import EINVAL, IO_THREADS, LINGER
from zmq.error import ZMQError, InterruptedSystemCall, _check_rc
class Context(object)... | [
"yuutayamauchi0109@gmail.com"
] | yuutayamauchi0109@gmail.com |
63fbdcf2b8ed51e456221b8e1b33ec58e25e3d73 | 502418c457422e710f785eaf0d5e6b624946893c | /myAlgorithmns/create_palindrome.py | 7b9a2c2ad72ef25509c10cf86684a5f266a9c29d | [] | no_license | jcheung0/problemsolving | abdc4a4ff1a9af7805f4db8c6df72f880b92d9fd | 2bff1251e306c533c009984efd309dfdd48475bf | refs/heads/master | 2021-01-17T11:13:48.816793 | 2016-06-12T21:16:18 | 2016-06-12T21:16:18 | 31,198,624 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 775 | py |
def can_i_create_palindrome(str):
char_map = {}
for i in str:
if i in char_map:
char_map[i.lower()] = char_map[i.lower()] + 1
else:
char_map[i.lower()] = 1
odd_counter = 0
for key in char_map:
if(char_map[key] % 2 != 0):
odd_counter = odd_coun... | [
"jcheung0@gmail.com"
] | jcheung0@gmail.com |
43275f4e951753231bbea78cf283c30091dcfb74 | 560615da936ff37ac8b7582a73cb1e45eca66f3e | /pwnbeta/pwnbeta.py | cf7dc767e3828a5138312b5f27cc8f8ba49c0b0d | [] | no_license | Half-Quarter/Blue-Whale-oj-writeup | b07a8e074915fb44297671d1e7044b2f182bb1c6 | d232c9998463517c86937961a12ca9e7c377709f | refs/heads/master | 2020-07-30T18:56:41.476723 | 2019-09-23T10:14:46 | 2019-09-23T10:14:46 | 210,323,300 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,246 | py | from pwn import*
from LibcSearcher import LibcSearcher
p = remote('vps1.blue-whale.me',19901)
elf = ELF('./pwnbeta')
context.log_level='debug'
#gdb.attach(p)
pop_rdi = 0x4008a3
pop_rsi_r15 = 0x4008a1
pop_rdx = 0x4006ec
write_plt = elf.plt['write']
puts_got = elf.got['puts']
return_addr = 0x40074c
p.recvuntil("What s... | [
"zhanqi@zhandeMacBook-Pro.local"
] | zhanqi@zhandeMacBook-Pro.local |
cbbbf570a3b495c9747ed4d5536dc7088f5e7736 | f7a985558763e37cc8866888ad6649aeb52fb326 | /website/announceusio/migrations/0029_auto_20190317_0401.py | 59eaeeb19919a835ed4fa96f6703feb7043ab3ca | [] | no_license | sanekzh/discord | 88379423e61546d71cacf36fc28c5700b8df4ee2 | 4d150bbb0d02b8dc0295d8f69be259b625109162 | refs/heads/master | 2022-12-13T09:19:34.437876 | 2019-07-09T20:03:24 | 2019-07-09T20:03:24 | 171,046,887 | 1 | 0 | null | 2021-06-11T17:48:38 | 2019-02-16T20:10:42 | Roff | UTF-8 | Python | false | false | 786 | py | # Generated by Django 2.1.5 on 2019-03-17 09:01
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('announceusio', '0028_billing_stripe_webhook'),
]
operations = [
migrations.AlterField(
model_name='stripe',
name='id... | [
"aksm.sanek@gmail.com"
] | aksm.sanek@gmail.com |
d82d8419e0a72e5aa975ff93e15986809e702f68 | 10815162b2c328f22583a30e12b1947b58029593 | /Projects/Project2/moonlander.py | 20608d169a0d0a01a9eb60426cd50f6795cbcf90 | [] | no_license | ndiekema/CPE101 | 362994c5bcb4828bdaf136b6baac18d266578498 | 01d9dcdcc2aab10b21bf74fc02edf5e8bd9ed294 | refs/heads/main | 2023-08-11T08:04:47.903408 | 2021-09-16T21:26:40 | 2021-09-16T21:26:40 | 393,463,551 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,288 | py | # Project 2 - Moonlander
# Author: Nathan Diekema
# Instructor: Padlipsky
from landerFuncs import *
showWelcome()
altitude = getAltitude()
currentFuel = getFuel()
velocity = 0.00
elapsedTime = 0
fuelRate = 0
acceleration = 0
while currentFuel > 0 and altitude > 0:
displayLMState(elapsedTime, altitude... | [
"noreply@github.com"
] | noreply@github.com |
50942d27099e308aa4147588ac09f780f7856048 | f9308d5a8efe2dbb48e9cc87cd06405b60a9dc7b | /samples/python/apidocs/ee_featurecollection_getstring.py | 8f9996c332c70c0c6ba24aec13ae4de989df6de8 | [
"Apache-2.0",
"CC-BY-4.0"
] | permissive | google/earthengine-community | 4e054b421f66f03507d58668084aee981062fc24 | ce931040c518860f8788b4888c0acfdebd2952fc | refs/heads/master | 2023-09-01T14:47:54.812703 | 2023-08-31T23:01:00 | 2023-08-31T23:01:39 | 200,732,820 | 428 | 552 | Apache-2.0 | 2023-09-13T21:46:51 | 2019-08-05T21:42:11 | Jupyter Notebook | UTF-8 | Python | false | false | 1,007 | py | # Copyright 2023 The Google Earth Engine Community Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
14d337cc0ae57c9c93b5155c34ee19114e1317c7 | eb9f655206c43c12b497c667ba56a0d358b6bc3a | /python/helpers/typeshed/stubs/openpyxl/openpyxl/drawing/connector.pyi | 3b3e8a479f72006e2689a5b70ac025c01e2a488f | [
"Apache-2.0",
"MIT"
] | permissive | JetBrains/intellij-community | 2ed226e200ecc17c037dcddd4a006de56cd43941 | 05dbd4575d01a213f3f4d69aa4968473f2536142 | refs/heads/master | 2023-09-03T17:06:37.560889 | 2023-09-03T11:51:00 | 2023-09-03T12:12:27 | 2,489,216 | 16,288 | 6,635 | Apache-2.0 | 2023-09-12T07:41:58 | 2011-09-30T13:33:05 | null | UTF-8 | Python | false | false | 1,867 | pyi | from typing import Any
from openpyxl.descriptors.serialisable import Serialisable
class Connection(Serialisable):
id: Any
idx: Any
def __init__(self, id: Any | None = ..., idx: Any | None = ...) -> None: ...
class ConnectorLocking(Serialisable):
extLst: Any
def __init__(self, extLst: Any | None =... | [
"intellij-monorepo-bot-no-reply@jetbrains.com"
] | intellij-monorepo-bot-no-reply@jetbrains.com |
77cf97430f38fee81ca5283f0c7595f67dacb9d6 | f458a38694d99fb66883beee37cf4c4ebd264414 | /scripts/pan_tilt_message_adapter.py | 1da01183abd4f0fcea620bcc75238b933ee36fe3 | [] | no_license | antoniosap/robo-to | cde9a6ae465a3305a273085e94801e201ede8539 | 4309099971b58f607317c0fc624d4566ceb5675d | refs/heads/master | 2023-03-26T17:32:05.410243 | 2021-03-29T18:42:52 | 2021-03-29T18:42:52 | 336,874,626 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,076 | py | #!/usr/bin/env python3
""" ground station base cam pant tilt controller """
__author__ = "Antonio Sapuppo"
__copyright__ = "Copyright 2021"
__license__ = "GPL"
__version__ = "1.0"
__maintainer__ = "Antonio Sapuppo"
__email__ = "antoniosapuppo@yahoo.it"
__status__ = "Development"
import sys
import rospy
from std_msg... | [
"antoniosapuppo@yahoo.it"
] | antoniosapuppo@yahoo.it |
51773bb0b5cf61f1eb2f13888232b12c252e6fbe | f121695e2dff353607fa47fb42482470e03bbf8a | /capitulo_06-Dicionarios/user.py | 27f9b3f93f445d4a391344208f4b9726d72af033 | [] | no_license | ranog/python_work | 76cbcf784c86fae4482be5383223e4b0a34f4130 | 47c442a90dcf32d5aef70858693a772a3c76a7ac | refs/heads/master | 2022-12-22T11:02:26.482059 | 2021-04-17T01:12:22 | 2021-04-17T01:12:22 | 233,634,221 | 2 | 1 | null | 2022-12-08T07:38:43 | 2020-01-13T15:58:46 | Python | UTF-8 | Python | false | false | 2,642 | py | #! /usr/bin/env python3
"""
NOME
user.py - Percorrendo todos os pares chave-valor com um laço
SINOPSES
chmod +x user.py
./user.py
Key: username
Value: efermi
Key: first
Value: enrico
Key: last
Value: fermi
- 6.12 - Extensões:
Username: efermi
Name: Erico Fermi
... | [
"jprnogueira@yahoo.com.br"
] | jprnogueira@yahoo.com.br |
8868ec10390e1eabd07a42a45bed21366c67764d | 5a9ed84261332eab29f4ba6c43904bcba7610812 | /set2_6.py | c3da440bd77891bf90a2e9aadeca07b43a016904 | [] | no_license | aswath1711/code-kata | 04da6c9fefcdc68aa0104c10e66babbce83ba112 | e3068a7852354facf498d99c805b38f738b855c6 | refs/heads/master | 2020-05-28T07:37:41.736156 | 2019-05-30T17:44:21 | 2019-05-30T17:44:21 | 188,924,352 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 225 | py | l,u=[int(x) for x in input().split()]
#print(l,u)
for num in range(l,u + 1):
if num > 1:
for i in range(2,num):
if (num % i) == 0:
break
else:
print(num,end=" ")
| [
"noreply@github.com"
] | noreply@github.com |
ac8f897085e49706bba206e5c927865a5344d491 | 8755a618d6793a56b61fbada5a17751a00a31cba | /SUM OF TWO NUMBERS.py | ace338746808c159b77dc2c13d2ed1ee9469f1cb | [] | no_license | SyedMohammedAli77DS/PYTHON-PRACTICAL | bf293625146524f4f79e33cd51e7b091ff804358 | c7c6ee902a8f799abc9217d320c238310850c85c | refs/heads/master | 2020-11-29T00:47:45.756532 | 2020-06-19T16:55:11 | 2020-06-19T16:55:11 | 229,966,405 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,789 | py |
# coding: utf-8
# In[12]:
# sum of two numbers
def sum(a,b):
'''sum of two number'''
c=a+b
return c
# In[17]:
# substraction of two numbers
def sub(a,b):
''' substaraction of two numbers'''
c=a-b
return c
# In[18]:
# multiplaction of two numbers
def mul(a,b):
''' Multiplaction of... | [
"noreply@github.com"
] | noreply@github.com |
7a14e8464e65364030788781634321eba09f3d7f | 80d50ea48e10674b1b7d3f583a1c4b7d0b01200f | /examples/v1/synthetics/CreateSyntheticsAPITest.py | 84904e1d7992fcae134d9955d3c134e4da54febc | [
"Apache-2.0",
"BSD-3-Clause",
"MIT",
"MPL-2.0"
] | permissive | DataDog/datadog-api-client-python | 3e01fa630278ad0b5c7005f08b7f61d07aa87345 | 392de360e7de659ee25e4a6753706820ca7c6a92 | refs/heads/master | 2023-09-01T20:32:37.718187 | 2023-09-01T14:42:04 | 2023-09-01T14:42:04 | 193,793,657 | 82 | 36 | Apache-2.0 | 2023-09-14T18:22:39 | 2019-06-25T22:52:04 | Python | UTF-8 | Python | false | false | 4,304 | py | """
Create an API test returns "OK - Returns the created test details." response
"""
from datadog_api_client import ApiClient, Configuration
from datadog_api_client.v1.api.synthetics_api import SyntheticsApi
from datadog_api_client.v1.model.synthetics_api_test import SyntheticsAPITest
from datadog_api_client.v1.model.... | [
"noreply@github.com"
] | noreply@github.com |
46d396671d82de39ed822ab43be4a230ad0693c1 | 9bc15e461f2349dc6bd3996a0571810eaa2d0603 | /Client.py | 1e62f6ea55142f56c0cc9cd3d4eeaff8399a7ea2 | [] | no_license | denny880320/180DA-WarmUp | 906d12d54465318db2b4fae8d71dce3a8e94692f | e019c8d2ed9c69be32fd08e71b20eec0b845f735 | refs/heads/main | 2022-12-30T07:26:49.108496 | 2020-10-20T14:41:29 | 2020-10-20T14:41:29 | 300,460,492 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 145 | py | import socket
s = socket.socket()
host = '192.168.0.103'# ip of raspberry pi
port = 12345
s.connect((host, port))
print(s.recv(1024))
s.close()
| [
"denny880320@ucla.edu"
] | denny880320@ucla.edu |
a724c85a56845a78d80b783850c1c4a415ffc86f | ef9c2e787b8f2966c6d44d19ce203375cd81fbf6 | /api/apis/student/api.py | 1efd2a930faef1cd7edb026bcfe270802a375bab | [] | no_license | bahadircolak44/Professor | 5fdcc272c8c2b2df6d41560225c09cd801ff42ff | fc6517e467a62508c6aceb3fedb667003be69934 | refs/heads/main | 2023-01-30T03:26:07.799125 | 2020-12-08T10:47:50 | 2020-12-08T10:47:50 | 318,121,651 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 912 | py | from rest_framework import status
from rest_framework.response import Response
from rest_framework.viewsets import ModelViewSet
from api.apis.student.serializers import StudentSerializer
from api.db_models.student import Student
from common.permissions.globals import PermissionSetGroup
from common.viewset impor... | [
"noreply@github.com"
] | noreply@github.com |
548439ff669f3f0d005ab4790ec8a3cb6a20f164 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_officiates.py | 4b9a0f7403716650f0c91ed440000739919939b4 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 234 | py |
#calss header
class _OFFICIATES():
def __init__(self,):
self.name = "OFFICIATES"
self.definitions = officiate
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['officiate']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
828a9bd9001fc637224241c1ea94b97fa8ec827f | 13ed500ac274442e2eed9cdfcca3a6f0b3712a67 | /web/spec_ibride/_version.py | 8fd83913cac1fdf7d152a28930e56d0881bd20f4 | [
"Unlicense"
] | permissive | generalov/spec-ibride | 53dcfaaf74f93af6766cd94aeddd1432bc718f16 | 7d8700738a612ecff1b1b7497e05fcb11e26b78e | refs/heads/master | 2021-01-10T11:20:52.068904 | 2015-11-25T15:36:21 | 2015-11-25T15:58:05 | 46,344,667 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,773 | py |
# This file helps to compute a version number in source trees obtained from
# git-archive tarball (such as those provided by githubs download-from-tag
# feature). Distribution tarballs (built by setup.py sdist) and build
# directories (produced by setup.py build) will contain a much shorter file
# that just contains t... | [
"e.generalov@gmail.com"
] | e.generalov@gmail.com |
1a118259c818154c858f15d6a838f72574d6018c | 3694a9594650eb28dc59b4fef940bcd79210671b | /VI_Discrete_VAE_example_pytorch.py | abddb7fbcf82bf31b8bda100de9f12e9dc5d6236 | [] | no_license | evgeniilobzaev/variational-inference-tutorial | 23c9a3755b5a774b6133194da524ae0fb85f0fe5 | 089bc4c17b770fa709e11d383e511b4ca5e53225 | refs/heads/main | 2023-09-04T01:35:56.425055 | 2021-10-22T08:41:04 | 2021-10-22T08:41:04 | 413,557,128 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,693 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
from torchvision import datasets, transforms
import matplotlib.pyplot as plt
import torch
import torch.nn as nn
from torch.optim import Adam
import torch.nn.functional as F
from torch.distributions import kl_divergence
import numpy as np
# Discrete VAE class
class Discr... | [
"evgeny.lobzaev@gmail.com"
] | evgeny.lobzaev@gmail.com |
af10e15a9c827ae8f34a1e8261c1ff400154fbab | 6d13de0d1ca89badfb76c677ffa8d7e2829677cb | /beaconWeb/apps/beacon/migrations/0076_auto__add_field_contactstatus_phone_number.py | 92b3a45c1c00040898605af926be5f2baa75b57c | [] | no_license | jasjitsingh85/beaconweb | 08a2b97346aea6db87dd19567c39a0d99f383ae8 | 269c6683f759fd7e75d13ea9eec8ad63ee24df53 | refs/heads/master | 2021-01-13T03:43:09.308401 | 2016-12-24T16:12:15 | 2016-12-24T16:12:15 | 77,268,841 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,940 | py | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'ContactStatus.phone_number'
db.add_column(u'beacon_contactstatus', 'phone_number',
... | [
"jazjit.singh@gmail.com"
] | jazjit.singh@gmail.com |
10051e7b6695576ce02e1731f8384c452f3e9597 | 08583f5a46dab2455ef707a91a342e6a30f62e8a | /advanced-web-scraping-2/14.py | d97c5ac81eb880454b2680bb8a8a6d3656c18d5e | [] | no_license | mahdi-asadzadeh/python-webscraping-simple-projects | 924cfefcf1e88698bd76e09e2824da28a9460cb0 | 24f629f48921e7d047f5b5c0803e4d9b3ec31c86 | refs/heads/main | 2023-06-20T08:58:46.730938 | 2021-07-22T11:59:56 | 2021-07-22T11:59:56 | 388,445,419 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 275 | py | import requests
url = 'http://www.webscrapingfordatascience.com/referercheck/secret.php'
my_headers = {
'Referer': 'http://www.webscrapingfordatascience.com/referercheck/'
}
r = requests.get(url, headers=my_headers)
print(r.text)
print(r.headers)
print(r.request.headers) | [
"mahdi.asadzadeh.programing@gmail.com"
] | mahdi.asadzadeh.programing@gmail.com |
381983aa73140a1fb84cd80fcf777075c6e1922f | 99c4d4a6592fded0e8e59652484ab226ac0bd38c | /code/batch-1/vse-naloge-brez-testov/DN7-M-175.py | 9f07005e81b8ff32835a51038b44d55f2690253c | [] | no_license | benquick123/code-profiling | 23e9aa5aecb91753e2f1fecdc3f6d62049a990d5 | 0d496d649247776d121683d10019ec2a7cba574c | refs/heads/master | 2021-10-08T02:53:50.107036 | 2018-12-06T22:56:38 | 2018-12-06T22:56:38 | 126,011,752 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,198 | py | # To funkcijo prijazno podarjam vsem, ki bodo programirali v eni vrstici. :)
# Kako jo uporabiti, je v navodilih. Kdor je ne potrebuje, naj jo ignorira.
import collections
def vsa_polja(s, v):
"""
Generiraj vse koordinate (x, y) za polje s podano širino in višino
Args:
s (int): širina
v (int... | [
"lenart.motnikar@gmail.com"
] | lenart.motnikar@gmail.com |
8aed7256c3bb58a3dd4968ada6a007943f82ab89 | 3034cb06289f747066571c4ab54ca81996c22319 | /module_utils/RubrikLib/rubrik_lib/models/download_file_job_config.py | 54fb2f3618d7eb072adffba24a2445ad05a26500 | [] | no_license | tarunactivity/ansible-rubrik | b2f644805f13a553bd0635e6ddc230257d125ef7 | 5d978c23902fd32d92cc90c75e48e5fe2209f8e0 | refs/heads/master | 2023-04-29T04:25:26.834701 | 2023-04-20T21:58:47 | 2023-04-20T21:58:47 | 116,251,368 | 0 | 0 | null | 2018-01-04T11:18:38 | 2018-01-04T11:18:37 | null | UTF-8 | Python | false | false | 684 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from ... | [
"tarun.activity+github@gmail.com"
] | tarun.activity+github@gmail.com |
0c993692bcd691327dd21cc2a79ccd73ff4cc576 | 30043e02840d479f790cd4c583e5aa9ffc974027 | /2-pre-built-helper-classes/SVM/svm-class-binary-usage-example.py | 48dc810ef7e59169c4bd01d2ba3c76945804ce8b | [
"Apache-2.0"
] | permissive | nalinik/pydaal-getting-started | e39b0aaab5c0b58a6965aeed7b7b1bc241d06956 | 9068b6f144c652a0db9e47353c136808ee51c1f9 | refs/heads/master | 2021-08-14T13:50:19.837352 | 2017-11-15T22:22:43 | 2017-11-15T22:22:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,764 | py | from SVM import BinarySVM
from daal.data_management import HomogenNumericTable
from utils import printNumericTables
from sklearn.datasets import load_breast_cancer
from sklearn.model_selection import train_test_split
# Create train and test datasets
data = load_breast_cancer()
x = data.data
y = data.target
y[y==0]=-1 ... | [
"intel.daal@intel.com"
] | intel.daal@intel.com |
3eb0640808851a718ce71edfb6588bc0fd3c4908 | 91dfe1a72c6183659ef4fd8118bfb719f0491071 | /image_synthesis/models/networks.py | 212a424aa9dc35aa86c60d3abf18c90d23dd279a | [] | no_license | DanDoge/FYP | eeacc9057e3fa805fd52e09d7b60d34eba6d3176 | f986b006acb58a68ccc879d00910f2b364047b0c | refs/heads/master | 2023-01-20T02:25:32.143225 | 2020-01-09T01:53:09 | 2020-01-09T01:53:09 | 232,518,397 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 38,350 | py | import torch
import torch.nn as nn
import math
from .basics import get_norm_layer, get_non_linearity, init_net
###############################################################################
# Functions
###############################################################################
def _cal_kl(mu, logvar, lambda_kl):... | [
"30900990+DanDoge@users.noreply.github.com"
] | 30900990+DanDoge@users.noreply.github.com |
658b48cf40bc7f8390868c1ef9941216e540af4c | cb0e1b102dba08ddb5df7da034864034b6e36235 | /preprocess_data/lib/lp_detection_functions.py | 7d482a5bc1b03685a605bc807fa46345f9556289 | [] | no_license | nickkchenn/cascadeCNN | 7ea07ac3f0719babeafd2b514f5c5cce9727b567 | 23038dc96570b77ed850530d6f27ef94a2d1a9f0 | refs/heads/master | 2020-12-25T18:44:07.095057 | 2017-06-11T08:06:34 | 2017-06-11T08:06:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26,438 | py | import numpy as np
import cv2
import time
from operator import itemgetter
# ================== caffe ======================================
caffe_root = '/home/anson/caffe-master/' # this file is expected to be in {caffe_root}/examples
import sys
sys.path.insert(0, caffe_root + 'python')
import caffe
def find_initi... | [
"phyj@phyjs-MacBook-Pro.local"
] | phyj@phyjs-MacBook-Pro.local |
715dc05ef8ff9902ec23f1039df3e9c7fa5bbe74 | a9ca484b422c802f02684ad64694212a7374a180 | /devel/lib/turtlebot3_example/turtlebot3_server | e8c5800d6414be4bda9b9bbc6d47d9b985fbad01 | [] | no_license | akash1306/mate_unity | 791cd5fadc1fae10e01e6f577fef5c43098eb766 | e947904f37cad6c814c9e5dfea0017a3d02a5b31 | refs/heads/master | 2022-12-10T11:22:59.709816 | 2020-08-30T10:29:34 | 2020-08-30T10:29:34 | 290,722,050 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 577 | #!/usr/bin/python3
# -*- coding: utf-8 -*-
# generated from catkin/cmake/template/script.py.in
# creates a relay to a python script source file, acting as that file.
# The purpose is that of a symlink
python_script = '/home/kajal/mate_unity/src/turtlebot3/turtlebot3_example/nodes/turtlebot3_server'
with open(python_scr... | [
"akash.chaudhary1306@gmail.com"
] | akash.chaudhary1306@gmail.com | |
5a610f06fbc3cf603a2ed76efec99e61edfc5378 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/380/usersdata/350/78405/submittedfiles/testes.py | c0375b269d872716a49804d9bdd8ad65b628d857 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 119 | py | # -*- coding: utf-8 -*-
#COMECE AQUI ABAIXO
c = input('Digite o valor de c: ')
n = (c*9)
print(n)
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
2a0f30c2fe3e18f1de0bc82e6fab603979d84238 | 25b870ab40952a6b5555498f116d8e1c146f9b41 | /game/views.py | 2c7e0365a79026cacaf697fc3f866ee0cba3a5d6 | [] | no_license | tomdieli/way_lame_game | 2d37a4a22fce339986dd667408dc737ab8be4826 | eb52b0e440f4a197eb72652b6c336d904b90101a | refs/heads/main | 2023-08-06T01:40:02.420875 | 2023-07-28T19:42:01 | 2023-07-28T19:42:01 | 243,342,018 | 0 | 0 | null | 2023-04-21T20:52:22 | 2020-02-26T18:59:46 | Python | UTF-8 | Python | false | false | 4,099 | py | from django.urls import reverse_lazy
from django.shortcuts import render, redirect
from django.views.generic import ListView, DetailView
from django.views.generic.edit import CreateView, DeleteView, UpdateView, ModelFormMixin
from django.contrib.auth.models import User
from django.contrib.sessions.models import Session... | [
"tomdieli@hotmail.com"
] | tomdieli@hotmail.com |
f2030bcff7bfd397453c26c16920ccde07373444 | d2d539d1edd1eae160a543f7a6404fed3de8afb4 | /client/all_contacts.py | 99c74b6c3c8b59dfb9169899cf36d8f3ba19ee4a | [] | no_license | gabsuren/phone_book_service | ace615440e10879159143b7e72a948882d57e0b9 | 1a636602e227f6ff6fb524594dd526bd77dbbdf0 | refs/heads/master | 2020-06-18T06:10:49.224888 | 2019-07-10T11:19:20 | 2019-07-10T11:19:20 | 196,191,159 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 432 | py | from urllib2 import Request, urlopen
import base64
import json
import sys
# List All Contacts
if len(sys.argv) < 2:
print "Please specify token"
exit(1)
token = sys.argv[1]
headers = {
'Token': token
}
request = Request('http://127.0.0.1:5000/contacts', headers=headers)
#request = Request('http://127.0.0.1:50... | [
"gabrielyansuren@gmail.com"
] | gabrielyansuren@gmail.com |
b8dc96f868b729cc7b8462228867ea99297e6c79 | 5f106b652fb2def72a5dac0f828f2ddb43b00b61 | /datashape/run_test.py | f6e1f97d0948812727405fcfb69088d542dd1542 | [
"BSD-3-Clause"
] | permissive | honnibal/anaconda-recipes | 9631cf038fa1817279075159da7361d0e869f7e7 | 5b6aa944763019afd767aff07939051c538fd15d | refs/heads/master | 2021-01-18T19:30:46.468145 | 2017-04-01T10:12:19 | 2017-04-01T10:12:19 | 86,897,632 | 3 | 0 | null | 2017-04-01T08:26:10 | 2017-04-01T08:26:10 | null | UTF-8 | Python | false | false | 77 | py | import datashape
print('datashape.__version__: %s' % datashape.__version__)
| [
"ilanschnell@gmail.com"
] | ilanschnell@gmail.com |
5ecd8c963800959e58fcc79bb2d8d1279db3d6cc | 2c56d384fef32eaaf791a9e10518a16dc2bde042 | /MotionDetection/mod.py | 6059fa8a8bfdb93322cfb6a7a586ca20de6940dd | [] | no_license | svarun115/opencv | fdbe124a89ce8b88a7d13823c5ce41b98ed892e2 | a2ba3f9dac5ced6563140fd7c8f20a30d444b4a5 | refs/heads/master | 2016-09-05T11:33:05.216369 | 2015-04-28T17:09:01 | 2015-04-28T17:09:01 | 34,340,630 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,169 | py | import cv2.cv as cv
from datetime import datetime
import time
import xml.etree.ElementTree as ET
from xml.dom import minidom
import unicodedata
import codecs
from collections import Counter
import threading
class MotionDetectorInstantaneous():
def onChange(self, val):
self.threshold = val
def... | [
"svarun94@gmail.com"
] | svarun94@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.