blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
418d9168458420a60d8cfac86770de662bf6654f | fe2b094102fe46abcdcd71d37adb6724b2b97c5f | /skxray/core/fitting/funcs.py | 05b07cc1cd0f42e81ca82a042f4a1ae7d8d80aac | [] | no_license | scikit-xray/scikit-beam | 5e8ae09a406dbf7137e05e2eb09af6b782dba55d | 488de03741fbcf743ac96cea5079df8eee01eca9 | refs/heads/master | 2021-01-18T18:55:27.169831 | 2015-12-09T22:08:39 | 2015-12-09T22:08:39 | 47,767,405 | 0 | 2 | null | 2015-12-10T14:35:17 | 2015-12-10T14:35:16 | null | UTF-8 | Python | false | false | 1,095 | py | from __future__ import absolute_import, division, print_function
import six
import numpy as np
def fit_quad_to_peak(x, y):
"""
Fits a quadratic to the data points handed in
to the from y = b[0](x-b[1])**2 + b[2] and R2
(measure of goodness of fit)
Parameters
----------
x : ndarray
... | [
"edill@bnl.gov"
] | edill@bnl.gov |
7f68a16e5d51f3eee977e0c90686267e068bbed1 | c50a97d71f1103162b5577d8f16c4ef17faa0386 | /testapp/urls.py | de16235afe87858038ad64e1b5f1cc9bc78bd2c4 | [] | no_license | mfantonidas/CoreNet | e3913829f50891395d1b38bd3e278b9c1f98e694 | af8b96dfc17a2dfb30e5d7a4c27d013bfbf0933f | refs/heads/master | 2020-12-24T17:36:08.078185 | 2014-09-09T12:42:30 | 2014-09-09T12:42:30 | 21,345,116 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 116 | py | from django.conf.urls import *
from testapp.views import hello1
urlpatterns = patterns('',
url(r'', hello1),
)
| [
"root@localhost.localdomain"
] | root@localhost.localdomain |
8349e5a184400657b2562a3f810e49de0eb18d9b | ed2636c9cdd12555308238af108bbe670a3cda50 | /part 1/preCogTeam.py | d35422c934873f7b9597e44425e8549d6134e5f4 | [] | no_license | zzeleznick/contest1 | b4c0706047268d77d83f3b87fcbf832020d26044 | 93ba5288d25b467d21b009419b620b4c5060f402 | refs/heads/master | 2021-01-17T07:52:51.054125 | 2015-07-21T09:37:54 | 2015-07-21T09:37:54 | 38,462,903 | 0 | 4 | null | null | null | null | UTF-8 | Python | false | false | 15,522 | py | # myTeam.py
# ---------
# Licensing Information: Please do not distribute or publish solutions to this
# project. You are free to use and extend these projects for educational
# purposes. The Pacman AI projects were developed at UC Berkeley, primarily by
# John DeNero (denero@cs.berkeley.edu) and Dan Klein (klein@cs.be... | [
"zzeleznick@gmail.com"
] | zzeleznick@gmail.com |
56da948fc6caac73637afb3a249d57bed39a5b9c | 2135b82781924597cf3ac9ad6b36663fecba1744 | /Day 5/S9-10.py | 0cd696aefe8255a757d60aca78558b05e3e47c50 | [] | no_license | TJWeiten/Advent-of-Code-2020 | 4266198bc95418f5f2d6874d5b3f8473d29e8b85 | 04ba25b93ac21a7856a9a0db839369591ca71115 | refs/heads/main | 2023-01-29T20:57:09.955241 | 2020-12-13T09:46:18 | 2020-12-13T09:46:18 | 317,803,958 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,681 | py | import enum
import os, sys
import math
import re
def startup_code():
current_working_directory = __file__.rsplit( '/', 1 )[0]
with open( current_working_directory + '/D5_Input.txt', 'r' ) as file:
input_list = file.read().splitlines()
return list( input_list )
'''
Binary search off of a coded ... | [
"me@tjweiten.com"
] | me@tjweiten.com |
c70aa0b43782f72bcc444591df7880c3e0f778b2 | 9128fa598cc7a3e1d494243b7da26adaed098412 | /distributed_gp/utility/event_feature_sparse.py | 61a7fac8b6141e09629e8a72d90ed9706e342fed | [] | no_license | daifanxiang/CityBeat | ff45967f48fc7a65337300fc32cf9f8088471fe3 | 6b7bbb4fc50446f7718dd456e6cd4fcd8082fca3 | refs/heads/master | 2021-01-15T21:19:35.069155 | 2013-04-11T02:27:43 | 2013-04-11T02:27:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,978 | py | from event_interface import EventInterface
from event_feature import EventFeature
from photo_interface import PhotoInterface
from photo import Photo
from region import Region
from event import Event
from caption_parser import CaptionParser
from stopwords import Stopwords
from corpus import Corpus
from _kl_divergence im... | [
"sasnzy13@163.com"
] | sasnzy13@163.com |
a7922a052863ee4e38d070e04d430cdadf728cef | 861bc07f24c17811d6a0e73f441016d02cd55900 | /src/uebungen/gpio/led-an.py | 19cd349863abbd74445cba360df8fce1f2003f5c | [
"Apache-2.0"
] | permissive | mobi3006/pico | ac05c3eda17d78aba906aceb11f79d484556abf9 | a94225415fec1308a9b728d6750b19a406509ec8 | refs/heads/master | 2022-07-19T03:50:39.878730 | 2022-07-05T12:15:42 | 2022-07-05T12:15:42 | 188,662,683 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 335 | py | from RPi import GPIO
# GPIO initialisieren
GPIO.setmode(GPIO.BOARD)
GPIO.setup(37, GPIO.OUT)
while True:
print("an oder aus?")
state = input()
if state == "an":
# Spannungspotential aufbauen (verbunden mit +3,3V) => Strom fliessen lassen
GPIO.output(37, False)
else:
GPIO.output(37, True)... | [
"mobi3006@googlemail.com"
] | mobi3006@googlemail.com |
340d5f828a3eb62c081cbab6d61d7d9e6124a415 | b6f92007e9ca0a9cf5e7bb91e1f31ecb7241b224 | /day18/day18home/app01/migrations/0010_auto_20170601_2258.py | 816a1c4094c4e82f9cb603fc5908dff01ae7b730 | [] | no_license | NoSongmaster/home_project | 291fe98879ad87541f4c2426d723918d70402e99 | 2e95823315532e3173f8a513cb4cc4006cb1b70d | refs/heads/master | 2021-01-25T04:42:53.245646 | 2017-11-23T01:53:48 | 2017-11-23T01:53:48 | 93,472,755 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 581 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.1 on 2017-06-01 14:58
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('app01', '0009_auto_20170601_2256'),
]
operations = [
migrations.Remov... | [
"stu142601@71e50119-498d-4a86-9c23-cb20dfe762fb"
] | stu142601@71e50119-498d-4a86-9c23-cb20dfe762fb |
8d8935debebe2fddce3908d8769a895a02af0e7f | c51623de835fad70e704b5050ca48551b89b3fe1 | /bend-flux.py | 2658376d62e89ee9b18b0f3aea6dd9e19bc99382 | [] | no_license | deyh2020/meepDEMO | e254140f04a59776000dfd2bcf8a3463691d8a94 | 5188cf7477195e7a44244ddccaa2a58a45d76bb0 | refs/heads/master | 2023-03-22T14:40:28.164875 | 2019-11-16T18:18:38 | 2019-11-16T18:18:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,627 | py | # -*- coding: utf-8 -*-
# transmission around a 90-degree waveguide bend in 2d
from __future__ import division
import meep as mp
import numpy as np
import matplotlib.pyplot as plt
resolution = 10 # pixels/um
sx = 16 # size of cell in X direction
sy = 32 # size of cell in Y direction
cell = mp.Vector3(sx, sy, 0)
... | [
"tnakaicode@gmail.com"
] | tnakaicode@gmail.com |
e7217d4b86f2ae132f9c4a314daf2121c60d224e | 8ee8457045d2a73899b630f896c19f839782c2c2 | /prac_05/state_names.py | 1fa12994546f6d143487d4f7c7841176b3933083 | [] | no_license | ChrisPrince99/Practicals_CP1804_2019 | 44b65b57a9a86986ca6a19489cfcdfc6acaa61bd | efaeadcd047295bb49d8e60cc83c7120c837e71c | refs/heads/master | 2020-07-04T10:15:53.848666 | 2019-11-02T03:48:09 | 2019-11-02T03:48:09 | 202,253,613 | 0 | 0 | null | 2019-09-04T03:24:36 | 2019-08-14T01:56:04 | Python | UTF-8 | Python | false | false | 647 | py | """
CP1404/CP5632 Practical
State names in a dictionary
File needs reformatting
"""
STATE_NAMES = {"QLD": "Queensland", "NSW": "New South Wales", "NT": "Northern Territory", "WA": "Western Australia",
"ACT": "Australian Capital Territory", "VIC": "Victoria", "TAS": "Tasmania"}
# print(STATE_NAMES)
# fo... | [
"Christopher.Prince@my.jcu.edu.au"
] | Christopher.Prince@my.jcu.edu.au |
7494e4c7157f0fc992ffa6cb0882c644c86a41c9 | 59339fbfab6ef6f65236719e1e32345381a90a88 | /1. Algorithm Toolbox/Programming Assignment 1 Sum of Two Digits/sum.py | 7bd4828e1e04eeca4191c490d56588d6dd7cea35 | [] | no_license | craigpauga/Data-Structure-and-Algorithms | 24cce4540129821de0f0b390bb86520c7d9033ea | be236e02d0a617636bb2c5d3df1072db4ccfc8f7 | refs/heads/master | 2020-05-19T16:02:11.622400 | 2019-05-06T00:28:47 | 2019-05-06T00:28:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 89 | py | # python 3
import sys
[a, b] = map(int, sys.stdin.readline().split())
c = a + b
print(c) | [
"craig.m.pauga@gmail.com"
] | craig.m.pauga@gmail.com |
bd1457cf855018859a1f0ea37a49f192eaf8c7ed | bafccce6b5c7f2e50768af3cfe6559f33536225d | /hw4pr4/hw4pr4.py | 7e68fb545216001a29ee4aae92b948fd9037ed05 | [] | no_license | oobazuaye/CS-Research-Summer-2011 | 3e7b7820e3c84ce0eea9ab1fe5b90055bd14b35b | 046a535d11e9028d7f0e88269c91640b79d6b367 | refs/heads/master | 2021-01-20T15:44:27.944947 | 2013-02-16T10:42:52 | 2013-02-16T10:42:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,194 | py |
# createBinaryImages.py
from cs5png import *
def testBinaryImage():
""" run this function to create an 8x8 alien image
named binary.png
"""
ALIEN = "0"*8 + "11011011"*2 + "0"*8 + "00001000" + \
"01000010" + "01111110" + "0"*8
# this function is imported from cs5png.py
NUM_ROW... | [
"oobazuaye@g.hmc.edu"
] | oobazuaye@g.hmc.edu |
0cb1630d22f89669c738d8606078d8d105f2671c | 172da6fd31bace8be454f3b605a22ce7b3785676 | /setup.py | 5477f1419af79a0f5b34859b78e19ed8a2c32d8a | [
"MIT"
] | permissive | mailtostanley/gaft | e6dde9d657a658bfc7ca0f884f7e5675fafd8252 | eaffb6943d8f37eb4b6c7c803dd21a196673c779 | refs/heads/master | 2021-01-02T08:45:05.284165 | 2017-08-01T03:09:54 | 2017-08-01T03:09:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,477 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
from gaft import __version__ as version
maintainer = 'Shao-Zheng-Jiang'
maintainer_email = 'shaozhengjiang@gmail.com'
author = maintainer
author_email = maintainer_email
description = "A Genetic Algorithm Framework in Python"
lo... | [
"shaozhengjiang@gmail.com"
] | shaozhengjiang@gmail.com |
faa0579dc83a0beee418e9f855984e65f2a2f514 | a03303e46f21697c9da87d0bb0f7b0a3077aba5c | /siswa_psb_ocb11/wizards/wizard_report_calon_siswa.py | c8856a1a350f8fcd17acd55177141e2075782768 | [] | no_license | butirpadi/flectra_app_sek | fccd3e47ef261e116478e6da7f0cc544ee67f127 | 00fa36d9176511f8ffe3c7636a8434ee2ed8c756 | refs/heads/master | 2020-04-06T10:26:37.053024 | 2018-11-19T23:59:34 | 2018-11-20T00:17:02 | 157,380,460 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,988 | py | from flectra import models, fields, api
from pprint import pprint
class wizard_report_calon_siswa(models.TransientModel):
_name = 'siswa_psb_ocb11.wizard_report_calon_siswa'
name = fields.Char('Name', default='0')
tahunajaran_id = fields.Many2one('siswa_ocb11.tahunajaran', string="Tahun Ajaran", default=l... | [
"butirpadi@gmail.com"
] | butirpadi@gmail.com |
481acf4aa61cf301b609dfb3c9972a0ff29a8b6c | 48388cdcdab994395f6df4fc577701e2ebd38ced | /apps/job/migrations/0005_rename_location_job_city.py | 73bcbf26f35b37ae104a577f420316a7ed263194 | [] | no_license | darenceT/Artificial-Squad | 7c21e66dc22bb9e751ef94a407c34eb9d17e5773 | e52836a29bd6324ab2a7c84b6f3346a774c3aea9 | refs/heads/main | 2023-09-02T22:18:38.858921 | 2021-11-04T21:02:08 | 2021-11-04T21:02:08 | 415,767,165 | 1 | 0 | null | 2021-10-11T03:32:03 | 2021-10-11T03:32:02 | null | UTF-8 | Python | false | false | 359 | py | # Generated by Django 3.2.6 on 2021-09-04 01:20
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('job', '0004_alter_job_description'),
]
operations = [
migrations.RenameField(
model_name='job',
old_name='location',
... | [
"mickykumar510@gmail.com"
] | mickykumar510@gmail.com |
9f72f4971591b30c70c14b81fc1f4b5f3192fb1a | a2065fec7cfae2d96c173fcd0afbd822c3d74580 | /Variable/uocSoChungNguyenTo.py | f2a26a7a0ae4c1560275ac3d7b5f092f024211db | [] | no_license | DinhVanGioi2001/LearnPython | 6505e1bc5f13ba9cae68e04842e4e3837787e8c3 | d7f8d66b1c3f362ca8b3a07a3d0817510d7d760d | refs/heads/main | 2023-07-28T01:09:50.971445 | 2021-09-19T13:51:33 | 2021-09-19T13:51:33 | 399,729,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 462 | py | import math
def isPrime(n):
if n < 2:
return 0
for i in range(2, n):
if(n % i == 0):
return 0
return 1
test = int(input())
while(test):
test -= 1
line = input()
list = line.split(" ")
number1 = int(list[0])
num2 = int(list[1])
tmp = math.gcd(number1, num2... | [
"89461091+DinhVanGioi2001@users.noreply.github.com"
] | 89461091+DinhVanGioi2001@users.noreply.github.com |
6fd6461dfa3ac4262311c02d6ca9391c80c84a87 | ade39c9be46ccff0cefb1c80a93df086d4c78cad | /SnakeGame/snake.py | ba68ea1f21a3aeb72558d43e61241f693703f04a | [] | no_license | rohira-dhruv/Python | 257b1c471a7717f31100f53463c0f19692e10d54 | 379a010b4057f4541d605389975647752cc473a0 | refs/heads/main | 2023-07-09T11:26:03.513718 | 2021-08-13T14:24:19 | 2021-08-13T14:24:19 | 391,022,466 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,259 | py | from turtle import Turtle
MOVE_DISTANCE = 20
STARTING_POSITIONS = [(0, 0), (-20, 0), (-40, 0)]
UP = 90
LEFT = 180
DOWN = 270
RIGHT = 0
class Snake:
def __init__(self):
self.segments = []
self.create_snake()
self.head = self.segments[0]
def create_snake(self):
for position in ... | [
"f20201725@goa.bits-pilani.ac.in"
] | f20201725@goa.bits-pilani.ac.in |
47fb9e01b9adc880a3c4e3ef01825885ff111f97 | 0e1e643e864bcb96cf06f14f4cb559b034e114d0 | /Exps_7_v3/doc3d/W_w_Mgt_to_Cx_Cy_focus_Z_ok/Sob_k15_s001_EroM_Mae_s001/pyr_Tcrop255_pad20_jit15/pyr_1s/L4/step10_a.py | feca52a6a51d9140c70a6ffe6b24aaf03eb0bdcf | [] | no_license | KongBOy/kong_model2 | 33a94a9d2be5b0f28f9d479b3744e1d0e0ebd307 | 1af20b168ffccf0d5293a393a40a9fa9519410b2 | refs/heads/master | 2022-10-14T03:09:22.543998 | 2022-10-06T11:33:42 | 2022-10-06T11:33:42 | 242,080,692 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,849 | py | #############################################################################################################################################################################################################
##################################################################################################################... | [
"s89334roy@yahoo.com.tw"
] | s89334roy@yahoo.com.tw |
bd978ce5d339a8aeda5f79bf6e300c587ba6607e | 12f81ac90a9df29ba442ca0be64a157f3678294d | /demo/main/models.py | d37ae80c0a5b0548e1e993443b57f2a4cb3316c2 | [
"MIT"
] | permissive | 9dev/django-flags | add11599158dbc1602eb7b79a74ef76ba8312957 | b4553ebd3f7750594da5abac4d73b6bc15c6bc30 | refs/heads/master | 2021-01-13T00:41:10.900887 | 2016-05-12T17:55:23 | 2016-05-12T17:55:23 | 54,309,064 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 369 | py | from django.db import models
from django.core.urlresolvers import reverse
class Article(models.Model):
title = models.CharField(max_length=100)
content = models.CharField(max_length=1000)
def get_absolute_url(self):
return reverse('article_detail', kwargs={'pk': self.pk})
def __str__(self):
... | [
"9devmail@gmail.com"
] | 9devmail@gmail.com |
5b1104a16aa5fe5d2d5141faa1e029640e496f02 | 9ba4eeb8c44e9ece5c85499853df115293077840 | /learning_utils.py | 72bb1fb636b2e0248447a0585f7b41bc5a07d8ce | [] | no_license | kiminh/Weighted-Empirical-Risk-Minimization | f8251233d77ae3396e873ce3e2c4e3ba947925a7 | a85c0b57b3c61428fb34c6a0e55f8e2f4745eefd | refs/heads/master | 2022-04-03T11:41:58.879496 | 2020-02-21T17:40:34 | 2020-02-21T17:40:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,581 | py | """
Contains a function that executes the steps of learning a model.
"""
import os
import logging
import json
import data_utils as du
import model_utils as mu
import plot_utils as pu
import matplotlib.pyplot as plt
DEFAULT_RATIO_FIGURE_MNIST = (3, 3) # (6, 3)
DEFAULT_RATIO_FIGURE_IMAGENET = (3, 3)
def run_exp(ba... | [
"robvogel0@gmail.com"
] | robvogel0@gmail.com |
37a924260b7e9bd5d8cfdd5ad35937b611f8e43b | 9b8641e0b5d03cca9561f65bb621279188600c45 | /mysite/settings.py | 39582219cdd9a69c9617b6919dbc5fbb94b9d1ae | [] | no_license | memod/django-tutorial | 55a24bad6eb720a2597def0195df70825d017e3f | 7cbfe811f781313b06bc700febacb27918436676 | refs/heads/master | 2020-12-14T16:29:08.850242 | 2020-01-18T22:35:29 | 2020-01-18T22:35:29 | 234,806,969 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,229 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 3.0.2.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import os
# ... | [
"carlos.durazo@thermofisher.com"
] | carlos.durazo@thermofisher.com |
777cb7f74ee3c7be90c8760b311faec02591177e | 7a87aaf1cfff5dfc636c8c164d190c9a18a7f449 | /Litespam/call.py | 4bd4c5d74dacc2e7be6e2e9dc8a750642b399177 | [] | no_license | bangnaga1/Litespam | 7c971bd06277f423f563729f082c84e940f3e755 | e622957fa2d7b3eafea61dd07ec655c43fa5d315 | refs/heads/master | 2020-04-03T03:20:48.665099 | 2018-10-27T17:19:47 | 2018-10-27T17:19:47 | 154,983,158 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,451 | py | print(""" =======================================
___ _ _
| _ \| |__ _ __ ___ __ _| | _____ _ __
| |_) | '_ \| '__/ _ \/ _` | |/ / _ \ '__|
| __/| | | | | | __/ (_| | < __/ |
|_| |_| |_|_| \___|\__,_|_|\_\___|_|
=======================================
""")
import thread
import reques... | [
"bangnaga183@gmail.com"
] | bangnaga183@gmail.com |
054f9416c1af9b8332a84b3b30575750e8ead587 | 568a7c7553d064b0968fdc449785ff781449f628 | /ERIS.py | 6108ed46ef7adbff09c59b9177a6cf5273befcbd | [] | no_license | Sanjeev2021/ERIS | 235a642f58d1e0a59622d963fd0c20663fad8aa6 | ace56010b2d40777dcf0db4609934375f22d6f4e | refs/heads/main | 2023-02-25T20:48:17.311576 | 2021-01-29T07:30:03 | 2021-01-29T07:30:03 | 334,069,360 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,647 | py | import pyttsx3
import speech_recognition as sr
import datetime
import wikipedia
import webbrowser
import pyaudio
import os
import smtplib
import subprocess
engine = pyttsx3.init('sapi5')
voices = engine.getProperty('voices')
print(voices[1].id)
engine.setProperty('voice', voices[1].id)
def speak(a... | [
"noreply@github.com"
] | Sanjeev2021.noreply@github.com |
eb29c7b75c47fa7aab8a8a70bff3e004b2a18359 | d22db204c665d16847447551cedc07756d357eb2 | /hydrus/core/networking/HydrusNetwork.py | c80fadbd36f4e79821703da79f3716e972dbb491 | [
"WTFPL"
] | permissive | Suika/hydrus | 9d5070d47c328b7054a9699de310ce580e563528 | 4b2b15e152e4bed900aa972c7d4b27f7bf242f29 | refs/heads/master | 2023-05-28T00:32:50.364999 | 2023-05-10T20:22:34 | 2023-05-10T20:22:34 | 237,063,790 | 1 | 2 | NOASSERTION | 2022-10-29T22:36:54 | 2020-01-29T19:23:21 | Python | UTF-8 | Python | false | false | 91,405 | py | import collections
import threading
import time
import typing
from hydrus.core import HydrusConstants as HC
from hydrus.core import HydrusData
from hydrus.core import HydrusExceptions
from hydrus.core import HydrusGlobals as HG
from hydrus.core import HydrusLists
from hydrus.core import HydrusSerialisable
from hydrus.... | [
"hydrus.admin@gmail.com"
] | hydrus.admin@gmail.com |
577ec4622d0dc70972ccdc9e4ecaf1630d96cf34 | 50417855e1c2fd1da178446a2b31ae20b807b24c | /Practice/Problem Solving/Implementation/PickingNumbers.py | d6c9136851a1c379e63f6a5d1ed106ac740635f1 | [] | no_license | DuTogira/HackerRank | d5d6f6c0ef74cd31d7126759cf05529c5a09c5ff | e1affb5a51ed8c3beefe2fa338444b177fe02a7e | refs/heads/master | 2022-11-19T21:04:02.788218 | 2020-07-16T18:55:06 | 2020-07-16T18:55:06 | 278,694,250 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,105 | py | # problem: https://www.hackerrank.com/challenges/picking-numbers/problem
# !/bin/python3
import math
import os
import random
import re
import sys
#
# Complete the 'pickingNumbers' function below.
#
# The function is expected to return an INTEGER.
# The function accepts INTEGER_ARRAY a as parameter.
#
def pickingNu... | [
"at.smothers@gmail.com"
] | at.smothers@gmail.com |
ed85b06748686be31ae6becb3e0e9f2f3191c68c | a704ffebe5a74cf2d1be472f03fbd050fbe6efc8 | /src/problems/p01_find_kth_node.py | 8309ef954db6047caa3d407c5c3dd84fd3f5bc88 | [
"MIT"
] | permissive | jbaisani/coding-interview-python | f642882c9860a29465d72f26c948e97143295866 | 4b9119eb6327a9fd53879b8c946f3d1068566f5a | refs/heads/master | 2020-03-13T12:05:35.749594 | 2017-10-08T02:08:48 | 2017-10-08T02:08:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,667 | py | """
01_find_kth_node
~~~~~~~~~~~~~~
题目描述:求链表中倒数第 k 个节点。
当我们用一个指针遍历链表不能解决问题时,就可以尝试使用两个指针。
可以让其中一个指针遍历的快一点(如一次走两步),或者让它先在
链表上走若干步,直到走到结尾。
比如,求一个链表的中间节点,就可以使用两个指针,前指针一次走两步,
后指针一次走一步,当前指针走到头之后,后指针就所在的位置就是中间
节点。
:copyright: (c) 2017 by 0xE8551CCB.
:license: MIT, see LICENSE... | [
"christopherlee199398@gmail.com"
] | christopherlee199398@gmail.com |
4b01ba2a61a5fd13b0abeb505238766cb21dbfcf | 629090051b975b5814b4b48e2cb2c784fa6705e4 | /pgsmo/objects/extension/extension.py | c2b146f976c4c57eb1c141ca37a9d7a68ebc2272 | [
"MIT"
] | permissive | microsoft/pgtoolsservice | 3d3597821c7cae1d216436d4f8143929e2c8a82a | 24a048226f7f30c775bbcbab462d499a465be5da | refs/heads/master | 2023-08-28T12:55:47.817628 | 2023-08-25T22:47:53 | 2023-08-25T22:47:53 | 80,681,087 | 68 | 35 | NOASSERTION | 2023-09-13T21:46:55 | 2017-02-02T01:00:33 | Python | UTF-8 | Python | false | false | 3,578 | py | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... | [
"noreply@github.com"
] | microsoft.noreply@github.com |
af21bd89bb0277d82edfe4e843fc71b8e6fea705 | da750f9ffee13f8388e0d3ac48db2eab562e5a2b | /examples/set_vm_lease_storage_domain.py | 80caa27928b5a3db1aef762ee12ffadfed2c38eb | [
"Apache-2.0"
] | permissive | fjanuska/python-ovirt-engine-sdk4 | f86085da0d1e3044d04c41aee5b842ccec37a094 | 8d51d43c63709a2c6064a9d9b8e095874fff4f2e | refs/heads/main | 2023-08-18T13:12:46.491667 | 2021-09-29T13:18:01 | 2021-09-29T13:18:01 | 411,636,996 | 0 | 0 | Apache-2.0 | 2021-09-29T10:56:52 | 2021-09-29T10:56:51 | null | UTF-8 | Python | false | false | 1,975 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (c) 2017 Red Hat, Inc.
#
# 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... | [
"necas.marty@gmail.com"
] | necas.marty@gmail.com |
d71db23231a0eece940a3a178de915e33d5657e7 | 2ad9a73cb3e2da46fb15ae56a6dee11407fe8845 | /ports/kodi/addons/plugin.video.transistortv/scrapers/onemovies_scraper.py | 6782b94bcbb40ef2ae81075222e8b0eb5cbfdfbd | [] | no_license | hpduong/retropie_configs | cde596b35897a3faeedefabd742fc15820d58255 | ed4e39146e5bebc0212dcef91108541a128d9325 | refs/heads/master | 2021-07-12T15:46:17.589357 | 2018-11-11T19:10:54 | 2018-11-11T19:10:54 | 157,111,040 | 1 | 2 | null | 2020-07-24T03:43:29 | 2018-11-11T18:59:52 | Python | UTF-8 | Python | false | false | 10,526 | py | # -*- coding: utf-8 -*-
'''
Exodus Add-on
Copyright (C) 2016 Exodus
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any l... | [
"henryduong@gmail.com"
] | henryduong@gmail.com |
09b053f2a46cc53d68dd5156e610bb19811c1c9c | 734f8168bbae6be49bede38ed0ac98b8c1783c9f | /app/model.py | 8add97c8971a87b8511a3a9a738c4a170a4ba2a7 | [
"MIT"
] | permissive | cwhy/discubot_server | 952590879ab2d3addbd1a12c83aebf5170c6fed9 | b33db3a911b8b1a7d2e104cd19c7544896ff6de8 | refs/heads/master | 2021-08-02T01:19:50.850339 | 2021-07-27T14:39:41 | 2021-07-27T14:39:41 | 94,058,608 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,881 | py | class VerboseObj:
def __str__(self):
sb = []
for key in self.__dict__:
sb.append("{key}='{value}'".format(key=key,
value=self.__dict__[key]))
return '{' + ', '.join(sb) + '}'
def __repr__(self):
return self.__str__()
c... | [
"chenyu.nus@gmail.com"
] | chenyu.nus@gmail.com |
27c9fbca93d386a872085ae69bd2295ced07561e | b156c2f5ee7417dfa1f6cdcf14e9773a25397544 | /GeneVisualization/venv2/Lib/site-packages/itk/ITKIOTIFFPython.py | 7cb363c878759595f07d0d3d80d9a742aefdec84 | [] | no_license | PinarTurkyilmaz/Vis | 1115d9426e9c8eeb5d07949241713d6f58a7721b | 4dd4426a70c0bd0a6e405ffe923afee29630aa67 | refs/heads/master | 2022-11-18T13:16:18.668065 | 2020-07-06T21:04:10 | 2020-07-06T21:04:10 | 226,217,392 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,077 | py | # This file was automatically generated by SWIG (http://www.swig.org).
# Version 3.0.8
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (3, 0, 0):
new_instancemethod = lambda func, inst, cls: _ITKI... | [
"pinar.turkyilmaz@estudiant.upc.edu"
] | pinar.turkyilmaz@estudiant.upc.edu |
6ab2e0a7445ce131f56926aa0b1def1d3ba8d540 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p04020/s954657742.py | 35d923c411950b2ed65ad518cb35af7337a85f80 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 371 | py | def solve(N, A):
ret = 0
for idx in range(N):
ret += A[idx] // 2
A[idx] %= 2
if A[idx] and idx + 1 < N and A[idx + 1]:
ret += 1
A[idx + 1] -= 1
return ret
if __name__ == "__main__":
N = int(input())
A = [0 for _ in range(N)]
for idx in range(N):
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
28919256b9942c2e71ddf0ed8efd759b2f3739d3 | 55a795e4833364208324c164ae91b8917675464f | /10-3.py | 661341bbdbc27f17fd2b3fedb0e3df0b9e1d3fb6 | [] | no_license | ggodol/Python-practice | f632d3825052b4f1fff486b4437cdcb65cdaf716 | 4fa27180da1b955cc6033fd93ddbcb840e01acb1 | refs/heads/main | 2023-05-10T22:37:17.004969 | 2021-06-02T13:07:58 | 2021-06-02T13:07:58 | 368,192,916 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 824 | py | """
10-3 사용자 정의 예외처리
https://youtu.be/kWiCuklohdY?t=18065
"""
class BigNumberError(Exception):
def __init__(self, msg):
self.msg = msg
def __str__(self):
return self.msg
try:
print("한 자리 숫자 나누기 전용 계산기입니다.")
num1 = int(input("첫 번째 숫자를 입력하세요 : "))
num2 = int(input("두 번째 숫자를 입력하세요 : "... | [
"gghost10@naver.com"
] | gghost10@naver.com |
de83d850ca23b520d5553b11b7384a31b6381963 | 8a2adf71698f1ffdfce2b0a698296ba50e5074e9 | /flask_split/__init__.py | 9e136ebbe51a03a018519e449b005431a1168162 | [
"MIT"
] | permissive | AngusP/flask-split | ee7f52b84dfeeabd4c06a43b372259dbea8f8942 | eecb6cb15de69e93613bd23d729d2ca8f4280ccb | refs/heads/master | 2020-03-31T20:52:45.845576 | 2018-10-11T13:50:39 | 2018-10-11T13:50:39 | 152,559,008 | 0 | 0 | MIT | 2018-10-11T08:39:51 | 2018-10-11T08:39:50 | null | UTF-8 | Python | false | false | 465 | py | # -*- coding: utf-8 -*-
"""
flask.ext.split
~~~~~~~~~~~~~~~
A/B testing for your Flask application.
:copyright: (c) 2012-2015 by Janne Vanhala.
:license: MIT, see LICENSE for more details.
"""
from .core import ab_test, finished
from .views import split
__all__ = (ab_test, finished, split)
tr... | [
"janne.vanhala@gmail.com"
] | janne.vanhala@gmail.com |
2481a3678bffe6c87b75f6d8987110ae08848cf2 | b315dfb5532c1bad50ba778bab17f63b0e360b0a | /trace_facebook.py | 2eac9ddb7bfea2dc84111528a8c91d10a0f690fe | [] | no_license | Dongjin-Dongdor/SNSTracer | 94c51ee55258fe6cc7d90e59bce75b97048691e3 | 95b0a616f84b5775c187b434b159c40cf42fd2cd | refs/heads/master | 2021-04-09T14:53:19.109576 | 2016-07-21T13:08:40 | 2016-07-21T13:08:40 | 62,938,361 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,073 | py | #-- coding: utf-8 --
__author__ = 'gimdongjin'
import oauth2 as oauth
import string
import random
from bottle import request, run, route, jinja2_template, post, get, hook
import bottle
from beaker.middleware import SessionMiddleware
import urlparse
import tweepy
from pymongo import MongoClient
from json import dumps... | [
"djinkim0413@gmail.com"
] | djinkim0413@gmail.com |
2b745f2ac461e18172b3961380d6a2c707dd0aac | c4cc9a7406ebf2e46535cd29080f302cf2f6c01d | /main.py | 3ae3ce9ade5563e21fc8cd1b645b0bae666a6fe5 | [
"MIT"
] | permissive | OscarEReyes/Modding-Tool | 64660aa0348072ae97b01bab3828b65cd9e72645 | 2edcb6d3423f22b8720d5cb135043d72af31c44f | refs/heads/master | 2021-01-17T14:17:11.181533 | 2016-12-20T00:45:34 | 2016-12-20T00:45:34 | 51,173,694 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 18,440 | py | import sys
from os import path
from PyQt4 import QtGui
import design
from modEditor import *
from modCreator import create_mod
from softwareModClasses import *
import qdarkstyle
from Categories import Categories
from genericThread import *
from threads import *
class MainWindow(QtGui.QMainWindow, design.... | [
"noreply@github.com"
] | OscarEReyes.noreply@github.com |
c72448aeecb8ba1ac63124a5cc055890cf59f857 | 2c8dcd76752729de2d071836260c0fe87c87d49e | /mul.py | a49e89ed00e93ea6d5fb4219911f6efa03c0811d | [] | no_license | iam-krj/Hackoctober-2021-2 | 7f6bbcf5e916b5b923180b7f0b8ab39c824f9f76 | cb951f0b4105f75fb8a3e0dfc81a49ae9f6a4c3f | refs/heads/main | 2023-08-13T05:25:31.027576 | 2021-10-11T17:32:09 | 2021-10-11T17:32:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 196 | py |
num_1 = input("Enter the first number pls")
num_2 = input("Enter the second number pls")
product = float(num_1) * float(num_2)
print("Product of {} and {} is {}".format(num_1, num_2,product))
| [
"noreply@github.com"
] | iam-krj.noreply@github.com |
bb519b11be3a2a62bb2b0df454c39d98dc04e57a | 8206009d82abae857c890d224a21a814ddcd1d54 | /docs/conf.py | 83a2152c9b55229377bd4fd5f72eb66f2d5530a8 | [
"MIT"
] | permissive | nurulrita/umn_hackathon | 9647591d381a21ecca6937ca9917dbd5f7a7df06 | a5e1a861ff6989edbdb25dce695312d2f7e8ca8c | refs/heads/master | 2021-06-05T16:30:45.681164 | 2016-11-19T02:59:51 | 2016-11-19T02:59:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,904 | py | # -*- coding: utf-8 -*-
#
# umn_hackathon documentation build configuration file, created by
# sphinx-quickstart.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# All configuration values ... | [
"nuthanuu@gmail.com"
] | nuthanuu@gmail.com |
2a4469af9c01f1950395a53bd34cc19299b3bcc7 | 188490d20334d98926d2a1300799783dbe2d213c | /catalyst/callbacks/metric.py | 7802cd7b63bb0a2ca09fc7883766f303a6577a27 | [
"Apache-2.0"
] | permissive | ammaddd/catalyst | cd2d41e0a9182f31a5c6b2893d5289f8294c99ad | e158bef16f8f8265517fb69918a8c1bffda43032 | refs/heads/master | 2023-04-25T12:49:36.293225 | 2021-03-22T05:55:23 | 2021-03-22T05:55:23 | 350,424,202 | 0 | 0 | Apache-2.0 | 2021-03-23T13:12:02 | 2021-03-22T17:03:51 | null | UTF-8 | Python | false | false | 8,815 | py | from typing import Dict, Iterable, Optional, Tuple, Union
from abc import ABC, abstractmethod
import torch
from catalyst.core.callback import Callback, CallbackNode, CallbackOrder
from catalyst.core.runner import IRunner
from catalyst.metrics import ICallbackBatchMetric, ICallbackLoaderMetric, IMetric
class IMetric... | [
"noreply@github.com"
] | ammaddd.noreply@github.com |
618fceedc335c21924b67b7086c765fa6ec126f9 | 8783cea4bd7110d51092d355634108dba56ed4c8 | /GitHub.py | 8a9dc276e46248dba4f2029ff40470d5da2b72f4 | [] | no_license | MU-hadi-hub/GitHub_Finder | 16647f0066196e8e87d6b33b6c76b5a4fed10e8e | 40bf08675d6e5c976369c4e8aa2d5f20dcd22d1e | refs/heads/master | 2022-12-15T11:14:15.310805 | 2020-09-14T07:10:49 | 2020-09-14T07:10:49 | 295,332,690 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 552 | py | from flask import Flask,render_template,request
import requests
app = Flask(__name__)
base_url="https://api.github.com/users/"
@app.route("/",methods = ["GET","POST"])
def home():
if request.method =="POST":
githubname = request.form.get("githubname")
responce = requests.get(base_url + githubname)... | [
"MU.hadi.hub@gmail.com"
] | MU.hadi.hub@gmail.com |
f3fdc8c5013d0d689078773dcf4add4a3e543588 | 59956091467f90c8cbba2ea8c624297e710a18b3 | /cw10/randomqueue_test.py | 11071c4f9debc96ad16b77b0f9e8ee6298e0e1fd | [] | no_license | gedlewska/Python | 21fa726b2206c0ca9c1f57d03c5ec41177a234c6 | 8464ef6e4c79261a3ec8c670718d5702610ca25a | refs/heads/main | 2023-03-10T12:43:39.135185 | 2021-02-22T18:16:28 | 2021-02-22T18:16:28 | 307,842,137 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,175 | py | from cw10.randomqueue import *
import unittest
class TestRandomQueue(unittest.TestCase):
def setUp(self):
self.randomqueue = RandomQueue()
def test_is_empty(self):
self.assertEqual(RandomQueue.is_empty(self.randomqueue), True)
def test_is_full(self):
self.assertEqual(RandomQueue.... | [
"noreply@github.com"
] | gedlewska.noreply@github.com |
da03bbb8b6031b58861a2e4d552f9ed9d547faa0 | d7f85d2d913c95230b514c54ba1146b31357e066 | /plumed/wall_0.236/analyse_hills.py | 3b84d5785ad3622bfab3e2ee155b37a4763e94d8 | [] | no_license | maxastyler/ProteinSimulation | f73b2958404a131c16cc3ae67a9354c684b2662f | 21549542311d7d41e27693599a585f8cb0285c6f | refs/heads/master | 2021-06-16T07:37:46.429904 | 2017-03-29T19:40:21 | 2017-03-29T19:40:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,779 | py | import matplotlib.pyplot as plt
import numpy as np
from mpl_toolkits.mplot3d import Axes3D
from matplotlib import cm
from matplotlib.ticker import LinearLocator, FormatStrFormatter
my_files = ["fes_124_{}.dat".format(i) for i in range(70, 79)]
def extract_1d_file_data(f_path):
x_data=[]
y_data=[]
with open... | [
"mtyler88@gmail.com"
] | mtyler88@gmail.com |
7f91092ce3750a44a3d2b5e2fd706151f2379331 | 62a8b1cb7d33a343a2c27b67ba114595c9fedadc | /blog/migrations/0001_initial.py | a4a9bfe28d3ad06002c63b15c2d0f99728fa1c59 | [] | no_license | chriswillis1211/my-first-blog | 4970b26555d38757e0e370759e1c018e00d105d1 | b7b1d56ac81556ddf84838cd8b429b18fe73366b | refs/heads/main | 2021-12-08T07:24:38.372725 | 2021-12-07T17:49:47 | 2021-12-07T17:49:47 | 209,944,520 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 986 | py | # Generated by Django 2.2.5 on 2021-12-07 17:45
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... | [
"chriswillis1211@hotmail.co.uk"
] | chriswillis1211@hotmail.co.uk |
4d827f134bb66995943a60660d462792a22ebaf9 | 6f8e108c621f384f4b28c47a37878827a9379792 | /mysite/settings.py | 5ed3ac128e710adfbd3dab273886ebac179a554e | [] | no_license | NiranDx/3SB04 | d9f4493468a1480618b7980972c2a4d229db8bb9 | e41e50e83aa89bd16656ff29b9b582db193a9901 | refs/heads/master | 2020-04-22T14:12:46.539341 | 2019-02-13T03:47:16 | 2019-02-13T03:47:16 | 170,435,563 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,105 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 2.0.13.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""
import os
#... | [
"niran3688@gmail.com"
] | niran3688@gmail.com |
8d35394be58ff6a3bc5775363238dcdd3c4b8683 | 77b865b10ad1c662b4367ec273c3a74fed1c718c | /twarc/command.py | f28cf0f5b7c75aa182ed41eebef1589b01dccc09 | [
"MIT"
] | permissive | digilabhh/twarc | ddcb8958fc89cd790d189f9a5dcdfb7a4734fbd9 | c4806765ca4aa50676fe97688b2c2b4b93f93418 | refs/heads/master | 2021-08-26T09:26:25.037814 | 2017-11-22T22:34:07 | 2017-11-22T22:34:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,582 | py | from __future__ import print_function
import os
import sys
import json
import codecs
import logging
import argparse
import fileinput
from twarc.client import Twarc
from twarc.json2csv import csv, get_headings, get_row
if sys.version_info[:2] <= (2, 7):
# Python 2
get_input = raw_input
str_type = unicode
... | [
"ehs@pobox.com"
] | ehs@pobox.com |
77d413c5c0eef082794af937e65645f5aa30638a | 382df78024f588acea08039a0b0a9e24f297b6a3 | /python/pandas/extract_tables.py | f92de68c5c33a5ca5aea8d8b383f49f542427ed3 | [] | no_license | id774/sandbox | c365e013654790bfa3cda137b0a64d009866d19b | aef67399893988628e0a18d53e71e2038992b158 | refs/heads/master | 2023-08-03T05:04:20.111543 | 2023-07-31T14:01:55 | 2023-07-31T14:01:55 | 863,038 | 4 | 1 | null | 2020-03-05T06:18:03 | 2010-08-26T01:05:11 | TeX | UTF-8 | Python | false | false | 1,448 | py | import os
import sys
import pandas as pd
import psycopg2
def connection_config(owner):
return {
'host' : '127.0.0.1',
'port' : '5432',
'database' : owner,
'user' : owner,
'password' : owner
}
def read_by_sql(sql, owner):
connect... | [
"idnanashi@gmail.com"
] | idnanashi@gmail.com |
4a38e77ca92c404101021135b1f0e1fab42bff26 | d5fbfeabfc98973493c4a440f877f9f1ea28082c | /apps/profesores/urls.py | e46f5e2590f0dba9e194850837222706944d4fd5 | [
"MIT"
] | permissive | eduardoagreda/requisiciones | f50621ab8b43a69366df826a4971a0af250f2c52 | 62e68e038d8ce3171b2e3d96194967fa6f93aca0 | refs/heads/master | 2023-04-30T12:54:19.614156 | 2022-07-21T19:09:49 | 2022-07-21T19:09:49 | 239,076,724 | 0 | 0 | MIT | 2023-04-21T20:46:57 | 2020-02-08T05:46:31 | JavaScript | UTF-8 | Python | false | false | 670 | py | from django.urls import path
from apps.profesores.views import add_profesores, edit_profesores, delete_profesores, lista_profesores, ProfesoresList, DetalleProfesor, DeleteProfesor
urlpatterns = [
path('profesor/crear/', add_profesores, name='add_profesores'),
path('profesor/<int:pk>/editar/', edit_profesores... | [
"eduardoagreda25@gmail.com"
] | eduardoagreda25@gmail.com |
e179a12367d16ae439902f5aa415a644669e6351 | 5182897b2f107f4fd919af59c6762d66c9be5f1d | /.history/src/Simulador_20200707153625.py | 7c3580bee6ea4ec2d8877641f9b5c1abbf1a185d | [
"MIT"
] | permissive | eduardodut/Trabalho_final_estatistica_cd | 422b7e702f96291f522bcc68d2e961d80d328c14 | fbedbbea6bdd7a79e1d62030cde0fab4e93fc338 | refs/heads/master | 2022-11-23T03:14:05.493054 | 2020-07-16T23:49:26 | 2020-07-16T23:49:26 | 277,867,096 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,485 | py | import pandas as pd
import numpy as np
from Matriz_esferica import Matriz_esferica
from Individuo import Individuo
import random
class Simulador():
def __init__(
self,
tamanho_matriz, #numero de linhas e colunas da matriz esférica
densidade_populacional_inicial, #percentual... | [
"eduardo_dut@edu.unifor.br"
] | eduardo_dut@edu.unifor.br |
fbcc55e61dc062eb2d120bc8b093a8ee1a52c4d2 | b384d8d6043dd7a02dad787603d7d32755167f06 | /bookAuthorsProj/settings.py | feb509473bf40477bf06973cc21eaf503fa71115 | [] | no_license | paulsmalze/bookAuthorsProj | 0be9d6cf4c60cedd21e7bf900986bebd305a7637 | 9e24879ce6f0ed343d0b48b50595fae7d3daa400 | refs/heads/main | 2023-05-02T03:09:58.284503 | 2021-05-12T23:29:18 | 2021-05-12T23:29:18 | 366,878,315 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,113 | py | """
Django settings for bookAuthorsProj project.
Generated by 'django-admin startproject' using Django 2.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import... | [
"waffwegs@yahoo.com"
] | waffwegs@yahoo.com |
a97d176669cdd943083404b6fc57bb5bfb1d37c7 | e2805f1a6683206ea887f69cca5ed191b1e5e46b | /vizdoomaze/envs/vizdoomazetwo1.py | 1aedef74bfbb0602f42095a5f13043719322061d | [
"MIT"
] | permissive | clay-fang/ViZDoomaze | 2f63972c8fdc816770d02e438e241fa4bed49835 | 5b444f2d861c908c4d96ae374bcce660d364f22e | refs/heads/main | 2023-01-23T15:06:02.625511 | 2020-11-21T16:27:17 | 2020-11-21T16:27:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 158 | py | from vizdoomaze.envs.vizdoomenv import VizdoomEnv
class vizdoomazeTwo1(VizdoomEnv):
def __init__(self):
super(vizdoomazeTwo1, self).__init__(34) | [
"zengfanyu_cn@163.com"
] | zengfanyu_cn@163.com |
49f9531c53a61c6d08acbffb88b7b874188f7181 | 200b52c1fe17cd47e20522b989adb05bd9cc3cfa | /tests/core/test_otel_logger.py | 75f4ebdc802d5cb7a3f8449881116b90ed90161d | [
"BSD-3-Clause",
"MIT",
"Apache-2.0"
] | permissive | fritzwijaya/airflow | cbb70fd8832b23e31e4426e72652c76e0df9fba8 | 5a4106d96e670b82004dd6fa221cf3c29b2496a9 | refs/heads/master | 2023-07-07T18:46:09.854983 | 2023-06-22T00:52:20 | 2023-06-22T00:52:20 | 206,764,905 | 1 | 0 | Apache-2.0 | 2019-09-06T09:53:33 | 2019-09-06T09:53:33 | null | UTF-8 | Python | false | false | 11,684 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"noreply@github.com"
] | fritzwijaya.noreply@github.com |
9b6e1b9ed2222b06ad1c5d29f31f626787e5d320 | 6fcfb638fa725b6d21083ec54e3609fc1b287d9e | /python/numenta_nupic/nupic-master/tests/swarming/nupic/swarming/experiments/simpleV2/permutations.py | 523415e121b159a08d2da8e71e0579c92643ec9e | [] | no_license | LiuFang816/SALSTM_py_data | 6db258e51858aeff14af38898fef715b46980ac1 | d494b3041069d377d6a7a9c296a14334f2fa5acc | refs/heads/master | 2022-12-25T06:39:52.222097 | 2019-12-12T08:49:07 | 2019-12-12T08:49:07 | 227,546,525 | 10 | 7 | null | 2022-12-19T02:53:01 | 2019-12-12T07:29:39 | Python | UTF-8 | Python | false | false | 5,481 | py | # ----------------------------------------------------------------------
# Numenta Platform for Intelligent Computing (NuPIC)
# Copyright (C) 2013, Numenta, Inc. Unless you have an agreement
# with Numenta, Inc., for a separate license for this software code, the
# following terms and conditions apply:
#
# This progra... | [
"659338505@qq.com"
] | 659338505@qq.com |
0af374c75858dd6a5656c55150d2b971842c5bb7 | 9fd1e88ae01342d21e8fca85fae94c5cb3823b88 | /python/tvm/relay/backend/graph_runtime_factory.py | a21a4a89f82a48dd9c648b76bc9791c355a84eaf | [
"Zlib",
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"Unlicense",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | gussmith23/tvm | 1bf32224275e0242287c6b23cc7649d878bf40c3 | e02dc69fef294eb73dd65d18949ed9e108f60cda | refs/heads/master | 2022-06-13T17:38:50.709735 | 2020-09-14T14:51:06 | 2020-09-14T14:51:06 | 157,422,354 | 3 | 0 | Apache-2.0 | 2018-11-13T17:51:08 | 2018-11-13T17:51:07 | null | UTF-8 | Python | false | false | 3,073 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"noreply@github.com"
] | gussmith23.noreply@github.com |
510c11051cb29e8e52223988ca08602d27bd5b68 | cf9cd951163a2fac9d593c2448e53c0356ed1f67 | /credentials_test.py | 03ef27df2d7f89f1043efe8b899a32de72d99517 | [
"MIT"
] | permissive | sheillanjoroge/Password-Locker | e295b512be17e72c62a074ee1b2596d325176be7 | 0c7125b44002751960bbab7590bab51c3423123c | refs/heads/master | 2023-01-19T02:01:52.652003 | 2020-11-23T12:28:19 | 2020-11-23T12:28:19 | 314,545,869 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,899 | py | import unittest # Importing the unittest module
from credentials import Credentials # Importing the credentials class
from user import User
import csv, os
Class TestCredentials(unittest.TestCase):
'''
def setUp(self):
'''
Setup up method to run before each test cases.
'''
self.test_user_credential = ... | [
"sheillan.njoroge@gmail.com"
] | sheillan.njoroge@gmail.com |
64aa900a7c594d4a3c56b09ff3fc0c6c91cffed0 | ae7ba9c83692cfcb39e95483d84610715930fe9e | /csrgxtu/maxent/src/soccer/TeamTechStatisticsParser12.py | be627e95cd17a03c757988d05f2995d37c93b599 | [] | no_license | xenron/sandbox-github-clone | 364721769ea0784fb82827b07196eaa32190126b | 5eccdd8631f8bad78eb88bb89144972dbabc109c | refs/heads/master | 2022-05-01T21:18:43.101664 | 2016-09-12T12:38:32 | 2016-09-12T12:38:32 | 65,951,766 | 5 | 7 | null | null | null | null | UTF-8 | Python | false | false | 9,682 | py | #!/usr/bin/env python
#coding=utf-8
#
# Author: Archer Reilly
# Date: 12/Aug/2014
# File: TeamTechStatisticsParser12.py
# Description: parser for 12 season soccer data on QQ sports
# Website: http://csrgxtu.blog.com
#
# Produced By CSRGXTU
from Parser import Parser
class TeamTechStatisticsParser12(Parser):
def __... | [
"xenron@outlook.com"
] | xenron@outlook.com |
2a04a27974207d0fc38a3c7f60d7127baf69a5c9 | 108ec2b047320973e288acd8ed000623809e16a8 | /spider_2.py | 24108839c33f2b732348c7e0295f33e02898534c | [] | no_license | Drozdovsimple/project_first | f3bdbf7b9e621faf01ce90711c374cceb741a23c | 56497ddebc75078b7d166a57033f3c4e08064373 | refs/heads/main | 2023-07-31T02:16:59.339806 | 2021-09-29T09:46:08 | 2021-09-29T09:46:08 | 411,007,641 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 221 | py | import turtle
turtle.speed(1)
n = 12
angle = -360/n
for i in range(n):
turtle.rt(angle)
turtle.fd(100)
turtle.stamp()
turtle.rt(180)
turtle.fd(100)
turtle.rt(180)
turtle.done() # сделано
| [
"andrei_drozdov@mail.ru"
] | andrei_drozdov@mail.ru |
b83ccba0ed57f84b1e9a53f7ec815d13c68f215a | 32eeb97dff5b1bf18cf5be2926b70bb322e5c1bd | /benchmark/materialistic/testcase/firstcases/testcase3_007.py | 52dd404a749a28a977501b6a4e1979e9ebd31897 | [] | no_license | Prefest2018/Prefest | c374d0441d714fb90fca40226fe2875b41cf37fc | ac236987512889e822ea6686c5d2e5b66b295648 | refs/heads/master | 2021-12-09T19:36:24.554864 | 2021-12-06T12:46:14 | 2021-12-06T12:46:14 | 173,225,161 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,138 | py | #coding=utf-8
import os
import subprocess
import time
import traceback
from appium import webdriver
from appium.webdriver.common.touch_action import TouchAction
from selenium.common.exceptions import NoSuchElementException, WebDriverException
desired_caps = {
'platformName' : 'Android',
'deviceName' : 'Android Emulat... | [
"prefest2018@gmail.com"
] | prefest2018@gmail.com |
62d9d5745fa68b3cda5043e23597c7a34fb9d414 | 07f92805a75dc91b8be2ac14c238394245eda9ea | /Python生物信息学数据管理/python-for-biologists/05-biopython/19-sequences/create_seq_object.py | d0c56a09417a2a344a4b6659e10b0958841ddb31 | [] | no_license | 08zhangyi/Some-thing-interesting-for-me | 6ea7366ef1f0812397300259b2e9d0e7217bcba0 | f4cbda341ada98753c57a3ba07653163522dd023 | refs/heads/master | 2023-01-11T22:54:03.396911 | 2023-01-06T05:47:41 | 2023-01-06T05:47:41 | 136,426,995 | 7 | 6 | null | null | null | null | UTF-8 | Python | false | false | 565 | py | '''
Use a Seq object for a single sequence like a string.
-----------------------------------------------------------
(c) 2013 Allegra Via and Kristian Rother
Licensed under the conditions of the Python License
This code appears in section 19.3.1 of the book
"Managing Biological Data with Python".
------... | [
"395871987@qq.com"
] | 395871987@qq.com |
7aa09d855612bb3c33141e022c704ad1745546c8 | f4505b46687929b9e749f54dc84f5d40b81ca5f2 | /web_intlTelInput_widget/__openerp__.py | 78d024a752a9d530425b1d0209e9303923682c4a | [] | no_license | linyaohui/openerp-custom-widget-intlTelInput | 49d837c888e5fc8682da578eac62143000034972 | 72d69e5d7cf6300f78441d4bcfe3f9187a4a4b28 | refs/heads/master | 2020-06-01T04:21:00.040191 | 2014-06-13T23:18:40 | 2014-06-13T23:18:40 | 20,798,334 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,562 | py | # -*- coding: utf-8 -*-
##############################################################################
#
# QQ field
# Copyright 2013 wangbuke <wangbuke@gmail.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# pu... | [
"191433230@qq.com"
] | 191433230@qq.com |
181944e07a33d20875f97362f7c25701561ff33d | dbb1dbdb6816fa7a81122688bde7434d5cadb4c3 | /endgamelivraria/settings.py | d0489147a250615c0c3a051be562369e41852ed3 | [] | no_license | ClaudioGuitta/Livrary | ab291c85aecf8acd9fdeea7483dc125bc707e47c | d8714a491fca4c57ebf200aca78b8316610d42ef | refs/heads/master | 2023-04-27T22:21:45.898580 | 2019-06-19T19:03:21 | 2019-06-19T19:03:21 | 192,788,646 | 0 | 0 | null | 2023-04-21T20:34:42 | 2019-06-19T19:00:45 | CSS | UTF-8 | Python | false | false | 3,615 | py | """
Django settings for endgamelivraria project.
Generated by 'django-admin startproject' using Django 2.2.1.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
impo... | [
"h.claudio17@gmail.com"
] | h.claudio17@gmail.com |
7c0ee367adbc616dcbbcd9d86e1681ba6efad77b | ed153015653fd3daaf6de8cd92eecc7c7ab1079b | /tests/test_wikipedia.py | 15ffb21984a82d10a6a8f4b7032a97783d25d367 | [
"MIT"
] | permissive | kersulis/python-test | a77b726236e6a1db42a7c95b30c9e584eecaf877 | 6ae135d232c261a3e577338160467b4b4dd17d0d | refs/heads/master | 2022-09-29T03:36:33.428852 | 2020-06-04T16:11:24 | 2020-06-04T16:11:24 | 269,168,604 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 834 | py | """Test wikipedia module."""
from unittest.mock import Mock
import click
import pytest
from python_test import wikipedia
def test_random_page_uses_given_language(mock_requests_get: Mock) -> None:
"""It uses the given language."""
wikipedia.random_page(language="de")
args, _ = mock_requests_get.call_arg... | [
"kersulis@umich.edu"
] | kersulis@umich.edu |
9ee0203cedd7090f2d22180978595571a0bfac0e | 9c65f078879089c625c489a955a3f7a31c877264 | /test/ising1d_version1.py | d426c4834bcd933fc43080f6e051c26849a1f441 | [] | no_license | Icespellcaster/Amateur_Exerxise | 62d400e693fd6fb2b19677af643bde8cc5db46ee | 056e97c2e2db480ff4e4e834535f4faddf06f9bb | refs/heads/master | 2021-01-10T17:56:20.727129 | 2019-11-29T05:46:27 | 2019-11-29T05:46:27 | 54,821,034 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,617 | py | """
尝试使用强化学习求解一维横场ising模型的基态能
H = -J * sigma_z^i sigma_z^{i+1} - h * sigma_x^i 的基态能
"""
import os
os.chdir('./test')
import numpy as np
import pandas as pd
import time
np.random.seed(2)
L = 10 # The length of chain
CHANNEL = 2
ACTIONS = ['up', 'down']
MAX_EPISODES = 130
FRESH_TIME = 0.3
ITER = 0
class TFI_1d:... | [
"noreply@github.com"
] | Icespellcaster.noreply@github.com |
90a5ed2030fd2ea016d9a0b41c7f2a9aca52c1fb | c3c563657b58032495a504870250459d9df1b633 | /pyptv/text_box_overlay.py | cd6a4806f794b5ef620f7108795a80d4b73bfa00 | [] | no_license | research-software-company/pyptv | 0e058ed46202dad593fee703d8bf6bea2f45ac42 | 14381e15cf77af6ce96cabac13d29691175f26d9 | refs/heads/master | 2020-08-28T22:51:48.699588 | 2019-10-23T18:15:29 | 2019-10-23T18:15:29 | 217,844,792 | 0 | 1 | null | 2019-10-27T11:27:28 | 2019-10-27T11:27:28 | null | UTF-8 | Python | false | false | 4,341 | py | """ Defines the TextBoxOverlay class.
"""
# Enthought library imports
from enable.api import ColorTrait, AbstractOverlay, Label, black_color_trait
from kiva.trait_defs.kiva_font_trait import KivaFont
from traits.api import Any, Enum, Int, Str, Float, Trait
# Local, relative imports
class TextBoxOverlay(AbstractOverla... | [
"alex.liberzon@gmail.com"
] | alex.liberzon@gmail.com |
3e6da70e68d1cfa5c124924ea3a40a6de7ca802f | 09cc2951898133eb44814d69f7aa023830d146bc | /mainapp/migrations/0001_initial.py | 0216240137f814be63c8391dea174924bbb3e91f | [] | no_license | malfin/kpk_django | 0c82c80e32cd0195c293bd2c77b1789e7e2c30e3 | c36a669c7b3b83f349e9cdd65bf904fcd0b22075 | refs/heads/master | 2023-02-14T20:13:15.236281 | 2021-01-14T04:14:39 | 2021-01-14T04:14:39 | 305,098,243 | 0 | 0 | null | 2020-11-14T12:36:05 | 2020-10-18T12:37:37 | Python | UTF-8 | Python | false | false | 4,359 | py | # Generated by Django 2.2 on 2020-10-24 05:58
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Category',
fields=[
... | [
"aiex.0115970@gmail.com"
] | aiex.0115970@gmail.com |
7c7662b9b3719388a203703992543a961c451132 | 14b519323f3b80ed021e463cac26c227f7e6409f | /Outlier_detection/venv/Include/count_dist.py | 70471aa8f2612a713dad0315569c6aa08b26ad88 | [] | no_license | zmzmk11/shangquan_cluster_dbscan | 1b24a2ae0f94c567aba894c601d0c399057d743e | 273cb0a4e1c45f8a40970bc148a82f717decb1c5 | refs/heads/master | 2020-05-01T13:48:04.748370 | 2019-03-25T02:53:19 | 2019-03-25T02:53:19 | 177,502,295 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 375 | py | # -*- coding:gb18030-*-
import numpy
import math
R = 6371.004
def count_dist(latA, lonA, latB, lonB):
C = math.sin(latA)*math.sin(latB)+math.cos(lonA)*math.cos(lonB)*math.cos(lonA-lonB)
Distance = R * numpy.arccos(C) * math.pi / 180
return Distance
if __name__ == '__main__':
dist = count_dist(31.5472... | [
"413957463@qq.com"
] | 413957463@qq.com |
f411d75b1539b1f48e8ccdc3052744235353af54 | 6a805efec898005ad623c795729d233e2bc6a6e3 | /python/examples/example13_overwrite_topic_model.py | 385424cf971dcdf9546b9de299097c999dd28de5 | [
"BSD-3-Clause"
] | permissive | mindis/bigartm | 8efb61c2d93d8b4e81aff368e86368f272fcf9fd | d14b051e368286baa1afe4ce6e723e30ad2ae039 | refs/heads/master | 2021-01-18T07:30:48.678763 | 2015-09-04T18:55:17 | 2015-09-04T18:55:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,655 | py | # This advanced example demonstrates how to upload existing Phi matrix back into BigARTM.
# There are several gotchas that you need to be aware about:
# 1. You should learn the difference between pwt-requests and nwt-requests.
# This is explained in the comments further below.
# 2. ArtmOverwriteTopicModel only sched... | [
"sashafrey@gmail.com"
] | sashafrey@gmail.com |
12daf65b15a7f7f3a9850aeda63c6721498d4191 | 8b120f5babd6f0dc9de436684de1aa2844cb70f7 | /Bert_weibo.py | a1d719c7875b12829437d35b1a9f30bc9cda450b | [] | no_license | 01070/virus_sentiment | 382b2b8ab464f32970b2817a2eb2cff211d80048 | 5bd55d54c1333ba0cf089547326d8231ad39b34f | refs/heads/master | 2023-02-10T09:24:48.487299 | 2021-01-13T08:05:39 | 2021-01-13T08:05:39 | 329,234,307 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,156 | py | import torch
import torch.nn as nn
from tcn import TemporalConvNet
from transformers import BertModel, AutoModel
import torch.nn.functional as F
class BertOnly(nn.Module):
def __init__(self, opt):
super(BertOnly, self).__init__()
self.bert = BertModel.from_pretrained('bert-base-chinese')
se... | [
"346023218@qq.com"
] | 346023218@qq.com |
9b896e046f64d8dee6aa6a4f4c66efeece2b6a9e | 1a6dc8f7883af7dd55d55a83bc3e6f78914aaef1 | /beats.py | b2827a03ffd4ec7ef0dcb82cd3a3aba56f590ccd | [] | no_license | ditcham-park-coding-club/dpu-beats | 14c501e829c08c803935d11828b7361d9d502a7d | 8fd4beb2712b49aebb0bff8aadb116e469e8cd66 | refs/heads/master | 2020-03-28T08:05:01.804290 | 2019-01-13T10:24:01 | 2019-01-13T10:24:01 | 147,943,979 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,381 | py | from math import floor
from os import listdir
from pygame import mixer
# Smaller than default buffer size increases timing accuracy
mixer.init(buffer=1024)
bpm = 120 # 2 beats per second
tick = 32 # 32 ticks per second
tick_duration = 1 / tick
beat_duration = 60 / bpm
ticks_per_beat = beat_duration / tick_durati... | [
"gsvarovsky@gmail.com"
] | gsvarovsky@gmail.com |
7c53f7aabd010e4667b46d9439520356c35838ec | ac98e1c554525fe1c4729aa4cdb3084245259d98 | /tensorpack/graph_builder/__init__.py | 6ed6c1ad9e4fffe0deb34f9ec91d53e8cffa13a0 | [
"Apache-2.0"
] | permissive | yunhuiguo/tensorpack | e85803b871a52f8115af145c054e098a6ab1c02c | 91ce2260e5dc41b802b1a39b8b65ae6bee7ac719 | refs/heads/master | 2021-04-27T10:55:44.544209 | 2018-04-01T16:55:02 | 2018-04-01T16:55:02 | 122,549,690 | 0 | 0 | Apache-2.0 | 2018-02-22T23:50:30 | 2018-02-22T23:50:30 | null | UTF-8 | Python | false | false | 896 | py | # -*- coding: UTF-8 -*-
# File: __init__.py
if False:
from .model_desc import *
from .training import *
from .distributed import *
from .predict import *
from .utils import *
from pkgutil import iter_modules
import os
import os.path
__all__ = []
def global_import(name):
p = __import__(name... | [
"ppwwyyxxc@gmail.com"
] | ppwwyyxxc@gmail.com |
c5c253457cdac3e1dc8d24ea569ddc86e3ba6492 | e01ff1ed99078e146ec9ac24cced7bdc6db8b43d | /Commit 5/pd110/src/src/urls.py | cb5deb2ebf1ff8ed7dd7bf36b258943f2acd23ae | [] | no_license | abrahamrome/CURSO-DJANGO | d11449369f1dc5e29f2b9942f82306563c4de4fa | 8aad6bde26285a940cea1bb832732f21d83c0f65 | refs/heads/master | 2022-12-08T05:32:40.778019 | 2020-09-01T21:04:22 | 2020-09-01T21:04:22 | 262,312,975 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 766 | py | """src URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-b... | [
"abrahamrodrimedina@gmail.com"
] | abrahamrodrimedina@gmail.com |
367183c4bd47f79fe6d046f11c9cafe43357f1b7 | b6bb740ca8318ca987cb814ad16a997414999149 | /Classes_And_Objects.py | bce8e4ef770da04d718a8a21ba67ddeec054b59f | [] | no_license | afaubion/Python-Tutorials | e3c9027390199b2ca80e00c566ce348a04012115 | 212e79ebaa7e79e66acf95cfe538c83bbf8192fa | refs/heads/master | 2022-09-09T03:35:22.334827 | 2020-05-23T19:26:42 | 2020-05-23T19:26:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,301 | py | # a very basic class would look something like this:
class MyClass:
variable = "blah"
def function(self):
print("This is a message inside the class.")
# to assign the above class(template) to an object you would do the following:
myobjectx = MyClass()
# now the variable "myobjectx" contains the obje... | [
"noreply@github.com"
] | afaubion.noreply@github.com |
23b32041d38d8ba15d1d81dcb495a7b17d7b6482 | 017e95ce76e7676b8a05b63f72f5978a243bddde | /predictive_analytics_with_ensembled_learning/random_extremely_random_forest/app.py | b845f915efb1305b469a4240c8c923f7ca21532b | [
"MIT"
] | permissive | dustrider/python_ai | 7139d94338561481c7ff7afe8ee76a108ada4db6 | 16d9806a06ed0f4ba1fe638458caa37343482e0a | refs/heads/master | 2020-03-21T18:05:03.326121 | 2018-07-31T16:11:52 | 2018-07-31T16:11:52 | 138,871,781 | 0 | 0 | MIT | 2018-06-27T11:22:21 | 2018-06-27T11:22:21 | null | UTF-8 | Python | false | false | 3,329 | py | import matplotlib.pyplot as plt
import numpy as np
from sklearn.ensemble import RandomForestClassifier, ExtraTreesClassifier
from sklearn.metrics import classification_report
from sklearn.model_selection import train_test_split
from predictive_analytics_with_ensembled_learning.random_extremely_random_forest.utilities ... | [
"jude.tan@accuity.com"
] | jude.tan@accuity.com |
f42bfbaa8a8b1ed3d5220d7a4759c7987fc35cb7 | 6dfdc65b1d633847763fc5012aeb4ca1438fe6ae | /Practical Machine Learning/Arima2.py | 3c4339cdde0d1bf5b13b64d4c98132b356fcd914 | [] | no_license | SaurabhRuikar/CdacRepo | 71537432885c83995ea6f2248d2a20ef08b4c9d4 | 12c2a4be8141443e4a567104506a81f115baeab1 | refs/heads/master | 2022-05-26T02:22:02.748779 | 2021-03-03T15:33:13 | 2021-03-03T15:33:13 | 223,311,490 | 0 | 0 | null | 2022-04-12T21:57:09 | 2019-11-22T02:57:34 | HTML | UTF-8 | Python | false | false | 513 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Fri Dec 27 15:23:07 2019
@author: student
"""
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import matplotlib as mpl
from statsmodels.tsa.arima_model import ARIMA
plt.style.use('fivethirtyeight')
df=pd.read_csv("/home/student/D... | [
"saurabh2830076@gmail.com"
] | saurabh2830076@gmail.com |
f50be0615f896d40820ac91d75e2afbbc3c5a198 | 25c21626adbf8da59a009600e38158b94e61edcd | /leapYear | 4117dc8f787cb5b13899357ee065a7e6c2819b3d | [] | no_license | gsanya1003/testing | 039710b3278d5800828881aa16177c1255d23bbd | 6b0e8f3a870f1696497a655da46abab3f46537a9 | refs/heads/master | 2020-12-06T18:18:43.385560 | 2020-10-19T05:17:09 | 2020-10-19T05:17:09 | 232,524,296 | 0 | 6 | null | 2020-10-19T05:17:11 | 2020-01-08T09:14:22 | Java | UTF-8 | Python | false | false | 265 | year = int(input("Enter Year: "))
if year % 4 == 0 and year % 100 != 0:
print(year, "is a Leap Year")
elif year % 100 == 0:
print(year, "is not a Leap Year")
elif year % 400 ==0:
print(year, "is a Leap Year")
else:
print(year, "is not a Leap Year")
| [
"noreply@github.com"
] | gsanya1003.noreply@github.com | |
4c31abeb1a6a4864f3b02b091c6db7fb58eb973e | 780750bf61b34b05662c7b735c59a23b11b8fb0e | /sudoku/test_sudoku.py | 1bcb431a10bf3e272d01887d833aabc64ab4d0e7 | [] | no_license | mmweber2/adm | 26203bc2b2db07a215f65bc49821c0cd44700ebe | bf622efcfad26f95696aa0bb72edb8fadfb2f717 | refs/heads/master | 2020-04-03T23:30:40.085340 | 2017-12-08T10:53:00 | 2017-12-08T10:53:00 | 52,829,709 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 16,503 | py | from sudoku import Board
from nose.tools import assert_raises
from nose.tools import assert_equals
# Test Board
# Taken from puzzle generator online
def test_is_valid_start_board_valid():
input_array = [
[0, 0, 0, 0, 9, 0, 0, 5, 2],
[0, 1, 0, 0, 0, 0, 3, 0, 4],
... | [
"mmweber2@gmail.com"
] | mmweber2@gmail.com |
8b7d108095db5abe3d979a34f593d3b39e380604 | ed1b9afa46f8bb3c35f86daf79a1bb0de80e298e | /Performance-testing/01-test-tool/jmeter/startJmeter/StartJmeter.py | 276aa1b14e3c43f7bc5af924869bdae51faba6c7 | [
"Apache-2.0"
] | permissive | DearMerlin/blog-example | 7d60807b0e656d149c12f346048a0b00322303f7 | b315d0555ea8ce14ace7cf6bd1c1d20558e2abae | refs/heads/master | 2023-09-05T23:14:52.034936 | 2021-11-18T15:29:48 | 2021-11-18T15:29:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,681 | py | # -*- coding: utf-8 -*-
# @Time : 2019/12/11 22:07
# @Author : 7FGroup
# @name : Jmeter启动脚本
# @File : startJmeter.py
import os, sys
def jmeterNumber(caseName, num_threads, ramp_time, duration, remark, hostIps='127.0.0.1'):
'''
:param caseName: 脚本名字
:param num_threads: 线程数
:param ramp_time: 控... | [
"zuozewei@hotmail.com"
] | zuozewei@hotmail.com |
568a366f82f3a465bdc5357e25268025e5547105 | 885f70baec88ff6420144d9bafaffe9307b3e32d | /workspace/backend/application/api/v1/drinks.py | b1069b60b127825a823e3add81a0f355f46a0600 | [] | no_license | AlexGeControl/Full-Stacker--09-flask-social-blogging | 738ea199006b87b043cbe63753f2d5ba23dbd2fd | 10223a267d9a6acd80c1781d05082ae06da72259 | refs/heads/master | 2022-12-15T20:24:26.152644 | 2020-03-09T03:28:03 | 2020-03-09T03:28:03 | 245,116,415 | 0 | 0 | null | 2022-12-08T03:45:50 | 2020-03-05T09:11:03 | Python | UTF-8 | Python | false | false | 7,042 | py | from application import db
from application.auth.models import User
from application.models import Drink
import json
from flask import g
from flask import abort, request, jsonify
from . import bp
from flask_httpauth import HTTPBasicAuth
auth = HTTPBasicAuth()
# AUTH
# ----------------------------------------------... | [
"alexgecontrol@qq.com"
] | alexgecontrol@qq.com |
e92627db11f06b01bcfc12ef4c20578c4b9c09ba | e1e7bdc8e471860eb214056f10c1f94119dd71f7 | /src/client.py | 13cf26eaa983d2d424ce727669bc66eb18fd4e6f | [] | no_license | mcarri01/Sharks-and-Minnows | 5650356cdd7a91c84cef67c36317d143f578b014 | d40ade79b08bf3ef7bfd12765e8bd9eb77451091 | refs/heads/master | 2021-04-30T12:52:48.423432 | 2018-01-20T17:00:48 | 2018-01-20T17:00:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,630 | py | # client.py
# Client code for playing the game, organized by an initial
# startup process, and then splitting off into two threads.
#
# The DisplayThread class handles displaying the current iteration
# of the board to the user, while the FishThread handles accepting
# user input for control over the... | [
"mepstein9@yahoo.com"
] | mepstein9@yahoo.com |
9f8d5645cb2e47fe17cd264eff39c73878f75b22 | cab894cb54bf2820b04eaf910aa2384e387273fd | /users/migrations/0001_initial.py | b4878aed699dafaa485dabc0a93ae0760ab9bd39 | [] | no_license | UNREALre/PollsMaster | 3d09bcf2577a3b5c95abc311ab5faf8a67cc84b6 | 40352a2b7671766814b98145f3cdd67c2fc0b9bb | refs/heads/master | 2023-03-06T08:05:34.681796 | 2021-02-16T13:59:45 | 2021-02-16T13:59:45 | 339,416,195 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,868 | py | # Generated by Django 2.2.10 on 2021-02-15 13:47
import django.contrib.auth.models
import django.contrib.auth.validators
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
('auth', '0011_update_proxy_permissio... | [
"a.podrabinovich@cashoff.ru"
] | a.podrabinovich@cashoff.ru |
f83ed41091ce9a5201897377d90e2de30b3b35fc | b86f6367e0f725ff884270075829e1dfaf90a7eb | /Spammer.py | 753bc9e48e4b721dcd881989c64e9911eab64fa8 | [
"MIT"
] | permissive | pk8742/Python-Projects | 4b858d108740626c0424e462fb1d6fe887a6095b | df4b00a0c46150c4561063ccfcdffa17cf41dd54 | refs/heads/main | 2023-03-04T09:25:26.692460 | 2021-02-15T10:06:48 | 2021-02-15T10:06:48 | 339,025,572 | 0 | 0 | null | 2021-02-15T09:28:20 | 2021-02-15T09:28:20 | null | UTF-8 | Python | false | false | 228 | py | '''
Our Task Is To Create A Python Program That Spam Message On A Text Messanger
'''
import pyautogui,time
time.sleep(5)
f = open("data.txt",'r')
for word in f:
pyautogui.tywriter(word)
pyautogui.press("enter")
| [
"sharmapravesh655@gmail.com"
] | sharmapravesh655@gmail.com |
c4cbf6f89ad8c87e9c134ae0e0af1dee875fb396 | cf4ab5f196f00eacf2f3312fd3045f26e09b1e64 | /main.py | 49bdac9ac55ee19535ed4beb91c35436e637c7f2 | [] | no_license | sb-lviv/7_crypto_1 | ec7a287be7261458df0658b98bea45fb2e989bf4 | f7bb746578d077bb20f07e2246e7896620f2b25e | refs/heads/master | 2020-07-27T01:44:34.684105 | 2019-09-16T14:53:59 | 2019-09-17T12:27:15 | 208,826,744 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,549 | py | #!/usr/bin/env python3
import argparse
import random
class Crypto(object):
ACTIONS = [
'enc', # encrypt
'dec', # decrypt
]
ALGORITHMS = [
'sub', # substitution
'per', # permutation
'sca', # scaling
]
FIRST_CHAR = ' '
LAST_CHAR = '~'
def __ini... | [
"serhiy.boiko@plvision.eu"
] | serhiy.boiko@plvision.eu |
0f304f9d2c5697279489097b2f55a267627938d2 | e89c10b364c1e4c13ae0df864640c72dca319d0a | /Modules/EikonDatabase.py | 0d00c9e783c8df88028e6e368ca38235a792fad1 | [] | no_license | yongks/news | 50049207b88f0f3b411700bc5412aa710cc78d33 | 4afce6737a900b6894aad7043c31347021c3e3ae | refs/heads/master | 2022-11-07T21:09:18.547447 | 2020-06-28T07:43:36 | 2020-06-28T07:43:36 | 260,725,809 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26,352 | py | #######################################################################################
### Module: EikonDatabase
### Date: 5 Jan 2020
### Features: - Fetch Stock Price, Outstanding Stocks Info from Thomson Reuters Eikon
### - Support Corporate Action Records
### - Minimize Eikon API call to Si... | [
"="
] | = |
fb1282807c3f9e8423589cabcd735a724f04e75f | e638e9fda0e672fa9a414515d0c05a24ab55ad38 | /UniqueWordAbbreviation.py | a9b9eddbd49fb1351c2bb4ec55d9ff5102f8d5b4 | [] | no_license | zjuzpz/Algorithms | 8d1c7d50429aa5540eb817dc5495a20fc3f11125 | 2df1a58aa9474f2ecec2ee7c45ebf12466181391 | refs/heads/master | 2021-01-21T05:55:48.768728 | 2020-08-04T22:44:08 | 2020-08-04T22:44:08 | 44,586,024 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,071 | py | """
288. Unique Word Abbreviation
An abbreviation of a word follows the form <first letter><number><last letter>. Below are some examples of word abbreviations:
a) it --> it (no abbreviation)
1
b) d|o|g --> d1g
1 1 1
1---5----0----5--8
c) i|nterna... | [
"zjuzpz@gmail.com"
] | zjuzpz@gmail.com |
866c4ad1982ee56b888f762ad139b2747094dfdc | 588df80dd8654457c60291008350297fb70c012c | /comparisons/model_comparison.py | f0c40246acb0e7ef463993e07c9de28a5702caea | [] | no_license | danielacraciun/ml_practice | 60d9d8ff10762367037a97fb1e29c76a5ed1b25d | ca638b557fdeba9ee9634dac407e552e84b1cc99 | refs/heads/master | 2021-01-21T05:16:52.838615 | 2017-03-21T21:15:24 | 2017-03-21T21:15:24 | 83,164,038 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,760 | py | # Compare Algorithms
from pandas import read_csv
from sklearn.model_selection import KFold
from sklearn.model_selection import cross_val_score
from sklearn.linear_model import LogisticRegression
from sklearn.discriminant_analysis import LinearDiscriminantAnalysis, QuadraticDiscriminantAnalysis
from sklearn.neighbors im... | [
"craciundaniela19@gmail.com"
] | craciundaniela19@gmail.com |
00b3df640d513087ce7d9a9858d446d5eecf0644 | 70fa6468c768d4ec9b4b14fc94fa785da557f1b5 | /lib/googlecloudsdk/command_lib/interactive/bindings.py | 15cc143b2435aaf9a624a6d8f3a70ea0c641e696 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | kylewuolle/google-cloud-sdk | d43286ef646aec053ecd7eb58566ab2075e04e76 | 75f09ebe779e99fdc3fd13b48621fe12bfaa11aa | refs/heads/master | 2020-04-20T22:10:41.774132 | 2019-01-26T09:29:26 | 2019-01-26T09:29:26 | 169,131,028 | 0 | 0 | NOASSERTION | 2019-02-04T19:04:40 | 2019-02-04T18:58:36 | Python | UTF-8 | Python | false | false | 7,906 | py | # -*- coding: utf-8 -*- #
# 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 requir... | [
"cloudsdk.mirror@gmail.com"
] | cloudsdk.mirror@gmail.com |
4b834a5ccb6e2d2cff1e5c2d12793d67fa346046 | d5853dbef54a0dea3ee88d27781f5aaddc235af5 | /Schelling/complexite.py | 4f552d7a3305e16d0bd625cb06dd3c5d4be08091 | [] | no_license | victor77420/SimulatingSegregation | b8f4101c67782e6e07cfbadca5c80f6f4428b24c | 472fcda024a797fc2be8acb5bbe00214c6747551 | refs/heads/master | 2023-05-01T09:40:05.858312 | 2020-05-18T15:54:48 | 2020-05-18T15:54:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,792 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon May 18 17:10:18 2020
@author: victorhuynh
"""
from time import time
from sklearn.linear_model import LinearRegression
from simulationdebase import schelling
def cout_n_iter () :
P = Paramètre(50,80,1/2)
x=[] #Contiendra les différentes valeu... | [
"noreply@github.com"
] | victor77420.noreply@github.com |
59d75aeee1d55ab76727eb92c5a42f191912ea9e | 9c9e531635b1f562d9d72231f8bb40448db07471 | /test.py | b480d678d46cf1624f774aeda54766e80b5c1bfe | [
"Apache-2.0"
] | permissive | vernor1/carnd_advanced_lane_finding | f2ea8622035ad75b15816e8ed52d3ee406ab1d7f | 1e9d2fb7b845c647452542e9bb063781d76cd8ec | refs/heads/master | 2021-07-23T17:26:17.216434 | 2017-11-03T16:12:00 | 2017-11-03T16:12:00 | 80,960,619 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,844 | py | import argparse
import cv2
import matplotlib.pyplot as plt
import numpy as np
from binary_thresholding import GetThresholdedBinary, GetSobelBinary, GetMagnitudeBinary, GetDirectionBinary, GetChannelBinary
from lane_tracking import TLaneTracker
from lens_correction import TLensCorrector
from perspective_transform impor... | [
"Yury.Melnikov@gmail.com"
] | Yury.Melnikov@gmail.com |
332c014db1ef05b24dc29c573e456b58fa46550d | 85c873fddf396b079ec3d677b7bc7932542f62e2 | /named_entity_recognition/demo.py | c26bf84eaac4f68e7f0c93b2cb10b4ac0b9a9ee4 | [] | no_license | HuihuiChyan/DL4NLP_practices | a934278c494b0b03a7d236dba25fa11e69ce17c0 | f3b9f36b81050c8e2e24383a0b6c5b7e447d5229 | refs/heads/master | 2022-11-12T17:31:23.018602 | 2020-07-03T06:30:52 | 2020-07-03T06:30:52 | 276,823,612 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,995 | py | import tensorflow as tf
from data import sents2id
from data import pad_sequence
from data import id2label
import pickle
def demo_one(args):
print("Please input your Chinese sentence:")
sentence = input()
vocab_file = args.vocab_file
model_path = args.model_path
with open(vocab_file, "rb") as vocab_f:
... | [
"noreply@github.com"
] | HuihuiChyan.noreply@github.com |
c33a1ed3472dbba45bc3662cd0fd882b24634a01 | 335cdc7c5e5a38699c8359e83315a89fa4d6b1a1 | /venv/Scripts/pip3.7-script.py | ddeee4cbbf72baa5329f2ff10ad8f4585313709b | [] | no_license | Crazy-Color/firsttest | 46fd01f623d3b6df560ff12edb6ced1a41ccdbb2 | 52bbdf9c4ae23a7dd5af38590b56ab49dda7df4d | refs/heads/master | 2020-06-08T00:40:44.975729 | 2019-07-03T15:04:21 | 2019-07-03T15:04:21 | 193,125,908 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 413 | py | #!D:\0101010101\PythonLearnning\test\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3.7'
__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.argv[0]... | [
"hmncumt@163.com"
] | hmncumt@163.com |
35013d36abe32551f34f323dc0a17f772efdf540 | 44dbddc5be734cf7fae25c85dc3f6309eebec9ef | /redirectory/runnables/management.py | 0f8cf631e40f00525a19c150ee84b83af9db472f | [
"BSD-3-Clause"
] | permissive | kumina/k8s-redirectory | 1df99db98795344f3947abb96a52db3260e0c08c | 1b91ec1a065f60a40c66e897d3c8dc935e00bcc6 | refs/heads/master | 2023-01-14T07:23:15.924964 | 2021-06-08T12:09:18 | 2021-06-08T12:09:18 | 194,644,803 | 5 | 0 | BSD-3-Clause | 2023-01-04T02:59:29 | 2019-07-01T09:43:26 | Python | UTF-8 | Python | false | false | 1,524 | py | from kubi_ecs_logger import Logger, Severity
from .runnable_service import RunnableService
from redirectory.libs_int.service import NamespaceManager
from redirectory.libs_int.hyperscan import HsManager
class ManagementService(RunnableService):
def run(self):
# Load hyperscan database because of test in ... | [
"ivaylo@kumina.nl"
] | ivaylo@kumina.nl |
1a8424e397e17fdf6126e184db70519c5d05aa92 | 471bd0bb613517cdeb7e658fe2834b0d2bece0bf | /lib/models/train_Solver_VCOCO_MultiGPU.py | b30a12632f40236adaefdb69199f47073a7abc35 | [
"MIT"
] | permissive | zhihou7/VCL | 1d9dadc216565531caaaf580720e893e6f11040e | 1bc21ec64d3bae15b8bac524cfa4beeaf08f2c48 | refs/heads/master | 2023-04-21T03:17:04.645416 | 2021-04-23T09:33:15 | 2021-04-23T09:33:15 | 282,781,879 | 33 | 7 | null | null | null | null | UTF-8 | Python | false | false | 8,855 | py | # --------------------------------------------------------
# Tensorflow VCL
# Licensed under The MIT License [see LICENSE for details]
# Written by Zhi Hou
# --------------------------------------------------------
from __future__ import absolute_import
from __future__ import division
from __future__ import print_func... | [
"zhou9878@uni.sydney.edu.au"
] | zhou9878@uni.sydney.edu.au |
86fcc94d4adea80c43d2d6c351eb8ca9e8de46c2 | 66cdc54a4870514faec5a51ead316d7871e8362e | /main.py | e075f66c3ab0d3c181266953d79b71fd5f1ac444 | [] | no_license | ashwinram472/cats_vs_dogs | e34d933741893a127ebae3f234454f722ceca08c | c50ff9d4e952166f4cae62611e8d939d89f83fd5 | refs/heads/master | 2022-12-03T22:13:42.666214 | 2020-08-16T01:45:06 | 2020-08-16T01:45:06 | 286,925,003 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,587 | py | # Importing Libraries
from cnn_model import cnn
from inception_model import inception_model
import tensorflow as tf
#Turning off warnings
tf.compat.v1.logging.set_verbosity(tf.compat.v1.logging.ERROR)
import matplotlib.pyplot as plt
from eda import model_performance
# Doing Image Augmentation to prevent overfitting ... | [
"ashwinram472@gmail.com"
] | ashwinram472@gmail.com |
06bba6c82a00da9f4ad7a8290e459b69bbaa2a7c | 61ef327bd1d5ff6db7595221db6823c947dab42b | /FlatData/ScenarioScriptGroup1Excel.py | 4abaa01eb0bee3726459ade22c4860fe42b9440e | [] | no_license | Aikenfell/Blue-Archive---Asset-Downloader | 88e419686a80b20b57a10a3033c23c80f86d6bf9 | 92f93ffbdb81a47cef58c61ec82092234eae8eec | refs/heads/main | 2023-09-06T03:56:50.998141 | 2021-11-19T12:41:58 | 2021-11-19T12:41:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,489 | py | # automatically generated by the FlatBuffers compiler, do not modify
# namespace: FlatData
import flatbuffers
from flatbuffers.compat import import_numpy
np = import_numpy()
class ScenarioScriptGroup1Excel(object):
__slots__ = ['_tab']
@classmethod
def GetRootAs(cls, buf, offset=0):
n = flatbuff... | [
"rkolbe96@gmail.com"
] | rkolbe96@gmail.com |
1ee8a1ef21b0e7a78ce3b6ce3457194be9afdd87 | d6bb89975fac26d4a40d4326af98ed6a33f2a922 | /builtin-functions/print/sep.py | ba59df49059ec7a0fb0d14bddece73cf79e87fe4 | [] | no_license | ReneNyffenegger/about-python | 70b51469d27df27454acfe809dae03c0c06d9ba2 | 6fb57d5eaee19f970b392127d66d53fb3ef9dc21 | refs/heads/master | 2023-08-19T17:17:09.143008 | 2023-08-15T07:03:28 | 2023-08-15T07:03:28 | 22,133,854 | 9 | 2 | null | null | null | null | UTF-8 | Python | false | false | 136 | py | print('foo', 'bar', 'baz', sep=', ')
#
# foo, bar, baz(
lst = [ 'one', 'two', 'three' ]
print(*lst, sep=' - ')
#
# one - two - three
| [
"rene.nyffenegger@adp-gmbh.ch"
] | rene.nyffenegger@adp-gmbh.ch |
9273551330884ade4300c2e81f1eb5451aff938e | 0ab491f953e37632c51f9c672c6dafb47f94a80d | /venv/bin/easy_install-2.7 | 7c3c5436a1e4f46ea405f10f846611437a57c970 | [] | no_license | NEvans85/flask_tutorial | 12d43a482c2183b789f54bec7ef47b004333a4b8 | d2d6dc10345845713899cadfd889d48595762a79 | refs/heads/master | 2020-03-07T06:13:04.768614 | 2018-04-17T20:26:03 | 2018-04-17T20:26:03 | 127,315,853 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 289 | 7 | #!/Users/nicholasevans/DevProjects/Python_Projects/Flaskr/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"nevans85.pro@gmail.com"
] | nevans85.pro@gmail.com |
78f6a7ffaa1d67a6dca1dbe0b92302c2126d58d0 | e02b6e43b690e148e3ea619c2fc99bf515d6b24c | /mlpackage01/MLPractical42.py | b5176855d6394ac15f0bffacb612c02516b9b0b5 | [] | no_license | kashishy/MLTraining | 35c79764ca9f3cbcf87149d5d06d4103b2876c76 | 86056ba3af6f6178c7c73a1866f77cf6a845517a | refs/heads/master | 2020-12-07T04:43:24.870647 | 2020-01-16T17:21:07 | 2020-01-16T17:21:07 | 232,635,382 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 698 | py | import pandas as pd
from numpy import set_printoptions
from sklearn.feature_selection import SelectKBest
from sklearn.feature_selection import chi2
import warnings
warnings.filterwarnings("ignore")
filename = 'indians-diabetes.data.csv'
hnames = ['preg', 'plas', 'pres',
'skin', 'test', 'mass',
'pedi... | [
"ashishkmrydv392@gmail.com"
] | ashishkmrydv392@gmail.com |
9511f47b91c96757d11224a795c9dfdb289998b0 | 8eff2593ef44b3bdb8dda8678eb051e58b4b5129 | /myenv/lib/python3.5/site-packages/IPython/core/magics/basic.py | 6ce120779c8b278f6fc1130d386c50105b07ddf4 | [
"MIT"
] | permissive | rupeshparab/techscan | 08391c26c7916dd397527e1da8f91b4aa78bc96e | ce2558602ddad31873d7129f25b1cc61895b9939 | refs/heads/master | 2022-12-11T03:33:07.533280 | 2017-09-03T17:48:57 | 2017-09-03T17:48:57 | 102,280,759 | 1 | 1 | MIT | 2022-12-08T00:36:08 | 2017-09-03T17:11:16 | Python | UTF-8 | Python | false | false | 21,310 | py | """Implementation of basic magic functions."""
import argparse
import textwrap
import io
import sys
from pprint import pformat
from IPython.core import magic_arguments, page
from IPython.core.error import UsageError
from IPython.core.magic import Magics, magics_class, line_magic, magic_escapes
from IPython.utils.tex... | [
"rupeshparab.rp@gmail.com"
] | rupeshparab.rp@gmail.com |
93dacb69fddddea04a605d78c422cc274f8277a5 | a603a234cb3310cb8c92491204816bfc26a7b09f | /cnn-mnist/mnist_lenet5_test.py | 58083e406955c750f223bd26b94b7cff968e0991 | [] | no_license | reroze/DL | 5ae6e73ceac408ea4d37a1aafed5fce16407f3f3 | 7857e34ad89981cafc1395e63edbcc07b3e772e1 | refs/heads/master | 2020-07-04T22:45:06.155185 | 2019-08-15T00:41:49 | 2019-08-15T00:41:49 | 202,446,956 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,086 | py | #coding:utf-8
import time
import tensorflow as tf
from tensorflow.examples.tutorials.mnist import input_data
import mnist_lenet5_forward
import mnist_lenet5_backward
import numpy as np
TEST_INTERVAL_SECS = 5
def test(mnist):
with tf.Graph().as_default() as g:
x = tf.placeholder(tf.float32, [
m... | [
"47293260+reroze@users.noreply.github.com"
] | 47293260+reroze@users.noreply.github.com |
894523bf9885a4be64fcc4f40894562d9d68783c | 8b8909b666099aca5df1389d86b72fbd9bafdeab | /aula 06/desafio 04.py | 9d25841b30bb66ad5f5747bae2adb2ef1e406855 | [] | no_license | GabrielRossin/Python | c694ee0c3c557f854296b3e7843b7616dec0101e | 1780a1c760149f6d65a25c8108b8e70a35914009 | refs/heads/master | 2022-12-15T04:32:19.009377 | 2020-09-13T06:10:56 | 2020-09-13T06:10:56 | 206,431,454 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,462 | py | x = input('Insira algo ')
print('Todos caracteres são números ?', x.isnumeric())
print('-------------------------------')
x1 = input('Insira algo ')
print('Todos os caracteres são alfanuméricos ?', x1.isalnum())
print('-------------------------------')
x2 = input('Insira algo ')
print('Todos os caracteres são do al... | [
"gabrielfiliperossin@hotmail.com"
] | gabrielfiliperossin@hotmail.com |
90e8e6081190b41166105c662b759bf495c1220e | bbc01d657f7af4297fc650e3f956133d972fec57 | /utils.py | fb087e02e6e431c4142024c5e93c33b545e48d7a | [] | no_license | hadishamgholi/video_classification | 4a5f4339ba97587f13d94c6e9f65b679f7a2d88d | 1260a9e398f5844b120f9354c62d3fa5593f13d3 | refs/heads/master | 2021-02-11T12:37:39.306706 | 2020-03-14T17:56:49 | 2020-03-14T17:56:49 | 244,491,896 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,047 | py | import re, os
from glob import glob
import config as con
from sklearn.utils import shuffle
import numpy as np
from sklearn.preprocessing import LabelEncoder, OneHotEncoder
la_enc = LabelEncoder()
c_int = la_enc.fit_transform(sorted(os.listdir(con.dataset_path)))
oh_enc = OneHotEncoder(sparse=False)
oh_enc.fit(np.array... | [
"hadishamgholi74@gmail.com"
] | hadishamgholi74@gmail.com |
55c11d01b0c113d4367972d23e5aa53d550f4b57 | dfa69189145a0e15e69815950aebb45f3f88738d | /main.py | 5cd581a848babe75a9897fe3f7023c35ae59b655 | [] | no_license | shogo-makishima/Keras_Projects | 1be9e6e8a7b12d316edcfc46fae3119673b2838d | e7e349d4e696bbfe846d7474133342c6d5268442 | refs/heads/master | 2022-11-17T12:49:11.109984 | 2020-07-14T13:54:53 | 2020-07-14T13:54:53 | 279,592,440 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,852 | py | import keras
modelPath = "Models\\MNIST_Model\\model"
batch_size = 128 # количество обучающих образцов, обрабатываемых одновременно за одну итерацию алгоритма градиентного спуска;
num_epochs = 1 # количество итераций обучающего алгоритма по всему обучающему множеству;
hidden_size = 512 # количество нейронов в каждом ... | [
"48924544+shogo-makishima@users.noreply.github.com"
] | 48924544+shogo-makishima@users.noreply.github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.