blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 5 283 | content_id stringlengths 40 40 | detected_licenses listlengths 0 41 | license_type stringclasses 2
values | repo_name stringlengths 7 96 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 58
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 12.7k 662M ⌀ | star_events_count int64 0 35.5k | fork_events_count int64 0 20.6k | gha_license_id stringclasses 11
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 43
values | src_encoding stringclasses 9
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 7 5.88M | extension stringclasses 30
values | content stringlengths 7 5.88M | authors listlengths 1 1 | author stringlengths 0 73 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0d468ab5f005dc9434a16e44bdaa293e820314a5 | 59b3acec6c6a021528682573e478ced2794c6b03 | /Scripting_tutes_labs/Python Assignment/A2/Part A/WORKS.py | d7b1429acd24e86cd27457f2d7bd0b98d17e34d4 | [] | no_license | charlesluch/Code | f9ed52e5cfb45917baf35277cdf8da68e54332ea | a9d772d73ab40bd01266d7d833dbeab95797bf44 | refs/heads/master | 2021-10-09T01:41:48.815186 | 2018-12-20T02:59:15 | 2018-12-20T02:59:15 | 131,547,087 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,694 | py | #! usr/bin/env python3
# running from JSONDecodeError: Extra data, Attribute error, Expecting double quotes...
# we need services as a dictionary and flows as an array...
with open(realConfig, 'r') as c:
data = c.read().replace('\n','')
jConfig = json.dumps('"{}"'.format(data))
print(jConf... | [
"c_luchetti@hotmail.com"
] | c_luchetti@hotmail.com |
71bd675ad4473f0c69d41c815af1baea3a5524f6 | 1427d0409ea9d0b578890d9e8e01fd5d1df70bf4 | /components/loop.py | e80ff4d8272f2ee0de86f220c36beec9d7df1f35 | [
"MIT"
] | permissive | mradrianhh/PID-265DS | 2e3a1097928a16bf31c6b8c2fdcb82c454c3efbd | 963d2f3ce1402cf1600e21ed4e9bc2054dc39024 | refs/heads/main | 2023-08-06T11:03:19.120774 | 2021-10-04T22:17:27 | 2021-10-04T22:17:27 | 411,594,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,878 | py | from .actuator import Actuator
from .sensor import Sensor
class Loop(object):
__tag: str
__actuators: "dict[str, Actuator]"
__sensors: "dict[str, Sensor]"
__target_value: float = 0.0
__actual_value: float = 0.0
__error: float # target_value - actual_value
__propo... | [
"hansen.adrian.hardy@gmail.com"
] | hansen.adrian.hardy@gmail.com |
a908e07377adf924eff8803c3ecc541a1bbb1fb3 | c4ba4ac1c54dd31ac0dd2da9881a76adba2b8640 | /game1.py | 7ebe69909e16a6546b602919bb9b8207b8217ce9 | [] | no_license | sirishavemavarapu1/MyProject1 | 1dd2f76c672d92e1e81f6426691eef4883ed956e | 8aa263e467a88b65d5bee247e4f1eb841c9b02d3 | refs/heads/master | 2023-06-20T12:52:26.176798 | 2021-07-16T05:15:42 | 2021-07-16T05:15:42 | 386,189,814 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,468 | py | import turtle
import random
wn=turtle.Screen()
wn.title("First game")
wn.bgcolor("blue")
wn.setup(width=800,height=600)
#wn.tracer(0)
# tracer stops the window to update
score_a=0
score_b=0
#paddle A
paddle_a=turtle.Turtle()
paddle_a.speed(0)
paddle_a.shape("square")
paddle_a.color("white")
paddle_a.shapesize(stretch... | [
"sirishavemavarapu1@gmail.com"
] | sirishavemavarapu1@gmail.com |
725a87acfa6b9893392924065b343ae9ea341df9 | 7bf9b2aaed98c2b7c86b95c90f313983b0691fe9 | /pythonlib/amlrealtimeai/external/tensorflow/core/framework/iterator_pb2.py | aedc327b8d2350119283be7844be0d28138a1fa4 | [
"Apache-2.0",
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | Azure/aml-real-time-ai | c6b46fd8c7f368324344cf375aae59b213842cfc | 7c034be63119a59e91671d4ae401e041d8240751 | refs/heads/master | 2023-06-10T09:28:07.276953 | 2023-05-31T18:48:21 | 2023-05-31T18:48:21 | 131,752,395 | 151 | 47 | MIT | 2023-05-31T18:48:23 | 2018-05-01T19:08:55 | C# | UTF-8 | Python | false | true | 2,736 | py | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: tensorflow/core/framework/iterator.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf ... | [
"rarichar@microsoft.com"
] | rarichar@microsoft.com |
70186ad60d9b16a7751a346403b63c9323ac7cc7 | 00c1246152ab64a7fff54f5937111da7b183a341 | /yolo3/utils.py | 860e1e45bae011ff2938a89ef9594c1ae49b1aee | [] | no_license | alejandrobalderas/ObjectDetectionJetsonNano | 80cfc4cbf67e6b2839eab15b58af262846415c07 | d42d5ac082af2da38cce9e3cc7206e16868c1042 | refs/heads/master | 2022-11-27T15:36:34.442663 | 2020-03-30T09:33:15 | 2020-03-30T09:33:15 | 251,260,189 | 0 | 0 | null | 2022-11-22T02:42:23 | 2020-03-30T09:32:58 | Python | UTF-8 | Python | false | false | 4,210 | py | """Miscellaneous utility functions."""
import matplotlib.pyplot as plt
from functools import reduce
from PIL import Image
import numpy as np
from matplotlib.colors import rgb_to_hsv, hsv_to_rgb
def compose(*funcs):
"""Compose arbitrarily many functions, evaluated left to right.
Reference: https://mathieula... | [
"alejandro@hotmail.de"
] | alejandro@hotmail.de |
e20ffc086d056723ee99ecdb3a25ac016a38eee8 | bfda406cd58709f7ac633802203d133f87bab0a6 | /xmlparse.py | 26f9c83c38f6cb44b0f246084a3211984bd3e817 | [] | no_license | AkshayAgrawal1997/Floor-Plan | 8e3b2dcdee8e333fbe65d335b5ce45afeea0ef52 | 33df7f2b7fd033dcbee4d17c1e60b2973bd50c71 | refs/heads/master | 2021-09-24T03:40:27.405770 | 2018-10-02T20:28:36 | 2018-10-02T20:28:36 | 112,031,921 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 127 | py | import xml.etree.ElementTree as ET
tree = ET.parse('sample.xml')
root = tree.getroot()
print root[1][3].text
print len(root[1]) | [
"ak.akshay.agrawal@gmail.com"
] | ak.akshay.agrawal@gmail.com |
b3c86a9f339858c77e142a9a3e97aa7df42aaa98 | 8860be2d991b21c4f25f3470750cad840138b080 | /remvBlank.py | 2c6f110bb6dc03f002c9d742a057c80cad602aee | [] | no_license | neeschal00/pythonscript | 791f2528ebadcf6b71dc537047794b3640b90b5d | 69fb2b7e93ea793688c76ca8e04da694961f10ba | refs/heads/main | 2023-01-11T17:49:11.721389 | 2022-12-29T14:08:01 | 2022-12-29T14:08:01 | 218,926,259 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,017 | py | # import pandas as pd
import os
import csv
import time
import sys
dir_path = sys.argv[1]
dir_file = os.getcwd()
'''
for files in os.listdir(dir_file):
# print(files)
if(files.endswith(".csv")):
df = pd.read_csv(files)
output_file = files.split(".csv")
output_file = output_file[0]+"1"+"... | [
"nischal06khatri@gmil.com"
] | nischal06khatri@gmil.com |
447c19a5107b03a7d4b4af3821ff647e0c6877bf | 296fdc87527328f428f4a500a18cdba4e8051d1a | /ETL_Project_Traffic_Data.py | 7e8571f699a9c748390bbb7947cd86a54cacc4e7 | [] | no_license | jimknopp2/jimknopp2.github.io | 9da0a60624d282924e8fb6a59df1af8f1fbcc1d9 | 7319eb74dcc27c5821f7ad5a9c69bdc906717b9c | refs/heads/master | 2022-11-30T15:58:17.243551 | 2020-08-04T00:48:05 | 2020-08-04T00:48:05 | 280,679,744 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,278 | py | #!/usr/bin/env python
# coding: utf-8
# In[19]:
import pandas as pd
# In[20]:
may2020_path = r"C:\Users\jimkn\Desktop\Trips_by_Distance_May_2020.csv"
May_2020_Travel = pd.read_csv(may2020_path)
May_2020_Travel = May_2020_Travel.drop(["State FIPS", "County FIPS", "Population Staying at Home", "Population Not Stay... | [
"noreply@github.com"
] | noreply@github.com |
deae2c718014d5c62b18f3b9e662a51d775816b0 | 016af41dca1629ed042005066c7f0dfc0f5690ee | /LcvSeach/wsgi.py | c17746d92d5e4968a52e851804e66ba10b10a1e6 | [] | no_license | Coder-Chandler/SearchEngine | 5b193594f155165a498efe59a01288e8c46aba50 | 88308442147b22c67329b7de6b4835cf56da2cfa | refs/heads/master | 2020-12-07T13:33:15.910860 | 2017-10-25T17:55:34 | 2017-10-25T17:55:34 | 95,567,710 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 394 | py | """
WSGI config for LcvSeach 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.setdefault("DJANGO_SET... | [
"ysiwgtus@gmail.com"
] | ysiwgtus@gmail.com |
329b21243aab082238f73114c3a49a0339ffa20e | 7e59030ba3cb4461b95102c443e0d7803ec4b03a | /templates/skeleton.py | 4630d3741cbcc9f45d0231da256711c3f39bce4d | [] | no_license | vsmayberry/.vim | 3ce65ccd87e619ceb6136589a2aaf7b3b3be1e70 | 4fd3798fbea36beab791a6bc976831e49aa33c31 | refs/heads/master | 2021-01-18T15:04:12.926365 | 2018-08-25T03:13:59 | 2018-08-25T03:13:59 | 15,790,383 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 72 | py | #!/usr/bin/env python3
#author Virgil Mayberry
#Created taimilolotonga
| [
"vsmayberry@gmail.com"
] | vsmayberry@gmail.com |
41c3785835279daff1c3c4c7f5c68c4bdd5231fd | 5d21c218fbc95bfd9be45f8ca87d3b052820208a | /bin/django-admin.py | 3cade6c78c2f734b4e0106e01a1c37c2e5988cca | [] | no_license | the-breanne/S2-backend | 10bda0c1776a4a56e7888659544279ed962814af | 9fb3ea6cca16b1c999b235ba26c1749cebca3ece | refs/heads/master | 2023-09-05T08:56:03.484042 | 2021-11-20T02:07:33 | 2021-11-20T02:07:33 | 429,977,884 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 145 | py | #!/Users/breanne/vue_env/bin/python3.8
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| [
"breannebeutler@unomaha.edu"
] | breannebeutler@unomaha.edu |
7a6075aacbec7cc6a15f3906fd25a51906a263ab | 038c73ff79d5276f327b717ae718ca3168eca920 | /Adaptive_Python/lesson1/task5/task.py | 137472f3ef79b9ac32f812b0a7fb62d62b68ec18 | [] | no_license | noahholley/python_problems | 9b7fa63fdda328ac7ef779caafc9c5bf6eb8aac3 | 0dcd88e46d37f69e83ded8d9f641fe77747cff4a | refs/heads/master | 2021-07-05T12:25:52.139669 | 2017-09-26T21:50:51 | 2017-09-26T21:50:51 | 104,807,206 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 389 | py | """Transform the symbol into uppercase.
Input data
A single symbol.
Output data
If the entered symbol is a lowercase letter of the Latin alphabet, output the same uppercase letter. Otherwise, output the symbol that was entered.
Sample Input:
b
Sample Output:
B
Memory limit: 256 Mb
Time limit: 1s"""
data = inpu... | [
"qlinholley@gmail.com"
] | qlinholley@gmail.com |
2d27e1435dbaa00e56a153b88d9dae978c026ef7 | 6c1c5ebe4c27663030745cf1b7a6d520bb1e6837 | /api/models.py | e4b65ac632566e0b3ab62bdaba5ec6ae899e4fe9 | [] | no_license | bryanmarthin/django-wishlist | 7160a0cbd9078b2a1e41f4ab07a20726d1ea4069 | f7a9d05428170d6d4447347a793ae6973a3b25f6 | refs/heads/master | 2020-04-09T18:35:20.885703 | 2015-09-12T14:18:49 | 2015-09-12T14:18:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 243 | py | from django.db import models
class Post(models.Model):
class Meta:
db_table = 'Post'
user = models.CharField(max_length=20)
created_at = models.DateTimeField(auto_now_add=True)
text = models.CharField(max_length=255) | [
"hans.tunggajaya@gmail.com"
] | hans.tunggajaya@gmail.com |
548f33186530791f420e12f279eb3364fff4fcb4 | 1777b71c9c89962f379b8d78e8d459073c78c9ad | /simple_smartsheet/models/__init__.py | bc1b7ccb72f238acbeeefb00f5b0f7f176a51a41 | [
"MIT"
] | permissive | dmfigol/simple-smartsheet | b7ff2c308715905f04784dee185a77944d20c2fa | 0b1010d850dcde4a2f85360932357f7691917936 | refs/heads/master | 2023-01-10T06:28:47.553873 | 2020-02-06T18:44:44 | 2020-02-06T18:44:44 | 151,758,014 | 23 | 10 | MIT | 2023-01-05T17:25:52 | 2018-10-05T17:48:43 | Python | UTF-8 | Python | false | false | 233 | py | from .cell import Cell
from .column import Column, ColumnType
from .sheet import Sheet # sheet must be before row
from .row import Row
from .report import Report
__all__ = ("Cell", "Column", "ColumnType", "Row", "Sheet", "Report")
| [
"git@dmfigol.me"
] | git@dmfigol.me |
b5d8f3348648bca0c54f117af3228da951fb8758 | dfab6798ece135946aebb08f93f162c37dd51791 | /core/luban/ui/validators.py | 31b61b12375a243e0938e106ef4399a516d929a0 | [] | no_license | yxqd/luban | 405f5f7dcf09015d214079fe7e23d644332be069 | 00f699d15c572c8bf160516d582fa37f84ac2023 | refs/heads/master | 2020-03-20T23:08:45.153471 | 2012-05-18T14:52:43 | 2012-05-18T14:52:43 | 137,831,650 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 725 | py | # -*- Python -*-
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# Jiao Lin
# California Institute of Technology
# (C) 2006-2011 All Rights Reserved
#
# {LicenseText}
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~... | [
"linjiao@caltech.edu"
] | linjiao@caltech.edu |
2800d80fee09d926e89785da682ec6f1ce2dcc75 | ad8566dace0e4ab4b419b1bb5bc055b095adce72 | /ics/migrations/0060_goal_rank.py | adc9e668bd368dc757f119d3d7750b5a752f5cdb | [] | no_license | mayanb/wafflecone | 6c844c4c908f7c9b8e41d0d42faeefbfa8b9573e | fcd45a3b745232e52af3bdffa3fab25f13c7464d | refs/heads/staging | 2022-12-14T03:34:14.618001 | 2018-09-26T21:35:52 | 2018-09-26T21:35:52 | 74,408,398 | 1 | 0 | null | 2022-12-08T00:46:05 | 2016-11-21T21:40:59 | Python | UTF-8 | Python | false | false | 487 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2017-11-27 22:27
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('ics', '0059_account_contact_inventoryunit_order_orderinventoryunit'),
]
operations = ... | [
"ishita@usepolymer.com"
] | ishita@usepolymer.com |
17b4f6c8cce0c08486364ca7eb83ca1335cd18d2 | 1a3ba2a78670817c59965a1bc35c98718b0b5e44 | /baseCtrlElements/listBoxes.py | 5e3b2db9812507d9c28a85be7ac72f0acd4aed50 | [] | no_license | yulits/MywxPythonDemo | 01fc24f3e9bd95c19dad6c84cd2b2ff389d9e854 | 4f59e1fedca6615b4c893f575edbad73fafc8d91 | refs/heads/master | 2020-04-03T01:29:55.504279 | 2016-07-09T07:41:59 | 2016-07-09T07:41:59 | 59,916,853 | 0 | 0 | null | 2016-07-09T07:42:00 | 2016-05-28T22:24:23 | Python | UTF-8 | Python | false | false | 764 | py | import wx
class ListBoxFrame(wx.Frame):
def __init__(self):
wx.Frame.__init__(self, None, -1, 'List Box Example',
size=(250, 200))
panel = wx.Panel(self, -1)
sampleList = ['zero', 'one', 'two', 'three', 'four', 'five',
'six', 'seven', 'eight', 'nine', ... | [
"yulits@gmail.com"
] | yulits@gmail.com |
64f9867794ce1730c12b0b60310dfcf9a7a39910 | c0093a13696fd7df81ae4e35bbfbe840d3c1ba42 | /pages/views.py | d278f0690d59836ed056f9fb2becdd9b6767e2ea | [] | no_license | Isaac3N/docker-hello | 471462cb0fe7f64c1ccafe464c43ea9415f56639 | 6eef23cf62a9aa62935848ef9faf6685f343d5ee | refs/heads/master | 2023-08-15T14:12:58.500883 | 2021-09-27T20:58:16 | 2021-09-27T20:58:16 | 410,943,011 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 171 | py | from django.shortcuts import render
from django.http import HttpResponse
# Create your views here.
def home_page_view(request):
return HttpResponse('Hello, World!') | [
"theisaac3n@gmail.com"
] | theisaac3n@gmail.com |
051d123e789c4e85957c79b6a9586465d5c55a92 | ddd5314a6c4f6b299adf65b88d1547e387c67aea | /py/fm_config.py | 7591659307262a7f4c1b791381c3f19cf4edbfc7 | [
"Apache-2.0"
] | permissive | colinsongf/tensorflow_ffm | 4d5ac52ca1f4c9232c3adb3b8e41b31792f4cb01 | f2bcba26130df1bbd6f9a67da3b609e192bc341a | refs/heads/master | 2021-01-17T18:15:08.127839 | 2016-09-18T22:26:46 | 2016-09-18T22:26:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 398 | py | class FmConfig:
def __init__(self):
self.batch_size = 10000
self.factor_num = 10
self.epoch_num = 5
self.init_value_range = 0.0001
self.factor_lambda = 1
self.bias_lambda = 1
self.vocabulary_size = 500000
self.thread_num = 2
self.train_file = [... | [
"mianwei@yahoo-inc.com"
] | mianwei@yahoo-inc.com |
2b196d0ecd4f96f2df0d827a47041689c7abca0e | fa21a32c71a6a68a612c66278b5efe353dc89eab | /automate_speeds.py | b6dffa09b63a5e299146c1df2b1f7af253c26e78 | [] | no_license | emorysmithis/ND-Crowd-Simulator | 8fb88ed5498667b1d0a283ad62fbf81ae7ac9dbb | 8a6e4019d68ceb7be9f8b51a7f64947ac5e868a5 | refs/heads/main | 2023-05-01T08:35:28.193664 | 2021-05-12T18:30:49 | 2021-05-12T18:30:49 | 350,157,800 | 0 | 0 | null | 2021-05-12T14:39:50 | 2021-03-22T00:33:19 | Python | UTF-8 | Python | false | false | 2,171 | py | #!/usr/bin/env python3
import os
import sys
import multiprocessing as mp
from datetime import datetime
def worker(input_list):
command = './simulation.py ' + ' '.join(input_list)
print(command)
os.system(command)
print(f'Finished: {command}')
if __name__ == '__main__':
# Get start time
time... | [
"cyoun@ndedu"
] | cyoun@ndedu |
464b5faef31e5fd150ec7d665f812f62d8541bb2 | 1fbeda7f33d243aaeff49fab66a748c30169803a | /OpenTDA/tda/plotting.py | 57042a80546bd319cb0d4ff61c6066cf2fe80e52 | [
"MIT",
"Apache-2.0"
] | permissive | iammosespaulr/TDA-tutorial | 5c37a46f352712f4a6f5122240fb7fb099a0cd02 | 657873e95a6f7024406c2c1f2ce58718220dcd66 | refs/heads/master | 2022-11-13T08:10:36.391940 | 2020-07-05T19:49:56 | 2020-07-05T19:49:56 | 267,326,719 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,601 | py | import matplotlib.pyplot as plt
def drawComplex(data, ph, axes=[-6, 8, -6, 6]):
plt.clf()
plt.axis(axes) # axes = [x1, x2, y1, y2]
plt.scatter(data[:, 0], data[:, 1]) # plotting just for clarity
for i, txt in enumerate(data):
plt.annotate(i, (data[i][0] + 0.05, data[i][1])) # add labels
... | [
"iammosespaulr@gmail.com"
] | iammosespaulr@gmail.com |
2188924ba0799b40255131ca820e033d736adf08 | 79e6603f79ffbb2721c8ecbdeed294ab3b23e3c7 | /authapp/migrations/0008_alter_shopuser_activation_key_expires.py | 47764f3ae2e87696a53cc0e84650970491d77726 | [] | no_license | MaksShI/Django_2 | 185ae4759bd90f627a0ad9ff39d690487f2c0b26 | 78f2ebdbfb047bc97eb8fd3acb6734dd856ea33f | refs/heads/main | 2023-07-13T09:51:50.804403 | 2021-08-13T08:53:20 | 2021-08-13T08:53:20 | 391,163,141 | 0 | 0 | null | 2021-08-24T11:49:57 | 2021-07-30T18:52:09 | Python | UTF-8 | Python | false | false | 537 | py | # Generated by Django 3.2.3 on 2021-08-03 14:18
import datetime
from django.db import migrations, models
from django.utils.timezone import utc
class Migration(migrations.Migration):
dependencies = [
('authapp', '0007_alter_shopuser_activation_key_expires'),
]
operations = [
migrations.A... | [
"76102358+MaksShI@users.noreply.github.com"
] | 76102358+MaksShI@users.noreply.github.com |
c51ffa2ab012e68f531724e0e4652c2150f831a5 | 55a273347cb103fe2b2704cb9653956956d0dd34 | /code/tmp_rtrip/chunk.py | dbe368c93d55a80a28e671121ea0264ecde55a31 | [
"MIT"
] | permissive | emilyemorehouse/ast-and-me | 4af1bc74fc967ea69ac1aed92664f6428acabe6a | 3f58117512e125e1ecbe3c72f2f0d26adb80b7b3 | refs/heads/master | 2022-11-18T03:50:36.505882 | 2018-05-12T17:53:44 | 2018-05-12T17:53:44 | 115,035,148 | 25 | 1 | MIT | 2022-11-04T11:36:43 | 2017-12-21T18:27:19 | Python | UTF-8 | Python | false | false | 5,303 | py | """Simple class to read IFF chunks.
An IFF chunk (used in formats such as AIFF, TIFF, RMFF (RealMedia File
Format)) has the following structure:
+----------------+
| ID (4 bytes) |
+----------------+
| size (4 bytes) |
+----------------+
| data |
| ... |
+----------------+
The ID is a 4-byte s... | [
"emily@cuttlesoft.com"
] | emily@cuttlesoft.com |
6e9779222154c036199119c55cd1502ab2165523 | b42c827e57b6c24251dedf0894ba3a97eb876b7c | /sub_mod.py | c30c96e5c0f1c2426d4e872035dc146293871810 | [] | no_license | Aswin-Sureshumar/Python-Programs | 77f20bacefc32307b60a00e9345cae95dc14185f | 0387eb732e1b43995d161b5088b49b1155405411 | refs/heads/master | 2022-12-22T11:53:04.864017 | 2020-09-22T10:23:57 | 2020-09-22T10:23:57 | 283,938,006 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 32 | py | def sub(a,b):
c=a-b
print(c) | [
"noreply@github.com"
] | noreply@github.com |
c620965011fd4bf19b37d00c6524872b433969c7 | 39d4504ec1da8975fac526d6801b94f4348b6b61 | /research/gan/mnist/conditional_eval_test.py | 178f7b1d87d644748c4bc0bdacae595263d7a2b3 | [
"Apache-2.0"
] | permissive | vincentcheny/models | fe0ff5888e6ee00a0d4fa5ee14154acdbeebe7ad | afb1a59fc1bc792ac72d1a3e22e2469020529788 | refs/heads/master | 2020-07-23T21:38:24.559521 | 2019-11-15T07:50:11 | 2019-11-15T07:50:11 | 207,712,649 | 1 | 0 | Apache-2.0 | 2019-09-11T03:12:31 | 2019-09-11T03:12:31 | null | UTF-8 | Python | false | false | 1,124 | py | # Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by... | [
"1155107977@link.cuhk.edu.hk"
] | 1155107977@link.cuhk.edu.hk |
f90693fda41d7401e673b3cd156e04fc78d3b2d1 | 964c0732b647cde0aca6aa0388a0fd0f2c1fea11 | /code/proposed_model/nmf.py | 457c74ed82249dd63f1ba99d6d0631c488e5911b | [
"Apache-2.0"
] | permissive | levelupai/short_text_clustering | c97daf1dac3bbb26c5c2649b2b02e9c5a2344ed2 | d83f4f429890dd8d9d58e8cbdf7bace902c4ad6b | refs/heads/master | 2020-03-22T19:13:07.228547 | 2018-07-11T09:56:23 | 2018-07-11T09:56:23 | 140,513,759 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,345 | py | import pickle
import numpy
import random
lines = open('word_ids.py', 'r').readline()
word_to_id = eval(lines)
components = None
with open('components_dump.txt', 'br') as c:
components = pickle.load(c)
windows_sum = sum(components[0]) # windows
not_windows_sum = sum(components[1]) # not windows
# recall = probab... | [
"jingchunzhen@126.com"
] | jingchunzhen@126.com |
39edc3c8c2848e87569b806d2de9143a305761da | dc7dc1ab85403a4467044d4c0c936c17fff5225a | /fstmerge/examples/SpamBayes/rev3103-3133/spambayes/scripts/sb_filter.py | a91dff7fc51be65830e018aa17a5c5e3f14b2bd7 | [] | no_license | RoDaniel/featurehouse | d2dcb5f896bbce2c5154d0ba5622a908db4c5d99 | df89ce54ddadfba742508aa2ff3ba919a4a598dc | refs/heads/master | 2020-12-25T13:45:44.511719 | 2012-01-20T17:43:15 | 2012-01-20T17:43:15 | 1,919,462 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,846 | py | """Usage: %(program)s [options] [filenames]
Options can one or more of:
-h
show usage and exit
-v
show version and exit
-x
show some usage examples and exit
-d DBFILE
use database in DBFILE
-p PICKLEFILE
use pickle (instead of database) in PICKLEFILE
-n
... | [
"joliebig"
] | joliebig |
6f3af3a3f0b28b4263897e9c29037aa864e04765 | 5f226f0fa3251d69e7e1e51362f9fee3c66e2090 | /mediacenterRecommend/mediacenterRecommend/wsgi.py | d5a8553b625e7f18927f29babd3f2f7e40c96673 | [] | no_license | nekketsu2010/mediacenterRecommend | f592a36447c10ac11118b51e1c63ba7478924f5a | d69c79be3644e33e9ae71702ff094a939df7f638 | refs/heads/master | 2020-04-11T12:25:25.708479 | 2018-12-14T12:06:26 | 2018-12-14T12:06:26 | 161,779,667 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 417 | py | """
WSGI config for mediacenterRecommend 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/2.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault(... | [
"gonzaress0312@gmail.com"
] | gonzaress0312@gmail.com |
2b680068fcd0bf94c0332516bfbc1916dd2a4a49 | 3b6bf73a68b77f330d0ffb01d3e5e8fe11a89c30 | /common-lib/GriddedData.py | f9f307fe4d73c6da6f23e3aed5a7d6ab843a9fd6 | [] | no_license | auraoupa/diags-CMEMS-on-occigen | 37e47fb5b663c09c6eeb7c04e0d423b72318d09e | 01f9d3f9d0d20bbcecd8adfcc23f866453133c94 | refs/heads/master | 2022-03-30T18:40:49.259651 | 2020-02-19T15:15:26 | 2020-02-19T15:15:26 | 217,243,549 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,881 | py | #!/usr/bin/env python
#=======================================================================
"""GriddedData.py
Define grid object and interpolation tools for working with gridded data.
Some basic plotting facility is also provided.
"""
#=======================================================================
import... | [
"auraoupa@gmail.com"
] | auraoupa@gmail.com |
20e8763d4c550eaf3adde13df6802f816d95608e | d6806adbc43ce2b53b00e4c99f196fb325db0bda | /mailprinter/core/config.py | 20599e6893a76dcc2d9eedf9fd2fde23f622e7e3 | [
"MIT"
] | permissive | AbhyudayaSharma/MailPrinter | b4e5e4f78052e11e344aa85f8c2115d014a44646 | d80c4a60f82b62f832af95f7b0e4fc025897fbd2 | refs/heads/master | 2020-04-12T02:17:22.408509 | 2019-03-13T12:10:22 | 2019-03-13T12:10:22 | 162,244,471 | 6 | 2 | null | null | null | null | UTF-8 | Python | false | false | 277 | py | import json
import sys
def get_config():
with open('config.json', 'r') as f:
try:
data = json.load(f)
return data
except Exception:
print('Invalid configuration detected!', file=sys.stderr)
sys.exit(-1)
| [
"sharmaabhyudaya@gmail.com"
] | sharmaabhyudaya@gmail.com |
fcb2204485c65ca6cb13e7aaa58aaeec0ba17c73 | cceba07bf7c2446f49037560fb27350e11480844 | /classes/herencia_multiple/triangulo.py | 7d0b7e305f7cf4ec0563c8e5f838216a06f27bc2 | [] | no_license | AcxelMorales/Learn-Python | a1761ba1a218fe13919bd6119f7801d1c0463812 | 83cb820ae9db4a18f885a56dcc3a4ec5ac71b0f6 | refs/heads/master | 2022-10-23T23:04:27.768234 | 2020-06-10T19:18:45 | 2020-06-10T19:18:45 | 270,060,397 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 655 | py | from classes.herencia_multiple.color import Color
from classes.herencia_multiple.figura_geo import FiguraGeometrica
class Triangulo(FiguraGeometrica, Color):
def __init__(self, base, altura, color):
self.__base = base
self.__altura = altura
FiguraGeometrica.__init__(self, base, altura)
... | [
"acxelmorales97@gmail.com"
] | acxelmorales97@gmail.com |
e214d27909581df309eb841f8dc0101a45ec01f0 | 3f73663c0949cab0d840de2e3f001cb98c236ee5 | /30-Days-of-Code/day-06.py | 4eef100d0b7fc5299962c9d925137ebbfadb82b0 | [] | no_license | aditya2082/HackerRank-Solution-in-Python | 0dcd231a5b5fcb1174039b484a58ebb94871ef0b | bef64ad8d342d32e23190ed15d0a4beab9e450cc | refs/heads/master | 2022-06-29T09:30:38.776469 | 2020-05-13T22:25:33 | 2020-05-13T22:25:33 | 263,752,680 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 683 | py | """
Task
Given a string, S, of length N that is indexed from 0 to N-1, print its even-indexed and odd-indexed characters as 2 space-separated
strings on a single line (see the Sample below for more detail).
Note: 0 is considered to be an even index.
Input Format
The first line contains an integer, T (the number of t... | [
"noreply@github.com"
] | noreply@github.com |
144fa1cbba693de8b826e0041cd05a98c94b0874 | 4ee1d690aee51b13091cb2397bcad8254da446f1 | /fontproperty.py | 498efd5145b694ca01b410ec7c0490554f4d5ad7 | [] | no_license | xyl576807077/BackgroundRemove | 4a80752e09d6e3791f22e726cd4eef0154ec1216 | c6df04e764b3fd172caf89a90e53e1da62c077a7 | refs/heads/master | 2020-03-09T23:06:35.023744 | 2018-05-16T02:52:52 | 2018-05-16T02:52:52 | 129,051,132 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 620 | py | from PIL import ImageFont, Image
import json
import numpy
class Fontproperty:
def __init__(self, simplifychinese, traditionchinese,english,symbol):
with open(simplifychinese, 'r') as f:
self.simplifychinese = json.load(f)
with open(traditionchinese, 'r') as f:
... | [
"xyl576807077@gmail.com"
] | xyl576807077@gmail.com |
5f29564bb01514fd2cfc87dcb2dc4271c041b9b9 | f6f53f6f818e3c6be42ef801348b095e86e27669 | /Tutorial 24/classes_with_methods.py | 20cc17e4a0f056a553190f72a924f11e02bab7fd | [] | no_license | Loliloltrop/YouTube | f6b3cccf8c8fbcd699e0ff21225c411803818310 | caccbb61975ec075429c87963708452548281c31 | refs/heads/master | 2023-06-18T17:27:26.514556 | 2021-07-17T15:36:20 | 2021-07-17T15:36:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 499 | py | class student:
def __init__(self,name,grade,gpa):
self.name = name
self.grade = grade
self.gpa = gpa
def honors(self):
if (self.gpa >= 4.0):
return "Highest Honors"
elif (self.gpa >= 3.75):
return "High Honors"
elif (self.gpa >= 3.5):
... | [
"jka83321@gmail.com"
] | jka83321@gmail.com |
ab7c4c3236c6145f24bd63e0157741f814de1832 | 6c14c1ed66e14fb86a01d87265f45ff0056e5b10 | /python/lsst/ctrl/stats/records/generic.py | 7e63c1ad9bf898a539ea22a75bb53ca063574f09 | [] | no_license | jonathansick-shadow/ctrl_stats | ba345f71a3e6df6b4b44cac9cb67bb86c25bfe52 | 88c633477651039cb18a9bf5c30316b8545c4bcd | refs/heads/master | 2021-01-12T12:02:59.321515 | 2016-02-02T19:23:27 | 2016-02-02T19:23:27 | 45,875,277 | 0 | 0 | null | 2015-11-09T23:59:16 | 2015-11-09T23:59:16 | null | UTF-8 | Python | false | false | 1,275 | py | #
# LSST Data Management System
# Copyright 2008-2012 LSST Corporation.
#
# This product includes software developed by the
# LSST Project (http://www.lsst.org/).
#
# This program 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 ... | [
"srp@ncsa.illinois.edu"
] | srp@ncsa.illinois.edu |
5bd49bf0df1d788a908f29a26c2da3822e667908 | f3094f80d18015dc84f2da56cd0903bdfd04e9cc | /workouts/plans_api.py | 2debd6da72fe7cabf9950cb52d010c5c05cd9fd4 | [] | no_license | RDK90/lift_app | a18fb572bad6c0c121f168c588ac2ddfb60f7de8 | 6d44cd53861b516b1cbcfec28f4dd6cfefff4326 | refs/heads/development | 2021-06-18T20:00:28.653254 | 2021-03-21T17:45:07 | 2021-03-21T17:45:07 | 184,144,218 | 1 | 0 | null | 2021-03-18T18:32:44 | 2019-04-29T21:06:08 | Python | UTF-8 | Python | false | false | 2,700 | py | from rest_framework import status
from rest_framework.decorators import api_view
from rest_framework.response import Response
from rest_framework.views import APIView
from workouts.api_support import *
from .models import Profile, PlanVersionTwo, Plan
from .serializers import PlanSerializer
@api_view(['GET'])
def a... | [
"rory.kavanagh@ucdconnect.ie"
] | rory.kavanagh@ucdconnect.ie |
49e906ecd28d07f5e8286c16fd8a21a5e83f2e9b | 4c8c618535998d5aba5bdd365a95fc94aa8a90b9 | /twitchanalysis/__init__.py | 2302d36eb1c8e934f2389be70cef46e705f06f27 | [
"MIT"
] | permissive | Muddy91/TwitchAnalysis | d4429a5ee70cd7a76ceb9a932f9181225fe775f8 | c5b61412928e2e92b5b41a5a4d8e1fca54d3365a | refs/heads/master | 2020-03-27T11:10:23.590654 | 2017-11-28T02:22:07 | 2017-11-28T02:22:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23 | py | __all__ = [
'main'
]
| [
"f.bredmar@gmail.com"
] | f.bredmar@gmail.com |
52103ab2e3d54d3f7803764e783d2d6f99f5ea25 | 11cef88c061c5e94bb135a981aa74f674c17377d | /crash-course/unit10/exception/alice.py | fd47bc40f7785ac5da27c0d4feab9fad2a4f9010 | [] | no_license | aqing1987/python101 | 77f1a1d405f38aeaeff3ad469277ba79e11b5b96 | 534afe55ed4447f63bc625cc17a6832a46b19f56 | refs/heads/master | 2020-09-17T01:57:18.008387 | 2020-08-10T13:18:04 | 2020-08-10T13:18:04 | 223,954,062 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 96 | py | filename = 'alice1.txt' # not exist
with open(filename) as f_obj:
contents = f_obj.read()
| [
"jingsi.chen@qq.com"
] | jingsi.chen@qq.com |
2cd727d2644671964201a7611979c86d6ff66adf | ad113ffed76e72ed0a881a7a6d6a74ea9021e5bf | /compare.py | 74efd55a7fb781291d78599eebebe9112337dc54 | [] | no_license | biletboh/bitexchange | 03c0bfc04e2f103928c173f014a75b6ceea0def9 | 8d541d6bb82f5e3ff4c71cb65b609503ba6b9417 | refs/heads/master | 2021-01-22T10:46:46.717291 | 2017-05-30T14:43:37 | 2017-05-30T14:43:37 | 92,656,591 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,907 | py | import time
def compare_exchange(tradeclient, tradeclient2, bitfinex, exmo):
""" Compare exchange rates at bitfinex and ___
Buy bitcoins at the exchange with lower rates.
Sell bitcoins at the exchange with higher rates.
"""
# Check if the difference between rates is higher than 1.5%
... | [
"biletskyboh@gmail.com"
] | biletskyboh@gmail.com |
f2245457405d0ab361d32a4bab82482856388e47 | bdd02d756c4ea770b4599ef9aa3292ee419acf35 | /logistic_regression.py | cadd18e7ca6e08905ce7aa764e756130fcae72b8 | [] | no_license | Jjrex8988/Python_Project_DS_Logistic_Regression_Classification | e8d1d5f6d6d13da8696b337152e9610117459486 | c48c1288fe91e6018566ddc56552852f205da94a | refs/heads/master | 2023-05-08T20:17:00.832817 | 2021-06-03T13:22:30 | 2021-06-03T13:22:30 | 373,514,890 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,170 | py | # Logistic Regression
# Importing the libraries
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
# Importing the dataset
dataset = pd.read_csv('Social_Network_Ads.csv')
X = dataset.iloc[:, :-1].values
y = dataset.iloc[:, -1].values
# Splitting the dataset into the Training set and Test set
fr... | [
"jjrex8988@gmail.com"
] | jjrex8988@gmail.com |
a6f4a9ee2d2739446d5dcbb227234a4968947e70 | 5997170436ca5194798a3d439aaa3efd3315e4cf | /MedDonate/MedicalDonation/migrations/0001_initial.py | 40be556ff5c6d754bb4b403122ded9700d5c1d21 | [] | no_license | khush611/MedDonate | d6e327ce40e403e0c5c2dcad7514aa823b3d7308 | 14a67a5a860a25fb617c31ccd65a6a12b23b1508 | refs/heads/master | 2020-04-06T12:46:50.339471 | 2018-11-12T09:05:42 | 2018-11-12T09:05:42 | 157,470,339 | 0 | 0 | null | 2018-11-14T01:18:12 | 2018-11-14T01:18:12 | null | UTF-8 | Python | false | false | 2,033 | py | # Generated by Django 2.1.2 on 2018-11-10 08:56
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Collector',
fields=[
('id', models.AutoFiel... | [
"shubham37@outlook.com"
] | shubham37@outlook.com |
53fbaa98a2fa8762b4331d9287ca48ffecc9af8a | 2eaecdb1ed42170463993b8b2285296c5ef2231d | /apps/declaraciontestigo/forms.py | e91d599b1d938015cd79ed8379cab26b2fd135c4 | [] | no_license | ivanfdaza/tribunaleclesiasticoIIS | 9639fc66a2c99baa45b8276f4a1e035bdf294e2e | acb164ab8464b71d0461acf03bdd5e3386b57893 | refs/heads/master | 2022-11-21T10:32:14.925326 | 2020-07-23T16:21:26 | 2020-07-23T16:21:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,284 | py | from django import forms
from django.forms import ClearableFileInput
from apps.declaraciontestigo.models import DeclaracionTestigo
class CustomClearableFileInput(ClearableFileInput):
template_with_clear = '<br> <label for="%(clear_checkbox_id)s">%(clear_checkbox_label)s</label> %(clear)s'
class DeclaracionTes... | [
"you@example.com"
] | you@example.com |
1071e0a432e040c2ffbd0f2afeffdd349b12ae0c | 7b52e887588f8ff050d5f5a9174cb397d8a3f5e5 | /odom_scooter/razor_imu_9dof/nodes/imu_node.py | c68e7f55c2bdb27e129022a419dffbc72fd813e7 | [] | no_license | RajathSwaroop/Autonomous-Scooter | d57d3f87b107924189051de52ca32d0de7a11984 | 9958293bab33b2f19169d0132e3f3a0e5ed2e0be | refs/heads/master | 2021-08-26T06:44:08.401345 | 2017-11-22T00:41:12 | 2017-11-22T00:41:12 | 111,488,657 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,919 | py | #!/usr/bin/env python
# Copyright (c) 2012, Tang Tiong Yew
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright
# notice, t... | [
"noreply@github.com"
] | noreply@github.com |
50c1da7e80d158879591350990e06900b4c06536 | a90ba4acf951e0f26e625bb52eeba52424b2604f | /Test126/_______test_logon.py | 641676382843377a4e18b8f41ceaee1d5a4f5cdc | [] | no_license | ihtwang/test | 88c340c93da35b41dc249b367081ebb9c74c8640 | bdf8dc80183886a0165e79571f95d50f96099d83 | refs/heads/master | 2021-05-04T19:06:35.507378 | 2018-03-23T13:45:49 | 2018-03-23T13:45:49 | 106,656,978 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,854 | py | # -*- coding: utf-8 -*-
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support.ui import Select
from selenium.common.exceptions import NoSuchElementException
from selenium.common.exceptions import NoAlertPresentException... | [
"iht_wang@126.com"
] | iht_wang@126.com |
bea8903df605768e2ecbcbbb21b445fb05b897d0 | 7aadd04d68c16d8e019cf1ae5e3a7a794987a7ab | /Lesson 2/script_7.py | 77f905314909dc41dad57f2b0e805c21c24cfea8 | [] | no_license | TheJodok/NLP-Python | 4267974b79f439fecf5cdae6ffbf2539a23b97de | 840e8e0d63b5400f1300129be5a4a5c197002bf9 | refs/heads/main | 2023-06-14T13:46:21.304858 | 2021-07-14T07:30:37 | 2021-07-14T07:30:37 | 385,835,801 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,039 | py | from reviews import counter, training_counts
from sklearn.feature_extraction.text import CountVectorizer
from sklearn.naive_bayes import MultinomialNB
# Add your review:
review = "Very much learned, such wow, much cool. AI ML NLP fantastic. Speech and Text nice"
review_counts = counter.transform([review])
classifier... | [
"jodok.senften@hotmail.com"
] | jodok.senften@hotmail.com |
5ac3d814652dd657e78fb92b8385273d7f562be6 | 9094acb185a2fd1adf70cefa633ed01c7b290149 | /src/seplis/indexer/__init__.py | dddf999669b83cc81c4cc51641bfb060f8744d72 | [] | no_license | jonathan1994/seplis | 65887c1ecfc27bbef5b97820eba731e6ba043601 | d97925b18b67a321d88c0901455cf2fdc14a82c8 | refs/heads/master | 2021-01-17T17:18:16.820975 | 2014-11-28T00:32:04 | 2014-11-28T00:32:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 47 | py | from seplis.indexer.indexer import Show_indexer | [
"thomas@erlang.dk"
] | thomas@erlang.dk |
4c9469f52887fcd668fc289b805b599c3f1bd310 | 8712509880af7544115733099861ac3bb9e818cf | /DeepLearning_AndrewNg_coursera/1neural-network-deep-learning/assignment3/code.py | 2738b146b71dcf7a2441e15bfbc14a3a92adae40 | [] | no_license | most-corner/deeplearning | 94152b111ccefeaa4317093f62e2616cad90d4af | aefe5542cc46f285b4ff34e90212a0e29cc2f5c5 | refs/heads/master | 2020-06-11T22:30:44.216540 | 2019-07-01T14:21:10 | 2019-07-01T14:21:10 | 194,107,559 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,892 | py | # 1-Packages
import numpy as np
import matplotlib.pyplot as plt
from testCases_v2 import *
import sklearn
import sklearn.datasets
import sklearn.linear_model
from planar_utils import plot_decision_boundary, sigmoid, load_planar_dataset, load_extra_datasets
np.random.seed(1) # set a seed so that the results ar... | [
"750315795@qq.com"
] | 750315795@qq.com |
865d163a7d8a6da2990f17d0e77042066fd1c459 | 519e3049819a86ea45dcfdd92d460844de411305 | /src/gui.py | 611b0cb0fadcf224d7402792bd0597afffc6c87b | [] | no_license | ArthurCamargo/ShowMusic | 4777dde5f05e26a27735f691566bcd80f014e1ef | c5d3b6ddd93c45b286638ecf6668e2181e0aec3f | refs/heads/master | 2023-01-12T07:45:57.987164 | 2020-11-23T02:25:24 | 2020-11-23T02:25:24 | 296,718,513 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 6,026 | py | """
File: gui.py
Author: Joao Martins
Email: joaomaieron@gmail.com
Description:
Main module of the application, handles the graphical user interface
"""
import tkinter as tk
from tkinter.filedialog import askopenfilename, asksaveasfilename
from editor import Editor
from player import Player
from parser import Pars... | [
"arthurcamargo13@gmail.com"
] | arthurcamargo13@gmail.com |
d48e81a28bb7684f2cc31d963b2adb56ac9aef3d | e8fce1e2e1737ed5e94eb2a47078509d4b733389 | /api/tests.py | 8e804679b264b5877ac973829c5b7fa5e74932b1 | [] | no_license | mohiz/test_djanog_decimal_field | 7d431166c18242d9295baaf7d8710d0feb85cbee | 490f6d40812a40847089eaefe06486e47e5bab02 | refs/heads/master | 2023-05-05T06:50:24.192599 | 2021-05-29T03:56:17 | 2021-05-29T03:56:17 | 371,870,928 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 438 | py | from django.test import TestCase
from django.db.models import F
from api.models import Foo
from decimal import Decimal
class TestSimple(TestCase):
def test_simple(self):
f = Foo.objects.create(amount=Decimal('0.5'))
f.amount = F('amount') - Decimal('0.4')
f.save(update_fields=['amount', ... | [
"mohsen.tamiz@gmail.com"
] | mohsen.tamiz@gmail.com |
c92862abb7710071303f4ecd25dce31b9f526d18 | bad8c0aed84630051d428d78aebb8e5f5cc1a67a | /core/views.py | 66c3fb32b2b44e3d33c517bf2f25098405094e7b | [] | no_license | dj999dash/Django-Auth | a383923d4cdfb9056a78232472b6ba6dd712bf6e | 1f340529670d5a676d435b03980b7b5f5240506a | refs/heads/master | 2022-12-24T18:57:48.334667 | 2020-10-02T13:48:23 | 2020-10-02T13:48:23 | 259,327,203 | 0 | 1 | null | 2020-10-02T13:48:24 | 2020-04-27T13:17:50 | Python | UTF-8 | Python | false | false | 758 | py | from django.shortcuts import render,redirect
from django.contrib.auth.forms import UserCreationForm
from django.contrib.auth.models import User
from django.contrib.auth.decorators import login_required
# Create your views here.
def home(request):
count = User.objects.count()
return render(request, 'home.html',... | [
"divyajyotidash999@gmail.com"
] | divyajyotidash999@gmail.com |
db18f6260643739f1e162671d92c211770ddcff4 | e069f8d0013ab289048e20dfd5a2bcc8019841c9 | /06-organizacion-y-complejidad/07-graficos/busqueda.py | 1ac0f545e4a8551278ff297853822ea8bd2512e7 | [] | no_license | francosbenitez/unsam | 9981e8196e3a9abb1fb29c170d43c55beec5520a | 1390e3245ee3f9a3f4aa97146a80ed56fa72cd45 | refs/heads/main | 2023-08-14T03:16:15.183354 | 2021-09-21T13:58:21 | 2021-09-21T13:58:21 | 373,769,485 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,371 | py | """
Ejercicio 6.20: Búsqueda binaria vs. búsqueda secuencial
En este Ejercicio vamos a rehacer los gráficos del ejemplo anterior, pero primero cambiando el algoritmo de búsqueda y luego comparando ambos algoritmos.
Usando experimento_secuencial_promedio(lista, m, k) como base, escribí una función experimento_binario_p... | [
"francosbenitez@gmail.com"
] | francosbenitez@gmail.com |
d2a1afd0b72a8d69f17d62a5263ac72b31a5afa7 | 5e84378aa01c773e9080c3e63a48857887ade95d | /2017/CVE-2017-7529/exp&poc/CVE-2017-7529_PoC/CVE-2017-7529_PoC.py | bb2422b8d0b83d85eeef9c15d0f787f2862303e5 | [] | no_license | tdcoming/Vulnerability-engine | ed9a9634923296ac4b241005c085c0a7e51b36ed | 15f872fab2ede9a7f07edd7a85298444593bd10e | refs/heads/master | 2020-08-02T11:52:09.331001 | 2019-11-20T02:08:12 | 2019-11-20T02:08:12 | 211,341,603 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,758 | py |
import urllib.parse, requests, argparse
global colorama, termcolor
try:
import colorama, termcolor
colorama.init(autoreset=True)
except Exception as e:
termcolor = colorama = None
colored = lambda text, color="", dark=False: termcolor.colored(text, color or "white", attrs=["dark"] if dark else []) if term... | [
"test@tdcoming.com"
] | test@tdcoming.com |
2d984a6ee6334fda894e19382b98c8e37fc75eca | 850df0e1666ec735939d20e1baf234760513bc7d | /account/migrations/0005_auto_20201128_1523.py | 0133dfbda1e3290a939df5b464038cb91f920378 | [] | no_license | aoi797airplane/platform | 3f6f8a1107786d9751b3b263eb699a2680b6bc52 | a3580546d313689b8e4b7e5971337e5c617845f5 | refs/heads/master | 2023-01-27T12:57:40.301335 | 2020-12-04T05:45:24 | 2020-12-04T05:45:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 450 | py | # Generated by Django 3.1.3 on 2020-11-28 06:23
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('main', '0003_remove_ea_ea'),
('account', '0004_profile_ea'),
]
operations = [
migrations.AlterField(
model_name='profile... | [
"koh.ikeuchi@gmail.com"
] | koh.ikeuchi@gmail.com |
954e3ab168d4fbcd0be402006fa505131279c73f | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_199/545.py | 17c70db8eec59ac875b8c95e77f7983acaabe002 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,267 | py | import sys
numTests = int(sys.stdin.readline())
tests = []
def isAllFlipped(pancakes, i, j):
for k in range(i, j):
if(pancakes[k]=='-'):
return False
return True
# Read all tests
for i in range(numTests):
t = sys.stdin.readline()
s = t.split(' ')
tests.append(s)
# Solve them
... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
da64e9293511b13a8336e14e96b3c5358d59ea74 | a7252408048aaca7a30376d70ef7d02021aa7ec4 | /todolist/views.py | 9a008f813b0286d1311fe981e03874aed28fc4e0 | [] | no_license | wanZzz6/to_do_list | 2333f4fee8762d4c41c71d471a47cca6b2e6c8b4 | 2580f37fc9b8aa3c8aea3ac7843615eda1ce703f | refs/heads/master | 2020-04-23T15:55:38.859389 | 2019-02-18T12:48:36 | 2019-02-18T12:48:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,819 | py | from django.shortcuts import render, redirect
# Create your views here.
lst = [{'待办事项': '遛狗', '已完成': False},
{'待办事项': '遛狗啊', '已完成': True}, ]
def home(request):
global lst
if request.method == 'POST':
content = request.POST.get('待办事项')
if content:
lst.append({'待办事项': conte... | [
"1343837706@qq.com"
] | 1343837706@qq.com |
5dd940e274d09977d0920ec34c29c7b99498bef7 | ee974d693ca4c4156121f8cb385328b52eaac07c | /env/lib/python3.6/site-packages/dmlc_tracker/ssh.py | 131a020cf5e48c39da5177ddf3388d3dae91a560 | [] | no_license | ngonhi/Attendance_Check_System_with_Face_Recognition | f4531cc4dee565d0e45c02217f73f3eda412b414 | 92ff88cbc0c740ad48e149033efd38137c9be88d | refs/heads/main | 2023-03-12T07:03:25.302649 | 2021-02-26T15:37:33 | 2021-02-26T15:37:33 | 341,493,686 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:a98dbbfdf7c695ce9963e992b64966e8030206b0403401776879363101369004
size 3155
| [
"Nqk180998!"
] | Nqk180998! |
f24b3f14135d3f1b45ea5d6db99c90f6f40d2065 | 4e009430fa206297f5bb187beeca5e2fac0c65ad | /pycharmprojects/day02/while_guess.py | de74acd00a1c34036169f8b0ffb9e45b459c1dca | [] | no_license | xzp820017462/node | 6b7e70a45f59652a5147656c9e266e674a688666 | a398cf36eb396ca1e15e548200f7bc2fc8b4f1a8 | refs/heads/master | 2020-03-26T08:10:01.582952 | 2018-08-18T00:38:58 | 2018-08-18T00:38:58 | 144,689,085 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 491 | py | import random
all_choices = ['拳头', '剪刀', '布']
win_list = [['拳头', '剪刀'], ['剪刀', '布'], ['布', '拳头']]
prompt = """(0)拳头
(1)布
(2)剪刀
"""
computer = random.choice(all_choices)
running =True
while True :
ind = int(input(prompt))
player = all_choices[ind]
print('你出了: %s, 计算机出的是: %s' % (player, computer))
if player == computer... | [
"zzg@163.com"
] | zzg@163.com |
e598d2d16f4d4fd929f60c9f86001ae28269eed5 | 2f168497605c0540ec26406d87ef0ea6c806c72d | /year/serializers.py | e26ac3ceaf997d4d682b2ccfe8b1fff9523c5cd0 | [
"MIT"
] | permissive | djs2082/AttendanceSystem | 4d94301f861d27fce00cf5517e001ec003d100ce | b775b969585239a5fe756b8367c5ac8994d4e347 | refs/heads/master | 2022-12-02T12:52:29.113208 | 2020-08-19T13:06:04 | 2020-08-19T13:06:04 | 286,905,433 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | from rest_framework import serializers
from year.models import Year
from rest_framework.validators import UniqueValidator
class YearSerializer(serializers.ModelSerializer):
class Meta:
model=Year
fields=('__all__')
extra_kwargs={
'yearName': {
'validators': [Uniq... | [
"dilipjoshis98@gmail.com"
] | dilipjoshis98@gmail.com |
74ef4e4b15c58a54c7e14377a511efc4bd38750d | 480669ba61d1c8009bd62cebbbd8fc8998431015 | /home/admin.py | a5d5bf683bcf6870c300cbdddc663f1b5577e28a | [] | no_license | anirudhasj441/online_assignment_system | cbfe5cc058d2d42227f4f3d2530e08fc0d24171b | 521e052d33711c5416a91b5a2dc110a14ddd8d59 | refs/heads/master | 2022-12-06T15:16:23.442614 | 2020-08-26T09:37:40 | 2020-08-26T09:37:40 | 282,669,139 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,277 | py | from django.contrib import admin
from .models import Teacher,Student,Class,Subject
# Register your models here.
class StudentAdmin(admin.ModelAdmin):
list_filter = [
's_class'
]
list_display = [
'pk',
'name',
'control_number',
's_class',
's_roll',
'email',
's_con... | [
"anirudhasj441@gmail.com"
] | anirudhasj441@gmail.com |
358bf5ff959ce6c82c82df8e666dc0a2879cd61b | 1f2c16ee42b06479e7aed311d929ffe2aa4a9e41 | /question1.py | d727f54736a5c7db95de2cc7937a314919e8217e | [] | no_license | jed1337/web-scraper-analytics | 0574d28aee9c51aa7896a681ef815b2fd35896d9 | 0de007dc55c75fd6160d31cea8f2e2a5c086ad3b | refs/heads/master | 2020-09-21T12:52:36.700765 | 2019-11-29T15:22:04 | 2019-11-29T15:22:04 | 224,795,059 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 367 | py | import matplotlib.pyplot as plt
import pandas as pd
import numpy as np
import seaborn as sns
import csv
def question1():
data = pd.read_csv("consolidated.csv")
top_artists = data[['Artist and Title', 'Year', 'TPts']].sort_values(by=['Year','TPts'],ascending=False).groupby(['Year']).head(5)
print(top_artist... | [
"SEVILKE@OOCL.COM"
] | SEVILKE@OOCL.COM |
59fef5c3b034663423b8dcd197f814b2bf15509a | eb9f655206c43c12b497c667ba56a0d358b6bc3a | /python/testData/pyi/parsing/Simple.pyi | c3ae82f555c05e75c0e78ae12a54514a47b72b29 | [
"Apache-2.0"
] | permissive | JetBrains/intellij-community | 2ed226e200ecc17c037dcddd4a006de56cd43941 | 05dbd4575d01a213f3f4d69aa4968473f2536142 | refs/heads/master | 2023-09-03T17:06:37.560889 | 2023-09-03T11:51:00 | 2023-09-03T12:12:27 | 2,489,216 | 16,288 | 6,635 | Apache-2.0 | 2023-09-12T07:41:58 | 2011-09-30T13:33:05 | null | UTF-8 | Python | false | false | 28 | pyi | def foo(x: int) -> int: ...
| [
"andrey.vlasovskikh@gmail.com"
] | andrey.vlasovskikh@gmail.com |
a04b8e2cc982c8c13aa5fbb2315a80ff68b48f1c | 10717fe6f68c4ee9bcf27ee62e89581f4a030b8e | /extractor/steam.py | 97a2992bab81e6e997b23532c28022998d9aaf8c | [] | no_license | HagerHosny199/Testing_Project | ff7f9a54b7a213c9d9ade0c5192845c2a29adc8b | 9bc170263e239cc24ccfb2aa33b9913ff799ffe9 | refs/heads/master | 2020-05-17T20:57:01.750640 | 2019-05-08T22:13:06 | 2019-05-08T22:13:06 | 183,954,736 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,644 | py | from __future__ import unicode_literals
import re
from .common import InfoExtractor
from utils import (
extract_attributes,
ExtractorError,
get_element_by_class,
js_to_json,
)
class SteamIE(InfoExtractor):
_VALID_URL = r"""(?x)
https?://store\.steampowered\.com/
(agecheck/)?
... | [
"hagarhosny19@gmail.com"
] | hagarhosny19@gmail.com |
4cb5c441bcba23fbc23e5964cb82056ad9278044 | 29b2818a5f336fd10b124871220e047cc86d1d38 | /companies/migrations/0004_auto_20180310_0505.py | 246f298f80c57afc244fcbf917b0cda3900d8f49 | [] | no_license | prsh-singh834006/foundationbackend | d7eebeb17b3d35ad94b8e44c832438b7ebed63e3 | 52c63b77f98e5d2d312d050f0ab2b4dab78368aa | refs/heads/master | 2021-03-30T21:02:17.392653 | 2018-03-10T06:30:45 | 2018-03-10T06:30:45 | 124,621,719 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 378 | py | # Generated by Django 2.0.3 on 2018-03-10 05:05
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('companies', '0003_sku_subcategory_subcategory_sku'),
]
operations = [
migrations.DeleteModel(
name='Stock',
),
migration... | [
"prashant13cse075@gmail.com"
] | prashant13cse075@gmail.com |
2bf169f247955b023ed4eb2ef9238dea4e9d188b | 8b16e83dbc38f6714ee5d9ef9f9b43d16d51f1de | /hello.py | d9c6954e709b320806042665599c2737fb097292 | [] | no_license | shruthasivakumar/my-first-blog | 1ee03faeee4c57da0e8c0e867c58327f9efbbbed | 9595c5015ef1a26ba1393d21fa62d63afcf67634 | refs/heads/master | 2020-03-28T22:15:59.942373 | 2017-06-17T15:47:05 | 2017-06-17T15:47:05 | 94,626,125 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 202 | py | def hi(name):
if name == 'Shrutha':
print('Hi Shrutha!')
print('Whats up?')
elif name == 'a':
print ('Hi A!')
else:
print ('Go away random person!')
hi('b')
| [
"shrutha.sivakumar@gmail.com"
] | shrutha.sivakumar@gmail.com |
9b1a62a8beafa47b2bd59dfce771a8e37d810b5c | 53869930bd3989d4ea397b4dce42996fc1a33c1f | /compressed_network/layers/conv_layer.py | 5d3687bed9516fb65533680522f1abfe7e9d94df | [] | no_license | oanaucs/quant | 6e4963b912667f0adfc5e74a2832146f2db2a18d | b31bd8c17e5cf97cf12977f8b490ec33fab02740 | refs/heads/master | 2022-02-22T23:16:28.495165 | 2019-10-09T16:45:22 | 2019-10-09T16:45:22 | 212,675,705 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,239 | py | from layers.layer import layer_base
import tensorflow as tf
import numpy as np
class conv2d(layer_base):
def __init__(self,
in_depth,
out_depth,
kernel_size=[3, 3],
strides=[1, 1, 1, 1],
padding='SAME',
name=No... | [
"oanaucs@gmail.com"
] | oanaucs@gmail.com |
f851dbbc0d86bc7b1053d5e0f1308049b8176273 | cab24ce6969b883b259ebf9a3731d913720acb48 | /flask-demos/basic-routing/server.py | b2fcc884ea07527b03c117d8c50dc63db0e20735 | [] | no_license | mgoshorn/191209-content-repo | e7f1a3e5079f60b10443839b13b8fc2d19c4ac63 | a37455dee84e6aa88844b49c961aa4d85181d624 | refs/heads/master | 2020-12-18T12:34:35.909532 | 2020-01-26T16:34:49 | 2020-01-26T16:34:49 | 235,383,039 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 457 | py | from flask import Flask
app = Flask(__name__)
cats = ["Felix", "Fluffy", "Max", "Sylvester", "Tom", "Garfield"]
@app.route("/cats", methods=["GET"])
def get_cats():
return {
"data": cats
}
@app.route("/cats/<id>")
def get_cat(id):
if(not id.isnumeric()):
return "", 404
int_id = int(... | [
"msgoshorn@gmail.com"
] | msgoshorn@gmail.com |
3e886595d306c6291467f18af56c5f7211ed1485 | 491d5306e68793b57be2a411c32b3f2651486766 | /migrations/versions/11090f350c03_.py | 58d57d0b18ca800d1baaa986fd7d681021a0b48b | [] | no_license | dygksquf5/flask_clone_project_api | 2a0e6db73a93f4e953040626102f16c841468613 | 5c6a0e59ed3b880ff8a3547f2616355262de62e9 | refs/heads/main | 2023-03-25T09:30:05.878500 | 2021-03-24T02:02:02 | 2021-03-24T02:02:02 | 349,996,153 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,135 | py | """empty message
Revision ID: 11090f350c03
Revises: 3fe6103ee496
Create Date: 2021-02-25 15:49:05.532642
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '11090f350c03'
down_revision = '3fe6103ee496'
branch_labels = None
depends_on = None
def upgrade():
# ... | [
"dygksquf5@naver.com"
] | dygksquf5@naver.com |
fc7bec57fc4563f1bbd1ef2298e6effd6d920fbd | 38670d46158fe13f064a6b979110e26b935e459e | /SalesAppDir/SalesApp/wsgi.py | 5b1c6bad6d20e58a577e50ae51abf8e74d697e73 | [] | no_license | UnmsmCc/SalesApp | 1800522bea77ad7b2f09973b5a8601df1689e41f | df9a9e1585c6bbdddb495a2ad1ae1c8383742824 | refs/heads/master | 2022-08-23T12:56:41.961985 | 2020-05-20T21:27:36 | 2020-05-20T21:27:36 | 264,794,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | """
WSGI config for SalesApp 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/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETT... | [
"11140374@unmsm.edu.pe"
] | 11140374@unmsm.edu.pe |
de98ff2cd4ae9314fdce7c59a0f7d52d331e49d4 | a9a0aa5af100ed752194e498b8e14073c13563d2 | /djcelery_errorlog/__init__.py | 529a8aa4b06d4b2e7d6c8097156d5ce395ede83b | [] | no_license | yjmade/django-celery-errorlog | 7948839165ebdbd805fe332fa39b98c9dd0b518b | 32306cfab2e5cb1f48f7692335a03f90379c0e95 | refs/heads/master | 2020-06-13T23:50:26.614640 | 2016-12-05T14:58:01 | 2016-12-05T14:58:01 | 75,542,638 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 274 | py | # -*- coding: utf-8 -*-
def shared_task(*args, **kwargs):
from .models import CeleryError
return CeleryError.shared_task(*args, **kwargs)
def periodic_task(*args, **kwargs):
from .models import CeleryError
return CeleryError.periodic_task(*args, **kwargs)
| [
"github@yjmade.net"
] | github@yjmade.net |
2812c81eda3824c27a60a84670e9ab8374c9207c | 03483eb845567a1ea783214c462d7d6ce7b97420 | /done/refiner.py | b8bf0e5b03b71da827b74fd929946af31983f826 | [] | no_license | vishaljain3991/reports2sql | 7a278d820ff65026edfb435822efac24cdd20e70 | 98a340a167501d45f036a8731f41434ea1f2f3f3 | refs/heads/master | 2021-01-01T19:20:33.129205 | 2014-06-27T15:01:56 | 2014-06-27T15:01:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,567 | py | #==========================
#PLEASE READ THE COMMENTS
#==========================
#Now we refine i.e. clean our database. In this file we open names.txt which contains the names of
#analysts as mentioned in the analysts_YYYY-MM-YY.txt file and alongside that only first and last names
#of the analysts. This file replac... | [
"j.vishal3991@gmail.com"
] | j.vishal3991@gmail.com |
3412d4feb9073a130e9a20924cf03b2d98444c14 | d8bb500d56d464d710209cfee5bc054b02adcea5 | /JobSchd/migrations/0002_auto_20171002_0016.py | 7306abbf78ebcc018a91e9727d3bf2482c2d291f | [] | no_license | siddarth306/PopGen | fb99cd98e93d5747a325e0a1b07d3ac50ed68428 | 84913d1d0eef9990d6bda956a32286518009298a | refs/heads/master | 2020-04-15T14:15:04.767830 | 2019-01-12T15:51:00 | 2019-01-12T15:51:00 | 164,747,989 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,499 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.5 on 2017-10-02 00:16
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('JobSchd', '0001_initial'),
]
operations = [
... | [
"siddarth306@gmail.com"
] | siddarth306@gmail.com |
0624cfcab1018e1fa3e300373e429924574f939d | c3f595359487019f807ac2a55f4ccd63cf6df0bf | /fluvirus.py | f0486865368e12fbe677e410276beaeddacfde87 | [] | no_license | afcarl/Influenza-Network-Transmission-Model | 391dbbd0034bf9de8950a17f1bcac68f0481739a | e82e22b153e643ba240b5721b511c6857bd9c049 | refs/heads/master | 2020-03-18T10:03:51.047195 | 2017-11-15T19:19:46 | 2017-11-15T19:19:46 | 134,595,340 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 299 | py | class FluVirus(Virus):
"""docstring for FluVirus"""
def __init__(self, id, creation_date, num_segments=2, parent=None, \
generate_sequence=False):
Virus.__init__(self, id=id, creation_date=creation_date, \
num_segments=num_segments, parent=parent, \
generate_sequence=generate_sequence) | [
"ericmajinglong@gmail.com"
] | ericmajinglong@gmail.com |
0b951d9b1c6371d9c2405c5a067a5b58506d1322 | 902628a75d979c8636efe6ea0aaf616910f88336 | /setup.py | a955c0783c67269cd3aab92bfff811ede6aa37a3 | [] | no_license | jicuss/vertica_parity_env | 59d608bcfbfdaf6c1005a1c1a26d9d2f556ec2ef | f194c7a8797bac1b868f08aba373b84124892676 | refs/heads/master | 2021-01-17T16:04:24.591646 | 2016-08-19T22:18:31 | 2016-08-19T22:18:31 | 63,757,481 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,943 | py | """A setuptools based setup module.
See:
https://packaging.python.org/en/latest/distributing.html
https://github.com/pypa/sampleproject
"""
# Always prefer setuptools over distutils
from setuptools import setup, find_packages
from codecs import open # to maintain consistent encoding. May or may not use. TODO: remove ... | [
"joshua_icuss@intuit.com"
] | joshua_icuss@intuit.com |
1345a55a79a3c655f98786f58ee490a95f15db27 | 17f6881c70401dc63757cc7b5fa4d9dd396689e3 | /src/main/com/libin/yfl/35.py | ff1d09e4298aea219272d6797699a0d458c2ada6 | [] | no_license | BigDataRoad/Algorithm | 0ab493eeb478125b4beb62d78ce18c73e30b0496 | 2f2fb4f4b84f6c9df8adbada63b327c43ce29ddd | refs/heads/master | 2023-07-02T04:06:51.025648 | 2021-07-28T14:04:55 | 2021-07-28T14:04:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,113 | py | # coding:utf-8
'''
1221. 分割平衡字符串
在一个「平衡字符串」中,'L' 和 'R' 字符的数量是相同的。
给出一个平衡字符串 s,请你将它分割成尽可能多的平衡字符串。
返回可以通过分割得到的平衡字符串的最大数量。
示例 1:
输入:s = "RLRRLLRLRL"
输出:4
解释:s 可以分割为 "RL", "RRLL", "RL", "RL", 每个子字符串中都包含相同数量的 'L' 和 'R'。
示例 2:
输入:s = "RLLLLRRRLR"
输出:3
解释:s 可以分割为 "RL", "LLLRRR", "LR", 每个子字符串中都包含相同数量的 'L' 和 'R'。
示例 3:
输入:s =... | [
"yangfengling@inttech.cn"
] | yangfengling@inttech.cn |
e4d45620eb41d7e65c1a758b74401b7fa074da8d | 17934999db777fb173c98facb7e90263589d879a | /leetcode/148.py | 8cee1cd0aaa1927cd749f601ca4d1b4df4e43b8d | [] | no_license | helunxing/algs | 2196730bd9daeaecd3504ad84e3e0ddca751953f | ca9629f5bf2177275688d70b12e10e442ad67a84 | refs/heads/main | 2023-02-18T07:03:09.488423 | 2022-05-16T00:18:01 | 2022-05-16T00:18:01 | 136,946,860 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,028 | py | # Definition for singly-linked list.
from typing import List
class ListNode:
def __init__(self, x):
self.val = x
self.next = None
class Solution0:
def sortList(self, head: ListNode) -> ListNode:
if not head:
return head
last = fast = slow = head
while fast... | [
"37706103+helunxing@users.noreply.github.com"
] | 37706103+helunxing@users.noreply.github.com |
8857f76b42fd2327914de953db3299ebc147db0c | e73b68643093aee333254e05658a711c17a656b0 | /authorization/migrations/0009_auto_20210128_0449.py | 92c747acae17c57d832ab97a811ebbd0babc5e25 | [] | no_license | Brahim2007/PaperMetrix | 4d7fe27612066b97f4c824cf233961ca59b95b09 | 8ae8a2e367ba2bab6f271f4f64256f6675b1cf78 | refs/heads/master | 2023-05-25T18:41:16.101357 | 2023-04-29T09:49:21 | 2023-04-29T09:49:21 | 373,526,954 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 807 | py | # Generated by Django 3.1 on 2021-01-27 23:19
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('authorization', '0008_auto_20210128_0447'),
]
operations = [
migrations.AlterField(
model_name='user',
n... | [
"browncastin@gmail.com"
] | browncastin@gmail.com |
a091250c35f7d8af56e48fde5a3b7559b25e7bd1 | 1427ebf65db634031540e75e22f394c8f1c55ed4 | /article/migrations/0005_auto_20190121_2249.py | 051b8b0fc3924892eb6570cd7f405ba960c80742 | [] | no_license | ulasdgndnz/django-blog | 95e189e7d12cf14a1b0f8dbca3bd5b76e5a59808 | 83e62390db6a802eb23468b5b640da5d3a7e253f | refs/heads/master | 2023-07-13T06:55:26.148715 | 2021-08-31T19:18:27 | 2021-08-31T19:18:27 | 167,540,932 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 485 | py | # Generated by Django 2.1.5 on 2019-01-21 19:49
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('article', '0004_auto_20190121_2214'),
]
operations = [
migrations.AlterModelOptions(
name='article',
options={'ordering': ['... | [
"gs_dogan05@hotmail.com"
] | gs_dogan05@hotmail.com |
6006274e5db45332602c0130dd859ac4d50d3679 | 99bd4d86aeb26f0cb9099d5d0396b4f11d440f65 | /venv/lib/python3.7/genericpath.py | 60866365235ad66165bd58294761ad4a9a94f451 | [] | no_license | mmorrison1670/django-marriageability | f173d305afdc0343ee5776bdbca5ca1d60098dba | 31915636bcf9cb417b2243479a910c45cfc3a3aa | refs/heads/master | 2020-06-13T17:51:41.712358 | 2019-07-06T12:55:25 | 2019-07-06T12:55:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 52 | py | /Users/mtm101/anaconda3/lib/python3.7/genericpath.py | [
"mtm101@georgetown.edu"
] | mtm101@georgetown.edu |
010b33569d32d22e7299f5fbaccf1087498d35fd | 093180c6c3d1f1474a2037461286429ccbb7029f | /Ejercicios semana3/6.py | 54fbd9fcc8bb0f2f773814a68ab49a822f4c3ed6 | [] | no_license | DiegoxK/MisionTIC2022 | 2f143aa2d2d44122bad03d90b45a75794659b1d7 | eae7552830be2bd9b1a95d836eacc45be3c553ff | refs/heads/main | 2023-06-23T17:47:50.289990 | 2021-07-26T01:21:34 | 2021-07-26T01:21:34 | 381,203,172 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,650 | py | # Ejercicios
#6. Realizar un programa que permita cargar dos listas de 15 valores cada una. Informar con
#un mensaje cuál de las dos listas tiene un valor acumulado mayor (mensajes "Lista 1
#mayor", "Lista 2 mayor", "Listas iguales")
#Algoritmo:
"""
-Ingresar los valores por input de ambas listas
-realizar ... | [
"noreply@github.com"
] | noreply@github.com |
da51364f707eb4935e28a9d9217829d8d5d91ab9 | 84dcf2731f83a44cc02c75249911ecd2aafe2f91 | /constants.py | d0b987edf568de32ee6c05d30261bbe4ded56c15 | [
"MIT"
] | permissive | xuefei1/Graph-Seq2Attn | 74a765dc44effa6b84077b40476b5985fcd96e5a | 336c69877e483c95d9996ee205d2a005342f08af | refs/heads/master | 2020-12-04T17:02:16.139122 | 2020-04-16T16:36:42 | 2020-04-16T16:36:42 | 231,847,054 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,682 | py | # one identifier for one types of dict
# for instance, DK_SOME_KEY means this is a key for a data_dict
DK_BATCH_SIZE = "batch_size"
DK_PAD = "pad" # DK: general purpose data_dict
DK_SRC_WID = "src_wid" # src = msg + ctx
DK_SRC_WID_MASK = "src_wid_mask"
DK_SRC_SEQ_MASK = "src_seq_mask"
DK_MSG_WID = "msg_wid" # msg is us... | [
"xuefei1@ualberta.ca"
] | xuefei1@ualberta.ca |
d05b426c62a570e3558ce0569edad294e14a81f4 | b8e7611dc06d804f63db05fd25045b626ccbb067 | /CRM/event/serializer.py | 1dcbd9eb36ee10a02095145f94138d588ef08d0d | [
"MIT"
] | permissive | ydjabela/OCR_P12 | 5af7e4b4e7f7ab1cf6d427d99e65bfe5074b949e | 105364ea768c2adf3f0416dac7591639eec6d66a | refs/heads/main | 2023-05-30T06:16:15.514142 | 2021-06-11T08:04:28 | 2021-06-11T08:04:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 297 | py | # Django REST Libs
from rest_framework import serializers
# Local Libs
from .models import Event
class EventSerializer(serializers.ModelSerializer):
"""
Event serializer
Based on serializers.ModelSerializer
"""
class Meta():
model = Event
fields = "__all__"
| [
"emericdefay@gmail.com"
] | emericdefay@gmail.com |
373f958ddc1ae69c1864e555edf002dcc1ad119d | 7ac6ce76ddfdaee255454c41684cab67ed52a5b8 | /test_mo/urls.py | bb605fb2b4bbbc95526280136d8544d1504731c4 | [
"MIT"
] | permissive | Qmanes/test_mo | dc4825ae7995f6cbb18248b0e25f4a604f553a5b | f175f3d623d499473d88d2357769a3259b9b7484 | refs/heads/main | 2023-03-03T01:51:16.096580 | 2021-01-26T03:06:27 | 2021-01-26T03:06:27 | 332,954,264 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 801 | py | """test_mo URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based... | [
"rafael.licettt@gmail.com"
] | rafael.licettt@gmail.com |
32e70993541d9d1f2b8e64c11df221809bcf56e3 | c4d3ef434d1449294ba8b83a94a121253a2cfb48 | /http_main.py | 49d95bada9497a7d3276c4c7b8c20e31efe266c7 | [
"Apache-2.0"
] | permissive | RITCHIEHuang/qt-process | d7b6e2ecff220b3bb0e27b2a24b9c52981ae5b25 | e701a2992aa4690d1a5d79d741bf2339ca890ac4 | refs/heads/master | 2020-05-03T20:40:10.050494 | 2019-04-01T15:37:54 | 2019-04-01T15:37:54 | 178,807,657 | 0 | 1 | null | 2019-04-01T15:37:55 | 2019-04-01T07:20:48 | Python | UTF-8 | Python | false | false | 5,242 | py | import os
import sys
from shutil import rmtree
from PyQt5.QtCore import Qt, QDir # QPoint表示一个平面上整数精度的点坐标
from PyQt5.QtGui import QFontDatabase, QFont # QPainter绘制各种图形
from PyQt5.QtWidgets import *
# 设置窗体界面的大小, 以及网格的相关属性
import http_login
# 主窗体
from utils import delete_user_info
def print_info(function_name):
... | [
"ritchiehuang@promote.cache-dns.local"
] | ritchiehuang@promote.cache-dns.local |
8c96c6ea9120d6fdd77fe8c0844928dbe8da7bd4 | a0ed50752fb3bc3f3e2be0a483fb0a9064f0f00c | /core/model.py | ad7a61cc67d33f6af6d8cc2c64494286c74ab7bb | [] | no_license | Liu802313/LSTM-Neural-Network-for-Time-Series-Prediction | e798bbb548c94e38ffd48dbcb19eada72a033c56 | 5d0f57ce08da7745a7ad3ab3a69f5e26414aa1ee | refs/heads/master | 2021-09-24T17:40:39.843080 | 2018-10-12T03:25:20 | 2018-10-12T03:25:20 | 152,346,569 | 0 | 0 | null | 2018-10-10T01:48:34 | 2018-10-10T01:48:34 | null | UTF-8 | Python | false | false | 4,200 | py | import os
import math
import numpy as np
import datetime as dt
from numpy import newaxis
from core.utils import Timer
from keras.layers import Dense, Activation, Dropout, LSTM
from keras.models import Sequential, load_model
from keras.callbacks import EarlyStopping, ModelCheckpoint
class Model():
"""A clas... | [
"liuming@liumingdeMacBook-Pro.local"
] | liuming@liumingdeMacBook-Pro.local |
d96b1df7ff514b35656306fc3610338089e4842e | 2c8efabdc717946402e191eee6653bc46c188223 | /oect_processing/__init__.py | 05005fd407169b4bafb783be5272c0b057f3665b | [] | no_license | rajgiriUW/OECT_processing | 643eb0342d82dd7a63e94a3ab1ddc33aadd379ab | 0db3cf492a3e56f676cd04c62d0cda8d62eba22b | refs/heads/master | 2023-07-06T19:31:18.821966 | 2023-06-23T21:52:34 | 2023-06-23T21:52:34 | 111,010,935 | 1 | 1 | null | 2021-04-12T07:10:23 | 2017-11-16T19:05:54 | Jupyter Notebook | UTF-8 | Python | false | false | 217 | py | from . import oect_utils
#import nonoect_utils
#import specechem
from .oect import OECT
from .oect_device import OECTDevice
__all__ = oect_utils.__all__
#__all__ += nonoect_utils.__all__
#__all__ += specechem.__all__ | [
"rgiri@uw.edu"
] | rgiri@uw.edu |
62b1de7a99fc7f74b2b883ee7c9d8c69a7e30f5a | d2d9712a9a028707fab199c1eb835052ac8e60b7 | /home/.ipython/profile_default/ipython_config.py | c63f614f64d9bf41c78bce3ed6b871bc68355990 | [] | no_license | kei10in/dotfiles-old | f5b384f6fedfc125f85e46bb35c4bd79069a8179 | 1be78223c197eaac682f9075644456e120c96e78 | refs/heads/master | 2022-04-09T15:39:34.772951 | 2020-03-12T13:25:14 | 2020-03-12T13:25:14 | 2,340,600 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,058 | py | # -*- coding: utf-8 -*-
# Configuration file for ipython.
c = get_config()
#------------------------------------------------------------------------------
# InteractiveShellApp configuration
#------------------------------------------------------------------------------
# A Mixin for applications that start Interac... | [
"kei10in@gmail.com"
] | kei10in@gmail.com |
cbd4fffa89d3721fb45c73392b5d55aa7d22d7eb | fc79b08e3d8f16c88e57b8674eebd5a610ababdc | /globomap_api/run.py | df2b60a8b03bdffcafb07f13a7d993d0cfcff688 | [] | no_license | victor-mendes-eduardo/globomap-api | e8b95cf33269c92c927ca30c7092d33f0f8e8cac | c1cce956eb4fdfb178bc32cc8ed60605e547c7f3 | refs/heads/master | 2021-01-15T19:06:51.094379 | 2017-08-07T19:29:20 | 2017-08-07T19:29:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | import logging
from logging.handlers import RotatingFileHandler
from os import environ
from app import create_app
if __name__ == '__main__':
application = create_app('config')
handler = RotatingFileHandler('foo.log', maxBytes=10000, backupCount=1)
handler.setLevel(logging.INFO)
application.logger.addH... | [
"ederson.brilhante@corp.globo.com"
] | ederson.brilhante@corp.globo.com |
99f106571951309d30c6c2ad0f813c3924e240d1 | eba57b688107b20438ad3035359e677909997371 | /chapter_2/html_parsing.py | 50711c9bad2815bfa5928e5bc5e0271dde1c64a9 | [] | no_license | kerenskybr/pratical_nlp_book | 3c7ea19c0ebf9af3be4864c3fcb205552c69936d | dc11fac65a92aa5b2878c080658f24aaaf05dfdb | refs/heads/main | 2023-05-03T13:21:31.013796 | 2021-05-14T14:30:02 | 2021-05-14T14:30:02 | 367,171,158 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 559 | py | from bs4 import BeautifulSoup
from urllib.request import urlopen
myurl = 'https://stackoverflow.com/questions/415511/how-to-get-the-current-time-in-python'
html = urlopen(myurl).read()
soupfied = BeautifulSoup(html, "html.parser")
question = soupfied.find("div", {"class":"question"})
questiontext = question.find("div... | [
"roger.o.monteiro@gmail.com"
] | roger.o.monteiro@gmail.com |
f45946dfed7777fc15b4a74ece44cbbc88ec96ea | 62286a2f8f717b156c15a2671159e5870db9e964 | /src/schemas/BudgetSchema.py | d0b72e7f2293fe56430c7bf3475eaa6e56c9dac1 | [] | no_license | HarryTranAU/my_money_app | c44026e6c0d9613d63fedca5a9c1b77d6fc796cc | eb34fb708ed4d844c8ca1cfe1a1a5e9af1b2e0d3 | refs/heads/main | 2023-01-15T16:19:42.779324 | 2020-11-24T08:58:44 | 2020-11-24T08:58:44 | 305,883,286 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 389 | py | from main import ma
from models.Budget import Budget
from schemas.UserSchema import UserSchema
from marshmallow.validate import Length
class BudgetSchema(ma.SQLAlchemyAutoSchema):
class Meta:
model = Budget
name = ma.String(required=True, validate=Length(min=1))
user = ma.Nested(UserSchema)
bud... | [
"css012013@coderacademy.edu.au"
] | css012013@coderacademy.edu.au |
ad31f228980176aeeadc3048937a55e51ab81b67 | bb598592744413b1500b85853a990cbc3bde7d1b | /random_demos/xml_minidom.py | 88bc8ea853b3f02f14cf57a11838502b68f44c00 | [
"MIT"
] | permissive | t4d-classes/advanced-python_11012021 | dabe784a81f4c45c85575aef4c7b9aeb054024f6 | a365382c6d8f06ae13fa54719935dcb229a35053 | refs/heads/main | 2023-08-30T10:25:04.345819 | 2021-11-06T00:05:58 | 2021-11-06T00:05:58 | 423,454,737 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 497 | py | from xml.dom import minidom
# parse an xml file by name
file = minidom.parse('sample.xml')
#use getElementsByTagName() to get tag
colors = file.getElementsByTagName('color')
# one specific item attribute
print(colors[1].attributes['hex'].value)
# all item attributes
for color in colors:
print(color.attributes['he... | [
"eric@t4d.io"
] | eric@t4d.io |
fe16e2e20b608f33ab3733a7142c1e62a8e6bb16 | b847c1bb6ccdb57aaf860da1d1bfc762799e54f7 | /07_语法进阶/sin_09_加等于.py | e7696477b91ad5d08cb973d3a4a86d272dfa9a57 | [] | no_license | numRandom/new_pythonCode | 2d4dba8220d9c87794cd8ff6ce401d91770d1360 | 5f7eb14ed76b5d007475138d033e991e4e85baf7 | refs/heads/master | 2020-12-27T13:57:03.887078 | 2020-02-06T10:27:11 | 2020-02-06T10:27:11 | 237,926,458 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 357 | py | def demo(num,num_list):
print("函数开始")
num += num
# 列表变量使用 += 不会做相加再赋值的操作!
# 本质上是在调用 extend 方法
num_list += num_list
print(num)
print(num_list)
print("函数完成")
gl_num = 9
gl_list = [1,2,3]
demo(gl_num,gl_list)
print(gl_num)
print(gl_list) | [
"noreply@github.com"
] | noreply@github.com |
b67ef1caee31870b006529104a537bcb51f25871 | 4e1d6978daf95140b9b02d9454af76e225bd6537 | /blog/forms.py | d2c828db50a5c1e3577e219a547965f24369fb2a | [
"MIT"
] | permissive | hairinhi/practice_django | afce74d22c1f0b8b3e7fa0acbc4c2f6f7b0d8c20 | db4442f299c3d5c4e03c38e43b1399b5c53dd57f | refs/heads/master | 2022-02-16T18:44:33.587226 | 2019-08-18T01:43:33 | 2019-08-18T01:43:33 | 197,946,504 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 240 | py | from django import forms
from .models import Blog
class BlogForm(forms.ModelForm):
content = forms.CharField(widget=forms.Textarea(attrs={'rows':15, 'cols':120}))
class Meta:
model = Blog
fields = ["content"]
| [
"hairinhi@yahoo.co.jp"
] | hairinhi@yahoo.co.jp |
eaaa0e9a1a66be306450e7ea8d242ebbcd2ccbbf | f9640f1eee714b0788d1b6314bcf12b7369e9374 | /Beginner/1001.py | 4892fb59526abb83cc0c9a8f63b7feb180bb7612 | [] | no_license | Txiag/URI-Python | b5c39649fd6a239da60ad045d548b5c83fa2db29 | ace48fc516cdfa3d5964369e6cdb710ae023cba0 | refs/heads/master | 2020-04-11T19:57:56.811574 | 2019-04-20T09:26:55 | 2019-04-20T09:26:55 | 162,053,317 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 41 | py | print("X =", int(input())+int(input()))
| [
"noreply@github.com"
] | noreply@github.com |
76c54e28ed384643636c1d9bc0edcbeeeb1519e7 | cdc1d827d37acf51e742af96b5cb5cfecbc3cdf8 | /unitTest.py | eca4ecc7422993d075de6fc25418ba728ace8034 | [] | no_license | corygoates/PropulsionOptimization | 9e52612fb14cd3c0b2eac38078be92b5b3742ec4 | 2e2a510045175afa08b208b3b6e5af00ead1701f | refs/heads/master | 2020-03-28T15:01:39.778279 | 2018-09-18T16:35:29 | 2018-09-18T16:35:29 | 148,547,972 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 437 | py | import propulsionUnitClass as unit
prop = "kyosho_10x6"
motor = "Kontronik Pyro 700-34"
battery = "Turnigy 5000mAh 40C"
numCells = 3
esc = "Kontronic SUN 3000"
altitude = 2000
test = unit.PropulsionUnit(prop, motor, battery, numCells, esc, altitude, True)
print("Initialization complete. Plotting thrust curves.")
maxA... | [
"cory.goates@aggiemail.usu.edu"
] | cory.goates@aggiemail.usu.edu |
aaef2aed639eb6b69a0b8d76fd8e02c85dd8e4a8 | 512ac9a9159c6b93d6f0a08449c9efae9200fe42 | /test/sync/test_push_issues.py | 54f1d26c0f343c33dcd872882c32c559b2f19f03 | [
"MIT"
] | permissive | FROSADO/jira-offline | 9c9d801377a50fe1c0b467ec6257d04cef51e2dc | 53d5c9f61bc1bbb96e999be0374e85d981729f96 | refs/heads/master | 2023-06-04T15:56:21.088300 | 2021-06-19T09:59:38 | 2021-06-19T09:59:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,643 | py | '''
Tests for push_issues() in the sync module
'''
from unittest import mock
from fixtures import (ISSUE_1, ISSUE_1_WITH_ASSIGNEE_DIFF, ISSUE_1_WITH_FIXVERSIONS_DIFF, ISSUE_2,
ISSUE_NEW)
from jira_offline.models import Issue
from jira_offline.sync import IssueUpdate, push_issues
@mock.patch('ji... | [
"github@mafro.net"
] | github@mafro.net |
390d864c98c6ed559e483260cfeea4971b289ead | b7f65250b675bd2bf299be8a901b39bef70af742 | /migrations/versions/b3435cda41c5_initial_database.py | 314ed3f8923398447c4aef73a8991af10ddb6555 | [] | no_license | ShoneKey/blog | 3fc997f5f2b38003efb9fb0140233303eb35341a | b6a32096e2d8ebba1ab55eca0d4abff41c15e810 | refs/heads/master | 2021-01-21T14:57:16.051412 | 2017-06-30T13:43:38 | 2017-06-30T13:43:38 | 95,362,175 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,572 | py | """initial database
Revision ID: b3435cda41c5
Revises:
Create Date: 2017-06-21 17:25:42.299000
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'b3435cda41c5'
down_revision = None
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto g... | [
"ShoneKey@163.com"
] | ShoneKey@163.com |
226b414598d38521cd196653069584391b141cf3 | 115a27e29bba3e73b60bcc5016f80a541c52e790 | /ML_by_OMAR/Part9-Dimensionality-Reduction/LDA_OMAR.py | 043bb121d0c8501c2dc486f52c3bfab00ada79ac | [] | no_license | OmarSayd/Machine-Learning-with-OMAR | 16bba0e4c679c61cd9fd977f5317ec698babb2b3 | a97de325f889b3f0a7d67dd888ac8ec355af858a | refs/heads/master | 2022-11-18T08:50:05.558521 | 2020-07-10T11:01:26 | 2020-07-10T11:01:26 | 278,610,307 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,095 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Jul 9 17:03:33 2020
@author: Linear Discriminant Analysis by OMAR
"""
# Importing the libraries
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
# Importing the dataset
dataset = pd.read_csv('Wine.csv')
X = dataset.iloc[:, 0:13].values
... | [
"noreply@github.com"
] | noreply@github.com |
437b56faa6c50f981f254c73f7c99dab8e2e5756 | 6e06f7fea4e64f139ddd6be9d140b5ff183746c7 | /rest-app/smartpicasso/urls.py | 146dbd032969b6123f1295fa95f76c0bf7aba75f | [] | no_license | dolatapatryk/smart-picasso | fb467fb5f7669d8ae238509191e1d0ffec64d557 | 73b44a2d6c466a0c21864da132027029f8af35dd | refs/heads/main | 2023-03-06T13:30:01.265853 | 2021-02-21T13:14:00 | 2021-02-21T13:14:00 | 340,902,569 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 945 | py | """smartpicasso URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-... | [
"dolata.patryk1@gmail.com"
] | dolata.patryk1@gmail.com |
a31559b9e7241b52ad9e5f2149bb26ca5c0b7ae7 | b853c16efafa74a9e1cb076008a17c9d85389fca | /HOME/笔记/聊天室/cr-sever.py | 1fa2a940328c8a608ee7b540d71ae9d97e89b866 | [] | no_license | Jason0221/backup | 14c48f1adb871b915d6f0ba49a26396e7cf0cd64 | dfd54cbcf7c27b0df6249104747e9a7ceffcb392 | refs/heads/master | 2020-06-03T13:14:39.751679 | 2017-05-15T08:50:38 | 2017-05-15T08:50:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 842 | py | #!/usr/bin/python
#coding=utf-8
from socket import *
from time import *
import sys
def login():
data,addr = sockfd.recvfrom(BUFERSIZE)
b = {data:addr}
a.update(b)
print data,'login'
print a
def chat():
# while True:
data,addr = sockfd.recvfrom(BUFERSIZE)
for i in a.keys():
sock... | [
"jasonlearning@outlook.com"
] | jasonlearning@outlook.com |
4b170f7a2731de34cd240506f56d441b9303df3b | 8b54ed7d5f52d52f5f0a45911410337a79682c0a | /src/plannerm2.py | 0148c3e5e7097675be1c64172da39905ad210d10 | [
"MIT"
] | permissive | hanbro-inha/react-flask-UI | ce2d19500ae776d6df7cc46c28834290c58b0988 | 6c121802356b14e8c8278018fd05d7d53f4c49e6 | refs/heads/master | 2022-02-11T10:27:54.542523 | 2020-03-01T11:28:48 | 2020-03-01T11:28:48 | 244,133,727 | 0 | 0 | null | 2022-01-21T20:23:54 | 2020-03-01T11:05:45 | Python | UTF-8 | Python | false | false | 5,455 | py | import socket
import pygame
import time
import math
from pygame.locals import *
from shapely.geometry import Point
from shapely.geometry.polygon import Polygon
import pynmea2
import pymap3d
import serial
import zmq
import threading
ZMQ_WAVE_PORT = 5555
ZMQ_OP_PORT = 5558
pygame.init()
screen = pygame.display.set_mo... | [
"hj.han247@gmail.com"
] | hj.han247@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.