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
308191439bd0dc074805fd6cd7cb7ede780d59da
2a67feee9e9b2bbb42c22db1c238641035865f31
/fhir_patient_summary/createObservationDictionary.py
963c21e034cb567815ed76839c5e46e804977ea0
[ "MIT" ]
permissive
nicford/FHIR-Patient-Summary
7635e8895fc53d4b2ba0e90c1d300d602a9c08aa
facda81a739d0981cdd8cc5637c7bd43b632f4bb
refs/heads/master
2021-04-08T16:15:38.159803
2020-03-20T21:27:39
2020-03-20T21:27:39
248,789,057
1
0
null
null
null
null
UTF-8
Python
false
false
1,361
py
from fhir_parser import FHIR, observation class observationDetails: def __init__(self, component, date): self.component = component self.date = date def getObservationDate(observationDetails: observationDetails): return observationDetails.date def createObservationDictionary(observations): ...
[ "univnf@gmail.com" ]
univnf@gmail.com
21eb60d5344f9299bf8910604589c761cd554762
765e850116564d47d7ac3afa38ac2c56ccd1ce29
/ScMiles/colvar.py
d59d7f76fc9195c65c32c9fbca1a00fb2072fb25
[]
no_license
UTmilestoning/ScMiles2.0
87c7ff9f874aa81392e551c885872be1d1818c48
edd23d864834a0e773207b80367a1b68f31cc2c0
refs/heads/master
2023-06-14T11:41:52.204370
2020-09-21T15:45:27
2020-09-21T15:45:27
315,404,147
2
1
null
null
null
null
UTF-8
Python
false
false
13,068
py
# -*- coding: utf-8 -*- """ Created on Thu Apr 30 09:58:01 2020 @author: allis """ # -*- coding: utf-8 -*- ''' This code generates the colvar configuration file that required by NAMD. Two constraints will be considered: 1. RMSD(x, anchor_a) = RMSD(x, anchor_b). 2. RMSD(x, any_anchors_besides_a_or_b) > RMSD(x, ...
[ "noreply@github.com" ]
UTmilestoning.noreply@github.com
f252de4cff61581fdaf7d56a81128d97eeb01fb5
8ca2516c71e5e23b393c9b635f09b8c379468844
/Terraform/cassandra/scripts/cas.py
e83a081190f06b027ad7507805506e6189c6432b
[]
no_license
richnusgeeks/devops
de8823f493e48f2216406b067474d67c851d46e4
e0abaf170ba66ce83542140bfc243b4a509ceafd
refs/heads/master
2023-02-27T19:33:59.261885
2023-02-09T11:43:39
2023-02-09T11:43:39
27,112,863
11
12
null
2022-09-30T20:23:06
2014-11-25T06:45:47
Shell
UTF-8
Python
false
false
778
py
from time import sleep from fabric.api import env, sudo, run, get, put, local from fabric.decorators import hosts, roles, parallel env.user = "ubuntu" env.key_filename = "<Private Key>" env.warn_only = True env.skip_bad_hosts = True env.connection_attempts = 3 env.abort_on_prompts = True def postCA...
[ "ankur.kumar@reltio.com" ]
ankur.kumar@reltio.com
00131fab13b704870de4a2453e7aa99e38d101fc
e3cfab409afb5ff9a0b3812bf848be6ca9239cee
/pygeodesy/auxilats/_CX_4.py
8f0be523af660c0f819c189cb7568d29290f9271
[ "MIT" ]
permissive
mrJean1/PyGeodesy
565266a4f7f6cda5abe98e915bbd868f6cbe1760
eba35704b248a7a0388b30f3cea19793921e99b7
refs/heads/master
2023-08-23T13:58:20.069917
2023-08-20T18:50:45
2023-08-20T18:50:45
68,028,481
283
66
null
2022-04-09T00:40:52
2016-09-12T16:49:10
Python
UTF-8
Python
false
false
8,662
py
# -*- coding: utf-8 -*- u'''Coeficients for C{_AUXLATITUDE_ORDER} 4 from I{Karney}'s C++ class U{AuxLatitude <https://GeographicLib.SourceForge.io/C++/doc/classGeographicLib_1_1AuxLatitude.html>} trancoded to a double, uniquified Python C{dict[auxout][auxin]}. Copyright (C) Charles Karney (2022-2023) Karney@Alum.MIT...
[ "mrJean1@Gmail.com" ]
mrJean1@Gmail.com
ca72dad07785635db839762f87edc38573cf4b74
011db9359d76d875acf1e56334b1cbe4439b80c0
/restTest/wsgi.py
acdb195242da74ac01dfc94667bd37805e5a0c5f
[]
no_license
buckyron/djangorest
3aed87319ee6a808724fdd8259c93463edb7ea3b
ce61b23ffc83a8fddfbdbfca1e41ccbac17198d3
refs/heads/master
2022-12-29T22:49:22.395069
2020-10-19T06:51:01
2020-10-19T06:51:01
305,288,768
0
0
null
null
null
null
UTF-8
Python
false
false
393
py
""" WSGI config for restTest project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.1/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SETT...
[ "harivicky2020@gmail.com" ]
harivicky2020@gmail.com
8114b030b00d54522fb2caa1fbfcae53b2daf2fe
1fdc5597e06055662aa31ba425d5d7449721efe8
/Alphabet_2/CODE/sub_alphabet.py
8e0c314cedd91965ff67394efc6bb10857866c78
[]
no_license
VibhutiNandel/GitHub_test
2ebb0c3b9bdf3c5509744c294c306e4cb63cd380
f184e7e925c7f485c6e1f4530310f1cd2900ba74
refs/heads/master
2020-04-17T05:54:35.634357
2019-01-17T22:03:30
2019-01-17T22:03:30
166,238,552
1
0
null
null
null
null
UTF-8
Python
false
false
133
py
#! /usr/bin/env python for x in range(65,90): with open("RESULTS/initial_test.txt", "ab") as Infile: Infile.write(chr(x) + "\n")
[ "v.nandel@student.rug.nl" ]
v.nandel@student.rug.nl
da50f84db280709c8bf00d786a3c4d94770be37c
15018a1c9784c9abaabea2e65d802d4a339b74e5
/hairpin/admin.py
8eaf8a6d318654126ecf2ef7f973427b9b7d38ef
[ "MIT" ]
permissive
Gaidy/lin_hairpin
b9edaa0d547f1981489ffd8e73384df1c13a3828
1267e880d4b88d841019a904009bbf5828c1db09
refs/heads/master
2022-10-02T20:08:38.571702
2020-03-13T04:12:49
2020-03-13T04:12:49
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,033
py
from django.contrib import admin from hairpin.models import Category, Product, Cami, Order, PayRecord, CAMI_TYPE_MAP @admin.register(Category) class CategoryAdmin(admin.ModelAdmin): """ 分类管理 """ list_display = ['id', 'title', 'desc'] @admin.register(Product) class ProductAdmin(admin.ModelAdmin): ...
[ "406728295@qq.com" ]
406728295@qq.com
d381bf0d3308017cf95d705aab828040beeeab2d
aebe19a393e9dcba5c4799cf73cd2912a40abc9e
/setup.py
64b0059e88dc09a2cadfcadedafbffb2b602da13
[]
no_license
jdque/raycast
0aed0c996422da31eea2a892723b278175ac6ef2
e22a5c6d342cafa0219e98d04cee74e38403260f
refs/heads/master
2021-01-12T15:15:50.421437
2017-02-21T02:17:05
2017-02-21T02:17:05
71,736,614
0
0
null
null
null
null
UTF-8
Python
false
false
338
py
from setuptools import setup # from Cython.Build import cythonize # import numpy # setup( # name = "Hello", # ext_modules = cythonize('geometry_c.pyx'), # include_dirs=[numpy.get_include()] # ) setup( name = "raycast", version = "0.1", install_requires = [ 'numpy', 'pysdl2', ...
[ "jaqms90@gmail.com" ]
jaqms90@gmail.com
a94ce7a44499ba970ed1db8268d174d859b0f802
f4448831c8594cc16eb6f5e123a6f6157d7d9f4e
/conven_control/scripts/stiffness_heatmap.py
6d52294f7ddbbbd7ddfb16a3a28cd8bbe42edea1
[]
no_license
benthebear93/null-space-posture-optimization
64ed58ffed6ac5be216bdd1f369dde66adda890f
9bf6226d301c1b63f18c0ac877c792b8393f6f71
refs/heads/main
2023-09-05T07:02:03.852252
2021-11-24T15:14:26
2021-11-24T15:14:26
399,497,258
0
0
null
null
null
null
UTF-8
Python
false
false
4,769
py
import numpy as np import matplotlib.pyplot as plt import pandas as pd def heatmap_read(filename, axisname): # load_wb = load_workbook("C:/Users/UNIST/Desktop/stiffness_estimation/test_z.xlsx", data_only=True) df = pd.read_excel(filename, header=None, names=None, index_col=None) num_test = df.shape[0] ...
[ "nswve@naver.com" ]
nswve@naver.com
a01543ef0594a423e1f294ceca5a43fbd4ac689d
cf86197a7ee935514e58a0b1b064c9a0eba70c6d
/allu_pandas/__init__.py
ae47be0f466f4033bb94be1b37714c00663e20d2
[]
no_license
skojaku/pandas-alluvial-diagram
ad73f7b473818aa43a48625e4dcd2ed26290f9b7
ab097a47b3904daaa938594982b0f638206b4279
refs/heads/main
2022-12-27T15:33:14.019571
2020-10-12T12:12:25
2020-10-12T12:12:25
302,910,261
0
0
null
null
null
null
UTF-8
Python
false
false
73
py
__author__ = "Sadamori Kojaku" from .utils import * from .draw import *
[ "skojaku@iu.edu" ]
skojaku@iu.edu
f6790ee837fdef6d4e761df0c30e06570b37f4f8
85385b6a88d9d23218be3fea576ea245b6c8cdad
/02.object_tracking.py
8e275ee534ba3b26f0f248dd7746ce10efc19fbb
[]
no_license
agiledots/opencv-tracking
ded8191144287be94b1c8a1076788baa39662ab5
797e921b787e1d48ad6185232eb685c4b8e3d8d5
refs/heads/master
2020-03-19T03:06:16.067120
2018-06-01T09:10:59
2018-06-01T09:10:59
135,695,380
0
0
null
null
null
null
UTF-8
Python
false
false
3,513
py
import cv2 import sys # https://www.learnopencv.com/object-tracking-using-opencv-cpp-python/ (major_ver, minor_ver, subminor_ver) = (cv2.__version__).split('.') def create_tracker(): # Set up tracker. # Instead of MIL, you can also use tracker_types = ['BOOSTING', 'MIL', 'KCF', 'TLD', 'MEDIANFLOW', 'GOT...
[ "" ]
c6371681f05968aa9861b727a0d93db16af46a07
994cbc9972385b02f5ad7528ab1bc62363a92cb8
/getIP.py
12e511eaca5112b72f15b17ea1235018da16c157
[]
no_license
Chetanck26/websocket_rat
8dde52c66b86105cebd618238073b6c469b12217
a607c1a5e7a74170c2c56682f1af08ef9c7ab53f
refs/heads/master
2020-03-28T02:26:01.931648
2018-09-05T14:14:06
2018-09-05T14:14:06
147,570,000
0
0
null
null
null
null
UTF-8
Python
false
false
893
py
import smtplib import platform server = smtplib.SMTP('smtp.gmail.com', 587) server.login("cvdrat@gmail.com", "rat123rat123") if platform.system().lower() == 'windows': cmd = subprocess.Popen("ipconfig",shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, stdin=subprocess.PIPE) if platform.system().lower() == ...
[ "chetan.k2626@gmail.com" ]
chetan.k2626@gmail.com
33023065e0c2369fa3b6b3d94be20ca5db568b38
b48d274e38f0246e59a7f104ff6ca6a3e0f335b8
/main.py
4205712eaa2e1165433caa91395ebf7e93a2a98c
[]
no_license
legacy72/bulling_controller_telegram_bot
6f412c1c84d430ac5b5bd72cd382b573be2c4c33
5f8eb776c9d7d5ac0087f50aa29ac505bcc9d235
refs/heads/master
2023-02-01T21:20:42.889336
2020-12-07T14:52:16
2020-12-07T14:52:16
319,351,377
0
0
null
null
null
null
UTF-8
Python
false
false
2,243
py
import logging import telebot from utils import get_info_about_bullying, get_arg from settings import TELEGRAM_TOKEN logger = telebot.logger telebot.logger.setLevel(logging.INFO) bot = telebot.TeleBot(TELEGRAM_TOKEN) PERCENTAGE_BULLYING = 80 commands = { 'help': 'Помощь по боту', 'set_quality_percentage': '...
[ "sky45leg72" ]
sky45leg72
22eacd6ecd3ea15128a98f216c4569f2222a8a52
bfbe8a27ce6f46a7f2d03731b1de1e80cc6056c9
/projects/inflearn/python_algorithm/dfs_bfs/사과나무.py
63265e21d4cdac9e7df703e7acc8f48746934524
[]
no_license
paige0701/algorithms-and-more
95175a18fd9d4a41659c50e3c5e314fe2bb23b8b
763a4009f8fa87c24552b5e77375c72896672b58
refs/heads/master
2021-06-11T04:19:29.559758
2021-04-07T11:29:01
2021-04-07T11:29:01
184,376,577
0
0
null
null
null
null
UTF-8
Python
false
false
880
py
def BFS(n , a): dx = [-1, 0, 1, 0] dy = [0, 1, 0, -1] ch = [[0] * n for _ in range(n)] sum = 0 from collections import deque dq = deque() ch[n//2][n//2] = 1 sum += a[n//2][n//2] dq.append((n//2, n//2)) L = 0 while True: if L == n//2: break size ...
[ "paigechoi0701@gmail.com" ]
paigechoi0701@gmail.com
96e10e68064bc88b467883df35e36bbdb7fe6913
8fdab174252614c3d0eea09a4bd7aa262c087fd1
/python/Zetcode/SQLite Python Tutorial/metadata2.py
6ce7d488aaa21cea576206da7ea53fc0999cd394
[]
no_license
idreesdb/Tutorials
a5190c72ad9ad25d9e8302c01357939bd62b75d8
754cd20250b7f826caf76a1d3c188826a4babbd3
refs/heads/master
2021-01-17T07:37:01.623156
2016-05-27T14:03:28
2016-05-27T14:03:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
420
py
#!/usr/bin/env python #-*- encoding: utf-8 -*- import sqlite3 import sys with sqlite3.connect('test.db') as con: cur = con.cursor() cur.execute('SELECT * FROM Cars') col_names = [cn[0] for cn in cur.description] rows = cur.fetchall() print '{0} {1:<10} {2}'.format(col_names[0], col_names[1], c...
[ "slxecas@gmail.com" ]
slxecas@gmail.com
e3242e5b6f4f0a7f6b70c491d8fe59b69863e0a5
4e53e35d585302ee112dcba151d6d618664a1d66
/appenv/contacts/migrations/0001_initial.py
d36b65510630148a5ea82867b680a4d63efe2a3d
[]
no_license
Samra78/DjangoApp
af2bcd150bbd606ea5ee2bd79be6609131ef6503
29875c88c9a4462a1c02930c69bba1d562d4b6e7
refs/heads/main
2023-05-06T02:16:13.987741
2021-05-26T17:09:28
2021-05-26T17:09:28
370,963,956
0
0
null
null
null
null
UTF-8
Python
false
false
739
py
# Generated by Django 3.2.3 on 2021-05-26 06:54 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Contact', fields=[ ('id', models.BigAutoFie...
[ "samrakkamal@gmail.com" ]
samrakkamal@gmail.com
37a95443478590c3cbdfe96c13b7ad5986f5020e
5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d
/alipay/aop/api/response/AlipayCommerceTransportParkingGoodsCreateResponse.py
b2c2b21d034b4e3cc1f3f0ba3b1ab70a31f0f35f
[ "Apache-2.0" ]
permissive
alipay/alipay-sdk-python-all
8bd20882852ffeb70a6e929038bf88ff1d1eff1c
1fad300587c9e7e099747305ba9077d4cd7afde9
refs/heads/master
2023-08-27T21:35:01.778771
2023-08-23T07:12:26
2023-08-23T07:12:26
133,338,689
247
70
Apache-2.0
2023-04-25T04:54:02
2018-05-14T09:40:54
Python
UTF-8
Python
false
false
1,002
py
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.response.AlipayResponse import AlipayResponse class AlipayCommerceTransportParkingGoodsCreateResponse(AlipayResponse): def __init__(self): super(AlipayCommerceTransportParkingGoodsCreateResponse, self).__init__() self....
[ "jiandong.jd@antfin.com" ]
jiandong.jd@antfin.com
6e03e8986c8577684ada604fb5f240598e0c42bf
5b6630541711827376267f825cc0c2d497e1cf4c
/tests/test_python.py
04087e65a4d9e15d91a619889df979be7d7331c4
[]
no_license
odoucet/cig-springchallenge2020
4b41344e06f148423c0bdfc68d20b64039e83511
e39e54f1cca49ec559b78a930cb0897f2ebc7ee7
refs/heads/master
2023-07-26T09:00:20.874774
2020-05-14T17:41:16
2020-05-14T17:41:16
262,107,360
1
0
null
2023-07-06T21:36:24
2020-05-07T16:51:06
Python
UTF-8
Python
false
false
153
py
import numpy def test_python(): tmpcarte = numpy.full( (6, 6), numpy.nan ) #tmpcarte.fill(numpy.nan) assert numpy.isnan(tmpcarte[0][5])
[ "olivier@oxeva.fr" ]
olivier@oxeva.fr
5c2a507b7cfa64077e5854eee400a8dca631e971
acda8294b7b670668f25e445ab2233b2c6b214d1
/external_scripts/create_references_csv/create_references_csv.py
8865e1669a14b8b1a330d1db4883167131a6f5e5
[ "MIT" ]
permissive
leoisl/pandora_paper_roc
6cb76cfe84d832de6c3d3525947fe8af712637df
bb21c76faefa8021c86c3be9d77b8b5999fe2ef5
refs/heads/master
2023-06-22T18:18:34.951817
2021-06-21T19:22:08
2021-06-21T19:22:08
310,068,005
0
2
null
null
null
null
UTF-8
Python
false
false
1,238
py
# configs references_folder = "references_subset" suffix = ".fna.gz" from pathlib import Path from glob import glob import subprocess import pandas as pd def run_command(command): subprocess.check_call(command, shell=True) def get_reference_id(uncompressed_file): with open(uncompressed_file) as uncompressed_...
[ "leandro@ebi.ac.uk" ]
leandro@ebi.ac.uk
804dc216d8efb2d65ef85ee2e7305dc58c150f65
193e69d4ad303949d8facf1cd7aaef2f1452b6da
/memory_tests/results/memops_scalability/plot_csv.py
d92d73a91a51e6656ebe4ce5bf753b354cd9a6e5
[]
no_license
anastop/archbench
804bf53aeeaa34099f125418f169302a7e428bcb
7663f0a56e3abe728ea696e2b1be45a17910d16b
refs/heads/master
2020-12-24T13:28:07.315391
2020-12-18T14:22:08
2020-12-18T14:22:08
33,410,156
6
0
null
null
null
null
UTF-8
Python
false
false
3,285
py
#!/usr/bin/env python import sys import matplotlib #matplotlib.use('PDF') import numpy as np import matplotlib.pyplot as plt from matplotlib import mlab from util import * infile = sys.argv[1] f1 = open(infile, 'r') csvfile = infile + '.csv' f2 = open(csvfile, 'w') maxthreads = 0 linearray = [] ops = [] for line in ...
[ "n.anastop@gmail.com" ]
n.anastop@gmail.com
da87e2b3975340596bb10584cb4a3569e4aabcc6
5ede9a684485630ec925088d19618be1cbc5ff08
/src/simulation.py
467eb39337bba1ac76b6b4aeb2d242545d8e3fd9
[]
no_license
mgoldenb/EvacuationPolicies
af2e56c7df5e5faadfb1058299d22feecaef2ef9
e511236c6c98e84aafdf91fa7224e8eaf6fefbd4
refs/heads/master
2020-04-27T15:15:53.173068
2014-02-09T17:23:52
2014-02-09T17:23:52
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,712
py
from common import * class Simulation: def __init__(self, instance, timeThreshold): self.instance = instance self.agents = agents = instance.agents self.policies = policies = instance.policies self.timeThreshold = timeThreshold self.paths = paths = [[agent] for agent in age...
[ "mgoldenbe@gmail.com" ]
mgoldenbe@gmail.com
52e020ec81c3b576b9d59261084f29054930abca
527ecc95854a8448969b7ec9587730760008d49e
/Code/DialogueEvaluation/No_Ctxt_No_Gold_Merge/no_gold_config.py
de8614e9cc33276f353e155b9f180c063413f82c
[]
no_license
SourKream/DERP
1b4cd49332a13a9b08e32cef06869add4383c776
874e6f77dff1266290b090055a41d03e7ac6a0b4
refs/heads/master
2021-03-16T06:13:49.469159
2017-08-21T16:56:19
2017-08-21T16:56:19
81,952,482
1
1
null
null
null
null
UTF-8
Python
false
false
1,483
py
# model params CTXT_GRU_HIDDEN_STATE = 512 RESP_GRU_HIDDEN_STATE = 300 VOCAB_SIZE = 50000 # 1 for UNK MAX_RESP_LEN = 50 MAX_CTX_LEN = 500 EMBEDDING_DIM = 300 DENSE_HIDDEN_STATE = 100 DROPOUT = 0.3 use_attention = True # training details TRAIN_SIZE = -1 # -1 => train on all BATCH_SIZE = 256 TRAINABLE = True # hp...
[ "akshay.akgupta@gmail.com" ]
akshay.akgupta@gmail.com
770cde652a542daab0f2fd55ae29d6854a5d0c70
782d5ae9fad0ff98518afca1ef1eee97574f3a9e
/getbizy_project/getbizy_project/getbizy_project/urls.py
e8693ee49a367a147e7b5c2df5853dbc95dd49d2
[ "MIT" ]
permissive
bbrock25/getbizy
6eeb4406cbe225dc4b83a0f6ab0715c3ab6b7717
4889cd1e4199023e8fa2b2b3afb35239cfd27ca0
refs/heads/master
2020-12-25T17:26:38.103584
2014-06-01T21:33:31
2014-06-01T21:33:31
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,183
py
from django.conf.urls import patterns, include, url from django.conf.urls.static import static from django.conf import settings from django.views.generic import TemplateView # Uncomment the next two lines to enable the admin: from django.contrib import admin admin.autodiscover() urlpatterns = patterns('', #url(r'...
[ "bbrock@Bills-MacBook-Pro.local" ]
bbrock@Bills-MacBook-Pro.local
2bac3e251e0b444b1519fc0bc91ee5f46aa5542b
e408837d2242f9ca17259e165566cbabc3ea6645
/MXNetChapter4/DenseNet.py
6535288288ba12b425354e6c31c0707f61c7bb5c
[]
no_license
TriLoo/c_algorithm
f885aab15d9fd728e023e527fa0d1cf12a4ce284
5fe60b830b352a2fa5a78c4517ae20cb16d36557
refs/heads/master
2021-01-13T08:43:01.153175
2020-11-15T13:43:24
2020-11-15T13:43:24
82,043,035
5
1
null
2017-02-20T11:13:06
2017-02-15T09:26:42
null
UTF-8
Python
false
false
2,459
py
from mxnet import gluon from mxnet import nd from mxnet.gluon import nn import utils from mxnet import init import mxnet as mx def conv_block(channels): out = nn.Sequential() out.add( nn.BatchNorm(), nn.Activation('relu'), nn.Conv2D(channels, kernel_size=3, padding=1) ) return ...
[ "song_mh@yeah.net" ]
song_mh@yeah.net
5d2aee020a2f30f6bfef89bf80f619282966bf4a
8fdf8b3a99b80429c74c977a63595b156c849471
/pre_proc/trans_csv.py
f54e46cbc2c2519a79c1c3fa326708dc3a487b05
[]
no_license
swfxliyiyu/pre_cvr
0c48beae6eb2b14f73cd50cf7e0568c1985e57cc
3775d157e8052cd552cce10ae241b6006b54d86a
refs/heads/master
2020-03-09T00:55:51.135784
2018-04-02T09:23:46
2018-04-02T09:23:46
128,500,562
0
0
null
null
null
null
UTF-8
Python
false
false
7,204
py
import pandas as pd from pandas.core.groupby import SeriesGroupBy from sklearn.preprocessing import StandardScaler, MultiLabelBinarizer import numpy as np from collections import defaultdict com = ['instance_id', 'is_trade'] TR_PATH = '../data/train_tc.csv' TE_PATH = '../data/test_tc.csv' cate_feats = {1: 'hour', 2:...
[ "yiyuli233@gmail.com" ]
yiyuli233@gmail.com
08a4e3fb57ed130981c8e79f2b1cad54958f305a
cb2aef5f7575a3d3c4bb8187e79b3905494e36c5
/project1/WhatDidYouEat/migrations/0003_content_image.py
2d10adbd8628abff6cb52e31bbb0a6088908593c
[]
no_license
jisun-16/mysite_jisun
ec585c650e20f408ee6750965b48d99de8ca90a2
d5a4392bab1e8fb599e828fe60b118046fa152f6
refs/heads/master
2022-08-16T21:23:28.271592
2020-05-25T12:55:24
2020-05-25T12:55:24
254,623,162
0
0
null
null
null
null
UTF-8
Python
false
false
398
py
# Generated by Django 3.0.5 on 2020-05-25 12:11 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('WhatDidYouEat', '0002_comment'), ] operations = [ migrations.AddField( model_name='content', name='image', ...
[ "limjisun97@naver.com" ]
limjisun97@naver.com
c2c8ecf7b47f6b2ed06b6019cf762f5c42bb12f3
7cbf72100d8d4c7e6bd9a04996f7703e77653f57
/src/quicksetup.py
9d93d4b024783a54bf75ef3440f74149d755492e
[]
no_license
BKitor/HangoverGame
ea772b4812fc39fb5986f74510a99be5219f3c99
ce00ab61bc133f6baab1f094d7f72786ed73ce4b
refs/heads/master
2021-06-19T21:30:40.490455
2020-06-17T17:30:22
2020-06-17T17:30:22
209,633,155
1
0
null
2021-06-10T19:39:15
2019-09-19T19:28:18
Python
UTF-8
Python
false
false
1,086
py
import os import sys import requests print(sys.argv) host_url = "192.168.1.30" if len(sys.argv) > 1: host_url = sys.argv[1] os.system("python manage.py flush --noinput") user = requests.post(f"http://{host_url}:8000/users/create/", json={ "email": "test@test.test", "username": "test", "first_name": ...
[ "bkitor@gmail.com" ]
bkitor@gmail.com
33be66bdba922fe48cca88e547513a8effdd081e
39c81fdff397915b8682c53475d884cae42e9303
/solutions/search-insert-position.py
a7f180731a84ecb9c2fd39af52f2a27e358641a5
[]
no_license
kesavvvvv/leetcode-solutions
10c641dbf8b5032974b6f6dded5c47e7ba69581b
acbefc1742caa679ba5fffca5e2b28c7d42cc9a5
refs/heads/master
2022-12-05T19:26:27.852923
2020-08-23T15:08:56
2020-08-23T15:08:56
282,949,808
0
0
null
null
null
null
UTF-8
Python
false
false
209
py
class Solution: def searchInsert(self, nums: List[int], target: int) -> int: for i, num in enumerate(nums): if num >= target: return i return i + 1
[ "noreply@github.com" ]
kesavvvvv.noreply@github.com
21a30c790e4ad89321c7def95f73d0d06bf93351
a3ad75c4e2b0279759a47a55a3ef2450b70b9d39
/feedback/admin.py
ea8f6b8f0fcf8f5eecfc6e7fe6976055208a65ee
[]
no_license
RihardXXX/shop
bc4abf34cb4a547fc8cf110ff4a7a02ec1808ffc
769438c28180cc6f7e016877c62869eb8d05c4d9
refs/heads/master
2020-12-09T10:31:05.400948
2020-02-17T22:16:22
2020-02-17T22:16:22
233,277,834
0
0
null
null
null
null
UTF-8
Python
false
false
449
py
from django.contrib import admin """Тут прописываем, как будет работать наша админ панель нашего приложения""" """Импортируем Класс Категори из файла модели""" from .models import Feedback """Регистрируем наш класс модель для управления в админ части сайта""" admin.site.register(Feedback)
[ "yusupa.akaeva@yandex.ru" ]
yusupa.akaeva@yandex.ru
e8c17eea74c5ea748252a4fd75b1032006313127
420631859f760328336172919a7c9228bb903252
/settings_model/migrations/0001_initial.py
a8da7c6e358438f13e03e8503b217f8de20baa88
[ "MIT" ]
permissive
gregschmit/django-settings-model
6067da65bbb3f936ae6a60e492fdd7c73d75fc68
ba8e3302291f367247624dbf47a9d70ceaa4ef8f
refs/heads/master
2020-08-21T11:51:34.184072
2019-12-04T03:49:35
2019-12-04T03:49:35
216,153,680
1
2
null
null
null
null
UTF-8
Python
false
false
1,451
py
# Generated by Django 2.2.4 on 2019-12-04 03:47 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [] operations = [ migrations.CreateModel( name="Settings", fields=[ ( "id", ...
[ "schmitgreg@gmail.com" ]
schmitgreg@gmail.com
20f2fe242806d531fc658c662bc7408d9d8ea68f
9e06975b642fefa448b1e92a41c102f3b88a02bf
/acubor/core/migrations/0002_auto__add_field_companysetting_lotto_tracking__add_field_companysettin.py
1b918883d828b3f0f3e176643e7f577fd1dbd14c
[]
no_license
bishnusyangja/Accment-for-Accounting
024135548e829fe772552ffcc42d4f292245903b
83128d2abd7f92eb58f73b18a9816bd1c1de3549
refs/heads/master
2021-01-23T08:11:09.935512
2015-02-10T03:57:43
2015-02-10T03:57:43
30,546,555
0
0
null
null
null
null
UTF-8
Python
false
false
8,373
py
# -*- coding: utf-8 -*- import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding field 'CompanySetting.lotto_tracking' db.add_column(u'core_companysetting', 'lotto_tracking', ...
[ "bishnusyangja@gmali.com" ]
bishnusyangja@gmali.com
44067309cce2f49327539fe730ae79f746465a87
37c9ffb99e509aaa55e911ce400c6a3c9c1fb660
/solveforloss.py
b36b05c07c6f43cb671669cb0c4ae28d8a70cd9f
[]
no_license
c6ishere/dape
be3cd5ff2cedcc947f391f59f9abc4aa53da3e96
190012b4bff384711802c0e9a7ee800711b723ce
refs/heads/master
2020-08-16T03:26:49.943357
2019-10-16T06:44:04
2019-10-16T06:44:04
215,448,683
0
0
null
null
null
null
UTF-8
Python
false
false
3,613
py
# -*- coding: utf-8 -*- """ Created on Wed Jun 19 21:09:54 2019 @author: c6 """ import numpy as np import math def CalculateDabLoss(r_ds_on_pri = 13e-3, # r_switch i>0 CAS120M12BM2 r_ds_on_sec = 1.5/120, # r_switch i<0 CAS120M12BM2 r_trans_pri = 45e-3, r_...
[ "313994566@qq.com" ]
313994566@qq.com
22a21b51c6ebe82370f1f7a066d1130fa27a4d10
35a14aea825e40b6284388827407e17b9e4fd688
/test/TestGame.py
e3ef646cfccfbc023db3a5d2bc2a2106bb0cbc29
[]
no_license
spatzle/Practice-Battleship
77411a1ea950982924cfdce193ed07300ae8dd0f
9b062a12b3b1e958154c6089ab847d0632d6d971
refs/heads/master
2021-01-13T02:03:22.612825
2011-03-23T14:35:32
2011-03-23T14:35:32
1,516,553
0
0
null
null
null
null
UTF-8
Python
false
false
995
py
''' Created on 2011-03-22 @author: joyce ''' import unittest from Player import Player from Point import Point from PlayerError import FleetNotAllOnGrid from Game import Game class TestGame(unittest.TestCase): def _setupPlayer(self,p,g): m = p.mygrid m.placeShipOnGrid(p.fleet.destroyer, Point([1,1...
[ "joyce.sz.chan@gmail.com" ]
joyce.sz.chan@gmail.com
80ea75adc5da4fe81b94b066b777d0f2d6067b03
f9a8aecd848bcc79052ca068cc73850a63e6dfcf
/training/in_out/storage_manager.py
5d34501fdf93be3a637da857c22a455e520d89a5
[ "MIT" ]
permissive
khoehlein/fV-SRN-Ensemble-Compression
537981a1cd31565bb504b00ca730e8bf87e7e0ef
2780b83d2594c1b38b57ab58087b46bee4b61e8b
refs/heads/master
2023-04-17T09:42:48.037397
2022-09-07T08:55:01
2022-09-07T08:55:01
532,983,107
4
1
null
2022-09-06T14:39:26
2022-09-05T16:43:24
Python
UTF-8
Python
false
false
7,867
py
import argparse import io import json import os import shutil import subprocess import sys import h5py import imageio import numpy as np import torch from torch.utils.tensorboard import SummaryWriter class StorageManager(object): class CheckpointKey(object): EPOCH = 'epoch' PARAMETERS = 'paramet...
[ "kevin.hoehlein@tum.de" ]
kevin.hoehlein@tum.de
fdadcbf64f422cf13ee2fb4e35986b9fa8f0d439
d8c32144001fc77c23aee731d6ce768fac72ed3d
/builder.py
6805711e0b173147c02dc6cd876963810ff23a1b
[]
no_license
Shubham617/Text-Suggestions-Auto-Complete
21ddc704b83ca3def32a130d695312f5824c6839
81fb03c2986175a50dae98e4bef294e09b262728
refs/heads/master
2021-06-20T16:02:52.800920
2017-07-30T19:10:44
2017-07-30T19:10:44
98,810,946
0
0
null
null
null
null
UTF-8
Python
false
false
1,008
py
import suffix import prefix from functools import * NONWORD = '\n' def build(name): return build_chain(add_to_chain, pairs_gen(name, line_gen), suffix.empty_suffix()) def build_chain(fxn, gen_obj, imm_obj): return reduce(fxn, gen_obj, imm_obj) def add_to_chain(chain, pair): if (chain.get(pair[0])) =...
[ "smlakers@gmail.com" ]
smlakers@gmail.com
91a24e930254656db82201045c6bbcefad002019
5410c449f2e869aeb795c044c16984d2f4c7241f
/dereferer/app.py
75ac600a0598d68b08452a54619bd1200be83882
[]
no_license
jcsaaddupuy/dereferer
7505085f65bc9abd1524d7471d9ed4c3ba9f40ed
edda3740a5a9b3431b86ecd0b08577a46010693f
refs/heads/master
2016-09-05T20:12:34.441938
2015-08-26T20:10:12
2015-08-26T20:10:12
41,445,432
2
0
null
null
null
null
UTF-8
Python
false
false
5,669
py
from __future__ import unicode_literals import logging import logging.config import os from flask import Flask from flask import request try: from urllib.parse import urlparse, unquote, parse_qsl, urlencode except: from urlparse import urlparse, parse_qsl from urllib import unquote, urlencode import ...
[ "jc.saaddupuy@fsfe.org" ]
jc.saaddupuy@fsfe.org
3ac04967e2384947a97b1002bf6624d0e7228ae1
8a10ecca2519bdf18209eaa6d581fc05d82068c6
/pmoApp/context_processors.py
0b0948d9a4c7320feae190e1e18912d64e3662a3
[]
no_license
juthebest/pmoNesims
1cca36c705f47d1a8b78eb23a00c67ce14cb8f17
2ed6bac546b37cb6afb8faee695fecb25b90b721
refs/heads/master
2020-12-04T10:13:37.142611
2018-04-05T08:13:20
2018-04-05T08:13:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
418
py
from .models import * from django.shortcuts import render def crisis(request): return{ 'showCrisisList': list(CMOPlanReport.objects.all()) } def status(request): querylist1 = [] caseIds = CMOPlanReport.objects.values_list('caseID') for i in range(len(caseIds)): qs1=statusReport.objects.filter(caseID_id=ca...
[ "nurhayatichua@gmail.com" ]
nurhayatichua@gmail.com
e7ffe724681f4837b1cb1f95ec038554a19de877
34c7b11feaa350873d1428212c268b8111617759
/trainer/sub_trainer/train_only_cnn.py
051293ef8967a06c362d89e700b62ac0c33853ca
[]
no_license
Ryu0w0/ConvAutoencoder
ea9b34bb644f8ebed1358e9ff0c8b7090fbf1892
879d71aec3c1ce4723110ddab105db5cf24180fe
refs/heads/master
2023-01-20T09:29:51.101520
2020-11-15T07:49:11
2020-11-15T07:49:11
308,183,519
1
0
null
2020-11-15T07:49:13
2020-10-29T01:21:50
Jupyter Notebook
UTF-8
Python
false
false
2,686
py
import numpy as np import torch import torch.nn.functional as F from utils.global_var import TrainType from utils import global_var as glb from utils.seed import seed_everything from utils.early_stop import EarlyStopping from torch.utils.data.dataloader import DataLoader from trainer.abstrainer import AbsTrainer from t...
[ "flymetothemoon0w0@gmail.com" ]
flymetothemoon0w0@gmail.com
cc2478d9ebb6271fb58d0503a00d18aa97ffb37c
17ecb7acac9b647d694c397db33d58f2899137ee
/kivy/aulas/Seção 19 - Orientação a Objeto II/Decorators.py
1596bfc0c75c937b3b5aac70bcbb6a2dcd759609
[]
no_license
PedroRamos360/PythonCourseUdemy
c7f3af1c6bf4aaab9296794ebab517c3a57b9b87
b834918017c8ed6b3b306644cd122bf3ebb770ef
refs/heads/master
2020-12-27T10:00:44.830784
2020-10-06T22:12:04
2020-10-06T22:12:04
237,859,157
1
0
null
null
null
null
UTF-8
Python
false
false
215
py
class A: def __int__(self): self._var = 0 @property def var(self): return self._var @var.setter def var(self, x): self._var = x a = A() a.var = 10 t = a.var print(t)
[ "53490820+PedroRamos360@users.noreply.github.com" ]
53490820+PedroRamos360@users.noreply.github.com
a0b57ef38ca9b18ba125d1c6f7bc15324c4b36c6
8acffb8c4ddca5bfef910e58d3faa0e4de83fce8
/ml-flask/Lib/site-packages/caffe2/python/mkl/mkl_sbn_speed_test.py
181f58e1350d04d4f2a1ee6bfd89f06fe947516a
[ "MIT" ]
permissive
YaminiHP/SimilitudeApp
8cbde52caec3c19d5fa73508fc005f38f79b8418
005c59894d8788c97be16ec420c0a43aaec99b80
refs/heads/master
2023-06-27T00:03:00.404080
2021-07-25T17:51:27
2021-07-25T17:51:27
389,390,951
0
0
null
null
null
null
UTF-8
Python
false
false
129
py
version https://git-lfs.github.com/spec/v1 oid sha256:d7ccfc28b48531f34b0173911a02184968225b607033f39386215d31af9bbe20 size 4605
[ "yamprakash130@gmail.com" ]
yamprakash130@gmail.com
9f1b20c80154b75ac89fc586ccd025df92557063
91b72a74fdb575ac3070e3cdecca939cf6d9fe23
/damhwa_server/django_server/django_server/kobertmodel/models.py
c3a1d7075fd9e823ce9f065f4aa8346e0609dfac
[]
no_license
minkpang/Damwha
5dce00481ea5a017944f223e6099d41a157e24c8
b2e070c93fd2c6e7959bb7f2c7cd36fe5b998693
refs/heads/master
2023-08-17T20:31:00.341261
2021-10-07T15:59:21
2021-10-07T15:59:21
416,627,247
0
0
null
null
null
null
UTF-8
Python
false
false
2,758
py
from django.db import models class Flower(models.Model): fno = models.BigIntegerField(primary_key=True) fnamekr = models.CharField(db_column='fnameKR', max_length=40, blank=True, null=True) # Field name made lowercase. fnameen = models.CharField(db_column='fnameEN', max_length=40, blank=True, null=True) ...
[ "rlawjddbs963@naver.com" ]
rlawjddbs963@naver.com
c2ad6cae3eb2872835f29d5b9bb302dc9eab7878
257c34e5dc6bde685659950c755335afee6c028f
/blog/utils/api_clients/backend/exceptions.py
d44d2562d4cbe0843fdd3938c1eb330a99d19417
[]
no_license
smtkey/probegin
6cadc4e88389670d7bce457c6fda01b82d965738
f6f2598237fabfd3ffbc7726dc1c600072e0f107
refs/heads/master
2021-01-15T20:28:54.458390
2017-08-14T08:08:34
2017-08-14T08:08:34
99,852,497
0
0
null
null
null
null
UTF-8
Python
false
false
1,050
py
api_exception_register = dict() class APIClientErrorRegistry(type): """ Registers error codes and class signatures into a global exception register which is able to map error codes to a specific exception. """ def __new__(cls, name, bases, attrs): """ Put the error code and class...
[ "wonderer000@google.com" ]
wonderer000@google.com
8f9754d9000261cf1c7f19388864972753850d1f
fd9bdf53fcef992734b937cb2d0f9d58bd9d9ead
/scripts/test_options.py
90528db7967e3554f5fecb0edadc510c65c888c0
[]
no_license
babakopti/opti-trade
ec62f9b387b99838e3a9012b27e23d9da869072e
a01bfaa7c9792cb816cd3bb4f3a50fe3ba580a10
refs/heads/master
2023-08-19T10:56:57.207717
2023-08-13T02:16:33
2023-08-13T02:16:33
201,105,006
0
1
null
null
null
null
UTF-8
Python
false
false
4,634
py
# *********************************************************************** # Import libraries # ************************************...
[ "optilive.developer@gmail.com" ]
optilive.developer@gmail.com
6ead493e481be2b90053998f4cf7e5c19a0a4ee9
17660b97a12343c177d766377afbd16787762fa7
/23/04/0.py
f66495e696b83b82c495f757d7542d6477f67afd
[ "CC0-1.0" ]
permissive
pylangstudy/201706
a39caac815f65f226a6b34743f0a0a4eac33ec8e
f1cc6af6b18e5bd393cda27f5166067c4645d4d3
refs/heads/master
2023-01-07T21:25:12.756348
2017-06-30T00:35:24
2017-06-30T00:35:24
93,048,112
0
1
null
2022-12-21T12:10:46
2017-06-01T10:59:59
Python
UTF-8
Python
false
false
67
py
import math print(math.cos(math.pi / 4)) print(math.log(1024, 2))
[ "pylangstudy@yahoo.co.jp" ]
pylangstudy@yahoo.co.jp
175d9355251e09ef5187142c0464e14e0f2c22c8
51d7133f43573c0c04b9dd5020e0d346cf3ae3c3
/Assignment 2/Task4.py
7f27f492aca33df92fb5be767cf3b2f2f96a2536
[]
no_license
bilaltanveer/System-Programming
c1c9fa28d2a0f36917b3fdbc00c989053b91f70c
b033daa21b791f943abd4a81d9ac77b08eaabe8a
refs/heads/master
2021-01-24T16:33:48.497287
2018-05-20T20:44:39
2018-05-20T20:44:39
123,203,523
0
1
null
null
null
null
UTF-8
Python
false
false
623
py
import os import psutil import time import datetime def Info(id): p=psutil.Process(id) print("Id: ", id) print("Name: ", p.name()) print("Status: ", p.status()) print("Parent ID: ", p.ppid() ) print("Parent Name: ", psutil.Process(p.ppid()).name()) print("Memory Info: ", p.memory_...
[ "noreply@github.com" ]
bilaltanveer.noreply@github.com
3fcad67a6b4faa1a140caa80ece18bf5c3ad6f7c
227f1ac6ff6c51d76631a05505dc45377ccfb3ff
/venv/Scripts/easy_install-3.8-script.py
6d9716542d102914b810279f8d549ac895ae6543
[]
no_license
roshan-karkera/tree
aaaed5de47e4b93226530ef126b7e43f623d8201
34e67c98053b7d4da4930bdf7329ca557ac75cd8
refs/heads/master
2022-12-15T18:56:05.336400
2020-09-10T18:20:31
2020-09-10T18:20:31
294,485,964
0
0
null
null
null
null
UTF-8
Python
false
false
461
py
#!C:\Users\Admin\PycharmProjects\turtledemo\venv\Scripts\python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install-3.8' __requires__ = 'setuptools==40.8.0' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\....
[ "roshan.karkera12345@gmail.com" ]
roshan.karkera12345@gmail.com
e23df336881980f9ff533131c3aa7e30adbfa3f0
dfc827bf144be6edf735a8b59b000d8216e4bb00
/CODE/experimentcode/Thesis/Forced/GrowingGaussianBumpoverPeriodicBed/FEVMTrialsFix/htansformLiftSmooth/Run.py
b769f305f98097481de69f0986cb441b46247775
[]
no_license
jordanpitt3141/ALL
c5f55e2642d4c18b63b4226ddf7c8ca492c8163c
3f35c9d8e422e9088fe096a267efda2031ba0123
refs/heads/master
2020-07-12T16:26:59.684440
2019-05-08T04:12:26
2019-05-08T04:12:26
94,275,573
0
1
null
null
null
null
UTF-8
Python
false
false
16,230
py
# -*- coding: utf-8 -*- """ Created on Mon Jun 5 14:24:26 2017 @author: jp """ from Serre2dc import * from scipy import * from pylab import plot, show, legend,xlim,ylim,savefig,title,xlabel,ylabel,clf, loglog import csv import os from numpy.linalg import norm,solve from time import time def copyarraytoC(a): n = ...
[ "jordanpitt3141@github.com" ]
jordanpitt3141@github.com
76e5aac521950124056aa884c50b6caea915c5bd
2084fd977b41983d3e7039e55dccabc3140c123b
/scripts/slave/recipe_modules/recipe_autoroller/__init__.py
84c53d595824bddb7fd0b098957beca8d6698af4
[ "BSD-3-Clause" ]
permissive
eunchong/build
14c0404ac3a9821bd88513afbc315ab18dbdd0ab
4e95fd33456e552bfaf7d94f7d04b19273d1c534
refs/heads/master
2021-01-21T14:06:13.614193
2016-05-28T05:12:07
2016-05-28T05:12:07
55,701,415
0
1
NOASSERTION
2020-07-23T11:05:04
2016-04-07T14:29:36
Python
UTF-8
Python
false
false
200
py
DEPS = [ 'depot_tools/gclient', 'depot_tools/git', 'luci_config', 'recipe_engine/json', 'recipe_engine/path', 'recipe_engine/python', 'recipe_engine/step', 'recipe_engine/tempfile', ]
[ "phajdan.jr@chromium.org" ]
phajdan.jr@chromium.org
9164389c9fadeaddb1a2030af2193a6e17899248
4137e27c5ed73c71f77421dfeb3c1949127fe61f
/4/lcdesp.py
5783ddca1437de1b8403ae599e65d7fcd55fef84
[]
no_license
rwmatt/rpi
559b34fcdff5437134741b78f9da872e9c8e5419
76d3c7b1569bedcd2393d4c3eb52a77df5fa6b73
refs/heads/master
2020-09-17T08:44:20.963683
2019-11-21T17:42:50
2019-11-21T17:42:50
224,057,901
1
0
null
2019-11-25T23:02:39
2019-11-25T23:02:38
null
UTF-8
Python
false
false
722
py
from machine import Pin, SPI from utime import sleep_ms rs_pin = Pin(2, Pin.OUT) # Pin D4. Do NOT use the regular MISO pin (D6) cs_pin = Pin(15, Pin.OUT) # aka SS slave select cs_pin.on() #spi = SPI(sck=Pin(14), mosi=Pin(13), miso=Pin(12)) spi = SPI(1) spi.init(phase = 0) spi.init(baudrate=400000) def write_val(csv...
[ "alt.mcarter@gmail.com" ]
alt.mcarter@gmail.com
ab4bfbd4dd1d1a9a1abc2f4fc50268183f7fb8d7
797686ff67cea2813efab056d2fb1458660af911
/venv/lib/python3.6/_weakrefset.py
dcc673e910c5f350456f38e901e424767553cc52
[]
no_license
eyedontseeyou/trax
ca7dc8d133e197b8c4d87c9d07c1ced3617c2b36
3cab050dbe88a928d3888c36a679879923d48342
refs/heads/master
2021-06-26T16:37:45.464472
2017-08-10T18:10:36
2017-08-10T18:10:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
53
py
/Users/DASHRC/miniconda3/lib/python3.6/_weakrefset.py
[ "diegosanchez@bearfootworks.com" ]
diegosanchez@bearfootworks.com
37ecd7a34b920c36a134674528f77f8a0c050536
802c76aab2f6e41b3fb1a591ebe982b32866df07
/qianliwang/apps/File/migrations/0007_auto_20200616_2248.py
7b89f3c63da8a3dc60c5f2fba8773eab06a723b8
[]
no_license
lazyManCoder/slience
abf54c05c41eb28aee465dc4684e4f8572b90931
036eb3587ddedb0b31a53c604761d31b5e309b8d
refs/heads/master
2022-11-19T17:24:31.686120
2020-07-24T15:21:19
2020-07-24T15:21:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
378
py
# Generated by Django 2.2.1 on 2020-06-16 14:48 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('File', '0006_note'), ] operations = [ migrations.AlterField( model_name='note', name='data', field=model...
[ "1490365616@qq.com" ]
1490365616@qq.com
c3dbc544d9d518a59eeba6c6559a1a03ba823516
975d42b6d571b071347ecf0c11bc0768cdd1b2a4
/tests/tests.py
b88bbdc1955c61e18bb4e51ad67b2e6f0a408d35
[]
no_license
dizak/covinfo
65f8b33ce93571e09cb72e573ced20e17f28ab77
ba46302c43e6041c42f6d8e63a121ac9b09a1e69
refs/heads/master
2021-05-22T15:19:30.813502
2020-05-02T13:01:14
2020-05-02T13:01:14
252,979,129
3
1
null
null
null
null
UTF-8
Python
false
false
1,862
py
#pylint: disable=import-outside-toplevel,too-few-public-methods,bad-continuation """ Unit-tests for covinfo module """ import unittest import json class Request: """ Dummy request class mocking attributes holding by flask.Flask.request """ args = {} def get( self, key, ): ...
[ "dariusz.izak@ibb.waw.pl" ]
dariusz.izak@ibb.waw.pl
77e5a90be89e2b9b47ea56ee1ab0cebec00757b5
5eab827c7b49f87e010ad88430e3537b94f5fef4
/Project Exam-1/Individual Source Codes/Question-2.py
f7edd2f431e5fde39ed617119d00d1b07c3eb5d4
[]
no_license
Shravyala/Python-Deep-Learning
4e6224d949c1a64515462e28cd81aa717de9aaa3
76e5d51dbdcca24619d44c4ac31eb29e3eb7180f
refs/heads/master
2022-11-25T14:27:23.702753
2020-07-30T05:03:01
2020-07-30T05:03:01
271,366,054
0
0
null
null
null
null
UTF-8
Python
false
false
1,997
py
import pandas as pd import matplotlib.pyplot as plt from sklearn.cluster import KMeans from sklearn import metrics import numpy as np import seaborn as sns #feeding the data Costomers.csv to data variable data = pd.read_csv('Customers.csv') # Null values condition check nulls = pd.DataFrame(data.isnull().s...
[ "noreply@github.com" ]
Shravyala.noreply@github.com
b50e909bcaf7a8eff6979490a05da8ef8b0d4eb3
b615302f6c5e4fbbd5b125523a660f7e5ebd97d1
/parse.py
1e7463b445488daeb02a2cdae04caa99dfe61420
[]
no_license
cg439/MLProject
8bc4376862ed16b25a79b4b659a87209051d9110
95806cd354587bd653209fec14903990daa0e090
refs/heads/master
2021-01-18T14:05:15.351994
2014-12-11T04:50:19
2014-12-11T04:50:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,231
py
import nltk, re, os #rev = os.listdir("Reviews/") ##takes in all the reviews in the directory Reviews and adds them to a reviews.txt #if reviews.txt already has stuff in it and you want to add more, delete the content first, #or else it will be duplicated def concatReviews(filename): with open(filename) as f: con...
[ "lcatherine.2828@yahoo.com" ]
lcatherine.2828@yahoo.com
2976312d0df5d7dcef475c8adbf0f1c5b199284e
de55ba824daaf87208396502d48132b541c45b55
/webanalysis/migrations/0001_initial.py
488865a71b2f18ac3845016b7f0fc11f4a682f08
[]
no_license
SK2-Angel/CMDB_V1.0
efcfd16d0531c755f9d3e0b0f27b7c03fb29436f
5c19625a42395025ae9181844e9add8bcdfcd0c8
refs/heads/master
2020-12-09T05:47:02.732391
2020-01-11T11:36:26
2020-01-11T11:36:26
233,211,027
2
0
null
null
null
null
UTF-8
Python
false
false
713
py
# Generated by Django 2.0.5 on 2019-12-02 14:46 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='AccessLogfile', fields=[ ('id', models.Auto...
[ "18530022535@163.com" ]
18530022535@163.com
1bb2c38f5ac920acadf2b909fff16d8d37748f02
c47be0df7bf64f96f285061d886c1de1abb0d56e
/classes/Preprocessor.py
80d91332dcf79dda3e8e238415bf1a21211bd50f
[]
no_license
UNREALre/TextAnalysis
e01fa78e84688285ae6386e77cf38adb18ce14f2
8c7ebb574cc208cfb2ce95f5fcc1fe82d06baa54
refs/heads/master
2022-11-06T01:10:37.056743
2020-06-23T13:44:14
2020-06-23T13:44:14
268,060,986
0
0
null
null
null
null
UTF-8
Python
false
false
3,632
py
#! /usr/bin/env python # -*- coding: utf-8 -*- from nltk import (pos_tag, sent_tokenize, wordpunct_tokenize) from classes.CustomCorpusReader import HTMLCorpusReader import os import pickle class Preprocessor(object): """Обёртка над HTMLCorpusReader""" def __init__(self, corpus, target, **kwargs): s...
[ "avpmanager@gmail.com" ]
avpmanager@gmail.com
145a60e8244e8c62053d46b2ed498514d3f30768
e5554dae331c863d3240c66ca0189cc784935f3e
/manage.py
3836d39c220a029eedcb437492acf5dca11d2aaa
[]
no_license
momikenSneg/ecg_editor
3299fed4d173b92e52fb67577d3ed44606d907d3
7a9a9635ea8fb62af0fc5c31560b71eb47de6150
refs/heads/master
2023-04-06T00:09:33.824429
2021-04-06T10:06:00
2021-04-06T10:06:00
337,184,921
0
0
null
null
null
null
UTF-8
Python
false
false
666
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', 'web_editor.settings') try: from django.core.management import execute_from_command_line except I...
[ "e.snegireva@g.nsu.ru" ]
e.snegireva@g.nsu.ru
c17ed168a9f913b2c1082c60adc0dd0b986ba84f
9758fa6d66df1121ff9e0b4a7da511653bc53cf1
/Food/migrations/0018_auto_20190825_1336.py
dc7b6dc448dd9060168379f3107d594f2f6dc47d
[]
no_license
hdforoozan/Restaurant-project
179fb4138cb92bfd7716671c3b1e8b1949bfbaff
2ab096cbc3ee20557b57ed97bd0d5556c5965e87
refs/heads/master
2020-06-12T08:50:03.067740
2019-09-17T18:48:43
2019-09-17T18:48:43
194,250,030
0
0
null
null
null
null
UTF-8
Python
false
false
398
py
# Generated by Django 2.2.2 on 2019-08-25 09:06 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('Food', '0017_food_users_like'), ] operations = [ migrations.AlterField( model_name='food', name='price', ...
[ "hdforoozan@gmail.com" ]
hdforoozan@gmail.com
f9bf02e34f365e5136aaecfd9d27ccd68fbe9d0f
16557aae9ebe153c4719408e9ddce70f7c36a345
/DEKRACTF_2020/heapMePls/exploit.py
9a295c4ed19dfa7dcecc3287f017ca796b6ce7e0
[]
no_license
FDlucifer/exploit-challenges-1
216b7cae40f163146b7b72f51a35a6eb2396d8d3
2fa1714410dd442ae684771408db985a8f13c85e
refs/heads/main
2023-03-14T08:33:45.604121
2021-03-07T18:09:14
2021-03-07T18:09:14
423,387,052
1
0
null
2021-11-01T08:15:35
2021-11-01T08:15:35
null
UTF-8
Python
false
false
2,404
py
from pwn import * # --- Info --- # CTF: DEKRA # Date: - # Challenge: HeapMePls # Description: Simple tcache poisoning attack via Use-After-Free # --- End Info --- #context.log_level = 'debug' context.terminal = ["tmux", "sp", "-h"] context.endian = 'little' PATH = './vuln' LIBC = './libc-2.28.so' ENV = {"LD_PRELOAD...
[ "noreply@github.com" ]
FDlucifer.noreply@github.com
e5e187191960e5bd2599ed13047b11725d49c3ba
4a7a12ae309a4828ebe1f7ea813711314d881962
/selenium基本操作.py
962fdc1e3b2649c075fb1ccc29380cf10e2d7f7a
[]
no_license
snakecook/selenium
44137252e2ef42684e71917f5dc6f162e7a596a0
5d9a92bfc98aa2aa0ddfad2455da8d3c374ec26e
refs/heads/master
2022-12-13T15:50:54.631963
2020-09-01T14:53:55
2020-09-01T14:53:55
292,028,815
0
0
null
null
null
null
UTF-8
Python
false
false
1,440
py
''' - 下载安装selenium: pip install selenium - 下载浏览器驱动程序 - http://chromedriver.storage.googleapis.com/index.html - 查看驱动和浏览器版本的映射关系: - http://blog.csdn.net/huilan_same/article/details/51896672 - 实例化某一浏览器对象 - 动作链: - 一系列连续的动作 - 在实现标签定位时,如果发现定位的标签是存在于iframe标签之中的 ,则在定位时必须执行一个固定的操作:bro.switch_to.frame('ifra...
[ "112@qq.com" ]
112@qq.com
0502814ae0a54fbd92c65e786d412a00fd32ba5e
bc527cc92afcf5eefe88f87ccfaf1c85d8e3abdf
/NN.py
e5ca75f0ad723d576a037b59f951480dc522bb6d
[]
no_license
ehillis2/datamining
55648ff4bf2c65555e825cce7fea848d936ddcb0
68c0ab4a0c8344eaeb2d4e937ad2c612d88d7094
refs/heads/main
2023-02-06T05:08:32.226553
2020-12-24T17:33:25
2020-12-24T17:33:25
303,435,146
0
0
null
null
null
null
UTF-8
Python
false
false
6,479
py
import processing from sklearn.neural_network import MLPClassifier from sklearn.model_selection import StratifiedKFold from sklearn.decomposition import PCA from sklearn import metrics import numpy as np import random import pandas as pd import matplotlib.pyplot as plt import itertools as it import operator import sys...
[ "noreply@github.com" ]
ehillis2.noreply@github.com
2c42d501c2cf98bb835561f7ce5a97d59d48ecb3
a05da5da30f1e2b72ed1686d847544215ce2e1f1
/xrit-header.py
b714c563ba88eb4a25889b5857ddd444a1a344c3
[]
no_license
cdzkhxhdgs/COMS-1
fb45184e40b393e274da8ba00ad0544280b3f1f5
fbcf2113bfe84d00cd43d95119d2ff50169dc9a3
refs/heads/master
2020-04-13T07:40:58.257874
2018-10-03T09:46:16
2018-10-03T09:46:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,036
py
""" lrit-header.py https://github.com/sam210723/coms-1 Parses xRIT file and displays header information in a human-readable format. """ import argparse from coms import COMS as comsClass argparser = argparse.ArgumentParser(description="Parses xRIT file and displays header information in a human-readable format.") ar...
[ "sam210723@hotmail.com" ]
sam210723@hotmail.com
0279b8479bb0638490b8d8cc6a83aab30c0a06f1
605d63d23bc2e07eb054979a14557d469787877e
/atest/testresources/testlibs/pythonmodule/submodule/__init__.py
ce29c8eedcad746723f5da941daf6c4288ee44fe
[ "Apache-2.0", "CC-BY-3.0" ]
permissive
robotframework/robotframework
407b0cdbe0d3bb088f9bfcf9ea7d16e22eee1ddf
cf896995f822f571c33dc5651d51365778b1cf40
refs/heads/master
2023-08-29T03:19:00.734810
2023-08-27T18:14:48
2023-08-28T18:14:11
21,273,155
8,635
2,623
Apache-2.0
2023-09-05T04:58:08
2014-06-27T11:10:38
Python
UTF-8
Python
false
false
15
py
attribute = 42
[ "peke@iki.fi" ]
peke@iki.fi
b494d146fd39b85413b9ab89babb6933f9662bf8
6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4
/RejGBWcKsKM2PANip_6.py
57e62895a1c80b85fd33ca4de87e610fdce8abd7
[]
no_license
daniel-reich/ubiquitous-fiesta
26e80f0082f8589e51d359ce7953117a3da7d38c
9af2700dbe59284f5697e612491499841a6c126f
refs/heads/master
2023-04-05T06:40:37.328213
2021-04-06T20:17:44
2021-04-06T20:17:44
355,318,759
0
0
null
null
null
null
UTF-8
Python
false
false
43
py
number_syllables=lambda w:w.count('-')+1
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
66038a6a9f3d13ab170760381bc61b357fad59f0
8a1ca658c1ace3ac6aff98d4547b20c5442fea98
/wrn.py
21c975f969a1022d8a986d4f2fee3e9bd86ecf42
[ "BSD-2-Clause" ]
permissive
GRSEB9S/wrn
00986a6caccd48c4a57dc0fa51f23a83ff6828ce
5c8873b9dcaa73c9f5aaa4f5767e5e95a32f7df2
refs/heads/master
2021-06-23T14:16:41.589262
2017-08-31T11:53:36
2017-08-31T11:53:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,677
py
from keras import layers, models, regularizers def building_block(inputs, double_filters, weight_decay, dropout): """Create basic building block for WRN.""" try: layer_id = building_block.id except AttributeError: building_block.id = 1 layer_id = 1 x = layers.BatchNormalization...
[ "noreply@github.com" ]
GRSEB9S.noreply@github.com
7c036450975191a96468b11af985b239af0ca668
545287103b8af5d70a008dcc6944b23ba2085e4a
/maze_generator/blender/interaction/messagebox_manager.py
bb42b72fd90b49caeac63d2924ac9f86d942d800
[]
no_license
Gorgious56/MazeGenerator
ac83040ebb78029065fbfc46a23f6ee9f950ce89
c7786a1d0bade95469ba87c9537d1da64801dc66
refs/heads/master
2022-11-23T21:21:08.254284
2022-11-06T10:58:28
2022-11-06T10:58:28
250,792,747
67
9
null
null
null
null
UTF-8
Python
false
false
217
py
import bpy def ShowMessageBox(message="", title="Message Box", icon='INFO'): def draw(self, context): self.layout.label(message) bpy.context.window_manager.popup_menu(draw, title=title, icon=icon)
[ "nathan.hild@gmail.com" ]
nathan.hild@gmail.com
40bcf300e0d4931eb0336d1a4a8224e3aec77be7
8adca41b59f269c62b2b469789e164ad240a5dd7
/ui/demo3 (2).py
6773f4167c84166af642430e26eaa4fe568a24b8
[]
no_license
zhongxiu-xiu/python_study
16794a0ebdcc815bafb1c49928b2dbbb1306b52c
19fcdebc197f5d06e493a4dfc682e51a47b30191
refs/heads/master
2023-02-06T05:50:28.693653
2020-12-26T02:00:41
2020-12-26T02:00:41
322,170,575
0
0
null
null
null
null
UTF-8
Python
false
false
701
py
# -*-coding:UTF-8 -*- from selenium import webdriver from selenium.webdriver.common.action_chains import ActionChains from selenium.webdriver.common.keys import Keys driver = webdriver.Chrome() driver.get('http://192.168.1.4/ecshop/admin/privilege.php?act=login') driver.maximize_window() driver.find_elem...
[ "1053966454@qq.com" ]
1053966454@qq.com
5b8d58249172a7b5266d50944fceb096f4ba4a1b
878625467c09742cbcc660791e5b2b38a407b4fe
/regular expression/mob.py
fded198953b8888ba27214e9779759599f3e4242
[]
no_license
PraisyPrasad/luminarpythonprograms
b7c80a08fe380826513d5339c8899927405e40dd
83dfcb143d7fc9de53d4882f695a467fe238772e
refs/heads/master
2023-04-25T09:02:33.028285
2021-05-15T00:23:45
2021-05-15T00:23:45
367,158,687
0
0
null
null
null
null
UTF-8
Python
false
false
152
py
import re n=input("enter num is valid") x='[+][9][1]\d{10}' match=re.fullmatch(x,n) if match is not None: print("valid") else: print("invalid")
[ "praisyprasad123@gmail.com" ]
praisyprasad123@gmail.com
10d3ddc612d1426bc04e35bc349569fe384e0a69
174ad2b84041ee9dface6f822737cd30e39aa04d
/PythonHomeWork(Essential)/PythonHomeWork_7/HomeWork7/AddTask/Task2(newVersion)/cli_main.py
a814ef3fda06880248a9c9e6bd995c6160cd7d74
[]
no_license
duk1edev/projects
88f26830ac16f0fc889cace8ffab756788ee0b24
74bdea8b56bee9e1c0d8a78405ad0ca7bad38543
refs/heads/master
2020-06-24T17:15:17.891008
2019-11-29T17:23:54
2019-11-29T17:23:54
199,027,173
0
0
null
null
null
null
UTF-8
Python
false
false
1,312
py
"""Модуль консольного интерфейса приложения""" from links_db import LinksDB def add_link_to(links): """Функция добавления новой ссылки в хранилище links""" while True: short_name = input('Enter the short name: ') original_url = input('Enter url:') try: links.set_url(shor...
[ "duk1e.ptc.ua@yandex.ru" ]
duk1e.ptc.ua@yandex.ru
3e4b00a89caba59ee5ff048d9bdc3d13ea5a3684
5fedc522580b56a3670762dcba6408cfe4d52a8b
/application/api/evaluaciones/config.py
cb2576d2f0aa6b373e6f1437b14776f8e0f29600
[]
no_license
AlexisAndresHR/EncuentrAhorro_WebApp
953ea30ee23fd92ffe37ebb1d35c141f61818781
63a4d8a272d257e0d93c62557b88731e04b01937
refs/heads/master
2020-05-03T11:06:25.507755
2019-12-11T09:51:24
2019-12-11T09:51:24
178,593,646
0
0
null
null
null
null
UTF-8
Python
false
false
102
py
import web import application.models.model_evaluaciones model = application.models.model_evaluaciones
[ "1717110253@utectulancingo.edu.mx" ]
1717110253@utectulancingo.edu.mx
e1b6e83e07a9bcfd9001a34c8070d429dfa2709b
23255bee10b758d10e403b5a05fa6b16f95d9760
/python_visual_mpc/video_prediction/read_tf_record.py
4b95d75ad1c24d8ef3e9451a4146fb86abe253ba
[]
no_license
yilundu/visual_mpc
454e5c1cc80a7f3c6a272a65bca8057176c280ab
357ba4df88dc5ab07ddb67a6cab260fc24a43a01
refs/heads/master
2022-01-12T02:00:23.606406
2017-09-22T22:23:41
2017-09-22T22:23:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
17,533
py
import os import numpy as np import tensorflow as tf from tensorflow.python.platform import gfile import matplotlib.pyplot as plt import pdb from PIL import Image import imp # Dimension of the state and action. STATE_DIM = 4 ACION_DIM = 2 OBJECT_POS_DIM = 3 from python_visual_mpc.video_prediction.utils_vpred.crea...
[ "frederik.ebert@mytum.de" ]
frederik.ebert@mytum.de
af525ba2ecb614636ec05e27a2a9a2e87baddc34
b7341581abaf2fb50e10e14911cc579e606a23d2
/sirius_sdk/base.py
a1b521ab14b01c31c004db93b6b13035aede40d2
[ "Apache-2.0" ]
permissive
GarlonHasham/sirius-sdk-python
3e627af6c2b3ef641b27514787fb08d0e0b30808
715b12c910574d78502f186aa512bc1ef5b63fbc
refs/heads/master
2023-05-14T03:56:29.141362
2021-06-03T10:42:01
2021-06-03T10:42:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,958
py
import asyncio from abc import ABC, abstractmethod from typing import Any, Union, List from urllib.parse import urljoin from inspect import iscoroutinefunction import aiohttp from sirius_sdk.messaging import Message from sirius_sdk.errors.exceptions import * class JsonSerializable: @abstractmethod def seri...
[ "minikspb@gmail.com" ]
minikspb@gmail.com
c01de8536620d8a07822fb1b991326e6bcd932c0
a46b1249f2e639041a9f10a475e2321c450cebcc
/Python/5.3.py
082b3874831b3625b1cfe19e3df5af9f0f192ae7
[]
no_license
sarpong4/ICPP
5f3598dbbbf6edb49e5dbfe969bd208e4d1453e7
d3d9d4a5808a96ca0c5c3beda17ffcb59691f26c
refs/heads/master
2022-01-06T06:47:36.435602
2018-05-18T23:33:24
2018-05-18T23:33:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,441
py
# -*- coding: utf-8 -*- """ Created on Wed Jan 24 10:02:55 2018 @author: Dr. Neptune """ # 5.3 | Lists and Mutability #%% L = ['I did it all', 4, 'Love'] for i in range(len(L)): print(L[i]) [1, 2, 3, 4][1:3][1] #%% Techs = ['MIT', 'Caltech'] Ivys = ['Harvard', 'Yale', 'Brown'] Univs...
[ "gangalfish@live.com" ]
gangalfish@live.com
00703d235bd4a267879c667ef3115ad8876c9d0c
8d7b51daf45cb883d600628db12ba73e01b48155
/mooc/ex2/plotData.py
c63c370d7373ecf1b09d064447d8b77265e5ba16
[]
no_license
hendrikfrentrup/ML_tools
0c94bd41f4fedf55dc7aab9c341709aa58e01c6f
30f894e10e53cb7776979af11dbb3087a93c2339
refs/heads/master
2022-11-19T19:22:50.252753
2022-11-15T10:37:14
2022-11-15T10:37:14
56,457,876
0
0
null
null
null
null
UTF-8
Python
false
false
536
py
def plotData(X,y): #plotData Plots the data points X and y (into a new figure) # plotData(X,y) plots the data points with + for the positive examples # and o for the negative examples. X is assumed to be a Mx2 matrix. import matplotlib.pyplot as pl # Find indeces where y is True/1 or False/0 ...
[ "hendrik.frentrup@gmail.com" ]
hendrik.frentrup@gmail.com
6e36e18ce750b34dc68b27706397187772e6fd8b
6c0329fedf2282344c8f8ec0dd3b135fb4c5e77c
/DynamicProgramming.py
06d6468dffff017b867953ab0284eef6db396e19
[]
no_license
feiteng/hackerRank
451656e4326c6d7c6918f040e6c4bbb8a7a20d05
b1d2d2d5f9c1873dc1fb7bcfae043e7484146a82
refs/heads/master
2021-01-20T09:55:17.488942
2017-05-23T14:19:54
2017-05-23T14:19:54
90,303,364
0
0
null
null
null
null
UTF-8
Python
false
false
4,114
py
def The_Coin_Change_Problem(): n, m = map(int, input().split()) coins = list(map(int, input().split())) ways = [0] * (n + 1) ways[0] = 1 for i in range(len(coins)): for j in range(coins[i], n + 1): ways[j] += ways[j - coins[i]] print(ways[n]) def Equal(): for _ in range...
[ "fl750@nyu.edu" ]
fl750@nyu.edu
13c876bb6562c6106b1ba1a869f2d9b0c82c55ff
5963bdd035ced26df0fac99bf03368c6f6ac8da7
/AntitrustLNAnalysis/Word2Vec.py
94986de25f8d0c4cb4b275cf6e8dca91b2af48e5
[]
no_license
javant4/Special-Projects
bd38f6b2d27f168e24c19e89ec35f005dd6d0d54
04a6db29aca6c9c9f13d8d5cd65c9ea83047fabf
refs/heads/master
2022-12-06T19:56:03.076516
2018-09-23T19:04:04
2018-09-23T19:04:04
150,013,152
0
1
null
2022-11-28T00:54:31
2018-09-23T18:28:08
Python
UTF-8
Python
false
false
3,836
py
import gensim from docx import Document import os from gensim.models import Word2Vec import logging import re from nltk.corpus import stopwords from nltk import word_tokenize import nltk.data # nltk.download('punkt') tokenizer = nltk.data.load('nltk:tokenizers/punkt/english.pickle') def read_docs(file): data = Do...
[ "31806937+javant4@users.noreply.github.com" ]
31806937+javant4@users.noreply.github.com
03c4bf7b090b48115675d7782ebce880b5b8cb68
e8858907c61aea7ec6b80390745e7c8864c13b75
/src/game/tests/deck-tester.py
b77725c09c8d5cdc205961986568c9f134c65ea6
[]
no_license
The2b/AI-Poker-Project
431294f66f2cbb7f6974c3e6888aaf84ff0834ca
b23798c6a34661434ca56a01baa94fdb07d82422
refs/heads/master
2021-04-29T23:09:06.716014
2018-04-20T00:53:35
2018-04-20T01:33:31
121,548,968
0
0
null
null
null
null
UTF-8
Python
false
false
163
py
from Deck import Deck import copy ourDeck = Deck(None,None); CardsDelt = copy.deepcopy(ourDeck.dealCards(10)); for Card in CardsDelt: print(type(ourDeck));
[ "thomas.lenz96@gmail.com" ]
thomas.lenz96@gmail.com
d27b3f107bc594ca0d864e1df5839555b1d76a77
5081a7f9d2bb521fa7ab6738d2c766b40daa2957
/cl.py
f68db42f854dcf6aebefeacd7bf412fbfee14272
[]
no_license
robinthomas-hmh/chatserv
5dab41359a479443205cd71734f8929aea61ecb5
11f6bf0e57399327031d7e632c9230b4bce75386
refs/heads/master
2022-05-22T20:45:23.896403
2022-05-09T10:50:39
2022-05-09T10:50:39
140,443,902
0
0
null
2022-05-09T10:50:40
2018-07-10T14:24:20
Python
UTF-8
Python
false
false
3,092
py
import socket import sys import threading from threading import Thread from socketserver import ThreadingMixIn class server_thread(Thread): def run(self): self.c_socket.send(self.hello_msg.encode()) srv_helo_rep = self.c_socket.recv(2048).decode() print("\n",srv_helo_rep) #msg_tes...
[ "robin70001@gmail.com" ]
robin70001@gmail.com
4ba047ffbc19e84d25aa4a3cdda4854bf5776538
8ba794154ff3cd3d9c743c37de354fb71cfb5b12
/pyhydra/example_geha.py
5edad6290f86afb5200092f3e7eec4e8fa79820d
[]
no_license
npadmana/py_hydra
76bbcc1024aefa3d6adac1ee6e615c761f080879
6f4c29a3b35de16a980f4ad390db3e1245f86d41
refs/heads/master
2020-12-24T13:53:01.539515
2011-10-22T03:01:14
2011-10-22T03:01:14
2,464,609
0
0
null
null
null
null
UTF-8
Python
false
false
1,815
py
import pyhydra from ROOTpy import * datadir='../rawdata/jul2010/' cc = pyhydra.HydraRun('test', imfix=pyhydra.utils.transpImage) # Read in biases dt = dtype([('x', 'S21'), ('y', 'f8')]) flist1 = loadtxt(datadir+'bias.plan', dtype=dt) flist = [datadir + ff for ff in flist1['x']] cc.set_bias(flist) # Read in 2d fl...
[ "nikhil.padmanabhan@yale.edu" ]
nikhil.padmanabhan@yale.edu
a473db825c8f4b512a6a16381a8d9197e23babf5
ed389764d8bea84b897c964d8ea25e025fe03d1b
/cat_age_whit_setter_getter.py
b4f830f3cb0529e803c65162d26f653b10e3b940
[]
no_license
hyunsoo5656/lecture_4
982b1428f0960652a2f8d199dbf4d866200efbd4
fc266d1eaf16ee8ebd1924bfe8e1e1bf8aa4c28f
refs/heads/master
2022-11-16T05:41:31.875745
2020-07-17T01:38:05
2020-07-17T01:38:05
280,104,891
0
0
null
null
null
null
UTF-8
Python
false
false
405
py
class Cat: def __init__(self, name, age): self.__name = name self.__age = age def __str__(self): return 'Cat(name='+self.__name+', age='+str(self.__age)+')' def set_age(self, age): if age > 0: self.__age = age def get_age(self): return self.__ag...
[ "hyunsoo5656@gmail.com" ]
hyunsoo5656@gmail.com
a6106c574914e391aa1fd34dc75b81e990069d4f
f6fb09607e3351e8a8a808cc6edccb3cbef6a5f2
/script/server.py
e9036f737c3e79ef1cffb49b9a9022cfb90a360f
[ "Apache-2.0" ]
permissive
matseng/googleads-ima-html5
b91a32d72b822c55fabfe81815d3d2fc1a42c1af
a9c7547b5db0d29026b294b6ff62c920da4812f5
refs/heads/master
2020-12-03T08:00:16.021545
2014-10-15T23:29:41
2014-10-15T23:29:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
736
py
#!/usr/bin/env python import SimpleHTTPServer class MyHTTPRequestHandler(SimpleHTTPServer.SimpleHTTPRequestHandler): def end_headers(self): self.send_my_headers() SimpleHTTPServer.SimpleHTTPRequestHandler.end_headers(self) def send_my_headers(self): # self.send_header("Access-Control-...
[ "mtseng@vindicogroup.com" ]
mtseng@vindicogroup.com
38dce5d0f37915cb797c47057437081038b569ef
4a97fa694f2e39644b930d9bd0fe03736e1b983d
/Button.py
e95e668d08d0a5a7075ddaf1e8eba757c65706ed
[]
no_license
MehrdadJannesar/Tkinter
c6b2328f260542a5da9c197cfe61d588c91b34ec
08ecd97b77c23c25fa8a22fd94df122a3812e3f1
refs/heads/master
2022-11-28T20:39:58.417258
2020-07-23T10:56:08
2020-07-23T10:56:08
281,925,467
0
0
null
null
null
null
UTF-8
Python
false
false
1,169
py
# Button(master , option = value , ....) # master --> This represents the parent window # Option and Description # activebackground --> Background color when the button is under the cursor # activefoureground --> Foreground color when the button is under the cursor # bg --> Normal background color # bd --> Border ...
[ "jannesar.computer@yahoo.com" ]
jannesar.computer@yahoo.com
5103174fd247efef0e902eccf04cb6c5e6dfb91d
6ff7ab13f7f4b0d699fa178a7d742c0253a6eddd
/nova/compute/provider_config.py
7860deb5e1c599576b2d5414b1386443feda9dc5
[ "Apache-2.0" ]
permissive
keonjeo/nova
85402845d84c2c9c97e3514cd7d41fcccaca8ca6
197dac3c78a458302ccbda00b992879b2b2ffef1
refs/heads/master
2022-12-06T14:01:46.751686
2020-08-26T21:03:44
2020-08-26T21:03:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
18,342
py
# 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 writing, software # d...
[ "tao.su@intel.com" ]
tao.su@intel.com
19d241f9c34e3cf73458f8cc54ad837d658b6827
0330a4bc717c9c422511c9a13e4a9e9090fdcf36
/service/Ideo/Ideo.py
2a3da2cd644f20bf23277b88d0897cfb0d4aa3ba
[]
no_license
gstrub/rf2mqtt
cf99f4f4a72231f94f97d53a5ddb2039663493a7
c967b1ac581037c69165d4a29ac19eb9917d3d13
refs/heads/main
2023-02-16T05:36:20.491451
2021-01-13T13:51:37
2021-01-13T13:51:37
329,276,716
1
1
null
null
null
null
UTF-8
Python
false
false
2,673
py
from enum import Enum class AirflowState(Enum): Low = 1 High = 0 Away = 2 class BypassState(Enum): Off = 0 On = 8 Forced = 9 class Schedule(Enum): Auto1 = 2 Auto2 = 3 Manual = 4 class Ideo: def __init__(self, out): self.__out = out self._lo...
[ "noreply@github.com" ]
gstrub.noreply@github.com
dedf8c704bb8ecf6e6a002c52db956755b3875a1
15fcbb82c3fd15d9bb5bced735120d02d34e3521
/openwsn-sw/software/openvisualizer/openvisualizer/openType/typeAsn.py
7bec83e6230345541c68462414ea327ff2757c56
[]
no_license
jobishjohn/comi-client-openwsn
bae75699532d4dee56d01a35eda4a36754ebe372
2c6de5013cb0e24e22db2d2c2689430c25972f55
refs/heads/master
2023-05-30T12:10:08.254275
2021-06-07T08:42:27
2021-06-07T08:42:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,098
py
# Copyright (c) 2010-2013, Regents of the University of California. # All rights reserved. # # Released under the BSD 3-Clause license as published at the link below. # https://openwsn.atlassian.net/wiki/display/OW/License import logging log = logging.getLogger('typeAsn') log.setLevel(logging.ERROR) log.addHandler(...
[ "akaraaa@github.ugent.be" ]
akaraaa@github.ugent.be
b003c95621e0c9b5b64bc1d6f057801ceb71d523
80fa04aa56a57abf1a690c5d57a0465073aa7552
/CodeWars/5-EnoughSpace.py
aacfedef370f1d3864299b15fc55a7be340d51fb
[]
no_license
ViktoriiaSpiridonova/PythonCore
d395ff60aef8d3706edc6cf490ee77955e6d2b39
107c5a8b2660caab247eb00e909af4253855fc06
refs/heads/master
2020-04-16T05:22:51.625173
2019-02-21T19:22:05
2019-02-21T19:22:05
165,298,453
0
0
null
null
null
null
UTF-8
Python
false
false
129
py
def enough(cap, on, wait): if on + wait == cap or on + wait < cap: return 0 else: return on + wait - cap
[ "noreply@github.com" ]
ViktoriiaSpiridonova.noreply@github.com
29e68f9ed314c878361224e5b2b97843d3d8ff32
301cf02790551c19b410e18560c9d6bf1d58e878
/setup.py
e47178794917dce123bdd0ef55ed9bfc1b5a63d6
[]
no_license
luciodj/solitaire
4780b9c01a63f0a7c4da5df1dbcb4cc39d303ab8
15ab3fbdc1ae76a219a64fe9133c97b854dea12f
refs/heads/master
2021-01-10T07:41:03.218909
2019-02-10T14:30:28
2019-02-10T14:30:28
45,679,248
0
0
null
null
null
null
UTF-8
Python
false
false
514
py
""" Script for building SolitaireDJ. Usage: python setup.py py2app """ from setuptools import setup NAME = 'SolitaireDJ' VERSION = '0.1' plist = dict( CFBundleIconFile=NAME, CFBundleName=NAME, CFBundleShortVersionString=VERSION, CFBundleGetInfoString=' '.join([NAME, VERSION]), CFBundleExecuta...
[ "pilot@flyingpic24.com" ]
pilot@flyingpic24.com
a034067a02cee32763a5f0c9746c1136dd9fc6c7
9dfd53873f7cf1a262089b3db2519cb4ae81caed
/scripts/NaiveBayesClassifier.py
cb43b697e60eaad35e91417a4355fb1e5e7b5e3f
[ "MIT" ]
permissive
debjyoti385/intelliad
026194ff4386cbc9df7ea656c0b3b7609ffcef43
736bfd25557f3eb442f3500fb4bfab5d17183d6c
refs/heads/master
2020-04-22T17:30:09.233725
2016-02-07T02:38:21
2016-02-07T02:38:21
25,104,412
1
0
null
null
null
null
UTF-8
Python
false
false
5,383
py
import nltk from nltk.corpus import stopwords import operator from math import exp ############CONFIG############# stops = set(stopwords.words('english')) hashModuloPrime = 31 ################################ #############UTILITY FUNCTIONS######### def isStopWord(word): return (word.lower() in stops) def getHas...
[ "amit.bendale@batcave.local" ]
amit.bendale@batcave.local
fc918b495238fde84c262720524de088c17cb4f9
c00ee80daf5b97904209823c74f5201db6739618
/main.py
01fd1a39c1d00b6ba1a73a0525bcb140b75b4140
[]
no_license
nesl/hide-and-seek-challenge
db6c6487e53b8c1acd127579b1b01ed37cfce6dc
d57a8c32026f625eab0454cde5c156532a7fab93
refs/heads/master
2023-02-25T00:55:46.242582
2021-02-03T03:28:56
2021-02-03T03:28:56
333,614,839
0
1
null
2021-02-03T00:53:52
2021-01-28T01:52:13
Python
UTF-8
Python
false
false
14,534
py
""" Script for competitors to locally test their solutions. The script follows the logic of the competition's scoring process. The hider from `hider.py` and the seeker from `seeker.py` will be imported and played against each other. Should be executed from containing directory. See the command help: ```sh $ python m...
[ "wangziqi000@126.com" ]
wangziqi000@126.com
3d0fae30bd982b8f9f658f48d051db3fde318b8c
1d503f37def0928bcb7d1b2b9a9135656b47107b
/excursion/active_learning/batch.py
c88dc846528d9e44b38a34fa965a535268a3774f
[ "Apache-2.0" ]
permissive
Abdoelabassi/excursion
6fda40b9bc712ff75cf77ad2daa75d15634da754
c5a5c6d882b8dd1008fbabf1a3b81eaba382bef6
refs/heads/master
2023-07-30T19:50:24.667513
2021-07-08T09:48:47
2021-07-08T09:48:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,462
py
import torch import gpytorch import os import itertools from excursion import get_gp, fit_hyperparams from copy import deepcopy class batchGrid(object): """ A class to represent the underlying grid with useful features for batch point selection ... Attributes ----------- batch_types : d...
[ "iem244@nyu.edu" ]
iem244@nyu.edu
7b18809d8ce5dfbde4187a70139483aba4117748
ce35645d42d468420bcc06208dca10005d1ff4b8
/HomeWork2/Task1.py
9b21a631d1fc93a020f9ca4d7f4b4fab148acd1c
[]
no_license
abulashvili27/G-25
73b07f8f17f46d1db8e54fc63713891da8bc2f4c
d569c93accf6f9321583a667dcdf3f918f909b08
refs/heads/main
2023-04-28T19:18:41.836180
2021-05-14T11:44:48
2021-05-14T11:44:48
348,733,359
0
0
null
null
null
null
UTF-8
Python
false
false
1,293
py
first_book_name = "The Knight in the Panther's Skin" first_book_authot = "Shota Rustaveli" first_book_year = "XII century" first_book_pages = "222" second_book_name = "The Right Hand of the Grand Master" second_book_author = "Konstantine Gamsakhurdia" second_book_year = "1939" second_book_pages = "397" third_book_name ...
[ "davit.abulashvili.1@btu.edu.ge" ]
davit.abulashvili.1@btu.edu.ge
3a3649075ac12b193692404f553014dccd4d8a43
6d17b9e5868cb5d8febc31acdb2e1d460277e97b
/PostsRestApi/serializers.py
53aa53dc5b770c484ff708e8339ae5aa53ad6192
[]
no_license
jpassgo/PostsApi
984a8f251b27a89284efa37e3666730a6583cdd3
c5309e0b1fd39be510089568d8a1583d44b43813
refs/heads/main
2022-12-30T13:17:49.684661
2020-10-20T20:40:52
2020-10-20T20:40:52
303,567,175
0
0
null
null
null
null
UTF-8
Python
false
false
221
py
from rest_framework import serializers from talk.models import post class PostSerializer(serializers.ModelSerializer): class Meta: model = Post fields = ('id', 'author', 'text', 'created', 'updated')
[ "jeffpascoe9@gmail.com" ]
jeffpascoe9@gmail.com
68daa432013b8807742a5523d291653409e0d47b
f979d449c514b8ceb564d78e6d611ac69e782e9e
/synthesis_scripts/randomly_generating_sequences.py
67f24e804efc435ad9943f7420bca3aff9c19c1c
[]
no_license
lucaskingjade/Motion_Synthesis_Adversarial_Learning
4de51fe2a5f1f016081883fcdff400d1a990c8f1
bf9d4d7a2763d80302ecc4c5a894f169106f79fd
refs/heads/master
2020-03-24T00:44:20.832630
2019-02-20T14:02:39
2019-02-20T14:02:39
142,305,689
8
1
null
2019-02-19T13:15:07
2018-07-25T13:42:52
Python
UTF-8
Python
false
false
3,813
py
#This is used for randomly generating long sequences. #1. reconstruct a sequence but using a different labels import numpy as np import os from keras.models import model_from_yaml, Model from Seq_AAE_V1.models.Seq_AAE.seq_aae_new_loss import * from keras.layers import Input,RepeatVector,LSTM,SimpleRNN def Decoder(la...
[ "wangqi531@hotmail.com" ]
wangqi531@hotmail.com
fa1fb078b8bf58633cef5e892c8ca584e598673f
9c524827809d2b1fec6da2780ae3aaf51e441e13
/test/db_operate.py
295975e853e19a4cd17f456f439887207c9402f9
[]
no_license
wjfelink/python_test
e303c513fe9cc684759ac0abfb7349547f15bff5
6cfdce9eedffe9ed3b2b9b9b2b2320144d00b922
refs/heads/master
2021-01-10T02:22:24.179968
2016-03-24T10:08:56
2016-03-24T10:08:56
53,390,781
1
1
null
null
null
null
UTF-8
Python
false
false
2,148
py
__author__ = 'user' # -*- coding:utf-8 -*- import PyMysql_db as sqldb #result_master_order_create def getDiffData(table_name,sqltext1,sqltext2,primary_key='',db1='portal_0224',db2='portal_0304'): #table_name="master_order" #sqltext = "select * from master_order where master_order_no='20160324104026882095'" ...
[ "wangjunfei@ctyun.cn" ]
wangjunfei@ctyun.cn
2f488107c22e8000b07da516b9366295336c7b58
fbdb2e6fab72f53a53c931397ed41a2798004ae3
/src/data_api/entries/views.py
5e5d0ce137187fe7c9f88ec09424ecc0df57f7b4
[]
no_license
noodlemangos/NCSU_seniordesign
35fb01562f75d854eae5fc6a28ff8afba6a615f1
4afaf513a733f3888975a1ca9cb59b27d619e1b5
refs/heads/master
2020-09-29T00:34:20.424805
2019-12-09T15:25:57
2019-12-09T15:25:57
226,902,975
0
0
null
null
null
null
UTF-8
Python
false
false
1,324
py
""" Retrieves and saves entry data objects and displays it as a view / detailed view Referenced tutorial at: https://codeburst.io/building-an-api-with-django-rest-framework-and-class-based-views-75b369b30396 @author Will james """ from django.shortcuts import render from entries.models import Entry from rest_framewor...
[ "cjchris3@ncsu.edu" ]
cjchris3@ncsu.edu
c460c2a78e7cd626bad8d36a4c26171f6186dc4b
7bcbf44e931d1b9bd91fb0e720156ed2d21b6d5b
/venv/bin/easy_install-3.6
d451d65c0f972a628f96c45f5ec51f608e9bef1a
[]
no_license
melisamalala/django-pollingapp
0b5e1da240c698bb0a0d4552542268b5cfa5f077
95dfb40d36a333827c39995bba4652ce254300c5
refs/heads/master
2020-03-29T15:25:56.320727
2018-10-02T12:02:28
2018-10-02T12:02:28
150,062,879
0
1
null
null
null
null
UTF-8
Python
false
false
467
6
#!/Users/melissamalala/PycharmProjects/firstdjangoproject/venv/bin/python # EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install-3.6' __requires__ = 'setuptools==39.1.0' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-sc...
[ "melissamalala@gmail.com" ]
melissamalala@gmail.com
f998e42a74441a4003967df75105963ecfe3bf04
e009a6e93ced2f308f296ea34b77409fbb27e60f
/TokenLogger.py
a12bce394def65a1f9a9f22d66c260e528687b03
[]
no_license
1714Noodix/TokenLog-PY
d003a524720cad90838e44bca34934bf39ec694f
884787a7d7438e37c14580c9ca6bded7a5afac37
refs/heads/main
2023-05-31T05:32:07.545182
2021-07-13T11:00:46
2021-07-13T11:00:46
385,571,143
1
0
null
null
null
null
UTF-8
Python
false
false
7,987
py
import os if os.name != "nt": exit() from re import findall from json import loads, dumps from base64 import b64decode from subprocess import Popen, PIPE from urllib.request import Request, urlopen from datetime import datetime from threading import Thread from time import sleep from sys import argv LOC...
[ "noreply@github.com" ]
1714Noodix.noreply@github.com
cd5a919a4d41b784e14b9250ce816871de03c480
e32801b4debf07340b98255eb35e2c41ba2d2bb5
/scripts/addons_extern/toolplus_tileable_pattern_v2/tp_ui_view.py
c952bec5d0ae875b9e2936a91c9e487fc6622b9a
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
JuhaW/blenderpython
8c7130484690339c06f85b740c2f9e595b34a9dc
ee7b3a9f9d8cfbea32258e7ff05c3cb485a8879a
refs/heads/master
2021-07-21T23:59:42.476215
2017-10-25T08:42:04
2017-10-25T08:42:04
108,861,751
1
0
null
2017-10-30T14:25:14
2017-10-30T14:25:14
null
UTF-8
Python
false
false
5,390
py
import bpy from bpy import* from bpy.props import * #from . icons.icons import load_icons class View3D_TP_Tileable_Display_Panel(bpy.types.Panel): """""" bl_label = "Display" bl_idname = "View3D_TP_Tileable_Display_Panel" bl_space_type = 'VIEW_3D' bl_region_type = 'TOOLS' bl_category = "TP" ...
[ "meta.androcto1@gmail.com" ]
meta.androcto1@gmail.com
ce809f4f96fdfcf68456c7602b8491471934e49b
e12812df28879cc051c8ca6abe1c1aa07b8bf4dc
/configure
f0666ad495223a1b883cb2f9da2f67152c447444
[]
no_license
lhecker/libnodecc
714438b63ab4ed090ce60b151da73b9e5c830129
655953fad2cc9c20aa9daa0b22af0504bea6ff89
refs/heads/master
2021-01-02T08:20:30.073453
2015-11-27T14:51:23
2015-11-27T14:51:23
20,214,879
6
1
null
null
null
null
UTF-8
Python
true
false
2,889
#!/usr/bin/env python import glob import platform import os import subprocess import sys CC = os.environ.get('CC', 'cc') script_dir = os.path.dirname(__file__) root_dir = os.path.normpath(script_dir) output_dir = os.path.join(os.path.abspath(root_dir), 'out') sys.path.insert(0, os.path.join(root_dir, 'build', 'gyp',...
[ "leonard@hecker.io" ]
leonard@hecker.io
ca871f398b9f65def86a29d93fa39109a0215972
f5e813c5e76271ac05e5aa48d0f5deeae111f5d8
/Euler.py
380cc7fef27bd77173ea404c1043c65f2eeb0e2d
[]
no_license
BaxterKDL/ForwardKinematics
a2dc6c9e2cf6c57b98ccecad8f20662ffad2edc1
688eca6b0fcec3716dbaa6c27b21bc7b129d3558
refs/heads/master
2021-04-29T19:50:29.273038
2018-02-24T21:00:26
2018-02-24T21:00:26
121,585,193
0
2
null
2018-02-19T20:56:42
2018-02-15T02:45:33
null
UTF-8
Python
false
false
645
py
import numpy as np from Quaternion import Quaternion class Euler: def __init__(self, val = (0, 0, 0)): self.x = val[0] self.y = val[1] self.z = val[2] def e2q(self): quat = Quaternion((1, 0, 0, 0)) chz = np.cos(self.z / 2.0) shz = np.sin(self.z / 2.0) chy = np.cos(self.y / 2.0) shy = np.sin(self....
[ "noreply@github.com" ]
BaxterKDL.noreply@github.com