blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
2
616
content_id
stringlengths
40
40
detected_licenses
listlengths
0
69
license_type
stringclasses
2 values
repo_name
stringlengths
5
118
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringlengths
4
63
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
2.91k
686M
⌀
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
23 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
213 values
src_encoding
stringclasses
30 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
2
10.3M
extension
stringclasses
246 values
content
stringlengths
2
10.3M
authors
listlengths
1
1
author_id
stringlengths
0
212
35d97a19dac25cd356237e81606a3a933adf50fb
5c785ceb1d8442a1dc1d7755cc53784259131ed7
/rooms/migrations/0004_auto_20200218_1706.py
63d6fa8b4be609cc6f7ed8467609d7aaa3ce788d
[]
no_license
deepaligpt000/NomadCoders_Airbnb
3975c82d91f1b7589e0256bd354ac6116765d996
57caf8d5c9dd285eacd101a9f3dc6d55fc74f87f
refs/heads/master
2022-09-30T01:33:27.464189
2020-06-08T06:04:45
2020-06-08T06:04:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,996
py
# Generated by Django 2.2.5 on 2020-02-18 08:06 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('rooms', '0003_auto_20200218_1631'), ] operations = [ migrations.AlterModelOptions( name='amenit...
[ "gowoonvv@gmail.com" ]
gowoonvv@gmail.com
0e9dff5ceb7280778d60095e1d27f146daa46479
9aae168afdc9d654dfe2fcd57445743b043b3511
/exercise/leetcode/position_large_groups.py
8ea316e761e0cf6bf9e43b6e51c18263fc5084d2
[]
no_license
remixknighx/quantitative
01630b01458abc4bdf56940ba1005a3ad0d16afc
89bbe3d0b1504ab95e6945d937df709434b2d6d5
refs/heads/master
2023-01-11T14:27:14.667678
2020-08-16T11:59:11
2020-08-16T11:59:11
172,339,783
0
0
null
2022-12-26T20:52:45
2019-02-24T13:18:05
Python
UTF-8
Python
false
false
769
py
# -*- coding: utf-8 -*- """ 830. Positions of Large Groups @link https://leetcode.com/problems/positions-of-large-groups/ """ from typing import List class Solution: def largeGroupPositions(self, S: str) -> List[List[int]]: res: List[List[int]] = [] start: int = 0 end: int = 0 cou...
[ "remixknighx@sina.cn" ]
remixknighx@sina.cn
79e47f059392f4265fa4fdffaf5b1233b0b659e7
cc7755669783afe7664fa1947b3509fdf496f884
/python3.py
65604f693b402ec6116c8cb8afc88577defd54b3
[ "MIT" ]
permissive
dust16/UPH
b96fadbd192adba9558f48ed6db963b0b81a7b94
bebbbe378f73fcc22bc75f148633e83356539d08
refs/heads/master
2021-01-21T08:20:13.709329
2017-09-07T04:45:24
2017-09-07T04:45:24
101,957,150
0
0
null
2017-08-31T03:54:15
2017-08-31T03:54:14
null
UTF-8
Python
false
false
105
py
name = "dustin" print (name, "how are you doing?") print("i hope that " , name, "is feeling well today")
[ "dustin@FIK-Lab04.localdomain" ]
dustin@FIK-Lab04.localdomain
14b2409d1b96d2af04379ef25da43b732b845361
77bb6b9fd3efdad268a99c19da3b104a0914801b
/Binary Tree/binary_tree_to_doubly_link_list.py
2d0e72b857549cf35681bc53df47b26b164d521b
[]
no_license
Akasurde/Algorithms
2dc72a9b5fd30b20aba9ddce61e763a6b086c628
b6b79f267d39e3f352ffb4c91c544bdbd042092e
refs/heads/master
2021-01-14T08:55:07.928438
2015-06-21T20:21:21
2015-06-21T20:21:21
65,351,103
0
1
null
2016-08-10T04:41:13
2016-08-10T04:41:13
null
UTF-8
Python
false
false
737
py
# -*- coding: UTF-8 -*- # Convert a given Binary Tree to Doubly Linked List import binary_tree def convert_to_doubly_linked_list(root): if not root: return if root.left: left = convert_to_doubly_linked_list(root.left) while left.right: left = left.right left.right = root root.left = left if root...
[ "charul.agrawal@pagalguy.com" ]
charul.agrawal@pagalguy.com
ce5f7831ce53c41f39a8f0fe2118ab4baf3059f3
2a45e72d2f2fd1907d55fa190737256280931dd7
/trmala_slots.py
d3f61d60aeb7d6eafff4e07c4de713d6cc68e1f3
[]
no_license
GuruVamsiKrishna/Personal-Scripts
6cd88a0656e020c1cdc07c752db590cd86b4c8a3
c321626916f7e3e49f2ee7de89e9225a5688e0e9
refs/heads/main
2023-02-04T04:19:34.261653
2020-12-22T07:11:04
2020-12-22T07:11:04
320,174,017
0
0
null
null
null
null
UTF-8
Python
false
false
2,876
py
from selenium import webdriver import webcolors from time import sleep from webdriver_manager.chrome import ChromeDriverManager from selenium.webdriver.chrome.options import Options import datetime from datetime import date from twilio.rest import Client # Your Account SID from twilio.com/console account_sid = ""...
[ "noreply@github.com" ]
GuruVamsiKrishna.noreply@github.com
c22f7efdcb2f21f4d80fc3b4b564f22666cc7f70
ddb3fc95f44733e20312c0cbfdb37fc7fd1da5e8
/torch_server.py
bb5ab48b0490566d51b8c5ffed176c3bd852ae15
[]
no_license
ShenDezhou/EXLNet
2068ffecb3bebdc705bf49d5ca50076ebd50fab2
e1700c2d455205e8760c68e83f43520e03e67367
refs/heads/master
2023-03-08T17:05:43.205497
2021-02-24T07:05:17
2021-02-24T07:05:17
330,310,719
0
0
null
null
null
null
UTF-8
Python
false
false
6,577
py
import argparse import itertools import logging import os import time from types import SimpleNamespace import falcon import pandas import torch from falcon_cors import CORS import waitress import numpy as np import json import re from torch.utils.data import DataLoader from data import Data from evaluate import eval...
[ "bangtech@sina.com" ]
bangtech@sina.com
7f5606e2daede03a88759d9fc0ea10b391648e3f
f3173faca61ff906e6ad9236bcb14bfb1a22e9e5
/VGG16ForCatVSdog/utils.py
4dce927355b576fde490706edaece63b37a3af4a
[]
no_license
Alex-1997-Wzx/Transfer-Learning
068789af4faf9da5b5544a8529f0c83264b96baf
e937f196b1c4510c77cf09d3aa06b0985666378a
refs/heads/master
2021-03-22T16:06:39.609271
2020-03-15T05:19:42
2020-03-15T05:19:42
247,380,840
2
0
null
2020-03-15T01:24:26
2020-03-15T01:24:26
null
UTF-8
Python
false
false
949
py
import matplotlib.image as mpimg import numpy as np import cv2 import tensorflow as tf from tensorflow.python.ops import array_ops def load_image(path): # 读取图片,rgb img = mpimg.imread(path) # 将图片修剪成中心的正方形 short_edge = min(img.shape[:2]) yy = int((img.shape[0] - short_edge) / 2) xx = ...
[ "noreply@github.com" ]
Alex-1997-Wzx.noreply@github.com
56e87f4fc50a6ab6d04d831e7c14cef48f18cc8e
a20180060f4361568107081ac02973b49581334e
/planar_ising/lipton_tarjan/bfs_tree.py
291dc973d56e3e3ebb91012e4a5a77a41ec7a003
[ "MIT" ]
permissive
ValeryTyumen/planar_ising
99c09a057ab790d18f01b9bfaaa1d2755b15b317
5a1803487e1dd59c5d5e790cc949b7234bf52ac8
refs/heads/master
2020-03-20T02:31:23.883601
2019-09-03T18:25:45
2019-09-03T18:25:45
137,115,503
8
3
null
null
null
null
UTF-8
Python
false
false
8,115
py
import numpy as np from .. import common_utils from ..planar_graph import PlanarGraphEdges, PlanarGraph, PlanarGraphConstructor, search_utils class BFSTree: @staticmethod def construct_bfs_levels(root, graph): levels = common_utils.repeat_int(-1, graph.size) levels[root] = 0 used_v...
[ "v.lihosherstov@gmail.com" ]
v.lihosherstov@gmail.com
05bc671757de81a1e6de3816fddf472d680fb2b1
17c96dd2317b5e07dc7e066a14254428f70463fc
/test/code5.py
420231224cd4722c673c2b9a96d1aeb4e470a893
[]
no_license
thaiph99/face-recognition-system
a48e95f65da6e5f5de157e1f6ad8248fb45eed0f
83639b76c17ffd797ff05162cf9e83bf9106eedd
refs/heads/main
2023-05-29T20:47:20.207443
2021-06-17T14:33:39
2021-06-17T14:33:39
346,910,871
1
0
null
null
null
null
UTF-8
Python
false
false
2,486
py
__author__ = 'thaiph99' # The contents of this file are in the public domain. See LICENSE_FOR_EXAMPLE_PROGRAMS.txt # # This example shows how to use dlib's face recognition tool for image alignment. # # COMPILING/INSTALLING THE DLIB PYTHON INTERFACE # You can install dlib using the command: # pip install dlib...
[ "thaiph99@gmail.com" ]
thaiph99@gmail.com
f5b078d8ccff9dcc89568e20630942dc897b095e
c977ba86f8473a44bd0a242f8e107790d5556a5a
/construct/migrations/0015_remove_constructmutation_mutation_type.py
f69dae80b9a410ed7f322c0fec0c4dc970a9fe41
[ "Apache-2.0" ]
permissive
nil16/protwis
070bbead24eefc4c56bd4e71825f3a434d6fc352
5edd20fc57d4a4827e5853da3348c92b553ff5b0
refs/heads/master
2021-01-22T17:23:36.480950
2017-09-04T12:42:06
2017-09-04T12:42:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
413
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.2 on 2017-07-28 11:16 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('construct', '0014_auto_20170727_1618'), ] operations = [ migrations.RemoveField( ...
[ "christian@munk.be" ]
christian@munk.be
a285078b484c69bd8ed5c87ab10b6da5ede6f928
cf0ab8503d4d704045070deea1e2125375711e86
/apps/metrics/v1/urls.py
94ae63aec636a2d71a2111dd8c53dd21cbddec4c
[]
no_license
faierbol/syncano-platform
c3c6468600115752fd9fa5e46a0ad59f75f6bc9c
879111874d1ef70418b4890cf970720b0a2be4d8
refs/heads/master
2023-07-20T10:13:40.066127
2021-02-08T15:01:13
2021-02-08T15:01:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
398
py
# coding=UTF8 from django.urls import path from rest_framework.routers import SimpleRouter from apps.metrics import views router = SimpleRouter() router.register('hourly', views.HourlyStatsViewSet, base_name='hour-aggregate') router.register('daily', views.DailyStatsViewSet, base_name='day-aggregate') urlpatterns = ...
[ "rk@23doors.com" ]
rk@23doors.com
9dce403fd0a95cf1630555d797f78315313c6029
c2a2e40309bb86e36ec1cd283c5aaa3149e28afd
/dev/_import.py
caad219057d7da4bd4fc66308afeedc8fa245d1a
[ "MIT" ]
permissive
ossdev07/asn1crypto
5fc9f864eec3f109812050fa4ed50d1f343a6aad
213e4fb24f5f1a7f78c9f08862b0b8728fec1510
refs/heads/master
2020-12-03T23:33:55.056818
2019-12-29T06:46:19
2019-12-29T06:46:19
229,199,270
0
1
MIT
2019-12-20T05:53:29
2019-12-20T05:53:29
null
UTF-8
Python
false
false
3,279
py
# coding: utf-8 from __future__ import unicode_literals, division, absolute_import, print_function import imp import sys import os from . import build_root, package_name, package_root if sys.version_info < (3,): getcwd = os.getcwdu else: getcwd = os.getcwd def _import_from(mod, path, mod_dir=None, allow_er...
[ "will@wbond.net" ]
will@wbond.net
97a5753a08bfc4d281706851f42601f4e8b12d15
5533630a8ac679002c73595c3bad4c24dfbb4ad1
/main/private/migrations/0003_playlist.py
abcc8d2dba464be2f6456d4603f6c4b3f034adc7
[]
no_license
Vladaf/Diplom_django
a89ce6849d2fcfbcd74ba5b97925ca442c1de55d
f046005db6cbd527d03f2d0f820235d339726fb2
refs/heads/master
2023-08-22T04:27:13.255240
2021-10-29T07:31:18
2021-10-29T07:31:18
375,027,228
1
0
null
null
null
null
UTF-8
Python
false
false
675
py
# Generated by Django 3.2.4 on 2021-09-15 06:14 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('private', '0002_song_counter'), ] operations = [ migrations.CreateModel( name='Playlist', fields=[ (...
[ "vladaf1999@tut.by" ]
vladaf1999@tut.by
18febcc8fb69368992e5125b1013d83ecad3f43e
9ffa2c1d9472c0d686433a353764d03da2159205
/supertools/survey_reader.py
665bdabfa542b11185fd826035fba2fe1fdb172e
[ "MIT" ]
permissive
zagaran/instant-census
7c1a0ab0ff282ebc56dd3a35d18a3ab444da1bfb
62dd5bbc62939f43776a10708ef663722ead98af
refs/heads/master
2023-05-08T00:21:24.426828
2021-05-31T18:19:02
2021-05-31T18:19:02
372,590,104
3
0
null
null
null
null
UTF-8
Python
false
false
8,388
py
from mongolia import ID_KEY from backend.admin_portal.survey_builder_helpers import choices_append from utils.time import datetime from constants.database import ANSWER_VALUE from database.backbone.schedules import (Schedule, Question, Conditional) from database.backbone.cohorts import Cohort from database.tracking.us...
[ "iamzags@gmail.com" ]
iamzags@gmail.com
965a36556d235089f57754d8beabc12806664cd3
211833ed645cdbee278fe04b0448c67ef39d4060
/healthyways/__main__.py
fd376e3f348c183a5543f17eafc79fab31225d22
[ "MIT" ]
permissive
frederiksemmel/euvsvirus-healthyways
bf2384008ad6248a758907171e6d58071031043e
b6f0676b822905c2ef876043b430d0641d5bba1a
refs/heads/master
2022-04-24T03:59:10.769063
2020-04-26T21:21:28
2020-04-26T21:21:28
259,125,196
0
0
null
null
null
null
UTF-8
Python
false
false
1,895
py
from datetime import * from pprint import pprint import time import sys from healthyways.path_evaluation import * vbz_context = get_vbz_context() halteList = get_stations() capacities = get_caps() dirs = get_directions() if len(sys.argv) == 1: finished = False while not finished: try: ...
[ "frederiksemmel@gmail.com" ]
frederiksemmel@gmail.com
b4e837341ad2ead1653cd1863d71a44210732c3f
a463f5858c663199b6f6e38d9b2dc93e9a9ae730
/problem/2003/00_200316/3143_가장빠른문자열타이핑-1.py
cac1f53330c94396e5da0297c859ffa05c118f54
[]
no_license
do-park/swexpertacademy
4993f79e3a73697ecdc71e0f654306466626b00b
7cbbb0957ce5191cb44cd35094da5b0d29783e49
refs/heads/master
2020-12-22T19:26:35.257666
2020-10-19T02:02:32
2020-10-19T02:02:32
236,907,286
0
0
null
null
null
null
UTF-8
Python
false
false
129
py
for tc in range(1, int(input()) + 1): A, B = input().split() t = A.count(B) print(f'#{tc} {len(A) - t * len(B) + t}')
[ "dohee.pa@gmail.com" ]
dohee.pa@gmail.com
f5e375e99b0730d782fd2e5d0ba13d46113a0354
173e0af5c08469ec7fcc06020b2ecece9e511f2c
/predictions_lstm.py
0f85ee2583b0aa7df1d422e63be3237071715d06
[ "MIT" ]
permissive
codedecde/BiLSTM-CCM
f6726b025560c5027c3be807cee1a1d250a95048
a89719e97dfe1221f018d60106b75393cddf5f7c
refs/heads/master
2021-08-16T03:24:37.454184
2020-03-05T08:49:08
2020-03-05T08:49:08
100,819,812
2
1
MIT
2020-03-05T08:49:10
2017-08-19T20:31:41
Python
UTF-8
Python
false
false
9,442
py
import lstm_model as lm import keras from keras.layers import Input, GRU, Embedding, Dense, Dropout, concatenate from keras.models import Model from keras.layers.wrappers import Bidirectional from keras.callbacks import * import keras.backend as K from keras.optimizers import Adam import numpy as np import sys from ker...
[ "barunpatra95@gmail.com" ]
barunpatra95@gmail.com
6122257987dd5761f105b8deeeaeab9066434f1c
376ec47e3d5fec16493b1bf9e75b10caf92f8474
/hw3_skeleton/untitled.py
9d120dd636bbbf6ddd65b081cd865aeb5e912385
[]
no_license
mongazer/4641-MachineLearning
f0815b2a12169b964fd80e0a4f27b637bfbd2975
1478ca965217723c8855d497618b4f98f455b5d1
refs/heads/master
2021-01-11T10:38:07.203157
2016-12-10T21:54:31
2016-12-10T21:54:31
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,064
py
from sklearn.neighbors import KNeighborsClassifier from sklearn.ensemble import RandomForestClassifier from sklearn.ensemble import AdaBoostClassifier from boostedDT import BoostedDT from sklearn.svm import SVC import numpy as np from sklearn.metrics import accuracy_score filename = 'data/challengeTrainLabeled.dat...
[ "noreply@github.com" ]
mongazer.noreply@github.com
2c0ae8a4900e9a3dbe5fc23d17c814448e073a6d
eb0bb5267035c0222da0c072c5dcd85b46099904
/test/tw-1630.t
c4c0bd1e81926ba3b08e72cc170987370ae53fb3
[ "MIT" ]
permissive
bjornreppen/task
6d96f578eec7b9cceeb4d728caeda87e7a446949
a9eac8bb715ac8f51073c080ac439bf5c09493e8
refs/heads/master
2021-05-30T07:48:39.263967
2015-10-21T20:50:42
2015-10-21T20:50:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,539
t
#!/usr/bin/env python2.7 # -*- coding: utf-8 -*- ############################################################################### # # Copyright 2006 - 2015, Paul Beckingham, Federico Hernandez. # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentatio...
[ "paul@beckingham.net" ]
paul@beckingham.net
ff09c2d5e520b2eb37116dfc90e2c1cffa1cad18
8039c88ee57447e6d3b973853aae8c3421ffa8e9
/backend/todoapp/migrations/0001_initial.py
57b9a5013f42dabf23f8ddf73d723da991e2d32b
[]
no_license
mahidulmoon/djreact-ExpenceTracker
3553ebe2a141bf0a5b67a46ce6871d675c4ec098
196c73cc7f484d3ef423699c8527c8f4f8422e9f
refs/heads/master
2023-02-09T06:43:33.292205
2020-06-05T12:44:18
2020-06-05T12:44:18
269,003,222
2
0
null
2021-01-06T03:53:52
2020-06-03T06:04:32
JavaScript
UTF-8
Python
false
false
726
py
# Generated by Django 3.0.6 on 2020-06-02 05:59 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] ope...
[ "mahidulmoon@gmail.com" ]
mahidulmoon@gmail.com
6d49a356fda1c916ac953c333cbc4535b0d6a8f6
7bb34b9837b6304ceac6ab45ce482b570526ed3c
/external/webkit/Tools/Scripts/webkitpy/layout_tests/port/test_files.py
fbbbea565812a9dfcef1d6ac1700e9fe164ef72c
[ "LicenseRef-scancode-warranty-disclaimer", "LGPL-2.0-or-later", "GPL-1.0-or-later", "GPL-2.0-only", "LGPL-2.1-only", "LGPL-2.0-only", "BSD-2-Clause", "LicenseRef-scancode-other-copyleft", "BSD-3-Clause", "Apache-2.0" ]
permissive
ghsecuritylab/android_platform_sony_nicki
7533bca5c13d32a8d2a42696344cc10249bd2fd8
526381be7808e5202d7865aa10303cb5d249388a
refs/heads/master
2021-02-28T20:27:31.390188
2013-10-15T07:57:51
2013-10-15T07:57:51
245,730,217
0
0
Apache-2.0
2020-03-08T00:59:27
2020-03-08T00:59:26
null
UTF-8
Python
false
false
4,698
py
#!/usr/bin/env python # Copyright (C) 2010 Google Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list ...
[ "gahlotpercy@gmail.com" ]
gahlotpercy@gmail.com
3cc478f803acbd5f954b8c07d203c0337c867a5f
fa0979a268fcded26e97cb6fa70ed1cf707be5b3
/releasetools.py
a298e1a5eb13fd4f9c556af359f4f33ac5159ed1
[]
no_license
P013onEr/patchrom_u8860
29b22ebe7705ef5b00c8f5062b1573e78d7be27d
27b714e02bf49d3db63eb77a8aeeac8a65a072ff
refs/heads/master
2021-01-23T02:54:27.837438
2013-05-28T07:51:15
2013-05-28T07:51:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,955
py
import common import edify_generator def WriteRawImage(info, *args): info.script.Print("Writing boot.img...") info.script.Mount("/cust") info.script.AppendExtra('package_extract_file("boot.img", "/cust/image/boot.img");') #info.script.AppendExtra('run_program("/sbin/busybox", "rm", "-rf", "/cust/image/...
[ "oxcoder@c0debot.com" ]
oxcoder@c0debot.com
9a018adca7b1a97951fb143681204040c3196bd7
48964f034fcf2d92b03af4ab8397346714746457
/sensordata/urls.py
7933cf4765905902671d153355e0c07fd19eca64
[]
no_license
vignesk70/sensordata
ddf097b049ef195cd4ee541ba8eb7f95e6832f37
a879ced627ab547d163af7e36c365dfba2d96bf7
refs/heads/master
2021-01-01T16:42:40.817178
2017-07-21T02:50:27
2017-07-21T02:50:27
97,898,218
0
0
null
null
null
null
UTF-8
Python
false
false
958
py
"""sensordata URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.11/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class...
[ "vignes_k@yahoo.com" ]
vignes_k@yahoo.com
0735c31415f3ba350771e069b6b3865b8f199fb6
77b7a1a870e76ef7aa6ad51d0013b67f5a3f9512
/test_step4.py
563328f4c074d635fd0b3de5fe7951147cf8adcb
[]
no_license
DC-Swind/imageCaption
0d89f8bcde1ccafa09de76f9cdf27c9e4f92021f
013d19861e557cee45d90f6fdf2e3c2a1026a292
refs/heads/master
2020-04-28T08:46:20.942963
2019-03-12T18:31:41
2019-03-12T18:31:41
175,141,186
0
0
null
null
null
null
UTF-8
Python
false
false
3,184
py
from __future__ import absolute_import from __future__ import division from __future__ import print_function import json import numpy as np import time import os from six.moves import cPickle import opts import models from dataloader import * # from dataloaderraw import * import eval_utils import argparse import mis...
[ "dc.swind@gmail.com" ]
dc.swind@gmail.com
7901f6aa6769f3d8f9e37ecf4bc0004a1f83b4aa
c2e297027cfe0abdeb9e8aaf87869f9e69f12330
/lesson_two/views.py
43461a0085afa7636eef7ec5a95e7d22c6892889
[]
no_license
zinpy/courses_django
b59b9bb6086211ec8e69fde04cd36ab2361481d8
d5d55944bbbd4e0366bcb7ea69181b6a714b9800
refs/heads/master
2020-05-31T16:48:01.535171
2019-06-19T17:35:03
2019-06-19T17:35:03
190,390,172
0
0
null
null
null
null
UTF-8
Python
false
false
1,062
py
from django.shortcuts import render from django.http import HttpResponse # Create your views here. def home(request): return HttpResponse('Home Page!') def items(request): return HttpResponse('Welcome to localhost/items') def special_case_2003(request): return HttpResponse('Welcome to localhost/items...
[ "mmm.kherson@gmail.com" ]
mmm.kherson@gmail.com
8de65a8de6d6b0310acae5cd7b863f1d60cc11f0
ac745f21c264522c4ba1f205a3ef7455fad2848b
/accounts/views.py
d196646f9d055bd88a01bfe80985aa276f878502
[]
no_license
Nurs312/blog-app
1823993f5cdb3bf871673249cc525a472514cb05
7784a920977e32e7c9d10a818af7b8ac6ee6f290
refs/heads/master
2023-01-30T06:20:24.220054
2020-12-11T05:58:35
2020-12-11T05:58:35
320,173,701
0
0
null
null
null
null
UTF-8
Python
false
false
300
py
from django.contrib.auth.forms import UserCreationForm from django.urls import reverse_lazy from django.views import generic # Create your views here. class SignUpView(generic.CreateView): form_class = UserCreationForm success_url = reverse_lazy('login') template_name = 'signup.html'
[ "nursultan22.11.02@gmail.com" ]
nursultan22.11.02@gmail.com
d0a29c7afe337a79323bf19b985229a3ece4daa7
6ef5bc92b5c72a873317d71ef4989d2c4ef9f75e
/ojosfd/datasets/FallDetection.py
907ad27be28c8b99f7b45c49e29cadcea8799d58
[]
no_license
myojos/fall-detection
bdedc17d687833e0d2d22c791629511b7646c600
0434c08eee7d29888871bfca70ffb952783a16ab
refs/heads/master
2022-12-04T12:08:32.358563
2020-08-24T19:52:39
2020-08-24T19:52:39
290,025,954
1
0
null
null
null
null
UTF-8
Python
false
false
6,681
py
# system from __future__ import print_function, division import os from tqdm.notebook import tqdm # common import numpy as np import pandas as pd # opencv import cv2 # torch import torch from torch.utils.data import Dataset from torchvision import transforms SPLIT_RATIO = 0.8 class FallDetectionDataset(Dataset):...
[ "khaledkee0@gmail.com" ]
khaledkee0@gmail.com
fbbf8bc17952ed474d3e92ba055aae292980a3a7
2ce1d6294ceb732ca58a54def034e40757b2f3c0
/movie/migrations/0001_initial.py
6e206637c7e1af2c4db18936d5dd2efdd4591652
[]
no_license
Seunghak-Kwak/my-first-blog
b9c45c97376e6433a790afcaa432e739b89a1961
b383c99ac9e23caf0135acd102346936612d7a60
refs/heads/master
2020-04-16T17:41:03.748547
2019-02-26T06:59:45
2019-02-26T06:59:45
165,785,719
0
0
null
null
null
null
UTF-8
Python
false
false
1,182
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.18 on 2019-02-21 04:51 from __future__ import unicode_literals from django.db import migrations, models import django.utils.timezone class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateM...
[ "kdhak2@gmail.com" ]
kdhak2@gmail.com
30f0a3b24b86f107e8c8d52f94a12a339ecbec3c
05a3465dbf2ef00585046e2d7583d6b9ab40c019
/blog/urls.py
09944a64cbe272136626a742c84d5acf600de8b0
[]
no_license
brotherchris65/blog
6c90d78064539101fe822b659084449e135bef5a
6a439a246f36b22752e98ff9cbd180b04172c76e
refs/heads/master
2023-01-12T07:35:00.095251
2020-11-20T00:48:18
2020-11-20T00:48:18
314,063,301
0
0
null
null
null
null
UTF-8
Python
false
false
506
py
from django.urls import path from .views import (BlogDeleteView, BlogDetailView, BlogListView, BlogCreateView, BlogUpdateView, ) urlpatterns = [ path('', BlogListView.as_view(), name='home'), path('post/<int:pk>/', BlogDetailView.as_view(), name='post_detail'), path('post/new/', BlogCreateView.as_view()...
[ "brotherchris65@gmail.com" ]
brotherchris65@gmail.com
53cb7d33e641b7fdcd3fdfc1a9a913ee04b280c2
83d24a2c530220125923d6e27737434bfbb5b6bf
/nbastats/nbastats/urls.py
ad14073dd85e5f4c969cf64a92ffce5f18c70e14
[]
no_license
SamirSingh22/NBA-stats-website
7f59e7855b300344b66e44796c76aaf16d4930ff
0eb3bcde01bebbc4e644b2741d8bb3523ea7d86c
refs/heads/master
2022-11-12T00:55:16.864418
2020-06-18T21:54:14
2020-06-18T21:54:14
265,691,128
0
0
null
null
null
null
UTF-8
Python
false
false
1,057
py
"""nbastats URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.0/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-base...
[ "tuh03649@temple.edu" ]
tuh03649@temple.edu
819345a97832aa639f6546b62fdf55b669d9d39a
5639e9d4614759756c9d1d4a29c1992c6e1f633f
/12_to_14_data_pipelines_with_airflow/lesson_14_15_ex3_sub_dags_exercise/airflow/dags/lesson3/exercise2.py
6b8cacd84f7387eb2f860cb1b50249a75445d9ee
[]
no_license
6DvD9/data_engineering_nd
77d391c2973903c15b9bea2d125052c2b8487414
c30a2c1e8878dfc82b1d2d8ea3f96b1ba5f86c78
refs/heads/master
2022-03-26T13:10:34.346773
2020-01-02T19:11:13
2020-01-02T19:11:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,056
py
#Instructions #In this exercise, we’ll refactor a DAG with a single overloaded task into a DAG with several tasks with well-defined boundaries #1 - Read through the DAG and identify points in the DAG that could be split apart #2 - Split the DAG into multiple PythonOperators #3 - Run the DAG import datetime import logg...
[ "ivalderrama@gmail.com" ]
ivalderrama@gmail.com
fa99e97dc5432443906d266bce72c8f58384fe5f
8b169099a880e3a597c50c501016bd2603a6fc6f
/src/train.py
bd43eea76f3ab91959be9433d828483734c760f8
[]
no_license
shaheerzaman/mlframework
02fa138c778a425aa5c8ab54318808a355c2e016
5f034747d4df751fe33db1dc878092f9c3b23e31
refs/heads/master
2022-11-27T13:07:40.950571
2020-07-26T17:54:40
2020-07-26T17:54:40
281,369,953
0
0
null
null
null
null
UTF-8
Python
false
false
2,293
py
import os import pandas as pd from sklearn import ensemble from sklearn import preprocessing from sklearn import metrics import joblib import dispatcher TRAINING_DATA = '../input/train_folds.csv' TEST_DATA = '../input/test.csv' MODEL = 'extratrees' FOLD_MAPPING={ 0:[1, 2, 3, 4], 1:[0, 2, 3, 4], 2:[0, ...
[ "shaheer_zaman84@yahoo.com" ]
shaheer_zaman84@yahoo.com
6e93c2643e6548dad0624b73fc814a2b62bc57e5
86cf0e6a425a54452d3a401f0193d60b692e99cf
/chat/consumers.py
a6e528b2be9c89d72e1174cc03ff87139d01c4a4
[]
no_license
Chandan746/felixora
336242c1115f31b77cdccdc8499a1ccdc8954131
7980e4be6c91f2d37ab45632b1b4561b1b6186de
refs/heads/master
2022-12-15T07:48:28.354297
2019-07-03T10:31:20
2019-07-03T10:31:20
193,481,554
0
0
null
null
null
null
UTF-8
Python
false
false
4,761
py
from django.contrib.auth import get_user_model from asgiref.sync import async_to_sync from channels.generic.websocket import WebsocketConsumer import json from .models import Message import json from ibm_watson import NaturalLanguageUnderstandingV1 from ibm_watson.natural_language_understanding_v1 import Feature...
[ "chandan@gtpl.com" ]
chandan@gtpl.com
3a51822baafc23044111a837cfa2333102d2ba8b
a869f208770692f65c265563a11333d6577b1d94
/callback_python.py
6a4dbd97f0cd0194b3e8584e457ad764ef6c765d
[]
no_license
malep2007/python-scripts
8ea1c7fb78b5111348f5c4f54e084612f82647e4
e57c01f79447be3dcf193a427db6bbabe4a06665
refs/heads/master
2020-08-03T14:53:57.424520
2019-09-29T12:16:01
2019-09-29T12:16:01
211,792,498
0
0
null
null
null
null
UTF-8
Python
false
false
297
py
def copy_and_manipulate(array, callback): output = [] for i in array: output.append(callback(i)) return output def add_one(num): num+=1 # freaking weird that python needs to evaluate this before it is returned return num print(copy_and_manipulate([1,2,3], add_one))
[ "ephraim.malinga@gmail.com" ]
ephraim.malinga@gmail.com
65ed4e161dfa15a766e3541d97ca7beeebb6d745
1d9595555d45c9f31edc164275c392f9d4fc001a
/xmlutils/renderer/base.py
39d84cc6c8f5ddd5e1bce3a6a9d138dc13bd919a
[ "BSD-2-Clause" ]
permissive
tokibito/python-xmlutils
9a0f364df3c32b15d4ae58e3ccf07fb3c9e004e0
f173b8ef01fb740d097d1875f205f714982b5829
refs/heads/master
2020-07-25T07:52:37.899389
2010-03-30T11:55:52
2010-03-30T11:55:52
208,221,406
0
0
null
null
null
null
UTF-8
Python
false
false
145
py
class BaseRenderer(object): def __init__(self, *args, **kwargs): pass def render(self, node): raise NotImplementedError
[ "xxshss@yahoo.co.jp" ]
xxshss@yahoo.co.jp
d6fe144db743cefccee68f8094e6098598ddbc19
ded689b36fd765e0a881c500e5a960c42e2f9b2e
/kr_nol/main1.py
7225d3c7b05519a9024324fcb69f37e733b834fc
[]
no_license
GriZZly457/aprog
41c5dfdf5d247300568a79b04eb28b9437aefb6e
8fac86ba552671dad946cff3e0d7c68299a8a821
refs/heads/master
2021-01-19T12:11:57.245682
2017-04-11T19:32:27
2017-04-11T19:32:27
82,293,447
0
0
null
null
null
null
UTF-8
Python
false
false
2,855
py
from kivy.app import App from kivy.uix.label import Label from kivy.uix.gridlayout import GridLayout from kivy.uix.button import Button from kivy.properties import ListProperty, NumericProperty from kivy.uix.modalview import ModalView class TicTacToeApp(App): def build(self): return TicTacToeGrid(...
[ "noreply@github.com" ]
GriZZly457.noreply@github.com
e0e43c4676c47e3d279becd52e71ccb165ad2706
d25b972663622567b2821425540535cbb743edd6
/store/templatetags/store_extras.py
a2b2400034706bd5c00e0f49ef83076819cfc01b
[]
no_license
dlin99/E-Commerce-Website
4216d31b0caaaf39d87ec8fa2b1239c871842f81
7ff4015517ca039c91d217e3c3adf1396b7232f4
refs/heads/main
2023-02-08T05:52:42.254310
2020-12-30T13:37:59
2020-12-30T13:37:59
317,258,944
0
0
null
null
null
null
UTF-8
Python
false
false
527
py
from django import template register = template.Library() from .. filters import ProductFilter from .. models import Product @register.inclusion_tag('store/search_bar.html') def myfilter_search(): products = Product.objects.all() myFilter = ProductFilter(queryset=products) return {'myFilterSearchBar': myFilter...
[ "linycdanny@gmail.com" ]
linycdanny@gmail.com
c6ddb80fc7ad55e16f7e31c3afd45024cca8d9a0
ea9e9756f6b5b7022015049d92c399ee03cfde67
/知吾煮/AutoTest_DL/interface/test_upload.py
e094f84e214ffe6d284efa82d6cc51de6ce3045b
[]
no_license
Godlovesli/jiaojiewendang
724e0f01028cc5cbcc9ce5807bd057e15172eb91
579551eabfc83226804ccfbf8b868192614d7166
refs/heads/master
2020-04-05T03:38:41.212627
2018-11-07T09:31:51
2018-11-07T09:31:51
156,521,937
0
1
null
null
null
null
UTF-8
Python
false
false
3,890
py
#!/usr/bin/env python #_*_ coding:utf-8 _*_ # -*- __author__ = 'feng' -*- from base.base import MyTest from base.login import Login import unittest import json from HTMLTestRunner import HTMLTestRunner import urllib, urllib2 from poster.encode import multipart_encode from poster.streaminghttp import register_openers fr...
[ "1107095622@qq.com" ]
1107095622@qq.com
1fabc8198a77fa765958a48dbafe737d2ad323d9
81bfc2fe935d1b173cb92b4020cdee575cd5d268
/Flashcards/flashcards_api/urls.py
b3dee1b4f9b3d321f7a28c24d8c629f80f4e3aaf
[]
no_license
jdbooth9516/flashcards-backend
27deff2c7af4062228d958eed69b86a6c41030bd
13848d5386a0cbb780d8b77140dd6096a53e60f0
refs/heads/main
2023-06-12T04:13:52.520358
2021-07-02T16:52:30
2021-07-02T16:52:30
381,786,962
0
0
null
null
null
null
UTF-8
Python
false
false
398
py
from django.urls import path from . import views urlpatterns = [ path('categories/', views.CategoryList.as_view()), path('category/<int:pk>/', views.CategoryDetail.as_view()), path('cards/', views.CardsList.as_view()), path('cards_category/<int:category_id>', views.CardsByCategory.as_view()), path...
[ "jereimah.boothphotog@gmail.com" ]
jereimah.boothphotog@gmail.com
552877857c701781809eee505c222d299fae243a
3b9bf497cd29cea9c24462e0411fa8adbfa6ba60
/leetcode/Problems/1032--Stream-of-Characters-Hard.py
9ce827464f36efa080a24e21215caae9b4642bae
[]
no_license
niteesh2268/coding-prepation
918823cb7f4965bec096ec476c639a06a9dd9692
19be0766f6b9c298fb32754f66416f79567843c1
refs/heads/master
2023-01-02T05:30:59.662890
2020-10-17T13:12:34
2020-10-17T13:12:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,023
py
class TrieNode: def __init__(self): self.children = defaultdict() self.isWordEnd = False class StreamChecker: def __init__(self, words: List[str]): self.root = TrieNode() self.maxLen = 0 for word in words: self.maxLen = max(self.maxLen ,len(word)) ...
[ "akualajayaprakash@gmailcom" ]
akualajayaprakash@gmailcom
f1fee6cf1300cdb73b74efeaee8d74defbdbb0a6
f5082776d591b0fefe68d47b70f70ab5554c84ee
/coursebuilder/tools/etl/mapreduce.py
6e71cd200733dba5993492773ae39093b689d6cc
[ "Apache-2.0" ]
permissive
PerceptumNL/cb-taaltransfer
e5034cb5ac46619cf9b3db54374e1d22b27e30a7
09cb701a9dc71a417f05ec66f2eca5b92fd8f30b
refs/heads/master
2021-06-30T18:23:05.082782
2020-07-22T06:51:06
2020-07-22T06:51:06
15,673,739
0
0
null
2021-06-10T19:23:07
2014-01-06T12:44:04
Python
UTF-8
Python
false
false
2,856
py
# Copyright 2013 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
[ "johncox@google.com" ]
johncox@google.com
0024580195b1682d85835c6550fe74fb339acd05
58958291be6c116a821c23d10c128eb1a3d5b647
/try1.py
6b1c07958ba8100f469b096c73d4fb051a44c49a
[]
no_license
jshen28/IE511_Project
f28afd295344a7ae7a5fad296d0ae012ff39a0b5
63fffc5a91d5a70b18bb63c4381e9efaa125e529
refs/heads/master
2021-01-10T09:25:20.683571
2016-04-06T04:13:49
2016-04-06T04:13:49
55,574,731
0
0
null
null
null
null
UTF-8
Python
false
false
1,463
py
import matplotlib.pyplot as plt import csv from sklearn.cluster import KMeans import time start_time = time.time() travel_rate = 20000/60 time_start = 0 time_end = 60*24*7 max_delivery_time = 60*4 # import data from .csv file csv_file = 'finalProject.csv' f = open(csv_file, 'r') reader = csv.reader(f)...
[ "yshxxsjt715@gmail.com" ]
yshxxsjt715@gmail.com
a883655d8a3bb0994ede721e1eb19c5f49814972
17856275ae788e15d3b089dd2f9f291488a0af78
/modules/post_details.py
30721d6d9358938a23693f952d8171cc9c022371
[]
no_license
Bawya1098/OfficeCafe-Projects
71a603cb1e307b039ed414ebc8421e25d46811f6
346be83bcdee9e410e4ba6980bed49b24f70ca2c
refs/heads/master
2020-04-22T03:17:33.667193
2019-03-11T06:40:31
2019-03-11T06:40:31
170,081,664
0
0
null
null
null
null
UTF-8
Python
false
false
270
py
def post_data(connection, user_data): cursor = connection.cursor() cursor.execute("""insert into orders(employee_id,cart_items) values(%s,%s);""", (user_data['employee_id'], user_data['cart_items'])) connection.commit() cursor.close()
[ "admin@Intern3-MacBook-Pro.local" ]
admin@Intern3-MacBook-Pro.local
a26c1d9dfd41824c8f409eb5017d9a597fd99b2c
aadd41b3fe882d1ee97f6444abfa4dffa36f6901
/ch9_files_I/O/ch9_prob5.py
91dd43597c661d309afcf364a864ebd32700fe23
[]
no_license
Varsha1230/python-programs
92f731ec7cf2cff35a8130a979b869b708bd0440
75fb6bb97158461d958c447e905ca6f6de2a37c9
refs/heads/main
2023-05-02T11:05:20.913636
2021-05-21T12:35:55
2021-05-21T12:35:55
369,519,719
0
0
null
null
null
null
UTF-8
Python
false
false
237
py
words = ["donkey", "kaddu", "mote"] with open("ch9_prob5_sample.txt") as f: content=f.read() for word in words: content= content.replace(word, "$%^@$^#") with open("ch9_prob5_sample.txt", "w") as f: f.write(content)
[ "varsharuhela978@gmail.com" ]
varsharuhela978@gmail.com
36e18af1da99dfdcd27ba32f8099959b32fc5c3c
ea8fe9eb1c9071af603101340eb30d50602df1ac
/components/openindiana/illumos-gate/depend_dups.py
6e0a8925c694df62dc7e474cf172ba404cecc258
[]
no_license
PluribusNetworks/pluribus_userland
b3c01c63f631df09220434a863267cd5a1709b6f
3872db628cd187cdada40aa3b3607b143160ef7c
refs/heads/master
2020-05-21T14:05:39.640281
2019-01-31T19:53:43
2019-01-31T19:53:43
53,575,878
1
6
null
2019-01-31T19:53:44
2016-03-10T10:27:19
Python
UTF-8
Python
false
false
1,255
py
import os import sys # # A simple python script to prune duplicate dependencies in # the given manifest. The longest matching dependency entry # for the fmri is retained. # This also strips java dependencies. We have a transform rule # but somehow that does not work properly. # mfname = sys.argv[1] print "Checking m...
[ "moinak@ike.pluribusnetworks.com" ]
moinak@ike.pluribusnetworks.com
69038c5cd386aad26d7eb219c993cb3471a94ddf
726869ae8de57c92f2942aa483238e97d05a90c1
/migrations/0030_auto_20210225_0654.py
164cf214d31e734c1bab82be00c6ecc58195eb1e
[ "MIT" ]
permissive
PyUnchained/books
f32f69549eced5bf296b23bd5dabb93909b45993
dd0732f17a9486d47de3f4378014109242a85841
refs/heads/master
2023-07-24T04:26:48.228650
2023-07-03T09:26:39
2023-07-03T09:26:39
95,307,435
0
0
null
2023-07-16T00:38:48
2017-06-24T15:54:31
Python
UTF-8
Python
false
false
843
py
# Generated by Django 3.1.7 on 2021-02-25 04:54 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('books', '0029_auto_20210225_0600'), ] operations = [ migrations.RemoveField( model_name='billingmethod', name='day_o...
[ "tatendatambo@gmail.com" ]
tatendatambo@gmail.com
5b76d4be90b266d54034487eb30f407f5d36d8ce
cf179a36a1241c7254d341ae9607741ab0550669
/config/settings.py
cb1656d55af5ab51b37a18741a2f60f121e4f50f
[]
no_license
kmnkit/airbnb-clone
118815d3cda01d0cd1ba6fee30b3c7176557a270
951e7b49a66ed775351820af2a111dda61d33584
refs/heads/master
2023-01-10T05:53:15.913483
2020-11-09T02:11:00
2020-11-09T02:11:00
291,705,519
0
0
null
null
null
null
UTF-8
Python
false
false
4,503
py
""" Django settings for config project. Generated by 'django-admin startproject' using Django 3.1. For more information on this file, see https://docs.djangoproject.com/en/3.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.1/ref/settings/ """ import os from ...
[ "tokyobuy2020@gmail.com" ]
tokyobuy2020@gmail.com
513a69288bd9e84c8eb4fe2151161344ad85ab08
0b8c187f15d4aa440b70a68bd1d6dab233042b06
/manythings/data/util.py
675152fe116e6b1efde374a95bcc8faa07b0a17b
[]
no_license
ZithaChitra/seq2seq_lstms
0d5af8ef043920da403fe9df6ceebf99037d4203
33b49e73475dc98703029465ea7358187e9ac5c7
refs/heads/master
2023-04-22T21:01:34.952387
2021-05-12T08:33:23
2021-05-12T08:33:23
362,598,982
0
0
null
null
null
null
UTF-8
Python
false
false
500
py
import tensorflow as tf from zipfile import ZipFile import os import pandas as pd def download_data(download_dir, filename, url, unzip=True): # download file from given url # download dir is an absolute path file_path = os.path.join(download_dir, filename) _ = tf.keras.utils.get_file( file_path, url, ) if ...
[ "" ]
ce2930ab81c89075512993b021e488aa0415ac59
5ba324712de939bfac77f90f034170e45a9cabf8
/lib/solutions/hello.py
783895ac860c834f05226e78bbafe0eed362346d
[ "Apache-2.0" ]
permissive
DPNT-Sourcecode/CHK-tzfm01
d9e994469159a660e3e16519035781be1224ca24
38971d6b00ba2382e5d3ec2b1837307ffc2f81fe
refs/heads/master
2021-04-06T20:49:26.257611
2018-03-15T03:52:22
2018-03-15T10:28:53
125,350,803
0
0
null
null
null
null
UTF-8
Python
false
false
158
py
# noinspection PyUnusedLocal # friend_name = unicode string def hello(friend_name): return 'Hello, {}!'.format(friend_name) return 'Hello, World!'
[ "sbx_user1059@ip-10-11-30-249.eu-west-2.compute.internal" ]
sbx_user1059@ip-10-11-30-249.eu-west-2.compute.internal
2362ca8375d6a7ef12b56fa11fedf41761d527b1
59bccc3e51a75d75553816750f28b1852a1a92c3
/scraper/src/util.py
d00e91d0a7f0ba1c98eb5441f2984a982ae25358
[ "WTFPL" ]
permissive
I4-Projektseminar-HHU-2017/i4-projekt-wissenstechnologien-juma-1
7f537f98b3281b11dac27f9c9eee094776788c47
2ac42913d1b670dfcd5eb77fad2a61287c605c0f
refs/heads/master
2020-12-30T12:00:46.673851
2018-10-23T21:07:48
2018-10-23T21:07:48
91,489,533
2
1
null
null
null
null
UTF-8
Python
false
false
70
py
def is_empty(string: str): return string == "" or string is None
[ "MarcoKluin@gmx.de" ]
MarcoKluin@gmx.de
29d42d1bff3dd0bdf00a02dbe0b8c100d712d1c3
41a153802eca2f0ae42afbeac1ff39d10f0ba819
/apps/randomWord/views.py
06573e7cf28d3c1666df1571dc99a287d3a9471b
[]
no_license
JonathanBallard/Coding_Dojo_Django_Dojo_Survey
b4850049f8ff9e8c40d74e176831766ccd267fee
9381dfb636980b6f3cc9873f256e712656f29189
refs/heads/master
2022-04-16T12:35:21.656288
2020-04-14T02:27:46
2020-04-14T02:27:46
255,434,296
0
0
null
null
null
null
UTF-8
Python
false
false
529
py
from django.shortcuts import render, redirect from django.utils.crypto import get_random_string # Create your views here. def randomWord(request): if 'counter' in request.session: request.session['counter'] += 1 else: request.session['counter'] = 1 request.session['word'] = get_rando...
[ "asgardschosen@gmail.com" ]
asgardschosen@gmail.com
98951e852f9895d02244f403cf8c68a4f9120a45
289f2181257f1414c768d855d8e0775f7a999f0c
/simple-backend/nlpviewer_backend/migrations/0008_crossdoc.py
0c7f1ea9a0062e42cee0a0a6a82e257f105677ef
[ "Apache-2.0" ]
permissive
stevezhang1999/stave
3bf8fed3499572005f51dc6825b65825e7c54c55
3380fe22cbd02e1d0b85f59663765f8010c47340
refs/heads/master
2023-03-12T04:53:44.337214
2021-02-22T08:41:57
2021-02-22T08:41:57
273,274,069
0
0
Apache-2.0
2020-11-12T09:17:56
2020-06-18T15:26:55
TypeScript
UTF-8
Python
false
false
795
py
# Generated by Django 3.0.4 on 2021-01-12 01:40 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('nlpviewer_backend', '0007_auto_20210111_1741'), ] operations = [ migrations.CreateModel( name='...
[ "noreply@github.com" ]
stevezhang1999.noreply@github.com
86ce0c464dc5c3d4926f32b3d14004dc7865e36e
a854938dac471452c40e73922ebfa6f30a07bbbd
/src/word_vector_functions.py
3c90fa8691c5a936688e9326c3c7237f46383596
[]
no_license
christineegan42/apple-m1-sentiments
921f91f6649c83ef21cb93658c817cef439d4c25
76425b42e451165db5d491de6d86fba713c7e22f
refs/heads/main
2023-05-08T21:31:20.134889
2021-05-25T15:31:22
2021-05-25T15:31:22
355,280,620
0
0
null
null
null
null
UTF-8
Python
false
false
4,173
py
import pandas as pd import numpy as np import re import os from os import listdir from os.path import isfile, join from datetime import datetime from gensim.test.utils import common_texts from gensim.models.doc2vec import Doc2Vec, TaggedDocument import general_functions import eda_visualizations def create_vocab...
[ "noreply@github.com" ]
christineegan42.noreply@github.com
b736d4da8c40ee8114f2dd66bf8029979c964015
a75b102f9d4151a23c8c71a80f8899a182ec24c3
/addColumns.py
5a72f852cf47431b06af817639d5d65803eb1308
[]
no_license
Anuja04/Big-Data-Visualization-Made-Easy
f145cc4801a68b44a196d16e49cdf6279419a204
b0e1760f7cd3282604c83140a564887eae16b62b
refs/heads/master
2020-03-19T11:00:07.763185
2018-06-07T04:10:14
2018-06-07T04:10:14
136,420,174
0
0
null
null
null
null
UTF-8
Python
false
false
12,101
py
import pandas as pd import numpy as np pd.options.mode.chained_assignment = None # Load data df= pd.read_csv("/Users/anujatike/Documents/sem3/CS235/Project/data/us-traffic-2015/new_data copy.csv") #df=df[:1500] # Adding column "month_name_of_data" df['month_name_of_data'] = np.where(df.month_of_data == 1, 'January...
[ "noreply@github.com" ]
Anuja04.noreply@github.com
d0ccdcb22aee8244f6c504a1a44006abc661ad74
84961c5b8a190f7e2a35107bc9abf2259617e8c2
/Chapter03/textsearcher.py
89c42c05fa9249bd3a914425f3de852567a15765
[ "MIT" ]
permissive
PacktPublishing/Software-Architecture-with-Python
f1002dafba83d74a7096dfad4ac4cd338ee9e425
446b78ba0f5e23039ae0de71fb433424170fac67
refs/heads/master
2023-02-06T11:11:46.699458
2023-01-30T09:38:05
2023-01-30T09:38:05
90,152,034
126
91
MIT
2019-05-08T06:46:58
2017-05-03T13:28:23
Python
UTF-8
Python
false
false
1,261
py
# Code Listing - #7 """ Module textsearcher - Contains class TextSearcher for performing search on a database and returning results """ import operator class TextSearcher(object): """ A class which performs a text search and returns results """ def __init__(self, db): """ Initializer - keyword and ...
[ "pavanr@packtpub.com" ]
pavanr@packtpub.com
9fef8d5dc64926520d73300c46c095a61f502d6b
9045393c9ace1cfb50b4c03efaafcf815ccce472
/tests/test_flow.py
5ea479c7f7be45454b6d21e1c7f9b4ed9adb4aaf
[ "MIT" ]
permissive
pombredanne/single_file_module-project
554aa3aaa63e32eb1c5473085b968b1160eef9ec
243f4c9cd9e6ef04ec7e8a48a0fed9645d6933b2
refs/heads/master
2021-01-23T06:06:07.098548
2017-07-14T21:53:35
2017-07-14T21:53:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
661
py
#!/usr/bin/env python # -*- coding: utf-8 -*- import random import pytest from sfm import flow def bet_and_win(lower=1, upper=100, threshold=50): value = random.randint(lower, upper) if value > threshold: return value else: raise Exception("%s point, You Lose!" % value) def test_try_nti...
[ "husanhe@gmail.com" ]
husanhe@gmail.com
4244464b126a7248ccabc7b6b8b89075af0ce22d
36b59fc29ca90f2508ed1585e49bc760a531744a
/src/LR.py
f945a8b44b416e0bf29f0c0f700ff6402dd39fa9
[]
no_license
robert1636/Naive-Bayes-and-Logistic-Regression
92864fa30cb7a94cbadaf72e238be76e28f2f5f7
ae2736fd37538003bfb761cdb11fe3cb39a5c9fc
refs/heads/master
2020-05-02T16:53:37.443351
2019-03-27T22:12:55
2019-03-27T22:12:55
178,081,942
0
0
null
null
null
null
UTF-8
Python
false
false
4,147
py
# LR solution # Load libraries import os import numpy as np import math def sigmoid(scores): return 1 / (1 + math.exp(-scores)) # iterate over files in Ham directory in Train folder # path to training sets path_train_ham = "../train/ham" path_train_spam = "../train/spam" # path for testing files path_test_ham = ...
[ "robertyu1636@gmail.com" ]
robertyu1636@gmail.com
bc15a2f6e4d4c50df75459fb05f4519681855012
0edebba2aa370036fe8432b4681384699c51b44c
/fileup/auth.py
f4c3498fcf8980932454138f778a8b7c568215be
[]
no_license
ypmagic/fileapp
694494b53cbcc9fad2d3c986c5d6bfa02b8dc3ab
8f26001e005063311e9788e2a7526c36c0a4ceea
refs/heads/main
2023-01-24T21:06:39.168489
2020-12-09T13:00:05
2020-12-09T13:00:05
319,921,662
0
0
null
null
null
null
UTF-8
Python
false
false
2,600
py
import functools from flask import ( Blueprint, flash, g, redirect, render_template, request, session, url_for ) from werkzeug.security import check_password_hash, generate_password_hash from fileup.db import get_db bp = Blueprint('auth', __name__, url_prefix='/auth') @bp.route('/register', methods=['POST', 'GE...
[ "young_park@brown.edu" ]
young_park@brown.edu
81d99025fa0bdf8cff8384fb4efdb344ec76391d
7fc02abc6db27c091c3162b11cfb415b44e0e8d2
/Simulation.py
9890da1f0416562e314517014d6d2e3b5d7ec35a
[]
no_license
dariaugin/gruppa_oop
d7b42fc0ac7c17ab7ec0db4dee4d57354e1abdcc
6ae4b5e26e8e24a3586ec732f4af2e6f1a417209
refs/heads/master
2023-02-08T01:02:49.381335
2020-12-29T09:01:42
2020-12-29T09:01:42
294,990,569
0
0
null
null
null
null
UTF-8
Python
false
false
6,610
py
import Animal, Map, Statistics from Communicator import Communicator import keyboard, random, copy, math, asyncio def sin(day, T): return abs(math.sin(day * (math.pi / T) % math.pi)) class Simulation: mode={"sin":sin,"const":None} #T=30 def __init__(self, ID, statistics, environment, occupyPerce...
[ "noreply@github.com" ]
dariaugin.noreply@github.com
f7946d1cdee84c4caffc1e111a52a8eb5cea7940
cccffb042aa329fa79bb75a322876fc6cc43cb60
/hangman.py
9db3861a539533f8e4e99f569a8c3cf89286beb7
[]
no_license
pscretn/Hangman-Using-Python
938c2dfd59c22ffc5fe25027758bad65f47465bf
c8f7564672cc7716afae91cc3a8fcd101e09d1ef
refs/heads/master
2023-02-26T15:40:32.980576
2021-02-03T11:50:15
2021-02-03T11:50:15
335,526,669
1
0
null
null
null
null
UTF-8
Python
false
false
3,610
py
import random #inorder to work random functions we need to import 'random' library at first def hangman(): # here we define a functions called 'hangman()' , we use function whenever required word = random.choice(["computer","earth","water","aeroplane","satellite","robot","helicopter"]) # 'random.choice' is us...
[ "paulsabu.123@gmail.com" ]
paulsabu.123@gmail.com
45b8401b6a62a93eb164bfe3b2d5abddd7d5d74b
b1fcab0c387cb003183b96fee77554e8102958f4
/NewCoderTrainings/LeetCodeProblems/51-N_Queens.py
9e3956976af075c53e72eaf10d0c89b14ccb2aa1
[]
no_license
Optimus-Prime-X/LearningCode
a4b9ff58d09753440a784f0a0809b081d478c567
f3522ddea58a7c9fb426e26d148732b77e00a722
refs/heads/master
2020-03-29T13:15:42.225747
2018-11-23T07:29:15
2018-11-23T07:29:15
149,949,193
0
0
null
null
null
null
UTF-8
Python
false
false
1,254
py
# 每个皇后的横坐标和纵坐标不能相同,因此可以设置一个list,其长度为n,且每个元素各不相同,代表不同的皇后 # 如Queen[i] = j代表皇后在(i,j)坐标 # 同时皇后与皇后之间应满足x1 - y1 != x2- y2 and x1 + y1 != x2 + y2 # 因此可以再设置两个list分别保存xi- yi 和xi+ yi的结果,每次判断第i行的n个皇后是否可以添加时,需要同时判断是否满足不在这三个list的条件 class Solution: def solveNQueens(self, n): """ :type n: int :rt...
[ "qingdong1994@163.com" ]
qingdong1994@163.com
acca603b4ed2b7bfeb5522d310bae7c14a964ec8
148883294416934af5d7825a6c63109bc16d684a
/Task 0.5.py
e295633c8cb59160bb0963e6a779084279e89762
[]
no_license
Mcperson7/Level-0-Coding-Challenge
44f346115984f13246cabde2773f5e25337036a7
64faf6f7347e760305a4be1890bbfd1675b15d77
refs/heads/main
2023-03-26T11:24:04.604156
2021-03-18T07:27:38
2021-03-18T07:27:38
346,590,089
0
0
null
null
null
null
UTF-8
Python
false
false
293
py
from math import sqrt def area_of_a_triangle(side1,side2,side3): semi_perimeter = (side1 + side2 + side3)/2 area = round(sqrt((semi_perimeter*(semi_perimeter-side1)*(semi_perimeter-side2)*(semi_perimeter-side3))),2) return area print(area_of_a_triangle(50,50,50))
[ "40671726+Mcperson7@users.noreply.github.com" ]
40671726+Mcperson7@users.noreply.github.com
82acc8ecc7c0b4941e23760e4b2601fd2df73b3c
f09e13e9052662a22f91b6b7cff0bb7dbdb9c50a
/'tests'/buttonTest.py
63e041c9953c4332dbcef93ce4555aa8d37f7f43
[]
no_license
basilthebeagles/paulsRaspberryPiThing
22c680a342b44f44ffbb5e6ea9d9dfec75770872
0a46afabc0337c66ebd025c52730c33aec64bddc
refs/heads/master
2020-12-24T14:44:53.600840
2015-04-09T18:32:10
2015-04-09T18:32:10
33,258,359
0
0
null
null
null
null
UTF-8
Python
false
false
238
py
import RPi.GPIO as GPIO import time GPIO.setmode(GPIO.BOARD) GPIO.setup(37, GPIO.IN) while True: if(GPIO.input(37) == False): print "ON" else: print("OFF") time.sleep(0.5)
[ "johnjoestack@gmail.com" ]
johnjoestack@gmail.com
5b3c899903378bc31aeee6e2a698d7b316d2b9ed
a1352de184b2a60295b90ba5472579c6dc8abb29
/misc/python/strucdump.py
a7ea13d9294eccf04d1da1d6211a77fe61beb026
[]
no_license
gunmetalbackupgooglecode/corkami
2b5e99b1cfd94f716e35293e915d536e468aec75
1a52e71ec205f1cb7ce493789474209dd1b47911
refs/heads/master
2016-09-16T06:33:52.261541
2015-02-11T18:41:13
2015-02-11T18:41:13
32,167,637
25
11
null
null
null
null
UTF-8
Python
false
false
2,465
py
#simple hex structure viewer #TODO: classify! # Ange Albertini, BSD Licence, 2011 import struct import sys fn = sys.argv[1] last = -1 lastdata = [] lastrend = -1 INDENT = "\t" COLS = 2 tags_types = [ ('BOGUSTYPE', 50829), ] TAGS = dict([(i[1], i[0]) for i in tags_types] + tags_types) for i,j...
[ "ange.albertini@gmail.com" ]
ange.albertini@gmail.com
1050b82b9da5873cf6dc09d0c329233dc7c57e01
8bcffa4eb3bcc413985994891a4f9b4435faba1f
/Product/Product/settings.py
3bdce450139c84cff10621c1c19f3fa7af011d67
[]
no_license
HoangUkr/JIL_Week_4
6e377907528de67f45af699cd458950112f75640
d41da81aa9f7176a72c879241b118c9ffb63c69b
refs/heads/main
2023-04-23T19:08:00.836467
2021-05-10T00:54:43
2021-05-10T00:54:43
345,107,627
0
0
null
null
null
null
UTF-8
Python
false
false
3,532
py
""" Django settings for Product project. Generated by 'django-admin startproject' using Django 3.1.3. For more information on this file, see https://docs.djangoproject.com/en/3.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.1/ref/settings/ """ from pathlib...
[ "hoangukraine@gmail.com" ]
hoangukraine@gmail.com
722b1be4a79d399c34f148d8cb0013c50dbce0c8
77095dafec7f6009b4a66259eebd53278b300018
/create_new_command.py
cce274e61895c7f6119dd809b36de441a7bd5858
[ "MIT" ]
permissive
Seysa/gulag_bot
948abf29686444888802ebf9061b59b52a3b7eb0
317216413ef93492a5eccba2eebff46ed4c0c243
refs/heads/main
2023-08-06T09:19:32.260360
2021-09-29T18:21:30
2021-09-29T18:21:30
332,081,315
1
1
null
2021-01-26T14:08:45
2021-01-22T22:53:27
JavaScript
UTF-8
Python
false
false
568
py
import sys if(len(sys.argv) < 2): print(f'usage: {sys.argv[0]} <file_name>') exit(1) command = sys.argv[1] path = f'./commands/{command}.js' file = open(path, "w") string = "\ const permissions = require('../utils/permissions');\n\n\ module.exports = {\n\ \tname: '" + command + "',\n\ \tdescription: 'n...
[ "garion.goubard@etu.u-bordeaux.fr" ]
garion.goubard@etu.u-bordeaux.fr
e3863a265db5c7c39dd3f86727766c78fc33f2b4
d498d66fbe9bae2f86161f5c157d52c9433c6a8c
/mysite/mysite/urls.py
a577c6e46d6f5fde2d75a5260689f6c54dccb1ee
[]
no_license
sulembutproton/promosys
9330176d175f29d1e86991d93570981f6cad8317
2f67f08e2f07ab9ae0f25d9ac67905ebb1bbbda2
refs/heads/master
2023-03-11T20:31:06.152814
2021-03-01T15:52:31
2021-03-01T15:52:31
343,463,484
0
0
null
null
null
null
UTF-8
Python
false
false
3,291
py
""" samples URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.0/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-base...
[ "sulembut@protonmail.com" ]
sulembut@protonmail.com
1631a3c546af4cfff54f3f415eee97ed85e68af7
55a34633d3f71da6877c961fa74acea5ceec1a03
/test_wheel.py
bbccc48e711b1f7f44e444f269b0f64da025d579
[]
no_license
DLDavid/oodesign
e36f3cd9e27e66885126d05fcf29cf1fe2150c8f
2ec6a10af41ecaa7af3c582a72633e010692c566
refs/heads/master
2020-03-27T08:12:58.212644
2018-03-22T07:56:43
2018-03-22T07:56:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,803
py
import random from roulette import Outcome, Bin, Wheel class TestWheel: def setup_method(self): self.wheel = Wheel(1) def test_initialize(self): assert len(self.wheel.bins) == 38 for b in self.wheel.bins: assert len(b) > 0 assert len(b) < 20 def...
[ "mochi.ph@gmail.com" ]
mochi.ph@gmail.com
896e0e494e4cb20bef7be03f4da8958384fb740a
e8a607fe2d74b7fb7efefe93da769e7c69d5dc46
/bonvoyage/urls.py
403f0db2aeab7fe625ce9760cfbe025bc085c340
[]
no_license
Anthonyyma/BenchDate
c01771fb4a02633c03e4ce117798debe36d31067
bdd2c508c8dd86b8567d9ed703a7a3047863362e
refs/heads/main
2023-07-25T18:42:06.175568
2021-08-25T06:30:35
2021-08-25T06:30:35
392,185,580
0
1
null
null
null
null
UTF-8
Python
false
false
796
py
"""bonvoyage URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-bas...
[ "anthony4@ualberta.ca" ]
anthony4@ualberta.ca
4a4906dc31e3d88abba2a6f1a4729ce2b78aa107
6141168b57a1887d06efd538a3e70f1a0006aa43
/Question8.py
f3e6fb2cbf6fb88c117eb487194d99c48b52965f
[]
no_license
surajshrestha-0/python-Basic-II
1f6c0f090db2080af86dd5a9be93958b96770542
39634dd8f302279c956b4bc34a2ad2835133c36e
refs/heads/master
2022-11-24T18:17:15.108063
2020-07-04T19:17:54
2020-07-04T19:17:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
513
py
""" Write a function, is_prime, that takes an integer and returns True if the number is prime and False if the number is not prime. """ def test_prime(input_number): if input_number == 1: return False elif input_number == 2: return True else: for i in range(2, input_number): ...
[ "surajshrestha.me@gmail.com" ]
surajshrestha.me@gmail.com
f93762fe1aa074c2ef3f7f2ef70eabd1dae902ce
c986a0ec9efea19a3ef4e7a09a576e9b7ea0597c
/lib/models/pose_higher_hrnet.py
16ac4b6991ddc647508e9c457c9490f398d8bfe8
[ "MIT", "LicenseRef-scancode-generic-cla" ]
permissive
Yu-Yy/PointPose
4413f2e1a3592ecaae389341c3412b50c2ace4c7
ff5ba08e88625b75f2e0b0454db4de67fb950f09
refs/heads/main
2023-04-29T07:52:07.421623
2021-03-17T10:19:15
2021-03-17T10:19:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
23,371
py
# ------------------------------------------------------------------------------ # Copyright (c) Microsoft # Licensed under the MIT License. # Written by Bin Xiao (leoxiaobin@gmail.com) # Modified by Bowen Cheng (bcheng9@illinois.edu) # ------------------------------------------------------------------------------ fro...
[ "pzy20@mails.tsinghua.edu.cn" ]
pzy20@mails.tsinghua.edu.cn
25997cf73ad2f20664bbecede1723b4ce767e403
6cbb667205d6e404c8b1615bd539443beac11db2
/scripts/process.py
aa525b88b4a5f67ec3f4b764efdee08b57e56ddc
[]
no_license
smartrus/kenneth-french-data-library
94f90b8215406fce7f89594c94677d0f7c39e348
e93795c92f1befedada6634d2c6bebb87cee4a38
refs/heads/master
2021-05-20T09:03:52.934324
2020-04-02T09:41:00
2020-04-02T09:41:00
252,213,515
0
0
null
null
null
null
UTF-8
Python
false
false
1,461
py
import re import csv import zipfile import urllib.request import string from datetime import datetime from io import StringIO url = "http://mba.tuck.dartmouth.edu/pages/faculty/ken.french/ftp/5_Industry_Portfolios_CSV.zip" urllib.request.urlretrieve(url, "../archive/source.zip") with zipfile.ZipFile("../archive/sourc...
[ "rustemabd@gmail.com" ]
rustemabd@gmail.com
48c1870d0f0c83765abb1939c9d76dc4d45bcd65
22510721f57db1502717c1f6dd753a7cdf288e65
/HW1-1/simulate_train.py
d5f80d3f53fdf338afc80ab515e6abe21ed1f57c
[]
no_license
machineCYC/MLDS2018SPRING
85b5bc822c34b197279f2a08cb74eec6d3d69f97
809c1f8ecc04cca324caa6889880d994abb53bd7
refs/heads/master
2023-04-09T17:29:52.807148
2020-01-05T06:12:15
2020-01-05T06:12:15
144,601,789
1
1
null
2023-03-24T22:31:33
2018-08-13T15:54:18
Python
UTF-8
Python
false
false
4,173
py
import os import argparse import numpy as np import tensorflow as tf import matplotlib.pyplot as plt from model.basic_model import shallow_model from model.basic_model import medium_model from model.basic_model import deep_model from src.utils import count_model_parameters def main(args): # parameters batch_...
[ "yenchen0416@gmail.com" ]
yenchen0416@gmail.com
faf4840b8226c54ecf73dd9b9b3653f997b6389a
0ec9575e348417a76d678bdeef5dc8e659752bc6
/classes-2.py
b9a2f3513014681a008ad4f05af3be97a8d4698e
[]
no_license
vurise/PythonClasses
f254c006d65661a25217f16d5dfbfd9e78d71b85
66a155e5c79db5ce166784a98eb0d7372f081d36
refs/heads/master
2022-04-20T14:18:49.788931
2020-04-10T18:16:18
2020-04-10T18:16:18
250,340,751
1
0
null
null
null
null
UTF-8
Python
false
false
1,207
py
#classes encapsulates 2 thngs- variables / attributes and functions/methods #recangle class- #length -var #width- var #area- funct/ method / var #perimeter - funct #diagnol- var #color- func #constructor/ init method #1. function #2. this function gets automatically invoked when i make an instance #3. to...
[ "noreply@github.com" ]
vurise.noreply@github.com
875105b6c57c4ab622ca57f633cce5b1a7a75255
ca089d2a21fe6384f4c620c8099a10b473710ac8
/login_ui_TaiNgo.py
29ba545c0292012a708abc4e48df1b922eb17de8
[ "MIT" ]
permissive
NoNameGr/NoName
62abeb325e671bd511c841772d70358a9b267cd6
e437ada090612bb44de0524affb66348537eda56
refs/heads/master
2022-11-30T20:13:24.660718
2020-08-12T08:04:09
2020-08-12T08:04:09
283,539,092
0
2
MIT
2020-07-30T04:24:09
2020-07-29T15:43:34
Jupyter Notebook
UTF-8
Python
false
false
25,566
py
from PyQt5 import QtCore, QtGui, QtWidgets class Version(object): def setupUi(self, Frame): Frame.setObjectName("Version") Frame.resize(452, 296) self.label_3 = QtWidgets.QLabel(Frame) self.label_3.setGeometry(QtCore.QRect(110, 100, 91, 81)) font = QtGui.QFont() fo...
[ "noreply@github.com" ]
NoNameGr.noreply@github.com
1f52fc7b98a2980e9da9429774fccee2b8e054d2
ba8d566fe1fca8584601d70e209fef358d5aea16
/pyntcloud/sampling/s_mesh.py
5eb979a4acd73d38bf46e280431bc1d48fbb5e2b
[]
no_license
threerivers3d-jc/pyntcloud
6d316954fdedbd0d336e51ca0c887913f077c6cb
81311d4cbca037a755353dc5fcf80acad9189513
refs/heads/master
2021-01-21T15:26:53.939132
2017-06-21T17:41:48
2017-06-21T17:41:48
91,844,119
0
0
null
2017-05-19T20:46:30
2017-05-19T20:46:30
null
UTF-8
Python
false
false
3,658
py
import numpy as np import pandas as pd from ..base import Sampling from ..geometry.areas import triangle_area_multi class Sampling_Mesh(Sampling): """ """ def __init__(self, pyntcloud, rgb=False, normals=False): super().__init__(pyntcloud) self.rgb = rgb self.normals = norm...
[ "daviddelaiglesiacastro@gmail.com" ]
daviddelaiglesiacastro@gmail.com
a4109458f7d4210d4866f1965a108d5fb0fbd235
b99322aa381b16ab4710e492bdc86941ec0ae26c
/ironman.py
f3dda5325e1a91f3ace82899dd9335a2ba7ac9aa
[]
no_license
hk17672591/ironman
93f04c0f2bd740cfd61305089a1182fd51b334c8
9865b77c71a7c0bd2092b57c8fc5480e782fd527
refs/heads/master
2022-12-05T16:57:00.050672
2020-08-22T06:02:18
2020-08-22T06:02:18
288,892,483
1
0
null
null
null
null
UTF-8
Python
false
false
18,745
py
#!/usr/bin/python2 #coding=utf-8 import os,sys,time,datetime,random,hashlib,re,threading,json,urllib,cookielib,requests,mechanize from multiprocessing.pool import ThreadPool from requests.exceptions import ConnectionError from mechanize import Browser reload(sys) sys.setdefaultencoding('utf8') br = mechanize.Browse...
[ "noreply@github.com" ]
hk17672591.noreply@github.com
4e47cceaecf1e3209157eb0200600ae705e2fc5e
747f759311d404af31c0f80029e88098193f6269
/addons/olap/cube/levels/level_normal.py
28102ac873d17b2195509cea402caaffd1a5a756
[]
no_license
sgeerish/sirr_production
9b0d0f7804a928c0c582ddb4ccb7fcc084469a18
1081f3a5ff8864a31b2dcd89406fac076a908e78
refs/heads/master
2020-05-19T07:21:37.047958
2013-09-15T13:03:36
2013-09-15T13:03:36
9,648,444
0
1
null
null
null
null
UTF-8
Python
false
false
70
py
/home/openerp/production/extra-addons/olap/cube/levels/level_normal.py
[ "geerish@omerp.net" ]
geerish@omerp.net
9030b5a6b10be05c7de38200581a48871417e1a2
a2fc37f2a0370e5a78dc2b350efb59fdb3ca47b4
/check_glance_api
eb7b97e7740da76a9cf830d011c44822a869c508
[]
no_license
ajaymahto/nagios-plugins
80696caef85ad6f1b64b2a16d54fea8beaf09054
5fca25d558b4cd9afd9f0aefee3cbb99c82abcbc
refs/heads/master
2021-01-22T16:31:45.270711
2017-02-14T13:41:59
2017-02-14T13:41:59
57,199,521
0
0
null
null
null
null
UTF-8
Python
false
false
5,004
#!/usr/bin/env python # -*- encoding: utf-8 -*- # # Glance API monitoring script for Nagios # # Authors: # Rakesh Patnaik <patsrakesh@gmail.com> # # This file is part of nagios-openstack-monitoring # (https://github.com/rakesh-patnaik/nagios-openstack-monitoring) # # nagios-openstack-monitoring is free software: you ...
[ "ajay.mahto@snapdeal.com" ]
ajay.mahto@snapdeal.com
385063bc2c2289cac3dbc0f59b2681055420f251
c5dec91822ad03dffc678a574948e387e7364a74
/submission/task1a.py
8332af463776e8a10260ae8ca2a46851246c1885
[]
no_license
Valkyriean/EODP_data_linkage
807091a9dfc7e0e551045989da90487edc220aac
73bf99002f95f35e78bad48705c3bd1568e986a0
refs/heads/main
2023-02-21T08:49:15.831652
2021-01-17T02:03:24
2021-01-17T02:03:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,747
py
# Code by Jiachen Li, 1068299 import csv import string import pandas as pd import textdistance from fuzzywuzzy import fuzz from fuzzywuzzy import process # Read in files abt = pd.read_csv("abt_small.csv", encoding='ISO-8859-1') buy = pd.read_csv("buy_small.csv", encoding='ISO-8859-1') # Ready for write file task1a = o...
[ "aegis_fate@outlook.com" ]
aegis_fate@outlook.com
ad2d102bd7a41e3094127d6e5306850678293961
197e15ff36d2138a1ac7bb119e99602ebef81cd2
/day10/challenge1.py
ddd485adabe9094bdb82dbd69e017dc2e2d7f5d2
[]
no_license
leigh93/100daysofPython
a27bd013bce63dfffd8a4d1c2e54aec70eec2be1
04fb357db2f89b6e013296dc62772c953a6e3e19
refs/heads/master
2023-03-31T20:18:29.902002
2021-04-03T15:43:16
2021-04-03T15:43:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
859
py
def is_leap(year): if year % 4 == 0: if year % 100 == 0: if year % 400 == 0: print("Leap year.") print(True) return True else: print("Not leap year.") return False else: print("Leap ye...
[ "zawadikibathi@gmail.com" ]
zawadikibathi@gmail.com
15f0ae7cea0707dc78551c49d0c39d518528a0a3
7f4509203dc48e33c1081f4447ee89e04b810022
/courses/apps.py
ce423aabc8221a34c52ec34d6e0b2575eab3eeeb
[]
no_license
jug2505/PriCode
d715baf5196da0d9f574b8f120de6860ad463400
72819c54f2762002f2af9148ae5095ff05fb8397
refs/heads/main
2023-02-27T00:42:25.629859
2021-02-05T09:56:00
2021-02-05T09:56:00
334,347,891
0
0
null
2021-02-05T09:56:01
2021-01-30T06:47:10
Python
UTF-8
Python
false
false
90
py
from django.apps import AppConfig class SuperappConfig(AppConfig): name = 'courses'
[ "jonkuvshin@gmail.com" ]
jonkuvshin@gmail.com
f10d28f05fae8ab19c89469f1599948f39a0b6c6
9fbab0fd689ba1abbae4439a0e5bda315932f177
/tools/effectiveT3/effectiveT3.py
0254f325166f39f946564fa379f1c4f90dbfa794
[ "MIT" ]
permissive
Imoteph/pico_galaxy
437cb5c9b231896fcfcafec902a0ed1f1c9646b3
2c81bd9f238aacf7fb2ac2b027706eff31d23cc5
refs/heads/master
2021-01-11T23:00:08.239492
2016-11-04T12:06:36
2016-11-04T12:06:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,603
py
#!/usr/bin/env python """Wrapper for EffectiveT3 v1.0.1 for use in Galaxy. This script takes exactly five command line arguments: * model name (e.g. TTSS_STD-1.0.1.jar) * threshold (selective or sensitive) * an input protein FASTA filename * output tabular filename It then calls the standalone Effective T3 v1.0.1...
[ "p.j.a.cock@googlemail.com" ]
p.j.a.cock@googlemail.com
7af08aed6e325f77bfa8eb72c23328fc709bf360
f55226f3c2640de862b6b200f75093638d7df209
/word_count/word_count/core/migrations/0002_delete_wordcount.py
09459b45d2e12b6cf21b79c4c38ccb77261f1b96
[ "MIT" ]
permissive
lugoboni/wordcount
975e8c0ca3eee228daf73ee628926c4a70760aca
575aa33f6e53bdb7e51e4d17bc25edf68ee9afca
refs/heads/master
2020-06-18T20:37:05.162325
2019-07-11T21:33:47
2019-07-11T21:33:47
196,438,995
0
0
null
null
null
null
UTF-8
Python
false
false
284
py
# Generated by Django 2.2.3 on 2019-07-11 20:49 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('core', '0001_initial'), ] operations = [ migrations.DeleteModel( name='WordCount', ), ]
[ "gustavo.lugoboni@gmail.com" ]
gustavo.lugoboni@gmail.com
28923f1db67f8a7de4873d384ad555cacbd332fd
868a51c434594bdcbcb94371ddfe02f9b53b431b
/account/admin.py
9f6763895ac1f87a13f9d1adf35edcd212a9445b
[]
no_license
Inoxevious/ayci
18f4ce5b551e036bfb796f38b4bcaa57955e411b
9203e75c5131e11c42ece129b01c29f7cae76f9d
refs/heads/master
2022-12-10T04:45:53.400163
2020-02-29T17:57:25
2020-02-29T17:57:25
241,989,670
0
0
null
2022-04-22T23:02:55
2020-02-20T21:04:57
HTML
UTF-8
Python
false
false
536
py
from django.contrib import admin from django.contrib.auth.admin import UserAdmin as BaseUserAdmin from django.contrib.auth.models import User from .models import AccountUser,Role # Register your models here. class AccountInLine(admin.StackedInline): model = AccountUser can_delete = False verbose_name_plura...
[ "mpasiinnocent@gmail" ]
mpasiinnocent@gmail
fc94674cd3f0712da53e600560ddd94a1e0aa051
8eec17b978e2c134d0953e13b286d1689928a696
/medline/elixir/mesh_por_id.py
04c1ef1ff070d03c579239593aa8b82fbddd35c0
[]
no_license
heyaqiong123/literature
ed8d6cf7bed811acc9e05ec037b5e01c43401b80
d946f915aa7c5fb7ee13c14f6bc723f11b7275fe
refs/heads/master
2020-03-29T05:50:21.562222
2016-03-29T22:07:37
2016-03-29T22:07:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
641
py
##Busqueda de Mesh terms por id del articulo y genera la red from Bio import Entrez from Bio import Medline import pprint IDs = [ '23087226' ] Entrez.email = 'jsiqueiros@inmegen.gob.mx' for ID in IDs: # configuramos busqueda del articulo por ID handle = Entrez.efetch(db= 'pubmed', id= ID, r...
[ "jsiqueiros@inmegen.gob.mx" ]
jsiqueiros@inmegen.gob.mx
20695345174d27f1af259b9eaf6bba28ab2a9b54
bbdea1f9d7a05f9fd7d080cc4089690570fa12b4
/5/color_clustering.py
76c51c0d397394bd083fdb8c5962d7d011c4089b
[]
no_license
denisdenisenko/ComputerVision
a18b560b15645b297b5665ceeff10d36f5860d77
278f238842d17628dd55107eac2832ff5c64c12a
refs/heads/master
2023-02-28T03:58:37.122793
2021-02-03T15:45:40
2021-02-03T15:45:40
335,673,465
0
0
null
null
null
null
UTF-8
Python
false
false
1,388
py
import cv2 import numpy as np import matplotlib.pyplot as plt colors =[[253,159,159],[0,255,0],[0,255,255],[0,0,255],[255,0,0],[255,255,0],[0,100,100]] from sklearn.cluster import KMeans image = cv2.imread("untitled.png") Z = image.reshape((-1, 3)) # convert to np.float32 Z = np.float32(Z) # define criteria, number o...
[ "denis.denisenko@gmai.com" ]
denis.denisenko@gmai.com
d00108ac32d6c5ae255e97bb79e6b98f3f50c3f6
7f9a9c4106c6b521654a2b2a24ab69bea757b6da
/lib/topology_docker_openswitch/shell.py
5009081baf8a175234c1f1ab28fdd2d309707d7e
[ "Apache-2.0" ]
permissive
HPENetworking/topology_docker_openswitch
a7c09a4c4e485f9519190cba196ea8b0cdf5a3e8
2d86c11ef718fc96c3c3898f274445156b5b912d
refs/heads/master
2021-01-24T06:38:06.856398
2016-08-31T22:47:50
2016-08-31T22:47:50
53,111,229
1
16
null
2017-05-26T21:33:02
2016-03-04T05:55:34
Python
UTF-8
Python
false
false
1,641
py
# -*- coding: utf-8 -*- # # Copyright (C) 2015-2016 Hewlett Packard Enterprise Development LP # # 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 ...
[ "diego-antonio.hurtado-pimentel@hpe.com" ]
diego-antonio.hurtado-pimentel@hpe.com
62750b17337dd5468a944195eea64784f470b4ac
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/303/usersdata/284/92253/submittedfiles/testes.py
e388e395e0c9c5be69b317d970dd592eb7e72f48
[]
no_license
rafaelperazzo/programacao-web
95643423a35c44613b0f64bed05bd34780fe2436
170dd5440afb9ee68a973f3de13a99aa4c735d79
refs/heads/master
2021-01-12T14:06:25.773146
2017-12-22T16:05:45
2017-12-22T16:05:45
69,566,344
0
0
null
null
null
null
UTF-8
Python
false
false
5,020
py
linha = [] coluna = [] for linha in range (0,3,1): for coluna in range (0,3,1): print('%d %d' %(linha,coluna)) import random def solicitaSimboloDoHumano(): letra = 0 while not (letra == 'O' or letra == 'X'): print('Qual símbolo você deseja utilizar no jogo? ') letra = input...
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
b20fec96bbd6715ed3f0716b8f77082c2f43fea7
0a811010cf257faac01a5d207bfc27ca107c2f1b
/topics/migrations/0002_auto_20180917_2239.py
119c0de8f33b853507f6c34c1e82e83106f26f17
[]
no_license
Kaitrenfsw/business_rules
51554e0da9b9aaf15d173f1e2bce77d117c47efd
ddd0a89d806af4c2b4830980d11686f267bba0a9
refs/heads/master
2022-12-15T13:27:20.809219
2018-10-27T03:19:42
2018-10-27T03:19:42
144,506,695
0
0
null
2021-06-10T20:53:25
2018-08-12T22:59:33
Python
UTF-8
Python
false
false
877
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.13 on 2018-09-17 22:39 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('topics', '0001_initial'), ] operations = [ ...
[ "simon.contreras.13@sansano.usm.cl" ]
simon.contreras.13@sansano.usm.cl
763c3a099affc2ad5ad0175153483332b443d153
d0efa2026b7ed22ff4f9aa76c27ae2474c30f26d
/openapi_client/models/location.py
f6293ef80984ebfdac4c0af34fa105e138e19331
[]
no_license
begum-akbay/Python
2075650e0ddbf1c51823ebd749742646bf221603
fe8b47e29aae609b7510af2d21e53b8a575857d8
refs/heads/master
2023-03-28T00:11:00.997194
2021-03-25T16:38:17
2021-03-25T16:38:17
351,499,957
0
0
null
2021-03-25T16:38:17
2021-03-25T16:15:16
Python
UTF-8
Python
false
false
7,016
py
# coding: utf-8 """ Payment Gateway API Specification. The documentation here is designed to provide all of the technical guidance required to consume and integrate with our APIs for payment processing. To learn more about our APIs please visit https://docs.firstdata.com/org/gateway. # noqa: E501 The ve...
[ "emargules@bluepay.com" ]
emargules@bluepay.com
558486df0233d1129c96bc2379420a59512c25fd
a445ebf20b43a8b34fa2e8d8aa38df1041d148f6
/CSS/RSA/server.py
ed6cbb420d12a8a44243744e6f0ab78bd525e3fa
[]
no_license
ejson03/SEM6PRACS
708bdc4ebe546d26a9197eee16fffb8ae98d574a
4f244261baca3c6e17a80e09c15d7074d6712018
refs/heads/master
2020-12-21T19:34:28.431637
2020-03-30T16:38:05
2020-03-30T16:38:05
236,536,679
0
1
null
null
null
null
UTF-8
Python
false
false
1,462
py
import socket import rsa import time import json import hashlib start = time.time() e, n, d = rsa.RSA_keygen() keytime = time.time() - start print(f"It took {keytime} seconds to generate the public private key") localIP = "127.0.0.1" localPort = 15000 bufferSize = 1024 UDPServerSocket = socket.socket(family=socket.AF...
[ "elvisejsondsouza57@gmail.com" ]
elvisejsondsouza57@gmail.com
622607fa7a7c60daa2e8c156f9d58d46032e3a4a
f1f21ba2236da38a49a8185ce33b3ce4a4424c1d
/apps/drug_target_interaction/moltrans_dti/preprocess.py
3919994d6fa4be6c6b1b0d8c44ecb5fd98b3b5e8
[ "Apache-2.0" ]
permissive
PaddlePaddle/PaddleHelix
75a07c2f14475e56e72f4573b2cf82a91d1cbfda
e6ab0261eb719c21806bbadfd94001ecfe27de45
refs/heads/dev
2023-08-05T03:34:55.009355
2023-08-01T09:30:44
2023-08-01T09:30:44
314,704,349
771
197
Apache-2.0
2023-08-01T09:15:07
2020-11-21T00:53:39
Python
UTF-8
Python
false
false
5,501
py
# Copyright (c) 2021 PaddlePaddle 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 app...
[ "noreply@github.com" ]
PaddlePaddle.noreply@github.com
2aa508143b15c41cf17a324f991bc0fe83031d58
5c2e4266abf6d2be9102d5309bf94071a1eae1db
/02 高级语法系列/cp 爬虫/基础/v18.py
478a6d18945b1ac16874c9eb6b549f405533e545
[]
no_license
13834319675/python
8176d5da47136b9b3ec290eaa0b699c6b1e7a8ab
3e6f04670f6f01006f827794865488dd40bca380
refs/heads/master
2021-07-11T18:29:12.894401
2021-07-05T08:29:27
2021-07-05T08:29:27
171,112,613
0
0
null
null
null
null
UTF-8
Python
false
false
1,756
py
''' 破解有道词典 V1 ''' from urllib import request, parse def youdao(): k = input("请输入要翻译的内容:") url = "http://fanyi.youdao.com/translate?smartresult=dict&smartresult=rule" data = { "i": k, "from":"AUTO", "to": "AUTO", "smartresult": "dict", "client": "fanyideskweb", ...
[ "1134876981@qq.com" ]
1134876981@qq.com
dae07b029684f648dca95618f327516b28e05372
1d8f1c7d69d7b4439dcd533ac30bba355db6e982
/FastAPI-Project-Template/tools.py
23d6a6902927fdc8d107dfce5f9cccf9c7036628
[ "Apache-2.0", "MIT" ]
permissive
shikanon/privatecode
8ad711da2f5e2580f9dc1f04acdaa14661baf23a
953ca25b5df2d525f9e9d4910ec4684c38f08517
refs/heads/master
2023-03-10T22:13:04.016022
2022-06-02T03:27:28
2022-06-02T03:27:28
253,537,808
0
0
MIT
2023-02-14T21:46:42
2020-04-06T15:23:57
Python
UTF-8
Python
false
false
874
py
# coding=utf-8 ''' # Author: shikanon (shikanon@tensorbytes.com) # File Created Time: 2020-03-31 5:12:50 # # Project: FastAPI-Project-Template # File: tools.py # Description: # ''' import click from settings.config import Config from model.database import Database @click.group() def cli(): pass @click.comma...
[ "shikanon@foxmail.com" ]
shikanon@foxmail.com
890c2f1f2002902b58d3e402ec6f2c488446d151
fb3818cfa326aad3ad958eec6376d3b9a242f96d
/tests/algorithms/test_to_int_index.py
90b9c9da19225cf74f76068653c5ebdb98c86152
[]
no_license
StaveWu/RamanSpectrometer-Flasky
2aaa647657b70594fddccfa853cac02695317341
85056e5f07227a4405f0bef077976387bf29ff4b
refs/heads/master
2022-11-24T07:57:42.953905
2019-06-14T15:25:03
2019-06-14T15:25:03
185,988,925
1
0
null
2022-11-21T21:30:45
2019-05-10T12:59:20
Python
UTF-8
Python
false
false
1,185
py
from unittest import TestCase import pandas as pd import numpy as np import pytest from app.algorithms.data_generation import to_int_index, split_by_duplicate_index class TestTo_int_index(TestCase): def test_to_int_index(self): s1 = pd.Series(index=[1.1, 2.2, 3.3], data=[2, 3, 4], name='a') s2 = ...
[ "wtengda0816@outlook.com" ]
wtengda0816@outlook.com
4ce551d725fed17f04d859c86246539b5655baf4
d87d634f7d2e4324ba20648cf3f5603c85081f26
/manage.py
7ab688e5ca8f5b71e2b34001bc916c719faf55b1
[]
no_license
sumit7577/cubicus
d5564b046858b1c1f831a98b7804222085de421d
d9323391f7d1ae5496896d714bc43013ee2f6277
refs/heads/master
2023-08-19T11:16:24.130125
2021-09-23T05:03:49
2021-09-23T05:03:49
403,351,723
0
0
null
null
null
null
UTF-8
Python
false
false
663
py
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): """Run administrative tasks.""" os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'cubicus.settings') try: from django.core.management import execute_from_command_line except Impo...
[ "asmitkumarr082@gmail.com" ]
asmitkumarr082@gmail.com
78fa36ef6a8d9832bb0ded34eae5994208980c70
3b12c2749a0501d22b500aa876b7188feafe470c
/evonum_terrarium.py
7d0362df4e2612c622be9172aab585a031b3798a
[]
no_license
decarboxy/Evonum
368b0fb41246abae496c22c120ab2b843accc7da
e98230ed03ae8e21cf2e6f922c93daa2f55e2553
refs/heads/master
2020-12-11T05:29:22.175555
2015-10-15T00:34:49
2015-10-15T00:34:49
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,381
py
from __future__ import print_function from evonum_fitness import * from evonum_solvers import * class Terrarium(object): def __init__(self): self._current_day = 0 self._forces = [] self._solvers = [] self._max_solvers = 100 self._max_forces = 2 self._chance_to_surv...
[ "gregory.r.sliwoski@vanderbilt.edu" ]
gregory.r.sliwoski@vanderbilt.edu
9d8e091e4f9f914bb83c10c472f0a4d23405ed62
2e7970e72e583b6e52cd2dc3b58fbb4a0437d610
/raspberrypi2/GrovePi/Software/Python/grovepi.py
cff2690fe0b8a0d2fb7149cf713c4a593db592ef
[ "MIT" ]
permissive
Lyoncore/iotivity-demo-uc15
dedc25821f672a0b7ea0096fb9acd5651fa7a8e8
33d0d377f433029371403415f695226dad46349e
refs/heads/master
2021-04-06T00:00:54.981699
2016-08-02T06:30:25
2016-08-02T06:30:25
64,462,533
1
1
null
null
null
null
UTF-8
Python
false
false
17,403
py
#!/usr/bin/env python # # GrovePi Python library # v1.2.2 # # This file provides the basic functions for using the GrovePi # # The GrovePi connects the Raspberry Pi and Grove sensors. You can learn more about GrovePi here: http://www.dexterindustries.com/GrovePi # # Have a question about this example? Ask o...
[ "gerald.yang@canonical.com" ]
gerald.yang@canonical.com
7bf32ed10277589fd1dc3e661cceebe03b385ce4
7e1b39feee3da75529caf06ebb41f010414b3a1c
/insert_db.py
48da7e5ad0537f77d3214aa4c1fb1e4234b96f31
[]
no_license
ogechivivian/Python
7a771803cb16643357a1819cd605c8565b6a483b
bb4490db92ecdc99df9d02c8a204e8b10ba6df65
refs/heads/master
2023-04-29T22:50:46.816145
2021-05-17T00:38:01
2021-05-17T00:38:01
368,013,225
0
0
null
null
null
null
UTF-8
Python
false
false
500
py
import pyodbc conn = pyodbc.connect('Driver={SQL Server};' 'Server=ISW-ENGR-OV1\SQLEXPRESS;' 'Database=TestDB;' 'Trusted_Connection=yes;') cursor = conn.cursor() cursor.execute('SELECT * FROM TestDB.dbo.Users') cursor.execute(''' INSERT...
[ "okeyogechivivian@gmail.com" ]
okeyogechivivian@gmail.com