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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
18b9abf7d45659415762dd267fd8276b625830d3 | c7656039903f8a418b8736fcf8af302e5bc8ad52 | /apis/company_info_api.py | ed6311e3d08f69ec983eaea479f93e4b82902cb2 | [] | no_license | traderbestcoin/Stock_Trading_Platform | fd3d68e02c5a7c1459d7e431a63d16d8f627e936 | 5814fbfd4a6f920a081a39ac0e20d4aec50842a1 | refs/heads/master | 2023-07-18T08:56:14.122403 | 2018-01-23T02:13:28 | 2018-01-23T02:13:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 890 | py | from django.http import HttpResponse, Http404
import urllib.request
# Self-written api to pull company write-up from Reuters
def get_company_info(request, symbol=''):
if symbol != '':
reuter_link = 'https://www.reuters.com/finance/stocks/company-profile/' + symbol + '.O'
try:
... | [
"hua940201@gmail.com"
] | hua940201@gmail.com |
acc5472bf08c41d46cacbcdf8691564b002f4e5b | b30d4b451de9cb3ae5a4ac8418da0326f63262a8 | /PURotationProbability-exp/pythonexports/Pre-trained-RotNetPUProbs.py | 0ec7da75e11d93c39524b02761cb66bee3751915 | [] | no_license | tusharsangam/ImprovingFeatureDecouplingSelfSupervised | 16f7e97f88d909eedd014aa1109849a60016b550 | 9f15e12815059a86ff20d6983150321f6d5edf79 | refs/heads/main | 2023-01-25T04:52:39.016757 | 2020-12-09T13:07:05 | 2020-12-09T13:07:05 | 319,954,338 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,871 | py | #!/usr/bin/env python
# coding: utf-8
# In[1]:
from ImageNet_RotNet_AlexNet.AlexNet import AlexNet as AlexNet
import torch
from DataLoader import get_dataloaders, get_short_dataloaders
import numpy as np
from torch.utils.tensorboard import SummaryWriter
import os
from torch import nn
from torch.nn import functional ... | [
"tusharsangam5@gmail.com"
] | tusharsangam5@gmail.com |
730cbe7694c1b542beab8a12f14a78bee08249f2 | 4995dca279e341bd7f0b44e39cb6935ab4b39393 | /app/core/tests/test_admin.py | d7ea3f54baba661c33266bdf9201bcbe229269f7 | [
"MIT"
] | permissive | pola255/recipe-app-api | d27e62da02793a57fda632f829bf53d82905446d | cb0738ad3aeca0a0012cfc12cd0326e1e73ddb54 | refs/heads/main | 2023-09-04T11:22:28.879335 | 2021-10-26T17:29:28 | 2021-10-26T17:29:28 | 365,495,039 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,623 | py | from django.test import TestCase
from django.contrib.auth import get_user_model
# generate url from Django admin page
from django.urls import reverse
# Give test request to aor application
from django.test import Client
class AdminSiteTests(TestCase):
# Run before every test run
def setUp(self):
self.... | [
"paulette255@gmail.com"
] | paulette255@gmail.com |
4762e0ea1a67769779afd94942b63864c6dd0c7b | 6b968220facf0ae6e747dfcd83cab8edce4af3dd | /Baitap4.py | b92fe7e2f848161382c3f9e238f53f06ca0f1326 | [] | no_license | thachhoang1909/homework_1 | 367270a63c44679f1250893dc1e549ebd1baa1c0 | c7ae7791ec048483126609dee631d3aa2063b41c | refs/heads/master | 2021-07-15T17:34:13.189000 | 2017-10-20T16:49:20 | 2017-10-20T16:49:20 | 105,155,866 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,212 | py |
# coding: utf-8
# <a id='baitap4'></a>
# # 4. Bài tập 4: Human Dataset
# - Mục tiêu: Gom nhóm hình có sự xuất hiện của con người và không có con người.
# - Dataset: INRIA Person Dataset.
#
# In[2]:
# import library
from sklearn.cluster import KMeans
from sklearn.datasets import make_blobs
import matplotlib.pypl... | [
"thachhoang2410@gmail.com"
] | thachhoang2410@gmail.com |
7a55740348b8940be1cbf402885d1f4a3994e426 | 05a70c12df808455100598d8a6fdb5635c641ab8 | /Ene-Jun-2020/bucio-montes-hector-daniel/Ordinario/marvelHeroes-master/app/querys.py | dc6ac3a156dcf5571e2303318c47af3ac37ad977 | [
"MIT"
] | permissive | Jonathan-aguilar/DAS_Sistemas | 991edcc929c33ba9bb8bc84e741b55c10a8420a3 | 4d02efc64161871084df1bff258112351e5d1241 | refs/heads/development | 2023-07-24T12:26:54.698452 | 2021-09-02T20:52:26 | 2021-09-02T20:52:26 | 289,764,892 | 1 | 0 | MIT | 2021-09-02T20:52:27 | 2020-08-23T20:54:55 | Python | UTF-8 | Python | false | false | 3,642 | py | from modelsMarvel import *
class querys():
def __init__(self):
self.schema={
'id':"",
'name':"",
'image':"",
'powerstats':{'combat':"", 'durability':"", 'intelligence':"",'power':"",'speed':"",'strength':""},
'appearance':{'eyeColor':"",'gender':"", 'hairColor':"",'... | [
"daniel.mont@hotmail.com"
] | daniel.mont@hotmail.com |
2166da79b5ff85a9257bf136e8eaff195762ecbf | 26535bf852a8504d1508a0138523556afd4a53c5 | /snippets/urls.py | 3db324cb3431ab3d2bfc11a8a1e6a6c6760933d3 | [] | no_license | nehus/my | c1ed691916e43d0e9cda777be473a92fffbc8f08 | f523ead939e6764f0bc45174b4d4d814832b5ce6 | refs/heads/master | 2021-01-19T21:13:05.410384 | 2017-04-18T13:12:48 | 2017-04-18T13:12:48 | 88,626,813 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 620 | py | from django.conf.urls import url
from snippets.views import *
from snippets import models
from . import views
app_name = 'snippets'
urlpatterns = [
# url(r'^snippets/$', UserSignUp.as_view(),name='UserSignUp'),
url(r'^$', views.UserSignUp, name='UserSignUp'),
#url(r'^otp$', views.OTP,name='OTP'),
# u... | [
"nehasagarb1@gmail.com"
] | nehasagarb1@gmail.com |
b04b42e59b78aa2efe3eb9622d8fa877244cbc67 | fd65e1c644141818d81743a9b2a6239b182fb157 | /flask_mysql/full_demo/flask_app/models/ice_cream.py | f776ce83430d49fa8efb7011f17b4ad4c2de35e2 | [] | no_license | smartinez9535/python | 67ea03892acf6deb45a6add20fffa74ff32171d6 | 2cea59bf9e9a90d909b1a89abd598321a613a0e3 | refs/heads/master | 2023-07-03T17:40:21.758644 | 2021-07-30T17:02:06 | 2021-07-30T17:02:06 | 383,599,625 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,417 | py | from flask_app.config.mysqlconnection import connectToMySQL
from flask_app.models import user
from flask import flash
class IceCream:
schema = "full_demo"
def __init__(self, data):
self.id = data['id']
#if "user" in data:
# self.user = data['user']
#else:
# self... | [
"smartinez9535@gmail.com"
] | smartinez9535@gmail.com |
7427962433afa25dffcb72fa5a094b4873b034a2 | 561ba9d3c50e616a2dd35742622cf10a8cb4bbb8 | /birthday/birthday.py | 9a20cf22fabb76738370678d2a265a4ab5736fb3 | [
"MIT"
] | permissive | QingyuChai/RiceCogs | 62e98747e9d4f6e063594baa03b1a12944c0c0c2 | ae6d7640514ded57416d28842fb28d2459c93ce2 | refs/heads/master | 2021-01-13T12:17:28.967461 | 2020-08-09T19:00:52 | 2020-08-09T19:00:52 | 78,309,687 | 6 | 13 | MIT | 2020-08-09T19:00:33 | 2017-01-07T23:24:10 | Python | UTF-8 | Python | false | false | 5,127 | py | """Birthday cog"""
import discord
import os
import datetime
import time
import asyncio
from __main__ import send_cmd_help
from .utils.chat_formatting import *
from .utils.dataIO import fileIO, dataIO
from .utils import checks
from discord.ext import commands
class Birthday:
def __init__(self, bot):
self.b... | [
"chai.qingyu00@gmail.com"
] | chai.qingyu00@gmail.com |
e6704f2afe2a86ba86badac312d25537de66c7d2 | 8274d7dfc1ff4383ec41b302d760f598d8fc8b37 | /weekly-contest-131/remove-outermost-parentheses.py | 30a568cf534831fbb40da25446b965f2be5046d2 | [] | no_license | Carolusian/leetcode | 82c1743420bc931df959c4443f2ffa88e8acb682 | ebaa4d7731cb0eb4498eae8bc9535ea4ef5fb447 | refs/heads/master | 2022-06-12T04:45:41.158597 | 2022-05-25T23:17:04 | 2022-05-25T23:17:04 | 176,007,340 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,964 | py | """
5016. Remove Outermost Parentheses
A valid parentheses string is either empty (""), "(" + A + ")", or A + B, where A and B are valid parentheses strings, and + represents string concatenation. For example, "", "()", "(())()", and "(()(()))" are all valid parentheses strings.
A valid parentheses string S is primi... | [
"pkufashuo400@gmail.com"
] | pkufashuo400@gmail.com |
4dceb156a659418f6339cbfba392841890d57d8a | 51c33304feee6ef68f31cfd72ff15073c0b7eca6 | /eppe/ontologies.py | aadd38c8fbe693e0ec94eae2153271c1043e3c49 | [
"MIT"
] | permissive | paleocore/paleocore110 | 44a5238b0ef7c8740497a80f47f9a7b7f51adbf1 | 808022a11e6b70020b0b6f448567b96d21341974 | refs/heads/master | 2022-07-22T06:06:36.326993 | 2021-12-13T20:12:30 | 2021-12-13T20:12:30 | 92,423,385 | 0 | 0 | MIT | 2022-07-06T19:46:56 | 2017-05-25T16:36:37 | Python | UTF-8 | Python | false | false | 2,097 | py | # EPPE Areas Vocabulary
laetoli = 'Laetoli'
kakesio = 'Kakesio'
esere = 'Esere'
LAETOLI_AREAS = (
(laetoli, 'Laetoli'),
(kakesio, 'Kakesio'),
(esere, 'Esere-Noiti'),
)
# Laetoli Stratigraphic Units
ngaloba = 'Ngaloba Beds'
upper_ngaloba = "Upper Ngaloba Beds"
lower_ngaloba = "Lower Ngaloba Beds"
qngaloba ... | [
"reedd@austin.utexas.edu"
] | reedd@austin.utexas.edu |
1fe3437d1a0aefab11070ff5921432a80678cb00 | f9d3aa1ded1ffa16b9a8ac34549938ebfae5987a | /.venv/bin/chardetect | 8cd23278de4d6dd26338d2b5e85e7bec0f61f40f | [] | no_license | jonimng/classCloud | fadca4268007dbe6188e65047c3cbe9da35f7010 | 7557e5adc9cceb8cde308f78b750494db2410705 | refs/heads/master | 2021-04-03T04:35:23.106308 | 2018-06-17T14:16:53 | 2018-06-17T14:16:53 | 124,774,882 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 266 | #!/home/ec2-user/environment/classCloud/.venv/bin/python3.6
# -*- coding: utf-8 -*-
import re
import sys
from chardet.cli.chardetect import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"yonaten08@gmail.com"
] | yonaten08@gmail.com | |
d87e9a269411fcc3c56246dadee5b16f4b383d98 | 5b586901b7e5c3f0a3e4b1167186c2c0b9e7b72d | /data_preparation.py | 7a30bac97b5b1aa7f1e604e8d6af9457be938625 | [] | no_license | justinaung/poi-recommendation | a26fde7ef37bb7f8d416dcfe36997b826d135b4c | b690660b7afecdb6c66033caf03d8383a0681600 | refs/heads/master | 2022-10-25T08:45:42.349097 | 2020-06-14T08:02:23 | 2020-06-14T08:02:23 | 272,155,931 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 857 | py | import pandas as pd
train_df = pd.read_csv('data/Foursquare_train.txt', sep='\t')
train_users = train_df.loc[:, ['userID']].rename({'userID': 'userId:ID(User-ID)'}, axis=1)
train_users = train_users.drop_duplicates()
train_users[':LABEL'] = 'User'
train_places = train_df.loc[:, ['placeID']].rename({'placeID': 'plac... | [
"justin.aung19@gmail.com"
] | justin.aung19@gmail.com |
8e6bcec82b09657a3cc7770bd5d022d998610ab4 | 819cadad71b7e4eabed08dc27f1d38f429ed27a0 | /NPM Project/webdriverio-test/node_modules/fibers/build/config.gypi | d7b187a09001ba74cd48acc3ffeef03be80a429c | [
"MIT",
"ISC"
] | permissive | HienNguyenT/group_feature_of_portal | e99f4ef60d9eb68d3eeb074fc8fbc7beae489770 | 58a020ae28324fe9d2a2a8f9aa11f7d0183ab46d | refs/heads/master | 2022-10-22T16:54:16.737116 | 2020-06-18T09:59:41 | 2020-06-18T09:59:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,519 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"asan": 0,
"build_v8_with_gn": "false",
"coverage": "false",
"dcheck_al... | [
"thiethuynh@c02vv2wahv2h.kms.com.vn"
] | thiethuynh@c02vv2wahv2h.kms.com.vn |
0438c4c2933a41d6024eb24bacef608107e54ced | 0abbfa3b72b024ab4097fca3972a12373ca65c86 | /blog.py | 4924efedf188d68afa28026f49ed4d52faccf432 | [] | no_license | abergmanson/flask-blog | 94d6e5ee96ffb3c9120c173dace9a6405c457285 | 212d7c30662177bf1d9f405d3c502ae5bb3cfc88 | refs/heads/master | 2020-04-02T19:48:31.215163 | 2018-10-27T23:39:04 | 2018-10-27T23:39:04 | 154,747,009 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,321 | py | # blog.py - controller
from flask import Flask, render_template, request, session, \
flash, redirect, url_for, g
from functools import wraps
import sqlite3
DATABASE = 'blog.db'
USERNAME = 'admin'
PASSWORD = 'admin'
SECRET_KEY = 'a\xb2\x06\x8e\xc4\x95\xd5\xcf\x8e\xe7\xdaI\xfe\xe9{\x9ab\x87yQH\x11\xd3v'
app = Fl... | [
"abergmanson@gmail.com"
] | abergmanson@gmail.com |
6f140bcd1b8f4ceb583b9198043bbe563cd41c57 | f63c7ed620b92d7a658c6914bb615d06451966be | /CourseWork/DB_utils/db_manager.py | 6fa8040615db263ed407e5373eaafca7749efff8 | [] | no_license | Bodichelly/DataBaseTermSix | f5b7c31b04d8d54d608cfd737180c6b57cd0e864 | 43547a910bd43f40161fc7fe111c22e3e6d69b62 | refs/heads/master | 2023-05-19T07:21:33.006979 | 2021-05-31T19:08:11 | 2021-05-31T19:08:11 | 340,970,018 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 774 | py | class DBManager:
def __init__(self, collection):
self.__collection = collection
def insert(self, item) -> str:
return self.__collection.insert_one(item).inserted_id
def find_all(self, query={}):
return self.find(query, True)
def find(self, query={}, multiple=False):
if... | [
"mrychko.b@gmail.com"
] | mrychko.b@gmail.com |
77f634fccb8884bcd7d3af19f31237f47d667fa6 | 9741a626ea58ef334d4280af1a756be06f69c871 | /apps/funcionarios/migrations/0003_auto_20200814_1320.py | af6160d851fff32f620e4becbd055f0764628477 | [] | no_license | diogo20lemos/gestao_rh | a8a86c7afcad0649dbdbb64e4855e08907917068 | d78139812b13a679699160e0c2be382548864f0f | refs/heads/master | 2023-01-12T11:51:44.918602 | 2020-11-17T16:44:54 | 2020-11-17T16:44:54 | 287,319,746 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 523 | py | # Generated by Django 2.1.2 on 2020-08-14 16:20
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('funcionarios', '0002_auto_20200814_1315'),
]
operations = [
migrations.Alt... | [
"diogolemos@EDiagnose.local"
] | diogolemos@EDiagnose.local |
8403af3bcd079db0b7c6de141beec687298b30e4 | 885a4843dc25d881cd3200862c61134806f3c0db | /geekshop/authapp/forms.py | 44154f1041a4f71352948dbe6589a58c7fd3e5cb | [] | no_license | Iuliia-Fedkovych/DjangoGeekshop | 5ed9a9a3f8c54124bdae953a425b388835ce184b | 755d26216864257e5aae5e19a0b1648dd906db1e | refs/heads/master | 2022-12-22T19:49:54.811691 | 2019-10-08T15:48:23 | 2019-10-08T15:48:23 | 204,206,611 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,664 | py | from django.contrib.auth.forms import AuthenticationForm
from django.contrib.auth.forms import UserCreationForm
from django.contrib.auth.forms import UserChangeForm
from django.forms import ValidationError, HiddenInput
from django import forms
import random, hashlib
from .models import ShopUser
from .models import Sh... | [
"Julia_Fedkovich@mail.ru"
] | Julia_Fedkovich@mail.ru |
ec70fb006e54fd288c4aceedd402f1be199e39aa | ba57832efe7845f0806fe0bb724fa92e6e10379d | /inst/ete2/webplugin/webapp.py | e717293fbeb52b5b80c973401184ec5bf5e6ba7d | [] | no_license | didacs/ggsunburst | fad6b5b82bb610b31c59ec7414c2212c903269fa | aec6ad9e3ea036e1a3d1a766dcd78f9dde3e4213 | refs/heads/master | 2021-07-04T03:02:06.459449 | 2020-09-11T21:34:24 | 2020-09-11T21:34:24 | 174,634,181 | 11 | 3 | null | null | null | null | UTF-8 | Python | false | false | 15,184 | py | # -*- coding: utf-8 -*-
# #START_LICENSE###########################################################
#
#
# This file is part of the Environment for Tree Exploration program
# (ETE). http://ete.cgenomics.org
#
# ETE is free software: you can redistribute it and/or modify it
# under the terms of the GNU General Public ... | [
"didac.santesmasses@crg.eu"
] | didac.santesmasses@crg.eu |
f5f5a7f0c044be26dad716d7d8acebcbc7cd9915 | e42ce4d913a05b200c5eebe33c2ad1e28295a7f2 | /ProgramaPrincipal/BackEnd/KarplusStrongSynthesis/testing3.py | 65664997cfb9e2288e9751a6665f83060fd7e5f4 | [] | no_license | grupo-1-ASSD-E2/ASSD-TP2 | f8ef179c87bfcc41b33bb058b3061b606a55b3fd | c0f09bcf52dfdc01b3d904cade82256351261dbd | refs/heads/master | 2022-07-02T17:46:24.457589 | 2020-05-16T12:54:14 | 2020-05-16T12:54:14 | 258,070,035 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 776 | py |
import numpy as np
import matplotlib.pyplot as plt
import control
import scipy
from sympy.core.numbers import pi, I, oo
from sympy import re, im
from scipy import signal
l = 199
z = np.linspace(0, 2*np.pi, 10000)
#r=0.999
num = 0.5 * z**(l+1) + 0.5 * z**l
den = z**(l+1) - 0.5 * 0.1 * (z + 1)
num_c = np.array([0.5, ... | [
"sarribere@itba.edu.ar"
] | sarribere@itba.edu.ar |
36859f62160f94e4c4d427461f1f1f7aaa00bab4 | 5efc7ab8a298a026bad44596e18de104985a4b71 | /fn_wiki/tests/test_funct_fn_wiki_create_update.py | 9aa1fce69272eadbcde79a40b9ddf69ec5e91908 | [
"MIT"
] | permissive | RomanDerkach/resilient-community-apps | 4cf0abe443411582e9f57491364ecc2d844ba30d | 1f60fb100e6a697df7b901d7a4aad707fea3dfee | refs/heads/master | 2023-03-11T21:56:18.307942 | 2021-03-02T16:09:33 | 2021-03-02T16:09:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,815 | py | # -*- coding: utf-8 -*-
"""Tests using pytest_resilient_circuits"""
import pytest
from resilient_circuits.util import get_config_data, get_function_definition
from resilient_circuits import SubmitTestFunction, FunctionResult
PACKAGE_NAME = "fn_wiki"
FUNCTION_NAME = "fn_wiki_create_update"
# Read the default configur... | [
"ihor.husar@ibm.com"
] | ihor.husar@ibm.com |
4716c0945281c11c5115ee97263bdd2283f2cc7f | 623cfa641cef0b804472e7de22bed294fc79222d | /726. Number of Atoms.py | 07e3792c6f0957b2d2f9ecb3ba079598e7ca9846 | [] | no_license | arunnair018/Leetcode_problems | edfaf502f5849d890591d05c79aad73e6b91e60f | 224cb9c2f628221eb0ed4b76a6c166077a82427a | refs/heads/master | 2021-04-22T17:32:50.601458 | 2020-05-27T15:57:11 | 2020-05-27T15:57:11 | 249,865,405 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,231 | py | # input
formula = "Mg(OH)2"
formula = "K4(ON(SO3)2)2"
# solution start here
# solution one - Takes so much of memory
'''
import re
from collections import Counter
parse = re.findall('([A-Z][a-z]*)(\d*)|(\()|(\))(\d*)',formula)
stack=[[]]
for name,m1,o,c,m2 in parse:
if o:
stack.append([])
if name:
... | [
"arunnair018@gmail.com"
] | arunnair018@gmail.com |
9fbf418d526b5c6f843174ac7e1e448dd6c7381a | 4604906df0b2ca72d4c70aeaa5d59809403d4eee | /app/controllers/Books.py | 2364d4c31a44c970e864bcb0e24021213626cc90 | [] | no_license | SarahPak/red_belt_prep | 2d8a5b17c9b5b9d5f2b2e3aa47287a8bbb896627 | 872bffef9ed8766734a543bd8fd1eaff5d524af5 | refs/heads/master | 2021-01-22T16:37:13.252225 | 2016-01-19T00:22:20 | 2016-01-19T00:22:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 788 | py | from system.core.controller import *
class Books(Controller):
def __init__(self, action):
super(Books, self).__init__(action)
self.load_model('Book')
self.load_model('Review')
def index(self):
recent_books = self.models['Book'].index_recent()
remaining_books = self.models['Book'].index_remaining()
retu... | [
"garik@Gariks-MBP.hsd1.wa.comcast.net"
] | garik@Gariks-MBP.hsd1.wa.comcast.net |
a53f3d0502b7a1b2876957108f43474496804be5 | 83164751a398ac3440ec04eea56cd04649e454cc | /1036.py | 7d4fdc0f2d14c0dc5fa50358c52900c24e20266e | [] | no_license | rezoanahmed/uri_solutions_python | 68df0d2df7640c20d9b94461aa04975ec7bb967f | 18d23a51ed0f15e1540a34c62d1d8220cec9461a | refs/heads/master | 2023-01-24T03:31:40.318351 | 2020-11-20T04:58:10 | 2020-11-20T04:58:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 303 | py | import math
A,B,C = input().split()
x = (float(B)*float(B)) - (4*float(A)*float(C))
if(float(A)==0 or x < 0):
print('Impossivel calcular')
else:
first = (-float(B) + math.sqrt(x))/ (2*float(A))
second = (-float(B) - math.sqrt(x))/ (2*float(A))
print('R1 =',"%.5f"%first)
print('R2 =',"%.5f"%second) | [
"rezoanahmed@users.noreply.github.com"
] | rezoanahmed@users.noreply.github.com |
bd6139114bbba9ceb2caf32b1111ce53801c7afd | 16dee776459d28150b21e959a357ce772e66db5c | /batch_op_py3.py | 6dad21b8ec71f52a0713cd2e1f86ae27acefcfa9 | [] | no_license | ixbear/bear_ops | 8fb4a39ea2333bf55684d0875e5a2380cab6ed60 | b4daee3bcee96197e98ea5505f886d6e64cd6d10 | refs/heads/master | 2022-12-15T00:00:45.296840 | 2020-09-15T13:50:35 | 2020-09-15T13:50:35 | 76,638,346 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,053 | py | #!/usr/bin/python
__author__ = "https://zhukun.net"
import getpass
import sys
from io import StringIO
from optparse import OptionParser
from multiprocessing import Process
from multiprocessing import Queue
import traceback
try:
import paramiko
except ImportError:
sys.stderr.write('SYS: Import lib paramiko fir... | [
"noreply@github.com"
] | noreply@github.com |
edffebf7c4e3acfe778acdda02406168fda32c52 | 5c9e381622db7a49b76b28767a882f31b71485e2 | /Junior_Training_Sheet_template_V6.3/CF_A/Bit++.py | 3aa18f40050e27ce6b73f7f20b3c129bdb66f674 | [] | no_license | mhrous/algorithm | c93e8aaab446f7670c115b849d9bf13ec84dcd75 | 80cad374ae30be39b76354e4fab7e969b92be37a | refs/heads/master | 2022-03-20T00:32:20.553603 | 2019-11-29T05:53:42 | 2019-11-29T05:53:42 | 197,979,640 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 148 | py | n = int(input())
count = 0
for i in range(n):
_str = input()
if "+" in _str:
count += 1
else:
count -= 1
print(count) | [
"your_email_address@example.com"
] | your_email_address@example.com |
b2a7944978607aeb4c5ab3204ff8c59a1050edd8 | e1f1699c79cd709818aae5f9d2d73a8d104365e0 | /Computer-vidion/Archive/opencv_deneme_Kirmizi_DireklandAtma_1.py | 79e56c8ad09590908abea3fd8daaf446539778d2 | [] | no_license | sdeveloper35/DEHA_Algorithm | 966db3cbf98c8f43ef1feb23bac6674fd25510c6 | 15a55981e65ae8e462b7306dfd42b85faeb378ab | refs/heads/master | 2023-07-15T19:57:23.048192 | 2021-08-26T11:05:17 | 2021-08-26T11:05:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,696 | py | # import the necessary packages
from picamera.array import PiRGBArray
from picamera import PiCamera
import time
import cv2
import numpy as np
import time
from dronekit import connect, VehicleMode, LocationGlobalRelative, Command, LocationGlobal
from pymavlink import mavutil
import math
target = False
land_sensivity... | [
"furkanhtk@gmail.com"
] | furkanhtk@gmail.com |
5f5a0e831a68c5ef684d354ca570acf953792cea | f75ec2c20c3208350d310038a2cd0a67253b44df | /src/swagger_codegen/api/response_deserializer.py | 5abc7163627b96210e3b445db6500c9493171408 | [] | no_license | vichooz/swagger_codegen | e53f59f3cd2c080157863698f932a606705db4e4 | 8238356075eea4218b2e6a645c7ea2b8826b1044 | refs/heads/master | 2022-08-03T04:32:49.291426 | 2020-05-27T06:09:28 | 2020-05-27T06:09:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 850 | py | import abc
from typing import Any
from typing import Optional
import pydantic
from swagger_codegen.api.types import ResponseType
class ResponseDeserializer(abc.ABC):
@abc.abstractmethod
def deserialize(self, deserialize_to: ResponseType, model_body):
pass
class DefaultResponseDeserializer(Response... | [
"n10101010@gmail.com"
] | n10101010@gmail.com |
23abf7000a44f260fb7ca4f7eda590f62d2f544b | ab7a85f449049ccefe5456b60848802a58613e97 | /ex19.py | bb3b8c138ce890a033a4cca57a28641e77e666cd | [] | no_license | nomanoma/lpthw | ecdd665cb25a71b876de51edbf5235a0c9b24080 | 88f8fea7556263e2246fe77a8a77da63ecaa22ca | refs/heads/master | 2021-01-13T02:16:02.843745 | 2012-08-22T14:58:28 | 2012-08-22T14:58:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,420 | py | #-- coding: UTF-8 --
# сделаем функцию, принимающую на вход количство сырков и количество крэкеров
# и распечатывающую их и еще пару строк
def cheese_and_crackers(cheese_count, boxes_of_crackers):
print "You have %d cheeses!" % cheese_count
print "You have %d boxes of crackers!" % boxes_of_crackers
print "M... | [
"noma"
] | noma |
89790569a98610f739df75c0eddd5032f7f32c20 | b0330aa21a18820c47d9a9d1742c563b36a932e6 | /mmrotate/datasets/dota.py | f893bdb9062ee093b4d44285e2ddd75704fca1cf | [
"Apache-2.0"
] | permissive | ZJW700/MUS-CDB | b34cd18b4a55ade1067e04834ac7365eb7c2a74d | 6066d2064cc654bbd8690ab1fbf5fd4bdee249c1 | refs/heads/master | 2023-05-23T21:41:07.679963 | 2023-05-17T07:13:55 | 2023-05-17T07:13:55 | 573,043,634 | 9 | 2 | null | null | null | null | UTF-8 | Python | false | false | 14,865 | py | # Copyright (c) OpenMMLab. All rights reserved.
import glob
import os
import os.path as osp
import re
import tempfile
import time
import zipfile
from collections import defaultdict
from functools import partial
import mmcv
import numpy as np
import torch
from mmcv.ops import nms_rotated
from mmdet.datasets.custom impo... | [
"754136925@qq.com"
] | 754136925@qq.com |
663fd7bfc9ed17d43ea490e922bb177e6409a02a | 048354b7a25ea2bd5ad519101f945fb4a1cd0618 | /Classtagram/backend/classtagram/view/user.py | a4df11a405cdd1815d3ebb7a7974023109f4ea71 | [] | no_license | sjho/classtagram | bcb3f904edd8e834a4a22ead818fb807479b6a18 | 0a22a99017d9778d9fac3d6581c04ec520a9ce42 | refs/heads/master | 2023-05-11T07:23:44.068422 | 2019-06-20T00:17:34 | 2019-06-20T00:17:34 | 180,547,136 | 4 | 3 | null | 2023-04-30T21:01:20 | 2019-04-10T09:21:52 | JavaScript | UTF-8 | Python | false | false | 3,633 | py | from django.shortcuts import render
from rest_framework import status
from rest_framework.authtoken.models import Token
from rest_framework.response import Response
from classtagram.models import User, Course, Photo, Tag
from classtagram.serializers import UserSerializer, RegisterSerializer
from django.views.decorators... | [
"sjh2177@gmail.com"
] | sjh2177@gmail.com |
b69c7064129a5c117f22cd1587f8aee3325f0e34 | df4fe22c9b1c56d70125694cb377f44855d0d764 | /wordlistmaker.py | 8e2692b1ddbe717baccf2a894dc666c80395869f | [] | no_license | MrSw7G3R/wordlistmaker | 004c67fdf8f1f591fae574c42594e560707d4d63 | 891c6eeebe29ea2256fd489e47578d206ae7dd81 | refs/heads/master | 2020-09-28T05:55:35.495143 | 2016-08-28T14:42:57 | 2016-08-28T14:42:57 | 66,772,288 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,317 | py | #-*- coding: cp857 -*-
import time,os,sys,random,re,traceback
os.system("title MrSw7g3r Wordlist Maker")
reload(sys)
sys.setdefaultencoding('cp857')
MrSw7g3r = True
from itertools import permutations
wordlist = []
values = []
bilgiler = {}
renkler = ['\033[95m','\033[94m','\033[93m','\033[91m','\033[1m']
def... | [
"noreply@github.com"
] | noreply@github.com |
10beb2eace943fe6797f09a9b32580897e70e79a | e2ded65dacdbb251dba1d6d15193d1722f960ee4 | /oldmacdonald/macdonald.py | f6b7e67eef2e820358cf1026dd1952775fc7d599 | [] | no_license | ewilson/codeclubstarters | 87bfe3d861be7288bc1fc85d60d6e6c545f7a898 | 8818889d9207129c0c544a6c1206fbc347d57405 | refs/heads/master | 2016-09-08T20:51:16.477784 | 2014-10-28T21:05:57 | 2014-10-28T21:05:57 | 25,890,120 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 948 | py | def had_a_farm():
return 'Old MacDonald had a farm. E-I-E-I-O!'
def and_on_that_farm(animal):
article = choose_article(animal)
return 'And on that farm he had {0} {1}. E-I-E-I-O!'.format(article, animal)
def with_a(sound):
article = choose_article(sound)
with_a_ = 'With {0} {1}, {1} here, and {0... | [
"wilson.eric.n@gmail.com"
] | wilson.eric.n@gmail.com |
4a67d8771aca07434a51aa7be4bb84f2c069a433 | 34745a8d54fa7e3d9e4237415eb52e507508ad79 | /Python Fundamentals/Final exam/02_emoji_detector.py | 2561bef627873327e10a68ef7de9312ae81415d8 | [] | no_license | DilyanTsenkov/SoftUni-Software-Engineering | 50476af0dc88b267d72c56fa87eeb88d841164b2 | fe446e3a50a00bb2e48d71ab8f783e0a4a406094 | refs/heads/main | 2023-08-12T18:18:42.144210 | 2021-09-25T11:10:38 | 2021-09-25T11:10:38 | 317,235,419 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,134 | py | import re
def threshold(input_string):
c_threshold = 1
digit_regex = r"[0-9]"
digits = re.findall(digit_regex, input_string)
for digit in digits:
c_threshold *= int(digit)
return c_threshold
def emoji_checker(input_string, cool):
all_of_emojis = []
cool_of_emojis = ... | [
"noreply@github.com"
] | noreply@github.com |
53eb76cc3091e5e09ec6e1351a58da31dda2f052 | a2108e1d60534c9d99e7826084a42df19395bdfc | /python/18_aleatorios.py | c416097887cf7a58f9da16461cf4f58910e12bde | [] | no_license | Fran8/CursoLeonEoiPythonDjango | 3e1a738d417667ca97b697da0e65e47a9154accd | 0770a6d9168f62fb15aa4376c9b70988c991f9ae | refs/heads/master | 2021-08-31T04:43:33.922807 | 2017-12-20T11:54:28 | 2017-12-20T11:54:28 | 114,881,633 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 791 | py | """
generando numeros aleatorios
"""
import random
for n in range(10):
print('entero aleatorio:', random.randint(10,20))
# numeros aleatorios entre 0 y 1
for n in range(4):
print(random.random())
L = ['oscar', 'lucia', 'jaime', 'pepe', 'cris', 'yolanda', 'taimi']
# elemento aleatorio de una lista
for n in ... | [
"francisco.yaguez@gmail.com"
] | francisco.yaguez@gmail.com |
9f26e018ae25328256dfa983aa642dd60728fd96 | e80efd2e6cad1886843ac3803c23695f598d840e | /Framework/pages/adminPortalPage.py | e94e915666f2490ca130ac42f1f1f3bd6986d77b | [] | no_license | MYGCREATIONS/mhGuideProjectLocal | a64d028c3fd7f5fcbd47ed2e90ec42c76859d65c | 3a875a57a36aac7b16fd311185602146cb1477f9 | refs/heads/master | 2020-04-06T09:55:22.231407 | 2018-11-13T10:26:18 | 2018-11-13T10:26:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,180 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Jun 20 08:30:21 2018
@author: mdcayoglu
"""
from Framework.common.locators import AdminportalLocators
from features.terrain import *
class Adminportal:
def __init__(self):
self.aL = AdminportalLocators()
def verifyAddLabMenu(self):
explicitWaitVis... | [
"yousuf.gohar@molecularhealth.com"
] | yousuf.gohar@molecularhealth.com |
fe659f430372740598e895d452a82be9ad1bb7a4 | 505b43646dda8edb5e5e3be4b9ab05c53d8c5c9d | /scrapper/spiders/tuoitre.py | a02a0807321e6422b16690253dd1afc4e1b459f4 | [] | no_license | trungtrinh44/scrapper | e415a10bf493778339dc5a7c77faedfe1b26faf6 | 2a4ee968c425da98477a4d1f485f354c13c45c62 | refs/heads/master | 2022-01-08T01:06:20.630201 | 2019-05-09T09:21:46 | 2019-05-09T09:21:46 | 104,972,228 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,573 | py | import unicodedata
import scrapy
class TuoiTreSpider(scrapy.Spider):
name = "tuoitre"
path = {'Thoi su/Thoi su': 3, 'Thoi su/Xa hoi': 200003, 'Thoi su/Phong su': 89, 'Thoi su/Nghi': 87,
'The gioi/The gioi': 2, 'The gioi/Binh luan': 94, 'The gioi/Kieu bao': 312, 'The gioi/Muon mau': 442, 'The gi... | [
"trinhtrung96@gmail.com"
] | trinhtrung96@gmail.com |
f8cb4f1d453c8ae3d2bee953aa3ade01ac2a9141 | 42f28a3e77c8e252bbc041ce3ecad25e67b85ba8 | /python/practice_python/exer12.py | 52ee0c1519d3f1332e268be2644da5480176e186 | [] | no_license | linhnvfpt/homework | f7eae10670df0adc4038b2856be8215d89695010 | 31556dad588b77cafed577671cb56b46cc063406 | refs/heads/master | 2023-01-12T01:20:22.738126 | 2020-06-28T16:28:15 | 2020-06-28T16:28:15 | 60,790,466 | 0 | 0 | null | 2023-01-06T06:21:59 | 2016-06-09T16:41:20 | Python | UTF-8 | Python | false | false | 529 | py | # Write a program that takes a list of numbers ( for example, a = [5, 10, 15, 20, 25])
# and makes a new list of only the first and last elements of the given list.
# For practice, write this code inside a function.
# Concepts to practice
# Lists and properties of lists
# List comprehensions (maybe)
... | [
"linh_nv@ehicas.com.vn"
] | linh_nv@ehicas.com.vn |
fc74cec53971ab0d9ae559bb2a7635cfa18c76d3 | 34e4a711e3edeafc398f6aa7700ddd169e571d44 | /mysite/settings.py | 7032beb6aa40b961a079d6bc2961f2bf99e32a77 | [] | no_license | anaisperez/my-first-blog | da4094db3cdd2475a808bacd29cdad2c95c53f55 | d7bf3d53cc0a952eeba30a03259143217727a9ff | refs/heads/master | 2022-04-27T00:10:09.936859 | 2020-04-27T15:34:53 | 2020-04-27T15:34:53 | 259,375,135 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,208 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 2.2.12.
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
#... | [
"anaisperez@gmail.com"
] | anaisperez@gmail.com |
8bae3bf83adbd836e241582cdafb339dc0026803 | 95741702b1ea65aaf87027b650001c5a8b55de55 | /blog/migrations/0003_delete_comment.py | 20fd5c623649c1efc741cf9f6d589e2b886734e9 | [] | no_license | ahmuh1306/django_project | 94cecb65041b2f374704f896251eb1c006af6b77 | 7961a4bce505ae6bd21e0cb1a8ed03cafbc40984 | refs/heads/main | 2023-02-02T13:25:08.622695 | 2020-12-20T10:03:14 | 2020-12-20T10:03:14 | 318,462,504 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 282 | py | # Generated by Django 3.1.2 on 2020-10-29 09:56
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('blog', '0002_comment'),
]
operations = [
migrations.DeleteModel(
name='Comment',
),
]
| [
"info@ahmadmuhammad.co.za"
] | info@ahmadmuhammad.co.za |
b051ab10452e97184e6c5c25d45280afd3d9d969 | b28ad9503649e3d8cf5b533c91ef7fe8b229c3b6 | /zabbix/zabbix_auth.py | b742da70618f0afefe4165fa3aaf39fb1b609c49 | [] | no_license | tianyongkang/es | ceff36f7220d039598767648a8d1dbd44df571b3 | 86a9bd96b85ceadba3e73ef10ff2caad246ae17d | refs/heads/master | 2021-01-21T17:36:59.287035 | 2017-05-21T14:56:07 | 2017-05-21T14:56:07 | 91,964,261 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 754 | py | #!/usr/bin/python
#--*-- coding=utf8 --*--
import json
import urllib2
def zabbix_auth():
#url = 'http://10.10.68.11/zabbix/api_jsonrpc.php'
url = 'http://172.31.0.5/api_jsonrpc.php'
header = {"Content-Type": "application/json-rpc"}
value = {"jsonrpc":"2.0","method":"user.login","params": {"user": "Adm... | [
"tianyongkang@qtonecloud.cn"
] | tianyongkang@qtonecloud.cn |
7bc661d91c56c7e28245b5dcb909e1c98575d890 | d08aedc2c8c437c2354c2ff27fc5c428b2ea2e77 | /quiz_main.py | c038f11a77eafefc0fa67115ec9ffeb0b39ce40f | [] | no_license | gauravjaiswal97/Quiz_Application | 319a2ff4c5c6aeed4d1d692dd06bd78cc8a47b16 | 0be4df72c2eaec958bee58451df6b0254b6f319c | refs/heads/master | 2022-12-17T07:41:13.515219 | 2020-09-20T05:42:57 | 2020-09-20T05:42:57 | 297,010,103 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,608 | py | from tkinter import *
from tkinter import messagebox,ttk
import time
from dbhelper import DB
from quiz_app import m
class Quiz_gui:
def __init__(self):
self.db=DB()
self.m=Tk( )
self.m.title("quiz")
self.m.minsize(500, 500)
self.m.configure(bg='#0a3d62')
# C=Canvas(... | [
"gauravjaiswal4499@gmail.com"
] | gauravjaiswal4499@gmail.com |
3fca2e5fb0daf10fb1dfa277a7ae5ebde42e8964 | 38510f6cf958883e8bef02e5869f6c3fa9f75619 | /leetcode/394_decodeString.py | 933849db3575dcc4e16ea5905b03c433e8c7b902 | [] | no_license | kapitsa2811/leetcode-algos-python | c6f6521789eaab521db7e687bd3418f35bc5f6e1 | 19b040360b03c883c2e3ff6dd5c836ff40124137 | refs/heads/master | 2022-11-20T22:23:48.972259 | 2020-07-19T03:26:54 | 2020-07-19T03:26:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,172 | py | """
Given an encoded string, return its decoded string.
The encoding rule is: k[encoded_string], where the encoded_string inside the square brackets is being repeated exactly k times. Note that k is guaranteed to be a positive integer.
You may assume that the input string is always valid; No extra white spaces, square ... | [
"dpark068@gmail.com"
] | dpark068@gmail.com |
817ae7aaf5f6ab259c4e3c83fd9685f8337e1205 | 05f9045cdb134b1ddb265f55543d096937f6e34e | /Nutrin/Consulta/Services/Ocupado/createOcupado.py | d7a50aa3fa1bb0a3a102f43638996adf3e60352f | [] | no_license | EmersonCarbono/API-Nutrin | 941241ca6b48371d89717a5e33381793776937fb | b4e1ef1875cfc70e29441cf8696fb2c9a9ca60f5 | refs/heads/master | 2022-12-10T21:49:30.568277 | 2018-11-26T18:04:33 | 2018-11-26T18:04:33 | 136,726,462 | 1 | 2 | null | 2022-09-16T17:48:26 | 2018-06-09T13:40:10 | Python | UTF-8 | Python | false | false | 1,122 | py | from Nutrin import db
from Nutrin.Consulta.Services.Ocupado.readOcupado import readOcupadoNoPeriodo
from Nutrin.Consulta.Model.Ocupado import Ocupado
def createOcupado(periodo_id,hI,hF):
#print(readOcupadoNoPeriodo(periodo_id))
status, dado = readOcupadoNoPeriodo(periodo_id)
#print('aquiiiiii --- {} {}'.f... | [
"gabiconde@users.noreply.github.com"
] | gabiconde@users.noreply.github.com |
0ca5a72de3b3dc06796c0fa1adff4f3bd021f9dc | 0b3bfe36a69a09cc30a8e7ff4880cdc48d2474ca | /lpthw/ex15.py | 282335c9111fc7d2af9599360c81409611e629d2 | [
"MIT"
] | permissive | GoudaOnBeamPro/learning | 765af1e80d7a275021bb7838cbd0d58a628955bd | 1d1767ea78a8f9f72275b18147d47bfc44a1696e | refs/heads/master | 2021-05-31T22:47:05.774325 | 2016-06-26T20:04:29 | 2016-06-26T20:04:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 891 | py | # This get s the argv function thing from the sys module
from sys import argv
# This unpacks argv into two variables
script, filename = argv
# This creates a variable called txt and the file name from argv is inserted
# The vriable is now a file object.
txt = open(filename)
# this orints the filename unpacked from a... | [
"jaredm@openmailbox.org"
] | jaredm@openmailbox.org |
f9c2d367eacb2c5165444c10a3e65cdace2510d4 | bb0f07404380f0d9bb9d6c8d4537c9c46ec62ad5 | /cross_validation/TrialsRecorder.py | 8a900714ea285c9ee87541a98ab631ac9b33dcc8 | [] | no_license | abell25/EnsembleMachine | 846c4b0e958df097807b2a23783a7f3197387bda | 669ed534133106d625bd0e700315713efe314dcd | refs/heads/master | 2021-01-10T14:44:54.199560 | 2016-01-26T08:06:06 | 2016-01-26T08:06:06 | 44,482,012 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,875 | py | from pymongo import MongoClient
from bson.binary import Binary
import pickle
class TrialsRecorder:
def __init__(self, dataset_name, host="localhost", port=27017):
self.client = MongoClient(host, port)
self.db_name = "Trials"
self.dataset_name = dataset_name
if not dataset_name:
... | [
"anthbell@ebay.com"
] | anthbell@ebay.com |
7914d464a0555795ee71c006de4f327cf52c8442 | 1e648983311c93a14b20516bd7acaf183ed12b10 | /Bioinformatics Stronghold/Complementing_a_Strand_of_DNA.py | b6bff42215665245ce3c28e6d6b54e81776b51a2 | [] | no_license | biomathcode/Rosalind_solutions | 5279b852b15e634dea57822ce12d63b5c3cd6715 | c84bbd570b22d8de4d29d417c99d2a4b96170453 | refs/heads/master | 2023-02-26T22:07:12.119786 | 2021-01-25T11:54:45 | 2021-01-25T11:54:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 402 | py | """FINDIND THE REVERSE COMPLEMENT"""
## AAAACCCGGT
## ACCGGGTTTT
s = input("Type the DNA sequence here")
complement = s.translate(str.maketrans({'A': 'T', 'T':'A', 'C': 'G', 'G' : 'C'}))
def reverse(string):
string = string[::-1]
return string
reverse_complement = reverse(complement)
print(reverse_compleme... | [
"sharma.pratik2016@gmail.com"
] | sharma.pratik2016@gmail.com |
ea8b745d92f8a3f2fdd060e2fe99c294e95f0a11 | 79082d4a89215de4b900595dbcc48811604e8e83 | /RNN_Stopping_Grid/test2.py | 1373dd29e0bd758734f30140e4a6af24bec2c17e | [] | no_license | Mostafizor/Bioprocess-Simulation-using-Machine-Learning | df0078803e27c76b6345e433f2f8f33e408bb08c | fcc8f5656c125737f6d1293f5ae42557ab53060c | refs/heads/master | 2022-12-20T14:09:07.565532 | 2020-09-06T18:55:57 | 2020-09-06T18:55:57 | 238,298,245 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,259 | py | import torch
import numpy as np
import pandas as pd
from torch.autograd import Variable
def test(test_inputs, test_labels, net):
net.eval()
test_X = Variable(torch.Tensor(test_inputs))
test_y = Variable(torch.Tensor(test_labels))
hidden = net.init_hidden(test_X)
with torch.no_grad():
net_... | [
"mostafizor1997@gmail.com"
] | mostafizor1997@gmail.com |
29403ba36aaf82ac2df41c8cc8ef663839da750f | a8066523f886ac3aad396fa2b2c8636c606d7b0d | /cozmo_taste_game/plate/colorful_plate.py | 2b90c45d22ce5b6f8ca6758db4464315761be247 | [] | no_license | scalisesamuel/cozmo_group_project_software_engineering | 7c77976e662c229c2a724d61d40a7a5390ebd4b3 | 95b1e69fe9aa7f33d05403737da9bf44a6e4013f | refs/heads/master | 2020-08-02T14:42:18.220880 | 2019-09-27T20:10:56 | 2019-09-27T20:10:56 | 211,393,531 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,527 | py | from .plate import Plate
from cozmo_taste_game import FoodProp
from typing import List
class ColorfulPlate(Plate):
"""Colorful plate class: the goal is to fill the plate with colorful foods."""
def __init__(self):
super().__init__()
self.goal_num_colors = 4
def add_food(self, f... | [
"noreply@github.com"
] | noreply@github.com |
496484889ad0aab3a5bb6ae3eb25a685ddb7a73a | e256c8adec64e0423e9f1e77f09e2b32623af433 | /socien_api_server/route/__m_equip/parklist.py | 850e2042cb7f52be1719a7e0e9ea5be58d7eb51e | [] | no_license | Socien/GreenGym_Admin | edce3a9e80631b00257b0ffb9b96d7635d547bdd | 8b478439bdb12c973b9d9085cdd17be92d475fd3 | refs/heads/master | 2023-05-14T22:06:53.641295 | 2021-06-05T21:05:09 | 2021-06-05T21:05:09 | 371,674,992 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,142 | py | #공원list
from flask_restx import Resource
from ._m_equip import Mequip
import app
from sqlalchemy import text
@Mequip.route('/parklist')
class ParkList(Resource):
@Mequip.response(200, 'Success')
@Mequip.response(500, 'Internal Server Error')
def get(self):
sql = 'SELE... | [
"kyh970211@ajou.ac.kr"
] | kyh970211@ajou.ac.kr |
5174a44af8c926802861953b0b1363023e845e9b | 122957cf3213ffc8d8d04a9e75d3d634c0990d06 | /conduit/apps/authentication/models.py | 69440feb0e84ce5b7be71da0b7b9d5edae18de20 | [] | no_license | DavidMaximaWang/djangoAPIProject | 8fd4917e54e4850ef5a51d7f38b33bab51273515 | 7a03a473db27d6ccab204679e1d84791da750277 | refs/heads/master | 2023-01-09T03:53:39.614231 | 2019-10-24T21:00:59 | 2019-10-24T21:00:59 | 216,703,907 | 0 | 0 | null | 2023-01-07T10:56:35 | 2019-10-22T02:11:41 | Python | UTF-8 | Python | false | false | 4,852 | py | import jwt
from datetime import datetime, timedelta
from django.conf import settings
from django.contrib.auth.models import (
AbstractBaseUser, BaseUserManager, PermissionsMixin
)
from django.db import models
from conduit.apps.core.models import TimestampedModel
class UserManager(BaseUserManager):
"""
Dj... | [
"qunlingwang@gmail.com"
] | qunlingwang@gmail.com |
c8a8f30335dc23ab837f1ee123fbde87fd5009b9 | 49900ba50d4f6c979d6d433577828c8007973125 | /data_utils/ner.py | 597d37cdb973d60f1d05f4fd35b70b226eb1faac | [] | no_license | weizhenzhao/cs224d_nlp_problem_set2 | 9661414965a58b97113f828a47932c5b9d8411df | 302f0e53cdd88147a5c1727d06f0be18270d8a2a | refs/heads/master | 2021-10-22T18:22:31.063591 | 2019-03-12T14:03:36 | 2019-03-12T14:03:36 | 104,356,708 | 5 | 2 | null | null | null | null | UTF-8 | Python | false | false | 591 | py | ##
# Utility functions for NER assignment
# Assigment 2, part 1 for CS224D
##
from data_utils.utils import invert_dict
from numpy import *
def load_wv(vocabfile, wvfile):
wv = loadtxt(wvfile, dtype=float)
with open(vocabfile) as fd:
words = [line.strip() for line in fd]
num_to_word = dict(enumerat... | [
"958904120@qq.com"
] | 958904120@qq.com |
004c698ad82166a4cfbe72fc87221ff0316da9c8 | e9a527123db5290a15ecb092b254ff447390379e | /modules/simclr.py | eb9e9cbcb0e677814083ba22154abb34c0a9f47a | [
"MIT"
] | permissive | yhliu918/simclr-noisy-label | b52d945fa6fb2c24515c5179dcdcb892d702afaf | c80d3d061f1d3de3b1692fb40288d36dbae26629 | refs/heads/master | 2022-11-06T01:10:08.605528 | 2020-06-15T15:33:31 | 2020-06-15T15:33:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,856 | py | import torch.nn as nn
import torchvision
import torch
import torch.nn.init as init
import torch.nn.functional as F
import torch.optim as optim
class Identity(nn.Module):
def __init__(self):
super(Identity, self).__init__()
def forward(self, x):
return x
import math
def call_bn(bn, x):
... | [
"1700017801@pku.edu.cn"
] | 1700017801@pku.edu.cn |
5f147125d008245508dab79793ef5a2506d65e95 | 7a43e8b026c4545dab1a6e2992e8e195d4431ed7 | /demos/D009_tuple.py | a28420c8d6d5f43b4a1c71356680d43149623ee8 | [] | no_license | Alan6584/PythonLearn | 579b1536ff2f3fb880ad3251b902f9f4176e7978 | c889d60104355d114ec86972c887b3e9e9548367 | refs/heads/master | 2021-05-07T04:17:57.093611 | 2018-11-29T13:45:25 | 2018-11-29T13:45:25 | 111,259,903 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 649 | py | #!/usr/bin/python
# -*- coding:UTF-8 -*-
tup = ('a', 'b', 'c')
print tup
print 'tup[0] =', tup[0]
# tup[1] = 'bb' # 非法操作,元组的元素不能修改,object does not support item assignment
print 'tup[1:3] =',tup[1:3]
print 'tup[1:] =',tup[1:]
print 'len(tup) =',len(tup)
print 'max(tup) =',max(tup)
print 'min(tup) =',min(tup)
list ... | [
"alanwang6584@gmail.com"
] | alanwang6584@gmail.com |
d9d8d108b0e4724e37827247112eb08e0ee40bc7 | 071ab5fa2060a7da6f0068b04ff7aae8bb4c3e3e | /multiagent/logger.py | f84f217a93a68dd4ea39bc075b60a3b314e0d31c | [] | no_license | YZNYEE/TrafficLights_control_pytorch_rl | e4047951b7aaa4b36326db37bb08b18ebd063214 | 000029139e04c5d974bc665248b6bff91877cae5 | refs/heads/master | 2022-07-26T03:08:15.464356 | 2018-05-17T09:06:41 | 2018-05-17T09:06:41 | 133,244,981 | 8 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,054 | py | import os
import logging
class MyLogger(logging.Logger):
def __init__(self, filename='log/test.log'):
# super(MyLogger, self).__init__(filename)
logging.Logger.__init__(self, filename)
# 设置日志格式
fmtHandler = logging.Formatter('%(asctime)s [%(filename)s:%(lineno)s][... | [
"1447367196@qq.com"
] | 1447367196@qq.com |
a1f0028d1d83290eb414b6e2ffe6780027deb006 | beeb3163027cf0655c5a171e7232d26429e55d0d | /dataloader/DataloaderTemplate.py | bac27b33f0b3b7fe2cc5050dfd0bfb1679b0432d | [
"MIT"
] | permissive | DanielMontecino/Embeddings | 05642f99534add1ee4109cd1eea7c0d2a7ad0d36 | d0c187cd5f7b3cabb747baaefae50f0450e87940 | refs/heads/master | 2020-04-04T18:39:53.090540 | 2019-07-26T08:05:37 | 2019-07-26T08:05:37 | 156,172,955 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,023 | py | from random import shuffle
import numpy as np
from keras.preprocessing.image import ImageDataGenerator
class DataloaderTemplate(object):
def __init__(self, ims_per_id=4, ids_per_batch=32,
target_image_size=(224, 224), data_gen_args={}, n_out=1, **kwards):
self.ims_per_id = ims_per_id
... | [
"daniel.montecino@ug.uchile.cl"
] | daniel.montecino@ug.uchile.cl |
10968627eda9b64f7fffc189cfbce24d977f0b4b | 957ca83aaef14b129a7890c58377e1cc5374c4bb | /rpi/ECG_server.py | b0a00a864b749faf30aaae4b0def55b79cebc0a4 | [] | no_license | FrancoRosa/mj-medic | f9f5c32b93fd5953a443f1fc93415ea7330fed2a | c2d090f68ddfe85f6d6115abafadaf1da5278385 | refs/heads/main | 2023-03-11T06:14:22.167800 | 2021-02-25T14:44:00 | 2021-02-25T14:44:00 | 341,766,376 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 475 | py | from flask import request, jsonify, Flask
from flask_cors import CORS, cross_origin
from random import random
import json
app = Flask(__name__)
CORS(app)
app.config["DEBUG"] = True
@app.route('/', methods=['GET'])
def home():
return "<h1>Server & Redis Works!</h1>\n"
@app.route('/api/v1', methods=['GET'])
def api_... | [
"km115.franco@gmail.com"
] | km115.franco@gmail.com |
e7b9297c30fdaccf248a09c5f6eabef8e640017d | 8c705b82e35f992c3d54d939f8ab4207473c56a4 | /03_BFS_DFS/02_virus/virus.py | 453335cced0514fc223d52665fe4567b314cc468 | [
"MIT"
] | permissive | ki-yungkim/AlgorithmStudy | 5a2bb7ec534906a2d7daf5fd8d8966a1e279f75e | 14798d37166c8803d3bf3021e79df920a15eae10 | refs/heads/main | 2023-08-25T03:09:52.449344 | 2021-10-20T11:52:02 | 2021-10-20T11:52:02 | 375,719,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 711 | py | graph = {}
computer = int(input())
edge = int(input())
for i in range(edge):
edge_number = input().split(' ')
c1, c2 = map(int, edge_number)
if c1 not in graph:
graph[c1] = [c2]
elif c2 not in graph[c1]:
graph[c1].append(c2)
if c2 not in graph:
graph[c2] = [c1]
eli... | [
"kiyungdev@gmail.com"
] | kiyungdev@gmail.com |
eafff43e3b8925cdecb6e773eecaba4b7b8d6460 | ce7ccb30af3f3f97d4532c12e67b3d034591502a | /Python-peng/window.py | c50e959a73059fa267a6f346c3e7e1bb8cfdffdd | [] | no_license | imppppp7/time | 0292605e6d71796368d207b4e1da78e022677ced | a8d4f5e31320dd137614be73ff31bf7a80a44f50 | refs/heads/master | 2020-05-09T12:50:35.844250 | 2019-06-25T07:05:38 | 2019-06-25T07:05:38 | 181,125,266 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,509 | py | import sys
from PyQt5.QtWidgets import QApplication, QDialog
from PyQt5 import QtGui
from laserspeckle_process.camera import Ui_Form
import cv2
import numpy as np
from laserspeckle_process import mvsdk
def main_loop():
# 枚举相机
DevList = mvsdk.CameraEnumerateDevice()
nDev = len(DevList)
if nDev < 1:
... | [
"49544578+imppppp7@users.noreply.github.com"
] | 49544578+imppppp7@users.noreply.github.com |
0f2d6c77048b25d311a0bc2823df8cb79c5985fb | 4135df2cd68ea5a17ff0e4f57537156942e4139e | /main.py | c231d25d82f4c649fe490cb321e348bac07eb9bd | [] | no_license | DaniloMarques1/Avl-tree | 5dc031363cd80dd53ddce4031af5edf0c405f030 | 5f643fbecc491d0b258dc1804ba2cca5bf931b1a | refs/heads/master | 2020-06-05T01:12:46.721952 | 2019-06-17T18:08:23 | 2019-06-17T18:08:23 | 192,262,310 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,200 | py | from Musica import Musica
from Node import Node
from musica_mock import create_mock
def menu():
print("="*30)
print("1- Inserir uma música")
print("2- Procurar uma música pelo nome")
print("3- Procurar todas as músicas de um determinado ano")
print("4- Remover uma música pelo nome")
print("5- L... | [
"danilomarques20@hotmail.com"
] | danilomarques20@hotmail.com |
e7e9fa6434a16225e474221aa384d53273c495e4 | 76c28accf0b89aa9f9632e46c4382ed83848fd61 | /index_serve/IndexSearcherTest.py | ec38525bf93efe92ad08d17e6738893ec4ad1856 | [] | no_license | xiaotianwu/py_search | 9d4d86f63ca687e5e0e9a2b0a1980aada248e9d8 | 2c20a216117c033898940179ff626e20e32ffcb1 | refs/heads/master | 2020-05-19T16:32:57.190049 | 2014-03-23T07:58:37 | 2014-03-23T07:58:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,682 | py | #!/usr/bin/python
import os
import random
import time
import unittest
from common.Common import GenRandomIndex
from common.simple_index.SimpleIndex import *
from IndexConfig import IndexHandlerFactory
from IndexManager import IndexManager
from IndexSearcher import IndexSearcher
class IndexSearcherTest(unittest.TestC... | [
"wxt1984@gmail.com"
] | wxt1984@gmail.com |
1291e6dd7c3df9eebf0732a33965f2c78ddd59bc | dce7f7b5f7e680d3c02c714a9546bc5c2bd01750 | /1color_tracking.py | c12501ea96d82d4800b264eaa26c22852ce56dbb | [] | no_license | Vazma/Arm-color | 206a0f166014713e42a0e4a0266d3ea367cb9ff0 | 5c9b8561da343d6aeb34b4293d07ffd6223752f4 | refs/heads/master | 2023-06-19T23:44:27.175634 | 2019-05-06T19:50:33 | 2019-05-06T19:50:33 | 388,264,300 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,717 | py | import cv2
import numpy as np
# Detectar colores
greenLowerBound = np.array([33, 80, 40])
greenUpperBound = np.array([102, 255, 255])
orangeLowerBound = np.array([18, 40, 90])
orangeUpperBound = np.array([27, 255, 255])
yellowLowerBound = np.array([20, 100, 100])
yellowUpperBound = np.array([30, 255, 255])
redLowerBou... | [
"a01208050@itesm.mx"
] | a01208050@itesm.mx |
79a015db8806cac557a7226e13680d63327c5194 | 2208b518d08d923a98dc17da96080d824939507a | /quiz1/wsgi.py | 118eeeceb12b0401064d9a32c4d77395fa55692c | [] | no_license | gargpriyanka791/quiz-application | 56d27aa96f91b326731b5277b2c1de050e122863 | 1eb1b8b11fec39a4a00bb7514f016999c2dfe6f3 | refs/heads/main | 2023-03-04T04:53:01.825759 | 2021-02-14T18:04:57 | 2021-02-14T18:04:57 | 334,464,120 | 0 | 0 | null | 2021-02-14T18:04:58 | 2021-01-30T16:54:01 | Python | UTF-8 | Python | false | false | 387 | py | """
WSGI config for quiz1 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.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTING... | [
"garg.ankit59@gmail.com"
] | garg.ankit59@gmail.com |
e6342b3777cd782c8409cf8f33beab754f0f2f7a | 743e5872200168ee7f641337bc123a9a80638592 | /python_hi.py | cb90a120484a56f07652d0b297b9f0be205abd91 | [] | no_license | el-musso/Bioinfo_Helloworlds | dac5159fbc2a6403c27209a65acbc7d4fe13f6d8 | 0b280b2e220682a6478e02e5f7b8a9e9b52edded | refs/heads/master | 2021-01-16T03:42:00.752394 | 2020-02-25T10:06:40 | 2020-02-25T10:06:40 | 242,965,899 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 144 | py | #!/usr/bin/python3
import random
print("Hello world!")
print("Hello from the master branch!")
if random.random() >= 0.5:
print("Califano!")
| [
"bio1926@binp17.mbfys.lu.se"
] | bio1926@binp17.mbfys.lu.se |
b64762dcc66d6ece3f265efcab7e3272e0b81ce3 | 233e3fdaf1ffe523c84c3e258c50f472cac9219e | /replay/prob1/new_binary.py | 24cb20ef00df3c38265325b23df2a8bcc8023b8d | [] | no_license | loneworld/defcon-2017-tools | 7f821f235fc10615d859eb5ac51d2afc930bfbdf | 7adb9377d298d142a1e132d064ce4aed1973f934 | refs/heads/master | 2020-04-15T06:54:50.349634 | 2017-08-03T12:40:13 | 2017-08-03T12:40:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 713 | py | import sys,os
from shutil import move,copyfile
from hashlib import md5
from utils import check
bin_name= sys.argv[1]
files = os.listdir('bin/')
version = len(files)+1
filemd5 = md5(open(bin_name).read()).hexdigest()
name = str(version)+'_'+filemd5
copyfile(bin_name,'bin/'+name)
dirname = 'json/'+str(version)
os.mkd... | [
"b00507010@ntu.edu.tw"
] | b00507010@ntu.edu.tw |
f85c74259d441009082badd38b4c9f8c39a142de | 6e366c25bfab97691589d85512e5b7b515f5bb32 | /codingDOJO_python_stack/django/django_intro/test_graph/test_graph/urls.py | 7649af78415b22718604cb733784e566258c1735 | [] | no_license | Sota1218/codingDojo-in-Seattle | 09bcae69ffec934b6498ed378c7c6922728a11b5 | c1f5d9b8e0d8a12607784786d6351fed9e98b377 | refs/heads/master | 2022-12-04T17:13:39.298423 | 2020-08-06T09:41:02 | 2020-08-06T09:41:02 | 285,524,490 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 765 | py | """test_graph 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-ba... | [
"sotayoshihiro@USERnoMacBook-Air.local"
] | sotayoshihiro@USERnoMacBook-Air.local |
c6b0fff397968dd94e5107fba24304c98ee0d322 | e6cbf405993b752e8a1c862e3e792fa889ebb2b4 | /menuwatch/apps/menus/migrations/0009_auto__del_field_food_myhash.py | 88f0836ac2bd63aff870d819147ba27a9e31fc54 | [] | no_license | bjacobel/menuwatch | 9b4ed009412663bb506f66f28869e2f3575e76c4 | 6cc66de190b69c24d70b27fecfbce4fa173d2359 | refs/heads/master | 2020-04-04T15:27:46.740250 | 2014-07-17T20:58:15 | 2014-07-17T20:58:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,883 | py | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Deleting field 'Food.myhash'
db.delete_column(u'menus_food', 'myhash')
def backwards(self, orm):
... | [
"bjacobel@gmail.com"
] | bjacobel@gmail.com |
64e54360a08ce6dbbb24c1460fac84b3c9895da4 | 90da0f9a0694da690da51185e39f23ea7e884156 | /config/CONST.py | 59b079aa7e0eb0d4f3626e7f7d6463d6f0141b54 | [] | no_license | vchlum/shnopp | ea64c2f04a8a88d3a41028f94c13a2ecfc4880ae | 50b227679f2c1a713fee8b262a5fa2f3d0bf8b6b | refs/heads/master | 2021-07-02T12:27:19.415965 | 2019-05-31T11:57:24 | 2019-05-31T11:57:24 | 59,756,445 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 388 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
HOSTNAME = os.uname()[1]
APP_NAME = "SmartHomeNotOnlyPiPowered"
APP_SHORT_NAME = "shnopp"
DESCRIPTION = ""
AUTHORS = ["Václav Chlumský <chlumskyvaclav@gmail.com>"]
VERSION = "0.55~alfa"
COPYRIGHT = "(C) 2016 Václav Chlumský"
DELIMITER = "::"
# neni finalni, ... | [
"chlumskyvaclav@gmail.com"
] | chlumskyvaclav@gmail.com |
ca29d0db6649c0311170cc6c4b70e63bb1d627b5 | e7c70a02e61f6d4a97c5933f3550bca22afa6acb | /ros_ws/devel/lib/python2.7/dist-packages/final_lab/srv/_path.py | 5f36d5349329d6f7860095b20230cfa7a98e99cc | [] | no_license | amitf82/Final_Proj_Mobile_Robotics | 14cfe7b182df1294a873283c91688c8ca9526fee | 435a6c1562df030fc462fe1b0a84f968a27a2b85 | refs/heads/master | 2021-01-20T03:22:51.387095 | 2017-04-30T08:25:33 | 2017-04-30T08:25:33 | 89,532,221 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,227 | py | # This Python file uses the following encoding: utf-8
"""autogenerated by genpy from final_lab/pathRequest.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
import geometry_msgs.msg
import nav_msgs.msg
import std_msgs.msg
class pathRequest(genpy.Messag... | [
"adf38@case.edu"
] | adf38@case.edu |
b0e23344c3cfc477b0aa8a229c58a16ef4401be6 | 2030f8501a1c93c00b1e509d40bfa967f7aa6a6b | /nn/gctc.py | 24b71a8a43f1de5c22d7e574ab765ed113f66414 | [
"BSD-3-Clause"
] | permissive | tangkk/tangkk-mirex-ace | 7acfbd425fd9fae479d07132b920bdebb7b186aa | c93259eac0309235dc3c6461dbcc07a78067e351 | refs/heads/master | 2021-07-04T22:18:32.791585 | 2021-06-02T18:12:51 | 2021-06-02T18:12:51 | 34,000,979 | 19 | 3 | null | null | null | null | UTF-8 | Python | false | false | 28,994 | py | '''
A chord classifier based on unidirectional CTC - with dynamic programming
'''
from collections import OrderedDict
import cPickle as pkl
import sys
import time
import numpy
import theano
from theano import config
import theano.tensor as T
from theano.sandbox.rng_mrg import MRG_RandomStreams as RandomStreams
from s... | [
"dengjunqi0632311@gmail.com"
] | dengjunqi0632311@gmail.com |
da4a51fe5418cf701794690ff06118bece17cfc2 | 488c5cd536987d516e167d4050145d7f8da10d12 | /python/CousinsinBinaryTree.py | 6e98a722f226291d0568f8e9ba45b069a09c11b7 | [] | no_license | jhadheeraj1986/leetCodeMay2020 | 0cc90b96df8cbf5ee4e0275278d0f1cafaa7f677 | ba1adb1eae345174e43b08dc08a1db83005ef514 | refs/heads/master | 2022-06-20T14:39:59.699755 | 2020-05-12T18:11:08 | 2020-05-12T18:11:08 | 260,703,721 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,539 | py | '''
In a binary tree, the root node is at depth 0, and children of each depth k node are at depth k+1.
Two nodes of a binary tree are cousins if they have the same depth, but have different parents.
We are given the root of a binary tree with unique values, and the values x and y of two different nodes in the tree.
... | [
"noreply@github.com"
] | noreply@github.com |
09a6ae1c85c670fc71a8fd2625c77c98c7f81c37 | d79e377a21000aa94959e5f40054e1e935c46a8c | /pong_player.py | f6352a4db3a5ce91fc523044f172f2297cba871d | [] | no_license | daMichaelB/kivy-demo | a20a74795379495a0c65eef14bb9f391f184bb6e | 2eb2f1eb07192de7628022101add5ccc5e451222 | refs/heads/master | 2020-08-02T09:21:35.968316 | 2019-09-27T11:49:46 | 2019-09-27T11:49:46 | 211,301,163 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 472 | py | from kivy.uix.widget import Widget
from kivy.properties import NumericProperty
from kivy.vector import Vector
class PongPlayer(Widget):
score = NumericProperty(0)
def bounce_ball(self, ball):
if self.collide_widget(ball):
vx, vy = ball.velocity
offset = (ball.center_y - self.c... | [
"michael.boesl@t-online.de"
] | michael.boesl@t-online.de |
2ee4b361f7e0f5c97c4211a6a2645488e1d6f0b5 | 9fc3caf6774f4e8266ff78e11edb4589953cd056 | /eshopdev/eshop/eshopadmin/apps.py | 6727a3b495705d68a03e6dd1f8e196114105475b | [] | no_license | bopopescu/ecom-django | 6995cb7fca1609a12faa87bc3c7717506f4e0b7f | be98b9848e68ceed685f2a65bae34316a059c5e0 | refs/heads/master | 2022-11-19T08:20:24.874817 | 2020-02-28T19:00:12 | 2020-02-28T19:00:12 | 281,838,999 | 0 | 0 | null | 2020-07-23T03:17:49 | 2020-07-23T03:17:48 | null | UTF-8 | Python | false | false | 95 | py | from django.apps import AppConfig
class EshopadminConfig(AppConfig):
name = 'eshopadmin'
| [
"tasnim.hosen.ewu@gmail.com"
] | tasnim.hosen.ewu@gmail.com |
e998797bde8ca831a7f45d8d2ef31f968a7790ae | 05c1c11bbeb5be7ecaa837eda9e907c9128622d2 | /webempresarial/core/urls.py | 222e856ba0c54dc0e01aca08a5e4f5f844963d4d | [] | no_license | javierescolar/web-empresa | 2f9dcc0c98eb89bf550c7bc5d3bf7e4319f4ca26 | bdc06ef038218a75da948022d8629dc619ed218f | refs/heads/master | 2020-07-04T03:36:52.866103 | 2019-08-13T12:47:04 | 2019-08-13T12:47:04 | 202,141,723 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 194 | py | from django.urls import path
from . import views
urlpatterns = [
path('',views.home,name='home'),
path('about/',views.about,name='about'),
path('store/',views.store,name='store'),
] | [
"javierescolar10@gmail.com"
] | javierescolar10@gmail.com |
7722fb46c2c820d5c4afe95d9aea8e35da673d71 | dc399f13d79b4fe80734b4ff9a47e6daac046efb | /ControlFlow/IterItems().py | 98e735d55cc6fdd2a1e4737b4d7cea9a8af47272 | [] | no_license | brrbaral/pythonbasic | 22531a75c8fc5e36dd7e9c1dfae31c5809365206 | dc8fbddc7d3671ac14ee5f53db32f2d210f71de0 | refs/heads/master | 2020-07-11T03:12:54.691238 | 2019-08-26T08:41:51 | 2019-08-26T08:41:51 | 204,433,096 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 115 | py | d1={"Bishow":"Pokhara","shree":"hetauda"}
print("The key-value pait is :")
for i,j in d1.items():
print(i,j) | [
"brr.baral@gmail.com"
] | brr.baral@gmail.com |
d5f376ce543ef920ad3197131b8bd756a745399c | 9130bdbd90b7a70ac4ae491ddd0d6564c1c733e0 | /venv/lib/python3.8/site-packages/future/moves/xmlrpc/server.py | ec5409cb2504d3f8fd228a1760fa053fa5767669 | [] | no_license | baruwaa12/Projects | 6ca92561fb440c63eb48c9d1114b3fc8fa43f593 | 0d9a7b833f24729095308332b28c1cde63e9414d | refs/heads/main | 2022-10-21T14:13:47.551218 | 2022-10-09T11:03:49 | 2022-10-09T11:03:49 | 160,078,601 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 96 | py | /home/runner/.cache/pip/pool/11/20/d7/7695204cac9e1660834a7266069f3338d8c9925b1124ebf2e0eb5a00b7 | [
"45532744+baruwaa12@users.noreply.github.com"
] | 45532744+baruwaa12@users.noreply.github.com |
f225babc8403680d28288ebf49150e7c4d9c2893 | f8da830331428a8e1bbeadf23345f79f1750bd98 | /msgraph-cli-extensions/v1_0/usersactions_v1_0/azext_usersactions_v1_0/vendored_sdks/usersactions/operations/_user_onenote_notebook_section_group_section_page_parent_notebook_operations.py | 9cbe41f6e394adb19707b01f0c335867f7b93f53 | [
"MIT"
] | permissive | ezkemboi/msgraph-cli | e023e1b7589461a738e42cbad691d9a0216b0779 | 2ceeb27acabf7cfa219c8a20238d8c7411b9e782 | refs/heads/main | 2023-02-12T13:45:03.402672 | 2021-01-07T11:33:54 | 2021-01-07T11:33:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,768 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"japhethobalak@gmail.com"
] | japhethobalak@gmail.com |
ddbcf1cb316324fb3fa764443ecdc62a136db604 | fa690c6abf35b956255632f08b204cf4f673c9d0 | /OCRDemo/01-tesseract_ocr.py | 53ca5871e21e54c3df8fa5962b8e11775d39ae78 | [] | no_license | whatkind/web-crawler-study | e529c72cfbfccef1dbe97c11c737956f75cf7b65 | 132517558188a32e92f0eaa8873a57221eb1c457 | refs/heads/master | 2023-03-05T10:14:54.016167 | 2021-02-18T15:09:25 | 2021-02-18T15:09:25 | 337,470,645 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 123 | py | import pytesseract
from PIL import Image
img = Image.open('img.png')
code = pytesseract.image_to_string(img)
print(code)
| [
"15681215882@163.com"
] | 15681215882@163.com |
7b616218a1ea0c0674bd50683aa208dfa0ec2191 | 91a276499d81615ad703bd48407681694918cb5d | /students/AndrewMiotke/session06/test_mailroom.py | 981ac5f901a30e2b2fca8ac1d990f7103eb77713 | [] | no_license | colephalen/SP_2019_210A_classroom | 2ed68fea0ffe322d2f55d4ebc5bdde6bf17ee842 | a17145bdcd235f9853f5f0c2feca20cf49df7f30 | refs/heads/master | 2020-05-07T12:08:25.854445 | 2019-06-15T03:38:45 | 2019-06-15T03:38:45 | 180,490,097 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 667 | py | """Test for mailroom"""
import pytest
import mailroom
def test_donor_list():
database = mailroom.donors_list
assert "Rufio" in database
assert "Gus" in database
assert "Spike" not in database
def test_get_donor_not():
donor = mailroom.get_donor("Lemon")
assert donor is None
def test_send... | [
"andrewmiotke@gmail.com"
] | andrewmiotke@gmail.com |
0b2a72f11c0480ad7dcc642060b3be4e2cd32c42 | ae62c303e86a482928f2d4a5fce825489fca509d | /BeesEtAl/Base_Sorter.py | a7b983d10234eb9dc8a9b41c99bc1892aa2b5f01 | [
"MIT"
] | permissive | FJFranklin/BeesEtAl | 8d025205316041920d3e129f1ff7f7e5625ffe3b | 260d4ac4a3f638a423e8004ef3ef5d60385a75bd | refs/heads/master | 2022-12-15T16:06:42.840333 | 2022-12-05T09:59:36 | 2022-12-05T09:59:36 | 197,208,735 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,515 | py | import csv
import numpy as np
class Base_Sorter(object):
def __init__(self, Ndim, bPareto=False):
self.Ndim = Ndim
self.ibest = None # index of best record
self.record = None
self.Nrecord = 0
self.Ncost = 0
self.bMESO = False
self.bPareto = bParet... | [
"fjf@alinameridon.com"
] | fjf@alinameridon.com |
97766fdf195a5859bff784f39f2a91ed519b88aa | 22761810521e125a5f3aa1d020d9261ce79551f0 | /Binary_search.py | 56d84e1b9b0d6b6db6b7013be0890bbb44516b7e | [] | no_license | BANSAL-NISHU/JOCP | bfe45fdc74cee62397b3c2eceb65e2153cbc74a4 | da095c9bf3c003fbccceea7571469036aaa8781a | refs/heads/main | 2023-08-14T17:07:22.436317 | 2021-09-26T10:38:14 | 2021-09-26T10:38:14 | 337,938,801 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 731 | py | def binary_search(arr, x):
first_position = 0
last_position = len(arr) - 1
flag = 0 # flag 0 means that the element has not been found yet
count = 0
while first_position <= last_position and flag == 0:
count += 1
mid = (first_position + last_position) // 2
if x == arr[mid]:... | [
"bansalnishu418@gmail.com"
] | bansalnishu418@gmail.com |
bd01566b4e6d8ca42a82ef1dfdb095994b042611 | 9ee4381b23fc76a6c3819eacd67cfcce873f7119 | /migrations/versions/0c6379be7d05_.py | 67791e78005673f73c2fbd00a19e8e80e6309d78 | [] | no_license | jasonsie1024/WLPCS | 51c6ae34110bd86974075f82028b9ae0a03a1123 | d0d5331344cfe977bbf5524e0bfbaa99f9b229de | refs/heads/master | 2022-07-30T09:53:18.303528 | 2019-02-03T06:47:21 | 2019-02-03T06:47:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,672 | py | """empty message
Revision ID: 0c6379be7d05
Revises:
Create Date: 2019-02-03 10:28:59.904314
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '0c6379be7d05'
down_revision = None
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto gene... | [
"jason.plainlog@gmail.com"
] | jason.plainlog@gmail.com |
f455aa80b1be82e67994e7569290d6fb86b815af | bee46467988577b6f1af14add54a7fc4a2678d6a | /TestScript.py | 6c0b4a7c18571e6c48be7251efd8c59ffcc6a284 | [
"MIT"
] | permissive | jsharf/pseudo-ocr | 641bc4ed89725f0b91fca6859f5d1a3e46611368 | 5df2dee38d7b5c6557b6faa983c9f888ac020378 | refs/heads/master | 2021-01-22T10:17:52.763074 | 2014-12-01T20:10:06 | 2014-12-01T20:10:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,129 | py | import os
import sys
import subprocess
tests = os.listdir("tests")
testnum = 1
while (True):
try:
if (str(testnum)+".txt" in tests):
testfile = "./tests/"+str(testnum)+".txt"
ansfile = "./tests/"+str(testnum)+".ans"
test = open(testfile)
ans = open(ansfile)... | [
"jacobsharf@gmail.com"
] | jacobsharf@gmail.com |
2e7285463e78bdf7208f4375c725fbf3a18645cb | f743e7fd9ad7d9af200dcb077fe6f8d95a5025f9 | /tests/scripts/thread-cert/test_inform_previous_parent_on_reattach.py | 6809bc08bcd81da01b7c592357d7327526bb6796 | [
"BSD-3-Clause",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | Abhayakara/openthread | 6ea1cf8053290db20eb3a61732f30bea0083971c | fb83c90ffec5dee2194ee9bb5280fa48ce9a24fc | refs/heads/main | 2023-08-28T00:32:37.427937 | 2021-10-07T20:16:38 | 2021-10-07T20:16:38 | 295,905,892 | 5 | 0 | BSD-3-Clause | 2021-10-05T18:42:28 | 2020-09-16T02:48:57 | C++ | UTF-8 | Python | false | false | 4,994 | py | #!/usr/bin/env python3
#
# Copyright (c) 2021, The OpenThread Authors.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# 1. Redistributions of source code must retain the above copyright
# ... | [
"elemon@apple.com"
] | elemon@apple.com |
8cbeef5ea8b3d7e0aa7655c31e01ef7d0da11446 | 8541f4118c6093c84e78d768285e7007ee5f6a6c | /apps/tax/migrations/0005_auto_20160306_1353.py | 8077c34962cafafda6e7398270db44898639bd2a | [] | no_license | iraycd/awecounting | c81a8ca6b7a4a942e63cf6b7d723f9883e57a107 | 388df4de63146e0a9a211afa522ec50e0f3df443 | refs/heads/master | 2021-01-15T23:30:27.439759 | 2016-03-16T10:34:40 | 2016-03-16T10:34:40 | 57,046,467 | 1 | 0 | null | 2016-04-25T14:03:40 | 2016-04-25T14:03:40 | null | UTF-8 | Python | false | false | 574 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.2 on 2016-03-06 08:08
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('tax', '0004_partytaxpreference'),
]
operations = [
... | [
"roshanshrestha01@gmail.com"
] | roshanshrestha01@gmail.com |
f678eca13bb410b8ca617257bcb4b17d8de6f813 | 803c5084fb83c1b50c3bd0734f48f30792f783e1 | /Codeforces/educational3/a.py | 429eca18b8bb549c478a86f9141c4ec8fe697f5d | [] | no_license | guilhermeleobas/maratona | 9627570276d4fd843918013c1fd5a702bbada0e4 | 5d46263b335d2e70b0156001116f7030a068cf5a | refs/heads/master | 2022-09-20T11:28:26.367178 | 2022-09-05T05:20:43 | 2022-09-05T05:20:43 | 21,397,024 | 5 | 5 | null | null | null | null | UTF-8 | Python | false | false | 256 | py | n = map(int, raw_input().split())[0]
m = map(int, raw_input().split())[0]
s = []
for i in range(n):
s.append (map(int, raw_input().split())[0])
s.sort(reverse=True)
ans = 0
for i in s:
m -= i
ans += 1
if m <= 0:
break
print ans
| [
"guilhermeleobas@gmail.com"
] | guilhermeleobas@gmail.com |
640eb0af4af465436d6daf67648ac33bddd48fca | 648086fe6ca10b207b6910d676cbbcdfa1a41295 | /src/read_xy.py | c28d71383e6ceafb1d4a1372619a7a9b34605cde | [
"MIT",
"CC-BY-3.0"
] | permissive | SwindaKJ/Introduction-to-Python-programming-for-MPECDT | f9f4daa03936b56428c180688622889561f2cbd2 | ec709ffebe733dab6c79e3d69496bd35ace51b2f | refs/heads/master | 2020-03-28T12:34:06.513164 | 2018-09-17T13:52:01 | 2018-09-17T13:52:01 | 148,311,845 | 0 | 0 | null | 2018-09-11T12:13:21 | 2018-09-11T12:13:21 | null | UTF-8 | Python | false | false | 478 | py | import numpy as np
import pylab as pl
#infile = open("../data/xy.dat", "r")
#This closes the file automatically after use
with open("../data/xy.dat", "r") as infile:
x = []
y = []
for line in infile:
# x_, y_ = [ float(w) for w in line.split() ]
x_, y_ = np.array( line.split(), dtype = flo... | [
"skf1018@imperial.ac.uk"
] | skf1018@imperial.ac.uk |
b923127047254c84445608e989311a4fb0eb0b40 | 4f4776eb69cbea9ee1c87a22732c5d778855c83a | /leetcode/Number_Complement.py | 6f4cc7d18ff977b72e60674c3283b67bee1f0ecb | [] | no_license | k4u5h4L/algorithms | 4a0e694109b8aadd0e3b7a66d4c20692ecdef343 | b66f43354792b1a6facff90990a7685f5ed36a68 | refs/heads/main | 2023-08-19T13:13:14.931456 | 2021-10-05T13:01:58 | 2021-10-05T13:01:58 | 383,174,341 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,079 | py | '''
Number Complement
Easy
The complement of an integer is the integer you get when you flip all the 0's to 1's and all the 1's to 0's in its binary representation.
For example, The integer 5 is "101" in binary and its complement is "010" which is the integer 2.
Given an integer num, return its complement.
E... | [
"noreply@github.com"
] | noreply@github.com |
1c77e24b4bc144d88c51f323d1c8162383c278ae | 67216a79fe61b0ad144ab7b65c69713cbbb584f5 | /migrations/versions/3e3ffcf756f4_.py | b7afea4765f6dd3df4e1534d5f74bb1d91e0b16d | [] | no_license | BenMini/Fyyur | 430072a92cf951bb1a871e2a15143c7b15c80153 | ab354c40ed172e74373bbc4c0889de922e6fe1b8 | refs/heads/master | 2022-12-26T08:53:05.140030 | 2020-03-07T04:26:00 | 2020-03-07T04:26:00 | 242,560,470 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 813 | py | """empty message
Revision ID: 3e3ffcf756f4
Revises: 6c476e731f0c
Create Date: 2020-02-10 22:36:19.986512
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '3e3ffcf756f4'
down_revision = '6c476e731f0c'
branch_labels = None
depends_on = None
def upgrade():
# ... | [
"benminifie@Bens-MacBook-Pro.local"
] | benminifie@Bens-MacBook-Pro.local |
31fafff04d22006623a7bc672c81339d13885407 | 22ccc673a522b52f2678b6ac96e3ff2a104864ff | /jobs/migrations/0005_auto_20150902_0600.py | e6e2f4f6043f8e5e142666aeaf0c677401c0f62a | [] | no_license | ivlevdenis/pythondigest | 07e448da149d92f37b8ce3bd01b645ace1fa0888 | f8ccc44808a26960fb69a4c4c3491df3e6d3d24e | refs/heads/master | 2021-01-18T02:09:42.121559 | 2016-05-15T22:44:34 | 2016-05-15T22:44:34 | 58,350,368 | 0 | 0 | null | 2016-05-09T05:21:39 | 2016-05-09T05:21:39 | null | UTF-8 | Python | false | false | 1,435 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('jobs', '0004_jobfeed_is_activated'),
]
operations = [
migrations.RemoveField(
model_name='jobitem',
... | [
"sapronov.alexander92@gmail.com"
] | sapronov.alexander92@gmail.com |
234fb35529a945d7a473a628234aa6389cbc3044 | f35cc10fc2cc064bc887a52e05d46a8297bec88a | /python/django/MyWeb/books/migrations/0003_auto_20170720_1035.py | 442786e898d953256a96d61c2bd21c21438c4af1 | [] | no_license | privatesky911/theBusyCoderDemo | 0ba0047d3e7b719f54584854f10acf9e48bafcda | 4225d039a7a7c223b383dfaa818535fce15219ba | refs/heads/master | 2020-04-12T06:31:14.405151 | 2017-07-20T10:01:56 | 2017-07-20T10:01:56 | 65,343,494 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 531 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.2 on 2017-07-20 02:35
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('books', '0002_auto_20170719_1447'),
]
operations =... | [
"huxj-win7"
] | huxj-win7 |
47010cc8029ce26f087bc5af210729e2ad8964d0 | 6062dc6c23a4013a879617cd9dd8d60fba582964 | /day23/machine.py | 16384f67fcfce888fea5c9cb2095b5fec6a57bfc | [] | no_license | grey-area/advent-of-code-2017 | 8134a1213e69460e24a821ff96e38cbc7f83b480 | 87c213277e4535fff0a1dcf7ad26e182e20b8165 | refs/heads/master | 2020-04-13T05:38:36.852721 | 2018-12-30T23:31:00 | 2018-12-30T23:31:00 | 162,997,827 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,514 | py | from collections import defaultdict
from collections import namedtuple
from collections import deque
import operator
from functools import partial
Instruction = namedtuple('Instruction', ['op', 'args'])
class Machine():
def __init__(self, filename):
self.registers = defaultdict(int)
self.load_prog... | [
"andrew@awebb.info"
] | andrew@awebb.info |
a64b0a2dd100c7fbe907d347b9754069df72d64e | ac9eb074ba07262e233f78b4f6922a29f164d914 | /week4_paths2/2_negative_cycle/negative_cycle.py | 67718c63742900ba788513c84152733d6ae46e59 | [] | no_license | own3dh2so4/coursera_algorithms-on-graphs | eb07f99b9626bf52b2f50ed143b97b3fcbe2f1dc | 063bd68e887298c2f6396aef5c1a1c0e07b78253 | refs/heads/master | 2022-06-09T05:18:29.981022 | 2020-05-03T18:30:55 | 2020-05-03T18:30:55 | 260,906,201 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,507 | py | #Uses python3
import sys
def relax(dist, u, v, cost, prev):
if dist[v] is None or dist[v] > dist[u] + cost:
dist[v] = dist[u] + cost
prev[v] = u
return True
return False
def negative_cycle(adj, cost):
visited = [ False for _ in range(len(adj))]
for k in range(len(adj)):
... | [
"davidga1993@gmail.com"
] | davidga1993@gmail.com |
29a4a3873def8d66a7550cce0d72f34abc3dfd80 | 6d2abfef2cb571b2dccd345ad752ba6bdfec92ee | /generators/html.py | 8a3366dbfbbd6aa62b89e429d08e5655ed3845d0 | [] | no_license | jariberi/apprework | 26e42b1c4c03443df3e2ddc39c70dd85c775981d | c4e033fd30854c650d1cc37f02ab8e01d989cb29 | refs/heads/master | 2016-09-06T05:29:43.931358 | 2015-03-17T01:46:11 | 2015-03-17T01:46:11 | 31,931,680 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 398 | py | # TODO
from generators.base_gen import ReportGenerator
class HTMLGenerator(ReportGenerator):
"""This is a generator to output a XHTML that uses CSS and best practices
on standards."""
filename = None
def __init__(self, report, filename):
super(HTMLGenerator, self).__init__(report, *args, **kw... | [
"jariberi@gmail.com"
] | jariberi@gmail.com |
a5be6c3635c89f6e75ff82ea96ced8ca2ec222b1 | b3b104acc91e26c14d8d1d3211f5e7a6094041a5 | /src/utils/str2bool.py | 5247a3770550993a24fda8d670b863cc7e40ec33 | [
"MIT"
] | permissive | HappyGradu/Machine-Learning-Cookbooks | c88c877001fe586e789be5f38d48136eda476246 | 7afded6544a47039723fdf64f74c209db0a3f83a | refs/heads/master | 2020-06-05T20:17:46.040209 | 2019-05-31T03:23:22 | 2019-05-31T03:23:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 379 | py | """
This script defines a function on that how to convert a string from ('yes', 'true') to boolean variable 'True'.
Author:
Hailiang Zhao
"""
def str2bool(judge):
"""
Convert the input judgement (yes or no) into boolean variable (True or False).
:param judge: the input judgement
:return: True or... | [
"hliangzhao@163.com"
] | hliangzhao@163.com |
bdad5676c7a24243a779d22cf5efebad95f11153 | 0c48cdf7075c478c489bcf305c27f8c3b5292856 | /python/brunnerdx.py | a28b62645e8c1c006af679c8218bb874c40992fb | [] | no_license | billydragon/brunnerdx | 5f7ecceea3e58390720eda6fec889edb2bc5f48c | 507fae91f3f432c47fa30771f48d3894e2c5b4c8 | refs/heads/master | 2023-04-15T02:06:14.356242 | 2021-04-30T20:13:47 | 2021-04-30T20:13:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,048 | py | from libs.robust_serial.robust_serial import read_order, write_order, Order, read_i32, write_i16, read_i8
from libs.robust_serial.utils import open_serial_port
import socket
import struct
import time
# CLS2Sim network configuration
HOST = '127.0.0.1'
PORT = 15090
TIMEOUT = 8
# change these numbers for stronger or wea... | [
"jmriego@telefonica.net"
] | jmriego@telefonica.net |
4bb3e3cad9993c564bdbd34a95aacde329ea98b1 | 742af726182ec3f2e5fc82c3745e3d28c2c79e3c | /setup.py | 089d24f1ff2f86dc7733d5ae988358ba84397bd0 | [
"MIT"
] | permissive | sommersoft/RosiePi_Node_Server | 0a06680390e669ac366cf8db36ad5cae2ae0c75f | 2cb46ee8e7e9f1a42f76adc83ea9d17dc4f61335 | refs/heads/master | 2020-12-26T20:31:31.677853 | 2020-06-06T15:50:13 | 2020-06-06T15:50:13 | 237,633,814 | 0 | 0 | MIT | 2020-06-06T15:50:14 | 2020-02-01T15:21:16 | Python | UTF-8 | Python | false | false | 295 | py | from setuptools import find_packages, setup
setup(
name='rosiepi_node_server',
version='0.0.1',
packages=find_packages('node_server'),
include_package_data=True,
zip_safe=False,
install_requires=[
'flask',
'jinja2',
'rq',
'redis'
]
)
| [
"sommersoft@gmail.com"
] | sommersoft@gmail.com |
7bccdd943219008b9ab87f2c0d3a9f60a25927c6 | 9b20743ec6cd28d749a4323dcbadb1a0cffb281b | /03_Linear_Algebra_for_Machine_Learning/04/05_vector_division.py | 7a5cbfcb42a4a5db9dfe2635df84d2ce76f0ddf3 | [] | no_license | jggrimesdc-zz/MachineLearningExercises | 6e1c7e1f95399e69bba95cdfe17c4f8d8c90d178 | ee265f1c6029c91daff172b3e7c1a96177646bc5 | refs/heads/master | 2023-03-07T19:30:26.691659 | 2021-02-19T08:00:49 | 2021-02-19T08:00:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 184 | py | # vector division
from numpy import array
# define first vector
a = array([1, 2, 3])
print(a)
# define second vector
b = array([1, 2, 3])
print(b)
# divide vectors
c = a / b
print(c)
| [
"jgrimes@jgrimes.tech"
] | jgrimes@jgrimes.tech |
fcd73cacbfdd0a804119b055112f108cc641cd1f | fd29e3d63e1741760f189e80b5c108ec966aa051 | /client.tac | 651526af44ae23c17338420eb63e9d17c4208fef | [] | no_license | hiyeshin/yoga_socket | f76ce8992a3def5baa1378e09209706ed32a2f66 | 18f855f6a73f16f11236a09e34bf3b6c74e653f7 | refs/heads/master | 2020-06-05T07:56:54.874350 | 2013-04-27T09:06:01 | 2013-04-27T09:06:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 772 | tac | from twisted.application import service, internet
from rpi_ws.client_protocol import RPIClientProtocol, ReconnectingWebSocketClientFactory
from rpi_ws import settings
def getService():
server_url = "ws://192.168.1.3:9000/rpi/" #maybe I should change this later
#server_url = "ws://172.26.13.137:9000/rpi/"
factory ... | [
"hiyeshin@gmail.com"
] | hiyeshin@gmail.com |
341667ce1934f3f04a05b6ae9b9ca48c9360002e | 6676867d1b645bd6d8fc7c79d85d7e943a3a3550 | /ROS2/skinny/launch/launch_pdp.py | 62d287557d9e65624a939a9f10fa606265ab64a3 | [] | no_license | Razorbotz/RMC-Code-20-21 | 88604410293c5edb7a877365aa8bbf2a9cb4141b | f1a5a9c99a3af840188f8dc3a680c0453600ee02 | refs/heads/master | 2023-07-18T03:44:26.445419 | 2021-05-11T18:08:24 | 2021-05-11T18:08:24 | 336,593,274 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 346 | py | from launch import LaunchDescription
from launch_ros.actions import Node
def generate_launch_description():
return LaunchDescription([
Node(
package='power_distribution_panel',
namespace='',
name='power_distribution_panel',
executable='power_distribution_pane... | [
"andrewburroughs17@gmail.com"
] | andrewburroughs17@gmail.com |
fd30cbf33b7a94e9cba9d39a95ec3ac9243b5d48 | e89509b453632747077bc57dbec265a7703d5c7c | /function/globalfunc/baiscadd.py | 8c7c28e3fdb91a3022af78a3ba7e14b70d447686 | [] | no_license | Madhav2108/udemy-python-as | a9dcfdbfdc1bb85471aa66de77957e962a7c5486 | 0bc6a501516618fb3c7ab10be6bc16c047aeec3f | refs/heads/master | 2023-03-30T11:25:16.064592 | 2021-03-30T18:10:46 | 2021-03-30T18:10:46 | 286,001,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 66 | py | a = 15
b = 10
def add():
c = a + b
print(c)
add() | [
"noreply@github.com"
] | noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.