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 220
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 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
440b99869395c2d799afc7da86ab92b42d80e041 | 42b2533118529ef6050676c7b2832390d0051dba | /kafka_example.py | cbdc29c9ce68776e5bf1de66127fed18b7f50ac2 | [] | no_license | kartikeya-calsoft/mqtt_liota_kafka | 1baf5e95a0684d8a64ab1a80eeb56d5d3d060afe | 041b1e589376af50fa05d3e9506afbd7a8b8f3f9 | refs/heads/master | 2021-05-07T22:51:33.994261 | 2017-10-18T06:28:01 | 2017-10-18T06:28:01 | 107,366,636 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,318 | py | import Queue
import logging
import pint
import string
from liota.dccs.dcc import RegistrationFailure
from liota.device_comms.mqtt_device_comms import MqttDeviceComms
from liota.entities.edge_systems.dk300_edge_system import Dk300EdgeSystem
from liota.entities.metrics.metric import Metric
from liota.lib.utilities.utili... | [
"Kartikeya.Bhatnagar@calsoftinc.com"
] | Kartikeya.Bhatnagar@calsoftinc.com |
3fe99be4fc9dd1b4475b5099b5f1a26acdddbb8d | f04eed5e6c4499d22fb8e339667267aa59c8dfc7 | /MonteCarloSimDraw8balls.py | a5de8664cb39a1bcd8e359a74ce2f9906b98f320 | [
"Giftware"
] | permissive | shanjgit/previous-work | 4ca7e29e231498891752307ba4b04c9726f0eb67 | 664cc40bd0b97e3adc10f551e18a4a7a62e5a760 | refs/heads/master | 2021-01-19T20:02:57.744302 | 2017-08-24T17:57:55 | 2017-08-24T17:57:55 | 101,217,213 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 699 | py | import random
def drawing_without_replacement_sim(numTrials):
'''
Runs numTrials trials of a Monte Carlo simulation
of drawing 3 balls out of a bucket containing
4 red and 4 green balls. Balls are not replaced once
drawn. Returns a float - the fraction of times 3
balls of the same color were d... | [
"noreply@github.com"
] | shanjgit.noreply@github.com |
5f4e30912f841b906361f0e772695f3f6d5b2393 | 393a2545700bd2d217dc2fd85a10d1490cfd36dd | /LeetCode/find_min_in_rotated_sorted_array_2.py | b1069020d04be9657e02caf8ad439134cea8b1d7 | [] | no_license | Jfeng3/careercup | 3b12d0c2f5b1b7ef317c32cf38760dad90508995 | 3087e67b8d44ebdca68b6face7c7b6b991f45d70 | refs/heads/master | 2020-05-15T12:03:43.867295 | 2015-01-27T20:55:58 | 2015-01-27T20:55:58 | 29,100,566 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 884 | py | class Solution:
# @param num, a list of integer
# @return an integer
def findMin(self, num):
return self.findMin_re(num,0,len(num)-1)
def findMin_re(self,num,start,end):
if start == end:
return num[start]
if start+1 == end:
if num[start]<=num[end]... | [
"jfeng1115@gmail.com"
] | jfeng1115@gmail.com |
ac68c34a9df77b38ee0be71b8c371854aa47da18 | 142fd48d2c09bc83ba31b96553fc6d27fad596a3 | /v1/202.happy-number.132775164.ac.py | 76ae51a59bdadd727573d185296fe6de77a038ba | [] | no_license | goalong/lc | baaa8ecc55ecdb136271687d21609832f32ccf6e | 7b45d500e65c759cc2e278d33d9d21925a713017 | refs/heads/master | 2021-10-28T03:40:23.534592 | 2019-04-21T14:29:47 | 2019-04-21T14:29:47 | 111,088,996 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,284 | py | #
# [202] Happy Number
#
# https://leetcode.com/problems/happy-number/description/
#
# algorithms
# Easy (41.39%)
# Total Accepted: 153.8K
# Total Submissions: 371.6K
# Testcase Example: '1'
#
# Write an algorithm to determine if a number is "happy".
#
# A happy number is a number defined by the following process:... | [
"along@myw-vicdeiMac.local"
] | along@myw-vicdeiMac.local |
cdfb76942b472660a93bac1e3dc180069042129d | 2dc7cee4cde492d6a7bbe253e95a7b9e9601cc59 | /config.py | 2fb86f6e715e6622bdd67b4132c7c8812a46e1a4 | [] | no_license | qylshy/myproject | 5a7db09553b6e4d4fa21cdb08afc4ee38b6fdefb | 6c0f4f6b5d98df8e192f64e2390f934ced9ffacb | refs/heads/master | 2020-05-28T11:08:54.043512 | 2019-05-28T07:46:08 | 2019-05-28T07:46:08 | 188,979,787 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 672 | py | import os
basedir = os.path.abspath(os.path.dirname(__file__))
class Config(object):
SECRET_KEY = os.environ.get('SECRET_KEY') or 'you-will-never-guess'
SQLALCHEMY_DATABASE_URI = os.environ.get('DATABASE_URL') or \
'sqlite:///' + os.path.join(basedir, 'app.db')
SQLALCHEMY_TRA... | [
"qiuyunlong@bytedance.com"
] | qiuyunlong@bytedance.com |
2c8f96dfd60e771a4512c4b9b459a21ff197f9ae | e04c3af194afacf7e454eb63a1f917c0df46698d | /MAST/test/workflow_test/workflow_setup.py | 4fecd61563ecda63785f435c50709a593de50be3 | [
"MIT"
] | permissive | kcantosh/MAST | 050716de2580fe53cf241b0d281a84f13175b542 | 4138b87e5a1038eb65023232f80907333d3196f2 | refs/heads/dev | 2021-01-20T16:51:22.759949 | 2017-01-31T16:40:45 | 2017-01-31T16:40:45 | 82,833,665 | 0 | 1 | null | 2017-02-22T17:34:13 | 2017-02-22T17:34:13 | null | UTF-8 | Python | false | false | 4,053 | py | ##############################################################
# This code is part of the MAterials Simulation Toolkit (MAST)
#
# Maintainer: Tam Mayeshiba
# Last updated: 2016-02-08
##############################################################
##############################################################
# Requirem... | [
"mayeshiba@wisc.edu"
] | mayeshiba@wisc.edu |
79477d7ab3de33f495c52b4c124955dd2490a742 | 5b6ff2aaad93717f68ec9babbee59234536cb6a4 | /AddField.py | 621a27f3ab062cceb94485888e8db269cb33ec7e | [] | no_license | byrash/py | 46db32a29a2fffe1f2c854fd09b3451ee6b5b98d | 8d532585b015d6304dcca3ccda6d82c18f2f57ac | refs/heads/master | 2021-03-22T05:20:55.517051 | 2017-10-25T05:41:25 | 2017-10-25T05:41:25 | 107,758,596 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 459 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sat Oct 14 13:12:34 2017
@author: Shivaji
"""
import os
import glob
import pandas
def addField(indir="/Users/Shivaji/tmp/extracted"):
os.chdir(indir)
fileList=glob.glob("*")
for fileName in fileList:
df = pandas.read_csv(fileName, sep=... | [
"shivaji.byrapaneni@gmail.com"
] | shivaji.byrapaneni@gmail.com |
aa5ce4f7642dc7712a7bdca6f0c2ed9b99d4fdac | d2a9ff16cdbcc97a65ae01cdcd79be4d560ef7c9 | /homework5/db.py | 7d644cfc342b43a270440041a3cc25410afcffe5 | [] | no_license | humantom88/geekbrains-data-scraping | af3d7231f83ceb86992f01956b9d2184aa560b28 | b02d68788be8a4d500b5433ec6a89f5583864061 | refs/heads/master | 2022-11-06T10:14:25.515797 | 2020-06-28T14:08:54 | 2020-06-28T14:08:54 | 268,997,676 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 876 | py | from pymongo import MongoClient, errors
from pprint import pprint
import zlib
client = MongoClient('localhost', 27017)
db = client['mails_db']
mails_db = db.mails
db2 = client['goods_db']
goods_db = db2.goods
def make_hash(item):
return zlib.adler32(bytes(repr(item), 'utf-8'))
def save_mails_to_db(mails_list)... | [
"humantom88@gmail.com"
] | humantom88@gmail.com |
18757dc913ff5692065e3d0722d1a414217f341e | ad668acbbbf321db2dcbf2cc5a330387df814531 | /MyEscapades/coordinateCombat.py | e1eaa6b57bfdcf3a8849cd3e205a35842bc8bf56 | [] | no_license | LIHTU/mc_python_files | 65969323866dd87bde3ddc97d47dc2dce7e6642e | d0408eea3adf59249ba0742e4c9101a42eb8e6c2 | refs/heads/master | 2020-12-24T13:16:54.389643 | 2016-03-20T22:00:15 | 2016-03-20T22:00:15 | 35,831,326 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 521 | py | # Coordinate Combat
# In this minigame the user will be prompted to
# defend themself against mobs by entering in coordinates
# for defensive strucutes and weapons, such as fire or
# trap pits, or TNT.
'''
1. figure out if we can turn mobs on, and make them hostile.
2. learn and implement chat commands.
3. Design mini... | [
"robinanelson@gmail.com"
] | robinanelson@gmail.com |
696c4f4e21c3eb7fe7ea3890ef830d042a91d421 | c2c86157ae2a4031d79b6f71b3f3cdcad913a87d | /matlabfiles/.svn/text-base/runonebyone.py.svn-base | cad7cd2195024b4366b6e4d261ec8176d6c025ed | [] | no_license | fishdda/Automatic-Radiation-Treatment-Planning-System- | e3875e7d17e96e488c7d678d70da4411213a98c6 | 42eba3a27e62e53907c782f01585abb0de15d7e4 | refs/heads/master | 2020-05-16T16:58:28.804199 | 2014-10-04T16:05:44 | 2014-10-04T16:05:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 144 | import os;
cases= [5,25,104,108,113,123,208,30,79];
for c in cases:
cmd = './PrioritizedNlp cases' +str(c)+'.txt';
print cmd
os.system(cmd);
| [
"parastiwari@Paras-Tiwaris-MacBook-Pro.local"
] | parastiwari@Paras-Tiwaris-MacBook-Pro.local | |
389ce0bd3e07869ffa7d5d82fc97f0e6114b317e | 1740075fca5d99eee47d8ab10e918be07f544d55 | /catalog/migrations/0002_auto_20191107_1239.py | bd20f9edcd6d8711f45f088ad0c948df3acd2e3a | [] | no_license | Grayw0lf/local_library | 0933bd5d35ef64ee4dc90dd0cdd83686a8eeed3a | 652f0260bfd153138eaee24810685c52f4063b07 | refs/heads/master | 2023-04-30T10:23:38.048841 | 2019-11-13T21:10:09 | 2019-11-13T21:10:09 | 221,551,305 | 1 | 0 | null | 2023-04-21T20:40:05 | 2019-11-13T21:03:49 | Python | UTF-8 | Python | false | false | 688 | py | # Generated by Django 2.2.7 on 2019-11-07 09:39
from django.db import migrations, models
import uuid
class Migration(migrations.Migration):
dependencies = [
('catalog', '0001_initial'),
]
operations = [
migrations.RenameField(
model_name='author',
old_name='date_... | [
"akosheev@rambler.ru"
] | akosheev@rambler.ru |
8eb5717f4d3e6a853f98ec128fe586d28b3c4c9f | 0e29d70a54fa89cb7cb468529c8601d0ddf7b1b5 | /date_migrate.py | 5d78960a9634fe1cc69bd81af1c79ded42e0293e | [] | no_license | BishopJustice/MultiPage | f715d845137ed844d789b705a783b996ddb8f5a8 | fbd3858790485abfb8120618cd936fd94e61d61d | refs/heads/master | 2020-07-03T19:18:09.147296 | 2016-10-24T23:26:20 | 2016-10-24T23:26:20 | 66,682,896 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 722 | py | from app.models import User, Item
from app import db
import datetime
from dateutil import parser
# users = db.session.query(User).all()
# for each in users:
# if each.joined:
# each.joined = datetime.datetime.strptime(each.joined, '%Y/%m/%d %H:%M:%S')
items = db.session.query(Item).all()
# for each in... | [
"luke@lyft.com"
] | luke@lyft.com |
1b6205e42264a320af0acc5001e8365d4e80aa70 | bda9a317e22707e51e1f78f4ffca8205750f6d95 | /mapbox/app/app/app.py | 0e53e92e233cfc15117da47a1e4a8d72a0cba2c2 | [] | no_license | elroypeter/SeniorProject | 0395e8ffc977ea0f917a8525b5b85ca696fcca19 | 238b8e3c091b0294f620e6db68e897d8b8598ec3 | refs/heads/master | 2020-04-05T11:17:04.943758 | 2018-11-05T20:09:43 | 2018-11-05T20:09:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 683 | py | from flask import Flask, render_template
from werkzeug import secure_filename
from app import app, db, models
import os, sys, requests
@app.route('/',methods=['GET','POST'])
def my_maps():
# TODO: need to change this to be dynamic
response = requests.get('http://dblayer:80/jsonData/test.json')
return render_templat... | [
"j.a.cochran.cs@gmail.com"
] | j.a.cochran.cs@gmail.com |
522f7b5624afc3f1cd74452502167aa8d9f5b6d9 | 14be624679f0bd4521989f26263bf1803b2afba5 | /Python3/URI1041.py | ad2c32cc607832a0ec4655cd4e04c6b9a0005934 | [] | no_license | axelaviloff/uri-solutions | 2521e792bbedba23a8320ced3e9c05bf5af8f7e0 | c51b1122b608d65298cff26f3c1ad87ec059e2d0 | refs/heads/master | 2023-05-13T22:17:39.323316 | 2020-10-27T12:37:21 | 2020-10-27T12:37:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 362 | py | coordenadas = input()
x, y = coordenadas.split(" ")
x = float(x)
y = float(y)
if x > 0 and y > 0:
print("Q1")
elif x > 0 and y < 0:
print("Q4")
elif x < 0 and y < 0:
print("Q3")
elif x < 0 and y > 0:
print("Q2")
elif x == 0 and (y > 0 or y < 0):
print("Eixo Y")
elif (x > 0 or x < 0) and y == 0:
... | [
"axel.aviloff@estudante.uffs.edu.br"
] | axel.aviloff@estudante.uffs.edu.br |
8b29ce161cc0486a4b357fc0b7e9a4eff0014b1b | 636e304830d60907c778634df346a42399631e7d | /webots-project/controllers/pos-prediction/predictors/predictor_NN.py | 3c6cc3f45a5ebf2afc72941669fe0e87e7a0dd94 | [
"MIT"
] | permissive | varun-projects/webots-thesis | 8784807b42a35dbe00040c3f903cdd4b86251338 | c18c53b281af6c68431b9b3abde07d1934c37dd9 | refs/heads/master | 2023-01-14T12:16:37.984530 | 2020-10-06T14:00:26 | 2020-10-06T14:00:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,443 | py | from keras import models
from keras import layers
import numpy as np
import math
import pickle
import os.path
from keras.models import load_model
class PredictorNN:
def __init__(self, data_collector):
self.percentageTraining = .8
self.dc = data_collector
data = self.dc.get_data_frame()
... | [
"joan.sebastian.gerard@gmail.com"
] | joan.sebastian.gerard@gmail.com |
00dd467e4af16d74877dc97ac0f1085d681b0a8c | 0b79018d98ca5ae4e4eeae5d7be4bf43381739c4 | /backend/src/scrapper/test.py | b46529b98e1976db4d7152217da18cfa6be877cc | [] | no_license | tsuasian/Dragon-Course-Review | 1560c4da58417eef4e34ce5fa65f2f033800655d | 127e1d3f2fa879b9542eaec54007ce0879aec37c | refs/heads/master | 2023-08-24T15:53:55.246060 | 2021-10-28T08:11:57 | 2021-10-28T08:11:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,434 | py | import requests
import bs4
import lxml
import os
import json as json
base_url = 'https://termmasterschedule.drexel.edu'
home_res = requests.get('https://termmasterschedule.drexel.edu/webtms_du/app')
home_soup = bs4.BeautifulSoup(home_res.text,'lxml')
f = open("course_links.txt","w")
"""
What: Extract classes from th... | [
"tchang@gmail.com"
] | tchang@gmail.com |
2a500a425eb1abbc023f928e0a265bbc37889d78 | 64fc5dfec9a6f7b31c224286321899f5103d3983 | /duckworthd/mining.py | f2127b917aeb1fa70482dce7c25ce5b13176311f | [] | no_license | espoirMur/public-DKHQ_GlobalWitness | 68aaaaef52a1b05773ded143060a0c5f45c14c6a | e0b0d2b669faa1cb6b3cc86791ff5ce306c1cfcb | refs/heads/master | 2020-04-17T17:22:23.323979 | 2018-10-11T19:50:42 | 2018-10-11T19:50:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,678 | py | """Utilities for working with satellite imagery for mining."""
import json
import os
import re
import string
import tempfile
import urllib
import zipfile
from matplotlib import pyplot as plt
import bcolz
import ee as earth_engine
earth_engine.Initialize()
import gdal
import h5py
import numpy as np
import pandas as pd
... | [
"duckworthd@gmail.com"
] | duckworthd@gmail.com |
9d32317d1286c1736e8582adf02d5839dba92f00 | 9246f53f8048e2040f6c40b12fd6e81bf11bce1b | /chapter10/kmeans_sklearn.py | acdaa10443f1f5da396d3791aea808f2b6ff816b | [
"MIT"
] | permissive | damonclifford/Python-Machine-Learning-By-Example-Third-Edition | 3541afefde8de164c3c82a47441f7fb20bbd7f71 | 35f364fd9f7f044771fb750bddf4b6fb101ea89e | refs/heads/master | 2022-12-12T02:50:18.503257 | 2020-09-02T05:48:14 | 2020-09-02T05:48:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 791 | py | '''
Source codes for Python Machine Learning By Example 3rd Edition (Packt Publishing)
Chapter 10 Discovering Underlying Topics in the Newsgroups Dataset with Clustering and Topic Modeling
Author: Yuxi (Hayden) Liu (yuxi.liu.ece@gmail.com)
'''
from sklearn import datasets
iris = datasets.load_iris()
X = iris.data[:... | [
"yuxi.liu.ece@gmail.com"
] | yuxi.liu.ece@gmail.com |
d487e6f13e0f9607074d24d0dcca3b4571ee9366 | 00fac941f4f9e39cda9e3286d5cc1a77bda1d888 | /GetCode.py | 39bd6b4ba3989967c5cbd3a4f5254a2935a566c6 | [] | no_license | bluegray/Sublime-Text-3-config | feb340139f01dd35e63874cb26c5e6515b3368bc | 73428ebd263c60472cb7de64028c559252ed8c5e | refs/heads/master | 2020-04-10T14:00:33.960991 | 2015-05-16T12:06:12 | 2015-05-16T12:06:30 | 33,752,869 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 407 | py | import sublime
import sublime_plugin
class GetSelectionCodeCommand(sublime_plugin.TextCommand):
def run(self, edit):
sel = self.view.sel()
if len(sel) > 0:
charcode = ord(self.view.substr(sel[0].begin()))
msg = "%d 0x%x" % (charcode, charcode)
self.view.set_stat... | [
"bluegray@users.noreply.github.com"
] | bluegray@users.noreply.github.com |
ea646c020a58d6eb93ac0b637c7b9fdd4b435641 | addb7882a96d30c431b40ba33309cbf8f8328894 | /taskgraph/tests/model.py | 26500f3cfe82c33d90c54b6c0e55e7a9e544f7e4 | [] | no_license | mmuddy/taskgraph | 581de61669f6ce56a87c487390a4b2ee3bbfb9ac | 0925dd2f8fd7c83b70a830cc5903366bf2c830ba | refs/heads/master | 2020-04-06T20:02:26.896467 | 2017-01-23T22:22:38 | 2017-01-23T22:22:38 | 68,546,946 | 0 | 0 | null | 2016-12-23T05:27:31 | 2016-09-18T20:58:23 | HTML | UTF-8 | Python | false | false | 6,519 | py | from taskgraph.model.model import *
from taskgraph.tasktracker.getinterface import get_interface
from .settings import tracker_dummy, tracker_redmine
from django.test import TestCase
from django.db import IntegrityError
class TestTracker(TestCase):
def create_tracker(self):
all_trackers = Tracker.object... | [
"yakovlevvladyakovlev@yandex.ru"
] | yakovlevvladyakovlev@yandex.ru |
61e7ac4e48aa441ddac70c7a136199bc95ef0cb8 | 97be97cfc56fb2170b60b91063dbfe5f1449e3c0 | /python/ABC189/D.py | 7e2f46bfedc29c348c5d23cf98f1faf6718dbc94 | [] | no_license | iWonder118/atcoder | 73d965a0a9ade189733808e47634f2b7776aad4b | 3ab7271e838a2903ff0e07f94015ef13c59577e1 | refs/heads/master | 2022-01-25T10:10:55.007340 | 2021-12-31T14:04:54 | 2021-12-31T14:04:54 | 245,155,997 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 77 | py | n = int(input())
logics = [input() for _ in range(n)]
for i in range(n):
| [
"52240372+iWonder118@users.noreply.github.com"
] | 52240372+iWonder118@users.noreply.github.com |
e72b7714ac7c6c70fcad4cd97133be4a97489a94 | 72a934f4940c4ae77682d45a2d1e8ec5b1e2ff01 | /pro/models/sequential.py | 18d7368dc2b1336ad3c0ea4e895f26cf5c057335 | [] | no_license | dhaval-jain/g1 | 5347160fcf4efc21207fdf9f996a10dd4e0f61e9 | a6d4deb672204b9eaf1efc5c6e0c12f38b5bb906 | refs/heads/master | 2023-03-18T22:49:03.559327 | 2020-11-17T16:59:50 | 2020-11-17T16:59:50 | 346,329,013 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,117 | py | TRAIN_PATH = "C:/Users/meow/PycharmProjects/project1/CovidDataset/Train" # gets the the paths in that folder
VAL_PATH = "C:/Users/meow/PycharmProjects/project1/CovidDataset/Val"
import numpy as np
import matplotlib.pyplot as plt
import keras
from keras.layers import *
from keras.models import *
from keras.preprocess... | [
"inexorable619@gmail.com"
] | inexorable619@gmail.com |
28983ad35bba438daa2553a1003ba96695c3d775 | 745b63bdfb798f88d4f1b7679f435e43e6f2aec1 | /pomodoro.py | 1a109425e5adc3ef44c4f3e24efc89c1d45024fb | [] | no_license | torjeikenes/pomodoro | 009bad75d2f0decca722d892253bd80266cabc85 | 07ccade38090f34b028e1e562c41e7a1bd77c836 | refs/heads/master | 2023-01-13T05:25:52.126481 | 2020-11-25T22:30:49 | 2020-11-25T22:30:49 | 316,047,832 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,070 | py | #! /usr/bin/env python3
# -*- coding: utf-8 -*-
# vim:fenc=utf-8
#
# Distributed under terms of the MIT license.
"""
Program for handling pomodoro timers
"""
import json
import argparse
from datetime import datetime, timedelta
import copy
import os
import subprocess
from pathlib import Path
home = str(Path.home())
... | [
"torje.n.eikenes@gmail.com"
] | torje.n.eikenes@gmail.com |
9be50d39d015e172e51c97d330d5fe5035965ef5 | b8e3363a40bc9928ae85c16232c5bf6240597a18 | /out/production/home-assistant/components/switch/tellduslive.py | 7edab40054f51d8807a01fa0c066ed3cb09c138f | [
"MIT"
] | permissive | LaurentTrk/home-assistant | 4cbffd5a71f914e003918542319bc6caa96dbb72 | 5a808d4e7df4d8d0f12cc5b7e6cff0ddf42b1d40 | refs/heads/dev | 2021-01-15T23:02:38.147063 | 2016-05-15T12:21:52 | 2016-05-15T12:21:52 | 51,471,180 | 2 | 0 | null | 2016-02-10T20:49:47 | 2016-02-10T20:49:47 | null | UTF-8 | Python | false | false | 1,832 | py | """
homeassistant.components.switch.tellduslive
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Support for Tellstick switches using Tellstick Net and
the Telldus Live online service.
For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/switch.tellduslive/
"""
im... | [
"laurent.turek_github@gadz.org"
] | laurent.turek_github@gadz.org |
4e24c93448376bf4ec8685ec08596212224928a2 | 45c13e4f2204c711c8ddb619a423fa2802df93fc | /blogspace/articles/migrations/0003_article_author.py | 007e5bb909ab9152f422c1cd19343ec87b121f7c | [] | no_license | darklongnightt/blogspace | f7d287cf91e1900893676e4815078e41e7fc4f7f | ba67b4f9a621c5ac4a8cf5c016bdbf0617b40f00 | refs/heads/master | 2020-11-30T10:21:40.397046 | 2019-12-28T14:18:37 | 2019-12-28T14:18:37 | 230,376,202 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 592 | py | # Generated by Django 3.0.1 on 2019-12-28 11:43
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('articles', '0002_article... | [
"toki.1243@gmail.com"
] | toki.1243@gmail.com |
965ccfbb787575189bbd405fdd1a466953457af5 | ee7596f2efcf9abf86ff312bb1f0a0f963e7787d | /chunking/main.py | ce4637ab17240a729280d041ed31f638b89aeb96 | [] | no_license | the-league-of-legends/chunk | 8edfb906fbfba0e291bd6adebcf95831d0491d71 | b8d6327c2ebd4a4a41c94d4fb4322c15ff039f4d | refs/heads/master | 2020-06-20T02:59:59.629299 | 2019-07-15T09:34:25 | 2019-07-15T09:34:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,936 | py | # -*-encoding=utf8-*-
import json
import codecs
import itertools
from collections import OrderedDict
import os
import sys
from itertools import chain
import tensorflow as tf
import numpy as np
from tensorflow.contrib.crf import crf_log_likelihood
from tensorflow.contrib.crf import viterbi_decode
from tensorflow.contrib... | [
"lsvt@lsvtdeiMac.local"
] | lsvt@lsvtdeiMac.local |
04a6fcd8590335f274756db0927a0e81091f1511 | e4039781ee08c03d32cc5bdfa1d424a4a4f33ac0 | /BO_parser_prot.py | d54edca1049f6dca1df659dea22a86288773161e | [] | no_license | CoderMatthias/ortholog_pipeline | c003a03af94392eb8ce3cab4fc551630d595d456 | 7828d88700004f6dc61fde0c565d48f7c88e2d34 | refs/heads/master | 2021-01-19T12:39:23.897794 | 2015-07-15T19:49:29 | 2015-07-15T19:49:29 | 39,141,896 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,666 | py | #!/usr/bin/python3
import sys
import time
'''
This python script takes the blastp tab-deliminated data and parses it to include unique hits and an additive bit score
Requires: output from blastp, a dictionary to convert FBpp#s to FBgn#s for both Dmen and other D species
Usage: python BO_parser_prot.py blastp_output.... | [
"Matt.Kanke@gmail.com"
] | Matt.Kanke@gmail.com |
63cd09ad5e4f6c73fabb07766215cf1ea10619ac | 760a806cf48d62f96c32906f2cb2be861ab4eda2 | /venv/bin/python-config | 90275ad6c7c13e606e7fdb5fe45939227bd636f2 | [
"MIT"
] | permissive | francamacdowell/AnalyzeYou | e6339104181012ef196e0ce5d7c537efa21dd1c2 | 3fa6556b621af99543693fc26fa0d784996bd19c | refs/heads/master | 2021-02-23T14:35:41.925987 | 2020-03-06T11:39:30 | 2020-03-06T11:39:30 | 245,402,115 | 0 | 0 | MIT | 2020-03-06T11:33:13 | 2020-03-06T11:26:52 | Python | UTF-8 | Python | false | false | 2,359 | #!/home/macdowell/Workspace/AnalyzeYou/venv/bin/python
import sys
import getopt
import sysconfig
valid_opts = ['prefix', 'exec-prefix', 'includes', 'libs', 'cflags',
'ldflags', 'help']
if sys.version_info >= (3, 2):
valid_opts.insert(-1, 'extension-suffix')
valid_opts.append('abiflags')
if sys.... | [
"fmdss@ic.ufal.br"
] | fmdss@ic.ufal.br | |
013916367cfd1dfcd2bbaf32bb98f24b7cbf6c17 | 273c436a67c50e0128e9f7c181f6a18891b9bac9 | /ModuleWeatherBundle/Resource/WeatherResourceImpl/Cached.py | da5ff27d7bd66cfeb5b8271e13095684a4cf19c5 | [] | no_license | jaepyoung/weather-microservice | 302c52cad82dcb7248a2b1025449bca308e5ef6f | 6818e9ae96817f3e8708b654a7922554441db393 | refs/heads/master | 2021-01-19T13:36:05.398880 | 2015-01-19T08:33:09 | 2015-01-19T08:33:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 975 | py | from ModuleWeatherBundle.Resource.WeatherResource import WeatherResource
import json
class Cached(WeatherResource):
def __init__(self, service, cache_redis, cache_ttl = 3600):
super(Cached, self).__init__()
self.service = service
self.cache_redis = cache_redis
se... | [
"athlan@vgroup.pl"
] | athlan@vgroup.pl |
46e425071b72856e84300bad5e705cc2c7dff76d | 800b5cd8c3d58b60d80aca551e54af28ec3c9f18 | /code/chapter_05_example_14.py | 81334fc4e4cc158d144cc5ba91bcb59c006f0045 | [] | no_license | CyberLight/two-scoops-of-django-1.8 | 6591347cb20f3c16e252943c04f0f524f8e8b235 | 423971ad609ec9a552617fc4f7424e701295c09b | refs/heads/master | 2021-01-21T03:02:52.704822 | 2015-05-11T16:32:31 | 2015-05-11T16:32:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,626 | py | """
Using This Code Example
=========================
The code examples provided are provided by Daniel Greenfeld and Audrey Roy of
Two Scoops Press to help you reference Two Scoops of Django: Best Practices
for Django 1.8. Code samples follow PEP-0008, with exceptions made for the
purposes of improving book formattin... | [
"danny@eventbrite.com"
] | danny@eventbrite.com |
6f2edb09e5c1f151145ab5c1adacec423009c475 | e452f89c51180487f2ed68c33ca2fed54e14a967 | /1-Python-Programming-Basics (Sep 2020)/Course-Exercises-and-Exams/03_Conditional-Statements-Advanced/01.Lab-04-Personal-Titles.py | 72a970d05c0e96713bf60476264312a5d9ccd0bc | [
"MIT"
] | permissive | karolinanikolova/SoftUni-Software-Engineering | c996f18eea9fb93164ab674614e90b357ef4858a | 7891924956598b11a1e30e2c220457c85c40f064 | refs/heads/main | 2023-06-21T23:24:55.224528 | 2021-07-22T16:15:59 | 2021-07-22T16:15:59 | 367,432,464 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 856 | py | # 4. Обръщение според възраст и пол
# Да се напише конзолна програма, която прочита възраст (реално число) и пол ('m' или 'f'), въведени от потребителя, и отпечатва обръщение измежду следните:
# • "Mr." – мъж (пол 'm') на 16 или повече години
# • "Master" – момче (пол 'm') под 16 години
# • "Ms." – жена (пол 'f') на 16... | [
"Nikolova@eum.root.eumetsat.int"
] | Nikolova@eum.root.eumetsat.int |
92390ff097f0dc700869fdfc84c2e3606ee46f1d | 2260c05c1fae664b7a6395b6b8e2c5ad5a61eb4b | /driver.py | 66222accfc43a640d831c08077a3bc31dd4579d5 | [] | no_license | roulaoregan/neural_networks | 05bb3e9572303c3b68cdaa2d710645cd5061bf70 | 9a158ab264fd12bb6b5175786d333ea9b574f332 | refs/heads/master | 2021-01-01T19:11:58.407523 | 2014-02-06T00:34:18 | 2014-02-06T00:34:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 174 | py | '''
Main driver for Boltzmann machine
'''
import logger
import os
import re
import sys
def main(argv=None):
pass
if '__name__' == '__main__':
sys.exit(main())
| [
"roula.oregan@gmail.com"
] | roula.oregan@gmail.com |
2e9630b46c62bf6ed75120e758ba48e9ba4e9aa3 | 2f86ac5ea6b2781c30a031f8e9bb02ccbe4bac57 | /ch05_external_testing_tools_calculator/test.py | ea55796af7459989924e7bc802d143f5f01b570d | [] | no_license | KatharinaWiedmann/module3_Business_Python | 183945bd0017c15f38b5d800fb89a8361bae6860 | fbe4b8ab0a903ea3a713a5f6b79b9dba7cce94c4 | refs/heads/master | 2020-04-18T03:21:54.050910 | 2019-02-07T12:16:51 | 2019-02-07T12:16:51 | 167,195,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 942 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Jan 30 09:55:46 2019
@author: Katharina
"""
import unittest
from calculator import Calculator
class TddInPythonExample(unittest.TestCase):
def setUp(self):
self.calc = Calculator()
def test_calculator_add_method_returns_correct_result(self):
# ... | [
"katie.wiedmann@gmx.de"
] | katie.wiedmann@gmx.de |
3884eb54e7e03a3ef48250ac38e73501f51b3ad0 | 55b3948a9f3b9ecc55800ee20f703693057d4577 | /code47.py | d168af513bc50186ca75f6fc67ad6ff413de98ee | [] | no_license | bommankondapraveenkumar/PYWORK | 31b1c4edfb3e34a7f4103435f77a25814623b891 | 099bc260b80b1d724d46b714df8c931e037ee420 | refs/heads/main | 2023-01-07T16:52:25.915269 | 2020-11-11T06:40:16 | 2020-11-11T06:40:16 | 311,883,307 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,282 | py | def horoscope():
M=input("enter the month and date :\n")
S=M.split()
month=S[0]
day=int(S[1])
print("YOUR ZODIAC SIGN IS:")
if(month=="december"):
if(day>21):
print("Capricorn")
else:
print("sagittarius")
elif(month=="january"):
if(day>19):
print("aquarius")
else:
print("capric... | [
"noreply@github.com"
] | bommankondapraveenkumar.noreply@github.com |
4fe810f0f0f672f8136173ab9c58da8afa0a8929 | a986754144d9f1db1ce5ac6d86c164ae1667ed3e | /cuenta/migrations/0002_auto_20210207_0918.py | 83d183b5e01b44efee8e7e6c538f4a1bf01f5032 | [] | no_license | mateo9516/ChatPublicoDjango | 4b2bcc7eb75ed7fb5a73ab6927bdd2c11bbdc376 | 746c13a3ff48cf69bd3ff1d1f9ea9b24a4e909b0 | refs/heads/master | 2023-03-05T01:28:03.678399 | 2021-02-07T17:43:27 | 2021-02-07T17:43:27 | 336,840,304 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 694 | py | # Generated by Django 2.2.15 on 2021-02-07 14:18
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('cuenta', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='cuenta',
name='is_admin',
f... | [
"mateo.echeverry96@gmail.com"
] | mateo.echeverry96@gmail.com |
69a73772a221b1d1fc46f63870acf9ab7b9d268f | 76a269c93a79b156240d9a2568bd2eee7258622f | /naive_bayes.py | 28a6c01619e26c4273617271c4be1ed825789eb7 | [] | no_license | omarn33/Spam-Email-Classifier | f6bfeb3e1c66363b49af086004c42bb0d6c4ef2c | 3b52c4fa7dbf45bd1aeabb9fb51183c92af2628b | refs/heads/master | 2023-06-28T10:20:06.620304 | 2021-08-03T04:47:33 | 2021-08-03T04:47:33 | 392,191,798 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,132 | py | # naive_bayes.py
# ---------------
# Licensing Information: You are free to use or extend this projects for
# educational purposes provided that (1) you do not distribute or publish
# solutions, (2) you retain this notice, and (3) you provide clear
# attribution to the University of Illinois at Urbana-Champaign
#
# Cr... | [
"omarnaeem333@gmail.com"
] | omarnaeem333@gmail.com |
0704b14dc207bdeb9c69726cce59cb935ea707cc | b4752cce5d753784c4eb9c742079da6b9df50ab3 | /news_aggregator_api/save_data.py | 94fe61a818410e9c72dd9bddb4623d699044a6ac | [] | no_license | verain1/Conzu | 105458b33719f8e8304d25a74a06c8fd546b5693 | d61441db2af3d05c3b8cbbd01336b3dfc49f9f9f | refs/heads/main | 2023-07-25T08:20:13.186590 | 2021-08-13T19:14:59 | 2021-08-13T19:14:59 | 395,057,912 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 567 | py | from ndtv_scraper import get_ndtv_data # ndtv scraper
from toi_scraper import get_toi_data # toi scraper
import pandas as pd
import numpy as np
import os
import random
data1 = get_ndtv_data()
data2 = get_toi_data()
full_data = data1 + data2
full_data = pd.DataFrame(full_data)
full_data = full_data.dropna()
filter... | [
"anshchadha9211@gmail.com"
] | anshchadha9211@gmail.com |
b609de5a340b8ffa5463bb61550b269014cc97d8 | 673d55fe4fee15b4047bf0248f5ab5b8a72e3907 | /face_recognition/face_recognizer_opencv.py | 98e5ed9efda71000ebb7c22af5f5f0330e202bd7 | [] | no_license | manuel-lang/BlackForestHackathon | bfb08e66f59144792c66bd116976037eb0000c51 | d521d553974b1533f567f1e63f50f3f633022e1b | refs/heads/master | 2021-07-12T03:16:46.823216 | 2017-10-09T10:07:58 | 2017-10-09T10:07:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,624 | py | import cv2
import os
import numpy as np
lbph_rec = cv2.face.LBPHFaceRecognizer_create()
subjects = ["", "Manuel Lang", "Marius Bauer", "Tobias Oehler", "Jerome Klausmann"]
def detect_faces(img):
gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
face_cascade = cv2.CascadeClassifier('lbpcascade_frontalface.xml')
... | [
"manuellang183@gmail.com"
] | manuellang183@gmail.com |
58df714142bc8b34b29e30a57f33a9a9cdc9faf6 | 6ca4a9f5483c754d12cecca3263bdf798a1d3447 | /src/cleaning.py | ab72ec613cfb0b06fb3856da74de64357bba8b6c | [] | no_license | Esaslow/ChurnCaseStudy | 712c37ab13a0c2a9cc2ba1071a5d48d2db665376 | f510f64525ad1b20584e630773376bd233ce96f6 | refs/heads/master | 2021-04-18T21:30:01.159227 | 2018-04-04T05:50:38 | 2018-04-04T05:50:38 | 126,740,944 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,312 | py | import pandas as pd
import numpy as np
from datetime import timedelta
import matplotlib.pyplot as plt
from importlib import reload
from src import cleaning as C
from sklearn.preprocessing import StandardScaler
def clean_city(df):
"""
Input: DataFrame
New columns, the 'city' column to dummy values
Ne... | [
"Elsa7762@colorado.edu"
] | Elsa7762@colorado.edu |
ebfb29af4611b4bc8dec9a2d065d6577a3201c0f | db70c979a9d1002cb2dfe3ea7028957402782fd8 | /tests/test_success_range_below_equal.py | 55f9e2d0ee784cc8aee547cc5960c654ad221f1f | [
"MIT"
] | permissive | Bernardo-MG/wargame_analysis_jupyter_notebook | 739d94b697bf103d0c563d4dcedc9e0fb1890606 | db13838ce0f8c6dcbc160259c1ee0ae258b51ba7 | refs/heads/master | 2022-12-15T12:15:32.798807 | 2020-08-26T06:38:27 | 2020-08-26T06:38:27 | 289,078,376 | 0 | 0 | MIT | 2020-08-26T06:38:28 | 2020-08-20T18:20:02 | Python | UTF-8 | Python | false | false | 8,937 | py | # -*- coding: utf-8 -*-
import unittest
from decimal import Decimal
from scripts.probability import roll_success_range
"""
Max shots script tests.
"""
__author__ = 'Bernardo Martínez Garrido'
__license__ = 'MIT'
class TestZeroToTenBelowEqual(unittest.TestCase):
"""
Tests the chance to go above with the ra... | [
"programming@bernardomg.com"
] | programming@bernardomg.com |
2e9784d9f5133d131dcf95aad42a8e25daf9771b | 9f97c42310f47505eda2b5d6be28294dee7f0f15 | /test/functional/wallet_import_with_label.py | 4e5aebfaae9ccc25061c1b6fdfc3a6030877d25e | [
"MIT"
] | permissive | Madurajaya/cicoin | b7bc3cd65ef665e8c23d6787bb732d211b46e4f3 | b48b11574ae38ae063670a755b9d50ef6960e1e8 | refs/heads/master | 2022-04-13T21:04:57.846103 | 2020-04-01T05:30:32 | 2020-04-01T05:30:32 | 296,742,986 | 1 | 0 | MIT | 2020-09-18T22:37:12 | 2020-09-18T22:37:12 | null | UTF-8 | Python | false | false | 4,903 | py | #!/usr/bin/env python3
# Copyright (c) 2018 The Cicoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test the behavior of RPC importprivkey on set and unset labels of
addresses.
It tests different cases in whi... | [
"cicxcoin2@gmail.com"
] | cicxcoin2@gmail.com |
c913f8fbfe5cfedb9004bb0dd5b99c11a599285b | 485ffbd9a08f72a4ecae63d1695fb82dccc6f195 | /tm/tw3.py | 0b12ecf535fc659e7a489babd72ce638c6387c22 | [] | no_license | ka9epedia/test | 77850d64ae2dc6c1032deebaf43f11b87276da2e | 02b9c43335fc058b9fda936c2b119614c99eb7df | refs/heads/master | 2020-04-17T07:36:12.112061 | 2019-01-18T09:18:07 | 2019-01-18T09:18:07 | 154,784,187 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,522 | py | # coding: utf-8
from requests_oauthlib import OAuth1Session
from requests.exceptions import ConnectionError, ReadTimeout, SSLError
import json, datetime, time, pytz, re, sys, traceback, pymongo
from pymongo import MongoClient
from collections import defaultdict
from pprint import pprint
import numpy as np
import unicod... | [
"kagepedia@gmail.com"
] | kagepedia@gmail.com |
620a896d4a884a98be6bc854d50f98a8b7d210d7 | d85fa999d626ccab2523c8c551cc2f7eb100571c | /Task2E.py | 91ec4b688e91583a21c1d8c811c9a09eb5c5d1c4 | [
"MIT"
] | permissive | swan11jf/CUED-Flood-Warning-Project | dcb4f412525b576fe1e8cd89aadf09920d14fe1b | 93636615ee85eb4ed5ba0ef7414bdbedccc0bcb4 | refs/heads/main | 2023-02-01T20:26:21.449331 | 2020-12-21T11:15:18 | 2020-12-21T11:15:18 | 323,312,508 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 732 | py | from floodsystem.stationdata import build_station_list
from floodsystem.stationdata import update_water_levels
from floodsystem.datafetcher import fetch_measure_levels
from floodsystem.flood import stations_highest_rel_level
from floodsystem.plot import plot_water_levels
import datetime
def run():
stations = buil... | [
"noreply@github.com"
] | swan11jf.noreply@github.com |
ffb75083105752e6e34ddf33fd1f369d3dcae145 | 0a8ef50b8dd8e5a843e6fe3e6692eeefbad9fd84 | /Student9Week/Singleton.py | ff48188b22072087709a6281b2f2310b3621f9a3 | [] | no_license | VitaliyKrytsun/Student | 7e84e66e5ea14dbaced6c46a7e9af17d67c981ff | 451cc4dbb4d2fb8f78f63e6a9d712b807d9c74dc | refs/heads/master | 2020-08-17T07:39:01.441525 | 2019-12-10T11:58:17 | 2019-12-10T11:58:17 | 215,633,757 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 963 | py | # metaclass
# class Singleton(type):
# __cls_instances = {}
# def __call__(cls, *args, **kwargs):
# if cls not in Singleton.__cls_instances:
# Singleton.__cls_instances[cls] = super().__call__(*args, **kwargs)
# return Singleton.__cls_instances[cls]
# class A(metaclass=Singleton... | [
"56654633+VitaliyKrytsun@users.noreply.github.com"
] | 56654633+VitaliyKrytsun@users.noreply.github.com |
18a62f5f58f3eacf0f4b6e83ac4fda4770a77484 | a2e638cd0c124254e67963bda62c21351881ee75 | /Extensions/StructuredProductsDealPackage/FPythonCode/SP_ModuleReload.py | ed019b05682e9d07250ac27a96aa65a7a6824bdd | [] | no_license | webclinic017/fa-absa-py3 | 1ffa98f2bd72d541166fdaac421d3c84147a4e01 | 5e7cc7de3495145501ca53deb9efee2233ab7e1c | refs/heads/main | 2023-04-19T10:41:21.273030 | 2021-05-10T08:50:05 | 2021-05-10T08:50:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,569 | py |
# Need to add
# Additional Info
# - Participation (DealPackage)
# - CapitalProtection (DealPackage)
# - StrikePricePct (Instrument)
# - BarrierLevelPct (Instrument)
# - ProductQuantity (Deal Package)
# - AccumulatorLeverage
# Exotic Events
# - Initial Fixing
# ChoiceLists
# - AccDec (V... | [
"nencho.georogiev@absa.africa"
] | nencho.georogiev@absa.africa |
ede721e55e9c3c008214b8d056bfb0e827d08a68 | ea55badf6640e807a4ed50190290dfe97db06e6c | /scikit-learn/Iris.py | 8637a2173705c4c36614a414f69cc2576ff10938 | [] | no_license | Natsu-Yuki/PythonCode | 31b7f161c8dfc05ac36a5dec9b9bab9b5f4b5b86 | 0cf856d33b008b811a3747a98a6224e5b3e3af30 | refs/heads/master | 2020-03-29T12:03:20.869303 | 2018-09-22T14:32:41 | 2018-09-22T14:32:41 | 149,882,790 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,891 | py | from sklearn.datasets import load_iris
from sklearn.model_selection import train_test_split
import pandas as pd
from sklearn.neighbors import KNeighborsClassifier
import numpy as np
iris_dataset = load_iris()
X_train, X_test, y_train, y_test = train_test_split(iris_dataset['data'], iris_dataset['target'], random_st... | [
"ynatsu233@gmail.com"
] | ynatsu233@gmail.com |
c0c53574fe0228d93d1f83423937147a06d97cef | e177125a896527f0917852db687d8837f41e0ceb | /topoy/either.py | 3b40fc10436242d3c0626a9eaeebf54d11c63df1 | [] | no_license | beezee/topoy | f73fa10eb850ad781c1c507516ced6da19be739d | c56c6627a4430456f1034f4d1b0830c5a654ee52 | refs/heads/master | 2022-07-31T14:29:38.100374 | 2019-11-17T16:59:48 | 2019-11-17T16:59:48 | 219,234,274 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,799 | py | from topoy.applicative import Applicative
from topoy.apply import Apply, tuple
from topoy.monad import Monad
from topoy.hkt import HKT
from topoy.functor import Functor
from topoy.traverse import Traverse
from topoy.typevars import *
from topoy.semigroup import KeepLeft, Semigroup
from topoy.sum import append2sg, bind2... | [
"brian.zeligson@gmail.com"
] | brian.zeligson@gmail.com |
f0d46ede1b3ecc911d9874cce0d0c7cca9e0d770 | 15f94f7b66d33ca1e80ad2cb2c7821fb3c4ca453 | /DataDash/DataModel/apps.py | 41c9d627581b199ca0003cbc6487fb6cb78ab27f | [
"MIT"
] | permissive | DS921020/AnalysisManager | 570fe2b08ba413e0616a057897c34fd2d4415c22 | e16d6fff807738b644174da73d15ddb2bb9f9ac4 | refs/heads/main | 2023-03-03T14:46:34.718085 | 2020-12-10T05:01:44 | 2020-12-10T05:01:44 | 320,133,997 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 98 | py | from django.apps import AppConfig
class TestmodelConfig(AppConfig):
name = 'DataModel'
| [
"ds110293@163.com"
] | ds110293@163.com |
d60cd1bfe7525f7f1d1505b330008095c64c52b2 | 5e59252778f8b6465f6e9c4a1890297624cab8f8 | /shell.py | 15b5a123b00f2886e529971c6a178f4639a69ac8 | [] | no_license | tazjel/rpathcmd | fa62dfed77d56ea100c8f76a035486b2761058ee | 0ebffe639f329665824fdd94d8b5c89ce695f153 | refs/heads/master | 2021-01-16T20:03:25.225459 | 2012-11-05T16:09:17 | 2012-11-05T16:09:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,104 | py | #
# Licensed under the GNU General Public License Version 3
#
# 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 later version.
#
# This p... | [
"tanner.jc@gmail.com"
] | tanner.jc@gmail.com |
390d44eedc5bd62912d37c37ae5ccbcd9582d8af | 3d6787af8b9bb74b7a80e6b51ea9d64d01455d73 | /opinion.mining.from.online.hotel.reviews.a.text.summerization.approach/models/authorcredibility.py | e18717fcb24c2c86d897c5d80646285928bd5ef2 | [] | no_license | beiranvand-karim/data.mining | bbac24d3ffa93c382cb4b5c250e2d22552d55c8d | 85437e59792c2369581efbe76e0dd0d815f9f4e7 | refs/heads/master | 2020-04-04T23:54:42.834596 | 2018-11-29T12:23:16 | 2018-11-29T12:23:16 | 156,376,046 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 134 | py | from mongoengine import *
class AuthorCredibility(Document):
authorId = ObjectIdField(required=True)
measure = FloatField()
| [
"beiranvand.karim@gmail.com"
] | beiranvand.karim@gmail.com |
676f594537bc9c7e4d4a487af70a88783494133b | 843cda9d64985676524db33395d8f4439f0cdf50 | /reviews/migrations/0002_auto_20210109_2143.py | 83750986d64ef284cc3a178ca0bfd0128e6f103c | [] | no_license | orangeberry/airbnb-clone | 7bc37f1e0b4af142edf88c38ca84db71a98a9fca | 6d9ecee9a3190f8cee3ae3fcd416261f633ab581 | refs/heads/master | 2023-03-04T11:31:39.685227 | 2021-02-16T16:39:16 | 2021-02-16T16:39:16 | 324,152,827 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 859 | py | # Generated by Django 3.1.4 on 2021-01-09 12:43
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('rooms', '0008_auto_20210109_2143'),
migrations.swappable_dependency(settings.AUTH_U... | [
"orangeberry@kakao.com"
] | orangeberry@kakao.com |
bb3553154a2dbaa5f002445d6690063caaacc7ac | 274b4c50375c2cf62cec65805efade97931ccf18 | /bikeshare.py | 56ceefcd06dabd949286ac737cc8b92733dbd86c | [] | no_license | JonJacobs770/pdsnd_github | 65c65a48bf8bf32266823085d2454005422938c7 | 13f728205001c715de8ef33d98266c4e379588f0 | refs/heads/master | 2022-08-21T10:02:14.425315 | 2020-05-31T11:19:00 | 2020-05-31T11:19:00 | 268,144,699 | 0 | 0 | null | 2020-05-30T19:15:45 | 2020-05-30T19:15:44 | null | UTF-8 | Python | false | false | 11,355 | py | import time
import pandas as pd
import numpy as np
import math
CITY_DATA = { 'chicago': 'chicago.csv',
'new york': 'new_york_city.csv',
'washington': 'washington.csv' }
def get_filters():
"""
Asks user to specify a city, month, and day to analyze.
Returns:
(str) city ... | [
"jonty.jacobs@gmail.com"
] | jonty.jacobs@gmail.com |
d5d6859ced095e77ba26501b5cb023a48cdd6535 | 8d6ba22866a97b551de7ecccea75769c055afded | /HW/hw8_q4.py | 496c50712582022223828e7fd6ce1a850528c3bc | [] | no_license | adibsxion19/CS1114 | c52b8815ea3841e0e47a2442cceb5e9c5a81806a | 0425d3d96664ee7a5ef88e146d51759e4a0bf50f | refs/heads/main | 2023-04-10T23:30:31.427021 | 2021-04-06T05:03:50 | 2021-04-06T05:03:50 | 348,604,834 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,354 | py | # Author: Aadiba Haque
# Assignment / Part: HW8 - Q4
# Date due: 2020-04-24
# I pledge that I have completed this assignment without
# collaborating with anyone else, in conformance with the
# NYU School of Engineering Policies and Procedures on
# Academic Misconduct.
def clean_data(complete_data_filename, clean... | [
"noreply@github.com"
] | adibsxion19.noreply@github.com |
a98c0f87c5e54efc98415dca9576d0bcecc3346f | aae551baa369fda031f363c2afbdf1984467f16d | /Machine_Learning/Programming_Assignments/CS15B001_PA3/Code/q2/bernoulli.py | 59000649f234d836785dc85871bffe40b30ef448 | [] | no_license | ameet-1997/Course_Assignments | 37f7d4115baec383ccf029772efcf9c33beb2a23 | 629e9d5cfc6fa6cf37a96c5fcc33bc669cbdc59d | refs/heads/master | 2021-05-16T16:23:32.731296 | 2018-02-03T05:57:01 | 2018-02-03T05:57:01 | 119,939,202 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,114 | py | import pandas as pd
import numpy as np
from scipy import sparse
import os
import functions
import time
from sklearn.model_selection import KFold
from sklearn.metrics import precision_recall_fscore_support
from tabulate import tabulate
from sklearn.naive_bayes import BernoulliNB, MultinomialNB
from sklearn.metrics impor... | [
"ameetsd97@gmail.com"
] | ameetsd97@gmail.com |
42f3d2a0282e52d317b7e91d150c762f62c4d55a | 5bd79964e4770770e972551b017d990036c1c600 | /code/generateMeetings.py | d003722bafaaa4618abe9ee18b10542604c4c14b | [
"Apache-2.0"
] | permissive | IIIF/trc | 8d63fd200927d6ad0170a03d8afc2d97cf193b59 | d7226551a3bd081e9ff7518b8037527f9f041c6d | refs/heads/master | 2021-08-04T11:14:03.504771 | 2021-07-21T22:29:23 | 2021-07-21T22:29:23 | 157,777,140 | 1 | 1 | Apache-2.0 | 2020-12-03T12:36:13 | 2018-11-15T21:50:00 | Python | UTF-8 | Python | false | false | 1,795 | py | #!/usr/bin/python
import sys
from ics import Calendar, Event
from datetime import datetime,timedelta
from dateutil import tz
def timezone(timeInstance, timezone):
return timeInstance.astimezone(tz.gettz(timezone)).time()
if __name__ == "__main__":
if len(sys.argv) != 3 and len(sys.argv) != 4:
print (... | [
"glen.robson@gmail.com"
] | glen.robson@gmail.com |
3c1b9ff25bff83a5b2ab154d29fca1246527a50a | 5a18af4dd1eb7244ed6b75b8a59c29f7360cf468 | /pose_regression/models/top_models.py | 077581c48b4e505abe1ebd662626cb4a4f5d9cca | [] | no_license | asiron/deep-camera-relocalization | b585ef1b3ce63b307fcc57979eaf01462268a82c | 9277826c605be9a28deff81261dbc68b721c7ae4 | refs/heads/master | 2020-03-18T22:19:36.813331 | 2018-10-20T20:36:01 | 2018-10-20T20:36:01 | 135,338,870 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,466 | py | from keras.layers import (
Dropout, Dense, LSTM, ELU, GRU, CuDNNGRU, CuDNNLSTM, Lambda,
TimeDistributed, Activation, Bidirectional,
Reshape, Concatenate, PReLU, BatchNormalization)
from keras.regularizers import l2
from .layers import QuaternionNormalization
import keras.backend as K
import tensorflow... | [
"maciej.zurad@gmail.com"
] | maciej.zurad@gmail.com |
58e2029cc20575a0699ac989d2bd2bceb0f0ad0d | 5c14e3a42410b386b8a062ad5c8ef4d35b54c10e | /LabQuestion4.py | b809de618049996ab3598d3ff07ddbd8829a6e23 | [] | no_license | CStratton00/CST-215-Programming-Assignments | ae158504dca1b1dbf85b73cb8f6967f353c6e0ca | cc72b91380dd2dec23ed1adce8461b3d399ce34e | refs/heads/main | 2023-02-27T13:42:29.074624 | 2021-02-10T18:16:06 | 2021-02-10T18:16:06 | 337,812,288 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,303 | py | A = True
B = True
def APT(): return "T" if(A == True) else "F"
def BPT(): return "T" if(B == True) else "F"
def abAND(): return "T" if(A and B) else "F"
def abOR(): return "T" if(A or B) else "F"
def abNAND(): return "T" if(not(A and B)) else "F"
def abNOR(): return "T" if(not(A or B)) else "F"
def abXOR(): return "T"... | [
"noreply@github.com"
] | CStratton00.noreply@github.com |
bb9382cac06758cde9a8cf0d6815e7c641a53b4e | cfe31cde0d64026925c9a5747216ba83856122d8 | /Sex_Determination/parallel_ASEreadcounter_XIST.py | 630398e4cecd81c226a883b9bbf1f9c81b1d5fbe | [
"MIT"
] | permissive | SViswanathanLab/XIST-Males-Scripts | f8d4fe22dee4d90f8a7a343a1138e721f3e5473a | 4f2a0e281296df1dd86e3c68b13192e3337c1e8a | refs/heads/main | 2023-04-11T05:52:21.329845 | 2022-08-20T22:01:28 | 2022-08-20T22:01:28 | 400,788,194 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,182 | py | #qsub -t 1:86 submit_script.qsub
import glob, os
task_id = int(os.getenv("SGE_TASK_ID"))
temp_path = "download_dir/" #where files are downloaded to
parameters_list = [x[0].split("/")[-1] for x in os.walk(temp_path)]
samples_per_node = 18
val = min(task_id*samples_per_node, len(parameters_list))
parameter_sublist = ... | [
"noreply@github.com"
] | SViswanathanLab.noreply@github.com |
5c27bedc6a666dd8e3f85a7a92005b76c278ea8c | 51a705c1c3c749cd339ebdfc1997770e9de0f71e | /partie2/partie_2.py | a1844d5e76b369dec7eed1c19e1aa6eb679c29d6 | [] | no_license | jabertSI/Gps-haversin-to-kml | 49c932cadf25fb123d435acdbf3385897d06fc1e | 163e862185e3e1d670ed52c1a6389a06f9f9ec28 | refs/heads/master | 2021-06-12T08:24:45.823195 | 2017-03-10T13:26:44 | 2017-03-10T13:26:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,746 | py | from math import radians, cos, sin, atan2, sqrt, ceil
terre = 6371
# LECTURE DU FICHIER
fichier_ville = 'ville.txt'
with open(fichier_ville, 'r') as f:
# Creation liste de liste
lines = [line.strip('\n') for line in f.readlines()]
carnet = [line.split() for line in lines] #Decoupage de la chaine de caracter... | [
"noreply@github.com"
] | jabertSI.noreply@github.com |
2159307633408b2e9ff64b9bb7270d5a919c593b | ad5e9d790c564cdf6923670bbf8454f1be88624a | /projects_robotics/cfg/dynamic_ric.cfg | 63113e0c4d6189cce67406622d5ceb4541eb0c45 | [] | no_license | zhangxuelei86/ROS-odometry-car | 677cdaeba5c2aaea014a115c0bfd09f85f32c9e8 | 284d0581dcf5e6a68d164b2e79a93976aa677a3f | refs/heads/master | 2022-04-10T09:30:25.096406 | 2020-03-25T11:12:05 | 2020-03-25T11:12:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 546 | cfg | #!/usr/bin/env python
PACKAGE = "projects_robotics"
from dynamic_reconfigure.parameter_generator_catkin import *
gen = ParameterGenerator()
gen.add("computation_type", int_t, 0, "0 Differential Drive, 1 Ackermann", 0, 0, 1)
gen.add("reset_signal", int_t, 0, "change to reset", 0, 0, 1)
gen.add("change_coordina... | [
"alessia.paccagnella@mail.polimi.it"
] | alessia.paccagnella@mail.polimi.it |
ac215caf0b42fede5612998b3aad73bcf7068688 | 468daac37b861ce6e9f7e18f491754ba0acd9818 | /TTTBoard.py | 236ff071bf3cb9086d343156dc5b8c689841942a | [] | no_license | charlesdaniel/Bioloid_TicTacToe | 49ec570bdf5704abf394d0cb567bd6b3c8257b18 | 37b1e45135627fb6513dd5cd3b440566bfd08952 | refs/heads/master | 2016-08-05T14:27:32.220491 | 2011-09-05T13:59:09 | 2011-09-05T14:01:35 | 2,328,502 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,480 | py | ## Import the base TTTPlayer class (we'll need it later to prompt for input)
from TTTPlayer import *
## The TTTBoard is the engine that drives the game. It handles prompting for input from
## any TTTPlayer class (this includes TTTPlayerAI since that inherits from TTTPlayer).
## Additionally this class prints out the b... | [
"charles.sam.daniel@gmail.com"
] | charles.sam.daniel@gmail.com |
2241916c7d68776e94af575a2559596e236b1ca4 | 6c298f03496560276fb9f478cbefc218ecd24e9a | /VoiceInput/program/lib/voiceinput.py | 7f661347d3c4a859be5930192ef02c22284a2b7f | [] | no_license | koenschepens/OldPhone | 1f3fccd6018e14e779373243a0e90a759a7425f9 | 5ac9247d0c9e08d6af8fb384479c53b48c174aa6 | refs/heads/master | 2021-01-10T08:31:43.368378 | 2016-03-26T19:06:07 | 2016-03-26T19:06:07 | 43,725,567 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,048 | py | import sys
import xbmc, xbmcgui, xbmcaddon
try:
import simplejson
except ImportError:
import json as simplejson
import httplib
__addon__ = xbmcaddon.Addon()
__cwd__ = __addon__.getAddonInfo('path').decode("utf-8")
__language__ = __addon__.getLocalizedString
class InputWindow(xbmcgui.WindowXMLDia... | [
"kschepens@gmail.com"
] | kschepens@gmail.com |
e0804b03b742211cf22e225595431d99051e0976 | a6ab576fcdb7f7258bf579765c92a664530b6574 | /Exceptions.py | deb9da8256dbc666dff8ca553ac66a4d872c7199 | [] | no_license | ILYSHI/Python-code | 36a7322be62dcda1c3e7949f23fed927657d40fa | ff110688e32be6f91a0fce5d38c2775a062c1225 | refs/heads/main | 2023-01-19T03:55:38.041634 | 2020-11-21T12:45:04 | 2020-11-21T12:45:04 | 314,808,790 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 207 | py | class BadName(Exception):
pass
def greet(name):
if name[0].isupper():
return "Hello, " + name
else:
raise BadName(name + ' is inappropriate name')
print('Import is execution') | [
"termit63@gmail.com"
] | termit63@gmail.com |
1419006fc8c21bcce2139ded545ad3d7af085e95 | 97379f2f2ab5ffa58ad0bbfbb5a2b1b2bc46d6fe | /modelwrangler/corral/dense_feedforward.py | 22e65f0cfad2e415643b656689bb4bfc3c1256fd | [
"MIT"
] | permissive | brenton-enigma/modelwrangler | 6afffbdf0b929e566adfd4497b60f8c613ef57d5 | 541d3c3267f70ff57a30a8c954b82c039ecff7aa | refs/heads/master | 2021-05-09T20:16:29.687571 | 2017-12-17T18:33:45 | 2017-12-17T18:33:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,602 | py | """Module sets up Dense Autoencoder model"""
import tensorflow as tf
from modelwrangler.model_wrangler import ModelWrangler
import modelwrangler.tf_ops as tops
from modelwrangler.tf_models import BaseNetworkParams, BaseNetwork, LayerConfig
class DenseFeedforwardParams(BaseNetworkParams):
"""Dense autoencoder... | [
"bmcmenamin@gmail.com"
] | bmcmenamin@gmail.com |
38cde75832792f190c10e244e0589cd487f12a03 | 27341bdbb9bc564905f8bbc01604eef9cefe6ca4 | /venv/lib/python3.9/site-packages/sqlalchemy_jsonfield/__init__.py | cbc8ad531207ccddd2148b41318e6364443c230f | [] | no_license | derek-johns/nba-batch-pipeline | fb10ae171e21537d7d83a8ac89c3c2c8b7072f21 | 65898c80c1eea448c75ba07b553b49c7a93837b2 | refs/heads/main | 2023-02-18T16:52:52.192766 | 2021-01-09T20:34:28 | 2021-01-09T20:34:28 | 328,239,908 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,213 | py | # Copyright 2016 Alexey Stepanov aka penguinolog
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by app... | [
"d.johnson13879@gmail.com"
] | d.johnson13879@gmail.com |
967a7bd4f120ca55ba37aef4cb2e8af1f8b53ff8 | 393eb8b5e87de5572e4bd31902c9a42edf91e2f2 | /mysite/home/models.py | 6409d9c97f4d90e5c82308b3d52d593562195328 | [] | no_license | heyyysus/Yeetboard | ea185160e89cd343d360981f96204f44a4eb7b18 | ecd0aaa416a03028b973619b3e4eeb42ea04cf6e | refs/heads/master | 2021-09-29T00:55:38.598684 | 2018-11-22T01:21:35 | 2018-11-22T01:21:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,013 | py | from django.db import models
from django.contrib.auth.models import (
BaseUserManager, AbstractBaseUser, User
)
from django.db.models.signals import post_save
from django.dispatch import receiver
class Profile(models.Model):
user = models.OneToOneField(User, on_delete=models.CASCADE)
bio = models.TextField... | [
"jesus.velarde07@gmail.com"
] | jesus.velarde07@gmail.com |
841b47896afe9f1263de4f58ffd78c05f3001e4a | a78ddbca5c691acc739cfb65d5914fcf27bf06cb | /DataFilter.py | 04facf6863c268b8ae4239019bc6dc52e8d41c76 | [] | no_license | yangshuoc/pku_SVT_plus | 4620355bace7fdd2ea96f18255698ac1f0f98dea | fd67d945526631c821a092fb0585a801dc94d7f4 | refs/heads/master | 2020-03-24T17:20:51.686792 | 2018-08-02T01:20:59 | 2018-08-02T01:20:59 | 142,855,721 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,889 | py | import csv
import random
# DATA_FILE = 'data.csv'
# MISS_TAG = 0
# MISSING_ROW_NUM = 900
# MISSING_COL_NUM = 6
DATA_FILE = 'vocab_vector.csv'
MISS_TAG = 0
MISSING_ROW_NUM = 200
# MISSING_COL_NUM = 70
MISSING_COL_NUM = 50
# DATA_FILE = 'svt_matrix.csv'
# MISS_TAG = 0
# MISSING_ROW_NUM = 70
# MISSING_... | [
"noreply@github.com"
] | yangshuoc.noreply@github.com |
78b7821eb4c330884d87322bb2e9c99f8af8f6d8 | acf2d43575f4be1fc97d0368073e338188e8bfae | /1_twosum.py | 9383da9effb20171eb6ecb6763371d53564f67f0 | [] | no_license | mingshaofeng/leetCode | 87e6011285168eabdcfad89a445c371aad1d0f46 | 0fbf165d4ff25a879db81c8958c191fa4728701f | refs/heads/master | 2020-12-31T08:47:12.951354 | 2020-02-08T12:26:28 | 2020-02-08T12:26:28 | 238,958,568 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 611 | py | '''
Given an array of integers, return indices of the two numbers such that they add up to a specific target.
You may assume that each input would have exactly one solution, and you may not use the same element twice.
Example:
Given nums = [2, 7, 11, 15], target = 9,
Because nums[0] + nums[1] = 2 + 7 = 9,
return [0... | [
"1812611764@qq.com"
] | 1812611764@qq.com |
dd16775a4926161b4b8d7e6769c6edfd9685d2c3 | b68af7ed59f8cb357abb45cc01c4c90e69d0dac4 | /conftest.py | fd2c2f101438991b85a765037d2097de4b849720 | [
"MIT"
] | permissive | paultro708/DataReduction | fb4197c889f47fb35cd89812c76c3bdde7badf17 | ef63b74f3c93e7eb7887c8bc2f25ce0200460d3d | refs/heads/master | 2023-02-02T06:48:42.691450 | 2020-12-18T11:16:17 | 2020-12-18T11:16:17 | 287,581,390 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,005 | py | import pytest
from tests.const import names, basic_reduction, classifiers
from InstanceReduction.DataPreparation import DataPreparation
from InstanceReduction.Raport import Raport
@pytest.fixture(params=names, scope = 'module')
def data(request):
return DataPreparation(request.param)
@pytest.fixture(params = bas... | [
"32535575+paultro708@users.noreply.github.com"
] | 32535575+paultro708@users.noreply.github.com |
5957fddb7c3f6e6aa3a69b0ba94279abc367d105 | d09b14a13e05adcd3d0f1714384b3ab65be4aa7c | /controller/UserRoleManagementDialog.py | 88b9e2a569b3cea650f01750526b2b90f2bedf97 | [] | no_license | ankhbold/lm2 | bd61a353b95d6d8e351cf4b0af48b1b936db8b9f | 30dfbeced57f123d39a69cb4d643a15429b8bfde | refs/heads/master | 2021-07-24T20:57:16.534659 | 2017-11-03T16:33:43 | 2017-11-03T16:33:43 | 90,375,636 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 64,172 | py | __author__ = 'ankhaa'
from PyQt4.QtGui import *
from PyQt4.QtCore import *
from sqlalchemy import exc, or_
from sqlalchemy.exc import DatabaseError, SQLAlchemyError
from sqlalchemy.exc import SQLAlchemyError
from sqlalchemy.orm.exc import NoResultFound
from sqlalchemy import func, or_, and_, desc,extract
from inspect ... | [
"aagii_csms@yahoo.com"
] | aagii_csms@yahoo.com |
c2a62a2b0eee72815aacb4a39fe389383b1c3109 | d7980f818fa101ca7c1e86df3b5dd39c75a58daf | /swmif/urls.py | c301bff1c785b94101ce3555c727b91927290941 | [] | no_license | HarshSonawane/SmartIF | dbe39e35b3d6ac1e45d1255e1080c9a1dd80f929 | ba91f421e28dad7372c7db503e109cba8c193518 | refs/heads/master | 2022-12-19T01:24:35.082665 | 2020-09-20T06:11:18 | 2020-09-20T06:11:18 | 227,466,838 | 0 | 1 | null | 2020-10-01T06:00:51 | 2019-12-11T21:49:23 | JavaScript | UTF-8 | Python | false | false | 1,257 | py | """swmif 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-based v... | [
"sonawaneharshwardhan@gmail.com"
] | sonawaneharshwardhan@gmail.com |
f31e15dee4055a30fb9f5aa5ef69fe6ab9a62139 | 734719be1ef3ceb2de58c56949969a76170f65a6 | /binary_tree_max_path_sum.py | 6a260837d8e220f765e80290b5fc20c073aced69 | [] | no_license | raunaqjain/leetcode_solutions | 26e174eb98700951624ca83ab7661dbc35a23729 | a373085712dba7971ff90bc982f3a36dffd14b5a | refs/heads/master | 2023-01-09T02:42:28.871140 | 2020-11-01T01:43:20 | 2020-11-01T01:43:20 | 309,002,412 | 0 | 0 | null | 2020-11-01T01:43:21 | 2020-11-01T01:25:54 | Python | UTF-8 | Python | false | false | 437 | py | class Solution:
def helper(self, root):
if not root:
return 0
left = max(0, self.helper(root.left))
right = max(0, self.helper(root.right))
self.ans = max(self.ans, left + right + root.val)
return max(left, right) + root.val
def maxPath... | [
"jraunaq18@gmail.com"
] | jraunaq18@gmail.com |
6afef4ba6551705e3a2732735b93faeda61ffeb7 | 63d302d31105ed9ce059d12d8d13b48c633e58a3 | /part03-e13_read_series/src/read_series.py | 16f604eab227a190338497ad9349a6497d0d7493 | [] | no_license | doyu/hy-data-analysis-with-python-summer-2021 | 55ccc3a089d3865bd1ae89b92c9e1784c44e1935 | 1a34983d2c3b9a20473d16209ba8a74f9d68daf2 | refs/heads/main | 2023-08-22T02:14:05.785821 | 2021-09-29T11:41:59 | 2021-09-29T11:41:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 592 | py | #!/usr/bin/env python3
import pandas as pd
def read_series():
serie = pd.Series([], dtype='object')
line = input()
value_list = []
index_list = []
while line != "":
try:
line = line.split()
value = line[1]
index = line[0]
index_list.append(in... | [
"hiroshi.doyu@gmail.com"
] | hiroshi.doyu@gmail.com |
90bc1bde27330e94fc612e4da753803e61b9d6f6 | eb5c9aa97ecaded5f68167fc0220539ba3e4b1b7 | /Q28_Implement strStr()_ver2.py | d005f2e4cecbac082c5effc5dc5c19dfeb793a03 | [] | no_license | Annie-Chu/practice-weekly | 27e7b518a08f7a69f07a1c1592050cbad014bddc | 07c7dbbfa1465eae650d3b58e99bbcc2ef211226 | refs/heads/master | 2022-10-20T00:09:35.275016 | 2020-06-11T06:58:08 | 2020-06-11T06:58:08 | 263,295,443 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 273 | py | def strStr(haystack: str, needle: str) -> int:
if needle == '':
return 0
elif needle not in haystack:
print(-1)
else:
string = haystack.split(needle)
print(len(string[0]))
if __name__ == '__main__':
strStr("hello", "ll") | [
"anniechu65@gmail.com"
] | anniechu65@gmail.com |
5505cd4011c837c9e22cf9e9d81addb8442e050d | 11cd362cdd78c2fc48042ed203614b201ac94aa6 | /apps/oozie/src/oozie/migrations/0005_initial.py | 2688a433ed8dcc89995fc5f9b23a9defb2088449 | [
"CC-BY-3.0",
"LicenseRef-scancode-other-copyleft",
"LicenseRef-scancode-unknown-license-reference",
"ZPL-2.0",
"Unlicense",
"LGPL-3.0-only",
"CC0-1.0",
"LicenseRef-scancode-other-permissive",
"CNRI-Python",
"LicenseRef-scancode-warranty-disclaimer",
"GPL-2.0-or-later",
"Python-2.0",
"GPL-3.0... | permissive | cloudera/hue | b42343d0e03d2936b5a9a32f8ddb3e9c5c80c908 | dccb9467675c67b9c3399fc76c5de6d31bfb8255 | refs/heads/master | 2023-08-31T06:49:25.724501 | 2023-08-28T20:45:00 | 2023-08-28T20:45:00 | 732,593 | 5,655 | 2,244 | Apache-2.0 | 2023-09-14T03:05:41 | 2010-06-21T19:46:51 | JavaScript | UTF-8 | Python | false | false | 1,402 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2018-06-06 18:55
from __future__ import unicode_literals
from django.conf import settings
import django.core.validators
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
depen... | [
"romain.rigaux@gmail.com"
] | romain.rigaux@gmail.com |
9361bb61cd85e87954f06cd6e55599d0840b2082 | efd9c0d47e94dbac8e6e700f45c2f7747ded094b | /Email_Template/Email/migrations/0003_auto_20181023_1457.py | 2f8bca92437323d6af215b43d5f72c3c90b616eb | [] | no_license | SoumyaPuj/EmployeeDatabaseRequirement | dd1b2f21c13f47835e7390c3f831f5d96ef611b6 | d9b3fe22e2327af67aaf6e8d47e50dea30aa01c5 | refs/heads/master | 2020-04-04T19:04:52.513386 | 2018-11-05T11:32:13 | 2018-11-05T11:32:13 | 156,191,071 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 362 | py | # Generated by Django 2.1.2 on 2018-10-23 09:27
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('Email', '0002_auto_20181023_1456'),
]
operations = [
migrations.RenameModel(
old_name='Email_Design',
new_name... | [
"noreply@github.com"
] | SoumyaPuj.noreply@github.com |
0acfd5a67da2070d576a8fb6eb33f195f4b5c0d5 | 1debf486be97ea914c49f69208ab56b4a4d3c013 | /lab.py | 894ef26c5241bbbd05400b303fb2abde0df3dc23 | [] | no_license | XingyuHe/Monopoly | ee483387a723dc8ce2511d75ba86021db6a5acde | 00e9d7e963af29501daac988b966bc03ab276353 | refs/heads/master | 2021-08-16T16:35:46.013197 | 2017-11-20T04:22:24 | 2017-11-20T04:22:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 388 | py | import json
from cs110graphics import *
monopoly_data = json.load(open("monopoly.json"))
print (monopoly_data)
options = monopoly_data['CHANCE']['options']
print(options)
print(len(options))
print(options[str(2)])
# def program(win):
# win.set_height(1600)
# win.set_width(1600)
# rect1 = Rectangle(win)
# ... | [
"32248504+PeterWiIIiam@users.noreply.github.com"
] | 32248504+PeterWiIIiam@users.noreply.github.com |
06d58311b1ea626d1a63e334daea32050b9d3781 | 0c06237432abf0ebbcde87bb1c05d290e1400da6 | /app/graph/views.py | 6a26b0596deaa5ed12a913553ee8dc693b17d488 | [] | no_license | stevefusaro/timelight | a03e7bda9d3e4977998a460a2fc277d9f1d00648 | 67783e373dcd549b856b03db37b09fd8d297ad67 | refs/heads/master | 2021-01-11T02:58:56.550641 | 2017-07-07T20:12:37 | 2017-07-07T20:12:37 | 70,871,959 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,370 | py | from rest_framework import authentication
from rest_framework.viewsets import ViewSet
from rest_framework.decorators import list_route
from rest_framework.response import Response
from neo4j.v1 import GraphDatabase, basic_auth
driver = GraphDatabase.driver("bolt://localhost:7687", auth=basic_auth("neo4j", "ezpass"), ... | [
"sfusaro1@gmail.com"
] | sfusaro1@gmail.com |
3fc4cd0005e2760cac083464668dae41e0b0d4f9 | f8b585a7132343a5da159d32966111fedd39e3d8 | /LogDefer.py | 509ca98e9057c2cf37db6a77a433b52e419dcccd | [] | no_license | mikep/LogDefer | 54e471ca5d607a51547691599af86d44f96aa3b4 | e12de81eba399a433410196605f3b66643dc0833 | refs/heads/master | 2016-09-06T20:07:22.536529 | 2013-12-22T00:50:08 | 2013-12-22T00:50:08 | 15,367,887 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,065 | py | import json
import os
import re
import time
__version__ = "0.1.0"
class LogDefer(object):
"""
Generate log object conpatible with log-defer-viz
https://github.com/hoytech/Log-Defer-Viz
"""
def __init__(self, options={}):
self.levels = (40, 30, 20, 10)
self.message = {
... | [
"michael.pucyk@gmail.com"
] | michael.pucyk@gmail.com |
5ba300fb8fe455146525b436819e316a5e780da1 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2811/61132/294777.py | 4cbb3ce02f1703d0fb35813ef04ff2bc5e50a6e3 | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 237 | py | p,n=map(int,input().split())
l=[]
for i in range(n):
l.append(int(input()))
dic={}
for pos,i in enumerate(l):
key=i%p
if dic.get(key,'')=='':
print(pos+1)
break
else:
dic[key]=i
else:
print(-1) | [
"1069583789@qq.com"
] | 1069583789@qq.com |
e400e3f7cfee1b0808a278fe8e94120ceb12437e | 692b907d07eee8ce3ee32a1fda74b6d92fd6c548 | /tests/models/validators/v1_3_0/jsd_d9bdb9034df99dba.py | 4f3ce36a7f1b34bd26fe19e07e1dc62094323ae1 | [
"MIT"
] | permissive | AltusConsulting/dnacentercli | 04c9c7d00b25753a26c643994388dd4e23bf4c54 | 26ea46fdbd40fc30649ea1d8803158655aa545aa | refs/heads/master | 2022-12-16T04:50:30.076420 | 2020-07-17T22:12:39 | 2020-07-17T22:12:39 | 212,206,213 | 0 | 0 | MIT | 2022-12-08T06:39:49 | 2019-10-01T21:50:42 | Python | UTF-8 | Python | false | false | 2,451 | py | # -*- coding: utf-8 -*-
"""DNA Center Get Site Count data model.
Copyright (c) 2019 Cisco and/or its affiliates.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including wit... | [
"wastorga@altus.co.cr"
] | wastorga@altus.co.cr |
038769006e9dcbff4aa1248ab9f5b7c86a38959a | 5cd04ee165edb98c80fdfab4ca2ceaf3352f3a60 | /cflearn/models/ddr/loss.py | 4ae8915ad1fab6995fceed631a5eb62fe2106b0f | [
"MIT"
] | permissive | adbmd/carefree-learn | f99e620ead71e15d7e91c0a74bb564e05afa8ba5 | 10970de9e9b96673f56104bf410bbd4927e86334 | refs/heads/master | 2022-12-21T07:48:28.780174 | 2020-08-01T02:37:23 | 2020-08-01T02:37:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,539 | py | import torch
import logging
import torch.nn as nn
from typing import *
from cftool.ml import Anneal
from cftool.misc import LoggingMixin
from ...misc.toolkit import tensor_dict_type
from ...modules.auxiliary import MTL
class DDRLoss(nn.Module, LoggingMixin):
def __init__(self,
config: Dict[str... | [
"syameimaru_kurumi@pku.edu.cn"
] | syameimaru_kurumi@pku.edu.cn |
b2f8bcc16221469eed37b0ab56a7404cf8dc0a34 | 3d709e8a007a8c46c8ece0b63407551a06a47bf1 | /app/accounts/__init__.py | 9bbf50c3aafc7efb11440d6c8e8559e6b65cab46 | [] | no_license | lassilaiho/recipe-book | 4f74422790ed9bb7d810d1fdff1ebf2c0610a6c9 | 379dd7b52ef15272dfdba24e668f4ddc7fc896b3 | refs/heads/master | 2023-06-21T22:37:29.983415 | 2021-07-24T13:24:24 | 2021-07-24T13:24:24 | 233,632,351 | 0 | 0 | null | 2021-03-20T02:44:35 | 2020-01-13T15:49:03 | HTML | UTF-8 | Python | false | false | 172 | py | from app.main import login_manager
from app.accounts.models import Account
@login_manager.user_loader
def load_user(account_id):
return Account.query.get(account_id)
| [
"lassi.laiho0@gmail.com"
] | lassi.laiho0@gmail.com |
609e132e00c44ec7d44b98d5322c72c6ba7dd196 | db5952a4ecb74177d8acdcc1440af65a540ba07e | /abbrev.py | 6df1f73e9d1fc70481055894247005d7c95acf5a | [] | no_license | dividedmind/moviesorter | a39aaf03f5ac0984d4a57cce2fcf87b320a59bdf | f2d57d184d63ccc35bd0d1b10dde7de803da5aae | refs/heads/master | 2021-01-23T15:42:35.272179 | 2011-08-22T11:55:10 | 2011-08-22T11:55:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 211 | py | # -*- coding: utf-8 -*-
from google.appengine.ext import webapp
register = webapp.template.create_template_register()
@register.filter
def abbrev(name):
return ''.join([word[0] for word in name.split()])
| [
"divided.mind@gmail.com"
] | divided.mind@gmail.com |
beaa4c42310beb20c73ad1cf96be7aa287176ab4 | b1d90fa399c2f4cb1f5eba0846d60d72044fc4b9 | /wASmaster/configure_was/configure_servers_and_cluster.py | c1bbfa285f3c144a3c45f9b43aa241d97a38b4e4 | [] | no_license | igmatovina/webSphere-automatization | a497b0ec70b1bee833082c58410ed4409e1ae84b | c4ec7fdba9d57ce176b7186dfd6697c95ebd6214 | refs/heads/main | 2023-01-02T00:34:02.523424 | 2020-10-19T11:10:29 | 2020-10-19T11:10:29 | 305,355,822 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,126 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# exit()
from java.lang import System as jvm
import sys
sys.modules['AdminConfig'] = AdminConfig
sys.modules['AdminControl'] = AdminControl
sys.modules['AdminApp'] = AdminApp
sys.modules['AdminTask'] = AdminTask
sys.modules['Help'] = Help
import myfunctions as fl
import xml.e... | [
"noreply@github.com"
] | igmatovina.noreply@github.com |
c61b3a1fac58f75d6fca03e86ed4fb7ac6661149 | 63b6c1ff3827055d05a92aaf9c6cfb5c5617bccc | /compositionDuMahal/admin.py | bc70c0c1f2c6aeef1f0c5e2eee5b48c98b9a5bda | [] | no_license | Slam0810/django | 990deb8f615036ead078304c3298f246a8e5002e | d81923534c1eb0e330de91433fed72a42b922ee6 | refs/heads/master | 2023-03-27T05:32:24.776629 | 2021-03-23T08:59:34 | 2021-03-23T08:59:34 | 345,477,458 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 884 | py | from django.contrib import admin
from .models import Produit, Contact, Reservation, Presentation
# Register your models here.
#admin.site.register(Produit)
admin.site.register(Contact)
class ReservationAdmin(admin.ModelAdmin):
list_display = ('created_at', 'contacted')
readonly_fields = ('created_at', 'contac... | [
"birama.tour@gmail.com"
] | birama.tour@gmail.com |
66e3f4caa9591de9d0af524ee3a95b967482a74a | 0a9e171dbce02947a88290ee16e0fb90e796428a | /Linear_Regression/multi_linreg.py | e9f2773099fcceb018b319c0c3abbda27822ce9d | [] | no_license | sanjmohan/MLExercises | e3416990215a0c101f44093ddaf42816ea8d742c | a71698c794a858496d250ea5a4f9dc6ff55cf171 | refs/heads/master | 2021-01-12T05:32:42.817911 | 2020-04-21T22:09:32 | 2020-04-21T22:09:32 | 77,121,207 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,569 | py | # Multiple Linear Regression on Housing Price given 13 attributes
# First time using theano!
import numpy as np
import theano
from theano import tensor as T
from theano import function
import matplotlib.pyplot as plt
def load_data():
# Features separated by space, examples separated by line breaks
# Load fir... | [
"sam2mohan@gmail.com"
] | sam2mohan@gmail.com |
3fce7e6e7ffee44c337a0c83125d2ce5f09a5280 | 49e5c03d59b9b7671f6be1780444cccd6ef14e7e | /maple/utils.py | a2c13c7246640f7c79516edfb77a8839724b6d00 | [] | no_license | isled/backups | e2dd176adaed63d3c41e9a4e9377a012d192976f | 94568f9582dfea2aff9898ef834c8fb583deec87 | refs/heads/master | 2021-07-10T20:15:56.087030 | 2017-10-12T11:02:58 | 2017-10-12T11:02:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 987 | py | import typing
class MapleError(Exception):
"""
maple 基础错误类。
所有错误类均基于此类。
"""
pass
def ensure_bytes(value: typing.Any) -> bytes:
"""
确保传入变量是字节对象
:param value: 任意类型
:return: bytes
"""
if isinstance(value, bytes):
return value
if isinstance(value, bytearray):
... | [
"ymkwfn1688@qq.com"
] | ymkwfn1688@qq.com |
bf4537cf065e4166235f72754c003c22dff1f73a | 7740035c7af9b8dcf1a82f0c1b46a7c6dd18f8f4 | /blog_project/blogs/migrations/0001_initial.py | 39215dc6daab96b05125b0c07573cf9e2c715387 | [] | no_license | Arijit1303/Django-Projects | 2df930d84ace7637eeaa4d5e3bba161fbce9a4f4 | 2125894e126b5f7089abf7d6d020fb1a82940463 | refs/heads/master | 2021-05-01T17:02:26.912653 | 2018-02-10T07:31:01 | 2018-02-10T07:31:01 | 120,993,324 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 785 | py | # Generated by Django 2.0.1 on 2018-01-15 10:42
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | [
"noreply@github.com"
] | Arijit1303.noreply@github.com |
a5b8f6d17d44bb21c75ef0b3d113fa8cb8f0dfdc | 90be82216cd48b95e8ebfd0054a048ea91707872 | /organisations/migrations/0002_auto_20200828_1740.py | c9a44789b14b923443120b8e9961778cd8f797de | [
"MIT"
] | permissive | rubberducklive/tcm_api | 9c774e50e1e04f4c4c5735871ef38d35b013a5e0 | 53d2b533e3f9251cce49bd4c1b8e9e65a03eaf04 | refs/heads/main | 2022-12-06T17:30:29.807552 | 2020-08-28T17:49:19 | 2020-08-28T17:49:19 | 290,266,719 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 440 | py | # Generated by Django 3.0.9 on 2020-08-28 17:40
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('organisations', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='organisation',
name='name',
... | [
"ulhas.sm@gmail.com"
] | ulhas.sm@gmail.com |
5f6a1e686ceb5a0fd3ce59392ce011e48b736289 | e427906785f3076ea7cf5f0bc87ba2edffb926b6 | /Bakhteev2019/projects/Bakhteev2017Hypergrad/code/pyfos/hyperoptimizers/hoag_optimize.py | b606cc4e8b1163da2cca8fdc76fe02847bda54d1 | [] | no_license | rigof80/PhDThesis | d9e03b84b8118f8c9fd677622126bef88ea2eda8 | 0dfc331608059427ab2bc6fe61ac127b5dbd0fe3 | refs/heads/master | 2022-01-09T04:32:09.310722 | 2019-05-01T17:59:45 | 2019-05-01T17:59:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,817 | py | import sys
sys.path.append('.')
import theano
import theano.tensor as T
import numpy as np
import random
from structures import HyperparameterOptimization
import random
import time
from scipy.optimize import minimize
import gc
def hoag_optimize(trainig_criterion, model_constructor, param_optimizer, trial_num , batch... | [
"bakhteev@phystech.edu"
] | bakhteev@phystech.edu |
6612f576f17ed5f3dd743c78d2b75c72608b9c56 | 5722f0056c3066fcfe71eabb66d1830c714626c3 | /Week 3/ex29.py | cdf29f241855439e36a5a90a9ceedc58a5a2c418 | [] | no_license | Leorodr501/idh3034leo | e14928d7126a9a946c61d2083b3bb43de833afbe | 38596ca48bf945c5a8891fb9aa258d6b40edd9ca | refs/heads/master | 2020-04-02T05:28:16.132218 | 2018-12-09T01:25:23 | 2018-12-09T01:25:23 | 154,079,280 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 489 | py | people = 20
cats = 30
dogs = 15
if people < cats:
print("Too many cats! The world is doomed!")
if people > cats:
print("Not many cats! The world is saved!")
if people < dogs:
print("The world is drooled on!")
if people > dogs:
print("The world is dry!")
dogs += 5
if people >= dogs:
print("... | [
"root@instance-2.us-east4-c.c.mad-libs-221518.internal"
] | root@instance-2.us-east4-c.c.mad-libs-221518.internal |
dd3c8aa9ff1f411e97b2efef7666a067449b8770 | cee089aebd43dabcdc073fc4c1f3ec38bccd2a91 | /Decison-Tree/Naive Decision Tree/decisionTree.py | 9882f7f79be1f2bffea793117203b790748e8306 | [] | no_license | ramarvab/DataMining_FinalProject | 73f82438c87becfbbf5b5a21734dc6dc2b475873 | 28880b696a154fa0e263d04ac2c07436c118af96 | refs/heads/master | 2020-09-16T04:56:09.843205 | 2016-09-07T19:19:58 | 2016-09-07T19:19:58 | 67,636,260 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,098 | py | import numpy
import math
class tree_node(object):
def __init__(self):
self.leaf = 0
self.category = -1
self.feature = 0
self.value = -1
self.right = None
self.left = None
def get_entropy(catlist, categories):
l_cat = len(catlist)
if l_cat == 0:
return 0
catlist = map(int, catlist)
major = 0.0
... | [
"ramarvab@149-161-153-43.dhcp-bl.indiana.edu"
] | ramarvab@149-161-153-43.dhcp-bl.indiana.edu |
2b8904d38acfeffb87691cb317edd7a9494fbc11 | 21f05b45dbb43667007f3063d1a33082e122bec6 | /src/NIMSU_Modules/DataType_Results.py | 1073a7061d10b06d877ccfdcc43e4b35d6fd655b | [] | no_license | DanAyres/NIMSU | 6f328f4b98a5eb34277be347fa1a2bb331bd87f0 | 6fe378c73d25aa58951de75d50841864268d389b | refs/heads/master | 2020-05-02T11:18:06.087070 | 2015-05-27T09:27:17 | 2015-05-27T09:27:17 | 34,388,261 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,820 | py | '''
Created on 14 Apr 2015
@author: daiel
'''
class Data():
def __init__(self,val,listt=[],hdf5='none'):
self.val=val
self.list=listt
self.hdf5=hdf5
def __add__(self,other):
pass
def __sub__(self,other):
pass
def __mul__(self,other):
pas... | [
"daiel@daiel-XPS-L421X"
] | daiel@daiel-XPS-L421X |
0099c7138f3d1228d6bced756f44e3f4ed25ed66 | 975e63eb3d9fd2617699a8dd447ed281a5225f27 | /simulation_utils.py | 0f2b84cac2fc73955902888e3297994687a5d916 | [
"MIT"
] | permissive | meirelon/baseball-season-simulation | 06813be8021105e388b28412f7a3313a3568500e | 835283029844023ee528b4a52b771f10a4b622b5 | refs/heads/master | 2022-07-22T03:13:22.404375 | 2022-07-19T05:15:47 | 2022-07-19T05:15:47 | 175,287,540 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 668 | py | SCHEDULE_COLUMNS = [
"date",
"number_of_games",
"day_of_week",
"visiting_team",
"away_league",
"away_game_number",
"home_team",
"home_league",
"home_game_number",
"game_time",
]
# DISTRIBUTIONS = ["beta", "normal", "lognormal", "gamma", "weibull"]
DISTRIBUTIONS = ["normal", "lo... | [
"nestelm@gmail.com"
] | nestelm@gmail.com |
c3c372e355b0b1fee36defc54ab53ac4f7d61fc6 | dda2f6f4f823ec3571f0a8474a51a3498166b1f9 | /rolle/migrations/0002_auto_20190920_1650.py | d2c3ede126b44ad962435e1f8736da9c4f8bd889 | [] | no_license | prauscher/thwin | 3761eef2e779491d52c5093ca0ce9841d218e743 | bab06bc5659d3778e81b92995e46b826da9cbd68 | refs/heads/master | 2020-07-30T08:31:45.522366 | 2019-09-22T21:07:08 | 2019-09-22T21:07:08 | 210,156,570 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 725 | py | # Generated by Django 2.2.5 on 2019-09-20 16:50
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('rolle', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='freigabe',
... | [
"prauscher@prauscher.de"
] | prauscher@prauscher.de |
0628946d4e9a280e8355cd0413d75bd4a43845dc | 84e5297e214dd94105df7bbe627a506773d70224 | /Assignment2/dnn_tf.py | 478f858ded57e45f0034d15cb734f6130922bf28 | [] | no_license | toannguyen1904/VietAI-ML-Foundation-5 | b02b1463d0b820088fa7400112d41d4291357172 | 5adcd49c88e4c886b15973254d56c07c15a8660d | refs/heads/master | 2022-05-16T10:27:27.570181 | 2020-03-16T05:37:58 | 2020-03-16T05:37:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,419 | py | """dnn_tf_sol.py
Solution of deep neural network implementation using tensorflow
Author: Kien Huynh
"""
import numpy as np
import tensorflow as tf
import matplotlib.pyplot as plt
from util import *
from dnn_np import test
import pdb
def bat_classification():
# Load data from file
# Make sure... | [
"47108512+ChrisZangNam@users.noreply.github.com"
] | 47108512+ChrisZangNam@users.noreply.github.com |
96da18240353d57e20908d2a0b7b3f23721bc1cd | 89148623fc5a85684da41c8a8d7c04543f21e93e | /designer/formWindow.py | 0f7729ba9b5bdeb96c35f445ab9262093931bf11 | [] | no_license | lllllllai27/PyQt5_GUI | e2d9151fbac21b066e31d1f509740123411ec13c | 0f858bbf058f975fb5db925c277fad73ecbef54f | refs/heads/master | 2020-08-02T19:53:59.705009 | 2019-09-29T14:03:19 | 2019-09-29T14:03:19 | 211,487,236 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,600 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'formWindow.ui'
#
# Created by: PyQt5 UI code generator 5.13.1
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
Mai... | [
"31854329+lllllllai27@users.noreply.github.com"
] | 31854329+lllllllai27@users.noreply.github.com |
a69567cb312181e925b480f018bcfda89912d788 | 28642c0afd5a78640b713c4562d950ea40e0147a | /scripts/common.py | 1e929bbe059b4d552b5c6f55549fcaef6dfad70b | [
"Apache-2.0"
] | permissive | Kevin-Mok/kogito-images | e4764327f36983fd3f545089d83b35549b304121 | a814fe35e4a8c7bd32849bef934c7f6f57faf1b3 | refs/heads/master | 2023-06-12T09:24:35.854019 | 2021-07-05T12:59:09 | 2021-07-05T12:59:09 | 269,133,713 | 0 | 1 | Apache-2.0 | 2020-06-03T16:04:24 | 2020-06-03T16:04:23 | null | UTF-8 | Python | false | false | 13,810 | py | #!/usr/bin/python3
# This script defines some common function that are used by manage-kogito-version.py and push-staging.py script
import os
import re
from ruamel.yaml import YAML
# All kogito-image modules that have the kogito version.
MODULES = {"kogito-data-index-common", "kogito-data-index-mongodb",
... | [
"noreply@github.com"
] | Kevin-Mok.noreply@github.com |
de48c66359d85fb9300d2d9bf9851a4d1a883f0d | 034adbabe1f0243452e19a8313b23cc6950b4ed1 | /check_version.py | faff1a4f08a8bd052d0bd50e437c484f88a96ca1 | [] | no_license | MrLiuYS/JSONFormat4Flutter | e2204b136b7165400dffd8605277f87d80194d7a | aeb265abba99ddd74f65c354f436b2d0ab83f1be | refs/heads/master | 2020-09-26T15:03:51.973447 | 2019-12-11T02:19:09 | 2019-12-11T02:19:09 | 226,279,167 | 0 | 0 | null | 2019-12-06T08:17:14 | 2019-12-06T08:17:13 | null | UTF-8 | Python | false | false | 2,812 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
# @Filename : check_version.py
# @Date : 18-8-20 上午1:52
# @Author : DebuggerX
import configparser
import os
import ssl
import sys
from urllib import request
from json import loads
from PyQt5 import QtGui, QtCore
from PyQt5.QtCore import QThread, pyqtSignal
from... | [
"dx8917312@163.com"
] | dx8917312@163.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.