blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
281
content_id
stringlengths
40
40
detected_licenses
listlengths
0
57
license_type
stringclasses
2 values
repo_name
stringlengths
6
116
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
313 values
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
18.2k
668M
star_events_count
int64
0
102k
fork_events_count
int64
0
38.2k
gha_license_id
stringclasses
17 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
107 values
src_encoding
stringclasses
20 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
4
6.02M
extension
stringclasses
78 values
content
stringlengths
2
6.02M
authors
listlengths
1
1
author
stringlengths
0
175
e47c0396669d8562f368afd5bd6324400f79c2be
272c3b13339d0e7871c27a9c5d555a171380afe4
/FileRevisorDevOpsPython/ProcessThread.py
0e8593c19f31e339c8c490b0a6cfcb53d271ec68
[ "MIT" ]
permissive
NeilJustice/FileRevisor
4b219a8b6dfafdcb8994365bf7df941c964022ca
a12d7d57503cfe6f2a0dcd6fa8dd31a2ff8a005a
refs/heads/main
2023-08-16T15:42:29.221920
2023-08-12T18:30:48
2023-08-12T18:30:48
151,807,150
0
0
null
null
null
null
UTF-8
Python
false
false
654
py
import threading from typing import List from FileRevisorDevOpsPython import Process class ProcessThread(threading.Thread): # pragma nocover def __init__(self, commandIndex: int, command: str, commandSuffixArg: str, outExitCodes: List[int]): threading.Thread.__init__(self) self.commandIndex = c...
[ "njjustice@gmail.com" ]
njjustice@gmail.com
b4d259d928e66d02fe17db82b4f77e9d7e8ea374
c922bec61b8ff74c0d9b458096602c3f5151826e
/All_muns/scripts_local/3D_cc.py
edf6391b4a6ba3982d835109f07e9097d89d3e32
[]
no_license
ktnguyen17/perceptual_color_classification
d70bbb59097e8e5d83310ef0256d486322a47d6f
d2ae7ace0a61c8accb192e0e8c48da086d7ec4e7
refs/heads/master
2023-03-18T23:28:12.365870
2020-12-19T15:57:02
2020-12-19T15:57:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,546
py
#!/usr/bin/env python2 # -*- coding: utf-8 -*- """ Created on Tue Mar 3 15:51:54 2020 @author: alban """ PREPRE = np.moveaxis(PREDICTION,-1,1) PREDICTION_CONFUSION = np.zeros((1600,1600)) for t in range(len(ARG)): arg = ARG[t] #print('Class %i is confused with class %i under illuminant %i' %(int(arg[2]), i...
[ "flachot.alban@gmail.com" ]
flachot.alban@gmail.com
78403108456d4adf16ad6c8b4119f497f407bd61
acb2e187ccc61428030fca266a8ba62d19268aa9
/Utils/print_log.py
e264abdafd6c5eac5633cfbe7a57a02307fe274c
[]
no_license
edgararaj/dotfiles
a43a14834f2c658b64158f4ae388690e0b5b21b2
bcf04a617d3e368f7449eaa2663cc1bea7fbdce6
refs/heads/master
2023-05-03T05:10:05.744276
2023-04-28T14:18:25
2023-04-28T14:18:25
258,188,519
0
0
null
null
null
null
UTF-8
Python
false
false
2,826
py
from Utils.colors import colors from Utils.logger import log output = "" def print_header(): print_log(f""" Welcome to my {colors.BOLD}.dotfiles{colors.ENDC}. by {colors.BOLD}Darguima{colors.ENDC} """) def print_log(msg: str): """ Print a string and log it on the logfile. Using this function also allows y...
[ "dsgdevbraga@gmail.com" ]
dsgdevbraga@gmail.com
2a04a0b4d524fd056e57e98a0700803743f8a35a
afd2087e80478010d9df66e78280f75e1ff17d45
/torch/nn/intrinsic/modules/fused.py
dc962f956427ec6f6e6b1d0580a1d5c73bd9cd29
[ "BSD-3-Clause", "BSD-2-Clause", "LicenseRef-scancode-secret-labs-2011", "LicenseRef-scancode-generic-cla", "BSL-1.0", "Apache-2.0" ]
permissive
pytorch/pytorch
7521ac50c47d18b916ae47a6592c4646c2cb69b5
a6f7dd4707ac116c0f5fb5f44f42429f38d23ab4
refs/heads/main
2023-08-03T05:05:02.822937
2023-08-03T00:40:33
2023-08-03T04:14:52
65,600,975
77,092
24,610
NOASSERTION
2023-09-14T21:58:39
2016-08-13T05:26:41
Python
UTF-8
Python
false
false
901
py
from torch.ao.nn.intrinsic import BNReLU2d from torch.ao.nn.intrinsic import BNReLU3d from torch.ao.nn.intrinsic import ConvBn1d from torch.ao.nn.intrinsic import ConvBn2d from torch.ao.nn.intrinsic import ConvBn3d from torch.ao.nn.intrinsic import ConvBnReLU1d from torch.ao.nn.intrinsic import ConvBnReLU2d from torch....
[ "pytorchmergebot@users.noreply.github.com" ]
pytorchmergebot@users.noreply.github.com
50484880664a04fe7c3c039fb5644c16c025056a
39d65ea505801f821ef800ba4e733872f7b361b3
/ex_python_mundo3/ex102.py
7027abd2bf2e2a0e46eae82aeef75136fa25d473
[]
no_license
nicholasgdml/exercicioscursoemvideo-python
ac1183be8b94f12ec02241077fcc29350984d942
b184a1bbafe54984abf1933a81e0b3c1249eb990
refs/heads/main
2023-08-29T03:54:27.985080
2021-09-27T01:16:08
2021-09-27T01:16:08
379,691,216
0
0
null
null
null
null
UTF-8
Python
false
false
839
py
"""Exercício Python 102: Crie um programa que tenha uma função fatorial() que receba dois parâmetros: O primeiro que indique o número a calcular e outro chamado show, que será um valor lógico (opcional) indicando se será mostrado ou não na tela o processo de cálculo do fatorial.""" def fatorial(numero, show=True): ...
[ "nicholasgdml12@outlook.com" ]
nicholasgdml12@outlook.com
c15517aa6183a713be751926034a41ceab2c3685
c86220f3fe5ae9aa65e9840cf38caf0ddaaa1036
/butterflies/calc_binary_image.py
680103e7f5cb7d301f198d74e8402a94dcfc914d
[]
no_license
carlosgregoriorodriguez/OpenCV
50d694f7ba858aef9494d31d62eabd2926529026
a7d9554ff9ff0a7167be956d0d2fbde8b3d9222f
refs/heads/master
2020-04-16T00:52:06.269798
2017-01-11T18:25:20
2017-01-11T18:25:20
3,452,951
2
2
null
null
null
null
UTF-8
Python
false
false
9,125
py
#! /usr/bin/python # -*- coding: utf-8 -*- # opencv 2.3.1 import cv2 import sys import numpy as np help_message = '''USAGE: calcBinaryImage.py [<image>,<image>,...] Keys: g - save the binary image k - reset the values chosen for the image ESC - moves to the next image for analyzing without save ...
[ "gemavb22@gmail.com" ]
gemavb22@gmail.com
78d3ee2cce6cc4047d72c6e958ae1ab768fc4125
b52e5ec6e617af83cc3e78b333286c06c973e451
/Code_for_model/BIMPM/src/util/layer_utils.py
a610b5a20a8500b810c5e05fe4bfa2ec91314f28
[]
no_license
calliwen/NLP_Sentence_Match
3030d3991d96205f807f9ce870bc906ed675d40a
4519d2998a7cd7ae6b50de94ad57b23364a1a8b2
refs/heads/master
2020-03-25T10:35:34.653375
2018-08-06T10:12:00
2018-08-06T10:12:00
143,697,884
0
1
null
null
null
null
UTF-8
Python
false
false
12,446
py
# coding:utf-8 import tensorflow as tf from tensorflow.python.ops import nn_ops def my_lstm_layer(input_reps, lstm_dim, input_lengths=None, scope_name=None, reuse=False, is_training=True, dropout_rate=0.2, use_cudnn=False): ''' :param inputs: [batch_size, seq_len, feature_dim] :param lstm...
[ "1032438976@qq.com" ]
1032438976@qq.com
abe4416c7d410fa9d2ccc5fd7c89b5fe395076ba
b9d7874121f17b7e3545eb1ce65365b673de48a4
/model_development/src/utils.py
4ab002f947f4ff9e44c66b2e3e030a47413019f5
[]
no_license
tomerlaufer123/cs130Project
408aa96c0df947540d4136cd897048b1ea9367b0
f1a1f55ce40bd762dd8073399f0ca4bff74b3ee9
refs/heads/main
2023-01-31T20:45:06.574582
2020-12-07T05:53:57
2020-12-07T05:53:57
304,996,984
1
0
null
2020-12-07T02:59:22
2020-10-18T00:59:04
Jupyter Notebook
UTF-8
Python
false
false
2,170
py
''' File: utils.py Description: helper functions ''' # create unique destination path def destination(root="", filename="") -> str: from datetime import datetime from os import path time = datetime.now().strftime("%m%d%H%M%S") return path.join(root, f"{time}_{filename}") # save model def save_model...
[ "sonoyama.rio@gmail.com" ]
sonoyama.rio@gmail.com
2f0301476d63c64056f4f2c6cc1fdeaf8a85b618
c30b16ff17340302146b421d35f11fd8b2a35980
/sprint-challenge/acme.py
24804f4fb23b4fe0f4e86737f61454bb715e6a32
[ "MIT" ]
permissive
DNason1999/DS-Unit-3-Sprint-1-Software-Engineering
5b48461e394e545cf624c4eb53b0ce897b02a2c5
935531e36ac75c2e87c18f4c0cada8ac345abc26
refs/heads/master
2020-09-23T07:03:58.125365
2020-08-03T19:44:33
2020-08-03T19:44:33
225,434,328
0
0
MIT
2019-12-02T17:44:48
2019-12-02T17:44:47
null
UTF-8
Python
false
false
1,774
py
import random class Product(): """ Class to maintain attributes of a product sold here at Acme Corporation """ def __init__(self, input_name): """ declares and initializes attributes for the class product. """ self.name = input_name self.price = 10 self....
[ "50815684+DNason1999@users.noreply.github.com" ]
50815684+DNason1999@users.noreply.github.com
2a54d93efe8dd5c815086003b2b01c9f50c16e22
05a70c12df808455100598d8a6fdb5635c641ab8
/Ene-Jun-2020/almaguer-constante-juan-de-dios/Parcial2/Practica2/app.py
79dccb540fc126910cefc25c582e9db82c3c83d4
[ "MIT" ]
permissive
Jonathan-aguilar/DAS_Sistemas
991edcc929c33ba9bb8bc84e741b55c10a8420a3
4d02efc64161871084df1bff258112351e5d1241
refs/heads/development
2023-07-24T12:26:54.698452
2021-09-02T20:52:26
2021-09-02T20:52:26
289,764,892
1
0
MIT
2021-09-02T20:52:27
2020-08-23T20:54:55
Python
UTF-8
Python
false
false
698
py
from flask import Flask, render_template from models import civilization,structure,technology,unit from peewee import * app = Flask(__name__) db = SqliteDatabase('ageofempires.db') civ = civilization() struct = structure() tec = technology() un = unit() @app.route('/') def index(): db.connect() civilizatio...
[ "jdac_06@hotmail.com" ]
jdac_06@hotmail.com
750a81a09b512d454a43e1dee76d880f58448f4e
5c4910071f7a25f78e5e987e940dffa2849fe99f
/Django_checkbook/django_checkbook/django_checkbook/settings.py
e4a9164ef0c297109e29cbe1c2196ce3f22db079
[]
no_license
Lindajeanph/HTML-and-CSS-projects
6c6ef495a562c972bd18ed55ce20e4d4bfac1b71
e547e50b296958f3e18e01516a6194d80ef78ba8
refs/heads/master
2023-07-26T21:03:02.621757
2023-07-25T03:39:51
2023-07-25T03:39:51
269,188,640
0
0
null
2023-07-07T22:40:10
2020-06-03T20:33:03
Python
UTF-8
Python
false
false
3,118
py
""" Django settings for django_checkbook 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/ """ from ...
[ "jeanphlippe.linda@gmail.com" ]
jeanphlippe.linda@gmail.com
d2ece4dc9dfa3b0ee4ebfc9b9dc0506a2b30830d
9f2700d23a7763a5424cc7e58db12e7904485a1e
/summerProject/summerProject/wsgi.py
11499fc9ca882b696f2cca32be6e03c96434b9dd
[]
no_license
hakeemgoloba97/Summer2017
785f2d5515b5c9ad2f7c560090c6182d5b5e9db9
26e8f357d1cec073aeaa5b09dac7e1239dd05a7c
refs/heads/master
2021-01-01T06:20:44.514707
2017-10-09T01:06:11
2017-10-09T01:06:11
97,414,726
0
0
null
null
null
null
UTF-8
Python
false
false
420
py
""" WSGI config for summerProject 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/1.11/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setd...
[ "noreply@github.com" ]
noreply@github.com
b59f3e9a1be6915b35bb3da1dfaafb6289b52669
7d4aa5f34dc3434d7d9cbd176682f3b1183ef119
/consulta/spp_comisiones_primas.py
c717da8eb57d3b8d142a5a89d19ba5cf5168984b
[]
no_license
sephit/consulta-peru
8c7bcff645a93f1472f3bd1906dd8f546b9a5f3c
d6e584c343178022e6f9dbc86f8d4adeacad06cc
refs/heads/main
2023-06-28T14:26:50.548259
2021-01-14T23:36:59
2021-01-14T23:36:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,074
py
import requests from pyquery import PyQuery as pq class SppComisionesPrimas: def __init__(self): self.__URL = 'https://www.sbs.gob.pe/app/spp/empleadores/comisiones_spp/Paginas/comision_prima.aspx' def get_data_actual(self): res = requests.get(url=self.__URL) HTML = res.text ...
[ "martin.saman@vallegrande.edu.pe" ]
martin.saman@vallegrande.edu.pe
79fb918f531daf9bfa9b78f0ea948397c9a7e2b0
b90a438047021d47228d77cd8d1b59b66c8f88f9
/get_meraki.py
838d45cb8c62dcbb68fab49c5020a69bcde99716
[]
no_license
RodriguesJD/merki_api_client
838473c3b80c0633632e42ff0a244a6b1b79fffa
cfd58701543b211beb636c017b960bb3b7970bb4
refs/heads/master
2020-12-23T08:54:48.211229
2020-01-29T23:35:27
2020-01-29T23:35:27
237,103,801
0
0
null
null
null
null
UTF-8
Python
false
false
1,067
py
import os from pprint import pprint import requests meraki_key = os.environ["MERAKI_API_KEY"] base_url = 'https://api.meraki.com/api/v0' def get_meraki(url): headers = { 'x-cisco-meraki-api-key': meraki_key, 'Content-Type': 'application/json' } response = requests.get(headers=headers,...
[ "jeremy@jeremy-lime.local" ]
jeremy@jeremy-lime.local
348beedbe6e1a4de6b18c499c8f317b0b895ff22
6bd93b73213dd97e6e9529db6d7eecdb0504697d
/GoDigital_Python_Codes/generator_function.py
8ad1955c8a517f93bfd2c4ea7317d8b30e02ee8d
[]
no_license
patiltushar9820/Python_Code
02e9558e63068823008645892e944894c1a31e62
b8f1abc448ba738cab6763000f57ba3e9fc2a376
refs/heads/main
2023-08-16T13:35:05.532766
2021-09-24T10:57:49
2021-09-24T10:57:49
407,141,302
0
0
null
null
null
null
UTF-8
Python
false
false
289
py
# -*- coding: utf-8 -*- """ Created on Sat Sep 18 15:14:58 2021 @author: Tushar patil """ #generator functions #generator function def gen123(): print("one") print("two") yield 1 yield 2 yield 3 """ g=gen123() next(g) """
[ "noreply@github.com" ]
noreply@github.com
1f6bf9540ccf30dd2d98ad22948909b458eb8fab
1beea84ee4ebc720e9353b71dce9cc34898f7823
/test/test_dynamic_shapes.py
28d5e740624384b890b0d240984aafeadb3cec44
[ "BSD-2-Clause", "LicenseRef-scancode-secret-labs-2011", "BSD-3-Clause", "LicenseRef-scancode-generic-cla", "BSL-1.0", "Apache-2.0" ]
permissive
EikanWang/pytorch
93974c30013f27064d7aeaa6a6cd061854c721e0
16d85160d511f6e0c3b3eda418b133a66d3376dd
refs/heads/master
2023-03-22T14:10:44.608629
2023-03-20T07:56:18
2023-03-20T07:56:18
616,394,473
1
1
NOASSERTION
2023-03-20T10:01:18
2023-03-20T10:00:29
null
UTF-8
Python
false
false
30,179
py
# -*- coding: utf-8 -*- # Owner(s): ["oncall: jit"] from torch._C import _disabled_torch_function_impl import torch.fx import torch.nn.functional as F from torch.testing._internal.common_utils import run_tests, TestCase, skipIfTorchDynamo, \ parametrize, instantiate_parametrized_tests import torch import operator ...
[ "pytorchmergebot@users.noreply.github.com" ]
pytorchmergebot@users.noreply.github.com
6a1fa05b533ac5a143059c018c1463515a70c318
e6630377da829600b846ad7ecd67daa335878b5a
/main/views.py
6211c54b7998d088bd564686df00b806c983aa97
[ "LicenseRef-scancode-unknown-license-reference", "BSD-2-Clause" ]
permissive
jorgecarleitao/public-contracts
839a09cf54af5fc292aa640d1aaf235f1fb755fa
3107ddc007f3574ce19aaa2223399484bc6b1382
refs/heads/master
2021-06-15T23:07:13.291743
2017-05-09T11:44:56
2017-05-09T11:44:56
14,209,257
26
8
null
2017-07-21T10:45:15
2013-11-07T16:36:47
Python
UTF-8
Python
false
false
353
py
from django.shortcuts import render def robots(request): return render(request, 'robots.txt', content_type='text/plain') def home(request): return render(request, 'main_page.html', {'REQUIRE_D3JS': True}) def about(request): return render(request, 'about.html') def contribute(request): return re...
[ "jorgecarleitao@gmail.com" ]
jorgecarleitao@gmail.com
353ed80414f204b7d5cc04a9db00bef1a1a5fc5e
fb5367014a2a8355abcbaa2f5577cfe57d7a1211
/build_tables/build_climate_table.py
4568514e02562b8fe43897dcc865988ab7057b0b
[ "MIT" ]
permissive
delparte/WCWAVE
e47a2063ca010a4046b914c3ba1743c8e35a50c6
454e7cdc03a8557d95f8efdd29f544dfe0126533
refs/heads/master
2020-12-26T04:16:22.136477
2019-04-30T18:42:15
2019-04-30T18:42:15
39,655,291
0
0
null
null
null
null
UTF-8
Python
false
false
3,997
py
''' Copyright (c) 2015 Wesley Joel Johansen Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distr...
[ "wjjohan@users.noreply.github.com" ]
wjjohan@users.noreply.github.com
f1a3314c428dc2af51e16d3d6f58d6ed560e1d0c
cf72ddee59f850e363147b4c039a1de744cd7168
/Vigenerecipher.py
574e34160a69efc20611a59a2d5bf3212f5b636c
[]
no_license
Georgefwt/Vigen-re-cipher-BMP-Lena
6224541af720810a1a8f66f94f8dd919ca62311d
f3f3477dbc1ad862a7ff08c0757b928c3db22b07
refs/heads/master
2022-09-05T08:56:22.527106
2020-05-27T09:05:01
2020-05-27T09:05:01
267,271,370
0
0
null
null
null
null
UTF-8
Python
false
false
652
py
from cv2 import cv2 import numpy as np img=cv2.imread(r"lena512.bmp",0) (height,width)=img.shape #保证宽度为16的倍数 if (width%16)!=0: appendnum=16-width%16 aplist=np.zeros((height,appendnum)) img=np.append(img,aplist,axis=1) img=img.astype(np.int) width+=appendnum keyoffsetlist=[121,43,123,3...
[ "noreply@github.com" ]
noreply@github.com
247aa0166096de67a1b85f90891f6ca3199fa03b
019283dfeb18810e2041b014d0f2655c96962a87
/004_routes.py
ef5a36f16fc8ba9b0649d420764ff21550320423
[]
no_license
kevingill1966/pyramid-talk-may11
cd73597576a69032c356d23e513ab1a8110ebe06
581422573b06861f246125a464eab3f2324b89f6
refs/heads/master
2021-01-18T14:10:22.451073
2011-05-11T10:16:39
2011-05-11T10:16:39
1,727,136
2
0
null
null
null
null
UTF-8
Python
false
false
688
py
""" Configuring a Route lookup (URLDispatch) Ref: http://docs.pylonsproject.org/projects/pyramid/1.0/narr/urldispatch.html This code registers this URL: http://localhost:8080/tut/x/y/hello """ from paste.httpserver import serve from pyramid.config import Configurator from pyramid.response impor...
[ "kevin@kevin-desktop.(none)" ]
kevin@kevin-desktop.(none)
970f78ea015e9db88c4e3b9ee9a24620d1acd033
14252ea933a08056363230c6df89223b996a0da2
/app/users/migrations/0001_initial.py
89fc36d8186ebc06e266431cde71c53a49bd67a8
[ "MIT" ]
permissive
S3Infosoft/mvr-insights
eeb02aa2e6767e6a23818d4e09f7be7ce29f80cb
ac73feff03c1592d5efd8e0b82f72dd4dbd3e921
refs/heads/master
2020-05-29T14:08:11.070784
2020-04-23T19:46:57
2020-04-23T19:46:57
189,184,619
0
1
MIT
2020-04-23T19:46:58
2019-05-29T08:35:56
CSS
UTF-8
Python
false
false
2,357
py
# Generated by Django 2.2.1 on 2019-05-29 20:09 from django.db import migrations, models import django.utils.timezone class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0011_update_proxy_permissions'), ] operations = [ migrations.CreateModel( ...
[ "abhie.lp@gmail.com" ]
abhie.lp@gmail.com
2db4c7ef3f61d870ca98a1f01a728bacee3a90de
b57c5a500cd94d7d70c81646fc6124190028be77
/tests/test_models/test_review.py
d79215a1324c037a3fb9abc5aff122c6f419db02
[]
no_license
MMhenna/AirBnB_clone
7eef6b33555be02d1682077dfbdd61d947a4ee18
20371aec135daa9ad302babb9f0e0522de4c4963
refs/heads/master
2023-06-17T00:57:29.921389
2021-07-11T15:42:20
2021-07-11T15:42:20
381,735,210
0
0
null
null
null
null
UTF-8
Python
false
false
1,333
py
#!/usr/bin/python3 ''' All the test for the user model are implemented here. ''' import unittest from models.base_model import BaseModel from models.review import Review class TestReview(unittest.TestCase): ''' Testing Review class ''' def test_Review_inheritance(self): ''' ...
[ "mhenna.mehdi@gmail.com" ]
mhenna.mehdi@gmail.com
77595b9b101496b1b65357a87945c60846fca53f
f03c080c74eb936a043ce645e54ba88c2e436283
/day-06/part2.py
5dc94f9e21ddf6d4262f70383418c01fbebc3002
[]
no_license
iverberk/advent-of-code-2019
9576bb9c81d80c692917d9707e4167bce853dde5
27159a9c1e0f8c6a2f2a30e8e14bcc92fc1b4e34
refs/heads/master
2020-09-22T09:28:28.600427
2019-12-17T06:34:55
2019-12-17T06:34:55
225,138,176
0
1
null
null
null
null
UTF-8
Python
false
false
686
py
with open('input') as f: orbit_map = {} for orbit in f: objs = orbit.strip().split(')') orbit_map[objs[1]] = objs[0] # Calculate YOU orbits obj = orbit_map['YOU'] you_orbits = [obj] while obj != 'COM': you_orbits.append(orbit_map[obj]) obj = orbit_map[obj] ...
[ "iverberk@xebia.com" ]
iverberk@xebia.com
64d9689c6889bc10035c0afac7cac5f5db435613
83aa9d676ee39bf80b69aa9fe5f5e65eea3e85a9
/ap1.py
5aa354723c54678f52a601aa01c812e6a457b75f
[]
no_license
09Susinthan08/guvi
0eb4295ec0e0074a0fd9eb3145c302932a620328
2d4c25ac33e2dc140d9e9e5556051cc6f6756918
refs/heads/master
2020-04-15T04:58:58.591270
2019-02-12T10:26:34
2019-02-12T10:26:34
164,404,490
0
0
null
null
null
null
UTF-8
Python
false
false
94
py
s = 0 a,d,n = map(int,input().split(" ")) for i in range(0,n): s = s + a a = a + d print(s)
[ "noreply@github.com" ]
noreply@github.com
70db18cb9ff35971591998a62ddab059246ace2b
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/nouns/_anarchist.py
f6c4dbb7d584b89e893652ff5df9b887a17eaf22
[ "MIT" ]
permissive
cash2one/xai
de7adad1758f50dd6786bf0111e71a903f039b64
e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6
refs/heads/master
2021-01-19T12:33:54.964379
2017-01-28T02:00:50
2017-01-28T02:00:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
391
py
#calss header class _ANARCHIST(): def __init__(self,): self.name = "ANARCHIST" self.definitions = [u'a person who believes in anarchism: ', u'someone who wishes to destroy the existing government and laws: '] self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.specie = ...
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
2377367eaf44e20e5c0522e5c62979d84e2b6f41
b460b1a58b96b8b2bc6051043fb6c24f7b3900b3
/雪灰的作业们/Jaccard/Jaccard-py.py
d0773a5f7e6f64e253918b4c16d764f378812e77
[]
no_license
NKUCodingCat/Something-Else
f842aafb52d2ca8eab0ee59db271a403c90f412f
53224d6b3a8edacaa7ebb92ab71893be99bb40d0
refs/heads/master
2021-01-23T12:00:32.729738
2015-06-02T10:35:38
2015-06-02T10:35:38
24,451,248
8
0
null
null
null
null
UTF-8
Python
false
false
497
py
import re str1 = "I do not like green eggs and ham" str2 = "I do not like them, So does Sam" str1 = re.sub("[^a-zA-Z ]","",str1) str2 = re.sub("[^a-zA-Z ]","",str2) Lis1 = str1[:] Lis2 = str2[:] print Lis2 Q1 = [] Q2 = [] for i in range(len(Lis1)-1): Q1.append([Lis1[i],Lis1[i+1]]) for i in range(len(Lis2)-1): Q2.appe...
[ "chenjingtao930@gmail.com" ]
chenjingtao930@gmail.com
b01999efc5b5875897213f5aaab988ee20c873f5
d94b6845aeeb412aac6850b70e22628bc84d1d6d
/autoregressive_diffusion/experiments/audio/configs/sc09_wavenet.py
957e0ecbd26bb689722cf752a90ff946ab2ea6d4
[ "CC-BY-4.0", "Apache-2.0" ]
permissive
ishine/google-research
541aea114a68ced68736340e037fc0f8257d1ea2
c1ae273841592fce4c993bf35cdd0a6424e73da4
refs/heads/master
2023-06-08T23:02:25.502203
2023-05-31T01:00:56
2023-05-31T01:06:45
242,478,569
0
0
Apache-2.0
2020-06-23T01:55:11
2020-02-23T07:59:42
Jupyter Notebook
UTF-8
Python
false
false
2,032
py
# coding=utf-8 # Copyright 2023 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
[ "copybara-worker@google.com" ]
copybara-worker@google.com
7ebc69910198591b31681830baec5007d1a63a9e
a1a95df1031836b31f79cffb4b2dcc6e488deb92
/find_paper_by_words.py
881887286c7b0dbd9895907dd93812b1c067bab9
[ "BSD-3-Clause" ]
permissive
nidetaoge/CVPR_paper_search_tool
7a54f8ac524518d4944fd82d526b00081879a892
e59250c6c782ba05843dfd5af196f48dc2999b08
refs/heads/master
2021-05-05T09:44:50.907896
2017-08-06T07:14:14
2017-08-06T07:14:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,019
py
import argparse from paper2vec import Paper2Vec parser = argparse.ArgumentParser() parser.add_argument('keywords', nargs='+', help='keywords for search') parser.add_argument('-c', '--count', default=5, type=int, nargs='?', help='max num of papers to find') parser.add_argument('--data_dir', default='data', type=str, ...
[ "jin.us2@ponkotsu.jp" ]
jin.us2@ponkotsu.jp
2ca6bd76df12666d426ab96fc6db17c3fb45e23b
69e186fa7f60b19578b175c42660874831329466
/config.py
444b3949f4dcf2da29f39dcd8f3950dc8f32fb21
[]
no_license
pclbusto/Gestion_Clientes
73c7b2cccf0f0b59b2ae4a59208af377cdc8d4fe
11a8a9b4c1241903ba06127a056e1368f3d521fc
refs/heads/master
2020-09-12T22:07:23.522508
2019-11-19T00:25:06
2019-11-19T00:25:06
222,574,063
0
0
null
null
null
null
UTF-8
Python
false
false
234
py
# #Piledrive # database_path = "/home/pclbusto/PycharmProjects/Gestion Clientes" # database_name = "gestion_clientes.db" # Notebook database_path = "/home/pedro/PycharmProjects/Gestion_Clientes" database_name = "gestion_clientes.db"
[ "pclbusto@gmail.com" ]
pclbusto@gmail.com
79431e97956904979ec976554f8289946bb61697
ee760ad085d305f12e4a60e6ea548e94e71606b6
/sds/envs/cartpole/cartpole.py
9f40106c313c24d4b0369a481d801c71182f2463
[ "MIT" ]
permissive
zlatanajanovic/sds
819ab40f044b72e0a88504601f23d233302c0b4b
3c195fb9cbd88a9284287d62c0eacb6afc4598a7
refs/heads/master
2023-07-19T00:55:20.549984
2021-08-23T14:51:09
2021-08-23T14:51:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,644
py
import gym from gym import spaces from gym.utils import seeding import numpy as np def normalize(x): # wraps angle between [-pi, pi] return ((x + np.pi) % (2. * np.pi)) - np.pi class Cartpole(gym.Env): def __init__(self): self.state_dim = 4 self.act_dim = 1 self.obs_dim = 4 ...
[ "abdulsamad@ias.informatik.tu-darmstadt.de" ]
abdulsamad@ias.informatik.tu-darmstadt.de
c3adf9ff7a564de795ffe031767a68e87f64fe6f
5d00caefdec2ecf32e74dfb01c40d2775cb3899c
/blog/forms.py
860bbde3abf6a674116741fd7ecbbaee02c51673
[]
no_license
saakib10/mini_blog
6b63c3af4a2f12faf347faf7601f65f8bafaedcd
124e2f1e8df631751b2325106d6d00c1d80cfc70
refs/heads/master
2023-02-03T11:57:12.218342
2020-12-23T09:29:37
2020-12-23T09:29:37
323,586,943
1
0
null
null
null
null
UTF-8
Python
false
false
2,486
py
from django.contrib.auth.forms import UserCreationForm,AuthenticationForm,UsernameField,\ UserChangeForm,PasswordChangeForm from django.contrib.auth.models import User from django import forms from .models import Post class UserSignUpForm(UserCreationForm): password2 = forms.CharField(label='Confirm Password(a...
[ "saakib10@yahoo.com" ]
saakib10@yahoo.com
9f360e44d1c0c0dcee68e96a596c20e516949e0a
487ce91881032c1de16e35ed8bc187d6034205f7
/codes/CodeJamCrawler/16_0_3/pr0v3rbs/c.py
5d1ec463d56cedc7496b8cb3f35b1bb73dc76551
[]
no_license
DaHuO/Supergraph
9cd26d8c5a081803015d93cf5f2674009e92ef7e
c88059dc66297af577ad2b8afa4e0ac0ad622915
refs/heads/master
2021-06-14T16:07:52.405091
2016-08-21T13:39:13
2016-08-21T13:39:13
49,829,508
2
0
null
2021-03-19T21:55:46
2016-01-17T18:23:00
Python
UTF-8
Python
false
false
1,290
py
import math powerArr = [[],[],[],[],[],[],[],[],[],[],[]] baseArr = [0,0,0,0,0,0,0,0,0,0,0] jamArr = [0,0,0,0,0,0,0,0,0,0,0] input() N, J = raw_input().split() N = int(N) J = int(J) def JamCheck(): result = True idx = 0 t = baseArr[2] for i in range(3, 11): baseArr[i] = 0 ...
[ "[dhuo@tcd.ie]" ]
[dhuo@tcd.ie]
3910f97cd57f8f7e473820bc25402e27d438d195
3b02b0441efc6e4395574ff2ef5ffab2e9464206
/vazha/vazha_to_eng.py
6d8a52d53d403c0c706f2da5097d7342a21d0abb
[]
no_license
krishnanunnir/Vazha
34ad237f0a7ee7c8af198a3e3c3aa12aebb2e201
c97a80bcc4195af4e31b2c0448053100b64afde1
refs/heads/master
2022-04-27T11:55:18.092835
2020-04-26T16:54:26
2020-04-26T16:54:26
272,618,708
1
0
null
2020-06-16T05:36:17
2020-06-16T05:36:16
null
UTF-8
Python
false
false
6,762
py
built_ins = { "\\bഎല്ലിപ്സിസ്\\B": "Ellipsis", "\\bതെറ്റായ\\b": "False", "\\bഒന്നുമില്ല\\b": "None", "\\bനടപ്പിലാക്കാത്ത\\b": "NotImplemented", "\\bശരി\\B": "True", "\\b__നിർമാണ_ക്ലാസ്__\\b": "__build_class__", "\\b__പ്രമാണം__\\b": "__doc__", "\\b__ഇറക്കുമതി__\\b": "__import__", "\\b...
[ "padinju@gmail.com" ]
padinju@gmail.com
41082e3d5ee470935b3b312f9c8887e31edd8b3b
6b478d52d76d2acbe966b3754b786563c3f6a756
/ekozmp/apps/accounts/tests/test_view_password_reset.py
8d23f179951ef6b3604115c13060d6f3e9e1e794
[]
no_license
teschmitt/ekozmp
fa871dd0e9b43a7063f4f5ab3a19c9aca2742029
97b462aad97fe708c433bb1e39ef043561c00933
refs/heads/master
2022-12-14T13:35:05.723228
2019-10-23T07:31:41
2019-10-23T07:31:41
138,221,175
0
0
null
2022-12-08T02:17:44
2018-06-21T20:59:27
HTML
UTF-8
Python
false
false
5,999
py
from django.contrib.auth import views as auth_views from django.contrib.auth.forms import PasswordResetForm, SetPasswordForm from django.contrib.auth.models import User from django.contrib.auth.tokens import default_token_generator from django.core import mail from django.test import TestCase from django.urls import re...
[ "teschmitt@gmail.com" ]
teschmitt@gmail.com
3b06fbf0b7bef32a21f5567bc6a1da1c4b0fe914
cc2ed5c241393ae8470f05688eaf0b3c8ba72651
/ex096 - Função que calcula área.py
40150b6e21a0e530665c5c45b852b15f59b07847
[]
no_license
robsondrs/Exercicios_Python
082e7484177188205bcd2f98a1e02ad71495c163
d8f117fc167f91d8e9665142561293ab5b1cca76
refs/heads/master
2020-12-02T10:44:17.356608
2020-02-07T23:39:33
2020-02-07T23:39:33
230,985,515
0
0
null
null
null
null
UTF-8
Python
false
false
252
py
def area(l, c): a = l * c print(f'A área de um terreno {l}x{c} é de {a}m².') print(' Controle de Terreno') print('---------------------') largura = float(input('LARGURA (m): ')) comp = float(input('COMPRIMENTO (m): ')) area(largura, comp)
[ "binho.sts@hotmail.com" ]
binho.sts@hotmail.com
008e34c582bed9c552441e43ce6d01d8ef59d104
6cccf9c79f7b46d92acf3fa5bb957c98bae6525e
/Assignment 2/all_possible_paths_matrix.py
2ab0f843205058aeceb5023a7733e8b664744910
[]
no_license
tanishagupta/CipherSchools-Assignments
0694ecd14649dc124885b46971fad0f9aca10368
d522c6aef81640b37b4b2eb82934913f1080b792
refs/heads/main
2023-03-05T08:02:08.256174
2021-02-20T13:33:58
2021-02-20T13:33:58
339,614,884
0
0
null
null
null
null
UTF-8
Python
false
false
232
py
def PathCal(matrix1, matrix2): if(matrix1==1 or matrix2==1): return 1 return PathCal(matrix1-1,matrix2)+PathCal(matrix1,matrix2-1) matrix1 = int(input()) matrix2 = int(input()) print(PathCal(matrix1,matrix2))
[ "noreply@github.com" ]
noreply@github.com
1502ac89898c8f4b7abe364578172a7cfc40b79c
f521cad65d01cd583490a390ee0cac19145a2dee
/products/utils.py
183c1093b3d3241d9341f3a9b9c20031e1ab1614
[]
no_license
hhef/shop
6a359b1dba204d8a35ab93984a71f5823faa8c58
1c76a97a48e87a29c116d5ee8b37ccaf8eb7320a
refs/heads/master
2020-09-19T19:48:18.118671
2020-02-06T12:54:25
2020-02-06T12:54:25
224,281,501
0
0
null
null
null
null
UTF-8
Python
false
false
712
py
import random import string from django.utils.text import slugify def random_string_generator(size=10, chars=string.ascii_lowercase + string.digits): return ''.join(random.choice(chars) for _ in range(size)) def unique_slug_generator(instance, new_slug=None): if new_slug is not None: slug = new_slug ...
[ "ksuder7@gmail.com" ]
ksuder7@gmail.com
211dd2c932b766dfdbc8fbd6b82da87cefcd94c0
e4c58114c77cdd990b2260495620574dc56d224f
/SuperGAT/data_sampler.py
c64cf317ef51b891a27b4bb5043cce554aa069d3
[]
no_license
sohailkhanmarwat/SuperGAT
f92201d50daf9e7f32768e543c231dfc193cd98f
8a2a3541a7c4fa541a728768e46135ec176a9436
refs/heads/master
2023-07-17T19:40:38.940481
2021-08-27T14:47:51
2021-08-27T14:47:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,380
py
from __future__ import division import copy import random import time import warnings from pprint import pprint import torch import torch_geometric from torch_geometric.data import Data from torch_geometric.utils import degree, segregate_self_loops, negative_sampling from torch_geometric.data.sampler import Neighbor...
[ "todoaskit@gmail.com" ]
todoaskit@gmail.com
d6aaaeaa6557f005150ad0ad7804b4d478543396
aac762417e8538713df6e489b9bae9d52d43b23f
/assignment2_coding/example_code1.py
2e1c5f193d752173ba689f01fe8d4c074d30d73f
[]
no_license
Ramanpreet19/Classical-Machine-Learning
d27bece718a39f5382a253ddd3dd3c0629303d30
bdcf9f937b9014e6ba565ad22ec821de34eb64c3
refs/heads/master
2022-11-22T04:26:13.043688
2020-07-11T02:52:44
2020-07-11T02:52:44
239,215,706
0
0
null
null
null
null
UTF-8
Python
false
false
2,784
py
import pandas as pd import pprint import numpy as np eps = np.finfo(float).eps from numpy import log2 as log def find_entropy(df): Class = df.keys()[-1] #To make the code generic, changing target variable class name entropy = 0 values = df[Class].unique() for value in values: fraction = df[...
[ "rmnbrr19@gmail.com" ]
rmnbrr19@gmail.com
b409f72e18569cb332729b7e95a20bd361d3e851
3b84ca7d132e6ca5004029d39bfa7c8fead07fe1
/seexpr/3.0.1/package.py
4a03d862bddca4dccd83610ebaf068b03b7781ef
[]
no_license
est77/rez-packages
05a5a05224e02c0a28bc37a81cbd07ca7447d604
449ade7acf92196efda2e8ec883c52ba4e33262d
refs/heads/master
2020-05-27T10:35:02.323417
2020-02-23T19:03:05
2020-02-23T19:03:05
82,542,112
22
7
null
null
null
null
UTF-8
Python
false
false
180
py
# -*- coding: utf-8 -*- name = "seexpr" version = "3.0.1" description = "SeExpr" variants = [ ['gcc-6.3.1'] ] def commands(): env.LD_LIBRARY_PATH.append("{root}/lib")
[ "ramenhdr@gmail.com" ]
ramenhdr@gmail.com
4e129b0f87188146ea487e7a4b1797553f3ea63c
92a4d5ac6794ba8f6b1f13bf4bd218e1420b42a6
/training/easy/111-rubiks-cube-movements/python3.py
ca198ce9d33b3392497949cad1b7c275501cd439
[]
no_license
Keftcha/codingame
160bcc990ed0de9ca2627be73c23ab4470281925
b4c90c82698ece51a5751a54347d0521c1e979c1
refs/heads/master
2023-08-30T23:29:43.179510
2023-08-25T11:37:40
2023-08-25T11:37:40
137,661,739
0
1
null
null
null
null
UTF-8
Python
false
false
828
py
rotations = input().split(" ") faces = [input(), input()] for rotate in rotations: if rotate == "z": transition = {"U": "R", "R": "D", "D": "L", "L": "U", "F": "F", "B": "B"} elif rotate == "z'": transition = {"U": "L", "R": "U", "D": "R", "L": "D", "F": "F", "B": "B"} elif rotate == "y": ...
[ "alban.dewilde@gmail.com" ]
alban.dewilde@gmail.com
d8a2d7a1e8636b18eea52d0d5cda3a5d5e555d25
5a21dc93f70bb9ff84424c33619546eef8987c54
/grid/config/docs.py
82d971620317a8a10e8dad6c5600c034103ef157
[ "MIT" ]
permissive
mslake/grid
5f21afad6a3b8c3edcc75fc04985e3d368a5d390
265c998fd2e5b050b338007a16b26274332f0333
refs/heads/master
2020-04-23T08:05:49.492921
2019-02-16T16:40:55
2019-02-16T16:40:55
171,026,188
0
0
null
null
null
null
UTF-8
Python
false
false
304
py
""" Configuration for docs """ # source_link = "https://github.com/[org_name]/grid" # docs_base_url = "https://[org_name].github.io/grid" # headline = "App that does everything" # sub_heading = "Yes, you got that right the first time, everything" def get_context(context): context.brand_html = "Grid"
[ "lake.matthew.s@gmail.com" ]
lake.matthew.s@gmail.com
9aaa492c6143160703e493cdf16a62b43a86dd6e
b32ca71ab8127f7c3c1a73a6a8f01adefa1be026
/mathsquiz6.py
34a38051e90b696fc060dc3e5abac524d9bd01e5
[]
no_license
Botany-Downs-Secondary-College/mathsquiz-Howard13312
a50312776d686ab51eb6421c8af16889a3440c3c
0c78c55ff99d058264791412d312eda4d37f9bef
refs/heads/main
2023-03-28T14:37:25.155100
2021-03-26T12:12:50
2021-03-26T12:12:50
337,539,510
0
0
null
null
null
null
UTF-8
Python
false
false
5,343
py
#mathsquizv6.py #Howard Li #import the tool kit interface (tkinter) modules from tkinter import* from tkinter import ttk from random import* #parent class class Mathquiz: def __init__ (self,parent): '''Widgets for welcome frame''' self.Welcome = Frame(parent) self.Welcome....
[ "noreply@github.com" ]
noreply@github.com
244f403f7f3f58cbf2de5851cbd6fd54ed53e86d
20544972a14006464239282df181fc0f6987be75
/ex13.py
8aec0739092ff0904fbcd069465502be8716e0c7
[]
no_license
Kejzin/LearnPytyhonTheHardWay
7a91af7223dea6bee3e33776fb4b85531fc9bed3
24bc4247e802ff5d50cce88b6e8c86eb7ac16126
refs/heads/main
2023-02-13T02:30:45.160834
2021-01-08T17:58:28
2021-01-08T17:58:28
304,667,848
0
0
null
null
null
null
UTF-8
Python
false
false
264
py
from sys import argv # read the WYSS section for how to run this script, first, second, third = argv print("The script is called:", script) print("Your first variable is:", first) print("Your second variable is:", second) print("You third variable is:", third)
[ "kejzin@gmail.com" ]
kejzin@gmail.com
76b2590503584bd86b326af3fe84fe002a5866cb
f98c91436454218ed51b448fdb5b74ee1af6ba5a
/training.py
8a544afeebe00c9ef56cc5b40f935b70949afe43
[]
no_license
Yash-Parsana/codeforcause-team-cogent
b56738c771cf626e7a439f0a27f2cc53b79490ed
f946936a441d81722af082d8115c7c3abf390ca1
refs/heads/master
2022-04-11T16:36:59.571622
2020-04-06T16:08:57
2020-04-06T16:08:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,657
py
from numpy import array from keras.models import Sequential, load_model from keras.layers import LSTM, Dense, Dropout import numpy as np import matplotlib.pyplot as plt import matplotlib.axes as axes import random def split_seq(seq, n_steps): x,y = list(), list() for i in range(len(seq)): end_ix = i + ...
[ "noreply@github.com" ]
noreply@github.com
3d900db7f2c14931a50f34232e0101c05e765c60
c68e14ebfbd90a6d614a3db2215d224b04eeb72b
/venv/lib/python3.9/site-packages/pytest_flask/fixtures.py
eb258612163203ad02435f505d30c0ff4de33d8c
[]
no_license
s3729628/PlantSpeak_webapp
3eacbc66dad7d3cb5a534721e3e1436d489c84b8
bdddb6046c5ecabc83282720ee0532a9f88e2bfd
refs/heads/master
2023-05-05T16:27:16.102367
2021-04-27T18:02:25
2021-04-27T18:02:25
356,802,670
0
1
null
2021-04-20T05:03:12
2021-04-11T07:49:48
null
UTF-8
Python
false
false
3,848
py
#!/usr/bin/env python import socket import warnings import pytest from flask import _request_ctx_stack from ._internal import _determine_scope from ._internal import _make_accept_header from ._internal import _rewrite_server_name from ._internal import deprecated from .live_server import LiveServer @pytest.fixture ...
[ "s3685254@student.rmit.edu.au" ]
s3685254@student.rmit.edu.au
a9ff75d53be1bc8fb7042747d8e8c4e5be662a5c
141e84c331cedc6d07d6af7b3a9eade7e202fe74
/recommond_system/wide_n_deep_tutorial.py
8ca20d659ae21ff8585dffa6873074e0faa945a3
[]
no_license
LogicStarDust/my_learn_for_python
14c196fe581d886ed5317d82f1331a06b9355191
e65b228dc99324ca1ea5dd91eab49bd5a2626a33
refs/heads/master
2021-01-22T10:14:47.200682
2017-09-11T15:37:03
2017-09-11T15:37:03
102,337,418
0
0
null
null
null
null
UTF-8
Python
false
false
12,119
py
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
[ "657496651@qq.com" ]
657496651@qq.com
dd167e6981ead3aaaf242a495cc1f9609d373478
42e1431837b4b864d6304fbadfb8a36199ec96dd
/supervised_learning/regression/cox_regression/sample.py
109b331ded5166b951b7fac677c6d3012f4b3d04
[ "MIT" ]
permissive
niektuytel/Machine_Learning
cbced504d924b3781157f4a9a89c1ef8a1247f45
0cd5656ca8076c383fd81c5e32a49969a20ad042
refs/heads/main
2023-06-14T01:09:32.345014
2021-07-13T20:08:57
2021-07-13T20:08:57
375,268,000
13
0
null
null
null
null
UTF-8
Python
false
false
1,752
py
import pandas as pd import numpy as np import matplotlib.pyplot as plt import seaborn as sb from lifelines.plotting import plot_lifetimes # Lifeline package for the Survival Analysis from lifelines import KaplanMeierFitter ## Example Data durations = [5,6,6,2.5,4,4] event_observed = [1, 0, 0, 1, 1, 1] # creat...
[ "46424968+niektuytel@users.noreply.github.com" ]
46424968+niektuytel@users.noreply.github.com
7540e76f09639157cd1f60760ea82b4a2b9f483d
87d5cec1697d99c799256d09b7b5dbb33ab86f4a
/prod/old/lwturnboxoff.py
b98e33d1fc0fae22fc1fb589af6a24f1a6c52718
[]
no_license
jonvaljean/pidev14
a8cce96c4cac7bcee4d8d462b25d807a7ee6dc86
d6530410a4cd7b0764cec90449d4402ea5e5f2e5
refs/heads/master
2021-07-11T04:46:26.813582
2018-09-29T18:08:24
2018-09-29T18:08:24
133,645,444
1
0
null
null
null
null
UTF-8
Python
false
false
1,768
py
#!/usr/bin/python from __future__ import print_function import sys import time import smbus #use smbus for i2c from time import sleep from old.lwheadmodule import * #modify this model according to requirements of setting NR_ARGS = 1 #run the programm if __name__ == "__main__": #if some arguments given, use thi...
[ "jonvaljean@gmail.com" ]
jonvaljean@gmail.com
8522ef2965cbbc1d51210c69aee3804b6b01920a
b6d8f70d126786eae9edcdb49322b5f77cee08cc
/calculator.py
cc054bfcc79bd675065bd18cb87369b04cbe9f32
[]
no_license
rkemery/learn-python-course
89de73cccd1bacee5f74bb07bff603395a84bee3
625eddfd740474ade273fa041d096f9883d2fa70
refs/heads/master
2022-04-01T22:30:46.128681
2020-02-04T04:20:17
2020-02-04T04:20:17
230,128,699
0
0
null
null
null
null
UTF-8
Python
false
false
255
py
# create 2 variables, convert them to a number, add the numbers then display result # float function allows for integers with decimals num1 = input("Enter a number: ") num2 = input("Enter another number: ") result = float(num1) + float(num2) print(result)
[ "rick.kemery@gmail.com" ]
rick.kemery@gmail.com
9184c57d22fc7bd7aea7da31bc5ef7f23fe148da
6c5c1ad38187f5911fe76b08686f1ff8a1398c2e
/fresh_tomatoes.py
d3a0f2d67e5f1d495bfe0749c844a1eb9118e34a
[]
no_license
geraldgsh/trailer-website
ff287b6894ab302f4c7f4e4f92ebab4d85f8a371
f66df15f67e8aa8c3964f13647c89efdc1bee94f
refs/heads/master
2021-01-19T12:42:37.561161
2018-11-25T09:58:48
2018-11-25T09:58:48
100,799,851
0
0
null
null
null
null
UTF-8
Python
false
false
6,283
py
import webbrowser import os import re # Styles and scripting for the page main_page_head = ''' <head> <meta charset="utf-8"> <title>Fresh Tomatoes!</title> <!-- Bootstrap 3 --> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSI...
[ "geraldgsh@hotmail.com" ]
geraldgsh@hotmail.com
3476417293f149105bbb4b32504616d94fc51b2f
46bab57ef8ea4cb80ca2f9b5655442b12a6cd302
/SocialNetworks/distances.py
5851ec1a0690bf72e527ca3b3092094dba946eb2
[]
no_license
HarishBalajiShanmugaSundaramMS/Portfolio
2aa9d41f1ab1e79572ea09cd8d94ee5cd22ab973
e155ef53c5e6c67a3d67e0f61a36c1dd1adf563e
refs/heads/master
2022-02-24T00:40:14.235726
2019-10-03T11:34:32
2019-10-03T11:34:32
197,943,312
1
1
null
null
null
null
UTF-8
Python
false
false
679
py
import networkx as nx import matplotlib.pyplot as plt G = nx.Graph() plt.figure(1, figsize=(5, 5)) G.add_edge(1,2) G.add_edge(2,3) G.add_edge(3,4) G.add_edge(4,5) G.add_edge(5,2) pos = nx.spring_layout(G) nx.draw_networkx(G, pos, node_size=500, edge_color='Aqua', with_labels=True, font_color='Black', node_color='Red')...
[ "harishbalajishanmugasundaram@gmail.com" ]
harishbalajishanmugasundaram@gmail.com
86e91da24964e53725a1f4259e1a4ab0e6a82419
c00e0614dc6e2190c46856c24ccc33a3b37e0ebf
/zelogger.py
813bbdcb9f704550e7303f699e05152190fcbe26
[]
no_license
Ramazanov-By/-keylogger
cc123d1cd1f30e0e4b753ffdc637a6b7cbec1a84
3b4161236e7e51e135ca0b820f612a7e3997cc0e
refs/heads/master
2023-03-30T21:11:41.960213
2021-03-30T13:38:39
2021-03-30T13:38:39
353,016,244
0
0
null
null
null
null
UTF-8
Python
false
false
169
py
import keylogger my_keylogger = keylogger.Keylogger(120, "@gmail.com", "") # 120 секунд (время сбора данных) gmail/password my_keylogger.start()
[ "89259159452@mail.ru" ]
89259159452@mail.ru
e4241725ffc377b5834e5f80ddc502569adaabae
4c29fd08962ba7b1cec2a227a1eca8e3b46bece5
/zestawyZadan/zestaw8/zd8.1.py
7e1b879ef4f68441ab5a31eef0d2a0cfd543c44b
[]
no_license
SabinaZolnowska/JezykPython
835eefc47aa3f138c0d9402c3e4a5dc5e82bffb1
d0bbf94f4c8729712b265272613ce130a81b7412
refs/heads/master
2021-01-20T11:47:38.761268
2017-11-30T15:33:59
2017-11-30T15:33:59
71,003,650
0
0
null
null
null
null
UTF-8
Python
false
false
3,330
py
#-*- coding: utf-8 -*- #Zbadać problem szukania rozwiązań równania liniowego postaci a * x + b * y + c = 0. #Podać specyfikację problemu. Podać algorytm rozwiązania w postaci listy kroków, schematu blokowego, drzewa. #Podać implementację algorytmu w Pythonie w postaci funkcji solve1(), która rozwiązania wypisuje w for...
[ "sabina.zolnowska@uj.edu.pl" ]
sabina.zolnowska@uj.edu.pl
e0c33c23554cdbf5defd8bc7891f080a92dd3ea5
3f19c3f9ab4ba9b113a45befba8d689d30c6eb9c
/application/bridgesystem/configuration.py
2d37c7aa2b0d0714ef6ee7103138a52d131fe9ce
[ "MIT" ]
permissive
Ragora/PyBridge
51da20f0a9a871816235006eb2d29c6e8cc25999
146bf8dea53d8af1ec7547cb18e4d373b2af6ec8
refs/heads/master
2021-09-09T00:51:30.121182
2017-09-11T01:52:51
2017-09-11T01:52:51
103,066,317
0
0
null
null
null
null
UTF-8
Python
false
false
12,740
py
""" Configuration loader programming. """ import json import datetime class ConfigurationBase(object): class ConfigurationValue(object): value = None """ The final resolved value. """ default = None """ The default value. """ va...
[ "ragoradev@gmail.com" ]
ragoradev@gmail.com
56646fcf50f8f4a50eece9c2f6fe72c8519c61b8
1eecbed9cf8cdaf48155489bc567d5d781df1ab7
/pay.py
cbd37aaa2a09f0b990d437c8a5e34baeaa04b30b
[]
no_license
simonhand/git_00
aadb61ece83db4b2116e61fb84eab687597240c2
15f52cce0dbcd441d9babd3353d0eb79d2040caa
refs/heads/master
2022-11-29T09:44:54.134503
2020-08-07T15:24:28
2020-08-07T15:24:28
285,358,585
0
0
null
null
null
null
UTF-8
Python
false
false
10
py
num = pay
[ "1029838709@qq.com" ]
1029838709@qq.com
279abadcaef99c5ec805a24a8125a3c1617739ae
357385be7d554b7716a7f84de6ac8910bc59dc5c
/.venv/bin/epylint
1c6b0f68191b8d57345397596687a47a378833d6
[]
no_license
sid00-1/tshirtStore
d0c10284d6de4102e3ecc7e2c16fd4a967551c0f
77532edfa90aa6073f66486d29990fc5f225b4c8
refs/heads/master
2022-11-14T09:21:33.945739
2020-07-09T09:19:59
2020-07-09T09:19:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
290
#!/home/vignesh/Documents/code/projects/webprojects/ref/django-ecommerce/.venv/bin/python # -*- coding: utf-8 -*- import re import sys from pylint import run_epylint if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(run_epylint())
[ "s.v.nadar45@gmail.com" ]
s.v.nadar45@gmail.com
7dbde7601affda21b10a3972b23dbb961e916528
618d18d66cf283c1d63403861be3e0adffa4240b
/preprocessing/helper.py
704ab1c049cd20da55e843cdf55e2f3785fa33e7
[]
no_license
enrico-kaack/MA_classifier
3750cf4ea74a7bfb25aec8fbe4fb0072ee9a7074
157af8da9f81e614777d6c1d4c2614e78d69184a
refs/heads/master
2023-01-22T21:23:57.064232
2020-11-18T21:32:02
2020-11-18T21:32:02
286,819,585
1
0
null
null
null
null
UTF-8
Python
false
false
5,081
py
from io import BytesIO from tokenize import tokenize, tok_name, TokenError import untokenize import more_itertools from tqdm.autonotebook import tqdm import logging import sys def process_general_data(data, vocab, window_size=20, step_size=3, problem_type="RETURN_NULL", encode_type=True, dont_encode=False): x = []...
[ "e.kaack@live.de" ]
e.kaack@live.de
bf2578df024532ad9ff04f0e02ba72283afb3683
1e32ba7843797dad25ab7215bb34086475e9d479
/Code/CointHurst.py
7481cc554ce0b1547ccfb4ba623fe36dd915af70
[]
no_license
fdoperezi/Pairs-Trading-as-application-to-the-Ornstein-Uhlenbeck-Process
943cc2d088404c523f0d1048033355b305e6dec9
7dadd7e1985b268964a72012b673e7dfa8100e8e
refs/heads/master
2022-12-15T22:16:35.931552
2020-09-09T10:54:20
2020-09-09T10:54:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,187
py
# -*- coding: utf-8 -*- """ Created on Thu Apr 30 14:57:23 2020 @author: alber """ import numpy as np import matplotlib.pyplot as plt from statsmodels.tsa.stattools import coint import slib as slb plt.close('all') #%%Load data start_year = 2010; end_year = 2020; names = np.load('names.npy'); symbols...
[ "noreply@github.com" ]
noreply@github.com
1da050cb04f27295d238c4427c2e7a171c356f61
18580fbcf19a3bfbd07561240a6a37e5c746cd89
/cuboid.py
211cd9c3e2803ef08aa3ff8a646ec82311c1e55a
[]
no_license
swaathe/py
e91466b4c6f76df9b90c07ae371dd73067507eb2
aabf9bbb8d525fd2396b2cb648aa1991fd68bef2
refs/heads/master
2021-04-03T06:58:49.580700
2018-05-22T03:52:13
2018-05-22T03:52:13
125,043,449
0
0
null
null
null
null
UTF-8
Python
false
false
156
py
l=float(input("enter the length:")) b=float(input("enter the breadth:")) h=float(input("enter the height:")) v=(l*b*h) print(v,("is the volume of cuboid"))
[ "noreply@github.com" ]
noreply@github.com
0a9e74b629c603dd1c1563a8e5ef7e8718e00864
0fe394b10b39864915fcc4073a5fa050aa02502e
/MatplotPractice/AfricaCSV.py
107dee89fc18bac4c8c570c0efbedde89f3b5c09
[]
no_license
JohnAssebe/Python
9997d47bba4a056fdcd74c6e5207fc52b002cbfd
b88a7c2472f245dc6a0e8900bbea490cb0e0beda
refs/heads/master
2022-05-14T10:08:37.311345
2022-05-09T19:48:53
2022-05-09T19:48:53
212,562,910
0
1
null
null
null
null
UTF-8
Python
false
false
790
py
# -*- coding: utf-8 -*- """ Created on Thu Oct 17 11:30:26 2019 @author: Yohannes Assebe """ import csv from matplotlib import pyplot as plt plt.title("Africa Annual Inflation per years") #print(plt.style.available) #plt.style.use("seaborn-notebook") with open("african_crises.csv") as af: files=csv.Di...
[ "noreply@github.com" ]
noreply@github.com
11c6ff5edd9c5239ca96577fc4e0da53c251d1a9
70a960186af21ae6f7a8fcd4d13fde54892f1821
/odds_and_ends/EVAunit00/dumps/serverscript/Windows Image Capture
2bdb0607338cfe16a61903f35dd46c65c877f937
[]
no_license
apua/altair_mat
d6f31bacae62d4490d561c2f9ec07a745693e15e
37dd580fd011aaae9ca52f99bb13757bab2df325
refs/heads/master
2021-04-29T05:49:01.561238
2015-08-21T09:40:50
2015-08-21T09:40:50
78,004,547
0
0
null
null
null
null
UTF-8
Python
false
false
4,161
#!/usr/bin/python # -*- mode: Python; tab-width: 4; indent-tabs-mode: nil; -*- # ex: set tabstop=4 : # Please do not change the two lines above. See PEP 8, PEP 263. # import sys import os from optparse import OptionError from osprov.optparse_ext import OptionParser from osprov.scripts import bootmode from o...
[ "apua.juan@hp.com" ]
apua.juan@hp.com
5e45beb6902f8f3363c1aa9253a625c7715fabe4
357d29723ce1406f8971a486386202889d49d0ec
/combine_up_down.py
4ffa85abec25569ca0a03ca3bd292daf931e6a1c
[]
no_license
pernak18/diff_angle_optimize
f237dcf0deb8be41cee4fe6684ec6cb1de1bdbd8
a609c7e3d1327d58cee1ca28820b9609ee09495c
refs/heads/master
2021-08-17T01:26:46.687261
2019-09-18T19:14:02
2019-09-18T19:14:02
171,782,074
0
0
null
null
null
null
UTF-8
Python
false
false
11,081
py
#!/usr/bin/env python import os, sys, pickle, argparse, shutil import numpy as np import matplotlib.pyplot as plot import subprocess as sub # Git submodule sys.path.append('common') import utils # local module from angle_optimize import * class combinedSolution: def __init__(self, inDict): """ Combine arr...
[ "rpernak@aer.com" ]
rpernak@aer.com
105e0acf0a543fdb4c37897d8888f056971a6191
7f33c02743fbfd18726ffef08924f528354372dd
/Python_Projects/python3_selfstudy/priklady_z_knihy/k06/SortedList.py
68a5e0a9974eaaf4e25c3d093c6eab3fd1be1e95
[]
no_license
zabojnikp/study
a524eb9c2265a73e1db0b5f0e76b359c123a397b
43424bfc6641cd8fa13ab119ce283fb460b4ffc1
refs/heads/master
2020-04-06T14:21:55.786353
2018-11-27T22:10:48
2018-11-27T22:10:48
157,538,244
0
0
null
2018-11-27T22:10:49
2018-11-14T11:24:20
Python
UTF-8
Python
false
false
10,990
py
#!/usr/bin/env python3 # Copyright (c) 2008-9 Qtrac Ltd. All rights reserved. # This program or module is free software: you can redistribute it and/or # modify it under the terms of the GNU General Public License as published # by the Free Software Foundation, either version 3 of the License, or # (at your option) an...
[ "zabojnikova.petra@gmail.com" ]
zabojnikova.petra@gmail.com
e8128ec06bdbba0ad8f05aea2b9b0c4a03325995
5c096fea6033e9c07f38e773e32c901bb7146d09
/04/jiangk/reboot-website/app/modules/manufacturers.py
85c4605e190298b07eecad20527588335cd92b34
[]
no_license
keepauto/devops2
8b043ed258030b75c9b2c7129ae1468af5b42850
b93c840bcca4bd8589546a171a6458bcc6d73047
refs/heads/master
2021-01-21T10:37:48.378259
2016-07-29T05:42:46
2016-07-29T05:42:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,957
py
#!/usr/bin/python # coding:utf-8 from app.models import Manufacturers from flask import current_app from app.models import db from app.utils import check_field_exists from app.utils import check_output_field from app.utils import check_order_by from app.utils import check_limit from app.utils import process_...
[ "seerjk@gmail.com" ]
seerjk@gmail.com
113f80f630aa90b4bbdd17ea4144498bab5c4c08
f3727475d504a72cf8ff8c91003478afb28a1e71
/url_shortner/url_shortner/settings.py
b160061906c3788d9dfb237e9a9d4e10e7e58fb1
[]
no_license
nishant-passari/url_shortner_api
51ed1bee1855efd87649cf98b34ec7085d9394b6
fe6655e63bca1538cb30d116d008b9871774c43a
refs/heads/main
2023-06-15T15:38:24.984509
2021-07-12T06:23:58
2021-07-12T06:23:58
385,128,954
0
0
null
2021-07-12T06:05:50
2021-07-12T04:56:30
Python
UTF-8
Python
false
false
3,151
py
""" Django settings for url_shortner project. Generated by 'django-admin startproject' using Django 3.0.4. For more information on this file, see https://docs.djangoproject.com/en/3.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.0/ref/settings/ """ import ...
[ "passari.19may@gmail.com" ]
passari.19may@gmail.com
576e2e30c4e62724a8184a632e1128ec10701bbb
8b0ab9982570efcde87623fe2b74afe150d503b6
/test-packaging/test.py
62f8b6361dad6945705640a2f9dfe1ba44dc9879
[ "Apache-2.0" ]
permissive
gangeli/python-server-sdk
6ff804061f9379f2166c607ce46c655c26ffd419
3095315fd53c3bf723b0f16b0c18acadef4dfb3e
refs/heads/master
2021-07-18T12:13:05.331779
2020-09-15T05:44:24
2020-09-15T05:44:24
213,744,540
0
0
NOASSERTION
2019-10-08T20:15:51
2019-10-08T20:15:51
null
UTF-8
Python
false
false
127
py
import ldclient import ldclient.integrations import ldclient.interfaces print("Successfully installed and imported ldclient")
[ "noreply@github.com" ]
noreply@github.com
bd673c4bf5deb9011c11d5d13bb7abcaa1e95aa7
8df2a4e2d25e3d3e2adc55168f9e70d8a829d73d
/parser.py
a9ac9574ed330d7cd7dbad5a7875de1db8a96f79
[]
no_license
JohnathanSnyder/LisPy
ddc69394eb8a1ecfa8045a38b7f2c7161f4aeb10
57e397957181a84cef70c7e48742a5196c24f2fa
refs/heads/master
2021-03-12T23:56:01.575653
2014-04-04T16:39:09
2014-04-04T16:39:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,736
py
import sys from lexer import * class Parser: def __init__(self,filename): self.lex = Lexer(open(filename)) self.curr_lexeme = self.lex.next() def program(self): tree = [] while self.curr_lexeme != None: tree += [self.application()] return tree def a...
[ "johnathanrsnyder@gmail.com" ]
johnathanrsnyder@gmail.com
fbf018ea8f5e39a3befddb9264fddf7474bdf055
02ac25e8ee1596961c1b0413093f60ecd7d92fe3
/addon_hr_customizations/models/hr_employee.py
26052dea49f760af8f2cf1e4606d846bc202f887
[]
no_license
vjmoreno/Portfolio
fdcc5ebebc03111e85a976d6719e6d4008697953
ac30aef7f28ba9cbece47ac56316bfe8ca5eb02e
refs/heads/master
2021-10-08T23:23:41.274809
2021-10-01T15:18:43
2021-10-01T15:18:43
205,176,547
0
0
null
null
null
null
UTF-8
Python
false
false
27,098
py
# -*- coding: utf-8 -*- from odoo import api, models, fields from odoo.tools.translate import _ from odoo import tools from odoo.exceptions import ValidationError, UserError from odoo.addons.base.models.res_partner import _tz_get from odoo.addons.addon_restful.common import rest_api_model, rest_api_method from dateuti...
[ "vicente.moreno@nanoramic.com" ]
vicente.moreno@nanoramic.com
1cb9937c13c19200bf951665e0283bcadc3044a8
3a477566528c0931e5cc8e5d9a942165685c20de
/beaconapp/decorators.py
75fa91f208102ee7cccb09a827a5444dc4128fed
[]
no_license
promaster171019/Beacon
86e20bfa7ef15e09ee08eff5d9eb661ef0fba423
3dab33b61f50c254d7c6d53add2b776a7e211cbb
refs/heads/master
2021-06-21T00:08:43.272892
2019-06-19T04:34:00
2019-06-19T04:34:00
192,657,722
0
0
null
2021-06-10T21:35:02
2019-06-19T04:21:57
HTML
UTF-8
Python
false
false
4,449
py
from datetime import timedelta from rest_framework.response import Response from django.conf import settings from django.utils import timezone from django.contrib.auth.models import User from staff.models import Token, Staff from beaconapp.utils import validation_token_by_google from parents.models import Parent from...
[ "promaster171019@gmail.com" ]
promaster171019@gmail.com
82e7d9ed7c86b02ba31f4e3d7d2c7a6f581617de
8ab65c79670c7549cd734fd8c3db452b9e59ae30
/docs/conf.py
fcdddcc1bcfce5ac0c937bf13c0cf536c30a4c3c
[ "MIT" ]
permissive
trevorkwan/foocat_TK2
e769695103935fa495b6b62b12a30408f302948c
afd254811bfff583131be79bb85b5e0cef55474c
refs/heads/master
2021-01-26T08:02:50.466555
2020-02-27T22:20:22
2020-02-27T22:20:22
243,376,171
0
0
null
null
null
null
UTF-8
Python
false
false
4,918
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # # foocat_TK2 documentation build configuration file, created by # sphinx-quickstart on Fri Jun 9 13:47:02 2017. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # ...
[ "tktrevorkwan@gmail.com" ]
tktrevorkwan@gmail.com
b3f108e068454d46e36179dc7ee8c4f4e19a3dcd
9c517135ceebe11b88a673f707c865470eac91a8
/layers/classifier.py
6d27ff88218a39e7247f85c3e1d23be4a34a947d
[]
no_license
chenun123/reid_baseline
fd6d516a8badcda81484a98c567c92a34bf0b457
315ef25801208fc0d3f7d91fda009089b0901313
refs/heads/master
2020-12-17T15:32:30.223860
2020-01-17T10:55:57
2020-01-17T10:55:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,489
py
# encoding: utf-8 """ @author: liaoxingyu @contact: sherlockliao01@gmail.com """ from torch import nn from modeling.losses import * from modeling.backbones import * from .batch_norm import bn_no_bias from modeling.utils import * class ClassBlock(nn.Module): """ Define the bottleneck and classifier layer ...
[ "sherlockliao01@gmail.com" ]
sherlockliao01@gmail.com
20d8839bcf58b111887439a2f9e01cddbf62541e
fffda67543d23e35199dfbc43b57a295dcb7940e
/CurveAnalysis/fft.py
e41fb3a6c77ab9d6c5b3df9ae39261bdbba42af9
[ "Apache-2.0" ]
permissive
HackTheStacks/darwin-notes-image-processing
563c7377c958a9a2ee4fd7e0487ac86fb1c4552b
1af445112eb7beb4b324bfe2622cb27672b843f5
refs/heads/master
2020-07-03T07:14:56.308299
2017-04-23T01:26:39
2017-04-23T01:26:39
74,190,318
5
4
null
null
null
null
UTF-8
Python
false
false
695
py
#!/usr/bin/env python import csv from scipy import signal from scipy.fftpack import fft import scipy.io as io import sys base_dir = '/data/amnh/darwin/' #base_dir = '/home/queenjin/sandbox/amnh/matchural/' input_curves_dir = base_dir + 'image_csvs/' curves_fft_dir = base_dir + 'image_csvs_fft/' curve_filename = sys.ar...
[ "jin.chung17@gmail.com" ]
jin.chung17@gmail.com
9f896a365b0fa9edb8519afcb5b8eab20a67bb35
4b6f3a93366fa7e8760ae0ac3183a0ec9d67c67c
/practices/Cartesian/Cartesian.py
35c8fbe791d10a20522bf53b58f10c1813184e13
[]
no_license
ztenv/python
456e4b73542716698594e0cfd1974c4942ec81f5
fe4bfd92b8c19bda1707b3cfab6d9da6e53f2782
refs/heads/master
2022-12-09T23:58:37.638697
2020-08-02T11:56:04
2020-08-02T11:56:04
71,128,766
1
0
null
2022-11-22T03:14:28
2016-10-17T10:57:41
Python
UTF-8
Python
false
false
179
py
# -*- coding=utf-8 -*- import itertools a=[1,2,3,4] b=[5,6,7,8] c=[9,10,11,12] d=[13,14,15,16] e=[17,18,19,20] l=[a,b,c,d,e] for item in itertools.product(*l): print(item)
[ "class7class@163.com" ]
class7class@163.com
98742fc72361c1fe843e2184c6fe384c10a96530
3d17f8602755defc8444b6902b623e23737e4709
/tmp/__init__.py
4caaeb68cd70c58dcfd4efb067af5b21113a446e
[]
no_license
ustbliubo2014/Tensorflow_USTB
4d1073a7c53c8a9e41b4b8591c3bb61d6d61943e
8e228fe1e42110dc69a36333d17ff5e705d4b6a7
refs/heads/master
2020-04-02T08:07:34.193855
2017-05-24T06:18:12
2017-05-24T06:18:12
63,948,080
3
1
null
null
null
null
UTF-8
Python
false
false
420
py
# encoding: utf-8 """ @author: liubo @software: PyCharm Community Edition @file: __init__.py.py @time: 2016/10/19 16:40 @contact: ustb_liubo@qq.com @annotation: __init__.py """ import sys import logging from logging.config import fileConfig import os reload(sys) sys.setdefaultencoding("utf-8") # fileConfig('logger_co...
[ "liubo@b.360.cn" ]
liubo@b.360.cn
90b0687d4e1aa653260f41fcc3aac9816a897a43
5be032585c628aa53896859acdc9b7468051d4c6
/Integers: Recreation One.py
cb11871d4490e6f8ff03b9d29c8991546c0487a7
[]
no_license
kumaraswins/A-Kata-A-Day
7a682a14fac9ca06a29f456161ea70c43e19b8db
e9c6693c110d53cd54edee605b5ec3d606df43e8
refs/heads/main
2023-06-15T17:46:25.399239
2021-07-09T15:20:52
2021-07-09T15:20:52
381,600,999
0
0
null
null
null
null
UTF-8
Python
false
false
973
py
""" 1, 246, 2, 123, 3, 82, 6, 41 are the divisors of number 246. Squaring these divisors we get: 1, 60516, 4, 15129, 9, 6724, 36, 1681. The sum of these squares is 84100 which is 290 * 290. Task Find all integers between m and n (m and n integers with 1 <= m <= n) such that the sum of their squared divisors is itself...
[ "kumaraswins@DESKTOP-L4RS6I8.localdomain" ]
kumaraswins@DESKTOP-L4RS6I8.localdomain
8705997e1ab2a410a265480c7fb7ae5e37fcfa12
7102f5d667da9b68622e96c17d22ae5e48c68878
/Problems' Solution/Mutations.py
454b3dfe3f4a990490e4f0d92cc348e0aee148a7
[]
no_license
shahnawaz-pabon/Python-with-HackerRank
0032ff5c44fe9015f637131ae4d15d1bdc1812be
53c68e82089f263f52b2c1431faccc979ccad5a3
refs/heads/master
2021-07-15T14:46:03.514436
2017-05-30T16:20:54
2017-05-30T16:20:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
277
py
def mutate_string(string, position, character): li = list(string) li[position] = character s = ''.join(li) return s if __name__ == '__main__': s = input() i, c = input().split() s_new = mutate_string(s, int(i), c) print(s_new)
[ "noreply@github.com" ]
noreply@github.com
17463500b9674a5333d3dd3524e9056996fb8373
019d3336d1d36a38ac8d1c84b47759f125b57c48
/run.py
abf13586fd367577f9fafa8281bae5e57630a992
[]
no_license
ericklikan/Capriccio-Backend
c936f2fd9e79adb318deaf4dd5ec6fbf77974b5b
a727fe5c22fdb2fa61efdec5a7565835ce9a1829
refs/heads/master
2022-12-09T23:10:15.784802
2019-09-16T23:13:28
2019-09-16T23:13:28
208,396,377
0
1
null
2022-11-22T04:14:45
2019-09-14T05:58:39
Python
UTF-8
Python
false
false
125
py
from api import create_app app = create_app() app.secret_key = "super secret key" if __name__ == '__main__': app.run()
[ "eeleon@edu.uwaterloo.ca" ]
eeleon@edu.uwaterloo.ca
18e7fca8d4143e471221237e49f1a2367953adc1
1f2445a190e1fdb36b8ace15cdd1de799c4c61b4
/arst/command_push.py
cc707d2a8c5c30ec522be85979a30474551b1f43
[]
no_license
bmustiata/ars-py
f9860a48bb63bdf781627108e57d4a8431e35f0a
0a641399807f17efeb50d355770f014721aa4d38
refs/heads/master
2021-06-13T01:05:40.023617
2020-11-08T23:50:01
2020-11-08T23:50:01
140,120,138
0
0
null
2021-03-26T00:27:14
2018-07-07T22:15:34
Python
UTF-8
Python
false
false
1,156
py
import os.path import pathlib import shutil from typing import List from termcolor_util import yellow def push_files_to_template( projects_folder: str, project_name: str, files_to_push: List[str] ) -> None: for file_name in files_to_push: recursively_push_file(projects_folder, project_name, file_name...
[ "bogdan.mustiata@gmail.com" ]
bogdan.mustiata@gmail.com
66e86a8ade094eb739bf3ec99b80bd5593d1ca1c
dc0ad6af93cb5adacd3c8c795aac3cefb250316f
/getclickedgop/clickerapp/migrations/0002_auto_20171119_0211.py
371f97c6a9136ffc846e8cc31d2853d5ff62544a
[ "BSD-3-Clause" ]
permissive
HarshPatel682/GetClicked.GOP
3a0f186d04f209bdf9cfd07b9145231e78e4c787
51a35b98ea2bd8267f96575e803cb4cd7aee32ed
refs/heads/master
2021-09-07T09:02:02.735485
2018-02-20T19:13:08
2018-02-20T19:13:08
110,372,773
0
0
null
null
null
null
UTF-8
Python
false
false
2,432
py
# -*- coding: utf-8 -*- # Generated by Django 1.10.8 on 2017-11-19 02:11 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('clickerapp', '0001_initial...
[ "daniel.j.ostrowski@gmail.com" ]
daniel.j.ostrowski@gmail.com
df14a6e9bdcec3cb5915b74f04f28c889e9cb569
99454f4f4b3988faf41d42c7a00ea3396a2c803c
/FindingGold/server.py
82afb8448e2482bb1d7b9b7fe3900ecb0e0b49fb
[]
no_license
twinfred/FlaskFundamentals
65342d08adb6976854270b42438a496b5de01a4a
66eef4daf4c691ee92377a490be6399088d88adc
refs/heads/master
2020-03-08T16:02:13.431573
2018-07-05T07:23:51
2018-07-05T07:23:51
128,228,502
0
0
null
null
null
null
UTF-8
Python
false
false
1,749
py
from flask import Flask, render_template, redirect, request, session import random app = Flask(__name__) app.secret_key = "ThisIsTheSecretAwesomeKey" @app.route('/') def index(): if not 'gold_count' in session and not 'activities_tracker' in session: session['gold_count'] = 0 session['activities_tr...
[ "twinfred@gmail.com" ]
twinfred@gmail.com
f158396e7bf336520c1beb9a6a9c2e52c1bdb526
79e45a6e4846927da432087aba845036b11c5622
/UAT/bin/MarketData/Daily/MNSTdailyOHLC_withvol.py
96dad0a3c752759bf948dcdbd7ebce990c11a5b9
[]
no_license
mjserpico/Scarlett-Trading
cba2bcfaacf886b9d851d978683b4ce641c8f6ad
9778717393dbb0818ee026356996d1806345a6c2
refs/heads/master
2020-03-21T21:39:51.108503
2019-05-09T02:06:26
2019-05-09T02:06:26
139,076,454
0
0
null
null
null
null
UTF-8
Python
false
false
13,164
py
# -*- coding: utf-8 -*- """ Created on Sun Jan 08 09:16:43 2017 @author: Michael """ import mysql.connector from ib.opt import Connection from ib.ext.Contract import Contract import time import logging import datetime import datalink #universal logins for environment import math Flag = 0 CCY1 = "MN" CCY2 = "ST" Table...
[ "mjserpico@gmail.com" ]
mjserpico@gmail.com
a9b31876976237ebf8c3e8571df1ba1a3af5ca38
0d0f43ad5504a957e9a33280106e3fce40aa2b35
/preprocessing/oscars.py
33296ff79bc22151475f53608037a9093b6d585e
[]
no_license
karaschechtman/GenderInFilm
f91d53491f578a63907669ab33a7f05692d517db
aee76a154f7fe6b6fa0661ddbca3b9edc0a312ad
refs/heads/master
2020-04-16T21:03:57.542416
2019-02-07T15:39:58
2019-02-07T15:39:58
165,913,473
1
1
null
null
null
null
UTF-8
Python
false
false
3,098
py
__author__ = 'Serina Chang <sc3003@columbia.edu>' __date__ = 'Jan 28, 2019' from bs4 import BeautifulSoup import csv from make_data import * import os import requests PATH_TO_OSCARS = '../data/oscars/' IMDB_ID_LENGTH = 7 def pad_id(id): """ Pads id to the standard length. """ len_padding = IMDB_ID_LE...
[ "sc3003@columbia.edu" ]
sc3003@columbia.edu
91fdab85755b7240aa8dd811fc263c7da6ba3b61
cdb660d8501f1453721a6dfcbd84605f913d5063
/Server and Game/together/game/ant_fighting/game_entity.py
a0ba37f1d8f6bcd2072539459d83ee0518e16bcf
[]
no_license
petruskkke/Game-Together
a6981fee91997da5a113c7307f91c1147d204cd5
0b556cae683f83339622eca9bac0551d2fd424f7
refs/heads/master
2021-06-12T15:03:26.165349
2017-03-01T15:54:33
2017-03-01T15:54:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
958
py
from gameobjects.vector2 import * from ant_fighting.state import * class GameEntity: def __init__(self, world, name, image): self.world = world self.name = name self.image = image self.location = Vector2(0, 0) self.destination = Vector2(0, 0) self.speed = 0.0 ...
[ "kezhanghan@outlook.com" ]
kezhanghan@outlook.com
56e5633ed8f47feba79f4997982cf5abf1919f18
941b25a0d0ccd25e4e64293defc2b50a61fccb01
/Board.py
cb026329b6c90b83267f78d6cc90800b607a043b
[]
no_license
fanzhangg/sliding-tiles
c5a396818ec2d7449309f773df37a46ec7b41c8e
334bb7df76436aa9429ff6132db8a9ea1afce35f
refs/heads/master
2020-04-08T20:06:37.554387
2018-11-29T15:20:52
2018-11-29T15:20:52
null
0
0
null
null
null
null
UTF-8
Python
false
false
568
py
class Board: def __init__(self, row, col): self.ROW = row self.COL = col self.tiles = [] def initialize_board(self, tiles: tuple or list) -> None: expected_size = self.ROW * self.COL - 1 print('The expected size is', expected_size) if len(tiles) == expected_size:...
[ "vanadiumzhang@gmail.com" ]
vanadiumzhang@gmail.com
29ef27e6181fb9aa2251a046f5866f7de6f0f4b4
27bc0f5cacb47b89df22124137ce7f5ebfbc588f
/socket_client.py
3d247433eeb05e3b6566f0df6e542c694b643b90
[]
no_license
KshitizzB/Socket-Programming
4b67563100e03f857de966320c28e8baec94e780
9c07603a352c083370181795c544815fad597bc2
refs/heads/main
2023-06-27T19:07:19.988270
2021-07-31T13:53:31
2021-07-31T13:53:31
391,367,119
1
0
null
null
null
null
UTF-8
Python
false
false
317
py
from socketio import Client socket = Client(logger=True, engineio_logger=True) socket.connect('http://localhost:3030') def send_message(event, data, room): try: data = { "data": data, "room": room } socket.emit(event, data) except: pass
[ "noreply@github.com" ]
noreply@github.com
1669077df9f0d8f0724e10465d4d5f65356b7c4f
a75203513dbd4b6e283ce5ac07808f0fbb059776
/mysite/polls/tests.py
0ef7c9af56b60bdf074b8ae8fdc2ba8e756be978
[]
no_license
Sh4kE/django_demo_page
a6261ff915da6a69452fde72c72a9355a691059e
91a948815836df47fd1087d150c15039aa50fe7f
refs/heads/master
2021-01-10T15:36:22.482960
2016-02-13T09:10:03
2016-02-13T09:10:03
50,924,554
0
0
null
null
null
null
UTF-8
Python
false
false
4,858
py
import datetime from django.utils import timezone from django.test import TestCase from django.core.urlresolvers import reverse from .models import Question def create_question(question_text, days): """ Creates a question with the given `question_text` and published the given number of `days` offset to n...
[ "witmic1@gmail.com" ]
witmic1@gmail.com
1d062e07c250d8f76596ce8487012d69502d114a
99d91935ab6447a0d27c3a6fd7c3470d54790b0b
/covid19web/covid19app/admin.py
3cc16b1dce7cda3ad32fa2f9aaa26901ce03e38b
[]
no_license
samirdas1/coronavirushelpdesk
64b158e5046f453d30b8a6b4f79bf51b6a3388c2
419d6e08464be1ae8fed59801224c477c19b52d7
refs/heads/master
2022-04-15T07:58:27.831291
2020-04-10T14:36:54
2020-04-10T14:36:54
254,580,966
0
0
null
null
null
null
UTF-8
Python
false
false
120
py
from django.contrib import admin from .models import * admin.site.register(person_help) admin.site.register(ngo_list)
[ "dassamir222272@gmail.com" ]
dassamir222272@gmail.com
c5de8357ddfba263ff455f111cac4dff6b60e369
757e9f542847384698c5a622ecaccf7fa663ae96
/programming/adaptive-python/group_2/least_sq_method.py
9f9f3032848e9aa396559296efdc3d48f3d8d925
[]
no_license
vpetrigo/courses
90580357f3ae57be8ca177bbc3ad0e38e5c9ccac
406f20cf1a14e2a4da992b4cb6d5690a20568096
refs/heads/master
2021-06-14T15:26:52.546264
2021-04-25T14:04:08
2021-04-25T14:04:08
60,792,538
17
13
null
2021-04-25T14:04:09
2016-06-09T17:13:59
C++
UTF-8
Python
false
false
407
py
#!/usr/bin/env python3 # coding=utf-8 import sys import numpy def main(): N, M = tuple(map(int, sys.stdin.readline().split())) arr = (tuple(map(int, line.split())) for line in sys.stdin) A, b = numpy.hsplit(numpy.array(tuple(arr)).reshape((N, M + 1)), (M,)) solutions = numpy.linalg.lstsq(A, b)[0] ...
[ "taenaru@gmail.com" ]
taenaru@gmail.com
fee9ec13ed61cbb249f910a80047fa9943cd1b44
b6b8060bae6e346acaa3ea056e586072e2aaa594
/tools/export/cces/__init__.py
2d90fa93e8af453a211d02c1da34054d95337947
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference", "BSD-3-Clause" ]
permissive
janjongboom/mbed-os-dev-lorawan
bc1e8c46974d9e8c678f4caa86de6afebba98cad
33e735a6adae0943f36bab1fa2ce853b7d594e2d
refs/heads/sxsw-lorawan
2021-04-26T22:35:16.709120
2018-03-06T16:18:27
2018-03-06T16:18:27
124,103,263
1
1
NOASSERTION
2020-03-08T11:24:07
2018-03-06T16:04:49
C
UTF-8
Python
false
false
16,157
py
""" mbed SDK Copyright (c) 2011-2017 ARM Limited Portions Copyright (c) 2017-2018 Analog Devices, Inc. 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...
[ "michael.harrington@analog.com" ]
michael.harrington@analog.com
6a81ea5a3795067f3c1832d4d8e14a9825ae88f5
4deafa3c9eec178f61a3c7412b7ae4dcff1a247a
/API/urls.py
2c931ebfc624b358ff57a6550b6522ddbf62142d
[ "Apache-2.0" ]
permissive
Dikovinka/HRCS
dd3514387cfeaae438ceaa83d8bbec83fd63f345
4e605c710f1f9ef1d58b6c80ac167c4e54d19b57
refs/heads/master
2021-06-05T21:21:26.248286
2019-01-14T12:27:06
2019-01-14T12:27:06
35,046,398
0
0
null
null
null
null
UTF-8
Python
false
false
862
py
from django.conf.urls import url, include from API import views from rest_framework.routers import DefaultRouter # Create a router and register our viewsets with it. router = DefaultRouter() router.register(r'projects', views.ProjectViewSet) router.register(r'project_team', views.ProjectTeamViewSet) router.register(r'...
[ "korolevsky.max@gmail.com" ]
korolevsky.max@gmail.com
20e377a522ae456a73a5774a39c55f212b71508f
5aafc689098d83936b2630b2a2dd7ed2d40e5982
/uniofleicester/jscontent/tests/layer.py
1cf3cbe7956ac6d3b5b3935481f7070cb340cfc9
[]
no_license
university-of-leicester/uniofleicester.jscontent
3afa94e0ddaf8c67a1a2be79279fb8a1fbb23b5e
ab5e63300e7d6081e548786ecc7f23441a45d152
refs/heads/master
2021-01-16T19:32:32.458913
2014-06-16T08:57:07
2014-06-16T08:57:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,183
py
from plone.app.testing import PloneSandboxLayer from plone.app.testing import applyProfile from plone.app.testing import IntegrationTesting, FunctionalTesting from plone.app.testing import PLONE_FIXTURE from zope.configuration import xmlconfig class CookieLawSuite(PloneSandboxLayer): defaultBases = (PLONE_FIXTU...
[ "matuho@gmail.com" ]
matuho@gmail.com
cde59d856426cc606b21d30e197617b8a8eabc34
579ba9c4b8d1a9b1fbb94357bcdc3e93063644bd
/blockChainForCommodity/testDemo/_01_test.py
7e5810e7378262b562cf4109332009a3b9de8ec9
[]
no_license
MorenoIsChino/2019.07_Python_Project-BlockChainOfCommodityInformation-
b4b1ab145dc2f870974d67a561b83e19519ba819
0fe26e8aef0b8b051b882e06d425a8edb1b3d2b5
refs/heads/master
2020-06-19T17:20:30.222925
2019-07-14T06:01:47
2019-07-14T06:01:47
196,799,438
0
0
null
null
null
null
UTF-8
Python
false
false
343
py
import json fileName_1='1111.json' with open(fileName_1, 'r', encoding='utf-8') as fToOpen1: dataOfBlockChain1 = json.load(fToOpen1) fileName_2='2222.json' with open(fileName_2, 'r', encoding='utf-8') as fToOpen2: dataOfBlockChain2 = json.load(fToOpen2) if dataOfBlockChain1==dataOfBlockChain2: print('yes'...
[ "16301124@bjtu.edu.cn" ]
16301124@bjtu.edu.cn
285aa96f98f22097cb153d7b2e18d6c25cb6e2a0
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_152/ch28_2020_09_16_11_46_15_586916.py
09f170029eaaabc036fde28d6663bd5331c376db
[]
no_license
gabriellaec/desoft-analise-exercicios
b77c6999424c5ce7e44086a12589a0ad43d6adca
01940ab0897aa6005764fc220b900e4d6161d36b
refs/heads/main
2023-01-31T17:19:42.050628
2020-12-16T05:21:31
2020-12-16T05:21:31
306,735,108
0
0
null
null
null
null
UTF-8
Python
false
false
64
py
s =0 n =0 while n<100: s = s + 1/(2**n) n = n+1 print(s)
[ "you@example.com" ]
you@example.com
ebf302dc45870195dfeaa06b29621857a5bb0dde
a03dfe42f40abd90812221cb7cd979e21bf00933
/mysite/settings.py
876b4f539061612e6d4f7fa835a55117d7d7de0c
[ "Apache-2.0" ]
permissive
ooffeerr/free-games
0198df32f9c6b646f6fb60ba4723cfebb6991e2a
92fe18a5b84b2988a04e2fb4907efcc2d109e798
refs/heads/master
2021-01-11T10:46:49.783656
2014-12-24T22:26:24
2014-12-24T22:26:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,185
py
""" Django settings for mysite project. For more information on this file, see https://docs.djangoproject.com/en/1.7/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.7/ref/settings/ """ # Build paths inside the project like this: os.path.join(BASE_DIR, ...) imp...
[ "ofer.shin@gmail.com" ]
ofer.shin@gmail.com
5a4f40b9ba3dde4f0604d32fe34006d989acfb4c
eb16cc7778c2dffe284a61969797b657d2e3f861
/SBDetectPyart.py
7cc59d307b3591278bc3bc502bd9182f9977e7ee
[]
no_license
dmoore11/sea-breeze
b2244eb1889af302e3dd4c5b682141f2507dfcf6
4f7761f774bf64f29ee2eec7526b022351c325dd
refs/heads/master
2018-12-02T10:15:38.216270
2018-09-05T21:45:11
2018-09-05T21:45:11
118,038,067
0
0
null
null
null
null
UTF-8
Python
false
false
14,199
py
""" Coded by Dan Moore 9/5/18 """ from siphon.radarserver import RadarServer from datetime import datetime,timedelta from siphon.cdmr import Dataset from metpy.plots import ctables # For NWS colortable from scipy import spatial from scipy.interpolate import griddata from dateutil import tz from time import mktime im...
[ "noreply@github.com" ]
noreply@github.com
a4412ae9e4d031c23ba431dffde914d8ead12b9e
a55fcbe94032f98f8a858cebf7cfe843410aea76
/hw4/env/lib/python3.6/config-3.6m-darwin/python-config.py
6eaf21054fc295f5954d9f15d26efbc54c161360
[]
no_license
quentintruong/UCLA-ECE239AS-W19
a3aca9302125ee7b85f8cecf82485782718d8266
f734aa7a8178b64b309761f4a390ed4689c4caed
refs/heads/master
2022-12-10T19:01:28.589101
2020-02-14T08:00:33
2020-02-14T08:00:33
166,895,199
1
0
null
2022-12-08T01:43:39
2019-01-21T23:34:01
Jupyter Notebook
UTF-8
Python
false
false
80
py
/Users/quentintruong/anaconda3/lib/python3.6/config-3.6m-darwin/python-config.py
[ "quentintruong@users.noreply.github.com" ]
quentintruong@users.noreply.github.com
640ce56181033a95a6ad68c3c31c486bf817cedc
8ddb05e6e96bc825354dc07310fbf8ce2cb49362
/reading_and_writing_files.py
ac4601f50997364ad9bfad400462c3a08f37a72a
[]
no_license
FrankFang/python_self_study
24fc700f18a0a7c38dd468a441c5ff8e91048868
bb18d3dbcefb50f5dbdd7fbb7089d4f445d6b1db
refs/heads/master
2020-08-05T03:29:09.908594
2013-10-29T18:57:04
2013-10-29T18:57:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
627
py
__metaclass__ = type from sys import argv script , filename = argv print("We're going to erase %r."%filename) print("If you don't want that, hit Ctrl-C.") print("If you do want that, hit RETURN.") raw_input('?') print("Opening the file") # target = open(filename) target = open(filename,'a') print("Thuncating the fi...
[ "frankfang1990@gmail.com" ]
frankfang1990@gmail.com
f37a13bf85a34be9aa47183fa9763dcb850c8bbf
4fb1239a9fd39b0abecde0f0f0b81e1cb3b8f44a
/isy994/items/devices/device_insteon_contact.py
3a2c8b43a4fe7d50bf9c0317dd32185ab7f7d5a2
[ "MIT" ]
permissive
simplextech/ISY994v5
f361066e7712bc590077bdf2799223b136ac6266
f8e485452a02113f95b1a0f1a57a4d30075c1070
refs/heads/master
2020-07-23T00:26:16.730900
2019-09-10T03:16:34
2019-09-10T03:16:34
207,382,914
0
0
MIT
2019-09-09T18:58:59
2019-09-09T18:58:59
null
UTF-8
Python
false
false
932
py
#! /usr/bin/env python from .device_contact import Device_Contact from .device_insteon_base import Device_Insteon_Base class Device_Insteon_Contact(Device_Contact,Device_Insteon_Base): def __init__(self, container, device_info): Device_Contact.__init__(self,container,device_info.name,device_info.addres...
[ "mike@4831.com" ]
mike@4831.com
99eb738456b493ec54c68eba2eeb0e72884b2519
09a8e7ca229a6a95cdd4a426a1c220e9daf98355
/RBSP/Tools/IntegrateSpectrum.py
afe1dc5f26134ae4cc762e18d03b76f09fcdcc78
[ "MIT" ]
permissive
mattkjames7/RBSP
8547bda29ec6c878483c21dc3281852abb256bd4
25c37cbba18b681a2f9a4e7955e49a49fc36d698
refs/heads/master
2023-07-20T00:31:43.487076
2023-07-14T12:30:04
2023-07-14T12:30:04
177,828,232
0
0
null
null
null
null
UTF-8
Python
false
false
1,344
py
import numpy as np from .RelVelocity import RelVelocity def IntegrateSpectrum(E,PSD,m,Omega,Erange=(0.0,np.inf)): ''' Integrate the phase space density to get the partial density. Inputs ====== E : float Energy in keV. PSD : float Phase space density s^3 m^-6. (this includes density) m : float Mass in k...
[ "mattkjames7@gmail.com" ]
mattkjames7@gmail.com