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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
343f8ccf7e0423af9d74f0b89e6d3bdbb08ab6ea | 1bc517e951f1a9d73fb400ff2a7bdb9e9c93af52 | /draw_la.py | 0ba450a76365f8c549c4fff9ecd3a39ab94aa715 | [] | no_license | xiaochenyang-bob/crime-plotting | dbdb7b1e0dd4ce79bc309d9e01850eac28c600c9 | 4267b99fabfd10d22bf3c32f0652b24a424e61ac | refs/heads/master | 2021-05-20T16:14:15.815431 | 2020-04-02T05:22:49 | 2020-04-02T05:22:49 | 252,362,633 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 894 | py | import pickle
import pandas as pd
#where you choose the mounth
df_la = pickle.load(open('data/LA-month/df_la_1', 'rb'))
neighborhoods = pd.read_csv('data/neighborhood_info.csv')
#where you define the crime category
df_crime = df_la[df_la['new_category'] == 'sexual_offenses']
def crime_count(neighborhood, df_crime):
... | [
"xiaochey@usc.edu"
] | xiaochey@usc.edu |
f33806ed29872bfa25f97b039e39ece363a9d6eb | 272e37800a3bd1680ba6e17ab8664b0aafbff049 | /centurion/models/__init__.py | f931c0bf27a45eb2cfbf98d5ad374772f5e8366c | [
"MIT"
] | permissive | krysros/centurion | 112a7beb92d6e29b466689fd8c86afcba45b4c15 | 04a6d146d06af427b01e73dbfd3c21d40049aa87 | refs/heads/master | 2022-08-11T17:35:35.833848 | 2022-06-26T16:58:22 | 2022-06-26T16:58:22 | 210,671,416 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 32 | py | from .price import Price # noqa | [
"krystian.rosinski@gmail.com"
] | krystian.rosinski@gmail.com |
4b1e7570e2154a478b60636d5868925d063960ba | 29af3ff51bd4c194a9fd4ab78adcd40d51570b08 | /tools/scripts/out_gt.py | 4a54ef4b8e5774479b042fbb9dea00c4b6de144e | [] | no_license | zhaoxuli/Phone_det | d8ba4301a3cc782c00844ed25743ee44d5d95dca | 32740a6e5c4202d327bbd9600d5b9f79133f02df | refs/heads/master | 2021-04-07T00:37:14.230699 | 2018-03-06T13:41:51 | 2018-03-06T13:41:51 | 125,230,819 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,987 | py | # -*- coding: utf-8 -*-
import cv2
import os
import json
def write_img(img_url,str_points,out_path):
img_key = img_url.split(os.sep)[-1]
points = []
#points.replace(' ','')
if str_points != 'false':
lx = int(str_points[0])
ly = int(str_points[1])
rx = int(str_points[2])
... | [
"zhaoxu.li@hobot.cc"
] | zhaoxu.li@hobot.cc |
2c0a74cc6cc8848a9437704667eecca332d4db29 | c09a00b2d3f86123ffeae5cbf7e5fd0802dc3a2d | /pll/__init__.py | 5667853238b044415a07e6cbc54e755bb854c013 | [
"MIT"
] | permissive | betafcc/pll | c22ca16045a946d57a13e8c8e78004c5b2d7b878 | dfd3e0f9cafcb6d527d21e8757896512ceb1a3d5 | refs/heads/master | 2022-02-05T18:59:29.865325 | 2018-06-04T09:59:35 | 2018-06-04T09:59:35 | 121,336,945 | 0 | 0 | MIT | 2022-01-21T18:58:17 | 2018-02-13T04:04:48 | Python | UTF-8 | Python | false | false | 3,792 | py | from typing import (
Generic, TypeVar, Iterable, Iterator,
Awaitable, Callable, Any, List, Optional
)
from asyncio import AbstractEventLoop
from concurrent.futures import Executor
import asyncio
from functools import reduce
import tqdm # type: ignore
from .util import as_submitted, pure, run, fmap, update_p... | [
"betafcc@gmail.com"
] | betafcc@gmail.com |
9c7cceeca07cf720fd8bd2475204127315598f9d | 1940b768944dabcede1dab4b9786f237e3ad4649 | /densenet_cifar10_estimator/densenet_run_loop.py | b2290585ece5fdd78bb90c7214623b053128ee63 | [] | no_license | Sirius083/mixednet | 7e0392c852649504d69044c9c0fc2e95e90f1441 | 5210fcc24663994415523103b5af1297ad369852 | refs/heads/master | 2020-04-27T04:08:03.032999 | 2019-05-22T06:14:54 | 2019-05-22T06:14:54 | 174,044,604 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,294 | py | # Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"noreply@github.com"
] | noreply@github.com |
7bbcebfa3f033b9bafbdff08061e07d8778037de | df540ac40d78a3706d081e6832a53d639020b1e1 | /rsf.py | c8dc1673b39e98df13f649028e3e8cb0b7467230 | [
"MIT"
] | permissive | rashifboy/KRIS3 | 17563658165255f287dee3cd65b1d8361d71e2a9 | b24b3118e0dfba1d780ebe5debebaa1d518244dc | refs/heads/master | 2020-03-19T04:10:54.158674 | 2018-06-26T14:35:31 | 2018-06-26T14:35:31 | 135,802,746 | 0 | 0 | null | 2018-06-02T08:59:26 | 2018-06-02T08:59:26 | null | UTF-8 | Python | false | false | 157,455 | py | # -*- coding: utf-8 -*-
import KRIS
from KRIS.lib.curve.ttypes import *
from datetime import datetime
import time, random, sys, ast, re, os, io, json, subprocess, threading, string, codecs, requests, ctypes, urllib, urllib2, urllib3, wikipedia, tempfile
from bs4 import BeautifulSoup
from urllib import urlopen
import r... | [
"noreply@github.com"
] | noreply@github.com |
159fa0c4b22dc80f495e6b5625adba8f9412461f | 0eb599c3bbfa6e5b31516913b88cc9db3a1311ce | /ABC_6q/abc167a.py | 83b76e504878f698de040171eee29074e8a32964 | [] | no_license | Linus-MK/AtCoder | 5b84dc88c2d2773d0f97ed18265d303290da7879 | a587e89a9e0c2ab4d36b09176bcc95e901e14326 | refs/heads/master | 2022-11-25T05:37:12.148722 | 2022-11-17T16:04:10 | 2022-11-17T16:04:10 | 169,840,698 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 112 | py | x = input()
y = input()
ans = 'Yes'
for i in range(len(x)):
if x[i] != y[i]:
ans = 'No'
print(ans)
| [
"13600386+Linus-MK@users.noreply.github.com"
] | 13600386+Linus-MK@users.noreply.github.com |
ac5db1e564390c7120e344e7574c2a2f69133218 | 70eb7d9371c24592809de815508a04d38fe62d32 | /Data_Modelling/model_tuning.py | a5a0622980cf211d83149f192216f114776bfbc6 | [] | no_license | KalpanaGaunolla/Adult-Income-Cencus-Prediction | 6f79d343ccedb798d995c31f787bde00b75273f7 | 383bc90263442c77f3fb1fee16388b5cadb8c786 | refs/heads/main | 2023-08-06T20:29:55.869022 | 2021-10-12T07:21:20 | 2021-10-12T07:21:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,515 | py | from logger.Logging import log_class
from feature_engineering.scaling_tranform import Data_scaling
from sklearn.ensemble import RandomForestClassifier
from sklearn.model_selection import GridSearchCV
from xgboost import XGBClassifier
from sklearn.metrics import roc_auc_score,accuracy_score
import pickle
import os
impor... | [
"gownollakalpana819@gmail.com"
] | gownollakalpana819@gmail.com |
1323a329644f0638338b191f4b6cfaba70aea5aa | 5a2966b53a021ee8db4ed98bdfc7019aab0e2e84 | /mysite/urls.py | 85ae4910229a4394f7162e42064ed33dee6e9915 | [] | no_license | JoniMop/my_django_site | bf492178c859838ad116a92ef21d0e79643f5f92 | f69f7a9193a10ccd57c4dad596292154e69ae32d | refs/heads/master | 2020-03-25T22:35:41.002007 | 2019-01-05T02:16:39 | 2019-01-05T02:16:39 | 144,231,056 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 998 | py | """mysite URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.1/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 ... | [
"jonatangurari@gmail.com"
] | jonatangurari@gmail.com |
3c459678da04b4cc25c5f7aec4502ac4d8c962fd | b0d302a132c9db094ec8477cbcbadd68e93940a4 | /paint.py | f8ba0b6d054ca85eb4bd06e6810c5e3a4ee32ed8 | [] | no_license | sudhsudhi/Crow_cognition | 873889fba17fd3b7f51188ed4541874d5a2a6b81 | 9b4da040065106c86b8def1eccafdb16cb2c8ea6 | refs/heads/master | 2023-01-23T15:53:33.635045 | 2018-09-09T12:16:27 | 2018-09-09T12:16:27 | 136,073,067 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,342 | py | import kivy
kivy.require('1.10.0') # replace with your current kivy version !
from kivy.app import App
from kivy.uix.widget import Widget
from kivy.uix.button import Button
from kivy.graphics import Color, Ellipse,Line
class MyPaintWidget(Widget):
def on_touch_down(self, touch): #self refers to the widget, tou... | [
"sudhish.sp99@gamil.com"
] | sudhish.sp99@gamil.com |
bbc26697a8ca6bd55c16d0db2f4396715e2fab08 | 883083334cc93116a726b7ccd9064cb21045df3d | /src/dog_bnb/src/data/owners.py | a668a5c300913a8ac8e3baaf90efc708c4f2c440 | [] | no_license | amiorahman/dogbnb_withmongoengine | 71a6c61796716d3712bb0b387d7765eaf43c9d6c | 9ecae406e315eeb7c397a9cf7f5f1fada475c178 | refs/heads/master | 2022-12-03T11:47:08.925944 | 2020-08-21T03:04:18 | 2020-08-21T03:04:18 | 289,028,136 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 333 | py | import datetime
import mongoengine as me
class Owner(me.Document):
registered_date = me.DateTimeField(default=datetime.datetime.now())
name = me.StringField(required=True)
email = me.StringField(required=True)
dog_ids = me.ListField()
room_ids = me.ListField()
meta = {
'collection': '... | [
"amio.rahman@tum.de"
] | amio.rahman@tum.de |
7301d83c595597b93916cb9dd6928a33c2a858e2 | 338dbd8788b019ab88f3c525cddc792dae45036b | /lib/python3.6/site-packages/statsmodels/sandbox/descstats.py | 1b90db63cf35925066b9ad968d0d41c5ed48f642 | [] | permissive | KshitizSharmaV/Quant_Platform_Python | 9b8b8557f13a0dde2a17de0e3352de6fa9b67ce3 | d784aa0604d8de5ba5ca0c3a171e3556c0cd6b39 | refs/heads/master | 2022-12-10T11:37:19.212916 | 2019-07-09T20:05:39 | 2019-07-09T20:05:39 | 196,073,658 | 1 | 2 | BSD-3-Clause | 2022-11-27T18:30:16 | 2019-07-09T19:48:26 | Python | UTF-8 | Python | false | false | 6,472 | py | '''
Glue for returning descriptive statistics.
'''
import numpy as np
from scipy import stats
import os
from statsmodels.stats.descriptivestats import sign_test
#############################################
#
#============================================
# Univariate Descriptive Statistics
#=====================... | [
"kshitizsharmav@gmail.com"
] | kshitizsharmav@gmail.com |
d5261e22e37d4993b3c6eac7f2aea14715203e5b | 5e06057de2331e9b02f9d583368f8ad9ef71b337 | /src/strippers/mixi/_message_write.py | 2c33e1db896f283f03e7214fcb5ec9fb282d1edf | [] | no_license | otsuka/strippers.mixi | 8d498a804d227cfcd011d268c744acfdd6467422 | 50fefbc0bd91652e79250575bc225df5202c682f | refs/heads/master | 2016-09-08T02:40:34.451418 | 2012-02-05T03:13:11 | 2012-02-05T03:13:11 | 3,354,069 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,720 | py | # vim:fileencoding=utf-8
import urllib2
try:
import json
except ImportError:
try:
from django.utils import simplejson as json
except ImportError:
import simplejson as json
MESSAGE_SEND_URI = '/2/messages/@me/@self/@outbox'
MESSAGE_URI = '/2/messages/@me/@self/@inbox/%s'
def _send_mess... | [
"t.otsuka@gmail.com"
] | t.otsuka@gmail.com |
a64eddb6c44fef51fdf765f7af4ba55788619012 | 7e4cb631fece98aa994b8c402ad29f17b4150787 | /manage.py | ef9d2fc0a760faca95b5f75af53b483d6c4b08df | [] | no_license | sokkyyy/news-highlight | d2034a6187bd2f64adcd59c7bf5536e26cd8ef4a | 87380ee693de0280da51981ae11fce83d421ed31 | refs/heads/master | 2021-06-27T16:35:51.479765 | 2019-10-15T07:07:02 | 2019-10-15T07:07:02 | 214,845,857 | 0 | 0 | null | 2021-03-20T01:55:30 | 2019-10-13T15:36:54 | Python | UTF-8 | Python | false | false | 442 | py | from app import create_app
from flask_script import Manager,Server
# Creating app instance
app = create_app('development')
manager = Manager(app)
manager.add_command('server', Server)
@manager.command
def test():
'''
Run the unit tests for the classes.
'''
import unittest
tests = unittest.TestLoad... | [
"ndegwaraymond@gmail.com"
] | ndegwaraymond@gmail.com |
c16a77577dc9c060be01e9d07deac3b93def4314 | 475df3ba9cf3b8f5385e5ecddea46d64482896ba | /0036-valid_sudoku.py | d571137b327e522134ecd189c0ce5394116bd81b | [] | no_license | ALShum/leetcode | 68cc57d9e4eb3e5c10654aa64ee2ad9a3edfe307 | a114d2719b9a147179772680b2df1f6d7c5a0c50 | refs/heads/master | 2022-06-08T20:16:33.421688 | 2020-05-03T17:28:06 | 2020-05-03T17:28:06 | 255,804,221 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,059 | py | class Solution:
def isValidSudoku(self, board: List[List[str]]) -> bool:
for r in range(len(board)):
dup = self.checkDuplicates(self.getRow(board, r))
if dup:
return False
for c in range(len(board[0])):
dup = self.checkDuplicates(self.getCol(board,... | [
"alex@alshum.com"
] | alex@alshum.com |
a9ae41ac1b86faa5815b8e6908ec27c33b6aeb96 | c2fa9e56d934404997ede1f092c2090324e19574 | /manage.py | 6ebcc9ded31c370834c64c7983d3cf0b5ae7a93d | [] | no_license | xiaoyureed/face_recognize_rest_api | 5179bf35964f2113b6fe1ba4b5bcb1f686cb2591 | 526cdcff0c2f11e03c095b9316a0e9b12d8bb9c0 | refs/heads/master | 2023-03-30T18:27:03.681915 | 2021-04-03T05:41:11 | 2021-04-03T05:41:11 | 354,180,712 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 485 | py | from flask_script import Manager, Server
from flask_app import app
from flask_migrate import Migrate, MigrateCommand
from database.exts import db
from database import models # 模型文件必须导入进来,否则运行报错
manager = Manager(app)
Migrate(app=app, db=db)
manager.add_command('db', MigrateCommand) # 创建数据库映射命令
manager.add_command('s... | [
"775000738@qq.com"
] | 775000738@qq.com |
f8959553a3a737b61eec7c4d20b1747b2436d9c7 | d571d407cfda435fcab8b7ccadb1be812c7047c7 | /guild/tests/samples/projects/delete-on-success/op.py | bbefbc3e0be3a98095563bffed7b2450f85c2137 | [
"Apache-2.0",
"LicenseRef-scancode-free-unknown"
] | permissive | guildai/guildai | 2d8661a2a6bf0d1ced6334095c8bf5a8e391d8af | 149055da49f57eaf4aec418f2e339c8905c1f02f | refs/heads/main | 2023-08-25T10:09:58.560059 | 2023-08-12T20:19:05 | 2023-08-12T20:19:05 | 105,057,392 | 833 | 86 | Apache-2.0 | 2023-08-07T19:34:27 | 2017-09-27T18:57:50 | Python | UTF-8 | Python | false | false | 47 | py | fail = False
if fail:
raise SystemExit(1)
| [
"garrett@placeon.earth"
] | garrett@placeon.earth |
67804ab2e7258dc505b5a127e72d28636629181a | 28ef7c65a5cb1291916c768a0c2468a91770bc12 | /configs/body/2d_kpt_sview_rgb_img/topdown_heatmap/jhmdb/res50_jhmdb_sub3_256x256.py | cdef4c576e262405a3b53d78b059c38bcc6b2148 | [
"Apache-2.0"
] | permissive | bit-scientist/mmpose | 57464aae1ca87faf5a4669991ae1ea4347e41900 | 9671a12caf63ae5d15a9bebc66a9a2e7a3ce617e | refs/heads/master | 2023-08-03T17:18:27.413286 | 2021-09-29T03:48:37 | 2021-09-29T03:48:37 | 411,549,076 | 0 | 0 | Apache-2.0 | 2021-09-29T06:01:27 | 2021-09-29T06:01:26 | null | UTF-8 | Python | false | false | 3,976 | py | _base_ = ['../../../../_base_/datasets/jhmdb.py']
log_level = 'INFO'
load_from = 'https://download.openmmlab.com/mmpose/top_down/resnet/res50_mpii_256x256-418ffc88_20200812.pth' # noqa: E501
resume_from = None
dist_params = dict(backend='nccl')
workflow = [('train', 1)]
checkpoint_config = dict(interval=1)
evaluation ... | [
"noreply@github.com"
] | noreply@github.com |
64b6c6cd048e6233adb85c00ac0cd755a8b8fed4 | 887b1916112725eb92ea4005f743582c99d8b107 | /exchange/migrations/0014_remove_assignment_moniker.py | b49891ebce6c66fa15d43a9ae727e9f4385d6276 | [] | no_license | crobertsbmw/graff_exchange | 4cbd99c9fc4e09f51a56e817feab74cc6c84b16a | f5dd3ccb9f9e707f33be87be1eada202df217877 | refs/heads/master | 2022-12-11T20:57:00.898837 | 2020-06-30T01:11:47 | 2020-06-30T01:11:47 | 229,062,085 | 0 | 0 | null | 2021-09-22T18:20:16 | 2019-12-19T13:38:21 | CSS | UTF-8 | Python | false | false | 337 | py | # Generated by Django 3.0.1 on 2020-02-09 20:34
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('exchange', '0013_assignment_time_spent'),
]
operations = [
migrations.RemoveField(
model_name='assignment',
name='moniker',
... | [
"crobertsbmw@gmail.com"
] | crobertsbmw@gmail.com |
3dab6dd72ff44bbf1a85aaad28d3a89e8c9b96a5 | bc4a84229aad8be07ab8ecb2ab03cf424b762b6c | /examples/python/t_kdf.py | 23f2f578dea5f6a56400b2253597da1aa250e24f | [] | no_license | c4pr1c3/ac-demo | eebeb5beb9a02692f8ca6d476907898cabaad4f2 | d918853f8b9d92a90d3119e2f28031e3f33c8e1c | refs/heads/master | 2022-08-25T14:47:34.359936 | 2022-07-15T00:28:30 | 2022-07-15T00:28:30 | 123,532,898 | 7 | 16 | null | 2022-08-14T15:28:51 | 2018-03-02T05:06:29 | PHP | UTF-8 | Python | false | false | 1,436 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# https://cryptography.io/en/latest/hazmat/primitives/key-derivation-functions/
import os
import binascii
from passlib.crypto.digest import pbkdf1
from cryptography.hazmat.primitives import hashes
from cryptography.hazmat.primitives.kdf.pbkdf2 import PBKDF2HMAC
from crypto... | [
"huangwei1983@gmail.com"
] | huangwei1983@gmail.com |
375464252fc02610e0aca710a1e106befa2f8686 | 01de87181ae184d104eb237e698eb74dabf3ae9d | /inventory/migrations/0002_auto_20200702_1320.py | 38ba7e26d84df0ca9722af4c19830b68c6e3eba9 | [] | no_license | mentally-gamez-soft/django-drones-inventory-manager | 505a2f1e0cd0201f5076fc860d96122cdbc51fdd | 52893459c0ab1d963fd1a5c0e671844f0627dfcd | refs/heads/master | 2023-08-14T03:50:19.472697 | 2020-07-03T18:17:17 | 2020-07-03T18:17:17 | 276,883,593 | 1 | 0 | null | 2021-09-22T19:22:23 | 2020-07-03T11:27:48 | HTML | UTF-8 | Python | false | false | 892 | py | # Generated by Django 3.0.2 on 2020-07-02 11:20
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),
('inventory', '0001_initia... | [
"mentally.gamez.soft@gmail.com"
] | mentally.gamez.soft@gmail.com |
4f44ec1336a9aefcb58930fbc0f3f622408d1b67 | 46f6f04eb3f2b1613009f2e184debd6d0c90a671 | /poc/oracle-process-status-poller/venv-poc/lib/python3.6/site-packages/fusion_models/tenant/files/__init__.py | 75f6af279c352eb5e3eb4c7646225f835db70d1b | [] | no_license | ShravanPv/Ash_Workspace | 2d0bd2b7d61feaef0eac48aa5af290b69e19d3d8 | d820e66b2cfab8a9222a1077a139e0b580fb5106 | refs/heads/main | 2023-02-28T19:40:43.760758 | 2021-02-10T12:27:29 | 2021-02-10T12:27:29 | 337,715,247 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,537 | py | from datetime import datetime
from sqlalchemy import Integer, Column, String, DateTime, \
ForeignKey, Sequence, text, Index
from sqlalchemy.dialects.postgresql import UUID, JSONB
from fusion_models.tenant.base import ClientBase
class File(ClientBase):
__tablename__ = 'files'
id = Column(UUID(as_uuid=Tr... | [
"bharath.fpl@gmail.com"
] | bharath.fpl@gmail.com |
c5aa6fcd7fb94a0706f519587006c58537bd9473 | f4ffd8dcdc8595cba340cbfb11aa00405baf4f19 | /6. Networking/n1client.py | 5a3e98037585446afdf91d72eb707d13297d1d99 | [] | no_license | rroy11705/Learning_Python | 4e5f67d7cd0cc47ce1b95458f1398896c16885fc | 75e90cb224ba11f9892d6269c69f753547d58575 | refs/heads/main | 2023-08-18T00:09:24.011639 | 2021-09-23T03:21:02 | 2021-09-23T03:21:02 | 408,677,154 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 227 | py | import socket
host = '127.0.0.1'
port = 8080
with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s:
s.connect((host, port))
s.sendall(b'hello world')
data = s.recv(1024)
print("Received...", repr(data))
| [
"rroy11705@gmail.com"
] | rroy11705@gmail.com |
9c236ecf35493a99b33dd20a8f4551aaed66e4c8 | 387205216eb03726dcc726f15e8968beb16b0691 | /experiments_section_5/wcml/wcml_yahoo_train.py | 51ebce3c2dcf1730af5fd35efb1d330272c2bcc1 | [] | no_license | Teppei-Kanayama/unbiased-offline-recommender-evaluation | d58e39ec523addce06bc2591148c694e5b03dc87 | 664936eb56684af875e268a11977a628c0463ca5 | refs/heads/master | 2020-06-01T16:21:03.629712 | 2019-06-14T14:10:30 | 2019-06-14T14:10:30 | 190,847,955 | 0 | 0 | null | 2019-06-08T05:10:49 | 2019-06-08T05:10:48 | null | UTF-8 | Python | false | false | 1,737 | py | import os
import numpy as np
from openrec.legacy import ImplicitModelTrainer
from openrec.legacy.utils import ImplicitDataset
from openrec.legacy.recommenders import WCML
from openrec.legacy.utils.evaluators import AUC
from openrec.legacy.utils.samplers import NPairwiseSampler
os.system("wget https://s3.amazonaws.com/... | [
"tonyxuan26@foxmail.com"
] | tonyxuan26@foxmail.com |
c32518fba273528d2233eb910d54b18ce4c9602b | 0d5ade2497ed5d45e547536a4f7fe4bf394bfb93 | /lib/main_lib.py | 76fffd8b7e28a33d8bdb048f9ca0ce5c37befcf8 | [] | no_license | ivanmrosa/retorica | e19a10390782299f421d4ca1defa7ef90e1fa4ae | 6854e12557e128211340b7a46f97f18841e46797 | refs/heads/master | 2020-05-21T14:54:01.267824 | 2017-02-12T16:48:58 | 2017-02-12T16:48:58 | 61,624,223 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,269 | py | from django.shortcuts import HttpResponse, redirect, render_to_response, render
from django.conf import settings
import json
from django.core.exceptions import ValidationError
from django.db.models import BooleanField, ImageField, FileField
from django.db.models.fields.files import ImageFieldFile
from PIL import Image
... | [
"ivan@vmsis.com.br"
] | ivan@vmsis.com.br |
c017696a8ad14b22a1a758e5fb54069f8e72ab39 | 179d4d4e19f950be6ae2af120f8ad6833ed120bb | /scripts/buzzer.py | aee71ee53ef348848a0e4f7cd1ed774359446213 | [
"BSD-3-Clause"
] | permissive | zaki0929/pimouse_ros | ec9d33f5e856d92c468b099718d82c68f7df3559 | df1ff1d4ad1c9df153774412291a45caf7ec05b3 | refs/heads/master | 2020-12-30T17:10:52.462440 | 2017-05-24T13:26:33 | 2017-05-24T13:26:33 | 91,061,285 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,170 | py | #!/usr/bin/env python
#encoding: utf8
import rospy, actionlib
from std_msgs.msg import UInt16
from pimouse_ros.msg import MusicAction, MusicResult, MusicFeedback
def write_freq(hz=0):
bfile = "/dev/rtbuzzer0"
try:
with open(bfile, "w") as f:
f.write(str(hz) + "\n")
except IOError:
... | [
"ryo.okazaki.0929@gmail.com"
] | ryo.okazaki.0929@gmail.com |
5b5f8c93f58803b4d562bdbf95e832b26f8843f0 | 01dd174a3a7d26226564711e32711f137513663f | /pyscf/grad/rhf.py | 41bce18e52e4832a089e9edeac6cdc000356147c | [
"Apache-2.0"
] | permissive | cherishyli/pyscf | 00cb09c873edc8890be8501414678cdfa54b177e | 468a4bfc4ce067eb7dab6f9289d71122b219609e | refs/heads/master | 2020-04-18T11:40:00.398066 | 2019-01-24T23:07:36 | 2019-01-24T23:07:36 | 167,508,739 | 1 | 0 | Apache-2.0 | 2019-01-25T08:00:12 | 2019-01-25T08:00:12 | null | UTF-8 | Python | false | false | 12,214 | py | #!/usr/bin/env python
# Copyright 2014-2019 The PySCF Developers. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# U... | [
"osirpt.sun@gmail.com"
] | osirpt.sun@gmail.com |
b0446e4571c1d7af3f72b0bcea027bc0c9f9b610 | ad0e22112604c1fb46a2afadce691465668d8fcb | /mvc_sessions/application/controllers/logs/config.py | 284ad8aa903ce1d92f900dee5677404f3a35be1f | [] | no_license | salvadorhm/kuorra | b915ae60a01b8709966bb2c735863132052015f7 | 7cdb6601c1c3e4c947a7f74e07ec6b0f23c9a3fc | refs/heads/master | 2021-06-11T17:31:21.418606 | 2019-01-09T19:25:14 | 2019-01-09T19:25:14 | 110,161,944 | 7 | 6 | null | null | null | null | UTF-8 | Python | false | false | 524 | py | import web
import hmac
import application.models.model_logs
import application.models.model_users
render = web.template.render('application/views/logs/', base='master')
model = application.models.model_logs
model_users = application.models.model_users
secret_key = "kuorra_key"
def hash_str(s):
return hmac.new(s... | [
"zeo@f25.asus"
] | zeo@f25.asus |
1dcc68bcbb4b6ccac5a157107f33c43e05b48798 | 22e9348f150bb9ce9a0764fe42ba3dcf11832021 | /env/lib/python2.7/UserDict.py | ae603b2b767ace1a4d5b3858fa54c9fe6e46aaa5 | [] | no_license | chinmay60/Activity-Tracking | 06d8dc2944e4f6b4266aaa25198718e2ab3b4e8c | 304233d00910f310cd59bc133f593b3593ae4f1f | refs/heads/master | 2023-02-09T22:54:50.113561 | 2021-01-05T23:32:54 | 2021-01-05T23:32:54 | 302,783,949 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 102 | py | /usr/local/Cellar/python@2/2.7.15_3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/UserDict.py | [
"chinmayvinchurkar24@gmail.com"
] | chinmayvinchurkar24@gmail.com |
7223584e0d66e055b1ca5f03c21de201844d941a | 59bf7c729fef73fd32df759a0b80c1f57912ff73 | /Perceptron/Perceptron.py | 9d09e084ade65340b1838c4170241e8943cd815a | [] | no_license | ChristianLiinHansen/MasterThesis | 099e77f603ef42aac885ecbf67a418c1ff6cd214 | b385cdfa9d1f46ca3350653df42c31c5c17e8966 | refs/heads/master | 2020-12-11T04:17:28.048030 | 2015-05-31T19:38:21 | 2015-05-31T19:38:21 | 24,737,973 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 3,867 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Nov 2 19:58:24 2014
@author: christian
"""
# perceptron algorithm to find a straight line separating two datasets.
# uses pylab to draw graf.
import sys
import numpy
import pylab
import time
def main():
# run through every datapoint to move the line closer to the c... | [
"christian.liin.hansen@gmail.com"
] | christian.liin.hansen@gmail.com |
e2c355047f1a0e2a77fe21d1b3a7ca7014e44f36 | dbb80d8caded3df6af44081e438e16bf727e2a06 | /Code/NatureMed/backup/nature.py | 4514716788cf0c734def708f7b0b15451f445499 | [
"MIT"
] | permissive | ypxie/fullyConv | 73f272b0c5ee8621c447bf450cd71b8e7e61675c | aec5cefb17283a015d7d8de90ec95b1a3d5ec98c | refs/heads/master | 2023-02-06T14:03:41.737532 | 2017-06-27T18:02:43 | 2017-06-27T18:02:43 | 89,033,983 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,286 | py | import sys
import os
os.environ['KERAS_BACKEND'] = 'theano'
#os.environ['KERAS_BACKEND'] = 'tensorflow'
os.environ['THEANO_FLAGS'] = 'device=gpu0,optimizer=fast_run,force_device=True, allow_gc=False'
cloudRoot = os.path.join('..','..','..','..')
projroot = os.path.join('..','..')
home = os.path.join(cloudRoot, '..')
... | [
"shampool@ufl.edu"
] | shampool@ufl.edu |
b2239d07d16a98cc0da947a715c77ca38064eb64 | dcae1caa1816ba8ab8016e125027dd09b9a69720 | /tasks/copy_task.py | 8d95337c5390fec60fce1636b397fef0f820170f | [] | no_license | mahi97/XMANN | 5832bc0b02c7ee5998eaf8b4ed558f916e0d5d36 | bd6da642a5afc35582476b417e862f57817ed63c | refs/heads/master | 2023-06-15T19:10:55.331234 | 2021-07-15T11:35:40 | 2021-07-15T11:35:40 | 316,759,370 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,671 | py | """Copy Task NTM model."""
from attr import attrs, attrib, Factory
import random
import numpy as np
import torch
from torch import nn
from torch import optim
from model import Model
from model import ModelParams
class CopyTask(object):
def __init__(self):
self.model = CopyTaskModel
self.param =... | [
"mohammadmahdi76@gmail.com"
] | mohammadmahdi76@gmail.com |
4a9b892072ba58f5757ea70f8734c086671564e2 | db4c0f86904157c9ba40b495ca6506cd96450821 | /algorithms/python/104_maxinum_deepth_of_binary_tree.py | 4fa1f5be1929bd3e5494335478218e090b039496 | [] | no_license | ppd0705/leetcode | c26dfdd077985607354fc8dbac93a5ef3daf8e62 | 543e2ce47ea454d355762e6291a65a1cc6f7af71 | refs/heads/master | 2022-08-29T22:50:02.308073 | 2022-08-09T01:28:39 | 2022-08-09T01:28:39 | 221,321,139 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 392 | py | # Definition for a binary tree node.
class TreeNode:
def __init__(self, x):
self.val = x
self.left = None
self.right = None
class Solution:
def maxDepth(self, root: TreeNode) -> int:
def helper(node):
if node is None:
return 0
return 1 + ... | [
"ppd0705@163.com"
] | ppd0705@163.com |
727fad0f33aca6ccaceac65a506862d8108bebb9 | 01c30d875bb5865bcda1cefb1b776d6e49a450ba | /page/urls.py | 41013072d06e3987dee65220a9f23634e3f4121e | [] | no_license | tufedtm/dronov-book | ebab7c9012be70ec8face0d3c754011b531efc20 | 64e3091de1201cb4696f55397cb4ba4eb81cb4ad | refs/heads/master | 2021-01-10T02:25:19.116410 | 2016-02-22T09:44:29 | 2016-02-22T09:44:29 | 52,498,663 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 225 | py | from django.conf.urls import url
from twviews import *
urlpatterns = [
url(r'^(?:(?P<cat_id>\d+)/)?$', GoodListView.as_view(), name='index'),
url(r'^good/(?P<good_id>\d+)/$', GoodDetailView.as_view(), name='good')
]
| [
"tufedtm@gmail.com"
] | tufedtm@gmail.com |
dc557bd07a9b7fe215fd2c74b57641f3bc6ce4e5 | 01ad5af576066e88707a6a210258383c754855b5 | /setp1/old/oop1.py | afca6144285fb8370f296cf072027b42f38bd29a | [] | no_license | stanomy/pp | 861fc42e5072c2ea7ccc355f9ddd87b728bb1272 | ee5e2e4d8ac67bf37176bdf559f504badb7f6e5c | refs/heads/master | 2023-06-21T00:00:53.315204 | 2023-06-12T15:46:33 | 2023-06-12T15:46:33 | 95,856,144 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 479 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
class Student(object):
def __init__(self,name,score):
self.name=name
self.score=score
def print_obj(self):
print('obj.name=%s obj.score=%d' % (self.name,self.score))
print('对象调用')
lisa=Student('lily',98)
lisa.print_obj()
print('内置属性')
print("__dict__",lis... | [
"stanomy1028@gmail.com"
] | stanomy1028@gmail.com |
cbf18c3853acbc8957ad2530046e1df674d7955f | aa7257422cbaa64a1de9fb3c76dce6ea84d16ebe | /process_csv_class.py | b8dfb8ebe65f2acb077139dcdfbd664553e49d7a | [] | no_license | emilymoody2017/HudsonAlphaHATCH | b4c0677c45e1d8f26016371cbb80311fbb14bd0f | 8a6f7675297accf73b4f11e5fdc384087538c4ca | refs/heads/main | 2023-04-14T07:44:57.415823 | 2021-04-25T21:33:26 | 2021-04-25T21:33:26 | 361,292,284 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,353 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Apr 17 19:11:57 2021
@author: emoody
"""
import pandas as pd
class process_csv():
def __init__(self, file):
self.df = file.transpose()
#self.df.transpose()
self.output = ''
self.yesses = {'Y', 'y', 'Yes', 'yes','True', 'true',... | [
"noreply@github.com"
] | noreply@github.com |
0ad973ac0fa8b0298b1c922e2b148b49da8e2efb | 4db866d9e7cf46db22e8fb50c1aed3f3b20f0bdd | /swap_withoutusing_thridvari.py | 8aaaef35193bffb45b7f8219fd2f5a721f11a940 | [] | no_license | segl2014/Python-Programming | 874e0aebb202e5a80dc9c80d7a32c69912c34aef | 41216966dd3860d4994890517b31076a114aa12e | refs/heads/master | 2022-11-20T13:56:37.281129 | 2020-07-22T19:57:03 | 2020-07-22T19:57:03 | 281,770,358 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 176 | py | x = int(input("Enter value of x:"))
y = int(input("Enter value of Y:"))
print("Before Swapping\n X=",x, "Y=",y)
x= x+y
y=x-y
x=x-y
print("After Swapping\n X=",x,"Y=",y) | [
"noreply@github.com"
] | noreply@github.com |
5f0d01b5696f2e5ede595809e0726eb9a17161f6 | f20f6f2b2cb928a6a411b6f1b9fca723fe5ed096 | /hardwarelibrary/tests/testIntegraDevice.py | 1bb15e129dc02e3f53824bec3150d8f3fdd3af31 | [] | no_license | AceEagle/PyHardwareLibraryEViewCHU | 333ca7dd62192fb3682ebc89716944615eba968f | 4193733c6f9decc83955ddcada11266dad1cc6b2 | refs/heads/master | 2023-06-25T10:01:49.848507 | 2021-07-29T16:27:33 | 2021-07-29T16:27:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,172 | py | import env # modifies path
import unittest
import time
from hardwarelibrary.communication import USBPort, TextCommand
import usb.core
class TestIntegraPort(unittest.TestCase):
port = None
def setUp(self):
self.port = USBPort(idVendor=0x1ad5, idProduct=0x0300, interfaceNumber=0, defaultEndPoints=(1,2))... | [
"dccote@cervo.ulaval.ca"
] | dccote@cervo.ulaval.ca |
8a98e488ddbc60d23078c05e2fc1b35e65a3915a | e3f519963d2cebd782a0369b0d206d9bb8cb53a0 | /tests/test_actions.py | 34f2a5f430d4bc1d0454ff0bdd21d4d1f4dfd024 | [
"Apache-2.0"
] | permissive | sdeepaknarayanan/GPflow | ddd848d6d346ef760843655ee6adbdee9a8c2e65 | 164d90d78c1c6fd966ae19ebaee59b9241bcba39 | refs/heads/develop | 2020-08-31T03:29:44.471120 | 2019-10-04T21:39:33 | 2019-10-04T21:39:33 | 218,574,232 | 1 | 0 | Apache-2.0 | 2019-10-30T16:35:41 | 2019-10-30T16:35:37 | null | UTF-8 | Python | false | false | 1,821 | py | # Copyright 2018 the GPflow authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writi... | [
"mv310@cam.ac.uk"
] | mv310@cam.ac.uk |
a61e4ec5a9fa7a52439f0bacd4bb31b9ca51ca21 | 59cd4500974de968f3a151c5d893ee4fb9f8655f | /day22.py | 5fb9b01981e27ce600b92fd7e26cc43504981ff0 | [] | no_license | huda29/python--project | ec16a9186cdc9952730d0d9bee89a10e1e22e756 | a5ab2ec5f0087d54d6aa3e03efaeae739f383c07 | refs/heads/master | 2020-07-06T22:47:38.145629 | 2019-11-26T20:09:55 | 2019-11-26T20:09:55 | 203,162,038 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 333 | py | #Python Dictionaries
numbers = {n:('even' if n%2==0 else 'odd') for n in range(1,20)}
print(numbers)
##########
print('------------')
##########
donations = dict(sam=25.0, lena=88.99, chuck=13.0, linuse=99.5,
stan=150.0, lisa=50.25, harrison=10.0)
total_donations = sum(donations.values())
print(tot... | [
"noreply@github.com"
] | noreply@github.com |
f3c9439e5300c3977948c0570621a9247dcbfda9 | 7e5e8bb5d45bec908fccd0523b21fefd34a695a5 | /jarvis.py | 77a51a6de6c33750ec807913f460989479f2f7b0 | [] | no_license | JustUzair/python | 3e2c46a57933f4bca8b7317cd24f5ff999ca3450 | a27e339b5b84095df4add0f1b6f106c22b7c1bd2 | refs/heads/master | 2022-11-13T01:05:04.632278 | 2020-06-22T16:23:14 | 2020-06-22T16:23:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,446 | py | try:
import pyttsx3
import datetime
import speech_recognition as sr
import wikipedia
import webbrowser
import os
import random
import smtplib
except Exception as e:
speak("something went wrong,Can't import library")
dt=datetime.datetime.now()
try:
fh=open('C:\\Users\\user\\AppData\\Local\\Progr... | [
"noreply@github.com"
] | noreply@github.com |
57de64b03d3c4f7ab214b32f22252f72c6390376 | 94d5ef47d3244950a0308c754e0aa55dca6f2a0e | /migrations/versions/5a9e6291a59c_added_scopus_id_field.py | a912de3bd6a52767365e01577cee59169158dc04 | [] | no_license | MUMT-IT/mis2018 | 9cbc7191cdc1bcd7e0c2de1e0586d8bd7b26002e | 69fabc0b16abfeba44173caa93d4f63fa79033fd | refs/heads/master | 2023-08-31T16:00:51.717449 | 2023-08-31T11:30:13 | 2023-08-31T11:30:13 | 115,810,883 | 5 | 5 | null | 2023-09-14T10:08:35 | 2017-12-30T17:06:00 | HTML | UTF-8 | Python | false | false | 867 | py | """added scopus ID field
Revision ID: 5a9e6291a59c
Revises: 42f544489b96
Create Date: 2019-03-25 07:05:06.087909
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '5a9e6291a59c'
down_revision = '42f544489b96'
branch_labels = None
depends_on = None
def upgrade()... | [
"likit.pre@mahidol.edu"
] | likit.pre@mahidol.edu |
33d2679634f516fca42254167a77a2aad49f7ea7 | aa5d3979a126891916b39f6c715211d4964550bf | /coinmarketcap/coinmarketcap/pipelines.py | 6b69bb8739044d2e1b0b8d092e49bfbc9f154b7c | [] | no_license | jessescn/webCrawlers | 4d628f81961174c25c52460e59e3216e2fbca624 | 4804328a87fc1dd12f455fc1eeb53309e2632962 | refs/heads/master | 2022-10-17T19:18:16.938982 | 2020-02-17T23:06:15 | 2020-02-17T23:06:15 | 208,154,278 | 3 | 1 | null | 2022-10-07T07:55:25 | 2019-09-12T22:07:34 | Python | UTF-8 | Python | false | false | 295 | py | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: https://docs.scrapy.org/en/latest/topics/item-pipeline.html
class CoinmarketcapPipeline(object):
def process_item(self, item, spider):
return item
| [
"jesse.neto@ccc.ufcg.edu.br"
] | jesse.neto@ccc.ufcg.edu.br |
e4476d0865065f45687cbfb82c94b29094cc93e7 | 85e7b490bd578c04b29b5dcc636402c533e05542 | /manage.py | 841c5016641d252a938b8ac500203a905e8c0501 | [] | no_license | gokadi/adjust_home_task | 32f7032cfa8819486459d8a115c48e8564ecba4b | ccd260b91b55424c26671d9388c82118c7d8defe | refs/heads/main | 2023-04-19T14:17:09.490274 | 2021-05-09T14:46:22 | 2021-05-09T14:46:22 | 365,774,742 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 259 | py | #!/usr/bin/env python
import os
import sys
if __name__ == '__main__':
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'adjust_home_task.settings')
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"Aleksei_Afanasev@epam.com"
] | Aleksei_Afanasev@epam.com |
dbcf249cd97f2c815967597c07232daa6bfe3946 | 0ee394f1d64dfb796a5032d5737d8958fa2c85e0 | /QH_update/检验部分/Product/Product/DataInterface/read_Data.py | 0e919061e40021dadd9be175425c8f4015420d4c | [] | no_license | fourmia/learn | 7c662c8411647c2f497354815fe8762b907d79e0 | c4f60ec6e905aebf672da205a86de13dc14eabc8 | refs/heads/master | 2021-08-28T00:24:01.568120 | 2020-06-19T12:01:40 | 2020-06-19T12:01:40 | 200,782,205 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,656 | py | #!/usr/bin/env python
# coding=utf8
from . import DataBlock_pb2
import struct
import xarray as xr
import numpy as np
import datetime as dt
from .read_pup import ReadPup
def calc_scale_and_offset(min_v, max_v, n=16):
# stretch/compress data to the avaiable packed range
if max_v - min_v == 0:
... | [
"noreply@github.com"
] | noreply@github.com |
c948512039191acea8561e239c50709d50352bef | c0e9e885c3b048705f4c4165b09b6074031a5b3c | /exercise_3/exercise_code/solver.py | e97dd6291aa3388022097f101a2c17ecd993b75e | [] | no_license | JAY301/Deep-Learning-Exercise-Projects-TUM | e76d55bc32d9b5743e8cbd5bcbfe2c2b448da2a5 | 38ef18e85a505061f82cc296bb2c3ef41909efac | refs/heads/master | 2022-12-14T03:50:29.864627 | 2020-09-16T18:24:04 | 2020-09-16T18:24:04 | 296,105,697 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,752 | py | from random import shuffle
import numpy as np
import torch
from torch.autograd import Variable
class Solver(object):
default_adam_args = {"lr": 1e-4,
"betas": (0.9, 0.999),
"eps": 1e-8,
"weight_decay": 0.0}
def __init__(self, optim=t... | [
"jayparmar1995@gmail.com"
] | jayparmar1995@gmail.com |
b1960ba2f342c60a2d4c0661e4dc3cb68be74634 | f6252de4cfdcf70a63ad96c2a03a09552a6986f3 | /Logit_airline_LCC.py | b408718431774c4cef4ee69ce4f338fffa2bbde7 | [] | no_license | kilee722/Airport_passenger_behaviour | d06463f70b19a588239461d600889a3baa7f3416 | e5407687fe5ec0ff4dc9875fea16b73c8cba5b23 | refs/heads/master | 2021-04-12T17:18:37.890698 | 2020-06-08T06:03:31 | 2020-06-08T06:03:31 | 249,095,901 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,910 | py | # Airline Choice Model
# Group 7
import pandas as pd
import numpy as np
from sklearn.model_selection import train_test_split
from sklearn import metrics
import statsmodels.api as sm
from sklearn.metrics import *
import statsmodels.formula.api as smf
import random
import matplotlib.pyplot as plt
airport ... | [
"noreply@github.com"
] | noreply@github.com |
2ab45cbcbd6a4dfe73a4f4fdb66ad0fb2ef32e5b | 29d9f80994e1c250bc8624754cf9ca87e160ed8a | /train_model.py | dec54f6f656e38ec1b8384c998d5677dcf913dca | [] | no_license | dnokes/DATA_622-HW2 | 161186826273446a0d83bbc54eaa38279bc2b22d | d72f0c44557c8108fa6922e0a51b7b0b7a7aa8ad | refs/heads/master | 2022-12-12T14:59:58.130391 | 2018-10-18T01:03:11 | 2018-10-18T01:03:11 | 153,217,879 | 0 | 0 | null | 2022-11-22T02:53:31 | 2018-10-16T03:35:30 | Jupyter Notebook | UTF-8 | Python | false | false | 7,540 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sun Oct 14 09:11:40 2018
@author: dnokes
"""
import numpy
import pandas
from numpy.core.umath_tests import inner1d
from sklearn.ensemble import RandomForestClassifier
from sklearn.preprocessing import Imputer
from sklearn.model_selection import train_test_s... | [
"derek.nokes@hotmail.com"
] | derek.nokes@hotmail.com |
791b14c2d6c59105540801d88995342158aa57f3 | 6ea75c47ccbe29323830ac0cb7e316c3ea848e5f | /ios-master/ios-master/E3631A5.py | c097f335f0af5c8fb18b09a7eeb8b4699d4c978f | [] | no_license | shimolu523/lab-quanta | 121dda58874d075ce1cbc2fd209749a71932e277 | 7d2dc91cd3eb96da7d752ffc87aa8385821f8b89 | refs/heads/master | 2020-03-25T03:00:22.467401 | 2015-07-05T15:32:08 | 2015-07-05T15:32:08 | 38,573,824 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,549 | py | import gtk
import helpers
import math
import time
import Gpib
import threading
import __main__
DEVICENAME="E3631A5"
class io_stream:
def __init__(self, ui_target = None):
self.ui_target = ui_target;
return
def register(self):
self.lock = threading.Lock()
self.lock.acquire... | [
"shimolu523@gmail.com"
] | shimolu523@gmail.com |
644c846754fb3527f95204e37205c30404af5471 | 8d2bfb94f8c06ec98160114543df599c497623dc | /Apps/golfer/migrations/0005_golfer_board_member_photo.py | 16ea40c9f79f98769013ee4e41f4426f2d135a22 | [] | no_license | lucaskruk13/GTWMGA | 58fb693e3ff08272fd42790e699ac4e3a6b6af62 | cf6ebcfdb77b9b5d28b7f404805ad0974da86430 | refs/heads/master | 2021-05-11T11:41:58.543571 | 2018-01-24T04:43:54 | 2018-01-24T04:43:54 | 117,643,696 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 402 | py | # Generated by Django 2.0.1 on 2018-01-12 19:52
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('golfer', '0004_auto_20180112_1922'),
]
operations = [
migrations.AddField(
model_name='golfer',
name='board_member_p... | [
"lucaskruk13@gmail.com"
] | lucaskruk13@gmail.com |
d6d2bd5fc3d2c2a01034f2810c388a37f45bd37c | 46435667fa35c1cc2f4bd5d311caa88f7e5d68be | /puppet/migrations/0001_initial.py | b6a0cce1ad297b9076a487cccd313e1f67dc6fab | [] | no_license | ntnusky/shiftleader | ade7334e0bb506e4a114e2cc7a8c41340ed383bd | bbfbc42eba79ec30188b95b1ff945a055505c912 | refs/heads/master | 2023-06-30T22:26:29.610056 | 2023-03-14T11:28:58 | 2023-03-14T11:28:58 | 108,989,324 | 0 | 0 | null | 2023-03-14T11:28:59 | 2017-10-31T11:59:51 | Python | UTF-8 | Python | false | false | 1,039 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
]
operations = [
migrations.CreateModel(
name='Environment',
fields=[
... | [
"eigil-git@obrestad.org"
] | eigil-git@obrestad.org |
927e9f9ea8862b1450ddf8c6f8814db817921683 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_051/ch43_2020_08_17_19_52_57_356234.py | f295feb2e8b443b435c9674f12d6e46d6abb9ea6 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 179 | py | lista=['janeiro', 'fevereiro', 'março', 'abril', 'maio', 'junho', 'julho', 'agosto', 'setembro', 'outubro', 'novembro', 'dezembro']
print (lista[int(input('numero do mes: '))-1]) | [
"you@example.com"
] | you@example.com |
8cce7e85e1266c30a9ed503ccc6006ffbf2c94d5 | b1ea00015ad8196f78f0a7296ceb55dd5fa68820 | /Design/SnakeGame.py | cf21b44b0c5ce706a5ce5cbebd25421eebe4cc53 | [] | no_license | YusiZhang/leetcode-python | d1fa7c1b76cb13caaa800fe1d20c7bbd5550d871 | 26e2a812d86b4c09b2917d983df76d3ece69b074 | refs/heads/master | 2020-05-29T16:08:52.277158 | 2016-10-11T06:50:44 | 2016-10-14T06:36:22 | 58,106,795 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,995 | py | import collections
class SnakeGame(object):
def __init__(self, width,height,food):
"""
Initialize your data structure here.
@param width - screen width
@param height - screen height
@param food - A list of food positions
E.g food = [[1,1], [1,0]] means the first fo... | [
"yusi.zhang@oracle.com"
] | yusi.zhang@oracle.com |
844ca005f10a48bfc037ed7a918597453e9d7f55 | ee02614d57e3e57d092b62709148ce5fa877eb59 | /UACTest.spec | ca0d048cd1144b0579278ac8ffcae0090702dc5d | [
"Apache-2.0"
] | permissive | EulerBlind/AutoScript | 3760d0c3172c40558e154384ca8d4de32f39b97b | 108bff9b01977f3efe450e3114e7fc857f690e05 | refs/heads/master | 2022-01-07T08:08:33.102595 | 2019-05-16T00:15:53 | 2019-05-16T00:15:53 | 186,917,901 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 734 | spec | # -*- mode: python -*-
block_cipher = None
a = Analysis(['UACTest.py'],
pathex=['E:\\PycharmProjects\\WindowGetTest'],
binaries=[],
datas=[],
hiddenimports=[],
hookspath=[],
runtime_hooks=[],
excludes=[],
win_no_p... | [
"1069772670@qq.com"
] | 1069772670@qq.com |
d476de92e9d213698b897ded554c190bea7dabaa | 38ae54e14f65f3c19c265c465e1fe305b918e8cd | /files/birthday_pi.py | 4bedf7584fd17c37f8d193f31db75b478bbf4459 | [] | no_license | rayswebpresence/latest | ec823bfdaf7daf08f6736c350129b10262b0dedd | ccf94cff157346fd1941051217364ae1415394a3 | refs/heads/master | 2021-07-21T14:04:49.438743 | 2017-11-01T02:30:42 | 2017-11-01T02:30:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 425 | py | filename = 'pi_million_digits.txt'
with open(filename) as file_object:
lines = file_object.readlines()
pi_string = ''
for line in lines:
pi_string += line.rstrip()
birthday = input("Enter your birthday, in the form mmddyy: ")
if birthday in pi_string:
print("Your birthday appears in the first million digits of p... | [
"rayjohnson529@outlook.com"
] | rayjohnson529@outlook.com |
e879861cdfd5413d2633604a4f758403dfd597c9 | 808d133a7b829e34397b9b59e76e5f851357713a | /htmlGenerator/src/Html_Tag.py | 421d47cd94489ac6a18fe7858dd13d2e1777a0dc | [] | no_license | ccichock/lerning | 689b017f5c13c01e90700b8eb83b5a1b4867aeec | 209b71deaaca5e8bf4b3883f3a9882cd64e88893 | refs/heads/master | 2020-05-28T01:29:30.202713 | 2019-06-11T17:22:24 | 2019-06-11T17:22:24 | 188,842,892 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,239 | py | from Tag_Params_List import Tag_Params_List
from Children_List import Children_List
from tools.add_indents import Formater
class Html_Tag:
def __init__(self, tag, id=None):
self.tag = tag
self.id = id
self.tag_params_list = Tag_Params_List()
self.text = ''
se... | [
"cezary.cichocki@op.pl"
] | cezary.cichocki@op.pl |
a4a687670449473b9b5cba3b3de02ffc9af995d8 | aaed7dce67eae14625c83f0da7cd5897624d7adf | /python/iDAP_DailyProcess/ETTodayNewsCrawling.py | 85d940c22815cf59c9be180712fedc5b3b69201b | [] | no_license | jacobL/urinfo | 23fb493db3a0e3a55bb5d02927fd171ad60493db | 342630cc04a1becc1e70c57367bd9693b7865c6f | refs/heads/main | 2023-06-02T18:15:15.472599 | 2021-06-24T08:47:26 | 2021-06-24T08:47:26 | 379,461,847 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,094 | py | from bs4 import BeautifulSoup
import requests
from datetime import date, datetime, timedelta
import pymysql
import dbconfig
def daterange(date1, date2):
for n in range(int((date2 - date1).days)+1):
yield date1 + timedelta(n)
def WebCrawling(days=5):
web = "ettoday" #"ET TODAY"
try:
... | [
"ukljm.2005@gmail.com"
] | ukljm.2005@gmail.com |
989982b3ec25d2d8cdca9c186279589ac690957f | 172db9cc71df21b12a467ca1c40415941a2ef910 | /test/torchaudio_unittest/backend/sox_io/smoke_test.py | 598a98bd3d91a495560d7486a70a5e78e2c9694f | [
"BSD-2-Clause"
] | permissive | imaginary-person/audio | 42e6a6ab1023976aa4199402385c6e756e3600bc | c201db7bc5c81724a5875801fd48a8b2bf085f80 | refs/heads/master | 2023-03-08T14:42:37.460539 | 2021-02-19T18:17:28 | 2021-02-19T18:17:28 | 339,298,709 | 0 | 0 | BSD-2-Clause | 2021-02-23T20:15:52 | 2021-02-16T05:50:09 | Python | UTF-8 | Python | false | false | 5,844 | py | import io
import itertools
import unittest
from torchaudio.utils import sox_utils
from torchaudio.backend import sox_io_backend
from torchaudio._internal.module_utils import is_module_available
from parameterized import parameterized
from torchaudio_unittest.common_utils import (
TempDirMixin,
TorchaudioTestC... | [
"noreply@github.com"
] | noreply@github.com |
21e63981019288293ced79768b8b6bb73db728e5 | 4599f275b06d635723ded7986726fa1f2f47129b | /testKeras_MNIST.py | 27b4d30478d364a776c9b741a1c59ba91a74ca2b | [] | no_license | LordRhodry/DeepLearningTests | 2c61e69932ca2e085bb5dea5adb64cfc68e10c53 | 1236bb7d23c227e99627a05be88c51aa2b6e1d73 | refs/heads/master | 2020-09-15T14:18:35.701171 | 2017-06-15T23:18:15 | 2017-06-15T23:18:15 | 94,479,834 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,753 | py | # -*- coding: utf-8 -*-
"""
Created on Sat May 27 18:35:05 2017
@author: Julien
"""
import numpy as np
np.random.seed(123) # for reproducibility
from keras.models import Sequential
from keras.layers import Dense, Dropout, Activation, Flatten
from keras.layers import Convolution2D, MaxPooling2D
from keras.utils im... | [
"julien_guerand@hotmail.com"
] | julien_guerand@hotmail.com |
ab237da15745095f11cbc4de1a30702b49227c63 | c88e0a47b1065c8f00dc30a85580cf4b1e3ee0e7 | /kare.py | e72616e425d00c503ad3d6562701c7e02fafc44c | [] | no_license | adalix/py2-book | 09b0a09b1d762562534b999eca81a40cfbdc6cd8 | 256d920ba7ba1d5e8128c0f71479e51755b281cd | refs/heads/master | 2021-01-10T14:50:09.638783 | 2016-03-10T13:49:15 | 2016-03-10T13:49:15 | 51,669,594 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 86 | py | # cift sayilarin karesini hesaplayan program
for t in range (0,10,2):
print (t**2)
| [
"gumustolgahan@gmail.com"
] | gumustolgahan@gmail.com |
87f3ec6b5cd4aadb962208b899f021f77a46846a | 00cf2491d97f079dadee6b05990e9a506983f3b2 | /datastore/model.py | e3643f844a6427676d3ac675d26e92a0011c481c | [] | no_license | simonemmott/DataStore | af16cdb91f73835203e77108e731acd129e15f96 | d7ccc2e8540b8cd47bb80318b62b813da7b76357 | refs/heads/master | 2020-06-25T02:23:23.221408 | 2019-07-27T22:15:41 | 2019-07-27T22:15:41 | 199,169,247 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 990 | py | from json_model import JsonModel
import importlib
def import_class(name):
mod_path = '.'.join(name.split('.')[:-1])
cls_name = name.split('.')[-1]
mod = importlib.import_module(mod_path)
if hasattr(mod, cls_name):
attr = getattr(mod, cls_name)
if isinstance(attr, type):
ret... | [
"simon.emmott@yahoo.co.uk"
] | simon.emmott@yahoo.co.uk |
dfe8489b3f5481d9a1cf47a1737086c521c4f774 | 9f05d8e547c563b2f3b94cb4f0abd02fa920fa28 | /rf/python_lib/HelpLibrary.py | a27c9b95073cd325c6b96f4dcb2b3ff70ad8501f | [] | no_license | ratlsun/demo-fenceng | c871025c9be13bb182e9789bd8fb8b18f16c1649 | 346252806153668acf88a8acd1ccad5116810d59 | refs/heads/master | 2021-01-20T10:37:31.760087 | 2015-04-24T02:11:28 | 2015-04-24T02:11:28 | 14,308,751 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 516 | py | # -*- coding: UTF-8 -*-
"""
Created on 2014年10月13日
"""
from hale.demo import DynamicPropertiesClass
class HelpLibrary(object):
ROBOT_LIBRARY_SCOPE = 'GLOBAL'
ROBOT_LIBRARY_VERSION = '0.1'
def setting_and_run(self, **args):
"""访问实例对象,动态设置属性
"""
o = DynamicPropertiesClass()
... | [
"rat65sun@gmail.com"
] | rat65sun@gmail.com |
d46cab58ab1755ab321b5c3bb35e0d3ec852be00 | 09bdacef5bd0f8fc9febc55c615b5b53c6feefe9 | /Dataset/Scrapper/build_dataset.py | bf759efe694506afb267ba5c1ad3b43da09ad917 | [] | no_license | DanAmador/Selfie2Weight | 4f27d056817d1c65f9c7dcce130b710f3b2b9b46 | 026b317eefc31165074028ba765d7965ee28bfda | refs/heads/master | 2022-12-07T06:08:50.933350 | 2020-08-31T08:47:27 | 2020-08-31T08:47:27 | 256,860,455 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,933 | py | import json
from pathlib import Path
from PIL import Image
from util.dataset_logger import dataset_logger as logger
from util.db.Wrappers import MongoWrapper as db
from util.db.model import RawEntry, SanitizedEntry
p = Path(__file__).parent / 'dump' / "dataset"
sanimg = p / "images"
db_wrapper = db.MongoWrapper()
... | [
"danamadorpe@gmail.com"
] | danamadorpe@gmail.com |
3007c9662d1477e3e27da470d45a79a5aee524da | 70fcf896145fe657be8416890c906e4134c25548 | /blog/migrations/0002_comment.py | 634ea873ed7ed56b783aae2ca5aa647781c4ec22 | [] | no_license | abhisekdey83/project1 | 4bb43ccb325778718dec8f2ac4e079c48238cb9e | 014e43de6c9aa43e49d652ad0653c103d38ba025 | refs/heads/master | 2023-04-21T07:33:27.130803 | 2021-05-14T11:41:43 | 2021-05-14T11:41:43 | 367,008,396 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,051 | py | # Generated by Django 2.2.20 on 2021-05-10 13:05
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('blog', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Comment',
f... | [
"abhisek.consultant@gmail.com"
] | abhisek.consultant@gmail.com |
a30bad01e191b1dc6ae86e49362faed19954c62d | 2ea1d7efe4a43810feeca010e59fbb844282e9dc | /F-measure.py | 1b608e661b0006d28dd6099ea0f7ebaa087fcfbf | [] | no_license | G-Dong/CV | d0122655c0a0f2fbe2a55d5269177243aa27b389 | dc21c652aac03215efdb846e63da844fc687f0a8 | refs/heads/master | 2020-03-27T03:33:20.859454 | 2018-08-26T18:35:21 | 2018-08-26T18:35:21 | 145,871,349 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,393 | py | import numpy as np
import cv2
from Figure_denoise import crop
from pre_process import Landmarks
if __name__ == '__main__':
img_raw = cv2.imread('Data/Radiographs/01.tif', 0)
print(np.shape(img_raw))
crop_img_ori = crop(img_raw, 1000, 500, 1000, 1000) # (y, x, xx, yy)
#cv2.imshow('cropped', crop_img_ori)... | [
"donggenghua@gmail.com"
] | donggenghua@gmail.com |
2b5ba9637061bd4e7ace5af618b509121b57889f | 9c0f17076601670f779670d2f9c36e4fb47c5e70 | /codechecker_kernel/install.py | d47de2381f3bf2d3b4cae93b2b4e065bf99b9377 | [
"BSD-3-Clause"
] | permissive | esstorm/codechecker_kernel | b7c679c617e454a2f2220d590909a73152c4ff3e | e7b2c65745ef3250db8cb5ffbf5b56c5f58ddb63 | refs/heads/master | 2022-02-21T02:44:59.706486 | 2019-09-21T16:20:26 | 2019-09-21T16:21:26 | 208,903,954 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,668 | py | import argparse
import json
import os
import sys
from jupyter_client.kernelspec import KernelSpecManager
from IPython.utils.tempdir import TemporaryDirectory
kernel_json = {
"argv": [sys.executable, "-m", "codechecker_kernel", "-f", "{connection_file}"],
"display_name": "CodeChecker",
"language": "c++",
}... | [
"e.torres.menendez@gmail.com"
] | e.torres.menendez@gmail.com |
4da37331376912a600bead21c5b5170ef9a415e6 | f2f3023c77357ff1e7ba830587291414566aa112 | /Monstr/Core/BaseModule.py | 559843a1ff20be10610ac18e684adcb003c97076 | [
"Apache-2.0"
] | permissive | tier-one-monitoring/monstr | e1e38cc719a75abb39b7ad3a24bb527ef9ad920a | 88af719e2e5eb0fe3ace7238840f97c35ac7044c | refs/heads/master | 2020-07-18T02:42:59.019768 | 2019-05-06T13:42:52 | 2019-05-06T13:42:52 | 60,289,289 | 0 | 3 | Apache-2.0 | 2019-04-29T10:40:10 | 2016-06-02T18:51:15 | Python | UTF-8 | Python | false | false | 10,243 | py | from abc import ABCMeta, abstractmethod
import Monstr.Core.DB as DB
import Monstr.Core.Utils as Utils
import Monstr.Core.Config as Config
import Monstr.Core.Constants as Constants
# ,----------------------.
# |BaseNodule |
# |----------------------|
# |+string name |
# |+obj table_schemas |
# |-... | [
"gavelock@gmail.com"
] | gavelock@gmail.com |
780fc8667e281a14511bd82b4fc42bc9aade7b30 | 5c34c85f089c967cfb3921066387bb3e418ace30 | /tensorflow/download_slim_pretrained.py | 34ab260a6cc3e9f9e9262502ba06faafab25287c | [] | no_license | j-min/ml_snips | 9b6ff3a3093f4b46e50596e7ffa282423ec41cbd | 4ee0136f460e0c56fd735e0386cbb73e39f1b958 | refs/heads/master | 2021-01-01T04:33:33.421619 | 2017-12-06T07:14:50 | 2017-12-06T07:14:50 | 97,199,604 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,718 | py | import os
import tarfile
from six.moves import urllib # Python 2/3 compatibility
tensorflow_models_url = "http://download.tensorflow.org/models/"
encoder_dict = {
'inception_v3': 'inception_v3_2016_08_28.tar.gz',
'resnet_v1_101': 'resnet_v1_101_2016_08_28.tar.gz',
'resnet_v2_101': 'resnet_v2_101_2017_04_1... | [
"noreply@github.com"
] | noreply@github.com |
1312697e3440437f9966a418939092feda8d8556 | 45ce5e113ff34931c943ccabdec1d73fd7c79c17 | /tensorflow_mri/python/experimental/__init__.py | 9ed687ab20fc57aabbfd993e6ff3236d630c73aa | [
"Apache-2.0"
] | permissive | mrphys/tensorflow-mri | 2f4e04a6f95ed19c311882a2d1bae56931804bd6 | cfd8930ee5281e7f6dceb17c4a5acaf625fd3243 | refs/heads/master | 2023-04-19T00:50:31.240919 | 2022-09-28T14:39:23 | 2022-09-28T14:39:23 | 388,094,708 | 29 | 3 | Apache-2.0 | 2022-09-28T14:39:25 | 2021-07-21T11:28:50 | Jupyter Notebook | UTF-8 | Python | false | false | 913 | py | # Copyright 2021 University College London. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appl... | [
"javier.montalt@outlook.com"
] | javier.montalt@outlook.com |
37a522a453f0f030945a7f64b77268b69bb266da | e18b36c717997ec120f65d1506d4431cffe14e9b | /task1.py | e33447b0a72fba4ab3b298a9d0e74fc0c4e114dc | [] | no_license | slow126/ECEN-631-HW3 | b86fddbe1bc264d06ba278cb065b88e9f7aa3252 | 9e18122fe9c09c43bea1d1c72fef6cc9df075c84 | refs/heads/master | 2021-01-26T06:49:11.341855 | 2020-03-01T02:00:30 | 2020-03-01T02:00:30 | 243,353,456 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,504 | py | import os
import cv2
import PIL
import numpy as np
# PATH = "practice_images"
PATH = "my_images"
if PATH == "practice_images":
scale = 2
else:
scale = 3.88
LEFT_PATH = os.path.join(PATH, "Left Camera Images")
leftList = os.listdir(LEFT_PATH)
leftList.sort()
RIGHT_PATH = os.path.join(PATH, "Right Camera Image... | [
"spencerlow126@me.com"
] | spencerlow126@me.com |
d1028f3eae10e894a244a951720b24a11cee42ab | b04b22018fd377bd899c19161272d72bbfa828f2 | /strategy/cxstrategy.py | 7877e10948d76e2150d6ff91f3844a6ee80ab83a | [] | no_license | jpmit/betman | f4f05f52db82bbf89de15531576623ee32e5ad00 | 058d69d7365b771eaaa8f77dead173a1262cccf0 | refs/heads/master | 2021-01-21T09:53:52.091499 | 2014-05-24T13:20:23 | 2014-05-24T13:20:23 | 83,349,569 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,384 | py | # cxstrategy.py
# James Mithen
# jamesmithen@gmail.com
"""
Cross exchange strategy. These inherit from the base classes in
strategy.py.
"""
from betman import const, database, order, exchangedata, betlog
from betman.strategy import strategy
from betman.api.bdaq import bdaqapi
# commission on winnings taken from bot... | [
"jamesmithen@gmail.com"
] | jamesmithen@gmail.com |
a7f2c6901433e152c158047044a075dddadc6162 | a8934b6597af39dfd29a7c3ab32aa8ec7377ee20 | /solution.py | 2a6717647fda2c8072ac6368742519c31bae6f7e | [] | no_license | Hcheema4/NYU-Computer-Networking | 1f4501fb3c65c5c9abac6988871531bf5f35a853 | f6fd2dd7705bc3c085f04c71028ef321dbbd29f7 | refs/heads/main | 2023-09-03T15:35:44.391728 | 2021-10-09T21:31:54 | 2021-10-09T21:31:54 | 405,482,418 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,822 | py | # import socket module
from socket import *
# In order to terminate the program
import sys
def webServer(port=13331):
serverSocket = socket(AF_INET, SOCK_STREAM) #Prepare a server socket
serverSocket.bind(("", port))
#Fill in start
serverSocket.listen(1) #listen to a single connection
#Fill ... | [
"noreply@github.com"
] | noreply@github.com |
a828c59d213b2ee143056adb66f89c8c81270f01 | a1b1b8417ce9d4142d83baaed2f208117dd1bee6 | /Final_pipeline_project/ocr.py | 4df397e4b5d31b6270e11cbae947794047a3f073 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | risto-trajanov/pick-final-branch | 654bfaba786d7cee3ec601539f0c6c44f09d840c | 866dd56778d476c497ad636cd81c348f459aa917 | refs/heads/master | 2023-04-06T09:42:18.642500 | 2021-04-13T15:46:26 | 2021-04-13T15:46:26 | 357,606,193 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 506 | py | import pipeline_run as run
import time
import pipeline_settings as settings
def main():
start_time = time.time()
times_dict = run.ocr_in()
ocr_time = time.time() - start_time
ocr_time = ocr_time / 60
print("--- %s minutes ---" % ocr_time)
with open(settings.report_time_per_function, "w") as fi... | [
"Risto.Trajanov@netcetera.com"
] | Risto.Trajanov@netcetera.com |
a9cbff56aea97cc7f40943e0040f157d74659b76 | 592e77ed163ce83abd940004f56b5ebed0e3f726 | /OS Re-install/HPE-CS500-OS-Re-Installation-2018.03-0/SLES/modules/upgradeMisc.py | 1114c3cb747d5acdeae302afe4422e3f4b66050e | [] | no_license | publiccoding/os_deploy | 84703e4850bf33d7583f76aa471c023e0a1c5603 | a31611060bfffb85cc5ba3e656df61da6f28f665 | refs/heads/master | 2021-04-03T07:51:26.286215 | 2018-08-23T06:35:31 | 2018-08-23T06:35:31 | 124,385,606 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 98,797 | py | # Embedded file name: ./upgradeMisc.py
import math
import subprocess
import re
import os
import datetime
import time
import logging
import shutil
import glob
from ast import literal_eval
RED = '\x1b[31m'
GREEN = '\x1b[32m'
YELLOW = '\x1b[33m'
RESETCOLORS = '\x1b[0m'
def checkDiskspace(backupItemsList):... | [
"thimmarayan.krishnappa@gmail.com"
] | thimmarayan.krishnappa@gmail.com |
3dbd819bc86dc4fa0ba60a3eb75bf69293e99333 | 5a095d0dbd7368c6c71bc4a89ba95a67745f4b52 | /atcoder_workspace/ABC/135/B.py | 22b70d3504a20e864a4286dde0958b81d18d3597 | [] | no_license | Otsdarva1/today_i_learned | 8a162681dc92487899e937d8ae9a7b3f94e92eb9 | 6383ba37e88fe586582a6edf25d5baf2654c5a6a | refs/heads/master | 2022-12-15T03:45:53.427641 | 2019-09-12T14:44:51 | 2019-09-12T14:44:51 | 199,311,387 | 0 | 0 | null | 2022-12-06T20:21:53 | 2019-07-28T16:30:23 | JavaScript | UTF-8 | Python | false | false | 224 | py | import sys
input = sys.stdin.readline
n = int(input())
p = list(map(int, input().split()))
wcnt = 0
for i in range(n):
if p[i] != i+1:
wcnt += 1
if wcnt == 0 or wcnt == 2:
print('YES')
else:
print('NO') | [
"yamazaki192748@gmail.com"
] | yamazaki192748@gmail.com |
7628bce0eb877d12ba40150006593934faa5ccf6 | 1f34a97175b2ee7470a28b211d22db114aff9699 | /L2/S3/HLIN303/TD_TP/PYTHON/bonjour_v1.py | 712be9fb56534d12277b65899e9ec3602f932f12 | [] | no_license | evrimulgen/Studies | 98eaf4b1b30dffcb3fbc86c4b0ce3c88fd21fa7c | 237abad4a2343c1ede0764acaeeff02239fb5f0f | refs/heads/master | 2020-12-23T00:24:22.945411 | 2019-12-04T17:56:12 | 2019-12-04T17:56:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 70 | py | #!/usr/bin/env python3
import sys
print("Bonjour ", sys.argv[1], "!")
| [
"terki.adel@yahoo.com"
] | terki.adel@yahoo.com |
bd0df60cdcf3932252a9697d12c3ca21c28d82a7 | fed1097e2c201560971eb56c75bc65f23e3d4d4d | /10-石头剪刀布/if_石头剪刀布案例.py | af07131cd5f20010fbc33365574d7a0dd69a9a6a | [] | no_license | nielei-26/py | 9a583e1f8df8932149b564bdc98318e361c319a5 | de745dea9377ebc850afca2cb006bfc7dbb5ca64 | refs/heads/master | 2022-04-20T16:47:38.255943 | 2020-04-23T12:02:52 | 2020-04-23T12:02:52 | 255,241,285 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,075 | py | # coding = utf -8
# 导入随机工具包
# 导入工具包的时候, 应该将导入的语句, 放在文件的顶部
# 因为, 这样可以方便下方的代码, 在任何需要的时候, 使用工具包的工具
import random
# 从控制台输出要出的拳 -- 石头 (1) /剪刀 (2) /布 (3)
player = int(input('请输入您要出的拳石头 (1) /剪刀 (2) /布 (3):'))
# 电脑 随机 出拳 -- 先假定电脑只会出石头, 完成整体代码功能
computer = random.randint(1, 3)
print('玩家选择的拳头是 %d - 电脑出的拳是 %d' % (player, comp... | [
"“"
] | “ |
87acdc16f9e7ff0ad3da6aaea1d2590cdc5fdf75 | 99091fded6b655e27a7afd5a81693f9e86d064f6 | /offset/core/util.py | 6a1ec85bddc55449b942472a87079f5b6acedf5d | [
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | dotpot/offset | 68670ace4945c23d1193ef8a8f57679db4fd9038 | 51200d0ee3a1776ad55d7c3ce53a5237236759e2 | refs/heads/master | 2021-01-15T21:50:06.090937 | 2013-10-01T16:55:57 | 2013-10-01T18:26:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 468 | py | # -*- coding: utf-8 -
#
# This file is part of offset. See the NOTICE for more information.
import fcntl
import os
import time
def nanotime(s=None):
""" convert seconds to nanoseconds. If s is None, current time is
returned """
if s is not None:
return s * 1000000000
return time.time() * 1000... | [
"bchesneau@gmail.com"
] | bchesneau@gmail.com |
6aa4b3f8a6867574f00a9577c4f4aefa1cb3a157 | a574aefb063c2d8be19a6642547cde0d7c98eba9 | /test/TestDuplicateImageDeleter.py | ef2285aefbaea0a9d1ab760e321f5c67b80220d8 | [] | no_license | Arsalan-Syed/duplicate_image_identifier | bd08f16004c1da540b54fe65a01fc0b1354cf414 | dc4e84f6b1e62d3b1caaa57edbb51a15d955d974 | refs/heads/master | 2020-11-27T04:28:53.132847 | 2019-12-23T18:55:40 | 2019-12-23T18:55:40 | 229,304,464 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 808 | py | import unittest
from mockito import when, ANY
from src import DuplicateImageDeleter
from src.file_utils import FileNameLoader
from src.image_utils import ImageHashComputer
class TestDuplicateImageDeleter(unittest.TestCase):
def test_should_mark_file3_for_deletion_which_is_duplicate_of_file1(self):
image_... | [
"arsalan.s96@gmail.com"
] | arsalan.s96@gmail.com |
9cc1f699589a7ce3fd4896716330dd97386159c6 | c450204fda11a5d3733c463e31e4c10105420534 | /ans_comparer_gui.py | 66ea93f18d0abb7444b3ffe4cf88a1608c1a1ea8 | [] | no_license | Hilary02/IpynbComparer | 6a25386702ed7de5fdea0ae3281b836970645cce | 418919562b9eeefbbcc8d694aeab88356ba15f73 | refs/heads/master | 2022-11-04T00:56:44.659890 | 2020-06-15T07:09:56 | 2020-06-15T07:55:20 | 272,431,497 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,209 | py | import os
import tkinter as tk
import tkinter.filedialog
import json
from make_dict import *
left_data = None
right_data = None
debug = False
now_select = ""
def log(s):
logarea.insert("end", f"{s}\n")
def make_model_data():
log("模範解答を選択してください")
file_path = tk.filedialog.askopenfilename(
filety... | [
"c011605154@edu.teu.ac.jp"
] | c011605154@edu.teu.ac.jp |
cbbbae3560e018184d657cd063227af3ab5962c2 | 8a1426c0e9f5e899879c18e276c84f110603e7af | /SVM_jiang/SVM_main.py | eb262a6cff75e9047d3be204af0e0226a6caddb1 | [] | no_license | YuleYu/SummerCamp2018 | 4cdbd1b4ac2afb0fe398d961a1d9701019291209 | 66ac382d1156c307051406e29ae878b0c4866356 | refs/heads/master | 2020-03-25T09:59:41.770815 | 2018-09-25T08:33:48 | 2018-09-25T08:33:48 | 143,681,324 | 0 | 0 | null | 2018-09-25T08:33:49 | 2018-08-06T05:41:00 | Python | UTF-8 | Python | false | false | 2,368 | py | import svmutil
import numpy as np
import os
import SVM_jiang.ext.SVM_Classifier as classifier
import LR.ext.Tester as tester
import pickle
home = 'C:/Users/peter/Documents/GitHub/SummerCamp2018/'
f_train = open(home+'HOG/result/train.dat','rb')
f_test = open(home+'HOG/result/test.dat','rb')
x_train=pickle.load(f_tra... | [
"jiangjiechu@163.com"
] | jiangjiechu@163.com |
32114ad2b5d00e54ca0e08e92718c456fb850123 | e1a586e026ea1c146db3e30adec139cec95d48f4 | /model/gpt2.py | 24493b526434734023f10ffb618828ec26945717 | [] | no_license | thisisalbertliang/AutoMP | 9d82d2ce28dcfe60667143a179c80a619269730f | aff56070c3643cf6cfc740420611d3587447571d | refs/heads/main | 2023-05-04T09:31:49.714231 | 2021-05-07T20:54:00 | 2021-05-07T20:54:00 | 349,512,565 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,249 | py | import torch
# from arguments import get_args
from model.language_model import TransformerLanguageModel, parallel_lm_logits
from model.cross_entropy import parallel_cross_entropy
class GPT2(torch.nn.Module):
"""GPT-2 Language model."""
def __init__(self,
hidden_size, vocab_size, sequence_len... | [
"ajliang@andrew.cmu.edu"
] | ajliang@andrew.cmu.edu |
e4b7bc5ecee0a9985fe8bda03d93ea0d247e0db8 | 43a2ae50e5a37ea3bb954c05b74bac80a31afff8 | /Задача 15.py | 592810e2649b8857fe8e0762356c23b692f302e4 | [] | no_license | Andrey27936/1-31 | ba26282ba3ad2465ce53247935f6df33d89809ce | 8ed1b008527257cdda3428ee19dc1869b57d3590 | refs/heads/main | 2023-04-29T09:58:02.520829 | 2021-05-24T06:31:15 | 2021-05-24T06:31:15 | 370,238,057 | 0 | 0 | null | null | null | null | WINDOWS-1251 | Python | false | false | 871 | py | """
Имя проекта: 1-31
Номер версии: 1.0
Имя файла: Задача 15.py
Автор: 2021 © А.И. Баскаков, Челябинск
Лицензия использования: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/deed.ru)
Дата создания: 23/05/2021
Описание: Задача 15.
#версия Python: 3.9
"""
import numpy as np
N = 4
M = 5
H = np... | [
"noreply@github.com"
] | noreply@github.com |
9eba0b833a0ba139819af0b9aa282f36e595bdaf | 9d8acc20d2ee1d1957849dfb71c22e0dae2d8c5c | /baomoicrawl/venv/Lib/site-packages/scrapy/utils/job.py | 12a886c4752744d82c9c82f2144df6d642aa170c | [] | no_license | thuy4tbn99/TranTruongThuy_17021178_Nhom4_Crawler | b0fdedee2942a12d9f64dfed93f43802dc5ab340 | 87c8c07433466bbc43a24ea089f75baeb467c356 | refs/heads/master | 2022-11-27T21:36:33.917491 | 2020-08-10T23:24:42 | 2020-08-10T23:24:42 | 286,583,216 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 157 | py | import os
def job_dir(settings):
path = settings['JOBDIR']
if path and not os.path.exists(path):
os.makedirs(path)
return path
| [
"thuy4tbn99@gmail.com"
] | thuy4tbn99@gmail.com |
82f2182287e4b204eb9e66ad4e9339014b4c53af | 308286b9f0fd38b9f827de3a4c84b606d59f9cca | /Python/myrbm/conv_playground_swag.py | 3e7f8c9301fafb238e4e1a83639502610468ea3e | [] | no_license | rrmhearts/SmallFish | 942d7ec90ec200ec171143b5b3244c4fcc8d02d8 | 25f44d6eda2061a275f85d7734104a07ed30409e | refs/heads/master | 2021-01-19T07:50:03.707921 | 2017-04-20T20:59:11 | 2017-04-20T20:59:11 | 87,575,614 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 33,205 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Jul 18 10:16:26 2013
@author: Ryan based on another implementation
"""
from RBMPlay import RBM, Trainer
from utils import *
from PIL import Image
from scipy.misc import imsave
from scipy.ndimage import gaussian_filter
from scipy.cluster.vq import *
#from MyError i... | [
"rrmhearts@gmail.com"
] | rrmhearts@gmail.com |
efdf5fe2d8fa6edbaf5ca5fa3b0deaf4cdb9b8b2 | 393f640e0feb1be510fe3d71f552240802198a1a | /nlp_hw_5/answer/align.py | 2c3363f1876390f92699aaa7c02e91b95ba2ad4d | [] | no_license | ckmishra/Nlp_chinese_english_smt | ff3bac89988c8bdd68b6347a3f3930a4d4b0f97a | 87dc53737bbfa9b68933ecc606548c887ebcae9b | refs/heads/master | 2021-06-12T07:37:18.866831 | 2017-01-29T21:04:39 | 2017-01-29T21:04:39 | 68,904,785 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,038 | py | #!/usr/bin/env python
import optparse, sys, os, logging
from collections import defaultdict
import math
import pickle
#from datashape.typesets import maxtype
optparser = optparse.OptionParser()
optparser.add_option("-d", "--datadir", dest="datadir", default="../data", help="data directory (default=data)")
opt... | [
"chandan_kumar_mishra@sfu.ca"
] | chandan_kumar_mishra@sfu.ca |
90899d5a098bf3893729aadbafefb2e67fb08b45 | 080b6bb4f42bae143839af628dc208e45c6995ba | /ex4.py | a3639ee72d5ef6c5226100f707e6a26e019021e2 | [] | no_license | dardavar/ModernAlgebra | e0173aa0ed07fb7ab37e319402bbf2bdc952ea68 | ab153ce620d752c5c06fce0ffb5c80bb57e2226c | refs/heads/main | 2023-03-21T02:03:55.439215 | 2021-03-18T07:01:53 | 2021-03-18T07:01:53 | 331,246,797 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 629 | py | from FFElement import FFElement, DEFAULT_CHARACTERISTIC
def solver(coefficient_a, coefficient_b, p=DEFAULT_CHARACTERISTIC):
"""Find a,b from Fp which solve the expression (coefficient_a*a**3 + coefficient_b+b**2 !=0)mod p"""
coefficient_a = FFElement(coefficient_a, p)
coefficient_b = FFElement(coefficient... | [
"almogz10@gmail.com"
] | almogz10@gmail.com |
d68397e11b26c800901ba8876fbeaa9aab84a69c | 1b6f206af61f71fc5acc17ad9d2febcbfd9783b7 | /photoz_metrics.py | a955b136d390f861f5bdf2c23500d72da48aa03c | [] | no_license | 00mjk/euclid_phz_testing | bed2e9b681b0961b588503d8683fedb4b44d1dc5 | 1d0a8a56f560176ac92dab1eb96dcab35ff8d6f8 | refs/heads/master | 2023-06-28T06:48:02.201787 | 2018-08-17T11:33:51 | 2018-08-17T11:33:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 28,322 | py | #!/usr/bin/env python
"""
Jean coupon - 2018
scripts to analyse photo-z results
"""
from __future__ import print_function, division
import os, sys
import numpy as np
import re
import collections
import matplotlib
# matplotlib.use('agg')
import matplotlib.pyplot as plt
from scipy import interpolate
from matplotlib... | [
"jean.coupon@gmail.com"
] | jean.coupon@gmail.com |
d8daca5501a1d6103f9bc1e7d3d4312ed233bacf | 311f352b9515bc2f0a47e3b6ea172a6376d8a9b8 | /module_test/analysis_file.py | f444df32cb7122968d23319b68a12c60d471b682 | [] | no_license | kangness/PythonTest | 5f9fafd409ad2eadaedf00af86d83094f113def0 | 20e043c2ccca781f1f2036a590e4e5e2116306b7 | refs/heads/master | 2021-01-10T19:02:12.270047 | 2013-01-08T04:40:23 | 2013-01-08T04:40:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 46 | py | #!/usr/bin/env python
__author__ = 'kangness'
| [
"510391707@qq.com"
] | 510391707@qq.com |
1c90db615e0a7d8d5883033fd873e3aed3c7e368 | 2c6c66a97bf071e57225d1e180cebf392bfab651 | /python-scripts/eventPayloadFormatter.py | d59b9eb83b2b3802fad892e5a23bb87693a9512c | [] | no_license | amishamuni/work-samples | f0a2efe48c271219b3c5397089cfa5762fe8b5bd | 03478e9ec4a6fe279b4e46c9b58b46c2aa92335f | refs/heads/master | 2022-11-21T16:29:57.374460 | 2020-07-12T15:08:39 | 2020-07-12T15:08:39 | 241,213,829 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,984 | py | # Event Payload Formatter
#
# Given a text file with the JSON string for Event Payload, decipher it in a human readable way
#
# Relies on having csv files generated for a flat view on ID and event name
# Future improvement could be to generate them via this script itself if they are not found
#
# Input : give your eve... | [
"amuni@amadeus.com"
] | amuni@amadeus.com |
99dd67404c7615cfe091b3deb066a0ccb698109c | c493876b358da7f32b5ff24900e5983d81e23936 | /project_b/run.py | de5efe1268cd66d4a3fce249ce9dc2faf7f8a23c | [] | no_license | ccdle12/Python-Package-Server-Example | 60ca56676eaf32ef84f9608772fd6a15f633040a | 2f474fbb678779cfabb6283942883c091d3f078e | refs/heads/master | 2022-12-14T11:00:14.434673 | 2019-07-26T15:45:37 | 2019-07-26T15:45:37 | 198,908,115 | 0 | 0 | null | 2022-12-08T05:19:40 | 2019-07-25T22:19:40 | Python | UTF-8 | Python | false | false | 190 | py | """Entry Point for the project_b app, serves a Flask API."""
from app import app
app.config.from_object('config.DevelopmentConfig')
if __name__ == '__main__':
app.run(host='0.0.0.0')
| [
"chris.coverdale24@gmail.com"
] | chris.coverdale24@gmail.com |
f3bbe590971a05641b5da229a85c01f00b8157f0 | 228e1a2b4c700255a747700afcf9049b2602d731 | /CSForum/Messages.py | e6df7a80d1ba55982b6782f420828c162f5443ac | [] | no_license | Luc1103/CSForum | cb04c2e9d3bd3a4bdce1682e16635546cef9aa91 | 764423f859eebc90ee03eff420940f32710741a3 | refs/heads/master | 2022-12-15T12:09:54.562420 | 2020-09-03T12:06:40 | 2020-09-03T12:06:40 | 292,554,104 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,983 | py | import tkinter as tk
import ScrollableFrame as sf
import mysql.connector
#Connects to the database
mydb = mysql.connector.connect(
host = "localhost",
user = "root",
passwd = "sD6G7Bx@f8cve$i3",
database = "forum"
)
#Allows editing of the database
mycursor = mydb.cursor()
#Displays the sidebar of all your co... | [
"noreply@github.com"
] | noreply@github.com |
095c320b85143fc11ac7ccd8758e40a12bfff8d1 | 0b3d3e6473215d5400f2ce26f0d651bd86aca31a | /build/mybot_localisation/catkin_generated/pkg.installspace.context.pc.py | c3d062a277780f96fd3623d065f8c6fc1989c5ad | [] | no_license | DonJons42/Astek-Projet-Tondeuse | eb7e39d6b7d727fb5abeff48be74ac9b5507aa51 | ef545ac4a1dbb139766fa5cf2a9df5d1cae20f1b | refs/heads/master | 2020-04-20T01:18:55.908951 | 2019-01-31T15:07:34 | 2019-01-31T15:07:34 | 168,541,973 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "mybot_localisation"
PROJECT_SPACE_DIR... | [
"adsquall@gmail.com"
] | adsquall@gmail.com |
2486172e67711750aa62070ee6fd2a6827dbc2e8 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_117/ch34_2019_08_28_17_09_17_697744.py | 9ca0d80832e96d242b07897a248b9972577d03eb | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 118 | py | d = ("deposito inicial: ")
j = ("taxa de juros: ")
i = 0
while i < 23:
t = d + (1 + j) ** i
print ({t:.2f}) | [
"you@example.com"
] | you@example.com |
ed78cafcff27e8f27202f1158aae5b19025a8574 | 3e3488a4158bbca232b51cbd862c94f87e73d1ec | /Sample Codes and Demo Programs/LastStickStanding.py | ddba67b52a904a3bb04260ca5f4b8d0a107782ff | [] | no_license | szehang/COM3103-AICode | 2be0ea6579d60e936e49d54a02af39f5105d9924 | 30d04fc4bff45caaa21c72279d37b03ec78bc355 | refs/heads/master | 2021-10-26T02:18:46.816033 | 2019-04-09T15:33:17 | 2019-04-09T15:33:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,274 | py | from time import sleep
### Global variables
move_count = 0
stick_count = 99 # Overriden in user input
limit = 5 # Overriden in user input
### Functions
def print_stick():
print("[", end="")
for _ in range(stick_count):
print ("\u25AE", end="")
sleep(0.1)
print("] {} stick(s) remaining".f... | [
"lamszehang@gmail.com"
] | lamszehang@gmail.com |
11e50fe8f7ccfaa25b3780c5fdcc0732b9de61fc | cbc4782342ad277b9f8cda805a57854ba3468edb | /SVDBias/SVDBias-pe.py | 5f4991f3cb6d026b4af15a99017a37e13c296add | [] | no_license | qingkongmengnuan/BayesianRS | f7f1cdc7ca6336e3d18e98e441b65aa767846005 | e440f6bb26bdc9485d2ae15826c0900b7457b92d | refs/heads/master | 2022-11-30T20:00:20.305454 | 2020-08-11T08:25:11 | 2020-08-11T08:25:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,537 | py | # coding:utf-8
'''
@author: Jason.F
@data: 2019.07.12
@function: Implementation: SVDBias
Datatset: Pinterest-20
Evaluation: hitradio,ndcg
Squared loss function with explicit rating.
'''
import pandas as pd
import numpy as np
import math
from collections import defaultdic... | [
"sharpsword@163.com"
] | sharpsword@163.com |
9bd4dbdc25bbe480b2681ed46781f2c4032c7d34 | f9644f6cb9fd62080db029c624c3cf4e4dd2954f | /src/webapp.py | 45dd1ae07e7d40bb1c996f66e5693dfe99a0800e | [] | no_license | vijayRT/reSearch | 3754ea76f70de5bab766f45d7b6d45edf281b467 | 72254a2131d04ef3cb64c73d9f95c3e9ff39ef05 | refs/heads/master | 2022-12-15T07:42:46.153411 | 2020-01-30T21:06:37 | 2020-01-30T21:06:37 | 149,516,657 | 1 | 0 | null | 2022-12-08T01:16:57 | 2018-09-19T21:56:23 | Python | UTF-8 | Python | false | false | 835 | py | from flask import Flask
from flask import request
from searcher import Search
from flask_cors import CORS, cross_origin
app = Flask(__name__)
cors = CORS(app)
search = Search()
app.config['CORS_HEADERS'] = 'Content-Type'
@app.route("/search")
@cross_origin()
def getSearchResults():
return (search.searchdblp(reques... | [
"vijayrajasekar1@gmail.com"
] | vijayrajasekar1@gmail.com |
f68d8f0d5878ccd2ea18009cd682be3667f78cec | 7ba05e73515c14fb8d2f3d056b51102131171a11 | /exercise_funktions/perfect_number.py | ceb4a03e0b152d53bd91c0d0ee007e347cd9bfd5 | [] | no_license | gyurel/SoftUni-Basics-and-Fundamentals | bd6d5fa8c9d0cc51f241393afd418633a66c65dc | 184fc5dfab2fdd410aa8593f4c562fd56211c727 | refs/heads/main | 2023-07-05T11:16:58.966841 | 2021-08-31T19:25:40 | 2021-08-31T19:25:40 | 401,485,125 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 659 | py | def perfect_number(number):
list_of_devisors = []
# for devisor in range(1, number):
# if number % devisor == 0:
# list_of_devisors.append(devisor)
#
# if sum(list_of_devisors) == number:
# print("We have a perfect number!")
# else:
# print("It's not so perfect.")
list_of_devisors = [devis... | [
"gyurel@yahoo.com"
] | gyurel@yahoo.com |
c608bf05b2ef607d9d019335717ca6d82f0b0615 | c03c41420d68d229ec6a38412af9ac5daf2cc92e | /roles/migrations/0001_initial.py | 51ba3442e9e98b21521b484a06d36ac44885520d | [] | no_license | fuhrer196/djangoRoles | 1bdbd9690325f307d273b04be8da61cad0400e69 | 59e33e9d05a371c8f5eaedeefcb1344c60cc68be | refs/heads/master | 2020-12-25T18:19:59.526004 | 2015-06-28T12:20:15 | 2015-06-28T12:20:15 | 38,197,791 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,510 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
]
operations = [
migrations.CreateModel(
name='role',
fields=[
('id', models.AutoField(verbose... | [
"manan.doshi@iitb.ac.in"
] | manan.doshi@iitb.ac.in |
dd784598529ddc94ac1abb53f62716226bdfd4bb | 355fd73529d5d0bbcf9d7322a5f77210339cc7c7 | /internfile.py | d4e1bca2e1b2c2ced1757d70de11194f13cfcef3 | [] | no_license | MuniPrasannaKumarM/miskaa | b8fde8373a7d3c5500ef12688e4bee77e194b78d | 9763ee8eea9faaae017b7c0981f3f8d865ecf754 | refs/heads/main | 2023-01-01T11:22:44.408617 | 2020-10-23T20:08:24 | 2020-10-23T20:08:24 | 306,732,731 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,393 | py | import pymongo
from flask import Flask, request, render_template
from flask import session as web_session
client = pymongo.MongoClient("mongodb://localhost:27017/")
database = client["intern"]
collection = database["miskaa"]
app = Flask(__name__)
app.secret_key = 'super secret key'
# importing and initializing ... | [
"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.