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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1fe4adf0531d1598c12fe6bccc18a72c0ddeddf7 | 288d02c109bf82bcfffbccbb0438b51af389e0a5 | /pyserial/pyserial_test.py | 6acbb52ff71780c1035056954df732f8e4a6e609 | [] | no_license | breakersun/python_test | 211421993eb462f3e06d3592f42155bec3fcc3f7 | f0ebd7b7b5fea2b7c00e053e702d5f4785922a93 | refs/heads/master | 2021-10-24T05:21:31.683208 | 2021-10-11T05:35:00 | 2021-10-11T05:35:00 | 232,232,294 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 158 | py | import serial
tx = serial.Serial('COM1')
rx = serial.Serial('COM2')
tx.write(open("test.txt", 'rb').read())
print(rx.readline())
tx.close()
rx.close() | [
"leosunsl@outlook.com"
] | leosunsl@outlook.com |
3d2bd8ff970e7a9fa6ed06d06362d446b3f710cd | 41dbb27af3a3ecabeb06e2fb45b3440bcc9d2b75 | /client/migrations/0001_initial.py | 8e69fdd04b310bf4d984b437435a5d02419dcaa0 | [] | no_license | joypaulgmail/Dookan | 4df83f37b7bcaff9052d5a09854d0bb344b9f05a | 7febf471dd71cc6ce7ffabce134e1e37a11309f7 | refs/heads/main | 2023-03-02T04:10:19.611371 | 2021-02-09T11:45:32 | 2021-02-09T11:45:32 | 336,476,910 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,240 | py | # Generated by Django 3.1 on 2020-11-28 06:01
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='ClientDetail',
fields=[
('id', models.AutoFie... | [
"joypaul650@gmail.com"
] | joypaul650@gmail.com |
1c65e874cc500c5891439e350e89441caa59a097 | 14abe13bff2c346430ec7129c49a79ff4f52c5b0 | /canteen_tests/test__main__.py | 30b0a9135238a41d45d9bfcb92a8f477f5f1e761 | [
"MIT"
] | permissive | ianjw11/canteen | 9a3122deed73a545aa8cc0c51b6913e945e23e39 | cfc4ef00ec67df97e08b57222ca16aa9f2659a3e | refs/heads/master | 2021-01-21T02:41:11.139310 | 2014-07-09T15:59:05 | 2014-07-09T15:59:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 388 | py | # -*- coding: utf-8 -*-
'''
canteen: main tests
~~~~~~~~~~~~~~~~~~~
tests things at the top-level package main for canteen.
:author: Sam Gammon <sg@samgammon.com>
:copyright: (c) Sam Gammon, 2014
:license: This software makes use of the MIT Open Source License.
A copy of this license is incl... | [
"sam@keen.io"
] | sam@keen.io |
b59d95850094a8e35402245c52ec57944a360d0d | 50948d4cb10dcb1cc9bc0355918478fb2841322a | /azure-mgmt-resource/azure/mgmt/resource/managedapplications/models/resource_py3.py | 5de1d2d3bb943026662197eb95d8d4819b5633fb | [
"MIT"
] | permissive | xiafu-msft/azure-sdk-for-python | de9cd680b39962702b629a8e94726bb4ab261594 | 4d9560cfd519ee60667f3cc2f5295a58c18625db | refs/heads/master | 2023-08-12T20:36:24.284497 | 2019-05-22T00:55:16 | 2019-05-22T00:55:16 | 187,986,993 | 1 | 0 | MIT | 2020-10-02T01:17:02 | 2019-05-22T07:33:46 | Python | UTF-8 | Python | false | false | 1,617 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | [
"noreply@github.com"
] | noreply@github.com |
a58fb6876185be87b47b79b2b86347d8d57364b3 | d15bdaddab59d1cfea76790004cbad3e5f0c2c55 | /batkin/build_isolated/base_local_planner/catkin_generated/generate_cached_setup.py | a99877387161efbb0a4785123c2005e570c2c1ff | [] | no_license | gychen-n/robot | 4265a1ff469d22550b6b537d1c81aa846ee7641a | 0663a33aea2c2de9e3ac5863307619091e5b5959 | refs/heads/main | 2023-04-10T13:32:06.623682 | 2021-04-16T00:41:04 | 2021-04-16T00:41:04 | 358,431,232 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,555 | py | # -*- coding: utf-8 -*-
from __future__ import print_function
import os
import stat
import sys
# find the import for catkin's python package - either from source space or from an installed underlay
if os.path.exists(os.path.join('/opt/ros/kinetic/share/catkin/cmake', 'catkinConfig.cmake.in')):
sys.path.insert(0, ... | [
"gyc@autolabor-host.autolabor-domain"
] | gyc@autolabor-host.autolabor-domain |
760de27845f1c0e14f9a23f17326228705be345f | 9609eecb4ac4e666512bdf4e754163ee8ccdb6db | /telemed/migrations/0005_auto_20210120_2107.py | aa286204f07b258668f97fb21f59c0aabcc22e0f | [] | no_license | mmngo/telemed | 5c170bd0ae68961bad7277301d5c032cc0f4797f | fffecba105eb514001838f545de510310a7ed49a | refs/heads/main | 2023-08-22T22:00:46.751803 | 2021-10-27T08:22:49 | 2021-10-27T08:22:49 | 421,725,560 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,507 | py | # Generated by Django 3.1.5 on 2021-01-20 13:07
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('telemed', '0004_auto_20210120_1142'),
]
operations = [
migrations.AddField(
model_name='consultationrecord',
... | [
"mmngo@up.edu.ph"
] | mmngo@up.edu.ph |
5138f623d82eed67afff76da96329637b5feec7f | 853d4cec42071b76a80be38c58ffe0fbf9b9dc34 | /venv/Lib/site-packages/pandas/tests/sparse/test_pivot.py | 44a8194bd5813d75ac10e22e2c0fafc7a5de7834 | [] | no_license | msainTesting/TwitterAnalysis | 5e1646dbf40badf887a86e125ef30a9edaa622a4 | b1204346508ba3e3922a52380ead5a8f7079726b | refs/heads/main | 2023-08-28T08:29:28.924620 | 2021-11-04T12:36:30 | 2021-11-04T12:36:30 | 424,242,582 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,369 | py | import numpy as np
import pytest
import pandas as pd
import pandas.util.testing as tm
@pytest.mark.filterwarnings("ignore:Sparse:FutureWarning")
@pytest.mark.filterwarnings("ignore:Series.to_sparse:FutureWarning")
@pytest.mark.filterwarnings("ignore:DataFrame.to_sparse:FutureWarning")
class TestPivotTable:... | [
"msaineti@icloud.com"
] | msaineti@icloud.com |
beca6c6a6fdc8c07bf59fafda1a3c0a1f35f7377 | f13acd0d707ea9ab0d2f2f010717b35adcee142f | /ABC/abc101-abc150/abc125/d.py | 65d866fb02f012f8ac51ed868bc202f0c9c93fe5 | [
"CC0-1.0",
"LicenseRef-scancode-public-domain"
] | permissive | KATO-Hiro/AtCoder | 126b9fe89fa3a7cffcbd1c29d42394e7d02fa7c7 | bf43320bc1af606bfbd23c610b3432cddd1806b9 | refs/heads/master | 2023-08-18T20:06:42.876863 | 2023-08-17T23:45:21 | 2023-08-17T23:45:21 | 121,067,516 | 4 | 0 | CC0-1.0 | 2023-09-14T21:59:38 | 2018-02-11T00:32:45 | Python | UTF-8 | Python | false | false | 426 | py | # -*- coding: utf-8 -*-
def main():
n = int(input())
a = list(map(int, input().split()))
minus_count = 0
abs_min = float('inf')
ans = 0
for ai in a:
if ai < 0:
minus_count += 1
abs_min = min(abs_min, abs(ai))
ans += abs(ai)
if minus_c... | [
"k.hiro1818@gmail.com"
] | k.hiro1818@gmail.com |
0cbd5c3ea471e3f12474f5b780ba5c4b3e7f53cf | 28aad1a21031684c6446290095cd23de83cde9d8 | /code/utils.py | 5782fe7f85820d11bfe07d6c2b8df8541259f4fe | [] | no_license | dyelax/CarND-Advanced-Lane-Finding | e19bad353633e9fabe8b940ae588d4186fb96da8 | 9b37fa96d402d7030cff43650a7715674eb8cf21 | refs/heads/master | 2021-01-12T01:20:35.106086 | 2017-04-10T00:39:39 | 2017-04-10T00:39:39 | 78,373,625 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 26,615 | py | import numpy as np
import cv2
import skvideo.io
from glob import glob
from os.path import join, exists, splitext
import pickle
import matplotlib.pyplot as plt
import constants as c
##
# I/O
##
def read_input(path):
"""
Reads images from an input path into a numpy array. Paths can either be .jpg for single i... | [
"matthew_cooper@brown.edu"
] | matthew_cooper@brown.edu |
3a241204309bb872de8646ff5018a65a4c3b3f50 | a97fb0584709e292a475defc8506eeb85bb24339 | /source code/code/ch713.py | 0b37f65b4505c1c49f2186b0ad00f91dad64d26c | [] | no_license | AAQ6291/PYCATCH | bd297858051042613739819ed70c535901569079 | 27ec4094be785810074be8b16ef84c85048065b5 | refs/heads/master | 2020-03-26T13:54:57.051016 | 2018-08-17T09:05:19 | 2018-08-17T09:05:19 | 144,963,014 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 824 | py | #!/usr/bin/env python
#coding=utf-8
"""
# 多載overloading觀念, 註解的這個區塊無法在Python裡正常運作.
class Obj:
def __init__(self):
pass
def func(self, x=0):
print "func: x = %d ", x
def func(self, x=0, y=x+x):
print "func: x = %d, y = %d", x, y
def func(self, y=0):
print "func: y = %d ... | [
"angelak.tw@gmail.com"
] | angelak.tw@gmail.com |
e263652ba05be353c09aa7113d286da8b9dc6636 | 2626c2580c36b03debdc84855e4b5a48efdf7037 | /cs2quiz2.py | 92d19ba14b3dbdae4039d672c22e780eb7131a30 | [
"CC0-1.0"
] | permissive | isaiah1782-cmis/isaiah1782-cmis-cs2 | d54f2b17866d98d706befc0c0cbe5a03f733e55d | ac6683888c9215bb697cfc771e3fc955043a1668 | refs/heads/master | 2021-01-21T04:47:40.544311 | 2016-06-07T07:17:46 | 2016-06-07T07:17:46 | 50,395,986 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,232 | py | #PART 1: Terminology
#1) Give 3 examples of boolean expressions.
#a)
# >>>bool(1)
# >>>True
#b)
# >>>bool(0)
# >>>False
#c)
# >>>p = False
# >>>bool(p)
# >>>False
#
#2) What does 'return' do?
#
#The retrun command puts a variable's assigned value, that you assigned in a function, for the function so that ... | [
"cmis@cmis-hs10.(none)"
] | cmis@cmis-hs10.(none) |
a0e585c73ccd0f53b6602f193b8f888584358b58 | 0fd2b832673946c9ee532686a2a35bf2680f8408 | /CybORG/CybORG/Shared/Actions/GlobalActions/ListGames.py | 76795b71f41c8585e6fe71ad744f82fc4ac7f0bd | [
"MIT"
] | permissive | pvu1984/cage-challenge-2 | 4e57bad7bc30c7df2b90c2fabc8395a5f2a3e65c | e76722dcd79a6b7511e185cde34fac1e0b45720e | refs/heads/main | 2023-09-02T15:11:32.072215 | 2021-11-12T02:33:19 | 2021-11-12T02:33:19 | 429,307,660 | 0 | 0 | MIT | 2021-11-18T05:27:36 | 2021-11-18T05:27:35 | null | UTF-8 | Python | false | false | 477 | py | # Copyright DST Group. Licensed under the MIT license.
from CybORG.Shared import Observation
from .GlobalAction import GlobalAction
class ListGames(GlobalAction):
"""Get a list of all active games """
def emu_execute(self, team_server) -> Observation:
self._log_info("Listing games")
obs = Ob... | [
"david@pop-os.localdomain"
] | david@pop-os.localdomain |
dda8aba87676939ac28666e47abb879e936cd81b | 01dff0c88d39fafd9c0b61005a13d728dc359875 | /loop15.py | 5b4b2c98f3317edbcc81f6c90ada07f77363ae0c | [] | no_license | shubhangiranjan11/Hackaloop | 927c94b8c7ebb7c15b93d76bbc60625c8bd73960 | a1189bc64c87f9eb4b3929a9108a2d957437a516 | refs/heads/main | 2023-06-06T11:30:46.815341 | 2021-06-20T08:19:43 | 2021-06-20T08:19:43 | 378,593,953 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 100 | py | user=int(input("any number"))
fac=1
i=0
while i<=user:
i=i+1
fac=fac*i
print(fac)
| [
"noreply@github.com"
] | noreply@github.com |
33140059cadae207fba1a7f671a61251d1c55c08 | a807ce0fa3e3e9c3b558b2e977c05e60c3a667b1 | /tests/nemo_text_processing/de/test_measure.py | f96c3156ea1a17e934a8d3e924533bea950008fc | [
"Apache-2.0"
] | permissive | blisc/NeMo | 630376e7555c0face994da2f6f9af5d8d31243c3 | fadeb45c84d6b323d78e30475538455a88b7c151 | refs/heads/rework_reqs | 2023-08-17T00:03:39.248669 | 2021-08-12T15:15:06 | 2021-08-12T15:15:06 | 208,142,160 | 2 | 0 | Apache-2.0 | 2022-02-03T16:30:33 | 2019-09-12T20:37:24 | Jupyter Notebook | UTF-8 | Python | false | false | 1,474 | py | # Copyright (c) 2021, NVIDIA CORPORATION. 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 appli... | [
"jasoli@nvidia.com"
] | jasoli@nvidia.com |
90f9d81e1ac37422b6bc4c3d5187d3f54eb2b54c | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_083/ch129_2020_04_01_17_04_56_778073.py | 63194e8b169fab2b441de017db0cc2185bde9181 | [] | 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 | 211 | py | def verifica_quadrado_perfeito(n):
i=1
y=1
while n>=i:
y=n-i
if y==0:
return True
else:
return False
i+=2
print(verifica_quadrado_perfeito(25)) | [
"you@example.com"
] | you@example.com |
4d054bb48aa7d0014f79a7f8a3d8458fe1759745 | be3694d480577d7523fe2af7f5ae07bcd1afa561 | /TestCustomLoss.py | a7f1b3a7ff9c814b6e3932782365827a1474af6e | [] | no_license | vinitranjan1/AEGraphSparsifier | 590641cabb49ae0d0515e25b3b2490eb13fc1891 | d4cc856a86d7f7ad4b3ac207a992b8b85f35aae7 | refs/heads/main | 2023-01-20T10:47:56.828667 | 2020-11-23T00:10:05 | 2020-11-23T00:10:05 | 311,012,143 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,583 | py | """TensorFlow 2.0 implementation of vanilla Autoencoder."""
import numpy as np
import tensorflow as tf
from GraphOps import *
class Encoder(tf.keras.layers.Layer):
def __init__(self, intermediate_dim):
super(Encoder, self).__init__()
self.hidden_layer = tf.keras.layers.Dense(
units=int... | [
"Vinit@Vinits-MacBook-Pro.local"
] | Vinit@Vinits-MacBook-Pro.local |
f9dc9e7848810d1714cfbe98beeb24b666c59b77 | 7ea78cfa39cedf8d490a4a6299d34058b2443ae0 | /tg/tg/tg_app/migrations/0017_auto_20171202_1159.py | 7887da31ff6077d1ecd40e2d8b0afdd24d570801 | [] | no_license | Hackers-Rajasthan/tourist-guider-backend | 68a05e0bb47fabaa8902771801c714a6d1d9b4a2 | 7bda25ea017064b279a4dee38c0c4c38adfa5480 | refs/heads/master | 2021-08-23T03:25:11.312584 | 2017-12-02T22:04:33 | 2017-12-02T22:04:33 | 112,813,336 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 565 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2017-12-02 11:59
from __future__ import unicode_literals
import datetime
from django.db import migrations, models
from django.utils.timezone import utc
class Migration(migrations.Migration):
dependencies = [
('tg_app', '0016_auto_20171202_1144'),
... | [
"shugupta1997@gmail.com"
] | shugupta1997@gmail.com |
7b5aab5335ec727404f675c18b4d366dd9bfaf3f | 9d2a58f599730ce2b48b35d83b00446682a0acf1 | /PYTHON/story_generator.py | cd53ba24039fc1c0bb85fd2a5f724c43fd2c218a | [
"MIT"
] | permissive | rochroger/open-source-contribution | 17052d3b905266f20c8d48350a89755a4068e17f | 1699bc85993afbbb8e6fa501c172015726d71547 | refs/heads/main | 2023-08-14T06:01:14.063513 | 2021-10-04T16:39:33 | 2021-10-04T16:39:33 | 413,202,815 | 2 | 1 | MIT | 2021-10-03T21:37:19 | 2021-10-03T21:37:19 | null | UTF-8 | Python | false | false | 732 | py | import random
Sentence_starter = ['Once upon a time']
character = [' there lived a boy.',' there was a man named Pypy .', ' there lived a Fisherman.']
time = ['One Hot summer day', 'One day']
story_plot = [' he was playing in ',' he was going for a work to do in ']
place = [' the mountains', ' the river-side']
second... | [
"saifemon789@gmail.com"
] | saifemon789@gmail.com |
4be52575b9fbf763dd9515d892fb9547de81715f | ffbb02c425e1018c6c7a9610943be585a163011b | /venv/a.py | 037fee6afdcb0a6e0282d4d4cd4f5a60f7639132 | [] | no_license | SiddhantReddy/Smart-Notepad | adba4361c61b930f403e02317dcf5c86c9acba88 | f356e39fcfe6c84dd53aae8afaf673bb18eef19a | refs/heads/master | 2023-03-19T05:16:18.301626 | 2021-03-11T15:26:09 | 2021-03-11T15:26:09 | 296,317,222 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,619 | py | with open('C:Users/SID/Desktop/QuickSort.txt') as f:
a = [int(x) for x in f]
def FindMedian(A):
minvalue = min(A)
maxvalue = max(A)
for i in range(3):
if A[i] != minvalue and A[i] != maxvalue:
return A[i]
def ChoosePivot(A, flag):
n = len(A)
first = A[0]
final = A[n ... | [
"siddhantreddy13@gmail.com"
] | siddhantreddy13@gmail.com |
f4c3cec5dd6cebfc39e5ffc23081aa73db87640a | 7750af8e1b6589d5b964e284549c2fd41fc1c1e1 | /q1.py | 1181f1571ef9979d8639ed19ea357354d16008aa | [] | no_license | AREEG94FAHAD/Python-for-Data-Science-Project | 9f8586c52db40b741e8e723356fa827ba35a4fd9 | a249a897ba4c228e1ad2b987690717d864c34622 | refs/heads/master | 2023-06-02T20:00:52.332733 | 2021-06-17T09:33:52 | 2021-06-17T09:33:52 | 377,767,780 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 204 | py | import yfinance as yf
import pandas as pd
TSLA = yf.Ticker("TSLA")
tesla_data = pd.DataFrame(TSLA.history(period="max"))
tesla_data.reset_index(inplace=True)
tesla_data.head(5)
print(tesla_data.head(5)) | [
"fahedareeg@gmail.com"
] | fahedareeg@gmail.com |
5765f1aaf9b7afce460a6b3f9c964e80eb5842d3 | c8e5d2aa94b21a2102213176ff7cbeeb93dca89b | /C04_mlp/util.py | 89659078ea0b5fe013ea1f23df4ac140811be40f | [] | no_license | jurajmaslej/neuronky | c67348e0606bd6e7bac78b19940eadda8ab2d530 | 6bbb55cd8d913a772b5aa3d18b0b63355cd986c8 | refs/heads/master | 2020-03-19T00:40:37.131584 | 2018-07-02T20:54:45 | 2018-07-02T20:54:45 | 135,496,040 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,208 | py | import atexit
import numpy as np
import matplotlib
import matplotlib.pyplot as plt
## utility
def augment(X):
if X.ndim == 1:
return np.concatenate((X, [1]))
else:
pad = np.ones((1, X.shape[1]))
return np.concatenate((X, pad), axis=0)
## plotting
def plot_errors... | [
"juraj.maslej@gmail.com"
] | juraj.maslej@gmail.com |
344811379325693a3445800dd70f9d71e279251d | 2dd6d5db871b64a9fc270e790d5614d959ae79f4 | /Prob07/Prob07-IPRB.py | 16df4ee8800c6c54abea67814fe1052767d57d87 | [] | no_license | ImperialSquid/ROSALIND | 5da11cd0b5985715dfc0287075cefa8e66ad4054 | 874914571fa36659f1c4b4ee4c0f957689da32b8 | refs/heads/master | 2020-08-14T10:47:33.001584 | 2019-11-29T22:20:19 | 2019-11-29T22:20:19 | 215,153,009 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 293 | py | with open("Prob07-IPRB-in.txt", "r") as f:
ints = [int(x) for x in f.readline().split(" ")]
k = ints[0]
m = ints[1]
n = ints[2]
t = k + m + n
prob = k/t + (m*k + n*k + n*m +3*m*(m-1)/4)/(t*(t-1))
print(prob)
with open("Prob07-IPRB-out.txt", "w") as f:
f.write(str(prob))
| [
"benjaeger99@gmail.com"
] | benjaeger99@gmail.com |
912aebdb4e3832be3fe426b74613315c3fd79a6c | 5424cc8a16c5176cca0f15931c4380925fa9c06b | /pixel_clock_titanspikes.py | fef8f55885596123b33511d6715f493b00767812 | [] | no_license | guitchounts/continuous-ephys | c0fb6a26e659063d7e322e54762abfb2cee1c74e | 8ba1feee14a32474b19260a04a5ed8c318e761a3 | refs/heads/master | 2020-04-05T14:44:04.055683 | 2019-06-20T18:03:30 | 2019-06-20T18:03:30 | 156,938,093 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,967 | py | # This is will be our scratch pad
import sys, os,re
import h5py
from utils import pixelclock, timebase
import open_ephys
import matplotlib.pyplot as plt
import numpy as np
import numpy.matlib
from get_bitcode_simple import get_bitcode_simple
import itertools
import concatenateKWIKfiles
import pandas as pd
from bokeh.io... | [
"gg42@bu.edu"
] | gg42@bu.edu |
efab87b20664ec229e586c22e89bc0d3a85e244e | d1db868a3d7eb86a507cc7da910a8fc23f6f39c0 | /flexflow/dbengines/mongodb/mongoengine.py | 8fec38b19dbf4a1baf6e8fdc1dd1262cfb336d1f | [] | no_license | BhujayKumarBhatta/flexflow | 0b88ab10eb1f7eea77a903ee84921fe5e7a66912 | bdd9d1137e430b04dc3b13102639bab40fb541ec | refs/heads/master | 2022-11-28T03:01:40.888256 | 2022-11-20T05:04:54 | 2022-11-20T05:04:54 | 240,233,004 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,883 | py | from mongoengine import connect
try:
# Python 3.x
from urllib.parse import quote_plus
except ImportError:
# Python 2.x
from urllib import quote_plus
class MongoStorageDriver(object):
def __init__(self, conf):
# print(conf)
self.yml = conf
self... | [
"bhujay.bhatta@itc.in"
] | bhujay.bhatta@itc.in |
7e958ad0f0772acee6a462d43c319a692f311ff0 | 8811a28aff6609be3ecb366a7b058fbc633a450d | /lesson-2/home_work/hw02_normal.py | 238b31e33c3c34a950c4a845fb156cd358a202f0 | [] | no_license | stonerjurand/PythonLessons | d4c7cfd17adb98bb0777f09c08a634b3ac3cacee | 2738eef8789c21f0668709655581f07b419cd8bb | refs/heads/master | 2020-04-22T23:37:10.050898 | 2019-04-06T11:12:39 | 2019-04-06T11:12:39 | 170,747,551 | 0 | 0 | null | 2019-03-10T15:23:47 | 2019-02-14T19:39:41 | Python | UTF-8 | Python | false | false | 4,041 | py | # Задача-1:
# Дан список, заполненный произвольными целыми числами, получите новый список,
# элементами которого будут квадратные корни элементов исходного списка,
# но только если результаты извлечения корня не имеют десятичной части и
# если такой корень вообще можно извлечь
# Пример: Дано: [2, -5, 8, 9, -25, 25, 4] ... | [
"stonerjurand@gmail.com"
] | stonerjurand@gmail.com |
e2859cc0d3ae72d3b2cc03c00d1ac6675df0f8da | 4e4fe2651b86aa354b30e574fd0fdc597a7ac19b | /logs/MyLogger.py | dbf3f695de6f0164675bf62a95f29bbfc5262588 | [] | no_license | YoouKi/project_wise_superior | 90ee9f89b396b797343c7b4659f21aeedbbfbb82 | a5d30e62f24acc75a9781c7abb07312a1e7e83d4 | refs/heads/master | 2021-04-10T11:38:52.720939 | 2020-03-21T09:00:03 | 2020-03-21T09:00:03 | 248,932,600 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,197 | py | # coding:utf-8
import logging, time
import os
# log_path是存放日志的路径
cur_path = os.path.dirname(os.path.realpath(__file__))
log_path = os.path.join(os.path.dirname(cur_path), 'logs')
# 如果不存在这个logs文件夹,就自动创建一个
if not os.path.exists(log_path):os.mkdir(log_path)
class MyLogger():
def __init__(self):
# 文件的命名
... | [
"a1041238020@163.com"
] | a1041238020@163.com |
424a8c06a3f08531de3379e9e20ca1903c31d935 | bba5ea3e79b89c39a8c9b109095f922f7dab48de | /moka-dulzuras/social/admin.py | 0a77201c6eca075c8bae8d2f373058cd17ba1b6f | [] | no_license | jonahs90/web-moka | c431d3993d61ea8b280c0fa80835e0c37bb36e39 | e129e269bc20de865dd5c9dfbcdd3e392fcaa801 | refs/heads/master | 2020-04-26T06:14:11.494006 | 2019-05-21T17:55:59 | 2019-05-21T17:55:59 | 173,358,410 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 700 | py | from django.contrib import admin
from .models import Link
# Register your models here.
class AdminLink(admin.ModelAdmin):
readonly_fields = ('created', 'updated')
def get_readonly_fields(self, request, obj=None):
if request.user.groups.filter(name="Personal").exists():
# Comprobara si den... | [
"jonathansanchez595@gmail.com"
] | jonathansanchez595@gmail.com |
1acdfb1920626d1363c04b1ba023704c5c8ca65d | 0676f6e4d3510a0305d29aa0b1fe740d538d3b63 | /Python/FitPLine/InterpPline.py | 6390298333cf36a43eb18f5776c4babdb66361c4 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | pgolay/PG_Scripts | f70ffe7e5ca07acd6f4caedc9a9aec566542da7c | 796704a7daa6ac222a40bb02afdb599f74a6b0d4 | refs/heads/master | 2021-01-19T16:53:41.525879 | 2017-02-07T18:26:10 | 2017-02-07T18:26:10 | 2,730,362 | 9 | 1 | null | 2016-12-30T17:58:08 | 2011-11-08T00:04:33 | Python | UTF-8 | Python | false | false | 482 | py | import Rhino
import scriptcontext as sc
import rhinoscriptsyntax as rs
def Test():
pLineId = rs.GetObject("Select a polyline", 4, preselect=True)
if pLineId is None: return
pLineObj= sc.doc.Objects.Find(pLineId)
rc, pLine = pLineObj.Geometry.TryGetPolyline()
ang = Rhino.RhinoMa... | [
"noreply@github.com"
] | noreply@github.com |
6ea1c91203c1db946cff5cda8fb14d9ce0942d23 | 41f149f8f2e3ac473992cd5f57868a7edaa5914e | /onnx/backend/test/case/node/dft.py | 7eb07f3769a8a140b957d563869155106ad446b4 | [
"Apache-2.0"
] | permissive | natke/onnx | 5e56d082a1f6239f479e463316726668ccd6ec5d | aa1d0fe69072ba705a2eba2ff09ebba8ea8c1ef2 | refs/heads/main | 2022-11-07T08:43:51.203162 | 2022-09-20T18:07:23 | 2022-09-20T18:07:23 | 254,453,457 | 0 | 0 | Apache-2.0 | 2022-10-26T01:43:48 | 2020-04-09T18:52:02 | C++ | UTF-8 | Python | false | false | 1,438 | py | # SPDX-License-Identifier: Apache-2.0
import numpy as np # type: ignore
import onnx
from ..base import Base
from . import expect
class DFT(Base):
@staticmethod
def export() -> None:
node = onnx.helper.make_node("DFT", inputs=["x"], outputs=["y"], axis=1)
x = np.arange(0, 100).reshape(10, ... | [
"noreply@github.com"
] | noreply@github.com |
cc215b480e570e11337a36dbd5b42a7cbcffec5e | 707db98a71a11cc075e96351ec47cfa2fe7887ea | /variant.py | 616f493a826214c0ffeeba57d1eecbef3d7a7a28 | [] | no_license | rawagiha/Utils4RNAIndel | ff0ac635e30d2fd0b50f28c45efbadc31856bc7f | c01b21f383ed2d2d578edfb326fca958717a9ab9 | refs/heads/master | 2020-05-20T10:04:22.297009 | 2019-07-16T15:07:42 | 2019-07-16T15:07:42 | 185,517,605 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,615 | py | #!/usr/bin/env python3
class Variant(object):
"""Represents genomic variants based on VCF record
"""
def __init__(self, chrom, pos, ref, alt, genome):
"""Constructor
Args:
chr (str): chromosome names
pos (int): 1-based position
ref (str): refer... | [
"kohei.hagiwara@stjude.org"
] | kohei.hagiwara@stjude.org |
1938f3a950e134bc3209dd16dae822cae875aeb2 | 5f188af84b8b81603f6ade89c2b18c39fe6ddba1 | /venv/lib/python3.6/types.py | 87c9d6befad38cf7de3c158524e3e6fe78ac56a8 | [] | no_license | topdreg/aaron-tech-etc | 1a6734d87daacf6d54e3c851d58f9d3e5f8ffb73 | 2089425c9c0e00ce992d2bc215463167e7ce07a7 | refs/heads/master | 2020-03-16T22:30:21.176640 | 2018-08-12T13:21:54 | 2018-08-12T13:21:54 | 133,041,460 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 42 | py | /home/topdreg/ENTER/lib/python3.6/types.py | [
"apercival314@gmail.com"
] | apercival314@gmail.com |
9fba420f4e785e93f123b0e60179b45f400adc82 | bcfa162cc1e6c6b4a1470c52043d93d111129ef5 | /generate.py | b944db04b5ff70da46b19fed7cf2c4ec26ddac92 | [] | no_license | eipanteleev-lm/jupyter--data-analyst | 159b5330a58b4b5efb3c377ac41f0f507a31e4c7 | 5e74da80d9cfb936eb7ac2f44ff6f4931a23c76a | refs/heads/master | 2023-07-17T14:53:07.507021 | 2021-09-03T11:05:51 | 2021-09-03T11:05:51 | 390,836,133 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,149 | py | from datetime import datetime, timedelta
from random import choice, randint, random
from typing import Tuple
products = [
('Люстра', 2000),
('Лампочка', 200),
('Газонокосилка', 18000),
('Камин', 20000),
('Перфоратор', 7000),
('Отвертка', 250),
('Шпатель', 300),
('Швабра', 15... | [
"evgenii.panteleev@leroymerlin.ru"
] | evgenii.panteleev@leroymerlin.ru |
a45cab167d70434f5e3c645e0070f28a61099f01 | d36829711568f8f6d9018ebe55621e76e07f3806 | /review/models.py | 70b013dbf1dde0a9f6932599cb573dba17d39ecb | [
"MIT"
] | permissive | PeoplesMomentum/mxv | 3e41a01a10511fc01c72f91b4c614a86e83d5271 | 3ad06cc8d3db43c63f24a80a5709aed3ade94789 | refs/heads/master | 2021-06-05T10:32:02.901332 | 2020-07-17T10:08:36 | 2020-07-17T10:08:36 | 109,157,360 | 6 | 2 | MIT | 2020-07-17T09:35:58 | 2017-11-01T16:47:29 | Python | UTF-8 | Python | false | false | 13,159 | py | from django.db import models
from mxv.settings import AUTH_USER_MODEL
from datetime import date
from django.core.mail.message import EmailMultiAlternatives
from django.urls.base import reverse
from django.utils import formats
from django.db.models.deletion import CASCADE
# field sizes
name_length = 100
summary_length ... | [
"mark.reardon@peoplesmomentum.com"
] | mark.reardon@peoplesmomentum.com |
632531ce3e51e510b87b765c03cfa5f6ea264d16 | e1a78591c9702a7e61fbf076d78b59073ff33c37 | /InternetSemLimites/core/tests/test_fame_view.py | e938694682951acc076cf431f78fd1435b7febff | [
"MIT"
] | permissive | sebshub/PublicAPI | eb26f22a34a7022bccd6aaecdfa0c35e5fdf4c7a | 82677389430a30ad82be9fa81643431d9db24f0c | refs/heads/master | 2021-01-19T19:06:40.791795 | 2016-04-14T22:18:43 | 2016-04-14T22:18:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,489 | py | from django.shortcuts import resolve_url
from django.test import TestCase
from InternetSemLimites.core.models import Provider, State
class TestGet(TestCase):
def setUp(self):
sc = State.objects.get(abbr='SC')
go = State.objects.get(abbr='GO')
props = {'name': 'Xpto',
'url... | [
"cuducos@gmail.com"
] | cuducos@gmail.com |
030730aea6d1dffe065b7f8024036c9897b30e29 | 330b887423a979d0cb23dd598efc71b397a1f507 | /exercicios/exe_27_6.py | 402d6f2f457779b0634dd92ee5fab39abd702e0c | [] | no_license | giovane-sylvestrin/aulas_python | 0ac10e0a16af5342bb859e4ec1b9de758e092dc0 | f6ef8e94024b9fa5f76376871a46c220a6d90445 | refs/heads/master | 2022-12-04T09:57:07.414613 | 2020-08-22T18:44:58 | 2020-08-22T18:44:58 | 289,150,251 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 192 | py | from fractions import Fraction
n = int(input('Insira um numero: '))
n_i = 0
H_n = 0
for i in range(1,n+1):
H_n += 1/i
fraccion = Fraction(str(H_n)).limit_denominator()
print(fraccion)
| [
"giovane.sylvestrin@gmail.com"
] | giovane.sylvestrin@gmail.com |
f51c5a4a15f49e683756fdd822a6618dc7c08cd3 | 7c98ce3ef36a427cdbe42ab62d4eed9fc191ae5e | /Information Security/RSA.py | 369be0351dd85789e8156255ac23a387356cd799 | [] | no_license | vk-19/msc-codes | 6f420647a12115c5c3a6c33cbfb160f5f917557d | a218a2f05d990718cde01c43eaf2ffe9367ce279 | refs/heads/master | 2023-06-18T16:59:00.290154 | 2021-07-16T17:09:12 | 2021-07-16T17:09:12 | 354,602,606 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,209 | py | from math import gcd
from sympy import *
from random import randint
def RSA_encryption(M, public_key):
e, n = public_key
C = (M ** e) % n
return C
def RSA_decryption(C, private_key):
d, n = private_key
M = (C ** d) % n
return M
def generate_keys():
p = randprime(100, 1000)
q = r... | [
"vineetkumarprogramming@gmail.com"
] | vineetkumarprogramming@gmail.com |
35f3e2159bde476249d6128daeff130be953637c | 9d64b6be2fe8928f3f33580c5e666f4e952f0005 | /startwrite.app/Contents/Resources/scrape/09-09-2019-copy60.py | c9c4b76648f899df9872a5320a101a3138a06b4f | [] | no_license | xhimalaya/startwritemacinstller | 8c5575f0b1c79cbe2dcf97cefb7ac611fdd13a01 | e9f87ff903b350859919fcccdb19533b1f233d57 | refs/heads/master | 2020-11-30T17:38:44.554815 | 2019-12-27T13:49:16 | 2019-12-27T13:49:16 | 230,449,890 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 481,409 | py | #!/usr/local/bin/python3
from SW_lib import *
import key_generation
lin_flag = False
import Sw_db_init
user_id, user_mail, vaild_key, key_status = SWdb.fetching_data_from_license_table()
if key_status == 0:
lin_flag = True
import welcomedemo_SW
SWdb.update_data_into_license_table()
elif key_status == 1:
... | [
"etsindiapython"
] | etsindiapython |
e59e35eba0f5bc8203b44ba31dad8f05943e6e23 | 489f363c571ee3121922feebc8bf8e92e2179f9d | /wagers/forms.py | 232714fca620f60c6cf65e95488e0ffcd14b4e29 | [] | no_license | ryanchoe1205/wagering | 4485c6fca5c7050139781193ec90c93b0094ae3c | 6372d5c7ba79b6f6b2aa60a864955f56863ad86d | refs/heads/master | 2021-01-16T18:12:14.342153 | 2013-08-28T13:19:48 | 2013-08-28T13:19:48 | 12,314,621 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,206 | py | from django import forms
from django.shortcuts import get_object_or_404
from models import Schedule
from models import Tournament
from models import Proposition
from models import Bet
class TournamentForm(forms.Form):
"""
This form is used to interact with Tournament models.
"""
uuid = forms.CharField(... | [
"jColeChanged@gmail.com"
] | jColeChanged@gmail.com |
049c15190f0142931a95e324dcc39ec13e781818 | 0e1e643e864bcb96cf06f14f4cb559b034e114d0 | /Exps_7_v3/doc3d/Ablation4_ch016_ep003_7_10/Gather1_W_change_C_fix_2blk/ep0_test/pyr_0s/L5/step10_a.py | 4ff6c76e23f16f7c54b25b5ca0b4b4c49fbd9a01 | [] | no_license | KongBOy/kong_model2 | 33a94a9d2be5b0f28f9d479b3744e1d0e0ebd307 | 1af20b168ffccf0d5293a393a40a9fa9519410b2 | refs/heads/master | 2022-10-14T03:09:22.543998 | 2022-10-06T11:33:42 | 2022-10-06T11:33:42 | 242,080,692 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,733 | py | #############################################################################################################################################################################################################
##################################################################################################################... | [
"s89334roy@yahoo.com.tw"
] | s89334roy@yahoo.com.tw |
4d2768bfcd201ed2ce6857a97e8884cb4df9470b | c95d852af55e03e30ea9e00f64ae431ea783a0ad | /Newfile.py | 25e02eac057d069df6d9d184fe76cfbd739ca566 | [] | no_license | nithyapy/TestingwithGit | 54696f09280cb485ae6a60998231291f6da867a8 | 0510a11d6eb1d8cc654d81f0d95d68ac939df8d7 | refs/heads/master | 2023-07-08T09:10:24.272312 | 2021-08-19T19:56:56 | 2021-08-19T19:56:56 | 398,042,812 | 0 | 0 | null | 2021-08-19T19:56:58 | 2021-08-19T18:44:37 | Python | UTF-8 | Python | false | false | 98 | py | print("working with GIT")
print("updated master branch to origin")
print("updating existing file") | [
"nithyapy@gmail.com"
] | nithyapy@gmail.com |
8f3f80865e0e486357a2d4045a4a6d3735bb28a8 | d4a6cc34eaf4869356e1c6d8b0088f527641d08b | /CarVender/settings.py | bc4cbce552ffee1c73432029c3318ab1775d8a49 | [] | no_license | taraszag/CarVender | 57d6a5441748340b4f5af3949d5b87345c5ace03 | fb41f2d379a092530827078c3f9706cdb4b1715a | refs/heads/master | 2023-07-18T05:37:34.090407 | 2021-08-31T10:54:46 | 2021-08-31T10:54:46 | 401,668,314 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,582 | py | """
Django settings for CarVender project.
Generated by 'django-admin startproject' using Django 3.2.6.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
from pathl... | [
"taras288200"
] | taras288200 |
a195809630945e990f64e7f2e22e179be4e4622d | a88a3bef1f8bee61a68984b0fa3a701b83cba447 | /WordPotential.py | 2edd3ab622fee8671011de5e58fc8ddbbf0f79f9 | [] | no_license | srishtishukla-20/logical_questions | ba9918838669c3fba988fb8d3368e32103fd6e59 | 80688fb1817fb3b450781b0cbb3c6634a9221f60 | refs/heads/main | 2023-06-26T20:29:42.377728 | 2021-07-31T03:46:59 | 2021-07-31T03:46:59 | 386,346,204 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 543 | py | #for sentence with numbers
name=input("enter any word which contain , . !=")
user=name.split(" ")
i=0
e=[]
s=[]
while i<len(user):
j=0
sum=0
while j <len(user[i]):
if user[i]>="a" and user[i]<="z":
sum+=ord(user[i][j])-96
else:
sum+=ord(user[i][j])-64
j+=1
... | [
"noreply@github.com"
] | noreply@github.com |
dd6e1952d481483a14c6af026279ff57759228ca | dd7f300548bd9370b3a1a1ad70950093c9f50b6a | /blogs/migrations/0017_auto_20201012_1158.py | 0402d4b008fb54e65ff87a1ea6d98cae1517ca24 | [] | no_license | ADI33352/adi-djangoblog | 82e149c2c7d689db58af66d08fa3143ab3345a69 | 247026dd9484851f7a5dc2cdcaa0ee3d8d29b030 | refs/heads/main | 2023-01-22T14:39:31.069382 | 2020-11-08T10:57:50 | 2020-11-08T10:57:50 | 311,027,333 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 335 | py | # Generated by Django 3.1.1 on 2020-10-12 06:28
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('blogs', '0016_author_singleblog'),
]
operations = [
migrations.RenameModel(
old_name='singleblog',
new_name='blogsingle',
... | [
"adityaparashar863@gmail.com"
] | adityaparashar863@gmail.com |
6205368c81d9fd6e11eea0a70e7073fba8748f02 | fea09fda1774459eec05b5610dc83b3f8cca17e6 | /inference/pymc/pymc_simple_probit_fit.py | 1feb99d9c7dcdec021143d35d511edc34c94ee26 | [] | no_license | ItayLieder/GMM_simulations | ea9a4fd57b671d44a1a50d845c09aec2415b3b1c | 2a05aa98b501c8633e1fe2baf611d137740709de | refs/heads/master | 2020-12-31T06:22:24.191116 | 2016-04-16T21:42:57 | 2016-04-16T21:42:57 | 56,406,762 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,382 | py | #%matplotlib inline
from pymc3 import *
import numpy as np
import matplotlib.pyplot as plt
from utils import phi
import theano.tensor as tsr
# Generating synthetic data
N =100
x = np.random.randn(N)
s_true = 0.1
a_true = 0.1
b = phi(x/s_true-a_true)
y = np.random.rand(N)<b
def probit_phi(x):
""" Probit transfo... | [
"itay.lieder@mail.huji.ac.il"
] | itay.lieder@mail.huji.ac.il |
dc401f0b32823ac6961ded0464e606bcbbf5b981 | c3d4af1c811d2d45595060b10ad979ae148e9265 | /course1/week3/Planar+data+classification+with+one+hidden+layer+v5.py | dcbacbc5c84ae5829d40220976257e8a6986e38c | [] | no_license | DB-Zhang/My-Deeplearning-Homework-Angerw | ddd93bf3c1233939ac398771f089874e1c843e16 | df79115e47a0f2ed24369e96b453285f67c41d69 | refs/heads/master | 2020-04-01T17:29:02.909694 | 2018-10-17T09:58:03 | 2018-10-17T09:58:03 | 153,432,576 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 30,432 | py |
# coding: utf-8
# # Planar data classification with one hidden layer
#
# Welcome to your week 3 programming assignment. It's time to build your first neural network, which will have a hidden layer. You will see a big difference between this model and the one you implemented using logistic regression.
#
# **You wil... | [
"noreply@github.com"
] | noreply@github.com |
24c37b2731f76d1274c85d3269703a9dd52a74b7 | b2913030cf1646310b08efaa57c2199bb08e37c9 | /general/object_id/apero_astrometrics.py | 8f21305a71d1f0d505c9856a0c692a251e7481f5 | [
"MIT"
] | permissive | njcuk9999/apero-utils | 6f5b5083537562a31573b5c4cc76908c5fe194b9 | 368d53182428ca8befcdd3e5c8ca054f61913711 | refs/heads/master | 2023-08-31T02:56:01.369406 | 2023-08-18T15:12:59 | 2023-08-18T15:12:59 | 238,777,509 | 3 | 5 | MIT | 2023-08-17T14:15:41 | 2020-02-06T20:24:49 | Python | UTF-8 | Python | false | false | 5,169 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
# CODE NAME HERE
# CODE DESCRIPTION HERE
Created on 2021-11-10 at 16:04
@author: cook
"""
from astroquery.utils.tap.core import TapPlus
from astroquery.simbad import Simbad
import numpy as np
from typing import Dict, List, Tuple
import warnings
from apero import lan... | [
"neil.james.cook@gmail.com"
] | neil.james.cook@gmail.com |
cc176a774c950fca1179196f76975994db0ffdf0 | 82042141439ae004fc38bb2ef6238f36ec6bb050 | /accounting/tables.py | e59289b4a7eb9e31422231abdbecd07c0d90f405 | [] | no_license | psteichen/clusil-intranet | 2e9a2cf3b00692a4ef441ebf669af4e63945e9a2 | 5c028d33f6a8559af57a4eeb02fc0f612cb1b261 | refs/heads/master | 2021-07-13T15:40:06.464105 | 2020-06-30T19:51:00 | 2020-06-30T19:51:00 | 27,195,950 | 2 | 1 | null | 2021-06-10T20:06:47 | 2014-11-26T20:59:46 | Python | UTF-8 | Python | false | false | 1,272 | py | #coding=utf-8
from django.conf import settings
from django.utils.safestring import mark_safe
from django.utils.html import escape
from django_tables2.tables import Table
from django_tables2 import Column
from cms.functions import visualiseDateTime
from cms.tables import gen_table_actions
from .models import Fee
#t... | [
"pst@libre.lu"
] | pst@libre.lu |
b5a20435c0065c1e45a1017cf93de003c61aee01 | 1f7c865d94d93048df70a6641a19f4b869d4c3c8 | /DjangoTest/view.py | 88bad1a095ce7141ba3f48dc7c4e93acb6da0164 | [] | no_license | littletonton/DjangoTest | 25593a1bf18628591eee54dd8a77c83b9b93b1d1 | 3457b55575f8eab562ff636565a7dd43d671a1b5 | refs/heads/master | 2021-01-01T16:23:30.565325 | 2017-07-20T16:12:35 | 2017-07-20T16:12:35 | 97,822,667 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 363 | py | #!usr/bin/env python
#_*_ coding:utf-8 _*_
from django.http import HttpResponse
from django.shortcuts import render
def hello(request):
context = {}
context['isshow'] = False
context['hello'] = "Hello World!"
context['bye'] = "Good Bye!"
context['athletes'] = [{'name':'Ton'},{'name':'Tom'}]
re... | [
"769418213@qq.com"
] | 769418213@qq.com |
9e4621ec32ef28b5527df19a44d135884ac01e99 | 659c9c7792912617e289567a36dfdc987e5fce54 | /turnin/jhuan314_lab2_part2_tests.py | a44fef8360bba118d005badcbabab019a4b3d9ba | [] | no_license | jackhuangg/cs120b_lab2 | 8f3a94becc0229e17f553299113f05737b88b09d | 66c62f469895958f5d10ec1a7223412e79ef3049 | refs/heads/master | 2023-04-07T23:59:45.601443 | 2021-04-12T02:31:49 | 2021-04-12T02:31:49 | 355,007,850 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,120 | py | # Array of tests to run (in order)
# Each test contains
# description -
# steps - A list of steps to perform, each step can have
# inputs - A list of tuples for the inputs to apply at that step
# *time - The time (in ms) to wait before continuing to the next step
# and before checking expect... | [
"jhuan314@wch136-24.cs.ucr.edu"
] | jhuan314@wch136-24.cs.ucr.edu |
508ba345964380a61362afc629dea987c61c2b0c | c97ad9dbc96d151b5ef38a6d6dbac454d6e57576 | /architectures/preprocessing.py | f15f66e3b153c6b3f0bbf3ec310c58605c37fd61 | [
"BSD-3-Clause"
] | permissive | WangVictor/jets | 75177ff68fad2eaf3274537afcee325d93ff1d5f | 1f7209b4c026b63cad94aa8c93e2b8721b259b98 | refs/heads/master | 2021-07-14T05:39:54.983839 | 2017-10-17T20:48:01 | 2017-10-17T20:48:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,137 | py | import numpy as np
import copy
import pickle
import torch
from torch.autograd import Variable
# wrapping
def wrap(y, dtype='float'):
y_wrap = Variable(torch.from_numpy(y))
if dtype=='float':
y_wrap = y_wrap.float()
elif dtype == 'long':
y_wrap = y_wrap.long()
if torch.cuda.is_available(... | [
"isaachenrion@gmail.com"
] | isaachenrion@gmail.com |
592013723710a78b9c48851a554dfcd087ddb071 | 84d5a6bf92dc369ed89424cfb279da058916c4a6 | /tests/read-text-file.py | d86b05d42ab617398e67d090ea1f279c66a687c1 | [] | no_license | oferby/playground | ebb9760b0a0ff217631a75ea2f77023ff6185373 | 50b088bc7aeb1d6b9ef74bc745600a4540e3f962 | refs/heads/master | 2022-05-11T17:31:20.568949 | 2022-04-28T06:34:01 | 2022-04-28T06:34:01 | 86,551,277 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 69 | py | f = open('file1.txt', 'r')
line = f.read()
print(line)
f.close()
| [
"ofer.benyacov@gmail.com"
] | ofer.benyacov@gmail.com |
d031f9d17e6d7442b98764362e2808e3192189ab | 25e627d2931b89eb53d7dad91b200c1c29fe0233 | /code/lab_05_Important_Trick/sys_demo(3).py | 0740b2d3d833b437ef0f896f320dcf4511a6b1a6 | [] | no_license | tcano2003/ucsc-python-for-programmers | efb973b39dbff9a7d30505fecbd9afb1e4d54ae9 | cc7fe1fb9f38f992464b5d86d92eb073e18e57d5 | refs/heads/master | 2020-03-26T22:13:29.256561 | 2018-08-26T14:54:08 | 2018-08-26T14:54:08 | 145,442,055 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 718 | py | #!/usr/bin/env python3
"""Demonstrating the sys module."""
import sys
def DemoOpenStreams():
"""Demos stderr, stdout and stdin. Also sys.exit()"""
sys.stderr.write('You can write to stderr.\n')
print (>> sys.stderr, "You might like the >> syntax.") # look this up how to convert to Python 3
... | [
"traviscano@msn.com"
] | traviscano@msn.com |
685ba4cbb2f65e7f9b5a1b6490d04f4968025b18 | 7c82b6eb190fa96dc6486ce3c770d47279380066 | /simplemoderation/urls.py | df8c286d6aca19bc56e82d58a63d245ea9877241 | [] | no_license | Mediate18/Mediate | 8b34cda12c23947aeac644248672da4de272cb22 | 47eb0f0fbba8b87c69acb97bcf3d39e7a037dbc8 | refs/heads/main | 2023-07-25T22:27:23.138626 | 2023-07-17T12:31:37 | 2023-07-17T12:31:37 | 117,852,218 | 5 | 0 | null | 2023-03-29T11:53:17 | 2018-01-17T15:08:35 | Python | UTF-8 | Python | false | false | 569 | py | from django.urls import path
from django.views.generic import RedirectView
from django.contrib.auth.decorators import login_required, permission_required
from .views import *
urlpatterns = [
path(r'', RedirectView.as_view(url='moderations/')),
# Moderation urls
path('moderations/', permission_required('gl... | [
"m.hulsbosch@let.ru.nl"
] | m.hulsbosch@let.ru.nl |
ac9f8f7bd7e5740f7b8e3cd61ea81cb39bfe3e50 | 9b5957a61341edd763b9dd5d739cbbb130954182 | /app/python/by_brightness.py | eb4774b292688fe2302a04d099e6bad7f0f30c8e | [] | no_license | Charles-1999/heart_server | 347c50c3269afacc13c5a17ea12af7c63e608052 | c990a4aacc0665f693c7b9e05c334422a40a51fb | refs/heads/main | 2023-05-09T13:02:48.409696 | 2021-06-04T05:05:45 | 2021-06-04T05:05:45 | 353,206,237 | 3 | 3 | null | null | null | null | UTF-8 | Python | false | false | 284 | py | def get_brightness_data(frames):
data = []
print('Begin to read brightness')
for frame in frames:
gray = int((frame[0] * 299 + frame[1] * 587 + frame[2] * 114) / 1000)
data.append(gray)
print(data)
print('Brightness OK')
return data
| [
"792281365@qq.com"
] | 792281365@qq.com |
be210f89568c29063428ef21602005c46b94af7c | e86d020f8ade86b86df6ad8590b4458a9d415491 | /test-xooj/practice_infiltration/resource.py | 54fa54208d6e269ffbafe87eff7295d066e7fde0 | [
"BSD-2-Clause"
] | permissive | g842995907/guops-know | e4c3b2d47e345db80c27d3ba821a13e6bf7191c3 | 0df4609f3986c8c9ec68188d6304d033e24b24c2 | refs/heads/master | 2022-12-05T11:39:48.172661 | 2019-09-05T12:35:32 | 2019-09-05T12:35:32 | 202,976,887 | 1 | 4 | null | 2022-11-22T02:57:53 | 2019-08-18T08:10:05 | JavaScript | UTF-8 | Python | false | false | 787 | py | # -*- coding: utf-8 -*-
from common_env.models import Env
from practice import resource
class PracticeInfiltrationTaskMeta(resource.SolvedBaseTask):
subsidiary = [{
'force': {
'create_user_id': None,
'last_edit_user_id': None,
},
'subsidiary': {
'catego... | [
"842995907@qq.com"
] | 842995907@qq.com |
b7de473957936ec780838884a83cb0869cc090e3 | be168f80baa41430f4a458fd090273f2aa836dd9 | /tests/test_0198-tutorial-documentation-1.py | dcb6ad3d1767e09ab3afbc1f8c7288ccb86d2f63 | [
"BSD-3-Clause"
] | permissive | Ellipse0934/awkward-1.0 | d1ca5ce38ec57ff1a41e17269106a2ed3c698622 | 24347a92b825dd2a868217e0f8e45b79b81177e4 | refs/heads/master | 2022-04-24T13:57:36.502202 | 2020-04-24T21:34:24 | 2020-04-24T21:34:24 | 256,601,105 | 0 | 0 | null | 2020-04-17T20:17:30 | 2020-04-17T20:17:29 | null | UTF-8 | Python | false | false | 2,769 | py | # BSD 3-Clause License; see https://github.com/jpivarski/awkward-1.0/blob/master/LICENSE
from __future__ import absolute_import
import sys
import pytest
import numpy
import awkward1
def test_singletons():
array = awkward1.Array([1.1, 2.2, None, 3.3, None, None, 4.4, 5.5])
assert awkward1.to_list(awkward1.s... | [
"noreply@github.com"
] | noreply@github.com |
2b7af92bfdd54503386f5e94c97ca30500b26788 | 409c4d0dce72de987dff7c76857499fba8f8b7a0 | /disargv.py | 74cc21ae8cb5195e712dce1e98515d6ada50d2d1 | [] | no_license | crystaleone/test | b4fece7fbc4e8ddd6186ea13245c62970c6d7038 | 4af3964bf6a657e888c7850f07a031440ba29e7a | refs/heads/master | 2021-01-18T19:17:36.924170 | 2017-09-19T03:37:01 | 2017-09-19T03:37:01 | 86,895,858 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 98 | py | import sys
l1 = sys.argv[0]
l2 = sys.argv[1]
l3 = sys.argv[2]
l4 = sys.argv[3]
print(l1,l2,l3,l4)
| [
"403868144@qq.com"
] | 403868144@qq.com |
957e9a83a0906447bcd7c0b17c13adc0c9d0a9e7 | f338eb32c45d8d5d002a84798a7df7bb0403b3c4 | /DQMOffline/Alignment/test/testMuAlDQM.py | dafae5c403d9e801584a14e97431e543ac40337d | [] | permissive | wouf/cmssw | 0a8a8016e6bebc611f1277379e12bef130464afb | 60da16aec83a0fc016cca9e2a5ed0768ba3b161c | refs/heads/CMSSW_7_3_X | 2022-06-30T04:35:45.380754 | 2015-05-08T17:40:17 | 2015-05-08T17:40:17 | 463,028,972 | 0 | 0 | Apache-2.0 | 2022-02-24T06:05:30 | 2022-02-24T06:05:26 | null | UTF-8 | Python | false | false | 4,965 | py | import os
import FWCore.ParameterSet.Config as cms
process = cms.Process("MuonAlignmentMonitor")
process.load("FWCore.MessageLogger.MessageLogger_cfi")
process.MessageLogger.cerr.FwkReport.reportEvery = 1000000
process.load("DQMOffline.Alignment.muonAlignment_cfi")
process.load("DQMServices.Components.MEtoEDMConver... | [
"giulio.eulisse@gmail.com"
] | giulio.eulisse@gmail.com |
ac071baf54ddf760d3e5687074c54196fc7752c7 | 013707f140b922e96750b14d7304fc51baf07e9e | /venv/Scripts/pip3-script.py | 21d091d8e19cf1b934ea2541332a715dd5bc13e2 | [] | no_license | omolojakazeem/git_hub | 61be5bb148c4a5b98c212021fa810f94cc8e3029 | 94307d597a1df0280d5a157f90818029d9ba90a8 | refs/heads/master | 2021-05-21T22:33:08.442431 | 2020-04-03T20:51:58 | 2020-04-03T20:51:58 | 252,833,216 | 0 | 0 | null | 2020-04-03T20:52:00 | 2020-04-03T20:24:44 | Python | UTF-8 | Python | false | false | 414 | py | #!C:\Users\Kazeem\PycharmProjects\git_hub\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv... | [
"omolojakazeem@gmail.com"
] | omolojakazeem@gmail.com |
8a0b24f1b87ed54499e4404ca461f2e09c83933a | 7f48a58c0de39394193b869797dac3f588de57fc | /worker.py | a875cf416c0c73f6857dd2a3e9dd1b3a205217d7 | [] | no_license | imkindaprogrammermyself/replay-data | 350be854bd5b4b3dd6880779f1392396449e78af | 588f117fe0e53122771f41a33d8fb66708c61898 | refs/heads/main | 2023-05-23T23:14:02.849593 | 2021-06-23T16:33:41 | 2021-06-23T16:33:41 | 379,663,590 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,462 | py | import logging
import requests
import json
from celery import Celery, Task
from celery.app import trace
from replay_unpack.clients import wows
from replay_unpack.replay_reader import ReplayReader, ReplayInfo
trace.LOG_SUCCESS = """Task %(name)s[%(id)s] succeeded in %(runtime)s"""
celery = Celery(__name__, backend="red... | [
"applicatnccnt@gmail.com"
] | applicatnccnt@gmail.com |
cf2b2c96d0d491c8c88a9fc1376182d7c150b431 | b5c33002505affb3fb527b56244ffdd6ea4a1c78 | /dota_2/image.py | 32c00f97bd58c0b781b4ef255681c50a02c58317 | [] | no_license | UANEMESIS/main | 1b01459dbf1db14924b9f52df401daa79971a1af | bb8acc46f0f49a79be303e6464354fc4f5f19c1a | refs/heads/master | 2020-03-19T11:26:55.282566 | 2019-04-01T06:45:58 | 2019-04-01T06:45:58 | 136,456,707 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 355 | py | from lackey import * # Для установки прописываем pip install lackey
import time
#Settings.MinSimilarity = 0.55
#find("rank.png")
find(Pattern("xrank.png").similar(0.99)).highlight()
#time.sleep(2)
#click("rank.png")
#doubleClick("rank.png")
#wait("rank.png", 5)
#hover("rank.png")
#print(Settings.MinSim... | [
"mike_zone@ukr.net"
] | mike_zone@ukr.net |
acf70baa430cd3b587289d71dd499a69ff5d23d5 | 1788a4e343e2c79135cf73298be7a8a3beb37ad9 | /src/google/protobuf/socketrpc/examples/helloworld/run_client.py | 01e97a0afb05a72eec1f5b39c6e6fbd938521547 | [] | no_license | chenhd/TLE | 025b49c309242ae176a259d6829a6519fad6a45b | cf9716e90de4761fb42f1053bad6fb5bb961bef8 | refs/heads/master | 2021-01-19T18:35:23.955574 | 2015-04-17T07:19:56 | 2015-04-17T07:19:56 | 33,033,395 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,603 | py | #!/usr/bin/python
# Copyright (c) 2009 Las Cumbres Observatory (www.lcogt.net)
# Copyright (c) 2010 Jan Dittberner
#
# 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, inclu... | [
"Grey@Grey-PC"
] | Grey@Grey-PC |
556eaac15427d16380ef707d065ff665d205b6ff | 360e95a15e30b4f3baafaefb44bcfda156ae3e7f | /handler.py | 08d6ab07f4dd88546dae4b0ee70d79a7817bd7a5 | [] | no_license | edyesed/ignite-talk-tweeter-serverless | aea5739dccf25ed77a5d4bd0d073a4ae07fa981d | 58bad3095f2d67ca0869cdda65c3fecb694f7756 | refs/heads/master | 2022-12-09T15:14:41.559144 | 2019-10-31T21:51:34 | 2019-10-31T21:51:34 | 141,651,261 | 4 | 1 | null | 2021-06-01T22:43:26 | 2018-07-20T02:05:01 | Python | UTF-8 | Python | false | false | 10,530 | py | import json
import os
import twitter
api = twitter.Api(consumer_key=os.environ.get('CONSUMER_KEY'),
consumer_secret=os.environ.get('CONSUMER_SECRET'),
access_token_key=os.environ.get('ACCESS_TOKEN'),
access_token_secret=os.environ.get('ACCESS_TOKEN_SECRET'),
... | [
"ed@realself.com"
] | ed@realself.com |
5b5335df5b4deea4e68468c7971013b78b2d4fda | fea4df9f31e62d7fc1adf0a5ca08c017cce504c1 | /site_experiences/apps.py | f21d41a38ec0134d8db1560b7074dde88bbf067f | [] | no_license | tahericode/personal-site-with-django | 47eec11c243d047ced7bb997913b53c902913b23 | 0f1a4fc7aa1489487fdae174b4b75c4ab037106d | refs/heads/main | 2023-07-07T07:29:10.454706 | 2021-08-03T19:48:37 | 2021-08-03T19:48:37 | 392,434,831 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 163 | py | from django.apps import AppConfig
class SiteExperiencesConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'site_experiences'
| [
"mrtcode2@gmail.com"
] | mrtcode2@gmail.com |
48cf24d2660484608ab2a4153721faff3b921745 | 61673ab9a42f7151de7337608c442fa6247f13bb | /tkinter/minimize - iconify/main.py | 5f35a5d61c37b30d04da61f12bdcb2aa2ff74595 | [
"MIT"
] | permissive | furas/python-examples | 22d101670ecd667a29376d7c7d7d86f8ec71f6cf | 95cb53b664f312e0830f010c0c96be94d4a4db90 | refs/heads/master | 2022-08-23T23:55:08.313936 | 2022-08-01T14:48:33 | 2022-08-01T14:48:33 | 45,575,296 | 176 | 91 | MIT | 2021-02-17T23:33:37 | 2015-11-04T23:54:32 | Python | UTF-8 | Python | false | false | 648 | py | #!/usr/bin/env python3
# date: 2020.06.27
import tkinter as tk
root = tk.Tk()
# button [X] minimize (iconify) the main window
root.protocol("WM_DELETE_WINDOW", root.iconify)
# key ESC minimize (iconify) the main window
#root.bind('<Escape>', lambda event: root.destroy())
root.bind('<Escape>', lambda event: root.i... | [
"furas@tlen.pl"
] | furas@tlen.pl |
e42b386d67393c6af683599183132b972f57f57a | 928c53ea78be51eaf05e63f149fb291ec48be73e | /Min_Steps_to_Make_Piles_Equal_Height.py | 527f25bb619af81199021e028c3d6393516d14b4 | [] | no_license | saurabhchris1/Algorithm-Pratice-Questions-LeetCode | 35021d8fc082ecac65d7970d9f83f9be904fb333 | ea4a7d6a78d86c8619f91a75594de8eea264bcca | refs/heads/master | 2022-12-10T16:50:50.678365 | 2022-12-04T10:12:18 | 2022-12-04T10:12:18 | 219,918,074 | 5 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,697 | py | # Alexa is given n piles of equal or unequal heights. In one step, Alexa can remove any number
# of boxes from the pile which has the maximum height and try to make it equal to the one which
# is just lower than the maximum height of the stack. Determine the minimum number of steps
# required to make all of the piles e... | [
"saurabhchris1@gmail.com"
] | saurabhchris1@gmail.com |
9438eea367d5665d216f1aed93c8ff378a68025d | 5e644863f2a5e40702d0f936c9893a54c930f432 | /apps/trips/models.py | ea7d9919894b9c23be9629cd6b0a6afdc62802a5 | [] | no_license | MichaelJShea/belt | 881c02148c531d730418fc3fef9e249512e96a35 | 9b3f6f55cfc9c49d9f602be2f2ca75ca6ac2eef2 | refs/heads/master | 2020-04-25T18:25:48.531296 | 2019-02-27T20:22:10 | 2019-02-27T20:22:10 | 172,984,111 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,459 | py | from django.db import models
from apps.login_register.models import User
from datetime import datetime, timedelta
# Create your models here.
class tripManager(models.Manager):
def trip_validator(self, PostData):
errors = {}
is_valid = True
if len(PostData['edit_destination']) == 0:
... | [
"MichaelShea1814@gmail.com"
] | MichaelShea1814@gmail.com |
ef50016652cd8bfd2b69bc19ee34de0eb6ff7d2d | 343715f0df51b71364c781a55406be11e03640f1 | /main.py | b829c4e6e428403043d9403a81738024a5faf283 | [
"MIT"
] | permissive | danilhendrasr/bisection-method | ca306769cbf5dfc7bd67e5f7607f83df787ba2b1 | 40e6cafedb69996868a286ce10db5d221d9021a9 | refs/heads/main | 2023-01-05T16:08:06.333987 | 2020-11-03T03:23:32 | 2020-11-03T03:23:32 | 308,780,737 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,932 | py | import os
from tabulate import tabulate
def evaluateEquation(number):
return eval(equation.replace("x", str(number)))
def clearTerminal():
os.system('cls' if os.name == 'nt' else 'clear')
def exitProgram(message):
print("\n-- {} --".format(message))
exit()
equationTemplate = "y = x^q - r*x + s"
... | [
"danilhendrasuryawan@gmail.com"
] | danilhendrasuryawan@gmail.com |
710c01eb540d96e0f04f702f76a9b37f9c3e60e5 | 7e412e95f26d2fbf6845e84266e41df9d826548a | /mltest/LinearRegression.py | e206f4f7c6a188061477e5fe079a9eb9646bb236 | [] | no_license | mutaphore/mlproject | 1c277462652ec7a09feb503a26188fbf9b44d880 | 59466f769227311f317336c7be80fcc23b09aca0 | refs/heads/master | 2016-09-05T19:51:35.795610 | 2015-02-03T03:13:38 | 2015-02-03T03:13:38 | 30,222,709 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,628 | py | import numpy as np
from decimal import *
# X: 2D python list
# y: 1D python list
# theta: 1D python list
def gradientDescent(X, y, theta, alpha, numIters):
X_norm, mu, sigma = featureNormalize(X)
J_history = []
n = len(theta)
m = len(y)
# Convert to numpy structures for easier matrix indexing
ones = np.array([... | [
"deweichen47@gmail.com"
] | deweichen47@gmail.com |
11b02e051010453eb013a89954d8791c7033b396 | 4daeb9ebf92d9826028a50bf4e4715c1ab145db1 | /Problem-Set/Numerical_Computing/INSOMA3/run.py | 119445d7f7fd419363c3de405740eab234b29f25 | [] | no_license | Rahul2025/Thesis | 4148653fcc96d623d602ba58e33cc6465d1cd9f5 | df31863194e2e0b69646e3a48fcaf90541a55c2a | refs/heads/master | 2020-05-02T00:48:09.593873 | 2013-04-21T20:23:02 | 2013-04-21T20:23:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 172 | py | # filename : run.py
import time
f = open('/home/Rahul/Desktop/Thesis/Scripts/cyth_time', 'a')
start = time.time()
import qq18_tim
f.write(str(time.time() - start))
f.close | [
"rahulgupta2025@gmail.com"
] | rahulgupta2025@gmail.com |
3132b0efd69ef9cc5b03c63391cae36d41fdd27c | f7b6203364f54ce5a21e2f47816b51bfc8d7c691 | /datasets/ucf101.py | aa8297ff10e98bef58035d616872f71b01b194c2 | [] | no_license | ai-gzhu/IIC | b4c3feec940661cea5488e06cd545d8493f28d8f | 4c2968f393b2eb642dbe75b176f13d9ee61eee67 | refs/heads/master | 2023-03-20T08:34:03.563910 | 2021-03-22T01:50:27 | 2021-03-22T01:50:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,874 | py | import os
import random
import numpy as np
import pandas as pd
import torch
from torch.utils.data import DataLoader, Dataset
from torchvision import transforms
from PIL import Image
import accimage
def image_to_np(image):
image_np = np.empty([image.channels, image.height, image.width], dtype=np.uint... | [
"chntaoli@163.com"
] | chntaoli@163.com |
9f4416124cf22e1bd928fc11c7e256b682fd7520 | 7fffc39739869f259fe2d103efa05b87739778d1 | /Python/1149.py | 2396c4e58a35fca7ff1885f711b8fb4acd26d436 | [] | no_license | yunbinni/CodeUp | be39b3bd9fbeaa64be2a77a92918ebcc79b1799b | 5cb95442edb2b766de74154e0b91e8e1c236dd13 | refs/heads/main | 2023-08-15T19:02:29.819912 | 2021-10-12T00:50:16 | 2021-10-12T00:50:16 | 366,761,440 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 57 | py | a, b = map(int, input().split())
print(a if a > b else b) | [
"yunbin9049@gmail.com"
] | yunbin9049@gmail.com |
27450ead5d4d9e97d5fc4bf4b86c6dec72d1fd60 | 100792cbd321caa1abcca2b0eba6481e7288b76a | /CH10/main.py | ffdacbdb5424f41dc992e2ee837c078415b8318b | [] | no_license | magicbe/Python_Tutorial-Basic_Grammar | 00d3560905e56c9731f168252808bf6b64662d9f | 620a80b49d44686b3d4a7e4a4911ad04c5f84802 | refs/heads/master | 2020-04-26T22:27:53.195527 | 2019-03-08T01:01:14 | 2019-03-08T01:01:14 | 173,873,256 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 448 | py | from PasswordMachine import Machine
min = int(input("請使用者輸入你想要的下限:"))
max = int(input("請使用者輸入你想要的上限:"))
mach = Machine(min, max)
while True:
interval = mach.returnInterval()
msg = "請輸入[" + str(interval[0]) + "-" + str(interval[1]) + "]的數字:"
n = int(input(msg))
if mach.guess(n) == True:
break
... | [
"magicbe.tw@gmail.com"
] | magicbe.tw@gmail.com |
3bdf599f2436dfd6a931046d3e7b1f446bb9dac2 | c8265a1c81654ebe04bfd367862f824d84ced0e0 | /EzziliProject/EzziliApp/admin.py | 75c2b8ef8665bd8bae40cf2be417655167ba68c9 | [] | no_license | temidjoy/ezziliproject | d170291008b137e21e6a4903aa2852df3f517759 | 351f7542ca5c2365cea87b594fa9b2d20935c722 | refs/heads/master | 2021-01-11T02:22:11.689076 | 2016-10-15T08:51:22 | 2016-10-15T08:51:22 | 70,974,258 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 238 | py | from django.contrib import admin
from rest_framework.authtoken.models import Token
from EzziliApp.models import UserCredentials, Adverts, Photo
admin.site.register(UserCredentials)
admin.site.register(Adverts)
admin.site.register(Photo) | [
"temidjoy@gmail.com"
] | temidjoy@gmail.com |
4784063552b8891dfa15292ac4f90be4091f073b | f05cfc6d845f4f6c40f4a5045391431e5f50d853 | /csvDataTosqliteDB.py | 722866c701c6403d1328516dcd44d1447e18b228 | [] | no_license | jsdeveloper63/Python-Sqlite | 6f30b11a07fed3c171666467b4fc73784d4a55bc | 7131ff8746de65f9d10c2d9598f2906833e283e7 | refs/heads/master | 2022-10-22T06:04:03.652531 | 2020-06-07T11:48:36 | 2020-06-07T11:48:36 | 270,246,388 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,097 | py | import sqlite3
import csv
#Create the database
conn = sqlite3.connect("Electricity.db")
#Cursor method is used to go through the database
c = conn.cursor()
#Create the table
c.execute('CREATE TABLE electricity(date Real,'+
'day INT, period Real, nswprice Real, nswdemand Real, vicpr... | [
"noreply@github.com"
] | noreply@github.com |
13e5ba9b8d998a38efa9d776b849c1ff0be5f326 | 9cfb0575b962e5132d63a48b0b48813dcfb1a478 | /project/urls.py | 6ff7e639ed5de6b7bf755f12d8f2a81a2ab6efa8 | [] | no_license | CesarAugusto88/Django_CRUD_confirm_delete | c87ad03b3a1c40d99c2d92eb5aef2f3cf5e74c46 | 9cd391c48cbd6d79b45830f9ead25542edc9858e | refs/heads/master | 2021-04-24T05:38:00.929525 | 2020-03-25T20:45:26 | 2020-03-25T20:45:26 | 250,085,958 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 797 | py | """project URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based... | [
"cesarcosta.augustos@gmail.com"
] | cesarcosta.augustos@gmail.com |
60e192ad5b082abdc7f8a2241f19ad8f59ee6e93 | 2729d97fe8968f98102574a2c1e36c06e578b060 | /sports_list.py | f2f7be540e824f39c69d0249b39197cbc395d8f1 | [] | no_license | Sedarp/Sports-betting-odds | 44f3fd3d0781a03ed4373b45e46fa39a7fcfff43 | ca1c1b7433eb011bfe34f1d42712472636c1faf4 | refs/heads/master | 2022-04-16T10:04:39.875165 | 2020-03-24T01:14:26 | 2020-03-24T01:14:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 561 | py | import json
import requests
api_key = '0208e3093800f6b65ee6103e854b4578'
# get a list of in-season sports
sports_response = requests.get('https://api.the-odds-api.com/v3/sports', params={'api_key': api_key})
sports_json = json.loads(sports_response.text)
if not sports_json['success']:
print(
'There was ... | [
"mushy0705@gmail.com"
] | mushy0705@gmail.com |
f9d1b3379d9d0b461788522681e120132cdd17a6 | a18918bd442d02b5eff94bb768db07fd725fba68 | /Lista5 AED/Questao6.py | b1734570dab94bc51009a491c6b4c59c0d56fe7a | [] | no_license | Ytr00m/Listas | 15a28bd466d127227925356140004e5c4119cf6a | cb1f92e6e922169151adfc4aca6724dc7ec3dca1 | refs/heads/master | 2020-06-13T04:53:07.268128 | 2019-10-19T19:34:08 | 2019-10-19T19:34:08 | 194,542,357 | 0 | 2 | null | 2019-09-20T16:15:25 | 2019-06-30T17:20:58 | Python | UTF-8 | Python | false | false | 705 | py | print("Calculo de IMC e condição")
peso = float(input("Digite seu peso: "))
altura = float(input("Digite sua altura: "))
imc = peso / (altura ** 2)
if imc < 16:
print("Magreza grave")
elif imc > 16 and imc < 17:
print("Magreza moderada")
elif imc > 17 and imc < 18.5:
print("Magreza leve")
elif imc... | [
"noreply@github.com"
] | noreply@github.com |
f707b837977bb8b7525e293273b463c55f2ebd56 | d35c225431dec31bb767a2bb5e3241f180931759 | /Mochila/mochila.py | 9da3cf8df9984583b418b9e68cc505257da92d92 | [] | no_license | nicocda/Geneticos | ec769835dc2837a8ae897da6d7afbfd4f95037d4 | 1d360324f4b5c944f741048522f34583fdb628c5 | refs/heads/master | 2020-04-15T13:36:51.475538 | 2016-12-12T02:23:07 | 2016-12-12T02:23:07 | 56,190,276 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,091 | py | #bloque def constantes
combin = pow(2,10)
vol = 4200
#bloque funciones
#programa principal
elementos = [] #arreglo elementos
elementos.append([150,20])
elementos.append([325,40])
elementos.append([600,50])
elementos.append([805,36])
elementos.append([430,25])
elementos.append([1200,64])
elementos.append([770,54]... | [
"nicocda09@gmail.com"
] | nicocda09@gmail.com |
f5d92be42e117209154512727fce6e1c8bd349db | 5e50cb43f2dfaf9b62f7df0f313dab2d1b76fa67 | /myapp/supplier/migrations/0022_auto_20210202_1353.py | 2ea7507ed178a6a1b362affd8befb4f64af62237 | [] | no_license | quoctruong247/django-vuejs-ecommerce | be1d884a5a8960c58da9a25d69d16ccdc7109775 | 3d0f115dd6bcddcc6646fe4171b5a3fc7db66c0a | refs/heads/master | 2023-06-08T04:13:00.481942 | 2021-06-28T10:13:52 | 2021-06-28T10:13:52 | 380,987,241 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 664 | py | # Generated by Django 3.1.6 on 2021-02-02 06:53
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('supplier', '0021_auto_20210202_1048'),
]
operations = [
migrations.AlterField(
model_name='supplier',
... | [
"quoctruong247@gmail.com"
] | quoctruong247@gmail.com |
44ea589aaabee4858a1214504344aef3c957ced8 | dea05b9867104c800d4a145237402b2e877d7531 | /main_toolbox.py | e265e9f847b4a2871f2d3feadf4d6b15e876d41b | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | TonyRenHK/SalesforceXyTools | 848a7d6ae8224a5f7c0bc1c49d730a7915d7d879 | e6b64089f6db8bcf6298039135f4a1b6bd232a5d | refs/heads/master | 2020-04-15T16:25:54.858123 | 2019-01-07T14:13:56 | 2019-01-07T14:13:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,686 | py | import sublime
import sublime_plugin
import os,subprocess,threading
from .setting import SfBasicConfig
from .templates import AntConfig
from .uiutil import SublConsole
from . import baseutil
from . import util
from .salesforce import MetadataApi
from .permission_util import FiledPermissionUtil
#deploy open files
class... | [
"exia.huang@outlook.com"
] | exia.huang@outlook.com |
c0beafcfbfc378330072afa93b4b58185ae85f58 | 1cbce4c2882d05a011defaeb529b1e10c08be123 | /src/earlyWarningControlRadar.py | af85f44ad97f30a6028377dc2b44d6810db49e12 | [] | no_license | Ahiganbana/Datacrt | 226dbcf489921b75fcc8ddb68eaeb6dff2a066ce | e63d1bb2f80395cf925dfbc309a24d9519e85e9e | refs/heads/master | 2023-04-03T21:52:04.872473 | 2021-04-07T07:07:22 | 2021-04-07T07:07:22 | 355,443,992 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 499 | py | from cradar import Radar
import random
class EarlyWarningControlRadar(Radar):
def __init__(self):
super().__init__()
#发射功率 平均功率 峰值功率Kw
self.power = [1.2,1000000]
#脉冲宽度 最小值 最大值us
self.pulse_width = [0.18,0.22]
#重复频率 hz
self.repeat_frequency = [280,320]
... | [
"1334702974@qq.com"
] | 1334702974@qq.com |
67b598296245e8060822a540e340176e4aca8850 | 46c937eb2eb3158ce0fbb09ccbafdd57ff73bc27 | /BanditsInferenceJosephJacob/louie_experiments/run_effect_size_simulations_beta_nstep.py | 67c5f1e9d422b5e89acf9718bcd7cb5448e1e6bf | [] | no_license | IAIresearchlab/SCBandits | 461cecc36437b020b5cb354785ab5f9bd7da55a6 | b46b65662f50275ecf5e4a99ffdb25be74b67262 | refs/heads/master | 2023-03-06T01:13:57.455622 | 2021-02-23T20:07:41 | 2021-02-23T20:07:41 | 276,198,767 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 28,461 | py | '''
Created on Jul 21, 2017
@author: arafferty
'''
import argparse
import math
import random
import sys
import scipy.stats
import beta_bernoulli
import effect_size_sim_output_viz
from forced_actions import forced_actions
import generate_single_bandit
import get_assistments_rewards
import numpy as np
import pandas a... | [
"jacobnogas@gmail.com"
] | jacobnogas@gmail.com |
4c2eb9b33282c9d82b39003190a73f99d017c113 | 9405aa570ede31a9b11ce07c0da69a2c73ab0570 | /aliyun-python-sdk-jaq/aliyunsdkjaq/request/v20160412/ScanMalwareRequest.py | 22d33711640845bbae4e9f3f05704d6c77572d61 | [
"Apache-2.0"
] | permissive | liumihust/aliyun-openapi-python-sdk | 7fa3f5b7ea5177a9dbffc99e73cf9f00e640b72b | c7b5dd4befae4b9c59181654289f9272531207ef | refs/heads/master | 2020-09-25T12:10:14.245354 | 2019-12-04T14:43:27 | 2019-12-04T14:43:27 | 226,002,339 | 1 | 0 | NOASSERTION | 2019-12-05T02:50:35 | 2019-12-05T02:50:34 | null | UTF-8 | Python | false | false | 1,280 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"haowei.yao@alibaba-inc.com"
] | haowei.yao@alibaba-inc.com |
c50339aff0e1e2b90330465c9946643f803ff166 | 29178627212a6adb52e089d0fdf8018e964ce547 | /dictionary.py | 9655d9ec1629b714ec83d687022785295d46fc09 | [] | no_license | TimurAykutYildirim/apa-scrapper-service | 55d193a61e8230063b201ef7f6a0a73f59e34ff7 | 4740ce50767f5018ca222380851594b97233b8da | refs/heads/master | 2016-09-05T22:47:55.536106 | 2014-11-25T10:41:45 | 2014-11-25T10:41:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,953 | py | #!/usr/bin/env python
# -*- coding: ISO-8859-1 -*-
import urllib, json, datetime, math, time, sqlite3, io, os
key = "5359f98af2e4d8f738170b82b8eeaece"
myDict=[]
query = ""
page = "1"
totalNewsAmount = 0
von = "1199142000"
bis = "1388530800"
serviceURL="http://78.46.106.130:83/get_init_db_table_data2"
requestCounte... | [
"timur.aykut@gmail.com"
] | timur.aykut@gmail.com |
fce0c0cbd8334360a36182f7f12a1d6bf9d2bbbb | 66d79b863ef112d3e93770c695751d2f70c94aa5 | /pygeopressure_gui/views/well_log_view.py | 49097e2b311fa64d202ac8cf8d506a05529973d4 | [] | no_license | whimian/pyGeoPressure_gui | 95d11edbd0589d1ef4368298dbac2abdbd76d203 | a36777cf06a48eea681acc481880ee2e9309ac24 | refs/heads/master | 2020-03-11T22:26:56.967910 | 2018-05-09T08:20:48 | 2018-05-09T08:20:48 | 130,292,422 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,505 | py | # -*- coding: utf-8 -*-
"""
a Well log display widget based on matplotlib
Created on Tue May 2nd 2018
"""
from __future__ import (division, absolute_import, print_function,
with_statement, unicode_literals)
from future.builtins import super
__author__ ="Yu Hao"
from pathlib2 import Path
from ... | [
"yuhao89@live.cn"
] | yuhao89@live.cn |
bab0eabdd6e404d5559f72242608bb5325bf40a3 | bab8cf025d2efe3aac8f10a52ef1d9802940701e | /WorldForge/users/models.py | a81bda6f133e5d5966516243e07d9f2d4148b60b | [] | no_license | James-Cristini/DjangoApp | d94ee9c299e4149f6a718f9a6180ed757e32513b | 434b3121c6431d3f82d91a41ebc4ef5a9506b9bc | refs/heads/master | 2020-04-12T21:01:32.098955 | 2019-05-15T18:18:45 | 2019-05-15T18:18:45 | 162,753,230 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,761 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models
from django.contrib.auth.models import User
from django.core.files.uploadedfile import SimpleUploadedFile
from cStringIO import StringIO
from PIL import Image
import os
t1_caps = {
'max_worlds': 1,
'max_tiles_per_worl... | [
"jacristi0428@gmail.com"
] | jacristi0428@gmail.com |
6c25b70312cc813ebe121b0b58b346855fb06c2a | 4eb0455fe767163abf4a0f8b7b1acb1f772522cd | /basic-python/OOP/bedroom.py | 646e66b89d0962f85559173efc01ee54c6d3b6c7 | [] | no_license | mchez808/treehouse | 2c88f30e1fec9aacac510b1b298ba639ef75413d | 0c5f3ecea54051eefdf422a300f5e63eeaa1a966 | refs/heads/master | 2021-06-06T16:30:01.119123 | 2021-04-28T04:08:41 | 2021-04-28T04:08:41 | 157,463,845 | 0 | 1 | null | 2021-01-09T18:37:58 | 2018-11-14T00:02:53 | Jupyter Notebook | UTF-8 | Python | false | false | 881 | py | # rileywestonmiller@outlook.com
class Bed:
softness = ["soft", "med", "hard"] # the huge takeaway is written at bottom
def __init__(self):
self.is_made = True
def make(self):
self.is_made = True
def sleep(self):
self.is_made = False
mybed = Bed()
yourbed = Bed()
print(mybe... | [
"mark.chesney@gmail.com"
] | mark.chesney@gmail.com |
97865fff1a90500776ec72b8a08f24861b9bb8b8 | a980a244e992ee8df1cb7d28c4db23e96e1152c8 | /classproject/settings.py | 39c26e3de4bb57dd839a6dc52993275b51b1884d | [] | no_license | Aashritha1/Class-Project | eaf9aafc077a3392652040787ac5f92347ff48b1 | d37eca77f32e843bd76f4510eaafec0a21c25389 | refs/heads/master | 2021-01-22T18:37:51.076522 | 2020-05-13T09:46:37 | 2020-05-13T09:46:37 | 102,410,021 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,754 | py | """
Django settings for classproject project.
Generated by 'django-admin startproject' using Django 1.10.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.10/ref/settings/
"""
import... | [
"noreply@github.com"
] | noreply@github.com |
945d269ec640ac2c351e1a48ad4fecfd7de20f99 | 52c4effed855276d35b90dc357bd581d14bfd75a | /src/stories/tests/instagram.py | 96bcffcb491736598e73bc27ffdb579f62298cbc | [
"MIT"
] | permissive | unb-cic-esw/instagram-data-monitor | de293a623fa5dd0965f31e76c801dd969b5cc794 | cbf452a825d616a4ef8d9e8abfca5220fb14962f | refs/heads/master | 2021-04-12T09:41:59.358978 | 2018-06-26T21:49:53 | 2018-06-26T21:49:53 | 126,332,514 | 4 | 3 | MIT | 2018-06-26T03:18:54 | 2018-03-22T12:33:36 | Python | UTF-8 | Python | false | false | 13,013 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
import argparse
import codecs
import configparser
import errno
import glob
from operator import itemgetter
import json
import logging.config
import hashlib
import os
import re
import sys
import textwrap
import time
try:
from urllib.parse import urlparse
except ImportError... | [
"dougbraga00@hotmail.com"
] | dougbraga00@hotmail.com |
4725750128f922528f5d4962c5aa7b27ccb0c075 | 8c05e897bfc9416020cf83cd42b99ce779372d6a | /devops-1/api/app/modules/raidtype.py | 43f7967515f3851fb5b4eca465f8c2cd544fdcb7 | [] | no_license | Frank-liang/51dev | 747c82526e7ee3d7508c98a3d83aa36321dd0a53 | 82c81c06630b4c07706767b1b9cb407ebd8b30e2 | refs/heads/master | 2021-01-10T17:16:15.153997 | 2016-02-29T08:35:55 | 2016-02-29T08:35:55 | 52,777,156 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,193 | py | #!/usr/bin/env python
#coding:utf-8
from app.models import db, Raidtype
from app.utils import check_field_exists, process_result, check_order_by, check_limit, check_output_field, check_update_params
def create(**kwargs):
check_field_exists(Raidtype, kwargs)
record = Raidtype(**kwargs)
db.session.add(record... | [
"root@ldap1.zcool.com.cn"
] | root@ldap1.zcool.com.cn |
65657a516327ba66697ed267dffdd49d5923454f | 2372d876f11a85e604221dfa870fa36933ffaa98 | /split_dimensions.py | 12c4b384ceed61dd26264a6780ad39ff3ad5781f | [
"MIT"
] | permissive | jose-marquez89/power-bi-python-tools | f443564441935bba7947cc927e38d97d48e2f625 | e7dae2e3d310c2ca2b04087852129996ff213d89 | refs/heads/main | 2023-02-26T12:00:09.323940 | 2021-02-02T16:56:28 | 2021-02-02T16:56:28 | 335,348,544 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,302 | py | import pandas as pd
def split_dimension(fact: pd.DataFrame, id_name: str,
columns: list) -> pd.DataFrame:
"""
Breaks off a dimension from the fact table
"""
dimension = fact[columns].copy()
dimension = dimension.drop_duplicates()
dimension = dimension.reset_index(drop=True)... | [
"jlmarquez89@gmail.com"
] | jlmarquez89@gmail.com |
1c0f1e0e7306d6a858c5c0b2bd6f31cb6f54dd96 | f9a057d2ecf3c65e357a253d9eef3bdfdb67bce1 | /data_modeling_with_postgres/etl.py | 7d04412f2de2d0cd136852bb6fdea7e4ec68b941 | [] | no_license | deely3/udacity-data-engineering | aa42102208876d016266c29078e26413b75c8258 | f73983694f2bc02f4959d0db94f493422578e49f | refs/heads/main | 2023-09-02T11:14:02.964620 | 2021-11-21T14:47:45 | 2021-11-21T14:47:45 | 429,580,443 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,394 | py | import os
import glob
import psycopg2
import pandas as pd
from sql_queries import *
def process_song_file(cur, filepath):
"""
- Reads in song file data.
- Inserts song and artist records into the database.
"""
# open song file
df = pd.read_json(filepath, lines=True)
# insert song rec... | [
"noreply@github.com"
] | noreply@github.com |
c582667f996e027868058e93e1a465327d80843e | 1adf5e387cb4f503e3499acbe1ef590c1813e908 | /lickometeranalysis/graphAll.py | 5aac05cd6510f97cd195b3e0f9460ee7f1374cae | [
"MIT"
] | permissive | sixfleury/OperantBehaviorAnalysis-Python | 3be6387e15fb60006fe20819926f65c539348c5e | 5502219093f73fe7d73f4f1fbd3cddd583a1d952 | refs/heads/master | 2023-08-14T18:09:55.961101 | 2021-10-13T18:17:29 | 2021-10-13T18:17:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,292 | py | #!/usr/bin/env python3
import LickometerAnalysisKit
import glob
from sys import argv
from os import path
from tkinter import filedialog
from tkinter import * # noqa
def getFolderPath():
folder_selected = filedialog.askdirectory()
folderPath.set(folder_selected)
'''
This script will perform basic processing ... | [
"mitchell.spring@dartmouth.edu"
] | mitchell.spring@dartmouth.edu |
cf05722248e33fbf586bbb7ba4b878a007ce9a7c | 636faaed4beb4895167af387735dab71330aa14e | /members/migrations/0004_auto__add_tournament.py | 0512c331bf2da9b6fb36304a2db873d618059b57 | [] | no_license | ymcagodme/Judo-Tournament-Hoster | 88e44b04747b858b835f49423ffac5d049862790 | 584b180689f42bc327e88d56e8c25dc669530d16 | refs/heads/master | 2020-12-24T08:41:41.219387 | 2016-08-19T18:25:47 | 2016-08-19T18:25:47 | 4,021,481 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,056 | 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 model 'Tournament'
db.create_table('members_tournament', (
('id', self.gf('django.db.mo... | [
"ymcagodme@gmail.com"
] | ymcagodme@gmail.com |
2292b674d56303f1c405fe6e8fd757ff063bcd65 | 4e3c976773526fd610d64ffb83589bccfaee5e68 | /sponge-app/sponge-app-demo-service/sponge/sponge_demo_forms_library_args.py | bb2475d0c06d7040720b9ffa792fd6294790e641 | [
"Apache-2.0"
] | permissive | softelnet/sponge | 2313d2328953fcff49a002e727bb803757870627 | 7190f23ae888bbef49d0fbb85157444d6ea48bcd | refs/heads/master | 2022-10-28T16:19:55.619882 | 2021-09-16T19:50:08 | 2021-09-16T19:50:08 | 95,256,030 | 10 | 2 | Apache-2.0 | 2022-10-04T23:55:09 | 2017-06-23T20:58:49 | Java | UTF-8 | Python | false | false | 4,364 | py | """
Sponge Knowledge Base
Demo Forms - Library as action arguments
"""
class ArgLibraryForm(Action):
def onConfigure(self):
self.withLabel("Library (books as arguments)")
self.withArgs([
StringType("search").withNullable().withLabel("Search").withFeature("responsive", True),
... | [
"marcin.pas@softelnet.com"
] | marcin.pas@softelnet.com |
f0d75caf508473620fbb5ffb927433b8538c3649 | f223caf56eafb20c7a9c4575b9da7eff69f720b1 | /main.py | e9a04c88242cae148c9f70b38e0fc89ad68de60e | [] | no_license | hsulin0806/object_detection | a3276614ce1ca7b1d827c00c23f27241ce4f828a | 55c13d6ad368fcb82c8c3f251c0d00f0a4adc55b | refs/heads/master | 2020-08-05T09:50:11.148158 | 2019-04-16T04:57:55 | 2019-04-16T04:57:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,407 | py | from __future__ import print_function
import sys
import os
from argparse import ArgumentParser
import cv2
import time
import logging as log
import numpy as np
import io
import detect as dt
from openvino.inference_engine import IENetwork, IEPlugin
from pathlib import Path
sys.path.insert(0, str(Path().resolve().parent.p... | [
"ami.avirup17@gmail.com"
] | ami.avirup17@gmail.com |
eee84b835b4bb691bc922942e4d6e792138a170e | 18fa0ad57cd9c26bc2622ead61b88c81e017e2e8 | /kits/task_master.py | 3452c834c4cdd786cd94314026e08537c0677050 | [] | no_license | weihhh/ECG_pro | 45da18fad4709009cd4766a870fac7c5d5514a92 | 1e013cbb7352ad896661412f036fd9c6242a6001 | refs/heads/master | 2021-05-04T13:52:17.259815 | 2018-07-20T02:39:16 | 2018-07-20T02:39:16 | 120,323,445 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 1,361 | py | # task_master.py
import random, time, queue
from multiprocessing.managers import BaseManager
# 发送任务的队列:
task_queue = queue.Queue()
# 接收结果的队列:
result_queue = queue.Queue()
# 从BaseManager继承的QueueManager:
class QueueManager(BaseManager):
pass
def return_task_queue():
global task_queue
return task_queue
d... | [
"wz591757596@163.com"
] | wz591757596@163.com |
bd5cb6723d07b84cbcc223beb808ee07e3ee73f5 | a9e1220dbe8e2fda58144dbc3c1a8772c6066c20 | /pipeline_2.py | 5936b3253555e5d04bf9d0efe3266fcb411abb32 | [] | no_license | andypayne/mldc | dc569650da23dcdaeb5c3ee36e54fce2796ca076 | 9961bc73d9e8fc48a3cb893dd0d9b54eec99aed1 | refs/heads/master | 2020-03-22T02:38:53.396487 | 2018-09-19T19:50:19 | 2018-09-19T19:50:19 | 139,384,254 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,251 | py | from sklearn.pipeline import Pipeline
from sklearn.linear_model import LogisticRegression
from sklearn.multiclass import OneVsRestClassifier
from sklearn.model_selection import train_test_split
X_train, X_test, y_train, y_test = train_test_split(sample_df[['numeric']], pd.get_dummies(sample_df['label']), random_state=... | [
"andpayne@cisco.com"
] | andpayne@cisco.com |
a5b850970bcacd256bfd13be328ef449c548dc69 | 60972b7f8c1ff23fbc8f2710653c4a2e3ef2c627 | /posts.py | de22942f572ef1d97b34939db3af5d2c58e772c6 | [] | no_license | Gbillington1/flask-blog-practice | 2bb6c485c30d76f7dd91d2aa2604c63516aabf92 | f4af0cade26fd92139b8c3067f03badb5c6af419 | refs/heads/master | 2023-06-17T05:40:52.631609 | 2021-07-10T18:23:43 | 2021-07-10T18:23:43 | 384,752,336 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,365 | py | posts = [
{
'author': 'Graham Billington',
'title': 'My First Post!',
'content': [
'This is my first paragraph on my first post! Isn\'t this so cool! I don\'t really know what I\'m going to be talking about but I\'m still posting! On to the next paragraph.',
... | [
"graahamhbillington@gmail.com"
] | graahamhbillington@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.