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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
cb27e2202c3a59f0e3997bd62f4360a75f99b8c3 | 3eae0c7eb4aa85b109a5c0b2b99aac440b8cffec | /Clase2/ACtividades/encriptar.py | d72ea3e42e45d94d0a61d1887ed01b5d7ef129d8 | [] | no_license | franciscoquinones/Python | 88c66af98eb2befe201efa7571f519a1176f63ae | a34d7b678758a0add4f420e3d0b12f02f141a20b | refs/heads/master | 2021-01-01T18:53:13.329992 | 2017-10-16T02:50:24 | 2017-10-16T02:50:24 | 98,460,458 | 0 | 2 | null | 2017-10-08T17:59:31 | 2017-07-26T19:51:52 | Python | UTF-8 | Python | false | false | 762 | py | texto = raw_input("Ingrese cadena para ser encriptada : ")
n = input("Ingrese el valor de n : ")
salida=""
for i in texto:
#a z 97 122
#A Z 65 90
#0 9 48 57
temp=ord(i)
if temp>=97 and temp<=122:
valor=temp - 97 +n
while valor>=26:
valo... | [
"noreply@github.com"
] | noreply@github.com |
4359eedbb17d4b95db2ccc96e4a3e0777be2ef0c | 1fe025c7967885a987193bd228b1421d3f66bbf9 | /greenlettest/greenlet_test.py | 79743e3ab9cb20849e7e0a275e7c88b5e397ffbe | [] | no_license | sunnyyellow/pythontest | 7974e90c63c94dbd607d3f207bd542390ef9570b | 193852fcee6d0ad081e1507cad0df547ad43b92c | refs/heads/master | 2020-03-25T10:47:51.313066 | 2018-08-06T09:31:30 | 2018-08-06T09:31:30 | 143,705,919 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 199 | py | from greenlet import greenlet
def test1():
print 1
gr2.switch(1)
print 2
def test2(x):
print 3
gr1.switch()
print 4
gr1 = greenlet(test1)
gr2 = greenlet(test2)
gr1.switch() | [
"shijing.xue@cootek.cn"
] | shijing.xue@cootek.cn |
c71bb2e89ad8f19d1a74c6eb6a06ab7c19ff65b9 | 60702d0113b6c1ac6f322897f6422b14cc3d661f | /turbulence/turb.py | b954a9fc3e45ccbc85fc13f4db75fbce46fb4115 | [
"BSD-3-Clause"
] | permissive | adamrupe/DisCo | 7fa6d4d48b84f6f8782c8255c3d199ab46e8407c | cdd2dac9c44b254cc72f721cdb61dc2cf8af9b91 | refs/heads/master | 2020-05-09T20:43:46.106498 | 2020-03-20T08:22:18 | 2020-03-20T08:22:18 | 181,418,480 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,481 | py | '''
author: Adam Rupe
modified: Nalini Kumar
https://github.com/adamrupe/DisCo
brief: DisCo code for 2D turbulence data
dependencies: see environment.yml
*******************************************************************************
Use the following (elsewhere, e.g. a jupyter notebook) to calculate the number
of par... | [
"adamtrupe@gmail.com"
] | adamtrupe@gmail.com |
5404d94c2cb141aaa4fa36f139bbfc2f161ce03f | a8731ed73a1fbae2d1e490fc8951aa17873aa7d4 | /iga/population/standard_analysis.py | 163123558095eccca04cfb007d8470d1031bdae1 | [] | no_license | juancq/character-evolver | 452bf84afd52766502fbe6ba6471519d1a7635e1 | 5dcae96916dbfef03cc8f6625e4a4c31fe25224f | refs/heads/master | 2021-01-23T18:08:21.058617 | 2017-05-22T02:08:58 | 2017-05-22T02:08:58 | 129,113 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,637 | py | import nsga_ii
from iga.gacommon import gaParams
import copy
class Population(nsga_ii.Population):
def __init__(self, paramClass, paramDict):
nsga_ii.Population.__init__(self, paramClass, paramDict)
ops = gaParams.getVar('operators')
len_ops = len(ops)
op_prob = 1. / len_ops
... | [
"juan@dragonite.(none)"
] | juan@dragonite.(none) |
4608f91e2fdbac43339f6c6d31842b17ae0dafae | 9607f45b501c62d0500536e14d134a1aca0a6982 | /datum/utils/binary_utils.py | 298f14ff5da4d3abe55ce11e5906ea9163bdccc3 | [
"Apache-2.0"
] | permissive | shashank-subex/datum | b8fb552d4180ea3ee6345fa6bf4a2620231c7601 | 089b687fc569c8c6ce613349297997c67ce40c7a | refs/heads/master | 2023-05-28T01:00:04.701429 | 2021-06-10T11:13:38 | 2021-06-10T11:13:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,437 | py | # Copyright 2020 The OpenAGI Datum 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... | [
"mrinal.haloi11@gmail.com"
] | mrinal.haloi11@gmail.com |
8deafcf50e07044121cb9f3eec2433aacaabbc49 | e76c6b0717dba6a3983ef2a78d414952f9004979 | /chapter4/squaredError4.2.1.py | 5e60af1e827ffe88b5ba4bd3ed9e76b7c8bbe4f7 | [] | no_license | mergitto/DeepLearning | 7ee0123d2b36103642173e255e9df9c8c42e4bad | b2c8ec29e693c062b2c42ec485093c2703c968f9 | refs/heads/master | 2021-03-27T14:32:20.469035 | 2017-06-25T06:00:51 | 2017-06-25T06:00:51 | 88,635,975 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 686 | py | #2乗和誤差
import numpy as np
def mean_squared_error(y, t):
return 0.5 * np.sum((y - t) ** 2)
#「2」を正解とする
t = np.array([0,0,1,0,0,0,0,0,0,0]) #正解が一つのみ(one-hot表現)
#正解と同じ「2」の確率が最も高くなる場合
y = np.array([0.1, 0.05, 0.6, 0.0, 0.05, 0.1, 0.0, 0.1, 0.0, 0.0])
print("正解と同じデータの確率が大きくなる場合の誤差")
print(mean_squared_error(y, t))
#... | [
"s13a1001@bene.fit.ac.jp"
] | s13a1001@bene.fit.ac.jp |
e30e550b3cefd4e84782aab9189ba7c97895ac5c | beeb245102056d79010c148406d86d5a981a201a | /readTablesCMD.py | 15b7f1ac76ecafc931ebb40e7d39e823bc2ed6cc | [
"MIT"
] | permissive | DeepakVelmurugan/pythonScripts | f3bdf5106edb3101d8909753f47e22ae6f7b16bc | c8d5e39747755df62abbb68d60320727b099e9a4 | refs/heads/main | 2023-06-06T03:59:06.229546 | 2021-06-30T04:21:52 | 2021-06-30T04:21:52 | 371,360,380 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,613 | py | import os
import time
import sys
import pyodbc #for mssql connection with python
#connect db
def connect(dbName):
try:
conn = pyodbc.connect('Driver={SQL Server};'
'Server=USBLRVDEEPAK1;'
'Database='+dbName+';'
... | [
"noreply@github.com"
] | noreply@github.com |
f0646fe0fd8a1e2b8bb8c54ad0d2342073d8a3f2 | d48f496653b764d52ce306b5f90fc39541634d81 | /EasyComm_apps/customer/utils.py | 76f8d2a990364741352212f639f46dcc1569428e | [] | no_license | bpovea/EasyComm | 1b0eba24d12644c7ba9174187f6407f51ea79e64 | 791094fffbdfb12e47b637566344f6a722f21bdd | refs/heads/master | 2020-03-23T05:42:02.112815 | 2018-08-22T06:46:01 | 2018-08-22T06:46:01 | 141,161,208 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,731 | py | import logging
from django.conf import settings
from django.contrib.auth.tokens import default_token_generator
from django.core.mail import EmailMessage, EmailMultiAlternatives
from django.urls import reverse
from django.utils.encoding import force_bytes
from django.utils.http import urlsafe_base64_encode
from oscar.... | [
"mau_leiton96@hotmail.com"
] | mau_leiton96@hotmail.com |
f6396f017757c43c104c60788345e79f28223d60 | 6be35afd102d456a84d700e9dbde43225527ea1c | /main.py | 6f8fec0439eceb2106c419fbbeaa096b8493c79a | [] | no_license | EnapsTer/pygame-miner | 1b477df61ee55c73f080bdc5e45e135cd569b590 | 710295b6df468172aa953c13d88d2b4cba639ada | refs/heads/master | 2020-12-13T18:55:49.998287 | 2020-03-17T17:17:33 | 2020-03-17T17:17:33 | 234,501,314 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,188 | py | # здесь подключаются модули
import pygame
from minerobj import *
import settings
pygame.init()
sc = pygame.display.set_mode((settings.DIS_WIDTH, settings.DIS_HEIGHT))
clock = pygame.time.Clock()
marked_bombs = 0
text = ''
font = pygame.font.SysFont('serif', settings.DIS_WIDTH//8)
cell_font = pygame.font.SysFont('... | [
"andreshah1@yandex.ru"
] | andreshah1@yandex.ru |
957e5920703f3c85f244e9d1b7a3969fb8b9b5b2 | b3586235dc1e1acbd49fab996f581269a808480b | /sistema/producao/migrations/0102_bobine_diam.py | b042cee2ccaad255cc483cecad77993e16a08807 | [] | no_license | gonfersilva/Sistema | 37ad1cd03dfbb7889fa0b0367c6ebd9044712ae3 | 4c6d9ade22040972efbe892eae0130939d7b5c46 | refs/heads/master | 2021-10-23T23:21:51.262723 | 2021-10-13T19:45:49 | 2021-10-13T19:45:49 | 155,545,680 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 452 | py | # Generated by Django 2.2.7 on 2020-06-16 15:47
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('producao', '0101_auto_20200616_1506'),
]
operations = [
migrations.AddField(
model_name='bobine',
name='diam',
... | [
"goncalo.silva@elastictek.com"
] | goncalo.silva@elastictek.com |
654f813fa917679788dbbed81e0b9d67498a56b6 | 4d898c998dc206b05a06622ba391d494f3849e83 | /test_scikit.py | 9527fcb97016b3fd2511a45b27e2383ac770ba19 | [] | no_license | seanv507/crea | 1e62ec2bd20199afd9343971f1fa44cd84a84a9b | ecb8506dca67010deea5593b9b465176acf50e28 | refs/heads/master | 2021-04-29T06:25:48.875102 | 2017-02-03T10:52:00 | 2017-02-03T10:52:00 | 77,966,270 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,051 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Aug 8 15:00:56 2014
@author: sean
"""
# -*- coding: utf-8 -*-
"""
Created on Wed Aug 6 17:39:00 2014
@author: sean
"""
import time
import sys
import pandas as pd
import sklearn.linear_model.logistic as logi
import libLinear_functions
data_path='../data/'
executable_pa... | [
"sean.violante@gmail.com"
] | sean.violante@gmail.com |
03365cddd0b5c606a5cf4458016b7c90ce7f9a19 | 3d6d8e8a561e17ac08dd2a876309c1ef47b2ce2e | /scrap.py | 9b2cb830f44f9e1228775e95bae6247eb27afd24 | [] | no_license | Schwartz210/Database-software | 116c90a35476abcac43099aaedbc528ce66d1bbd | bd41397edd2184b17fa60f8a2a355a44db39102d | refs/heads/master | 2021-01-24T08:42:04.729267 | 2016-09-30T20:37:05 | 2016-09-30T20:37:05 | 69,061,503 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 313 | py | import Tkinter
import tkMessageBox
top = Tkinter.Tk()
def deleteme():
tkMessageBox.askquestion("Delete", "Are You Sure?", icon='warning')
if 'yes':
print "Deleted"
else:
print "I'm Not Deleted Yet"
B1 = Tkinter.Button(top, text = "Delete", command = deleteme)
B1.pack()
top.mainloop() | [
"Schwartz210@gmail.com"
] | Schwartz210@gmail.com |
eee063041be1eb5218bde3b872038ec39a2313ab | 94cfeb080cb87875a8c8ba8ab65c6298cce80fa0 | /backends/__init__.py | 213e4e6ad32b5ece38d4e05b3a4320d79ce7947c | [
"BSD-2-Clause"
] | permissive | trb/Multicache | b89164ee6349deeb37eaf20543702650d257a4e4 | 1aa18a3fb14fc21a6986aedbeecaf072e3ed6c21 | refs/heads/master | 2021-01-10T18:41:19.062773 | 2012-05-18T02:02:12 | 2012-05-18T02:02:12 | 4,364,945 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 827 | py | import json
class Cache(object):
def __init__(self, backend):
self.backend = backend
def set(self, key, data):
if type(data) is not str:
data = ('json', json.dumps(data))
self.backend.store(key, data)
def get(self, key):
data = self.backend.retrieve(key)
... | [
"thomas.rubbert@gmail.com"
] | thomas.rubbert@gmail.com |
037fc634a6c96cca0b1264ed15b267b1d4a37fa3 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_116/2243.py | 3f2ecb9e374f1d2bd6ced2658ba82fc35ee1861b | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,156 | py | # 0123
# 0 ....
# 1 ....
# 2 ....
# 3 ....
class Game:
def __init__(self, size = 4):
self.size = 4
self.rows = { 'X': 0, 'O': 0 }
self.columns = {}
self.columns['X'] = [True] * size
self.columns['O'] = [True] * size
self.diagonals = {'X': [True, True], 'O': [True, ... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
010cf9a1587637d6a46d499f8c6bed86fd66dd1a | 8c9dfa35d17ffda6f6d98373a62349d6fbe5ba19 | /metadex/analysis.py | 94c01e9774f3ca4e118332c2311901f17c5783e6 | [] | no_license | veeeceee/metadex | e27ea5e15e12ae9d6d7aff7100199960336ea269 | d40616d83512da2e5e02dcd1842cfd21bf7412bd | refs/heads/master | 2021-01-24T09:35:08.464741 | 2018-05-06T17:47:37 | 2018-05-06T17:47:37 | 123,022,418 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,296 | py | import glob
import math
import numpy as np
import pandas as pd
import sys
import os
import errno
import itertools
from skbio.stats import subsample_counts
from functools import reduce
from Bio import Entrez
import time
import seaborn as sns
import re
#import requests
from scipy import stats
############################... | [
"vibhu@outlook.com"
] | vibhu@outlook.com |
01daabaf07bd71edd27ff854c43bdadcf33a32be | b73ca3fbaa3151296b918c18b85262884e91b459 | /iWaimai/apps/user/migrations/0001_initial.py | 96eb1a47f94bef1983d228365f6a603203e5cc9c | [] | no_license | DoneHi/video-Online | f57c198f429d5a85ba96e04c769fded18b996eda | becb0b4494c934b9aa7cdd0d81bb22cbad5bed65 | refs/heads/master | 2020-03-27T22:59:44.161322 | 2018-09-04T03:10:06 | 2018-09-04T03:10:06 | 147,280,001 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,168 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.14 on 2018-08-08 13:31
from __future__ import unicode_literals
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
... | [
"fengkai.feng@qunar.com"
] | fengkai.feng@qunar.com |
2b215ce4b4cdb5828c2a21c4d7217c5fc438e7b9 | b0864cdac46135b613d21a4dc5fd766ca61155b6 | /rango/migrations/0006_category_slug.py | 03079bfbff770044f6d550c59c9ecd9f6f45ac06 | [] | no_license | singhalabhishek160/rango | 6bfa6625a2f9c0ba4fc090f0cf49f01f7cdc54a5 | eb2ee1dbf497fe2006bda8fa85b872dcf9c4d6c9 | refs/heads/master | 2021-01-21T23:23:59.075260 | 2017-06-23T17:39:56 | 2017-06-23T17:39:56 | 95,241,539 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 433 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('rango', '0005_remove_category_slug'),
]
operations = [
migrations.AddField(
model_name='category',
n... | [
"singhalabhishek160@gmail.com"
] | singhalabhishek160@gmail.com |
4e58d2a0290f0e86a5c37fbb09beec1ce8fbe031 | f074af31286de1f05f8b1a93bf0e10a533895fcb | /views.py | e8343d2ade9776063ac124a8de05f569dbdf0fce | [] | no_license | escofresco/speeechtotext | 10663b131a5e04b6623d974bac006b53056c33aa | 89c44c898e4fe1101f6241d93e418100a0f84d1f | refs/heads/master | 2022-12-13T09:56:20.681023 | 2019-10-18T19:43:23 | 2019-10-18T19:43:23 | 215,436,964 | 0 | 0 | null | 2022-12-08T06:44:17 | 2019-10-16T02:15:51 | Python | UTF-8 | Python | false | false | 4,394 | py | import os
import time
from botocore.exceptions import ClientError
from flask import flash, redirect, render_template, request, session, url_for
from werkzeug import secure_filename
from app import app, socketio
import helpers
@app.route("/")
def home():
return render_template("home.html")
@app.route("/upload",... | [
"jonaszakr@gmail.com"
] | jonaszakr@gmail.com |
0d0efe5aebd2fc8deddd6b033513330081a63629 | 72cdc45a345fe47c525468ff82ef8ce845d9f800 | /Python/django_ajax/ajax_post/app/models.py | db2ea4bd5133f6de68fbf6b39f46e364a5fbe072 | [] | no_license | bopopescu/Coding-Dojo-assignments | 474242e14371e729b5948602ffc0a9328f1e43cb | 0598d7162b37d9472c6f1b82acc51d625ac871ca | refs/heads/master | 2022-11-23T18:55:36.393073 | 2018-07-20T07:43:56 | 2018-07-20T07:43:56 | 281,670,452 | 0 | 0 | null | 2020-07-22T12:24:30 | 2020-07-22T12:24:30 | null | UTF-8 | Python | false | false | 414 | py | from django.db import models
# Create your models here.
class NoteManager(models.Manager):
def create_note(self,post_data): self.create(note=post_data['note'])
def notes_rev(self): return self.all().order_by('-id')
class Note(models.Model):
note = models.TextField()
create_at = models.DateTimeField(a... | [
"gringojaimes20@gmail.com"
] | gringojaimes20@gmail.com |
2ac28a5d0a7c0005ad33dbe2e2cc6aa1d71abd57 | 5534f53315b0e0f12e6fa83f2b5eb5879c42a0e1 | /CMSSW_10_3_1_RECO_EXPRESS.py | bc77f9b8b3493be8db0b7bc40fe8349d0544371b | [] | no_license | goni-zz/PbPbRun2018ForestingSetup_v0 | b5fa6cd004e31de25b3ec5df131b3b6cde9dd074 | 0fca2a9945f6833711ce46822ac1bfeeefc4e0d8 | refs/heads/master | 2022-11-08T23:10:39.763145 | 2018-11-04T05:52:36 | 2018-11-04T05:52:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,376,093 | py | from FWCore.ParameterSet.VarParsing import VarParsing
options = VarParsing('analysis')
options.register ('isPP',
False,
VarParsing.multiplicity.singleton,
VarParsing.varType.bool,
"Flag if this is a pp simulation")
options.parseArguments()
import ... | [
"dhanga2@uic.edu"
] | dhanga2@uic.edu |
5c6bb3335f57b10132f77850a43d0ba321816f36 | d7cfe98faeb0fe1b4ce02d54d8bbedaca82764f7 | /study/정올/Language_Coder/j_504_자가진단4.py | f31b55453217d08896730ef9b8cd88efaa777e8b | [] | no_license | Anseik/algorithm | 27cb5c8ec9692cf705a8cea1d60e079a7d78ef72 | 925404006b84178682206fbbb3b989dcf4c3dee9 | refs/heads/master | 2023-02-26T00:02:01.696624 | 2021-02-03T14:10:28 | 2021-02-03T14:10:28 | 301,753,927 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 93 | py | line1 = '(@) (@)'
line2 = '(=^.^=)'
line3 = '(-m-m-)'
print(line1, line2, line3, sep='\n')
| [
"kma9271@naver.com"
] | kma9271@naver.com |
bcb9eb4ee3f78a2f529aeb211382936a1af9215f | 4262dcafe190db05852c7e1cfafc687031d23367 | /bin/easy_install | e469a8b93b622d8b2b9ebe5516a43986fad42ee1 | [] | no_license | ShunnoSaiful/JobPortal | b39930fcdb1bc30567f8a2c91d80786ab497afd5 | c8f3064b87c5d967b8f415fc5f080e167fc0c77d | refs/heads/main | 2023-01-07T02:44:33.831589 | 2020-11-11T11:47:46 | 2020-11-11T11:47:46 | 308,109,029 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 260 | #!/home/slash/Desktop/SocialBook/bin/python3
# -*- 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())
| [
"sunnosaiful@gmail.com"
] | sunnosaiful@gmail.com | |
15754d5a381476e2b135a910dfd8de885c100c93 | 07d14dc5c746712b0fd8a997c6592d82ada6f9b5 | /src/MDS-PerformanceOfMetrics.py | b60604f03f8f3cd0d3011f3b2dcdc70eff457029 | [] | no_license | ylmzkaan/MVE440-HW4 | 504a7eb4eb6a4302ec63fddeb486631e098938ce | 46d7000f55f21d79a296ee1d6d0b430ccb985362 | refs/heads/master | 2022-07-09T20:48:24.200104 | 2019-05-30T16:22:32 | 2019-05-30T16:22:32 | 186,616,662 | 0 | 1 | null | 2022-06-21T21:59:04 | 2019-05-14T12:23:58 | Jupyter Notebook | UTF-8 | Python | false | false | 2,373 | py | import numpy as np
import os
from gap_statistic import OptimalK
from matplotlib import pyplot as plt
from sklearn.manifold import MDS
from sklearn.neighbors import DistanceMetric
from DataGenerator import generateOneClusterData
from Settings import (DEFAULT_FEATURE_MEAN_RANGE, DEFAULT_NUMBER_OF_FEATURES,
... | [
"kaan-yilmaz@outlook.com.tr"
] | kaan-yilmaz@outlook.com.tr |
1fa634ea7182b12e6ce9021f8050dcc3492d90b5 | fe3ecb9b1ddd8de17b8cc93209134f86cd9c4a6f | /4_Python_ML/chap06_Regression/lecture/step01_regression.py | 9dd4e34d1e6a6aed096bba40c35b13ede650b6d2 | [] | no_license | nsh92/Bigdata-and-Machine-Learning-Education-at-ITWILL | d1a7292ee4865a3d0c664dd6ecf3afc0d6325847 | 3cb5661001597499178a2c85f4ccf70dcf0855d6 | refs/heads/master | 2022-11-21T23:10:51.421708 | 2020-07-23T12:49:11 | 2020-07-23T12:49:11 | 275,540,204 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,471 | py | # -*- coding: utf-8 -*-
"""
회귀방정식에서 기울기와 절편 식
기울기 = Cov(x,y) / Sxx(x의 편차 제곱의 평균)
절편 = y_mu - (기울기 * x_mu)
"""
from scipy import stats # 회귀모델
import pandas as pd
galton = pd.read_csv('C:/ITWILL/4_Python-II/data/galton.csv')
galton.info()
'''
<class 'pandas.core.frame.DataFrame'>
RangeIndex: 928 entries, 0 to 927
Data... | [
"totols1092@gmail.com"
] | totols1092@gmail.com |
e441c1876e506f4abbcc04d200cb18189987ceec | 4ccff489fccbeb033a9f2dad46d8fdd88f19f77b | /zipline/data/treasuries_cn.py | 2196b20a306a9d38ea1fa18a85fe9e9c86ce3b67 | [
"Apache-2.0"
] | permissive | hebpmo/zipline | 67094c237ae9830ab69f9a209929c7430bd4d4c5 | 396469b29e7e0daea4fe1e8a1c18f6c7eeb92780 | refs/heads/master | 2020-04-07T03:32:54.494193 | 2018-01-08T17:13:39 | 2018-01-08T17:13:39 | 158,020,235 | 0 | 1 | Apache-2.0 | 2018-11-17T20:04:50 | 2018-11-17T20:04:50 | null | UTF-8 | Python | false | false | 447 | py | """
国库券资金成本
"""
import pandas as pd
from cswd.sqldata.treasury import TreasuryData
def earliest_possible_date():
"""
The earliest date for which we can load data from this module.
"""
return pd.Timestamp('2006-3-1', tz = 'UTC')
def get_treasury_data(start_date, end_date):
"""读取期间数据"""
df = Tr... | [
"liu.dengfeng@hotmail.com"
] | liu.dengfeng@hotmail.com |
e9f257c5fcb395ace5094f1d7f8a4c7089a59c4d | fdfffa8cacb572a157ead4a9723f90b25ecfe50c | /modules/ducktests/tests/ignitetest/tests/self_test.py | 5ebabde56c14a2f8f89d2c9ef23b989133e61a1a | [
"Apache-2.0",
"LicenseRef-scancode-gutenberg-2020",
"CC0-1.0",
"BSD-3-Clause"
] | permissive | apache/ignite | 0bc83435a8db46d9c4df000fe05b1c70165b37d4 | dbf1c7825d74809cd6859c85a8ac9ed9ac071e39 | refs/heads/master | 2023-08-31T21:31:04.618489 | 2023-08-31T19:43:09 | 2023-08-31T19:43:09 | 31,006,158 | 4,806 | 2,308 | Apache-2.0 | 2023-09-14T18:56:33 | 2015-02-19T08:00:05 | Java | UTF-8 | Python | false | false | 11,141 | 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 use ... | [
"noreply@github.com"
] | noreply@github.com |
218ddcad43477775f0a864743f17dad426889cb9 | 5456502f97627278cbd6e16d002d50f1de3da7bb | /components/browser_watcher/DEPS | d488e82a2acc8b591a8a58b50277b1ce2e1d7b9c | [
"BSD-3-Clause"
] | permissive | TrellixVulnTeam/Chromium_7C66 | 72d108a413909eb3bd36c73a6c2f98de1573b6e5 | c8649ab2a0f5a747369ed50351209a42f59672ee | refs/heads/master | 2023-03-16T12:51:40.231959 | 2017-12-20T10:38:26 | 2017-12-20T10:38:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 85 | include_rules = [
"+components/metrics",
"+third_party/crashpad/crashpad",
]
| [
"lixiaodonglove7@aliyun.com"
] | lixiaodonglove7@aliyun.com | |
da3752a2f886a5ee364f945e07938ad804642977 | 000aebd661f69726d848708ac31319e1b994e727 | /uplift/tree/tests/test_export.py | 65d490377d6b48dec3d0269a3c2a8fa91937f766 | [
"BSD-3-Clause"
] | permissive | stenpiren/uplift-2 | f4d2c3b62f3748136ec85eb703a2a920a82469d2 | 14c8a43954d45c0b60aa8ae53e164c8e459ac127 | refs/heads/master | 2020-03-27T16:09:23.720412 | 2018-02-15T21:38:46 | 2018-02-15T21:38:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,155 | py | """
Testing for export functions of decision trees (sklearn.tree.export).
"""
import unittest
from re import finditer
from numpy.testing import assert_equal
from nose.tools import assert_raises
from uplift.tree import DecisionTreeClassifier, DecisionTreeRegressor
from uplift.ensemble import GradientBoostingClassifier... | [
"paulius.sarka@gmail.com"
] | paulius.sarka@gmail.com |
3beaca888a36dc002b9fa618283aacf86d72d4a1 | e7b20ed87e8402bb8f55f0bf2b91824c264e07b4 | /pyhypnolsd/hypnolsd.py | 76420c7b4a25359320b46780ee95a1c1dcd98b44 | [
"Unlicense"
] | permissive | rclough/pyHypnoLSD | 1ebe10929e6067e219851239f6e5a27fafcdb4b4 | 6d8c0539633d47c7e59368fcc849ca9b79ac6db4 | refs/heads/master | 2016-09-05T16:51:15.803912 | 2014-02-14T21:27:58 | 2014-02-14T21:27:58 | 16,823,888 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,016 | py | """
Module that contains various functions, constants, and tools
for interacting with a hypnoLSD object
"""
import sys, serial
###############################################################################
# Constants
###############################################################################
NATIVE_BAUD = 960... | [
"root@beaglebone.(none)"
] | root@beaglebone.(none) |
48421324896cdf92d22394ec3216d8ebde4bb512 | cbedb18df0aaac810aeea87a2273edb15c1cf899 | /Strings/49. Group Anagrams(3).py | 376bd9d635f4dd8b8830d8cec0f586ee7d9eeefc | [] | no_license | kanglicheng/CodeBreakersCode | 71b833bb9f4c96d520c26f0044365dc62137a940 | 31f7f730227a0e10951e7468bad1b995cf2eafcb | refs/heads/master | 2023-08-07T20:32:05.267695 | 2020-09-14T14:36:25 | 2020-09-14T14:36:25 | 265,978,034 | 0 | 0 | null | 2020-05-22T00:05:29 | 2020-05-22T00:05:29 | null | UTF-8 | Python | false | false | 960 | py | # not sure about the solution at start
# sort each str => O(W logW), w is the length of each words -> O(N * W log W) or counting sort O(N*W)
# turn each word into count char list: each list length is fixed:26 -> need O(W) to turn to list
# but lst can't hash -> turn to str then use hash map
class Solution:
def gro... | [
"56766457+Wei-LiHuang@users.noreply.github.com"
] | 56766457+Wei-LiHuang@users.noreply.github.com |
f22a90b558fe80e6085393b551cffb5c3e3fbcbe | 47116f3590f0b04e58cc60217175af550d69395b | /Genome_Assembly/SQTQ/multiqc.py | faafd1bcdf0525dd47b8b3a8b593af0a450e44ef | [] | no_license | genomenerds/SnakeCube | 2954d623a64f97311adf0dab58bd9be480c198d5 | 0411875d0b5706bc99b0889e8edc259fed95e102 | refs/heads/master | 2023-03-30T23:12:56.305495 | 2021-04-07T21:24:09 | 2021-04-07T21:24:09 | 275,118,624 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 719 | py |
import subprocess
import os
def unite_quals(trimmed):
''' Performs multiqc on all html generated files from fastqc.
After the multiqc report is generated, the extra html files are removed.
The final reports (html and dir info of seqs) are saved in the dir of the raw samples.'''
if trimmed:
... | [
"noreply@github.com"
] | noreply@github.com |
65ad21db7fb3dcacd00fdfa037d14b2000dee3b6 | 98eb706683fe169bc0e3597b2244bd62a34ce464 | /release-notes/source/conf.py | f3f15f6d90938650cd19efd6570a6c49917ce9bb | [] | no_license | lsandov1/Documentation | 7855e3b917646d5a70342185203ae80f624f650c | 036d5079b04ec5845c4bb943d5002896be42d6c2 | refs/heads/master | 2021-05-27T21:24:47.917645 | 2014-02-28T09:04:01 | 2014-02-28T09:04:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,485 | py | # -*- coding: utf-8 -*-
#
# Freescale Community BSP Release Notes documentation build configuration file, created by
# sphinx-quickstart on Mon Apr 15 11:52:33 2013.
#
# 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... | [
"otavio@ossystems.com.br"
] | otavio@ossystems.com.br |
d06c26735d98802d8c12681d5abbd5e312ed369c | 14301002361e8b9b28ff5a38025d39295564a5a9 | /cache/.mako.tmp/post_helper.tmpl.py | caf5cb86d87cb86794927417cf720cc778370ffd | [] | no_license | wcmckee/artcontrolme | 00cda8d1f0111f7a9528b35246813515c72539ab | b25d5d6b2a98d65fa3c85537d0dfa8926030303c | refs/heads/master | 2021-01-20T16:44:36.974014 | 2016-03-08T11:39:53 | 2016-03-08T11:39:53 | 39,675,553 | 0 | 0 | null | 2015-07-25T06:49:52 | 2015-07-25T06:49:52 | null | UTF-8 | Python | false | false | 10,195 | py | # -*- coding:utf-8 -*-
from mako import runtime, filters, cache
UNDEFINED = runtime.UNDEFINED
STOP_RENDERING = runtime.STOP_RENDERING
__M_dict_builtin = dict
__M_locals_builtin = locals
_magic_number = 10
_modified_time = 1453631284.7955158
_enable_loop = True
_template_filename = '/usr/local/lib/python3.4/dist-package... | [
"will@artcontrol.me"
] | will@artcontrol.me |
5dbc21d8aa28eef3f810bcd350664d9987d8205e | d3c8eda54c80e3b6a3aadceea63a12cdc1cac511 | /LinkedList_21.py | c94fce85688bc64dbee756addd030d1804f151b3 | [] | no_license | DiWuDi/Mac-VSCode | 484a6d7d735efeb498caff24d737180e6fca1edb | 9b7ade81282273a86e7bd206aaaf11fc1d0ab7f9 | refs/heads/master | 2021-02-08T13:54:55.357985 | 2020-03-02T16:27:54 | 2020-03-02T16:27:54 | 244,158,792 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,378 | py | # Definition for singly-linked list.
class ListNode:
def __init__(self, x):
self.val = x
self.next = None
# class SLinkedList:
# def __init__(self):
# self.head = None
class Solution:
def mergeTwoLists(self, l1, l2):
"""
:type l1: ListNode,
:typ l2: ListN... | [
"dwzoon@gmail.com"
] | dwzoon@gmail.com |
5ea85eaa1b314a78c692b6d5efac064ab875b546 | 6a5507354b516b3d09404bd4c23e9d5c3685a38c | /logmappermaster/transformer/fuzzysystems/memory.py | 5966ae0a6c1fa0f1190f52226bc2a3bc99448cf3 | [
"MIT"
] | permissive | abaena78/logmapper-master | e14512b97d38dd0f3ff47b42e01f6686076d0b1c | ef4cc7470aec274095afa09f0fe97d9d48299418 | refs/heads/master | 2020-03-17T08:33:01.139682 | 2018-05-15T01:53:58 | 2018-05-15T01:53:58 | 133,442,441 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,513 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Jan 20 15:31:46 2018
@author: abaena
"""
import numpy as np
import skfuzzy as fuzz
from skfuzzy import control as ctrl
import matplotlib.pyplot as plt
import logging
logger = logging.getLogger(__name__)
def buildFuzzySystem(showDescription = False):
"""
========... | [
"jabO!978"
] | jabO!978 |
94eb01fa2e64c64f80aba0050ebbcf3a18d62307 | ce45a442a98bc2c3003d9fe56dfb29e87703db26 | /tensorflow-41973/test.py | e5f7b91627d54b8f77ca9e8c7e3cd218ec1c6839 | [] | no_license | efeslab/bugbasev2 | dfabeb658ca2b39e7805ac2909a4331d64aca440 | 5023fb00caffb3085ccc48cc7c3dac753de2d52e | refs/heads/master | 2021-06-19T04:28:57.607571 | 2021-03-05T02:17:31 | 2021-03-05T02:24:00 | 185,896,944 | 1 | 5 | null | null | null | null | UTF-8 | Python | false | false | 664 | py | import numpy as np
import tensorflow
from tensorflow import keras
from tensorflow.keras import layers
import gc
import tracemalloc
if __name__ == "__main__":
tracemalloc.start()
while True:
inputs = keras.Input(shape=(10,))
out = layers.Dense(1)(inputs)
model = keras.Model(inputs=inp... | [
"emnetmes2@gmail.com"
] | emnetmes2@gmail.com |
7ca6859e115c62d842d5d9e6e43a3a2a7b688e05 | 4b5d1b40f5d1ddf6bda1225b4ccde88b4cdc728d | /webu/middleware/geth_poa.py | b4d173684cf502fda10854b4140f1bd4d24f44ff | [
"MIT"
] | permissive | irchain/webu.py | ecd3dc6b46c7b5a0b2333c1631b0183ba53ba4e4 | 5a01124fc84d74df09a33d9dabe88b704cd5b6c6 | refs/heads/master | 2020-03-10T12:17:58.313868 | 2018-04-18T13:31:40 | 2018-04-18T13:31:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 671 | py | from cytoolz import (
compose,
)
from eth_utils.curried import (
apply_formatters_to_dict,
apply_key_map,
)
from hexbytes import (
HexBytes,
)
from webu.middleware.formatting import (
construct_formatting_middleware,
)
remap_ghuc_poa_fields = apply_key_map({
'extraData': 'proofOfAuthorityData'... | [
"dreamxyp@gmail.com"
] | dreamxyp@gmail.com |
289b2b5589841684c015f1ddb78c56c6c114ae61 | cd782375d1cc8d40cc03401a4265b64888d7f278 | /src/poetry/utils/cache.py | ba88a077055cb244f1c87c54f1489b8fd8696d11 | [
"MIT"
] | permissive | hemanta212/poetry | 79179b8f2b702b17287e6fff9bc5c423437a630f | a3f6437bb1d5868f8ee8a00499a6fe1deab5a7ff | refs/heads/master | 2023-08-31T07:08:06.331411 | 2023-02-12T09:32:34 | 2023-02-25T11:52:05 | 245,098,007 | 0 | 0 | MIT | 2023-09-11T00:59:10 | 2020-03-05T07:36:20 | Python | UTF-8 | Python | false | false | 5,509 | py | from __future__ import annotations
import contextlib
import dataclasses
import hashlib
import json
import shutil
import time
from pathlib import Path
from typing import Any
from typing import Callable
from typing import Generic
from typing import TypeVar
# Used by Cachy for items that do not expire.
MAX_DATE = 9999... | [
"bjorn@neersighted.com"
] | bjorn@neersighted.com |
c937a1e10f06462978b28fb9157b494a407b54b8 | 66658ea3c4ec62867320b2c4fc0db23178e4c82c | /ACWS_cropZeissZ1Tiles.py | 8321475d2fcd14217604b0a4fc2269e77edd28da | [
"MIT"
] | permissive | alexcwsmith/imageProcessing | 42952b09725b8e5753b10133de1d2f78738f9cfd | 549954b50de1dadc6426bcdea0147676260ae7c1 | refs/heads/master | 2022-09-01T14:36:22.016889 | 2022-08-26T12:43:31 | 2022-08-26T12:43:31 | 221,006,252 | 0 | 1 | null | 2020-12-04T22:09:21 | 2019-11-11T15:03:53 | Python | UTF-8 | Python | false | false | 3,645 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Fri Apr 1 09:03:58 2022
@author: smith
"""
from skimage import io
import os
import numpy as np
import glob
import argparse
def cropZeissTiles(directory, level=3, axis='X', cropDim=256, side='left', plugin='skimage', pixelSizes=None):
"""Crop tiles f... | [
"smitaw@musc.edu"
] | smitaw@musc.edu |
aa71253ba7e15f7bcf26f70de368cd4dad669c8d | c0bf9d8507076df6c4414abd0935d3ab574ea1cd | /src/GameController.py | e072ea57f6328d808dfc51210b3917b1d9623bf8 | [
"MIT"
] | permissive | Paarzivall/Praca-Inzynierska | 8dc2f54c42f304af82e871f18e6d92ead068bfb2 | f6e7b0ba6a89ec7406d0553cbd6c9ac0db7651ee | refs/heads/master | 2023-03-21T15:08:39.527172 | 2021-03-14T13:12:35 | 2021-03-14T13:12:35 | 247,774,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,289 | py | import os
import pygame
from src.BinaryConvert.BinaryConvertMain import Level_1_Main
from src.ExampleLevels.ExampleLvl import ExampleLvl
from src.ExampleLevels.ExampleLvl2 import ExampleLvl2
from src.PlatformsMainPackage.Player import Player
from src.BreakingClass import BreakingClass
import src.MainImages as main_img
... | [
"44908654+Paarzivall@users.noreply.github.com"
] | 44908654+Paarzivall@users.noreply.github.com |
06518fe8ee444c3c27e929121259e798981bf215 | b746ba4aaedd2d86f3732e8f216fd14212f089bd | /modules/api/prefixspan.py | d6375b323153e5a2d2177197a1fbe2d5c4505002 | [
"MIT"
] | permissive | chasezcz/Persona | 835a6924ee28587b376f8b52d5f2f481d7f3a905 | 1e11c398601c000f0dd18af58ef451a6f8bda464 | refs/heads/main | 2023-04-08T11:52:34.574475 | 2021-04-23T05:50:26 | 2021-04-23T05:50:26 | 316,405,240 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,730 | py | '''
@File : prefixspan.py
@Time : 2020/12/29 16:46:00
@Author : Chengze Zhang
@Contact : chengze1996@gmail.com
@License : Copyright (c) 2020 Chengze Zhang
'''
# here put the import lib
def rmLowSup(D,Cx, postfixDic,minSup):
'''
根据当前候选集合删除低support的候选集
'''
Lx = Cx
fo... | [
"929160190@qq.com"
] | 929160190@qq.com |
254a862e486d74a25353f5e2881b1ef500436148 | d98778df9a336ea46a271f89ccf9a66d4a0bb7c5 | /src/browser/chrome.py | 90ecdadec2721278d657a8fe4fcfa2e344728884 | [] | no_license | arieslee/python-code | a37f4835a0a81dce6b56d39dd189e449d02523d1 | 13af1df59b14b97bfbf5053a69362c9e0618e0cb | refs/heads/master | 2020-03-22T09:03:59.588712 | 2018-07-05T08:49:36 | 2018-07-05T08:49:36 | 139,812,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,685 | py | #!/usr/local/bin/python3
# -*- coding: utf-8 -*-
# @Time : 2018/7/5 下午3:37
# @Author : Aries (i@iw3c.com)
# @Site : http://iw3c.com
# @File : chrome.py
# @Software: PyCharm
'''
pip3 install beautifulsoup4
pip3 install -U selenium
下载 chromedriver http://npm.taobao.org/mirrors/chromedriver/ or http://chromed... | [
"forphp@qq.com"
] | forphp@qq.com |
e9fbf38d9639279a211bdf3b9ee3304c00f5b7e8 | c54f34499b6c86680b2155966a431be43db50990 | /img_n_sound.py | d1c601d29193e5e13c4ab858fc31b6741bd9bfce | [] | no_license | woo00154/BeneathTheSurface | 92703da8c5316b03f0a3c524a3737c5e9ebbaa44 | 2e3139cfd6041803ce955e97cf3128ecf395c4a1 | refs/heads/master | 2021-01-13T14:05:20.522379 | 2014-04-28T01:36:49 | 2014-04-28T01:36:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,437 | py | import pygame,os
from pygame.locals import *
def load_image(name='',colorkey=None,main_folder = 'images',folder=''):
fullname = os.path.join('data',main_folder,folder,name)
try:
image = pygame.image.load(fullname)
except pygame.error as message:
print("Cannot load image:", fullname)
... | [
"woo00154@gmail.com"
] | woo00154@gmail.com |
706004ded5504282ced7c31b8a3c251769a0d8c8 | b00330d48bfe09da78e50694a72793fe128c6a01 | /27_머신러닝_붓꽃 품종 학습.py | e10c7892374db24c3f940ab357d31d34b02b1683 | [] | no_license | swj8905/2021_Hongik_Summer | c177d64c6f0326f00d974e20e1334d8ac0ede3e4 | e3c28d1bfeb4d6a55b152bd922b61b77a17bb84c | refs/heads/master | 2023-06-16T00:47:15.852607 | 2021-07-08T12:01:31 | 2021-07-08T12:01:31 | 378,916,618 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 621 | py | from sklearn.svm import SVC
import pandas as pd
from sklearn.model_selection import train_test_split
from sklearn.metrics import accuracy_score
# 데이터 불러오기
df = pd.read_csv("./iris.csv")
label = df["variety"]
data = df[["sepal.length", "sepal.width", "petal.length", "petal.width"]]
train_data, valid_data, train_label, ... | [
"swj8905@naver.com"
] | swj8905@naver.com |
044d3e45234e982ce9cae918ec38e9c9d777b166 | 25a3d58155f3b6cc05398ce3bfcda02eb91f4c0a | /src/plot_3d.py | c71e8439a351aa27677f88c2acbf5ff825c3f97e | [] | no_license | breadcrumbbuilds/customer-churn | fe88bfa010cad6b64d8fe8e5d6361e450d177bdc | 70d875d279238f118c13f6caa0a1944059e1bc5c | refs/heads/main | 2023-04-09T16:22:34.919449 | 2021-04-14T05:50:36 | 2021-04-14T05:50:36 | 357,773,763 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,225 | py | import numpy as np
import pandas as pd
from sklearn.decomposition import PCA
import matplotlib.pyplot as plt
import config
from dispatchers import normalize_dispatcher
df = pd.read_csv(config.TRAINING_FILES[0])
df = df[config.FEATURES]
x_train = df.drop("target", axis=1).values
y_train = df.target.values
scaler = no... | [
"brad@bradcrump.ca"
] | brad@bradcrump.ca |
40b38c9d62305e2dc9eb496685175c25a2a73a41 | 21dd7d56c370ea9a02b66654525fd96a398a9e49 | /apps/competition/urls.py | 8fda71942b35148c142e463894bd46fdd17e9acf | [] | no_license | hqpr/fame | fdad5d03bf9ee7ca31ae8a4701ff05bafd49540f | 8b77e3a822ae70ee6d79a8003e1d9f9bc5ba8355 | refs/heads/master | 2023-01-14T16:58:46.533090 | 2015-08-31T15:37:09 | 2015-08-31T15:37:09 | 35,205,330 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,243 | py | from django.conf.urls import url
from apps.competition.views import competitions, single_competition, single_competition_terms, pick_media_file, SingleCompetitionEnter, \
competition_add_audio, competition_add_video, entry_review
urlpatterns = [
url(r'^$', competitions, name='all_competitions'),
url(r'^(?... | [
"adubnyak@gmail.com"
] | adubnyak@gmail.com |
b87d55eb7f497f7695c1eaa64d9dc9dc8ee02716 | 0c4687ec5efbe2ff205c73946980437d208f23e2 | /users/views.py | 47e0f85eea845e374d920c9420aa4befc1a46e02 | [] | no_license | swan20hub/Learning_Log | 1dc170ea9b143802fa00906d0024c33e0d3f5d8d | 43765540a72f9a9f9592a18337c8d0a32ec0b8b7 | refs/heads/master | 2023-03-06T04:35:07.293202 | 2021-02-21T09:35:16 | 2021-02-21T09:35:16 | 340,612,726 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 743 | py | from django.shortcuts import render, redirect
from django.contrib.auth import login
from django.contrib.auth.forms import UserCreationForm
def register(request):
"""Register a new user"""
if request.method != 'POST':
# Display blank registration form
form = UserCreationForm()
else:
... | [
"swarnasridhar.98@gmail.com"
] | swarnasridhar.98@gmail.com |
a6b5d5ca464b2d8e3bc8612f6d3025d5ccd694b2 | 0e8bca906671e3f00e7053ace4caedac4ac5170d | /server/methods/block.py | 80f1fa93a6bf38326b2f8a5c73e0a62b71787ff7 | [
"MIT"
] | permissive | akatama-ai/exp | f1be5439319fc54d0d41507f4cfca707a9d8a941 | 3853e1731621069c4e68c56830712e2a565c7381 | refs/heads/master | 2022-12-25T22:26:07.120431 | 2020-10-13T15:17:50 | 2020-10-13T15:17:50 | 303,739,324 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,968 | py | from server.methods.transaction import Transaction
from server import utils
from server import cache
import config
class Block():
@classmethod
def height(cls, height: int):
data = utils.make_request("getblockhash", [height])
if data["error"] is None:
txid = data["result"]
... | [
"support@quantex.live"
] | support@quantex.live |
8280239b266e98ba4095c45bbb7de89748f65b1e | 8a5645aa0746deb5eb500656f474d53e4ae07f92 | /scripts/Qlearning/train2017.py | 56a5d96663f2b55d3485366ab55e9c7c93e49cad | [] | no_license | mwg900/IRL_learning_ros | 436280cbee6668436ead4ec60121ff87c7986156 | e65c86411d80206a658cd0fb019bf84cf5a4f346 | refs/heads/master | 2021-08-04T12:19:52.804862 | 2017-11-24T01:56:52 | 2017-11-24T01:56:52 | 96,281,482 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,461 | py | #!/usr/bin/env python
#-*- coding: utf-8 -*-
"""
Ros node for Reinforcement learning
Edited by Jeong-Hwan Moon, IRL, Pusan National UNIV. mwg900@naver.com
Original algorithm : Double DQN (Nature 2015)
http://web.stanford.edu/class/psych209/Readings/MnihEtAlHassibis15NatureControlDeepRL.pdf
"""
import numpy as np
impo... | [
"mwg900@naver.com"
] | mwg900@naver.com |
960bf078906eed81ae4b67403ac5548f517d0098 | f7e7b312bd80bd27ef9f59ca09cbb835b158b462 | /allmusic/allmusic/middlewares.py | 9fe652995488e32012b78113db82440fa0eea025 | [] | no_license | omarriaga/web-semantic-crawler | 98fe8f35d4ede6bfa3b2c016444cfdd39bae60e2 | 767d57ea4f8b71a6c0886002d9b94a4bc6233b5c | refs/heads/master | 2021-01-17T06:10:25.741899 | 2017-03-30T22:18:40 | 2017-03-30T22:18:40 | 83,147,363 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,882 | py | # -*- coding: utf-8 -*-
# Define here the models for your spider middleware
#
# See documentation in:
# http://doc.scrapy.org/en/latest/topics/spider-middleware.html
from scrapy import signals
class AllmusicSpiderMiddleware(object):
# Not all methods need to be defined. If a method is not defined,
# scrapy ... | [
"ojmarriagac@zurich.co"
] | ojmarriagac@zurich.co |
8d2ea5ea60a0df2b12efea96a293aaf4b001fb31 | f64acdf53762fe01065a21f1a0c652f291372750 | /posts/migrations/0001_initial.py | c1f38157bffc3a03b2dd816f137c19a42a2d48d9 | [] | no_license | paraiccooney/Django-blog | 19c9945a634e131f1f0a738b71ca291e15c60940 | 2095932983ca8f593109053d121482856aec6a6a | refs/heads/master | 2021-06-14T03:43:55.262325 | 2019-08-18T19:05:57 | 2019-08-18T19:05:57 | 202,784,837 | 0 | 0 | null | 2021-06-10T21:50:18 | 2019-08-16T19:08:42 | Python | UTF-8 | Python | false | false | 1,043 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2019-08-18 08:59
from __future__ import unicode_literals
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateMode... | [
"ubuntu@ip-172-31-81-46.ec2.internal"
] | ubuntu@ip-172-31-81-46.ec2.internal |
bf3c19119bb2d2b983af9051cf8b17a582348de7 | ba09e0350430579fbbc9b2c0c69ff9f034172249 | /dummy_mp.py | 1d34a6e0c54396cc796b60014ab32ff4d13ee5ba | [] | no_license | P2PSP/SDN-P2P | 7361f31f27dc00d614513f001b7269027fe133cc | e071637f4783934bdbdcc93ac804a662ffc53391 | refs/heads/master | 2020-04-02T17:24:02.555855 | 2018-10-25T11:11:44 | 2018-10-25T11:11:44 | 154,656,147 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,766 | py | import socket
import argparse
from random import randint
from dummy_hp import DummyHP
class DummyMP(DummyHP):
def __init__(self, port, splitter, peer_list, targets, split):
super().__init__(port, splitter, peer_list)
self.targets = targets
self.port = port
self.split = split
... | [
"cristobalmedinalopez@gmail.com"
] | cristobalmedinalopez@gmail.com |
5181e499b3220d7aa79460e74c4d532b634fb8bc | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /QgAwpaFWD2jtxZ2wG_8.py | c19c34476af79ec15c2595c52b9b91290b20f82c | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 358 | py | """
Given an integer `n`. Your task is to find how many digits this integer
contains without using `str` or `len` methods!
### Examples
sum_digits(100) ➞ 3
sum_digits(1000) ➞ 4
sum_digits(1) ➞ 1
### Notes
N/A
"""
def sum_digits(n):
count=0
if n==0:
return 1
while n!=0:
n//=... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
8b3aa262e35598dc2d292cd7d55501e25486ca77 | 92b5edae971934b6be509054b6c69da9b4308291 | /src/crawl_essay/essayistclub/crawl.py | b797827b308e8d3150ea260c96ed016b1930c21c | [] | no_license | inyeoplee77/wallE | 16122a55f277a5723d2e818b31eaad88922ddfa6 | 12e4b3d36d58381c45b29fbca6b9c96b00e21f08 | refs/heads/master | 2021-01-10T10:17:55.836983 | 2016-04-16T08:16:17 | 2016-04-16T08:16:17 | 53,031,672 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 457 | py | from bs4 import BeautifulSoup
import urllib
base = "http://www.essayistclub.or.kr/"
for i in range(1,100):
for j in range(1,10):
if(i<10):
r = urllib.urlopen(base + '0' + str(i) + 'm' + '0' + str(j) + '.htm').read()
else:
r = urllib.urlopen(base + str(i) + 'm' + '0' + str(j) + '.htm').read()
b = Beautifu... | [
"blackin77@gmail.com"
] | blackin77@gmail.com |
2c0fb6e959d438a0f6cb398bfcf5ef68f24b6561 | dfc3fae15b8d392b1e742ef1cd40353225659e1f | /load_model_gradcam.py | 39703c0fe5f80e32ee65b596e9384bfe6e6375de | [] | no_license | sahar2012/GradCAM-for-cloud-ml | c1154ac503608ae62096628ed691a6d5cb2738b8 | f89daa24b3583ff058446ba8b56ef7488b1b4841 | refs/heads/master | 2020-10-02T02:39:54.556102 | 2019-12-12T20:03:36 | 2019-12-12T20:03:36 | 227,682,350 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,016 | py | #
# Cloud for ML Final Project
# Sahar Siddiqui
# load_model_gradcam.py
#
import base64
import os
import uuid
from model.alexnet import load
from model.alexnet import predict as predict_alexnet
from model.crop_gradcam import crop_relevant
# -----------------------------------------------------
# -- Inference
# ----... | [
"noreply@github.com"
] | noreply@github.com |
fb935a722d4b3c9f47c71d87bd443ec94697eaf1 | a32781aeb6a5c5210c1066eff68648764a478abb | /tastypiepackage/urls.py | f20ab88141c444c800c815bf35e27ddef6648b1d | [
"MIT"
] | permissive | shihyu/django-tastypie-package | ca840370507a238a209da159f0e3b81554e9ef59 | 84fe187bcda46de74902f0c9e0e65b2a2545ba04 | refs/heads/master | 2022-10-05T01:05:19.970569 | 2020-04-19T13:09:22 | 2020-04-19T13:09:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 939 | py | """tastypiepackage 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')
Cla... | [
"mikekuforgit@gmail.com"
] | mikekuforgit@gmail.com |
59f993cae497a321515dbb28d5ce0ff639b302d3 | 96c653b932e4808b3d2c6f43972ce55a7febbd71 | /Strategies/Sklearn_LOO.py | 845f6f2e37f502e679d534f57530f5cbbbb2d5f3 | [] | no_license | TheMVS/tfm_deep_learning_alzheimer | 22f303247b9e0991c428653e51f116f37e9610d0 | 1ce42ddb6367be601eedd3c46dce8b5c85b7f4a9 | refs/heads/master | 2020-04-15T22:54:11.764335 | 2019-01-19T16:21:22 | 2019-01-19T16:21:22 | 164,646,765 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,667 | py | from Strategies.Abstract.Strategy import Strategy
class Sklearn_LOO(Strategy):
def __init__(self, params):
'Constructor'
super(Sklearn_LOO, self).__init__('Sklearn_LOO', params)
def fit(self, model, data):
import time
import keras
import numpy
from sklearn.mod... | [
"apte3@hotmail.com"
] | apte3@hotmail.com |
6f659c63d644601207b26f69956c91a1acf67b0c | 8734446b29c3424e25ef82c3ba65db61f1736a12 | /prngmgr/migrations/0007_auto_20161008_1643.py | 1ea7a65c037d1ef783856208172d4c2c0bbe84f8 | [
"Apache-2.0"
] | permissive | decolnz/prngmgr | 25ef02a3c76c00864009c6470d532805a5b52af3 | 6ea19e0095c123d337e523f3c832f5688254c7f1 | refs/heads/master | 2021-01-19T00:51:26.798203 | 2016-10-11T09:16:04 | 2016-10-11T09:16:04 | 87,213,736 | 1 | 0 | null | 2017-04-04T17:05:25 | 2017-04-04T17:05:25 | null | UTF-8 | Python | false | false | 435 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('prngmgr', '0006_auto_20161008_1336'),
]
operations = [
migrations.AlterField(
model_name='peeringsession',
... | [
"benm@workonline.co.za"
] | benm@workonline.co.za |
15603677b6689310d7d7af20aa76c91d5bdfee15 | a180166dafdf5b4dea4b2e6f1c2144c414c73154 | /servidor.py | 1ecbf7dfc50d708d32618e248ea9f4ba81168a1d | [] | no_license | caio-cacador/ccek-19283 | d21b6bd451d440ca6eff28576eb59a83904b750a | 333cf7940aa07f4fd67944af2c0ebd0a945c4052 | refs/heads/master | 2020-07-18T10:47:11.300300 | 2019-09-04T16:51:35 | 2019-09-04T16:51:35 | 206,232,527 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 537 | py | # /usr/bin/python3
class Servidor():
def __init__(self, umax):
self.usuarios = []
self.custo = 0
self.umax = umax
def is_empty(self):
return len(self.usuarios) == 0
def is_full(self):
return len(self.usuarios) == self.umax
def update(self):
self.cust... | [
"caiocacador.s@gmail.com"
] | caiocacador.s@gmail.com |
965e981b8f29b737e79b9589c6a5d3cff3f9643a | c91680fa2353d1250c22695c7d8e16345227fe3a | /backend/backend/settings.py | ed463e7d021c706c5d28fadcc98479df9063dc85 | [] | no_license | nayan9229/ProjectManger | c1b8fcc6bc455f10c78734e1838291b76a68fb94 | eb3d7baa6c0b45d60d0c94b4f3fc1ad6edc55369 | refs/heads/master | 2022-05-06T13:19:23.494473 | 2019-10-15T04:35:29 | 2019-10-15T04:35:29 | 214,080,933 | 0 | 0 | null | 2022-04-22T22:33:58 | 2019-10-10T03:46:40 | HTML | UTF-8 | Python | false | false | 3,283 | py | """
Django settings for backend project.
Generated by 'django-admin startproject' using Django 2.2.6.
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 os
#... | [
"nayanmevada@ymail.com"
] | nayanmevada@ymail.com |
30f6e5a1b752a91ffa9abf6494a9afb82c6f04e8 | 07d1dd26660bcb10b4b2a0c6a1cb13619af9e7cb | /stooldb/document.py | 735b82ebafef9da2e0e114ccbac02c1c9f01fda9 | [] | no_license | kbatten/stooldb | 608bc8f141aa0eb7b638b09409bcf60aceb995a6 | 29a520fe96bacabf43b5d1947747e3c1f0c3a1ab | refs/heads/master | 2016-09-10T13:28:42.621666 | 2011-09-23T19:10:02 | 2011-09-23T19:10:02 | 2,200,682 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 285 | py | class Document(object):
def __init__(self, data, id, rev):
self.data = data
self.id = id
self.rev = rev
def __repr__(self):
return str({"id":self.id, "rev":self.rev, "value":self.data})
def __getitem__(self, key):
return data[key]
| [
"kbatten@gmail.com"
] | kbatten@gmail.com |
d812823dcc5f741c075b136a22be8928175d68e6 | 5388e00d992050d515f72666e2f76c51b2ca56ee | /calc_angle_between_two_locs.py | 424c037ae9233d5870ce13b03f901b6b13ad4281 | [
"Apache-2.0"
] | permissive | lonecrane/PyGuymer3 | df9ffc62d4f7fddf04ae3ea18f5487dec48472c7 | c7eb017dac18abb5eafe74e23a93bf7e68e48916 | refs/heads/master | 2020-09-11T23:44:14.036051 | 2019-11-20T07:01:22 | 2019-11-20T07:01:22 | 222,229,475 | 0 | 0 | Apache-2.0 | 2019-11-17T10:13:51 | 2019-11-17T10:13:51 | null | UTF-8 | Python | false | false | 1,049 | py | def calc_angle_between_two_locs(lon1_deg, lat1_deg, lon2_deg, lat2_deg):
"""
This function reads in two coordinates (in degrees) on the surface of a
sphere and calculates the angle (in degrees) between them.
"""
# Import modules ...
import math
# Convert to radians ...
lon1_rad = math.... | [
"t.m.guymer@thomasguymer.co.uk"
] | t.m.guymer@thomasguymer.co.uk |
469524143b5a6dd4a93c79d0bbcfd8fa0aefde7f | 0a3e9bba90a81ca55d25287e2aff9ca1ef251ccd | /stage.py | d86c1309ddd2edd8e2167dbffd1362d3332d251f | [
"MIT"
] | permissive | jon2718/ipycool_2.0 | 4eaa1f6490cbea53ccfbc2476fb047010af28aa0 | 34cf74ee99f4a725b997c50a7742ba788ac2dacd | refs/heads/master | 2016-09-06T21:31:17.529223 | 2015-04-25T12:58:57 | 2015-04-25T12:58:57 | 34,563,565 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,245 | py | from drift import *
from hard_edge_transport import *
from hard_edge_sol import *
from accel import *
import sys
class Stage(HardEdgeTransport):
"""
A final cooling stage comprises:
HardEdgeTransport with transport field comprising:
(1) Drift (d1)
(2) HardEdgeSol
(3) Drift (d2)
(4) Acc... | [
"jon@thesoniccloud.com"
] | jon@thesoniccloud.com |
fa780442e6a33f708e58c7a9f128675dbc688a76 | 385ca54d02e44d30c33fc20553a3a09b7e15eff0 | /Model.py | e45c680ada9cbc7ee6a4aa64185803ac531431a5 | [
"MIT"
] | permissive | isjakewong/digital-speech-processing-course-project | ae9b36a0b778696fe76060e75039a3c32caf8a8f | 961f66ec34c4953a5ec94a0a689b0b3fd3a903af | refs/heads/master | 2020-11-29T00:28:01.400698 | 2019-12-25T07:34:44 | 2019-12-25T07:34:44 | 229,962,223 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,131 | py | import tensorflow as tf
import scipy.io.wavfile as wav
from python_speech_features import mfcc,delta
import os
import numpy as np
import sklearn.preprocessing
path_film = os.path.abspath('.')
path = path_film + "/data/xunlian/"
test_path = path_film + "/data/test_data/"
isnot_test_path = path_film + "/data/i... | [
"noreply@github.com"
] | noreply@github.com |
f5ef2c723c317a80eb8cad3ed47da968f1411d5f | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/adjectives/_inferiors.py | acab87363dd1d78f2b03e3b0fd1313fda1eeab3e | [
"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 | 262 | py |
from xai.brain.wordbase.adjectives._inferior import _INFERIOR
#calss header
class _INFERIORS(_INFERIOR, ):
def __init__(self,):
_INFERIOR.__init__(self)
self.name = "INFERIORS"
self.specie = 'adjectives'
self.basic = "inferior"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
5bfde6f4620ebb1cad3fa1035a1c961d7bfff609 | c25be81a90291c9dd7eed076509729b1c730531e | /tests.py | 93f031029fc25e60902294dba580f390e688262c | [
"Apache-2.0"
] | permissive | icYFTL/RTULAB_Service | 8707b7f9082494e7513c6afc0e4ede89f18cc320 | a16d0fc2ac9ac103f0a14e90824caded7156bf11 | refs/heads/main | 2023-03-18T15:26:56.586261 | 2021-03-18T09:23:30 | 2021-03-18T09:23:30 | 343,216,916 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,017 | py | import requests
import unittest
class Test(unittest.TestCase):
def setUp(self) -> None:
self.__host = 'https://rulab.icyftl.ru/'
self.__purchases_host = self.__host + 'purchases'
self.__shop_host = self.__host + 'shop'
self.__factory_host = self.__host + 'factory'
self.__sh... | [
"savap0@yandex.ru"
] | savap0@yandex.ru |
dbf0041a9b5e3a411b2eeab4fcd95aadc2388fd6 | ccd57ff91aab88f89ac748dc4b52eaecc088148b | /GGames/GGames/wsgi.py | f72020ed0d24e8b5b0a2e99fac115f45b62ad36d | [] | no_license | JorgeMenesesNain/Fase3MenesesSanMartin007 | 1286b0bb7767aa0e6a3c0fb9a7c438f52752534a | 9d461ac3e68aa7327fccf48f7cb486ac83e195cd | refs/heads/main | 2023-01-24T21:12:20.866827 | 2020-11-30T23:51:48 | 2020-11-30T23:51:48 | 313,331,167 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 389 | py | """
WSGI config for GGames project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTIN... | [
"jo.menesesn@alumnos.duoc.cl"
] | jo.menesesn@alumnos.duoc.cl |
18a7d47e84e8bc06e24d7484932cda9f47f95339 | 67504b00934a8bf505c7905be31a90adda761ecb | /encoders/image/FaceNetEncoder/__init__.py | 672d90da5ce04665819ce9ef64ddd4964eae4eca | [
"LicenseRef-scancode-free-unknown",
"Apache-2.0"
] | permissive | bsridatta/jina-hub | d4ad74e5a90fb5a30785e89c137aacde8f83406b | e49ea9d14b0cd766861a7a0fb164aeee1abae865 | refs/heads/master | 2023-04-10T08:13:56.115987 | 2021-04-26T11:24:23 | 2021-04-26T11:24:23 | 355,306,840 | 1 | 0 | Apache-2.0 | 2021-04-23T08:14:34 | 2021-04-06T19:27:44 | null | UTF-8 | Python | false | false | 2,495 | py | __copyright__ = "Copyright (c) 2021 Jina AI Limited. All rights reserved."
__license__ = "Apache-2.0"
import numpy as np
import torch
from jina.executors.decorators import batching, as_ndarray
from jina.executors.encoders.frameworks import BaseTorchEncoder
from jina.executors.devices import TorchDevice
class FaceNe... | [
"noreply@github.com"
] | noreply@github.com |
10661554f0c0e63a3f5159df6f9069bfa2972184 | 3d90cda213d7980fdc314fceb302e2f5748ee1a7 | /learninspy/context.py | 860902d613c0245656773a085e598f1146674187 | [
"ISC"
] | permissive | leferrad/learninspy | 2fa7c8d64ac528c1c495c7ace50b66313268d638 | db52c09b8f8ae1dc9f461449d2fc37d0b1e22626 | refs/heads/master | 2020-04-04T05:41:32.310366 | 2018-01-24T17:53:28 | 2018-01-24T17:53:28 | 43,960,737 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,318 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Script para configurar contexto en Spark."""
__author__ = 'leferrad'
from pyspark import SparkContext, SparkConf
import os
if 'sc' not in globals():
appName = 'learninspy-app'
if 'SPARK_MASTER_IP' not in os.environ.keys() and 'SPARK_MASTER_PORT' not in os.en... | [
"ljferrado@gmail.com"
] | ljferrado@gmail.com |
07cad3c1b341d36e9490b51ca833ec364d075613 | 02ec8326d9e56faa40912324b265963b54e37d43 | /LC3Emu_Assembler.py | 44cf977fdfe635b15baff9b0c2e5a34cd969f740 | [] | no_license | Larryvrh/LC3-Toy | f681b4ffd1f65785a0a73fbef52ab24cb8b86ccd | 94c0c28b73aef6667dc30ca71f429a23491d19dd | refs/heads/main | 2023-01-11T00:37:37.718294 | 2020-10-29T10:15:15 | 2020-10-29T10:15:15 | 306,654,795 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,843 | py | from re import compile as reCompile, sub
from Annotations import *
from LC3Emu_Util import decToBin, binToDec
# Regular opcodes
OPCODEs = ['ADD', 'AND', 'JMP', 'JSR', 'JSRR', 'LDI', 'LDR', 'LD', 'LEA', 'NOT', 'RET', 'RTI', 'STI', 'STR', 'ST', 'TRAP']
# Branch opcodes
OPCODEs += ['BRnzp', 'BRnz', 'BRnp', 'BRzp... | [
"noreply@github.com"
] | noreply@github.com |
f473b33ff7e2cff4b7863c661e6fc70bb9662526 | 135129e17b9d88644e631c00565d3885c1c99075 | /sample.py | c3f11f14beff38effd195f654df0259b5d1d295a | [] | no_license | mrschyte/parsereq | d6b295ba01e004131437a86f60a099875f18f793 | 5ccdffba43ffb22dfcd12f5fea5cb3360d64a687 | refs/heads/master | 2021-04-18T03:22:12.018540 | 2020-03-23T17:41:32 | 2020-03-23T17:41:32 | 249,500,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 442 | py | import parsereq
import requests
def main():
r = '''GET /robots.txt HTTP/1.1
User-Agent: Mozilla/4.0 (compatible; MSIE5.01; Windows NT)
Host: github.com
Content-Type: text/html
Accept-Language: en-us
Accept-Encoding: gzip, deflate
Connection: Keep-Alive
'''
r = parsereq.parse(r, f... | [
"peter.kasza@itinsight.hu"
] | peter.kasza@itinsight.hu |
5a78f8bd7b0540875b486f35e3981176b7fff78a | 143523a8087e784fd0f011fcdcd58d2d558290dd | /MSTeams.py | 8ed6d154c3179b4e99483779741ef8be49440a8c | [
"MIT"
] | permissive | digamjain/MS-Teams-Bot | 6ed88019c3586357a9ad0fc0245e9878f770895c | db4583a47392e509af2e18685783ef4ce346200e | refs/heads/main | 2023-02-20T21:37:31.023598 | 2021-01-28T11:07:46 | 2021-01-28T11:07:46 | 333,728,614 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,675 | py | from selenium import webdriver
from selenium.webdriver import Chrome
from selenium.webdriver.support.ui import WebDriverWait
from selenium.common.exceptions import NoSuchElementException
from selenium.webdriver.chrome.options import Options
import time
import datetime
import os
chrome_options = Options()
chrome_option... | [
"noreply@github.com"
] | noreply@github.com |
1ddf6970ab21d9d52e80b052d43e09d998185db5 | 122b2558d6e399c8f5881f2ef73943ea8f19ea57 | /app.py | 31bae9b70ee077184b1d3c25b19520a5c4587893 | [] | no_license | Apex8/Web-Scraping-Mars-Mission | 0c5304e01bfd413a5c2c7b57075ab2b0879f48f9 | 7f9993ed8198c8aa751d14f52b8582e162f93603 | refs/heads/master | 2022-12-15T20:57:47.334255 | 2020-09-15T02:57:47 | 2020-09-15T02:57:47 | 293,988,546 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 594 | py | from flask import Flask, render_template, redirect
from flask_pymongo import PyMongo
import scrape_mars
app = Flask(__name__)
app.config["MONGO_URI"] = "mongodb://localhost:27017/mars_app"
mongo = PyMongo(app)
@app.route("/")
def index():
mars_dict = mongo.db.mars_dict.find_one()
return render_template("ind... | [
"66309588+Apex8@users.noreply.github.com"
] | 66309588+Apex8@users.noreply.github.com |
1caebfb76230a1f065685c83a3e5f3bcd4d54276 | 087e290b9ad0d9504506a3760ea37315ae13a408 | /python/EDA/plots.py | f3760701210fd6380f685ea2ef5b7dcde320b80f | [
"MIT"
] | permissive | dwgoblue/egem | 4c0f15c23bbeb9f638ad78cd58afae722a5224b1 | a837ef771442211ee8a3de45fbd040ddb559c04a | refs/heads/master | 2022-07-31T11:06:22.941888 | 2020-05-14T15:05:51 | 2020-05-14T15:05:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,935 | py | """
plots.py
TODO:
* Create boxplots for each column
@author: Scott Campit
"""
import dash
import dash_core_components as dcc
import dash_html_components as html
from dash.dependencies import Input, Output
import dash_bootstrap_components as dbc
import plotly
import pandas as pd
import plotly.graph_objects as go
... | [
"scampit@umich.edu"
] | scampit@umich.edu |
c45d557864b5534eb900786aa2b1d9f7fdb4347a | 0d0479e6379c359a839f929c7ca98692e104e3ec | /RegEx/Applications/Easy/split-number.py | 9a34ef5b9d933a35c03ec2f602c2702644a60e7a | [] | no_license | johnckane/hackerrank | 8ef5a35bca4d6785ffa5032702f8c161c3f24db9 | 450c4257a76ce12c2592951d6bf22968274607ee | refs/heads/main | 2023-03-11T06:30:38.221459 | 2021-02-16T17:22:12 | 2021-02-16T17:22:12 | 326,805,401 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 533 | py | #Solves this application problem: https://www.hackerrank.com/challenges/detecting-valid-latitude-and-longitude/problem
import sys, re
input_data = sys.stdin.readlines()
for i in range(1,len(input_data)):
regex = re.search(
pattern = "^(\d+)(\s|-)(\d+)(\s|-)(\d+)",
string = input_data[i]
)
i... | [
"jokane@catmktg.com"
] | jokane@catmktg.com |
9fda03d01e11adae9c1c4533fc5502a2d6fe71d9 | ba9e1fc7797ebc55a61a40ee66c51b467f353ff1 | /web_scraping_with_python_demos/2-cleangrams.py | 1c489e8f587b8315ebadba2f6d45592f570f395e | [] | no_license | sanpianye/the-little-python | 77c938164d43cbb120063a6d17d0705cc9e92e93 | c04898bf0812afb53b71567699ee523d1bc56a29 | refs/heads/master | 2021-06-14T01:55:31.452777 | 2017-03-09T13:31:59 | 2017-03-09T13:31:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,860 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
''''''
__author__ = 'Engine'
from urllib.request import urlopen
from bs4 import BeautifulSoup
import re
import string
from collections import OrderedDict
def cleanInput(input):
input = re.sub("\n+", " ", input) # 将多个换行符转为一个空格
input = re.sub("\[[0-9]*\]", ""... | [
"enginechen07@gmail.com"
] | enginechen07@gmail.com |
0c4db5972313b5e3013500aad61ab8519fd682db | e4217a9410dfbc8207fa6d3481811f53332a773c | /home/migrations/0003_auto_20180508_1514.py | fa61116ee21e022d0da208e591adfa23fd0ce6e2 | [
"MIT"
] | permissive | vbrn/gantt_projects | f1efdf90dabf8b2ba3ed1ad7d753f0b1bca151c7 | 7a49cf73d7671ff39093e1fd9cdb09cd70172fd0 | refs/heads/master | 2020-04-10T14:36:43.509782 | 2018-12-10T14:03:59 | 2018-12-10T14:03:59 | 161,081,743 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 503 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.4 on 2018-05-08 15:14
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('home', '0002_auto_20180508_1421'),
]
operations = [
migrations.RenameModel(
... | [
"vbrn@i.ua"
] | vbrn@i.ua |
08f8628950717f6659cd7c03aa18c15da48ccd99 | c801581377b671f6d58a2668819d42b96f0cf67e | /p3dss/__init__.py | 93e9e65470a10c67c1b9dbfe0b6cef6b343753a7 | [
"MIT"
] | permissive | moonburnt/p3dss | 266b6589aa8f24796646df90eba7b17c4191d410 | 442bea7ce8e506f27c0468ed8991f8dced1e077c | refs/heads/master | 2023-07-16T08:09:32.842872 | 2021-08-08T16:16:14 | 2021-08-08T16:16:14 | 363,130,743 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 172 | py | from .exceptions import *
from .types import *
from .processor import *
from .nodes import *
import logging
logging.getLogger(__name__).addHandler(logging.NullHandler())
| [
"moonburnt@disroot.org"
] | moonburnt@disroot.org |
9c0565a7a799b4d983060bea22a4462692fd3731 | 2b0eab74af8d23244ff11699830f9bb10fbd717a | /helpers/mixins/store_data_with_default_value_by_key.py | e418e8fb8cbcfde82dbe0fe1b92fbd4096f04bed | [] | no_license | alexandrenorman/mixeur | c7e25cd20b03c78b361cb40e3e359a6dc5d9b06b | 95d21cd6036a99c5f399b700a5426e9e2e17e878 | refs/heads/main | 2023-03-13T23:50:11.800627 | 2021-03-07T15:49:15 | 2021-03-07T15:49:15 | 345,384,858 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,174 | py | # -*- coding: utf-8 -*-
from django.utils.translation import ugettext_lazy as _
from django.db import models
from django.core.exceptions import ValidationError
from core.models import MixeurBaseModel
class StoreDataWithDefaultValueByKey(MixeurBaseModel):
"""
Mixin for storing value with a unique default value... | [
"norman@xael.org"
] | norman@xael.org |
b782bd6370e0997278ddcec9b5ae2bdb4248b34f | d58881b9747f461740ca963e3db21276b1d3026f | /Search for Text in Files/Find Words in NonASCII File.py | 871ceac2659b066237528082f0609aa05bbc8d66 | [] | no_license | Huggychan/CTF-Toolkit | c99c4b9d502e32dd1d611f7e5601707d168d8951 | 1b5050bfcb3c9efb7fa3e87b71fcb27ebd99228f | refs/heads/master | 2020-12-28T20:31:58.447902 | 2016-05-10T06:29:59 | 2016-05-10T06:29:59 | 58,323,335 | 0 | 1 | null | 2016-05-10T06:30:00 | 2016-05-08T17:31:21 | Java | UTF-8 | Python | false | false | 1,176 | py | #Read in only letters from non-UTF-8 character file
nonascii = bytearray(range(0x80, 0x100))
possibleStrings = []
consecutive = 0
with open('randomGenProb1.txt','rb') as infile:
for line in infile: # b'\n'-separated lines (Linux, OSX, Windows)
line = line.translate(None, nonascii)
data = line
for ... | [
"ssenthilkumar3@gatech.edu"
] | ssenthilkumar3@gatech.edu |
6c31804084b40117af3996ec2ca732f7f812d0dc | cb180c254f8fa9f26512e2a0b32d51cbaf040e78 | /SMS/production.py | de9f16d2b4a1c112de6b1cbc472d017d80aa552e | [] | no_license | sherwin7/Birthday_Messenger | f1a359efe8edb04147b4162889640a3c44da8b40 | 4b426acb8494b1058f2e78f2a93a51c6c1ee5263 | refs/heads/master | 2020-06-28T07:25:56.759001 | 2019-08-02T06:02:38 | 2019-08-02T06:02:38 | 200,175,725 | 1 | 0 | null | 2019-08-02T06:09:26 | 2019-08-02T06:09:25 | null | UTF-8 | Python | false | false | 1,865 | py | # imports necessary for functionality
import requests
import psycopg2 as pg
# Creating a Session for the Api Request
sess = requests.Session()
# IMPORTANT : mention the Authentication credentials for gupshup api
# In future it may change
userid = "#####"
password = "#####"
# Connect to the Database
connection = pg.... | [
"jeffinsam@karunya.edu.in"
] | jeffinsam@karunya.edu.in |
61f7a073c2777d6244c506cf8b2140345c666ffb | cbf1054d4541ef80c758ba22e56a95025a8f0dc9 | /api_key.py | 66bc433a52a9e03dce6c3e93d94fcf345480cb6f | [] | no_license | theianthomas/Project_Repository | f97c3c6839d09a8560ba0f64e19697a5deea8b52 | ece50c34a8c75e38cb61a6b880b091b0e25b8d7c | refs/heads/master | 2021-03-21T13:15:01.398457 | 2020-03-23T20:19:10 | 2020-03-23T20:19:10 | 247,296,964 | 1 | 0 | null | 2020-03-14T15:51:26 | 2020-03-14T14:58:50 | Python | UTF-8 | Python | false | false | 49 | py | g_key = "AIzaSyDctHilxVrim7wg4W6L-zanULHexmAOsvA" | [
"ioommen@vhha.com"
] | ioommen@vhha.com |
05a4a25fb6d85e52fb787720faccf15b510d3d45 | 3e9de08abde0dddcaa59aeed26d9af40b113c15d | /LAB2/proxy_client.py | bcc052113a90191f0c489a2d7ce6abcd7c04f109 | [] | no_license | nishthapant/cmput404 | 22511365d00b9a696e318944f5d9364fab6d03ee | 48d07f8bd150b63c89ced3e5f154e04e10c37a61 | refs/heads/master | 2023-08-29T16:07:30.259941 | 2021-09-17T16:28:22 | 2021-09-17T16:28:22 | 404,095,645 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 635 | py | #!/usr/bin/env python3
import socket
#define address, buffer size
HOST = "localhost"
PORT = 8001
BUFFER_SIZE = 1024
payload = f'GET / HTTP/1.0\r\nHost: www.google.com\r\n\r\n'
def connect(addr):
#create socket, connect and receive data
try:
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
... | [
"nishpant2015@gmail.com"
] | nishpant2015@gmail.com |
77a854a653ca37f5d86e0d4978579610d1179d0b | 39363e21c5272146ed65b00830e4a3e53d69da8a | /07-ObjectOrientedProgramming/07.16.py | fa0c81d6cd85260dbd3e464314e77485e6906c17 | [] | no_license | PawelPlutaUek20/pp1 | f4eb3dfd538b1dedb0e28afed4631be88d7fd857 | 18dc55902ba4262c368d66ebc9edac9360dbe28b | refs/heads/master | 2020-08-07T08:33:20.032979 | 2020-01-20T13:39:19 | 2020-01-20T13:39:19 | 213,373,389 | 1 | 0 | null | 2019-10-07T12:08:43 | 2019-10-07T12:08:43 | null | UTF-8 | Python | false | false | 830 | py | class Student:
def __init__(self, name, surname, album_nr):
self.name = name
self.surname = surname
self.album_nr = album_nr
def __str__(self):
return f"{self.name} {self.surname} {self.album_nr}"
def __eq__(self, other):
return self.album_nr == othe... | [
"pawelpluta58@gmail.com"
] | pawelpluta58@gmail.com |
e0e4b4ae8450aa0d6296cc3dce4ba453f1d3682d | 816e46672805226ea679b5f51f8ce435c3975f7e | /app.py | 0da521616ff3d92e25b88ae8b9cd532c5b418200 | [] | no_license | amar0898/Flask-CRUD-REST-API | 124a559d5b84c31f3f1fad0e45d941a34e5a9679 | 0f0c1c682a2a33a7c2f603fd94fe0a6ee7b6e88a | refs/heads/main | 2023-01-20T19:57:17.612188 | 2020-11-24T07:36:48 | 2020-11-24T07:36:48 | 315,538,767 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,441 | py | from flask import Flask, request, jsonify
from flask_sqlalchemy import SQLAlchemy
from flask_marshmallow import Marshmallow
import os
app = Flask(__name__)
basedir = os.path.abspath(os.path.dirname(__file__))
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///' + os.path.join(basedir,'db.sqlite')
app.config['SQLALCH... | [
"amar.pinjore0898@gmail.com"
] | amar.pinjore0898@gmail.com |
3645517d6cc48df408381aac828e7f47d7140173 | 163b8d347a95e51c6b72c9128b31eb158abc6996 | /projects/protonet_torch/protonet_torch2.py | abb65c9210d1b935f16fcd5975d0a355eb01e8e7 | [] | no_license | DateOne/torch_basic | d1d2d569f9ad1983211047b7f1824107f7a50ba6 | 8b5a9f3cc1a52dafb1b9f81816ff76691349c90c | refs/heads/master | 2020-08-06T18:34:07.492840 | 2019-12-08T10:42:34 | 2019-12-08T10:42:34 | 213,108,014 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,355 | py | #==============================================================================#
# protonet_torch #
# author: yi #
# Prototypical Networks for Few-Shot Learning ... | [
"dateone2015@outlook.com"
] | dateone2015@outlook.com |
42ce348fe55b62181045120eb229a2509121b694 | 86f2eb787624e293be660fa97f6bbb35980f2e29 | /translate-app-tkinter/app/utils/thread.py | 11fc4e975c3224a345df30657371cadb3b9e9957 | [
"MIT"
] | permissive | jadsonlucio/holidays-projects | 73e762b7d5669b8850f3fcecf59aa152430c2d19 | 136992f499d37640decf67072280ae87b83fe830 | refs/heads/master | 2023-05-09T03:55:24.433421 | 2020-10-27T13:13:01 | 2020-10-27T13:13:01 | 256,420,473 | 2 | 0 | null | 2021-06-02T01:30:37 | 2020-04-17T06:26:05 | Python | UTF-8 | Python | false | false | 273 | py | from threading import Thread
from functools import wraps
def run_async(func):
@wraps(func)
def async_func(*args, **kwargs):
func_hl = Thread(target = func, args = args, kwargs = kwargs)
func_hl.start()
return func_hl
return async_func
| [
"jadsonaluno@hotmail.com"
] | jadsonaluno@hotmail.com |
8771558d5abaab97bbb2f686a97ca1444aada72e | 6d2556b5bfc14b249c71b0e32cbd34baa8bcccf7 | /Course 3: Python For Genome/Q1.py | 527f54f82974496d52909add3e0636fd509fb49c | [] | no_license | ishansri17/Genomic-Data-Science | 1e5da078e8e9b6f4985b596ea7fc0b39dcb6e6ef | dd2bdec07f0449d1fd33549dfffd0c73c4c79128 | refs/heads/master | 2020-11-24T18:01:09.639208 | 2020-02-02T21:33:56 | 2020-02-02T21:33:56 | 228,282,718 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 77 | py | import sys
f = open('dna2.fasta', 'r')
file = f.read()
print(file.count('>')) | [
"noreply@github.com"
] | noreply@github.com |
48764804ea5e6d0c832e99c50c16133377e7341c | b4878135b068f976ff76565661c9a14e2b1d185e | /migrations/versions/782fe137a73b_mig.py | c5fa1a20a50fe23def4e059c8d26b0b4d460e724 | [] | no_license | qimengmeng/myzhihu | cb81157c99fbe4bb5cd58431842b7d7ff4f5652e | f812c60ca13083791bf900fac62acd205df782c9 | refs/heads/master | 2021-08-15T03:56:53.990035 | 2017-10-14T01:02:35 | 2017-10-14T01:02:35 | 110,819,292 | 0 | 0 | null | 2017-11-15T10:28:44 | 2017-11-15T10:28:44 | null | UTF-8 | Python | false | false | 647 | py | """mig
Revision ID: 782fe137a73b
Revises: 07dc84b6a59a
Create Date: 2017-09-20 22:35:32.249063
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '782fe137a73b'
down_revision = '07dc84b6a59a'
branch_labels = None
depends_on = None
def upgrade():
# ### comman... | [
"josh_shiyu@outlook.com"
] | josh_shiyu@outlook.com |
070b67571830fbc22ce4702fded26ee0e03f646a | 6d7c488d14cf2bc0322c955a53ec34cfd67e8c3b | /.history/plane_ticket/spiders/ticket_spider_20200709002008.py | 9258ec92ad4166dbf5107784494df0a8a3454021 | [] | no_license | byebyeyuchi/getPlaneTicket-web-crawl- | e247b7d015e35d1036e023c748764abb0ad66fe1 | 91a666659a537c053d8cd19c8214a54eab460800 | refs/heads/main | 2023-02-25T21:43:53.046865 | 2021-01-30T02:14:43 | 2021-01-30T02:14:43 | 334,308,704 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 274 | py | import scrapy
class TicketSpider(scrapy.Spider):
name = "tickets"
def start_requests(self):
urls =[
"http://montreal.chineseconsulate.org/chn/zlgxw/"
]
def parse(self, response):
all = response.css('.Text_Center li').css()
| [
"delseylyq@gmail.com"
] | delseylyq@gmail.com |
9957eff2dbbb0dbb35c46ba40803a163651c92a6 | 86fc9d10729c4914e0c5a22e55db3eef1fd80588 | /list_directory_files/list_directory_files.py | 81070ef0959b8fc9d0ca5e4f3fcf485197790d48 | [] | no_license | streanger/tipts | 6c6bc4cc118810c7c534b452f765a0bcdba8f27f | 69474910c8414bcd59122f23e45036e69dc4ab03 | refs/heads/master | 2023-07-20T14:07:50.417161 | 2023-07-11T15:45:45 | 2023-07-11T15:45:45 | 105,713,005 | 0 | 0 | null | 2023-01-21T12:51:14 | 2017-10-03T23:11:32 | Python | UTF-8 | Python | false | false | 902 | py | import os
from pathlib import Path
def os_directory_files(directory):
"""https://stackoverflow.com/questions/9816816/get-absolute-paths-of-all-files-in-a-directory"""
for dirpath,_,filenames in os.walk(directory):
for f in filenames:
yield os.path.abspath(os.path.join(dirpath, f))
... | [
"noreply@github.com"
] | noreply@github.com |
634db64fad5672d244b9dde45ed05c57dca1210d | a1b21aa9b4c3b99b9b16fd47686bcc76e6fafd18 | /unit_test/function_test/test_name_function.py | 9852039917d53af0689e6cada925c25852cced60 | [] | no_license | irfan87/python_tutorial | 986c5dae98a5ad928c3820bf0355f544c091caf0 | 71bbf8b8aba2d5a1fafc56b8cb15d471c428a0cf | refs/heads/master | 2020-06-05T00:52:07.619489 | 2019-08-19T02:56:41 | 2019-08-19T02:56:41 | 192,257,432 | 0 | 0 | null | 2019-08-19T02:56:42 | 2019-06-17T01:53:46 | Python | UTF-8 | Python | false | false | 643 | py | import unittest
from name_function import get_formatted_name
class NamesTestCase(unittest.TestCase):
"""Tests for 'name_function.py"""
def test_first_last_name(self):
"""Do names like 'Janis Joplin' work?"""
formatted_name = get_formatted_name('janis', 'joplin')
self.assertEqual(format... | [
"nerve2009@yahoo.com"
] | nerve2009@yahoo.com |
e811cb8d64d5abbc293dec05efa34f4e6eec2de4 | f52aec93fbb30046df6e4b240387f14678bde77f | /plugin.py | 22476596b9e0834afea257e68ad42848e252acd5 | [] | no_license | losperdidos1212/pluginarchivostv | 718684483c5b3d26e5e635f9c998ef84b95cb778 | 45c6368e92c721e724e3e8295a675e7b89504139 | refs/heads/master | 2021-05-26T03:06:38.263809 | 2020-04-07T18:03:24 | 2020-04-07T18:03:24 | 254,027,243 | 0 | 0 | null | 2020-04-08T08:19:50 | 2020-04-08T08:19:49 | null | UTF-8 | Python | false | false | 122,585 | py | # coding: utf-8
import nVars
from Plugins.Plugin import PluginDescriptor
from Components.MultiContent import MultiContentEntryText, MultiContentEntryPixmapAlphaTest
from Components.ActionMap import ActionMap, HelpableActionMap, NumberActionMap
from Screens.Screen import Screen
from Screens.Standby import TryQuitM... | [
"noreply@github.com"
] | noreply@github.com |
83dadaa1a28b3be83e1e6b2e2c20bcbe3bc5c434 | d12f56500eca4bb97eb9875bb352276fa48018ae | /baselines/ngram_baseline.py | e1631311016d71f92b4f3a457af7253f113fb18c | [] | no_license | natalymr/saner-2019 | 1b7ee25d4eb454439530bb80a0316a8e160eabb0 | f56cef3453790bf4521daf6ee0981f73f22eb842 | refs/heads/master | 2020-05-19T00:24:16.331001 | 2018-10-25T16:30:15 | 2018-10-25T16:30:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,262 | py | import re
import os
import random
import numpy as np
from sklearn.feature_extraction.text import TfidfVectorizer
from sklearn.feature_extraction.text import CountVectorizer
from sklearn.naive_bayes import GaussianNB
from tqdm import *
from sklearn.metrics import precision_score
from sklearn import linear_model
from skl... | [
"vaadvx@example.org"
] | vaadvx@example.org |
84255fa1eac504341120a4a880ab55590fd433dc | 97af276cddd454d04688a65818344774a424dc5e | /sourcecode/old/ImageColorSort_nonlocal.py | 9ed9b1290d5a44a377561e69145014e8994406ca | [] | no_license | brandonhudavid/ImageColorSort | 9c3d70160d905b150e4655ae69de80f4ddfb0c55 | d77a1e4bf9ef9f288ad4513273e93e9287002538 | refs/heads/master | 2021-09-03T21:33:31.757540 | 2018-01-12T05:25:15 | 2018-01-12T05:25:15 | 114,446,849 | 0 | 0 | null | 2017-12-21T09:31:45 | 2017-12-16T08:49:50 | Python | UTF-8 | Python | false | false | 2,756 | py | from PIL import Image
from numpy import average, array, concatenate
from numba import njit
import colorsys
import time
#check runtime
start_time = time.clock()
# returns most used color in image
def color_comp():
# input file name
print("File name?")
img = input("")
# file name exists
try:
# initialize image ... | [
"brandonhudavid@berkeley.edu"
] | brandonhudavid@berkeley.edu |
a854db61b9675240ebd08373d1aff4271bf6c03d | cc323411daa83d5b8143307dd9baef64c6d03cea | /ryu/app/Load_Balance.py | 4ce4de9471a60d945d0b49d3902dbdb4448b7527 | [
"Apache-2.0"
] | permissive | rubiruchi/ryu-1 | 2cc936fc07579901a6fd55bcdf6d75af87b83d12 | d32b35b83b1c3394fbf56e6d9bb3ff7c47cf43ed | refs/heads/master | 2020-04-24T07:54:37.579916 | 2017-12-29T00:24:17 | 2017-12-29T00:24:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,123 | py | import logging
import struct
import math
from operator import attrgetter
from ryu.app.simple_monitor import SimpleMonitor
from ryu.base import app_manager
from ryu.controller import mac_to_port
from ryu.controller import ofp_event
from ryu.controller.handler import MAIN_DISPATCHER, CONFIG_DISPATCHER
from ryu.controller... | [
"miles962464@gmail.com"
] | miles962464@gmail.com |
693a576c4ad891b97da9443ff063d162a0d0495c | 1a5e48e160ec5ee860f734300169cb7897a9099e | /volunteer/volunteer/urls.py | 05ae926e1fbacad2f8d52c6c8d97b3629a6b8eb7 | [] | no_license | EngCoder-Hawraa/Voluteer-IRAQ-2 | 66b3a64633e57b85305260ab8c593f6f4f354ca9 | 725ba3f02492f3fca02f3769417411612145605e | refs/heads/master | 2023-08-25T18:05:35.038479 | 2021-10-30T10:31:24 | 2021-10-30T10:31:24 | 406,910,026 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,553 | py | """volunteer URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-bas... | [
"h.a.j.engineer@gmail.com"
] | h.a.j.engineer@gmail.com |
959df38e8a9162d5707ec663a5a3e5a1ca314dc7 | e568c7a0335fb740294d68f1b72553ad5171c970 | /src/controllers/__init__.py | a0a8e344f1e763aa609088de2ffda1ec1369c968 | [
"Apache-2.0"
] | permissive | skylerberg/NamePending | c4db6070c7238691617b0a9ec2eba9cd9b9c15f7 | 0788601a5e002814b2a9b9569442d9fca1abb501 | refs/heads/master | 2020-03-16T14:19:04.350880 | 2018-05-26T20:46:40 | 2018-05-26T20:46:40 | 132,713,445 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 167 | py | from . import challenge_controller # noqa
from . import comments_controller # noqa
from . import submission_controller # noqa
from . import user_controller # noqa
| [
"skylertheberg@gmail.com"
] | skylertheberg@gmail.com |
0bec3d435c297af9880eb68c0f6ed5fe6defe59a | 1c4cf62e121f30df39dc4c2aa7b552f946689f26 | /python/functions/model_function_6.py | 5d94b8e1b09dc510eb0f07e59538bddc44cdc603 | [] | no_license | alixdamman/memento | e370a80c52f1801395c20f8ab3425b4b779eb8b2 | 0cfc231e79f96a016a76b7d286af7d59e4653f8f | refs/heads/master | 2021-10-09T17:21:41.871836 | 2018-03-06T14:57:21 | 2018-03-06T14:57:21 | 113,665,331 | 0 | 0 | null | 2018-03-06T14:57:22 | 2017-12-09T11:48:53 | HTML | UTF-8 | Python | false | false | 1,490 | py | # ====== Default argument values ======
#
# Exercise 6: add an argument with a default value to the function "projection"
#
# * add a boolean argument display with default value set to False
# * before returning the result in function "projection", start the viewer if display is True
# * change calls to function "proje... | [
"ald@plan.be"
] | ald@plan.be |
bbb837d0aac28477a37baa05d3dd3c36167bc5b7 | 8b59108f621e94935b3b72aae3c441e10cb64a1c | /create_uneeded_icons.py | cdb3dda6906313546c12ebd032e4aa2accfd9755 | [] | no_license | CyberSys/CE_Python | 97a373b1fe2d214ae854d454dc5e7d79bc150d8e | 721ac005e215f1225fb3c99491b55dc48b19ab30 | refs/heads/master | 2022-01-13T08:04:08.558594 | 2019-07-22T17:05:46 | 2019-07-22T17:05:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,542 | py | from shutil import copyfile
import os
if __name__ == "__main__":
uneeded_icons = [
"AssaultScope_48.png",
"ATButtstockTS_48.png",
"ATFrontsightTS_48.png",
"ATHandguardARS_48.png",
"ExtendedClip_48.png",
"FlashlightAcc_48.png",
"Ironsight_48.png",... | [
"chrissprance@gmail.com"
] | chrissprance@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.