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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2f132d128561ac039be320bd5174c2847e302c7c | 659b66f248173fb99d6d1f43978064b576a9da6f | /check_mail.py | 3dfaf0909b488340ba23ccc586345ecdc3b716d0 | [] | no_license | tuanpx9184-cowell/learn-python | 25981ab0d27b4afa764a3990decc5911ba525d1f | aa0fbce15677e6d58b824ddb4d133e4e59b152db | refs/heads/master | 2022-04-05T17:08:07.225789 | 2019-12-09T07:59:38 | 2019-12-09T07:59:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 338 | py | import re
def isValidEmail(email):
if len(email) > 7:
if re.match("^.+@(\[?)[a-zA-Z0-9-.]+.([a-zA-Z]{2,3}|[0-9]{1,3})(]?)$", email) is not None:
return True
return False
if isValidEmail("my.email@gmail.com"):
print("This is a valid email address")
else:
print("This is not a vali... | [
"tuanpx.dev@gmail.com"
] | tuanpx.dev@gmail.com |
c1b26cced7bf736c91ff5349abd7750a5eefa8d8 | e60487a8f5aad5aab16e671dcd00f0e64379961b | /python_stack/Algos/numPy/updateNumpy.py | 764b3af48fbc0778e1b980e0ca73c7c9f9fe3f14 | [] | no_license | reenadangi/python | 4fde31737e5745bc5650d015e3fa4354ce9e87a9 | 568221ba417dda3be7f2ef1d2f393a7dea6ccb74 | refs/heads/master | 2021-08-18T08:25:40.774877 | 2021-03-27T22:20:17 | 2021-03-27T22:20:17 | 247,536,946 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 775 | py | import numpy as np
x=np.array([12,34,56,78,99])
y=np.array([[1,2,3],[4,5,6],[7,8,9]])
print(f"Orginal array{x}")
# access
print(x[0],x[len(x)-1],x[-1],x[-2])
# Modify
for i in range(len(x)):
x[i]=x[i]*2
# delete first and last element
x=np.delete(x,[0,4])
print(x)
print(y)
# delete first row (x axis)
y=np.delete(y... | [
"reena.dangi@gmail.com"
] | reena.dangi@gmail.com |
d667cd2f95e0010147408d1bee42456d1f50ab10 | 8a155ccffb7d10c394bfff752d2c3c33892940ea | /KnowledgeProblem/models.py | af4605b6021e39add4382fcf23586b194cfad4c9 | [] | no_license | TONG404/WHUTravler | b5ba041db1d61878565c9553ffdae419074997ef | d57a2bd9a627af7a1a6c5373b95f489ca87bd2d3 | refs/heads/master | 2023-03-18T20:33:27.462230 | 2021-03-05T16:25:34 | 2021-03-05T16:25:34 | 344,848,001 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | from django.db import models
# Create your models here.
class Knowledge(models.Model):
id = models.IntegerField(primary_key=True)
problem = models.CharField(max_length=320)
selA = models.CharField(max_length=40)
selB = models.CharField(max_length=40)
selC = models.CharField(max_length=40)
selD = models.CharField... | [
"15809477910@163.com"
] | 15809477910@163.com |
284ce95f34b4a10c66e71f2e3477dda5167fac94 | b6d2354b06732b42d3de49d3054cb02eb30298c4 | /finance/models/score.py | df2c1a647c8480e32ca35a6f81dc0cb04266d188 | [] | no_license | trivvet/finplanner | 52ad276839bfae67821b9684f7db549334ef0a59 | 1d82d1a09da6f04fced6f71b53aeb784af00f758 | refs/heads/master | 2020-03-17T23:24:25.071311 | 2018-10-28T10:12:07 | 2018-10-28T10:12:07 | 134,043,419 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,408 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models
# Create your models here.
class ScorePrototype(models.Model):
class Meta:
abstract=True
month = models.ForeignKey(
'Month',
on_delete=models.CASCADE,
blank=False,
null=False... | [
"trivvet@gmail.com"
] | trivvet@gmail.com |
b19de6f92104daeabffb2649ab270d6ee55856fd | d5023f951158275b97fc0794aa04427a5258858b | /main.py | 05841bce35b5db81442f021868d89804d347d80b | [] | no_license | AakashBudhera/Minemapper | a7342f33917ea61ddbaa020fba8cebe2e3aff008 | a61efffd3709d98308e38fb93d2bd454acf2c81d | refs/heads/master | 2022-11-04T21:59:12.292582 | 2020-06-18T03:17:22 | 2020-06-18T03:17:22 | 273,130,408 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 946 | py | from ipywidgets.embed import embed_minimal_html
from PIL import ImageFilter
import gmaps
gmaps.configure(api_key="AIzaSyCo99awBRG0JvRCoJC8M12-3EiAoLfElSM")
fig = gmaps.figure()
from PIL import Image
im = Image.open("/Users/Aakash/36.070403, 68.629560, 68.673354.png")
inputim=im.filter(ImageFilter.ModeFilter(8))
inputim... | [
"noreply@github.com"
] | noreply@github.com |
f284deeabab19ea1adbc370ff61a3d7bf21a0ee6 | 99052370591eadf44264dbe09022d4aa5cd9687d | /install/lib/python2.7/dist-packages/cartesian_planner/msg/_cart_moveGoal.py | f245dd6ac0ba90eb7cf6a28424f7787009277745 | [] | no_license | brucemingxinliu/ros_ws | 11b1a3e142132925d35b3adf929f1000392c5bdc | 45f7e553ea20b79e3e93af5f77a1b14b64184875 | refs/heads/master | 2021-01-24T03:36:47.043040 | 2018-02-26T00:53:37 | 2018-02-26T00:53:37 | 122,892,702 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,447 | py | # This Python file uses the following encoding: utf-8
"""autogenerated by genpy from cartesian_planner/cart_moveGoal.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
import geometry_msgs.msg
import std_msgs.msg
class cart_moveGoal(genpy.Message):
_m... | [
"mxl592@case.edu"
] | mxl592@case.edu |
45fa2dbee61e221e1175c00b267661e423d7a2be | 757facc4046b40664b6b679f7e3a58c1da48845a | /ex19.py | 0072fad8ad8c91b1dc3d859d289b283a3763b5fa | [] | no_license | Samkelo-Kinetic/Kinetics | 2990e6740df8b1ce2768ce2243872f8407895c3c | 963b1df057559a395f7b61eea32552c8fd917c84 | refs/heads/master | 2020-03-27T23:53:33.330280 | 2018-10-12T12:28:19 | 2018-10-12T12:28:19 | 147,355,885 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 703 | py | #Functions and Variables
def cheese_and_crackers(cheese_count, boxes_of_crackers):
print "You Have %d cheeses!" % cheese_count
print "You have %d boxes of crackers!" % boxes_of_crackers
print "Man that's not enough for party!"
print "Get a blanket.\n"
print "we can just give the function numbers directly:"
cheese_... | [
"samkelo@kineticskunk.com"
] | samkelo@kineticskunk.com |
256bb7942ddc5136f4fa22e73823cc34bb46d2c0 | 0156514d371c04da404b50994804ede8d264042a | /rest_batteries/exception_handlers.py | 15824e0dd41058bf34e5dd42c73220ed016ef552 | [
"MIT"
] | permissive | defineimpossible/django-rest-batteries | 68b074f18fcae304b9bac4a242f9a9eea98c6e9c | 951cc7ec153d1342a861d7f6468862000d5ea9f3 | refs/heads/master | 2023-07-21T10:45:18.133691 | 2023-07-11T02:52:45 | 2023-07-11T02:52:45 | 284,420,681 | 21 | 0 | MIT | 2023-07-11T02:34:06 | 2020-08-02T08:19:39 | Python | UTF-8 | Python | false | false | 397 | py | from rest_framework.views import exception_handler
from .errors_formatter import ErrorsFormatter
def errors_formatter_exception_handler(exc, context):
response = exception_handler(exc, context)
# If unexpected error occurs (server error, etc.)
if response is None:
return response
formatter ... | [
"denis.orehovsky@gmail.com"
] | denis.orehovsky@gmail.com |
69bc2b87b4e297ce71f450a7c46c546972fa3449 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /PSg77AZJGACk4a7gt_6.py | 5bcd00492613d502e7d26232c6bfe6cf615fc660 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 737 | py | """
For this challenge, forget how to add two numbers together. The best
explanation on what to do for this function is this meme:

### Examples
meme_sum(26, 39) ➞ 515
# 2+3 = 5, 6+9 = 15
# 26 + 39 = 515
meme_sum(122, 81) ... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
71235e6cef2af20b7446f10bffc9e56fb288f23a | b1a93e393d94e493234e8c9ed00142cf692206a5 | /test_country_sorting.py | f6da434692d40d742476a3b57c132b02d8e7a0ce | [
"Apache-2.0"
] | permissive | mmarcikk/selenium_training | 2a0c811995c62793e623c61e569c247f853b6af9 | ff57a0498866a1aba0b484c79218bce494dfe218 | refs/heads/master | 2021-05-05T05:05:43.661873 | 2018-03-01T09:31:22 | 2018-03-01T09:31:22 | 118,660,132 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,060 | py | import pytest
from selenium import webdriver
@pytest.fixture
def driver(request):
wd = webdriver.Chrome()
wd.implicitly_wait(2)
request.addfinalizer(wd.quit)
return wd
def test_country_alphabetical_order(driver):
driver.get("http://localhost:8084/admin/?app=countries&doc=countries")
driver.f... | [
"marta.chimiak@stxnext.pl"
] | marta.chimiak@stxnext.pl |
1483f821c0627d6b8a82c9014eb08f848bc8b71b | 97a5c3db7ee6dbd42c3594311fc37ac9a933dc2b | /user/forms.py | 181a19a22ed17552ba2e214f089d86cb4243e70a | [] | no_license | abhi877/Instagram_Clone | 0f972d48b1e43173f7a005845d579c4f99800931 | 77817165003e2f3c67aeee009ed5cd0e3febace2 | refs/heads/main | 2023-08-25T08:40:49.507770 | 2021-09-23T15:29:14 | 2021-09-23T15:29:14 | 409,145,361 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,896 | py | from django import forms
from django.contrib.auth.forms import UserCreationForm, AuthenticationForm
from django.contrib.auth import password_validation
from django.contrib.auth.models import User
from django.utils.translation import gettext_lazy as _
from .models import Profile
from django.contrib.auth.forms import Pas... | [
"kumar.abhina5670@gmail.com"
] | kumar.abhina5670@gmail.com |
e1c6b945316596e701607f76ce9c27b844005759 | 83a4ff375458206a06e8e9bd029ed2a50eb3fa4f | /green/iMetricalCouch/src/imetricalcouch.py | 208722974e9a7822f59095436273ed7b811df1eb | [] | no_license | daneroo/snookr-gcode | fdb4977b2ea2ddb70a3e6cd085a0f7925aabd63c | a30f7910a08dfaa5812dbc8a2989c553da1ad353 | refs/heads/master | 2021-01-25T07:33:58.205388 | 2017-07-27T19:36:32 | 2017-07-27T19:36:32 | 32,338,790 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,090 | py | # populate couch instance with imetrical data
#
#import simplejson as json
import json
import urllib2
import datetime
import couchdb
__author__="daniel"
__date__ ="$Oct 31, 2010 6:57:01 PM$"
JSONURL = "http://cantor/iMetrical/getJSON.php";
COUCHDBNAME = "imetricaltest"
couch = couchdb.Server()
#couch = couchdb.Server... | [
"daneroo@users.noreply.github.com"
] | daneroo@users.noreply.github.com |
4bc6b2ded7a42b226ac3a04ee7c6be4878dd796e | 8ca4992e5c7f009147875549cee21c0efb7c03eb | /mmseg/models/decode_heads/nl_head.py | bbbe70b5fb7233fd840941678657950119fda43e | [
"Apache-2.0"
] | permissive | JiayuZou2020/DiffBEV | 0ada3f505fc5106d8b0068c319f0b80ed366b673 | 527acdb82ac028061893d9d1bbe69e589efae2a0 | refs/heads/main | 2023-05-23T07:25:39.465813 | 2023-04-04T02:53:05 | 2023-04-04T02:53:05 | 613,895,691 | 181 | 8 | null | null | null | null | UTF-8 | Python | false | false | 1,655 | py | # Copyright (c) OpenMMLab. All rights reserved.
import torch
from mmcv.cnn import NonLocal2d
from ..builder import HEADS
from .fcn_head import FCNHead
@HEADS.register_module()
class NLHead(FCNHead):
"""Non-local Neural Networks.
This head is the implementation of `NLNet
<https://arxiv.org/a... | [
"noreply@github.com"
] | noreply@github.com |
dfde88d376bff11e0d3d19554790b4b6966a9654 | 7d1c9017a7744deb1681b2d646feb4212e65d0ec | /lib/build_pack_utils/runner.py | e01a3d634f79465b5be021da57008185de88dbff | [
"Apache-2.0"
] | permissive | puteulanus/cf-php-build-pack | db8fe5623f329b3c44006fd695e0214621f85cfe | 3e125a7819bcf36c5c71fd4458bb567b6eb327ff | refs/heads/master | 2020-05-23T11:16:11.797222 | 2014-10-15T04:13:52 | 2014-10-15T04:13:52 | 25,183,730 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,850 | py | import os
import os.path
import tempfile
import subprocess
import logging
# This and check_output are shims to support features of Python 2.7
# on Python 2.6.
#
# This code was borrowed from PyPy 2.7.
# bitbucket.org/pypy/pypy/src/9d88b4875d6e/lib-python/2.7/subprocess.py
#
# This can be removed when the CloudFou... | [
"dmikusa@gopivotal.com"
] | dmikusa@gopivotal.com |
0a9e46657142adcba4376c195fd5c89f84670629 | 85ed63e6ae798cc26bb7db989912405c2675dbb2 | /simpleTest04Client_.py | 0c4cdf64475499e51798185a532224a138493103 | [
"MIT"
] | permissive | LaplaceKorea/APIClient | 3608011f81e432237ed8c047b28e6323db3121fa | e772482c3d9cbedee98f46a3529dca5acc254f3c | refs/heads/main | 2023-07-20T06:33:37.141537 | 2021-08-26T15:48:42 | 2021-08-26T15:48:42 | 380,518,632 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,113 | py | from LaplaceWSAPIClient import *
from MarkowitzSerde import *
from TargetSerde import *
from Operators import *
from TargetOperators import *
from RLStructure import *
from ClientConfig import client_config
query = RLQuery("default", datetime(2021,1,1), datetime(2021,1,21), {
"BankAccount": 100000.0,
... | [
"renoir42@yahoo.com"
] | renoir42@yahoo.com |
2f2a1743222841ff34512aa1889a1587bd61b5ce | c759ca98768dd8fd47621e3aeda9069d4e0726c6 | /codewof/users/forms.py | 211e37a2e4797d3fa23af236d3215009c7f787c4 | [
"MIT"
] | permissive | lucyturn3r/codewof | 50fc504c3a539c376b3d19906e92839cadabb012 | acb2860c4b216013ffbba5476d5fac1616c78454 | refs/heads/develop | 2020-06-24T08:25:28.788099 | 2019-08-12T02:50:35 | 2019-08-12T02:50:35 | 198,912,987 | 0 | 0 | MIT | 2019-08-07T03:22:21 | 2019-07-25T23:17:17 | Python | UTF-8 | Python | false | false | 1,132 | py | """Forms for user application."""
from django.forms import ModelForm
from django.contrib.auth import get_user_model, forms
User = get_user_model()
class SignupForm(ModelForm):
"""Sign up for user registration."""
class Meta:
"""Metadata for SignupForm class."""
model = get_user_model()
... | [
"jackmorgannz@gmail.com"
] | jackmorgannz@gmail.com |
943610c3817b120f676b87e3cbd7e064f2385257 | e5bf65908b04192d4ea540f8bf49f887d06c1195 | /Python_BootCamp_CE/ForLoop.py | 59dfba69479b57cd052bbd80dda1c6d59669a6c8 | [] | no_license | druplall/Python_BootCamp_CE | 06ac2b2721fbd21446b82d315f2e0c0438119d53 | 56fa82567ba364302ed350c15e30e5652e8deab2 | refs/heads/master | 2022-02-21T12:09:55.987315 | 2019-08-28T17:55:42 | 2019-08-28T17:55:42 | 197,800,046 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | # For Loop
mylist = [1,2,3,4,5,6,7,8,9,10]
for i in mylist:
if (i % 2 == 0):
print(i)
x = 0
while x < 5:
print(f'The Current value of x is {x}')
x = x+1
else:
print('X is not less than 5')
# What is the 'continue' statement ?
# Goes to the top of the closest enclosing loop
mystring = 'Deoda... | [
"RUPLALLD@coned.com"
] | RUPLALLD@coned.com |
2049346c2d9e4a956951a4fa5b7244e5b807fbb8 | aff98325082a912c84471b7a505ab565175b0289 | /tests/test_progress.py | 2d3bd9a9fdaeb394b7f7af6b7cb5d68b7695ec3e | [
"MIT"
] | permissive | dbazhal/kopf | a10dde232095eaf7104f1623a1f6bfc33cb80363 | ac772f2d7ce1272f47f10ebff784f54a6ec8dcfa | refs/heads/master | 2020-06-15T03:51:57.055815 | 2020-01-13T14:23:29 | 2020-01-13T14:23:29 | 195,031,097 | 0 | 0 | MIT | 2019-07-03T10:21:51 | 2019-07-03T10:21:50 | null | UTF-8 | Python | false | false | 15,676 | py | import copy
import datetime
from unittest.mock import Mock
import freezegun
import pytest
from kopf.structs.status import (
is_started,
is_sleeping,
is_awakened,
is_finished,
get_start_time,
get_awake_time,
get_retry_count,
set_start_time,
set_awake_time,
set_retry_time,
st... | [
"sergey.vasilyev@zalando.de"
] | sergey.vasilyev@zalando.de |
3b08fd39d483dd905b289f19b47dcc45bbbd0504 | c35eaed6e8d6a6e7b3e1194c79f77c04540c6fc6 | /Clone_14/Evaluation/toy_problem.py | 03f32b4db9d8a56623b97613f059000d09498075 | [] | no_license | vishwesh5/OpenMLCPython_v-0.0.5 | 847a48da1f4140398d285cd809590411905260db | 1e690133e2dc70358d89927d95d6ccf81df0af3b | refs/heads/master | 2021-01-21T11:01:01.717518 | 2017-08-24T15:38:10 | 2017-08-24T15:38:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,774 | py | # -*- coding: utf-8 -*-
# MLC (Machine Learning Control): A genetic algorithm library to solve chaotic problems
# Copyright (C) 2015-2017, Thomas Duriez (thomas.duriez@gmail.com)
# Copyright (C) 2015, Adrian Durán (adrianmdu@gmail.com)
# Copyright (C) 2015-2017, Ezequiel Torres Feyuk (ezequiel.torresfeyuk@gmail.com)
# ... | [
"tomar.gatech@gmail.com"
] | tomar.gatech@gmail.com |
bf4a47174593f4b7bd04435e3ac6c004011aa50c | e0a0385f142ca60cc931395736fcf1674163a79a | /Validation/Validate_MNIST.py | 9c1ec82caea8bd9e32dbcc2bb84987e184ea7ffd | [] | no_license | Erwin-rella/DeepDetector | 6e5d7055d6056f9bfb1b5a6479ba4454012421d8 | 3f427037b1a78c99231e776a3b6c8758101ede48 | refs/heads/master | 2023-03-16T06:27:04.057765 | 2018-06-03T16:12:28 | 2018-06-03T16:12:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,039 | py |
# coding: utf-8
# In[1]:
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import numpy as np
import keras
from keras import backend
import tensorflow as tf
from tensorflow.python.platform import flags
from cleverha... | [
"noreply@github.com"
] | noreply@github.com |
61b289a049925e33c432f9de32552768370f1765 | 0db42f51da16217e1436e8b2a25c2105e6807370 | /scrapy/enterprise/utils/__init__.py | d0861ddfc140ae92f26d18ff74941ca17b75dc99 | [
"Apache-2.0"
] | permissive | parker-pu/enterprise | b863e1d4625dd6cdc6d555bedd47ce7511b345b8 | 386f4f05948e17589e84263b5451b0f3b958135f | refs/heads/master | 2023-01-13T15:09:28.944845 | 2019-02-02T10:23:40 | 2019-02-02T10:23:40 | 167,884,746 | 1 | 0 | Apache-2.0 | 2023-01-03T16:17:19 | 2019-01-28T02:15:45 | Python | UTF-8 | Python | false | false | 89 | py | # encoding: utf-8
"""
@version: v1.0
@author: pu_yongjun
@license: Apache Licence
"""
| [
"i54605@outlook.com"
] | i54605@outlook.com |
2aca7809500d412cbb00feadb849529834481c51 | 3beaaf786f8cda63a120c9e9c1591fd5a77a087e | /4-matplotlib/py_chart.py | f0bc32734ebe81b46dad8896cd969d302b8de434 | [] | no_license | masun77/02-DataVis-5Ways | f9859626eea735305409e313fe5b857dfd4b8708 | e01df27782f2a7c5c69132a03b8c4b57367a5f80 | refs/heads/main | 2023-03-01T00:10:02.257639 | 2021-02-13T04:39:21 | 2021-02-13T04:39:21 | 338,385,284 | 0 | 0 | null | 2021-02-13T04:40:52 | 2021-02-12T17:22:58 | HTML | UTF-8 | Python | false | false | 579 | py | import pandas as pd
import matplotlib.pyplot as plt
cars = pd.read_csv('cars-py.csv', sep=',')
colors = {'bmw': 'red', 'ford':'green','honda':'brown','mercedes':'blue','toyota':'purple'}
fig, ax = plt.subplots()
plt.xticks([2000,3000,4000,5000],['2000','3000','4000','5000'])
plt.yticks([10,20,30,40],['10','20','30','... | [
"masun@wpi.edu"
] | masun@wpi.edu |
ef20bd88e4759476dcc75c3f6b7922cfabf9032f | 1e7ce1c56f3030aa6df1e928bab559f50c59bad5 | /helper/bot_manager.py | e3e802244de0a4ed2bbaeaf01f2ee440f75652ae | [] | no_license | AIRob/WxRobot | f7fe37331c399a9d7fb467c7e913f10cc981f8eb | b27a48edb44694d4faa349d68d9b753fe4063276 | refs/heads/master | 2020-06-05T04:53:11.310909 | 2019-05-17T06:46:30 | 2019-05-17T06:46:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25,571 | py | import json
import base64
from threading import Thread
from multiprocessing import Process
import time
from wxpy import *
from databases import models
from . import plugs_manager
import re
import requests
from multiprocessing import Pipe
import os
import threading
from helper.channels_manager import cm
from .plugs_m... | [
"1194681498@qq.com"
] | 1194681498@qq.com |
e914fd2dad05b2f9beae9516cd3e87c48c168c6f | 2eb8659df54a83f3c0f7ade1ca12fa23d289cdf2 | /musixmatch/test.py | c890a48e172cadb48dcca2d3a807e2ae24a89207 | [] | no_license | zmbush/mp-complete | 910c67c8e1ca83c549fb88a9b52e65ff8feba8bd | a590a03aa3afbd80d960e54581f6fd704d31d232 | refs/heads/master | 2023-05-10T21:52:30.568201 | 2012-08-27T18:06:54 | 2012-08-27T18:06:54 | 3,475,577 | 0 | 0 | null | 2023-05-01T20:13:49 | 2012-02-18T02:03:42 | JavaScript | UTF-8 | Python | false | false | 3,238 | py | #!/usr/bin/env python
"""
test.py
by Amelie Anglade and Thierry Bertin-Mahieux
amelie.anglade@gmail.com & tb2332@columbia.edu
Testing code for the pyMusixMatch wrapper.
Can serve as a demo.
(c) 2011, A. Anglade and T. Bertin-Mahieux
This program is free software: you can redistribute it and/or modify
it und... | [
"crabb.andre@gmail.com"
] | crabb.andre@gmail.com |
0474fa45198217580e510aa508fb250d4bbf4922 | 9d346f2981c8cf4cfc21abb73e14278faa9b0e12 | /leetcode/leetcode2.py | 95eff1f96f94b26dd6f2fabad86d7a9b64b86ad3 | [] | no_license | wwwzhangshenzecn/code | c13caf013f780642d47b23a3ed67f58cfcb13f95 | acac4ed98a14c4d2f3636c766ba5fda17896a676 | refs/heads/master | 2020-11-29T09:11:49.555287 | 2020-05-20T14:39:24 | 2020-05-20T14:39:24 | 230,077,629 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 113,626 | py | # Definition for a binary tree node.
# -*- coding: utf-8 -*-
# @Time : 2018/11/11 14:55
# @Author : zz
# @Project : workspace2
# @FileName: leetcode2.py
# 著作权归作者所有(随便拷)。
'''
.-~~~~~~~~~-._ _.-~~~~~~~~~-.
__.' ~. .~ `.__
.'// ... | [
"2511695680@qq.com"
] | 2511695680@qq.com |
f0305eec604f96a1c795b04494e5e2bd3d1ca417 | 14df5d90af993150634e596c28cecf74dffe611f | /imghdr_test.py | 2c67ccbd0946c5e2ff7d38098fb675ccc446307d | [] | no_license | mamaker/IntroPy | 7a0614905b95ab5c15ac94b1245278c3ae5d4ce0 | dfea20eb465077e3512c878c549529a4b9282297 | refs/heads/master | 2020-05-09T18:26:16.681103 | 2019-04-23T01:05:31 | 2019-04-23T01:05:31 | 181,342,054 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 201 | py | # -*- coding: utf-8 -*-
"""
imghdr_test.py
Created on Sat Apr 20 11:19:17 2019
@author: madhu
"""
import imghdr
file_name = 'oreilly.png'
print('File', file_name,'is a:', imghdr.what(file_name))
| [
"madhuvasudevan@yahoo.com"
] | madhuvasudevan@yahoo.com |
b73f63a73d88ec21769484c20ab36f41349fb58a | f294b061203f82e2d38a0aa32c489c63cb7bcc9c | /scripts/get_pose_from_base_camera.py~ | 71fded60ace0752abcec698f06f24d2cf8a975d7 | [] | no_license | birlrobotics/birl_baxter_marker_vision | b2d6916ce8c9493cafe94be8404c1b77fbc25890 | 1bf40837b01122e99c7de891863717ccf1723555 | refs/heads/master | 2021-09-06T13:58:22.842886 | 2018-02-07T08:22:57 | 2018-02-07T08:22:57 | 119,490,136 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,698 | #!/usr/bin/env python
import tf
import numpy as np
import rospy
from geometry_msgs.msg import Pose
import ipdb
from birl_baxter_vision import get_pose
pose_sum = []
listener = None
def cb(req):
global listener
marker_pose = []
if req.flag is True:
global pose_sum
rospy.loginfo("get ... | [
"470963660@qq.com"
] | 470963660@qq.com | |
4f48a8ed86212b4798e38875b2970b4d6d92420d | 7e9b15d1793aaee5873d0047ed7dd0f47f01d905 | /series_tiempo_ar_api/apps/analytics/elasticsearch/constants.py | 0626fc0e4cfa298137da7d090e046ca718473e69 | [
"MIT"
] | permissive | SantiagoPalay/series-tiempo-ar-api | 9822b7eac5714c1ed07ee11664b3608f1fc3e9cf | c0c665fe4caf8ce43a5eb12962ee36a3dd6c2aa4 | refs/heads/master | 2020-04-24T19:41:02.857554 | 2019-02-21T14:43:23 | 2019-02-21T14:43:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 553 | py | from series_tiempo_ar_api.libs.indexing.constants import \
VALUE, CHANGE, PCT_CHANGE, CHANGE_YEAR_AGO, PCT_CHANGE_YEAR_AGO
SERIES_QUERY_INDEX_NAME = 'query'
REP_MODES = [
VALUE,
CHANGE,
PCT_CHANGE,
CHANGE_YEAR_AGO,
PCT_CHANGE_YEAR_AGO,
]
AGG_DEFAULT = 'avg'
AGG_SUM = 'sum'
AGG_END_OF_PERIOD... | [
"19612265+lucaslavandeira@users.noreply.github.com"
] | 19612265+lucaslavandeira@users.noreply.github.com |
c65169c0f5d5ad182a0cbbbc52473534b1556c20 | 41385183a5e2bc980eaf6d3c8620b05324f1cdfb | /app.py | d25389583961b06fde3fa24befa98485fc5d7919 | [] | no_license | lanru2001/Flask_MongoDB_User_Login | 84b6654b6519a2924d7dd05105dc0943337e83ac | 15693abed930c1f50a0a039d2753da0d713499cb | refs/heads/main | 2023-09-04T00:20:12.160065 | 2021-10-02T13:45:50 | 2021-10-02T13:45:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,106 | py | from flask import Flask, render_template, request, url_for, redirect, session
import pymongo
import bcrypt
#set app as a Flask instance
app = Flask(__name__)
#encryption relies on secret keys so they could be run
app.secret_key = "testing"
#connoct to your Mongo DB database
# client = pymongo.MongoClient("mongodb+srv:... | [
"noreply@github.com"
] | noreply@github.com |
939bbd7bf7728c85e4103fe291379ff7cc85c868 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /K9w9hEd9Pn7DtMzjs_19.py | 2d21f26206d7f537dd96e25ad0563a243041c849 | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 113 | py |
def high_low(txt):
lst = [int(char) for char in txt.split(" ")]
return str(max(lst)) + " " + str(min(lst))
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
720b4dcd7ceb3b6dcfe8bd266a64baaada1a0d6b | 8ee4b695683038b6387bc806f654739753fbce11 | /Rock paper scissors game in python.py | 6fd5eb936330a9823643b584e8fed6784302afbf | [] | no_license | nikhilgajam/Python-Programs | 535bc30a1fdf7861e5a2a3cb364fc7acc741cb93 | 0426553d904e8e734cafc1b7fcd627ea3a5c33a4 | refs/heads/master | 2023-05-23T22:18:33.379631 | 2021-06-13T05:54:39 | 2021-06-13T05:54:39 | 262,720,661 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,061 | py | import random
print("Rock Paper Scissors Game\n")
items = ["Rock", "Paper", "Scissors"]
print("Enter r: Rock")
print("Enter p: Paper")
print("Enter s: Scissors")
print("Enter q: Quit")
user_points = 0
comp_points = 0
count = 0
while True:
count += 1
user = input("\nIteration " + str(coun... | [
"noreply@github.com"
] | noreply@github.com |
fe67feca053463568fa8d800a270e350be30e94d | 0042c37405a7865c50b7bfa19ca531ec36070318 | /new_selenium/tech_singelmodel/singel_config.py | f8378ef130aefcd4a7dfb737f7add632fdc2dde0 | [] | no_license | lu-judong/untitled1 | b7d6e1ad86168673283917976ef0f5c2ad97d9e0 | aa158e7541bae96332633079d67b5ab19ea29e71 | refs/heads/master | 2022-05-23T18:55:45.272216 | 2020-04-28T09:55:38 | 2020-04-28T09:55:38 | 257,822,681 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 140 | py | # contents = ['运营数据统计分析系统','单一模型指标分析']
contents = ['RAMS运营数据分析','单一模型指标分析'] | [
"ljd_python@163.com"
] | ljd_python@163.com |
406cb7135c83701c74464890857e900fa021691b | 3a60de7ac2ae35a7de6df41870da9157383c75b2 | /Webapp_v_2_4/index.py | 652c78a5943691f8df233b20d7454cab7e4febbe | [] | no_license | UniteIdeas/linksSDGs-Tagger | 454be9b4b2fe364b04e3995a41865a7c9a1c48e4 | c6bb1de8362195f75238cc7864e6272c236e9314 | refs/heads/master | 2016-08-12T10:39:05.721352 | 2016-02-29T22:10:01 | 2016-02-29T22:10:01 | 52,827,000 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,749 | py | # -*- coding: utf-8 -*-
#### Version includes network viz and links to text and pdf originals
from flask import Flask
from flask import render_template
from flask import request
import os
import json
#import time
#import urllib2
import solr
#### Configuring this app and its associated servers
search_host = 'http://loc... | [
"uniteideas@un.org"
] | uniteideas@un.org |
b8b5c514ebde33ad84487fe3b16f60eed66ee18c | 85f844fa1197f5d296ed3736a2f0754deb094e00 | /pipeline/functions/LessonsClustering/main.py | d05520007e5728e3c63f15ec72b5d06d89e28ae5 | [] | no_license | chainesanbuenaventura/ml-search | eb49b552312992402656e395b39760e6429252d0 | 5f6461d3e173c65650342e27a6822afd3a996d1c | refs/heads/master | 2023-01-14T06:58:18.918785 | 2020-11-25T11:14:16 | 2020-11-25T11:14:16 | 287,909,223 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,621 | py | from argparse import ArgumentParser
import LessonsClustering
import sys
sys.path.append("pipeline/functions/DataFunctions")
sys.path.append("../DataFunctions")
from utils import *
if __name__ == "__main__":
tracking_uri = get_tracking_uri()
# Arguments
parser = ArgumentParser()
parser.add_argument("--mod... | [
"chainesanbuenaventura@yahoo.com"
] | chainesanbuenaventura@yahoo.com |
22b6b99e057bfb747edf85ca484cae0b8799622f | 5c4e935199d80413a60410043cbf368608ff1e57 | /bankaccount.py | a4382d10347ae1f2d47af9d2f0e9b199a90498d1 | [] | no_license | meullah/Bank-System----Tkinter | 7ca17ea9d34e2cdaf08db43470411d2ba4830343 | 1782b8eaeaecf914629b9e5dc52123d88689e60c | refs/heads/master | 2023-01-22T22:32:55.252966 | 2020-12-04T17:35:00 | 2020-12-04T17:35:00 | 318,590,181 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,285 | py | import os
import fileinput
import datetime
class BankAccount(object):
"""
ACME Bank
"""
def __init__(self):
try:
open('users.txt','x')
except :
pass
if not os.path.exists('transactions'):
os.makedirs('transactions')
def accountExists(self... | [
"mehsanullah24@gmail.com"
] | mehsanullah24@gmail.com |
d3dc0e7def2e33d7435887fb84898395ae5bf901 | f7d2e661d35267e64fa2790931958f59db503e0c | /hashtables/ex2/hashtable.py | 373172d760a3d979c81f8bf537a0d35b26dd8349 | [] | no_license | PercivalN/Sprint-Challenge--Hash | aa0b6abae7ffbe9c48a49e802a7356e25c44709e | e6f59089621e623586e202760ba0afd83e129148 | refs/heads/master | 2022-06-11T10:37:22.518070 | 2020-05-08T21:29:14 | 2020-05-08T21:29:14 | 262,352,102 | 0 | 0 | null | 2020-05-08T14:57:51 | 2020-05-08T14:57:51 | null | UTF-8 | Python | false | false | 6,910 | py | class HashTableEntry:
"""
Hash Table entry, as a linked list node.
"""
def __init__(self, key, value):
self.key = key
self.value = value
self.next = None
class HashTable:
"""
A hash table that with `capacity` buckets
that accepts string keys
Implement t... | [
"percival.ngan@gmail.com"
] | percival.ngan@gmail.com |
c0fc7599a4f5f31cd68b27f1dde95262902cb7a4 | d2dee1e5b7b159bdbb41530c1652077f66f67e00 | /manage.py | 924142eda8915f20f0153558d41286928ab87fb4 | [] | no_license | Synkied/shcloud_exercise | ca0f11cd53879c8fcca7c4b2375f29e2084abaf7 | 66e3173ae0fca1fc585391f695539278eb70c3c3 | refs/heads/master | 2023-04-25T02:35:55.625780 | 2021-04-26T20:03:09 | 2021-04-26T20:03:09 | 361,878,143 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 663 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'shcloud.settings')
try:
from django.core.management import execute_from_command_line
except Impo... | [
"synkx@hotmail.fr"
] | synkx@hotmail.fr |
6b52ad8453b36735d8731816f36404c955c16449 | 0a06d43477d8080493b28b98e5a2df56cff6ae1f | /lesson_1/test.py | 3db28e509163dfe048aad274380169fc59845a43 | [] | no_license | mpaolini/python-course-IAL-TSID | 51623476f7dd7cd249adc0956df2c71fa966629b | 071468c5fc7754385aef16e97b12ef273536b433 | refs/heads/master | 2016-09-05T09:45:57.629103 | 2015-06-04T12:34:59 | 2015-06-04T12:34:59 | 31,312,626 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 43 | py | def ciao():
print('Hello!!!!')
ciao()
| [
"marco@credra.com"
] | marco@credra.com |
9eceb655ca509682b537f2575d2cb58e16c98206 | 9991754529fdb40390c0fe3220c7c9093ec516b4 | /rigging/setupOcc/setupOcc.py | 049ce5ac91c5cebd67a556aac8b36401e72f8751 | [] | no_license | skarone/PipeL | daa2e4b5fa8a0760f5959d3cd4b420345efe62cf | 53ddcaffd66ebe16a91c40ff5cab0ae2ba58b04e | refs/heads/master | 2020-05-22T11:55:15.281250 | 2016-03-21T16:51:22 | 2016-03-21T16:51:22 | 8,676,637 | 13 | 5 | null | null | null | null | UTF-8 | Python | false | false | 2,975 | py | import os
import general.ui.pySideHelper as uiH
reload( uiH )
from Qt import QtGui,QtCore
#load UI FILE
PYFILEDIR = os.path.dirname( os.path.abspath( __file__ ) )
uifile = PYFILEDIR + '/setupOcc.ui'
fom, base = uiH.loadUiType( uifile )
import general.mayaNode.mayaNode as mn
import maya.cmds as mc
class SetupOccU... | [
"iurruty@ARTE-03.bittanimation.com"
] | iurruty@ARTE-03.bittanimation.com |
dcf74ea766343e742bb5de34be500e993c65f899 | 9233cb6e005a45b54096ab784b1b42af5de6b7b5 | /Simulator.py | 2ac333f3d0938080eb360795a92adff4407189b1 | [] | no_license | josvinjohn/Linear-Regression-Simulator | 8bdcb297501443371a272c4abbf5ec23e5a6d5d8 | 3ef1d5a7140584df66d80f95098a80ffdbe12265 | refs/heads/master | 2022-12-01T23:14:22.040065 | 2020-08-14T19:18:36 | 2020-08-14T19:18:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,116 | py | import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
import matplotlib.animation as animation
dataset = pd.read_csv('dataset.txt',sep='\t',header=None)
dataset.columns = ["X","y"]
print(dataset.iloc[:, 0].values)
print(dataset.iloc[:,1].values)
x = dataset.iloc[:, 0].values
y = dataset.iloc... | [
"noreply@github.com"
] | noreply@github.com |
7869596e6a636baa7c30ae9a60439ea1836e1a19 | 32ecc35fa7ceb01965e7f94c34a386a847cb4b93 | /cnn.py | fc1418136a0eea31ce4014f37d4457d37e9a87dc | [] | no_license | wenshiqi0/mxnet | f0a8c58d76992d8918bedb5f7e8cef0dd8e78c78 | 44464d199c2a1bfd926d6e59fe87b4ca2918467f | refs/heads/master | 2021-09-09T15:15:08.403455 | 2018-03-17T11:01:07 | 2018-03-17T11:01:07 | 124,996,796 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,315 | py | from __future__ import print_function
import mxnet as mx
import numpy as np
from mxnet import nd, autograd, gluon
ctx = mx.gpu()
mx.random.seed(1)
batch_size = 64
num_inputs = 784
num_outputs = 10
def transform(data, label):
return nd.transpose(data.astype(np.float32), (2, 0, 1)) / 255, label.astype(np.float32)
... | [
"shiqi.wsq@alipay.com"
] | shiqi.wsq@alipay.com |
ea903c783288555a020424311efe615d58374292 | b21d95e53d6ace067f6b8118c3e09113978b16ac | /lib/passlib/registry.py | 8f42a8521fd167c559c897f08567298071e329c6 | [] | no_license | makahmad/Joobali | e7293027ab19ffda530419b05952425325b1882e | 6e4e5f5dbec2ecfb4dc2cb677635309e5820affe | refs/heads/master | 2023-01-28T23:04:42.886376 | 2020-12-07T17:32:00 | 2020-12-07T17:32:00 | 58,698,187 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,298 | py | """passlib.registry - registry for password hash handlers"""
#=============================================================================
# imports
#=============================================================================
# core
import re
import logging; log = logging.getLogger(__name__)
from warnings import war... | [
"rongjian.lan@gmail.com"
] | rongjian.lan@gmail.com |
bc5454dd5411448ab82a301cfd2fe7ed486cdfaa | 135773b18ab8e957ac61466a4eeb6f974ad795e7 | /venv/Scripts/futurize-script.py | 4d617d215f65e092ce3072c1be334b6217910269 | [] | no_license | ihinojos/Sheets | fd81f57bb4c713016f37e850baf09b24c8b6da1d | 549b76b5b61bfaddd45934abe6d1b1f77b12aa4e | refs/heads/master | 2022-07-20T05:43:12.999853 | 2020-05-21T18:48:45 | 2020-05-21T18:48:45 | 259,423,440 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 428 | py | #!c:\users\dev3\pycharmprojects\sheets\venv\scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'future==0.18.2','console_scripts','futurize'
__requires__ = 'future==0.18.2'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', s... | [
"antdraws13@gmail.com"
] | antdraws13@gmail.com |
d4bb2b3d28352b9927a2b1a2b8a2706afba0981f | fcddb64166f5ba89f5014e1413af6b4f8a8a3ac3 | /qed/navbar.py | 07fc69b87aa5b876bb573003d4bd6060cf2df9d6 | [] | no_license | FBOBecker/qed | e93e831b1f53a381caa3bdc13922132b9af55134 | 6a63a5c45c36d2e4f2b482465306416e51462e65 | refs/heads/master | 2021-01-24T21:49:18.565133 | 2016-07-17T23:22:38 | 2016-07-17T23:22:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,403 | py | from dominate.tags import a, button, div, form, input_, li, nav, span, ul
from flask import url_for
from flask_login import current_user
from flask_nav.elements import Navbar as Navbar_, NavigationItem, Subgroup, View
from flask_nav.renderers import Renderer
from flask_wtf.csrf import generate_csrf
class Input(Na... | [
"buwen@stud.uni-heidelberg.de"
] | buwen@stud.uni-heidelberg.de |
7f01a5a3e8fa25cb87fb0996c7a9b9c9c659ec35 | accf13fe9fe93f7bac349ab787f126ad2f31ceba | /Exercise Files/02_01/begin/readInData-1.py | 208198243c853e5bdda36e9b63e74bb13e3c7df2 | [] | no_license | BB-AMarcelo/python_automation_learning | ef4097d3cae51d4b29d542a6f5dfc313a5ce482d | f83f6daaf2c801b5a6887bc494d6372af1173e19 | refs/heads/master | 2020-09-05T09:46:42.749986 | 2019-11-14T20:31:07 | 2019-11-14T20:31:07 | 220,062,265 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 792 | py | import csv
#final desired format
# - Charts [["Test Name",<diff from avg>]]
# - spreadsheet [["Test Name",<current run time>]]
timing_data = []
with open('TestTimingData.csv') as csv_file:
file_reader = csv.reader(csv_file)
for row in file_reader:
timing_data.append(row)
column_chart_data =... | [
"tester@MBP11.local"
] | tester@MBP11.local |
11b96266483b3e7939e1aeb6c29df9ca08fa6764 | f89fa59bcf723a66f06bff8ef75e802332c1ac07 | /tests.py | 93782563a13e8c2ec45310e4fc61a3b9ddb0d144 | [] | no_license | mccutchen/chirp | cbf1fd4fb79d83ecceafcf28a90fc67f53f25c82 | 0754feaeb8e04a08cd412c17a4ce55dbd76389bd | refs/heads/master | 2020-05-05T04:09:20.506439 | 2011-03-04T18:29:09 | 2011-03-04T18:29:09 | 1,440,284 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,445 | py | import logging
import os
import sys
import unittest
import chirp
class ChirpTests(unittest.TestCase):
def setUp(self):
self.api = chirp.TwitterAPI()
def test_attr_access(self):
new_api = self.api.a.b.c.d.e.f
self.assertEqual(len(new_api.paths), 6)
def test_call_access(self):
... | [
"mccutchen@gmail.com"
] | mccutchen@gmail.com |
544ca010b5e55048830c590e8cc544464701b734 | 72d18e69d2885136fabc91bb754373cbbcb299f6 | /Functions_Intro/fizzbuzz.py | 616122561289aa97e040c6dfce131d9c2f9c6650 | [] | no_license | adam-xiao/PythonMasterclass | eaf2528c6e2546f6ff3cab83589c2a8ac9bcc36d | 63e6420fc2bd7ee511baae6ecb39faeadc228abe | refs/heads/master | 2023-01-04T13:55:40.138174 | 2020-11-01T07:10:59 | 2020-11-01T07:10:59 | 292,721,909 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 924 | py | def fizz_buzz(n: int) -> str:
"""
Returns a different string depending on the divisiblity of `n`
3: fizz
5: buzz
3 & 5: fizz buzz
:param n: A positive integer `n`
:return: A string
"""
if (n % 3 == 0) and (n % 5 == 0):
return "fizz buzz"
elif n % 5 == 0:
return "b... | [
"42500628+adam-xiao@users.noreply.github.com"
] | 42500628+adam-xiao@users.noreply.github.com |
a665bef85088b02f9afefbab6d33cec9c86181e8 | b7cfdeb15b109220017a66ed6094ce890c234b74 | /AI/deep_learning_from_scratch/numpy_prac/multidimensional_array.py | f4bcc03331c3e16239389b8444d40b2f660af3db | [] | no_license | voidsatisfaction/TIL | 5bcde7eadc913bdf6f5432a30dc9c486f986f837 | 43f0df9f8e9dcb440dbf79da5706b34356498e01 | refs/heads/master | 2023-09-01T09:32:04.986276 | 2023-08-18T11:04:08 | 2023-08-18T11:04:08 | 80,825,105 | 24 | 2 | null | null | null | null | UTF-8 | Python | false | false | 188 | py | import numpy as np
B = np.array([[1, 2], [3, 4], [5, 6]])
B
np.ndim(B) # 2
B.shape # (3,2) 3x2 행렬
A = np.array([[1,2,3], [4,5,6]])
B = np.array([[1,2], [3,4], [5,6]])
np.dot(A, B)
| [
"lourie@naver.com"
] | lourie@naver.com |
48d70c3eed035084cc535a73b7e1c60aaf418000 | c36ffaf0b4004a0b6722095433b04cc07cac802c | /U4/src/A2.py | 9ba1644cb050540a23eb2cbfb56a31c9e00bf89b | [] | no_license | maqnius/oops17 | f6fac2270c99e99f4a69c6063d0b6dca5c738447 | 2b9e9dec7e54ce3f382148c73c6bed91311fcb3f | refs/heads/master | 2021-01-20T02:46:39.612547 | 2017-07-11T15:35:46 | 2017-07-11T15:35:46 | 89,450,560 | 0 | 0 | null | 2017-06-29T11:07:31 | 2017-04-26T07:19:42 | TeX | UTF-8 | Python | false | false | 1,490 | py | """
Aufgabe 2
Hessmann, Niehues, Pedersen
Demonstrates the Towers of Hanoi using a recursive algorithm.
Similar to solution:
http://www.python-kurs.eu/tuerme_von_hanoi.php
"""
def hanoi(n, source, helper, target, rekursionstiefe = 0):
if n > 0:
# move tower of size n - 1 to helper:
hanoi(n - 1, s... | [
"niehues.mark@gmail.com"
] | niehues.mark@gmail.com |
be96602ccb3fb8939c250900b97e89fa6f24ed7f | 8771a872ca186b33086de185501e04d8937f5630 | /LSTM_MDN_HAND_S1.py | 6ad76eb2ec373fc6aec5b98be31ad43caf753846 | [] | no_license | johnlarkin1/handwriting-synthesis-e90 | 39a73a8c87fdcf7e63215fb92f0edf314df53e60 | 1e96c7e2a523b871120280fef1a5685107743b95 | refs/heads/master | 2021-01-11T17:54:34.560564 | 2017-05-13T13:00:46 | 2017-05-13T13:00:46 | 79,867,395 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 32,708 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import numpy as np
import matplotlib.pyplot as plt
import tensorflow as tf
from collections import namedtuple
import sys
import os
from MDNClass import MDN
from DataLoader import DataLoader
from g... | [
"john@johnjlarkin.com"
] | john@johnjlarkin.com |
cf3f7d4b603af16a1a425ff974ad35b791f632d2 | dadf439ca3d004fe2794aff7be637b0864b670a4 | /app.py | 37fcf91437ae864db2e138f9f7e80b8eee6dd97b | [] | no_license | GlobalMediaBridge/cosmetic-server | 47803a5367544cb26c6edaff0535b98d8df52a66 | 8b46ad4d90a064aacd603539ab131858b377d566 | refs/heads/master | 2022-06-29T02:56:12.175285 | 2020-05-13T08:09:57 | 2020-05-13T08:09:57 | 237,736,639 | 0 | 2 | null | 2020-03-10T04:13:52 | 2020-02-02T07:45:06 | Python | UTF-8 | Python | false | false | 48 | py | from flaskr import app
app.run(host='0.0.0.0')
| [
"dmsdn960@gmail.com"
] | dmsdn960@gmail.com |
99ad59c775b63230f25d7993be8b872c6b228962 | 101597749f454c69c1e58c9b162e70e4aece48a4 | /migrations/versions/b80821e6bdb4_.py | 5ebff4530ebfa76ed008789f5983eec3a13eac5a | [] | no_license | williamle92/DivvyChallenge | 86faf99c6227816291cebffc6efb891ec4773d6a | 3e71dfe36566a6e9f48565c3cb1fab9d36247907 | refs/heads/main | 2023-07-13T12:41:01.042602 | 2021-08-20T10:30:08 | 2021-08-20T10:30:08 | 377,760,023 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,373 | py | """empty message
Revision ID: b80821e6bdb4
Revises:
Create Date: 2021-06-16 20:29:08.531109
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'b80821e6bdb4'
down_revision = None
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto gene... | [
"william1992le@gmail.com"
] | william1992le@gmail.com |
ae91760c4985aeba9d571a6564528f4b4efec575 | f474177a0a233e24ef0f1e2e703c0bd8cbc5275c | /produce_html.py | d35e062b1699c415a7357c9886b9caff74b97f73 | [] | no_license | GeekSi/PythonAndroidPresureTest | ad27ea6643fd83fb623a0f5eccb2a250b41917ca | e350b6558e7577c3dccfb5c8be811fa831605af5 | refs/heads/master | 2023-03-23T16:38:46.070071 | 2021-03-15T07:47:43 | 2021-03-15T07:47:43 | 293,988,312 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 151 | py | import create_chars
from utils import utils
from constant import constants
create_chars.createChars()
utils.open("file://" + constants.PATH_CHARS) | [
"siqing@baidu.com"
] | siqing@baidu.com |
1e89afd9a83db8cd06e1c65eddbaa5eba67c16bd | 082bb9ec05031022a7779afc3a819c857b3e582a | /routes/reply.py | e7be4d61f75502db2e292ec88d203e86d88d35ea | [] | no_license | yuanzhw/forum-server | 43e0357aeaa7796ebb669d854cc87e04e02a0072 | 863da7590da66f422258d3b03baa7927b3dc8409 | refs/heads/master | 2020-04-16T23:36:27.688666 | 2020-01-29T15:59:40 | 2020-01-29T15:59:40 | 166,018,310 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,006 | py | from flask import (
request,
redirect,
url_for,
Blueprint,
)
from utils import response
import status
from models.reply import Reply
from routes.helper import current_user, login_required, csrf_required, new_csrf_token
main = Blueprint('reply', __name__)
@main.route('/new', methods=['POST'])
@login_r... | [
"yuanzhw@vip.qq.com"
] | yuanzhw@vip.qq.com |
1b42aa6b93abad9f4afde19580c025c5be9f9167 | b792116b8f9b48b53464f55996338dcb451d6af9 | /tests/functional/services/transfer/endpoint_manager/test_endpoint_manager_task_successful_transfers.py | 528a2977c8d5f7dc1f356bd8dd042e1683c3e73c | [
"Apache-2.0"
] | permissive | globus/globus-sdk-python | 7884084dbe889300604d2ef1bb0a9ee351046fc2 | a5d7c02ede2b9cb794444305f3039a0cd82bab3a | refs/heads/main | 2023-09-01T15:15:17.499197 | 2023-08-30T21:47:08 | 2023-08-30T21:47:08 | 53,344,710 | 61 | 44 | Apache-2.0 | 2023-09-12T01:59:30 | 2016-03-07T17:26:28 | Python | UTF-8 | Python | false | false | 376 | py | from globus_sdk._testing import load_response
def test_endpoint_manager_task_successful_transfers(client):
meta = load_response(client.endpoint_manager_task_successful_transfers).metadata
response = client.endpoint_manager_task_successful_transfers(meta["task_id"])
assert response.http_status == 200
... | [
"noreply@github.com"
] | noreply@github.com |
847306585ef3a46f500482752ba79115adf8c449 | 9d454ae0d5dd1d7e96e904ced80ca502019bb659 | /1550_threeConsecutiveOdds.py | 94c3d3a5aabfa1262828a5bafb4860615440bd8a | [] | no_license | zzz686970/leetcode-2018 | dad2c3db3b6360662a90ea709e58d7facec5c797 | 16e4343922041929bc3021e152093425066620bb | refs/heads/master | 2021-08-18T08:11:10.153394 | 2021-07-22T15:58:52 | 2021-07-22T15:58:52 | 135,581,395 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 123 | py | def threeConsecutiveOdds(arr):
return any([False if i < 2 else arr[i-2] & arr[i-1] & arr[i] & 1 for i in range(len(arr))]) | [
"1564256031@qq.com"
] | 1564256031@qq.com |
05665fcf64d3a5dce47280b02e07942c49888a5f | 065483e0cf041897f155cfe2b0de3e33bd55388a | /cellseg_models_pytorch/decoders/long_skips/merging/sum.py | ff2bc8791ce74453acd644cdca6e59dc330f499e | [
"MIT",
"Apache-2.0",
"BSD-3-Clause"
] | permissive | okunator/cellseg_models.pytorch | 234d2a66d2eebda8348487bcd26f4083a09f5dcc | 7f79405012eb934b419bbdba8de23f35e840ca85 | refs/heads/main | 2023-09-04T11:38:58.802570 | 2023-08-29T13:07:38 | 2023-08-29T13:07:38 | 450,787,123 | 43 | 0 | MIT | 2023-03-27T09:23:26 | 2022-01-22T10:39:50 | Python | UTF-8 | Python | false | false | 2,877 | py | from typing import Tuple
import torch
import torch.nn as nn
from cellseg_models_pytorch.modules import Conv, Norm
__all__ = ["SumBlock"]
class SumBlock(nn.ModuleDict):
def __init__(
self,
in_channels: int,
skip_channels: Tuple[int, ...],
convolution: str = "conv",
normal... | [
"noreply@github.com"
] | noreply@github.com |
d1151a3774182955baa6a2bb9d92711c09ca72db | dc5876f4f26bca276253985e5aadaaddafe476a7 | /books/models.py | ee6ec46f3b15a20409ff9add61de6ae5b4ee9086 | [] | no_license | SidAhmed01/Library-Management-System-With-Python-Django | 2805b01ad701869ca8a4ced8aa0e0865614f3533 | c0ec4da5dcca2300ee32f68674b7ee410b9be19b | refs/heads/main | 2023-07-07T16:10:19.661261 | 2021-07-31T10:34:52 | 2021-07-31T10:34:52 | 387,015,953 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,281 | py | from django.db import models
# Create your models here.
class category(models.Model):
name = models.CharField(max_length=50)
def __str__(self):
return self.name
class Book(models.Model):
status_book = [
('availble','availble'),
('rental','rental'),
('sold','sold'),
]... | [
"aitalisidou@gmail.com"
] | aitalisidou@gmail.com |
1457243d3f4ccfa460915b008bfdd848f9970fe5 | cf7b0ab779e273c3a553fa7e6ca4e98c524ec8f9 | /JKDatabaseSystem/predict.py | d55f3908698c089bdba163affcb10aea25be2673 | [] | no_license | zenmeder/JKDatabaseSystem | 369a40172420eb1f783467b5884e6e94f6fa9a71 | 146a552e549c9a1ef131bb475ecf5e8947696a6c | refs/heads/master | 2020-03-19T09:12:41.774587 | 2018-06-12T03:04:56 | 2018-06-12T03:04:56 | 136,268,860 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 40,410 | py | #!/usr/local/bin/ python3
# -*- coding:utf-8 -*-
# __author__ = "zenmeder"
from django.shortcuts import render
from django.http import HttpRequest, JsonResponse
from JKDatabaseSystem.TimeSeriesData import TimeSeriesData
from fbprophet import Prophet
import datetime
import pandas as pd
TEST_DATA = {0: {'2014-03-07 12... | [
"zenmeder@gmail.com"
] | zenmeder@gmail.com |
c40982d331906201733f34caceac7c488ca33a41 | a5486f0330a55340cf94c919019434ea0112c0f7 | /viewer/app/__init__.py | 3af0746464e3e75a22223a7c1958c4f77e2981e8 | [] | no_license | CPJKU/audio-tagger | a0194e8faa57ea16a298f35428c614a097d29671 | 08c12af04d887f6a671e7019f83274b360489722 | refs/heads/master | 2020-05-20T03:09:37.010832 | 2019-09-04T06:14:51 | 2019-09-04T06:14:51 | 185,350,579 | 5 | 2 | null | null | null | null | UTF-8 | Python | false | false | 187 | py | """This package contains the functional component
of the kivy app which covers event functions, initializations
and periodic updates of visualization and view via
clocking mechanism.
""" | [
"alex@jku.at"
] | alex@jku.at |
5909b8a429dde3c3db85365a4a2fcafe8504a73c | 6febd920ced70cbb19695801a163c437e7be44d4 | /leetcode_oj/string/strStr.py | b0bc9a66ec3e9adf67f316f37ee2da101b6c25ef | [] | no_license | AngryBird3/gotta_code | b0ab47e846b424107dbd3b03e0c0f3afbd239c60 | b9975fef5fa4843bf95d067bea6d064723484289 | refs/heads/master | 2021-01-20T16:47:35.098125 | 2018-03-24T21:31:01 | 2018-03-24T21:31:01 | 53,180,336 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 538 | py | class Solution(object):
def strStr(self, haystack, needle):
"""
:type haystack: str
:type needle: str
:rtype: int
"""
if not haystack and not needle:
return 0
for i in range(len(haystack) - len(needle) + 1):
match = True
for... | [
"dhaaraa.darji@gmail.com"
] | dhaaraa.darji@gmail.com |
543d885088808f62594479bc296f3be23612b33d | 42fdf741bf64ea2e63d1546bb08356286f994505 | /test_20160921_macroblk_generation/rasp30_vmm_gen7.py | 5a540d9b8d4bc1419081b28fb7ceb4a4349b1771 | [] | no_license | skim819/RASP_Workspace_sihwan | 7e3cd403dc3965b8306ec203007490e3ea911e3b | 0799e146586595577c8efa05c647b8cb92b962f4 | refs/heads/master | 2020-12-24T05:22:25.775823 | 2017-04-01T22:15:18 | 2017-04-01T22:15:18 | 41,511,563 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 996 | py | self.dev_types =['fgota']*2 + ['ota_buf']*1 + ['ota']*1 + ['ota_vmm']*1 + ['cap']*4+ ['nfet']*2 + ['pfet']*2 + ['tgate']*4 + ['nmirror_vmm']*2+['ladder_blk']*1+ ['c4_blk']*1+ ['speech']*1+ ['INFneuron']*1+ ['lpf']*1+['nfet_i2v']*1+['pfet_i2v']*1+['nmirror_w_bias']*1+['fgswc_nmirror_w_bias']*1+['i2v_pfet_gatefgota']*1+... | [
"ubuntu@ubuntu-VirtualBox.(none)"
] | ubuntu@ubuntu-VirtualBox.(none) |
a7e448139f2bd614be72df1a7ece9dde49e3be0f | 2a7e44adc8744c55a25e3cafcc2fa19a1607e697 | /settings_inspector/management/commands/inspect_settings.py | 6f7437af5ca147fdd91a75feddb2467cdbec5bf7 | [
"MIT"
] | permissive | fcurella/django-settings_inspector | 45529288dc8dde264383739c55abe6a9d2077ded | 69a6295de865f540d024e79aab4d211ce3c1d847 | refs/heads/master | 2020-06-04T01:57:17.216783 | 2012-01-05T19:05:12 | 2012-01-05T19:05:12 | 2,989,324 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 256 | py | from settings_inspector.parser import Setting
from django.core.management.base import NoArgsCommand
class Command(NoArgsCommand):
def handle(self, *args, **options):
root_setting = Setting('django.conf')
import ipdb; ipdb.set_trace()
| [
"flavio.curella@gmail.com"
] | flavio.curella@gmail.com |
f940e17f31240e7c8c9de2238a058a19ddc44b9f | 3e622c2428ef8ccf8b8e16a7f2dfeb5f5d1b4c09 | /meiduo_mall/apps/areas/urls.py | d11b42b1bc351d90748479a576309e3a7ce95cbc | [] | no_license | Frankie379350068/meiduo_project_0417 | 24a0b8ec2972f50bff87ee77ddc91519020a4207 | f4b52ae623ce03fc2b91f1dfeaa75c5245a51742 | refs/heads/master | 2022-10-11T23:27:43.940643 | 2020-06-04T13:39:44 | 2020-06-04T13:39:44 | 266,492,507 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 333 | py | from django.urls import path
from . import views
urlpatterns = [
# 查询省份地址: http://www.meiduo.site:8000/areas/
path('areas/', views.ProvinceAreasView.as_view()),
# 查询父级下属地址: http://www.meiduo.site:8000/areas/(?P<pk>[1-9]\d+)/
path('areas/<int:parentid>/', views.SubsAreasView.as_view()),
] | [
"379350068@qq.com"
] | 379350068@qq.com |
bf6038797d7302d368104f829deeb64bcbc334af | 5a34aff166990d6bc0a17ce15a123122b28844af | /highestProd3Ele.py | ce59746d6e5980f0f28d06454e6323cac0846837 | [] | no_license | monkeydunkey/interviewCakeProblems | 6ba01f5a54309b4af87c35314441b59734401e75 | a4b17026a812e88ae6888c997a254353de4980c1 | refs/heads/master | 2021-04-26T23:50:45.668819 | 2018-05-28T06:57:22 | 2018-05-28T06:57:22 | 123,868,341 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 676 | py | import heapq
def highestProd(li):
h1, h2 = [], []
for i, l in enumerate(li):
if l < 0:
if len(h2) < 2:
heapq.heappush(h2, abs(l))
elif h2[0] < abs(l):
heapq.heappop(h2)
heapq.heappush(h2, abs(l))
if len(h1) < 3:
... | [
"bhushan.shashank93@gmail.com"
] | bhushan.shashank93@gmail.com |
88b8a76d8eea00920d813fef2ae4105f8208a9db | 14bbbb474765cfa43f73d52e68ce66b4b9f04f7e | /lab02/lab02example01/scripts/subscriber_node.py | 918f029842c6bb8fbc85fc5af45327f81293b04f | [] | no_license | ucabwl2/robotics_system_hw | 267a6d209cb9df37f68261092d0c4f41c4b3e40e | 5da51ce01498ba1f4693522ac51467858e268cae | refs/heads/main | 2023-01-31T18:44:16.006437 | 2020-12-08T19:33:21 | 2020-12-08T19:33:21 | 319,704,116 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 335 | py | #!/usr/bin/env python
import rospy
from std_msgs.msg import Float64MultiArray
def callback(msg):
print 'Incoming message: ', msg.data
def listener():
rospy.init_node('listener', anonymous=True)
sub = rospy.Subscriber("chatter", Float64MultiArray, callback)
rospy.spin()
if __name__ == '__main__':... | [
"krittin.pachtrachai.13@ucl.ac.uk"
] | krittin.pachtrachai.13@ucl.ac.uk |
0481df519f330fc8063968e7d91da735c221868c | 7a38ae563ff3ab0496a7b2df8ff809170a26b88d | /Data_cuation_and_publiction_application/data_curation_correlation/models/correlation_analysis_model.py | 741f7653f35053e1e5022457155a886950b65263 | [] | no_license | walkerzjs/COMP9321_Group_Project_TwoTier_DataAnalysis_Platform | 8e83b109387caa9ba02614e560413357dbf1d43f | 22e0802ebbc44824ca70df9ca25b460ba1900f64 | refs/heads/master | 2022-12-10T07:06:35.978480 | 2019-09-24T11:56:39 | 2019-09-24T11:56:39 | 210,589,702 | 0 | 0 | null | 2022-12-08T02:35:01 | 2019-09-24T11:48:44 | Python | UTF-8 | Python | false | false | 268 | py | class CorrelationAnalytics:
def __init__(self, data_list, cols, pr, p_value, features, year):
self.data_list = data_list
self.cols = cols
self.pr = pr
self.p_value = p_value
self.features = features
self.year = year
| [
"jacobjszha"
] | jacobjszha |
ac2b2da7079dfa4652f071d55af373cacb3c74b6 | d09ca00f6618ce6f93f64565cc41e0e524d54e06 | /图像处理/读取图片.py | f7c6224ef328b98d7d15ff64945e482e785f4dea | [] | no_license | hzhhs/repoStudy | a1dab1058b5d6407188b1cbb9e01d95a6341b992 | 8784b824e214afa37e661501b0f68eea896c5970 | refs/heads/main | 2023-02-24T08:56:54.955313 | 2021-01-29T01:01:33 | 2021-01-29T01:01:33 | 333,996,529 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,180 | py | from PIL import Image
# pic_Im=Image.open("校园.jpg")
# pic_Im.show()
# 生成新的125*125的黑色图片
# newIm=Image.new('RGB',(125,125))
# newIm.show()
# newIm2=Image.new('RGB',(125,125),"red")
# newIm2=Image.new('RGB',(125,125),(255, 255, 0))
# newIm2.show()
# from PIL import Image
# im = Image.open("校园.jpg")
# print(im.format) ##... | [
"32220021@qq.com"
] | 32220021@qq.com |
7e4bc63ff0c99cb0211fe28f6037acca5e125649 | 4383ca5e60ce9786aa6db8c4f9063740d38f65ed | /replaceClass.py | 011ce1ccc3853e9243b9b0f2bdbb3358d3227670 | [] | no_license | sahajamatya/replace-classes | f10cb4289b179e4dd4443452ee987903e0fe50c5 | aaa3c0459d50117ebea53b4dcb75a869c7d5755b | refs/heads/main | 2023-08-18T17:29:50.139440 | 2021-09-29T16:23:29 | 2021-09-29T16:23:29 | 411,743,259 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,109 | py | # Sahaj Amatya, 1001661825
import sys
# listifyLines() returns the file line as a list
def listifyLines(line):
arr = line.split(" ")
while("" in arr):
arr.remove("")
arr[len(arr) - 1] = arr[len(arr) - 1].replace('\n', '')
return arr
# getFileData() returns the file data as a 2D list
def ge... | [
"sahajamatya1@gmail.com"
] | sahajamatya1@gmail.com |
6f7b66a092a1ba668bb12f1f51f409beabc05222 | 613789c1ed6425600194e0a98177a0a5a213d63b | /Utility.py | 42fcfe694419e1489a99ec7a942730579280ba58 | [] | no_license | hadeelayoub/Just_Flex_Copy | 0f10aac0453509f13e3665f68a8725a7c5b04ec7 | e0c6ae47280646172e166d55fbb0503c53172b0d | refs/heads/master | 2020-03-16T11:26:21.465678 | 2018-08-16T23:53:40 | 2018-08-16T23:53:40 | 132,648,340 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 678 | py | import math
class Utility:
"""Class of useful utility functions"""
def __init__(self):
return
@staticmethod
def euc(a, b):
"""Calculate Euclidean distance between two vectors
Parameters `a` and `b` should be of identical dimension.
:param a: First input vector
... | [
"edhill@daedalusai.com"
] | edhill@daedalusai.com |
daaac2f7da0023e63824e4f3ecceb5eb722fa571 | 59a4ffb20a830aaa63c471a324cf660dbad13c1c | /DeepNodes/activations.py | b80e015b417986f151dd16955af92da6d4f64874 | [
"MIT"
] | permissive | kyuunin/DeepNodes | d5c678bbe54a548e8c529fa085ac1656434b5487 | 17747b20b8bb803d3472dc0e31ba6833d724bb35 | refs/heads/master | 2022-11-11T03:59:54.877205 | 2020-07-02T21:30:03 | 2020-07-02T21:30:03 | 276,690,492 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 760 | py | import torch.nn.functional as F
activations = {
"id": (lambda x: x),
"relu": F.relu_,
"hardtanh": F.hardtanh_,
"relu6": (lambda x:F.relu6_(x,inplace=True)),
"elu": F.elu_,
"selu": (lambda x:F.selu(x,inplace=True)),
"celu": (lambda x:F.celu(x,inplace=True)),
"leaky_relu": F.leaky_relu_,
... | [
"cneumann@students.uni-mainz.de"
] | cneumann@students.uni-mainz.de |
bec6fd80e3ea2f7a84ac32ccb92ea92a81ec74c5 | 9efe6f966b23371edb6eaa5f91a7f4928094ce70 | /server/backend/machine/serializer.py | b5f2d74851e6c91fa85743b0daf879aac6004535 | [] | no_license | bmotevalli/condition-monitoring | 309c1a54ed80379ce5e26bc686ff63fd1ca45ea0 | 7816445546dcf9e81cceabb1acb654f65eb85cbf | refs/heads/master | 2023-08-15T19:52:15.112264 | 2020-08-10T11:58:47 | 2020-08-10T11:58:47 | 282,407,148 | 0 | 0 | null | 2021-09-22T19:37:25 | 2020-07-25T08:54:31 | JavaScript | UTF-8 | Python | false | false | 455 | py | from rest_framework import serializers
from machine.models import Machine, Sensor, TimeSeries
class MachineSerializer(serializers.ModelSerializer):
class Meta:
model=Machine
fields="__all__"
class SensorSerializer(serializers.ModelSerializer):
class Meta:
model=Sensor
field... | [
"n.taherifar@gmail.com"
] | n.taherifar@gmail.com |
c8e02b9b5c879e0b86c644cc5d67238be6fee662 | 176497ba1cea7233f249a5f439a65f7c472b267f | /06_blog_detail/01_fix_capturing_path_components/portfolio/urls.py | 4a04f504ac61f76660e661e918f5599fa68f8d02 | [] | no_license | CodingNomads/django-web-dev | 79a3a94707489ca0d5f0bf49193b7ffdf6270f4a | e03b8ed130f100afb0296c0d76a84206fbbf789d | refs/heads/master | 2023-05-02T05:12:21.427462 | 2022-11-06T17:56:14 | 2022-11-06T17:56:14 | 235,174,521 | 1 | 7 | null | 2023-04-21T20:54:10 | 2020-01-20T18:53:31 | Python | UTF-8 | Python | false | false | 809 | py | """portfolio URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-bas... | [
"breuss.martin@gmail.com"
] | breuss.martin@gmail.com |
8c73a626279a8279f58605d57986fed262257c4e | a2d231ebc1ca11f974613870aef66cb615ce7120 | /Lista2/subset.py | 70f203cbfea6431338bd023c9e4e778c3dd284a3 | [] | no_license | CristianoSouza/Doutorado-PAA | ab3eb19bdf54b4a397a9ce134c03662154a615ff | 9208002cf91f057a537717623c228254e3cdd97c | refs/heads/master | 2020-03-15T23:37:01.361800 | 2018-06-26T04:38:54 | 2018-06-26T04:38:54 | 132,397,540 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 107 | py | import numpy as n
import Queue as q
import numpy as np
class Subset:
numero = None
pai = None
rank = 0
| [
"cristianoantonio.souza10@gmail.com"
] | cristianoantonio.souza10@gmail.com |
3aee28344db5bb9ef5e6a6c277e7f3977ee8a468 | 48bdb4a2981e61b81bd64b9fb8489a6623cfe7f8 | /020_evaluate.py | 0064c2ced3c687f16e1a891111ed919374371f26 | [] | no_license | makama-md/Predict-Lung-Disease | 2a83eaab6d2ed70bf899f41638f75252fe857e01 | 5adb6862f5ffdc7c3bc31d245bd896736e3c35fb | refs/heads/master | 2022-01-06T06:17:41.412768 | 2019-05-16T03:18:50 | 2019-05-16T03:18:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,123 | py | import sys, os
import azure_chestxray_utils
import azure_chestxray_keras_utils
from keras.models import load_model
import os
import pickle
import cv2
import numpy as np
import pandas as pd
from keras.models import load_model
from keras.utils import Sequence
from sklearn import metrics
from tensorflow.python.client impo... | [
"yht18801169870@gmail.com"
] | yht18801169870@gmail.com |
0abaa1f067fce6941cc52d9f663902655fa72690 | 59976302a73b91a4e539428ec09cc6e419fb77ec | /TP_9_Matrices/TP3_EJ2A.py | 40ea87c97f77ae07122469acb617ce74c2d90d9a | [] | no_license | aguscoppe/ejercicios-python | 5f8e839cb4cb7d789555c30e1de37da7308f01b5 | cc001b520225e623a577ea6fce63c49eeee4803b | refs/heads/master | 2023-01-13T07:08:16.203962 | 2020-11-16T21:42:21 | 2020-11-16T21:42:21 | 302,476,723 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 734 | py | def imprimirMatriz(matriz):
filas = len(matriz)
columnas = len(matriz[0])
for f in range(filas):
for c in range(columnas):
print("%3d" %matriz[f][c], end="")
print()
def rellenarMatriz(matriz):
filas = len(matriz)
columnas = len(matriz[0])
n = 1
for f... | [
"noreply@github.com"
] | noreply@github.com |
09f59f6939f829eb7698d0e10156b86e1d594a15 | 1c829b9f786a544f4cd715072af49b05f2aca545 | /test/candleIterator.py | 364c5af80257d81dbde53eb8e76686c23b70ddc3 | [] | no_license | Colman/Trading | 05f5a32b85ee927151b6a1948e5cac61021c48ac | 71cd5da318d3c56b763605b91a456b3cfaacd479 | refs/heads/master | 2020-12-26T23:50:30.702411 | 2020-02-01T23:56:50 | 2020-02-01T23:56:50 | 237,694,213 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,991 | py | from .tools import getNested
from trading import Chart
import math
import copy
import time
class CandleIterator:
_section = None
_startIndex = 0
_endIndex = -1
_index = 0
_offsets = None
_factors = None
def __init__(self, section):
self._section = section
self._startIndex = getNested(sect... | [
"noreply@github.com"
] | noreply@github.com |
5d2d82c183cdb19c50d16e09693e41fbb6537d84 | 29ff276739ccb2af3a2c19f811d8d45a4cbf7ce9 | /ConditionalProcessing2/conditionalProcessing2.py | 66ab96e7926d80cbcbb12d18873735461a730148 | [] | no_license | eruditehassan/fundamentals-of-programming-python-practice | 02fd11ec49b152e8b4d09dcf06e51a90e1b9d65c | e57a5bb631c7cfd73d3d4459b1000c008dfd972e | refs/heads/master | 2022-01-10T06:31:47.793646 | 2019-06-11T18:43:34 | 2019-06-11T18:43:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,236 | py | def starHalfTriangle():
"""A program that prints half star triangle"""
no_of_stars = 0
for stars in range(1,13):
no_of_stars+=1
print(no_of_stars * '*')
def customStarFormat():
"""A program that reads a number (between 1 and 30) and print a line containing that number of adjacent asterisks using for loop... | [
"51364060+eruditehassan@users.noreply.github.com"
] | 51364060+eruditehassan@users.noreply.github.com |
35a79b4fdf4e0ea3e84ae6fc05370aca40fda015 | 6fa701cdaa0d83caa0d3cbffe39b40e54bf3d386 | /google/cloud/eventarc/v1/eventarc-v1-py/google/cloud/eventarc_v1/services/eventarc/transports/grpc.py | f6847c60fe490f76ea1ee075399c4f7fea0ff76a | [
"Apache-2.0"
] | permissive | oltoco/googleapis-gen | bf40cfad61b4217aca07068bd4922a86e3bbd2d5 | 00ca50bdde80906d6f62314ef4f7630b8cdb6e15 | refs/heads/master | 2023-07-17T22:11:47.848185 | 2021-08-29T20:39:47 | 2021-08-29T20:39:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,587 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
6c0e4ea1a74613b04f657d103905ed557e74cd28 | e262e64415335060868e9f7f73ab8701e3be2f7b | /.history/Test002/数据类型_20201205183212.py | 0498acedcb8af7250b1f43f9d0736323a1f60b37 | [] | no_license | Allison001/developer_test | 6e211f1e2bd4287ee26fd2b33baf1c6a8d80fc63 | b8e04b4b248b0c10a35e93128a5323165990052c | refs/heads/master | 2023-06-18T08:46:40.202383 | 2021-07-23T03:31:54 | 2021-07-23T03:31:54 | 322,807,303 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,787 | py | # fruits = ['orange', 'apple', 'pear', 'banana', 'kiwi', 'apple', 'banana']
# print(fruits.count("apple"))
# a = fruits.index("banana",4)
# print(a)
# fruits.reverse()
# print(fruits)
# fruits.append("daka")
# print(fruits)
# print(fruits.sort)
# a = fruits.pop(0)
# print(a)
# print(fruits)
# number = [1,2,45,3... | [
"zhangyingxbba@gmail.com"
] | zhangyingxbba@gmail.com |
c1d6cc614de179239cd85b1aff00551fe5a70de7 | 9130bdbd90b7a70ac4ae491ddd0d6564c1c733e0 | /venv/lib/python3.8/site-packages/numpy/lib/tests/test_function_base.py | 26214a10c602d958990ec1631e13077862370069 | [] | no_license | baruwaa12/Projects | 6ca92561fb440c63eb48c9d1114b3fc8fa43f593 | 0d9a7b833f24729095308332b28c1cde63e9414d | refs/heads/main | 2022-10-21T14:13:47.551218 | 2022-10-09T11:03:49 | 2022-10-09T11:03:49 | 160,078,601 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 96 | py | /home/runner/.cache/pip/pool/da/24/8d/ec9cb0de3f3cfb086257743551eecf0a43e5ea4e63881af9e8d6632865 | [
"45532744+baruwaa12@users.noreply.github.com"
] | 45532744+baruwaa12@users.noreply.github.com |
da080bc3ffe0ad4f0d4461acf3bf439970b3713b | d706f83450d32256e568ea2e279649b9d85ddb94 | /accounts/views.py | 8cd59810b95abf689b8f6bdf3151729484d2fb7d | [] | no_license | celord/advacneddjango | 146d3d4ae351803b37e8599225b38b948e42a8b7 | 044d172fb10556cdeede6888dcec5f466097754d | refs/heads/main | 2023-08-18T19:26:07.230821 | 2021-09-26T17:58:45 | 2021-09-26T17:58:45 | 406,921,992 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 303 | py | # accounts/views.py
from django.urls import reverse_lazy
from django.views import generic
from .forms import CustomUserCreationForm
class SignupPageView(generic.CreateView):
form_class = CustomUserCreationForm
success_url = reverse_lazy('login')
template_name = 'registration/signup.html'
| [
"celord@gmail.com"
] | celord@gmail.com |
135a875898921530dc0d9ed13b5bd02d13a96cbc | ee2af8c0fdc65f44ed9a4295806d75fb09257b58 | /saif/google_api_integreation/__manifest__.py | db20488330aedd7f71c7ecfb68f2ce9990548508 | [] | no_license | sc4you/odoo-project | 02b81ff4920a69d3e79c5dcc605a794779c5a77c | 2ef439ef54f1165c3569a1047cd5cb6a0b50572e | refs/heads/master | 2020-03-21T13:34:52.555402 | 2018-03-19T12:26:39 | 2018-03-19T12:26:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 452 | py | # -*- coding: utf-8 -*-
{
'name': 'Google Docs Integration',
'category': 'Extra Tools',
'summary': 'Spreadsheet, Document, Presentation',
'description': 'Google Docs Integration: This Module lets you to develop,'\
'read and modify Spreadsheet, Document, Presentation',
'author': 'Muhammad Awais',
'depends':['base... | [
"ta.awaisajaz@gmail.com"
] | ta.awaisajaz@gmail.com |
972b653377c522b689ef5122c760bb3750ffce76 | 6578b86952bdfc50a1d13ac8ae271d43695d02ed | /setup.py | 85513e416a83639ce1d9950eeb55eb8d263452da | [
"MIT"
] | permissive | BotDevGroup/grammar_plugin | caa9dcfebaf78d153d1520cd27e282b39de8e63a | 9da7b50164912cb955dda25e71da6e6551e933e0 | refs/heads/master | 2020-03-20T20:05:10.170906 | 2018-06-17T17:55:04 | 2018-06-17T17:55:04 | 137,669,466 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,567 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup
with open('README.rst') as readme_file:
readme = readme_file.read()
requirements = [
'marvinbot'
# TODO: put package requirements here
]
test_requirements = [
# TODO: put package test requirements here
]
setup(
name='gra... | [
"ricardo.arturo.cabral@gmail.com"
] | ricardo.arturo.cabral@gmail.com |
6f87d67a78dea8a63ec6ae22d12f0f19ea1f3156 | d72e96389c479f67033931a010c954905d61b31d | /python/crashcourse/chap2/name_practice.py | 079baeac6efe22bb7e25c3568b4fb48b79192f6e | [] | no_license | kalima32/hello-world | 256c3aa9e996a7fb750aeaeaa2cf09591712a0ae | 214be215ab50602b694725fca882f95728ff03a8 | refs/heads/master | 2021-07-20T00:53:14.287219 | 2020-04-26T01:03:06 | 2020-04-26T01:03:06 | 140,461,871 | 0 | 0 | null | 2018-07-10T17:15:44 | 2018-07-10T16:45:32 | null | UTF-8 | Python | false | false | 739 | py | first_name = "bob"
last_name = "johnson"
whole_name = first_name.title() + " " + last_name.title()
famous_first_name = "groucho"
famous_last_name = "marx"
famous_whole_name = famous_first_name.title() + " " + famous_last_name.title()
print(f"This is practice with names!")
print(first_name.title() + " " + last_name.tit... | [
"josh@osx-jcasto.local"
] | josh@osx-jcasto.local |
a04179ec631fa9ee2c77775b4b950d00ead1cff3 | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/machinelearning/azure-mgmt-machinelearningservices/generated_samples/registry/code_container/get.py | c8b1ce0c2a7ca85de612a46ed698cd5daf7180dc | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 1,674 | 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 may ... | [
"noreply@github.com"
] | noreply@github.com |
91067497b8fa73992688003dd7a5316582a8352d | 6c6719d07123034f3f18e3dd87a3e7acb1a7c374 | /UniqueOrder.py | 398251a7686ba39f744823d90c975292f56d4cd1 | [] | no_license | HighlySupreme/CodeWars | bd7266c1b23f0bc38c453efa89933754ae090db8 | b61c567268ab63f3fed6b2b4d5eb6ff7789e8f9f | refs/heads/master | 2023-06-08T10:57:07.900201 | 2021-06-22T09:09:26 | 2021-06-22T09:09:26 | 375,947,819 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 738 | py | # Implement the function unique_in_order which takes as argument a sequence and returns a list of items without any elements with the same value next to each other and preserving the original order of elements.
# For example:
# unique_in_order('AAAABBBCCDAABBB') == ['A', 'B', 'C', 'D', 'A', 'B']
# unique_in_order('AB... | [
"gal.1999k@gmail.com"
] | gal.1999k@gmail.com |
db62acc5b5c6704db566b47448faeaed2132e6ba | bb64d7194d9f7e8ef6fc2dbfdbc0569713d1079c | /FocalLoss.py | 74a05c5aa62338c5c30e91a1981482671095182f | [] | no_license | scott-mao/Top-Related-Meta-Learning-Method-for-Few-Shot-Detection | 471e7d6e71255333d9b4c929023d7e43ef19fdd2 | 49bfd702f41deaec60fa95314436f69b4e217e6f | refs/heads/main | 2023-04-11T13:00:13.358560 | 2021-04-27T02:24:23 | 2021-04-27T02:24:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,767 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# --------------------------------------------------------
# Licensed under The MIT License [see LICENSE for details]
# Written by Chao CHEN (chaochancs@gmail.com)
# Created On: 2017-08-11
# --------------------------------------------------------
import torch
import torch.... | [
"noreply@github.com"
] | noreply@github.com |
a508b0946ef1eb6e66bea0da2040124e9cd0befb | d2b51283be8d71e9eab19124b9f8900d6724a0ef | /netmiko/linux/linux_ssh.py | 7527cd959551511159278f80cdbf05cbeff79bb0 | [
"MIT"
] | permissive | patel26jay/CONFIG | 0aa41467adb35ca59ffd637841630cad01ef1ae2 | 6cd139415f18df3e6e41f12fa0e38d239f14d6b8 | refs/heads/master | 2021-05-06T19:25:42.729045 | 2017-11-27T01:28:38 | 2017-11-27T01:28:38 | 112,130,593 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,367 | py | from __future__ import unicode_literals
import re
import socket
import time
from netmiko.cisco_base_connection import CiscoSSHConnection
from netmiko.ssh_exception import NetMikoTimeoutException
class LinuxSSH(CiscoSSHConnection):
def session_preparation(self):
"""Prepare the session after the connecti... | [
"patel26jay@gmail.com"
] | patel26jay@gmail.com |
9a2de85db36568de7db8a1ae872a1bf8e2e28c9e | 4470e03f1e2843f67a36c89c9c92b4b98b903d30 | /Artificial Intelligence/multiagent/try/multiAgents2.py | 10225b7a5977de44f5ca549c6d102270cb3f4f3f | [] | no_license | pkgishere/Academic-Projects | 2a7a3120179af4709a95b4445f7ae33e1ba14dea | c5aeb81190bab6f1be1e0da0fe2beb33f903af97 | refs/heads/master | 2021-08-16T05:03:10.932407 | 2017-11-19T01:02:08 | 2017-11-19T01:02:08 | 110,476,914 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 12,218 | py | # multiAgents.py
# --------------
# Licensing Information: You are free to use or extend these projects for
# educational purposes provided that (1) you do not distribute or publish
# solutions, (2) you retain this notice, and (3) you provide clear
# attribution to UC Berkeley, including a link to http://ai.berkeley.e... | [
"pkgishere@gmail.com"
] | pkgishere@gmail.com |
601405d16c40a5be1781f422a484d84140e8ee3e | 17f842c91b005ec5f04873863e83c3cbe2cc0808 | /node_modules/socket.io/node_modules/socket.io-client/node_modules/ws/build/config.gypi | c3a0a323c3949ecf80aa088aa8889b5a2926fcd3 | [
"MIT"
] | permissive | JeffKGabriel/Chatts | e04085d73dd1ffd9e991d4d16bfe25a499a3c4d5 | bcea9576f646dec1fa776601df6903d94bfd02c1 | refs/heads/master | 2016-09-05T11:55:50.436788 | 2013-04-05T19:32:51 | 2013-04-05T19:32:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,090 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"clang": 0,
"gcc_version": 42,
"host_arch": "x64",
"node_install_npm": ... | [
"jeffreygabriel@Jeffrey-Gabriels-MacBook-Pro.local"
] | jeffreygabriel@Jeffrey-Gabriels-MacBook-Pro.local |
766945fca1dafdff946a66682bf3cdc66afaa281 | fa774cfc17462e469aaa977f2b8841cc542e5c31 | /interview-prep/trees&graphs/excs12/pathsWithSum.py | 6d548c455c966ca862eaee6fe9f0abe778d88e04 | [] | no_license | kristopherrollert/daily-coding | dc5319da272d1de3350bc862a6539e9214a3c28a | b1e500722919cc9571f7b2edf81bcee1a8dc32e3 | refs/heads/master | 2020-09-01T22:27:50.968008 | 2020-01-02T19:27:47 | 2020-01-02T19:27:47 | 219,074,697 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,073 | py | # Paths with Sum: You are given a binary tree in which each node contains an
# integer value (which might be positive or negative). Design an algorithm to
# count the number of paths that sum to a given value. The path does not need to
# start or end at the root or leaf, but it must go downwards (traveling only
# from ... | [
"krollert@ucsc.edu"
] | krollert@ucsc.edu |
b96de974ca34505ea68a7002e1eaca1fdf7e1661 | 076e0ebd618ed406808e9009a70d886e8bdb1bbf | /grafeas/grafeas_v1/__init__.py | 98e1ad1c8c28a4c25705f3c56a2ad03ad7d539b0 | [
"Apache-2.0"
] | permissive | isabella232/python-grafeas | 8edb1c3b79e51292f1612489775b51a96033049c | a806330d0f344eb0b97e351d7e5ba34b8ae9b740 | refs/heads/master | 2022-12-15T09:53:51.979968 | 2020-09-22T22:15:19 | 2020-09-22T22:15:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,916 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | [
"noreply@github.com"
] | noreply@github.com |
e371120a4587f7edeed803eaedf3fa2de529f2e3 | 26ac73a3295abcd41d6124e05a62a775dc4111e9 | /src/ccl_malaria/logregs_fit.py | 047bdf03f160b3523ea921a3ac68ca6a19e38dc2 | [] | no_license | sdvillal/ccl-malaria | 78ed74740076981a51a301c2b6f2747eb18526dd | a28f7ef8f172c1374f5c079fdab8366333b2d56b | refs/heads/master | 2021-01-13T01:55:22.486971 | 2018-02-05T18:10:42 | 2018-02-05T18:10:42 | 17,605,429 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,959 | py | # coding=utf-8
"""Experiments with Morgan fingerprints and logistic regression (sklearn and vowpal wabbit)."""
from __future__ import print_function, division
from collections import OrderedDict
from copy import copy
import hashlib
from itertools import product
import os.path as op
import json
from time import time
im... | [
"sdvillal@gmail.com"
] | sdvillal@gmail.com |
2fc9220228c1f7be5a72a6931698bff8c43fa069 | f43d1ed4a7a0a89f011e21a380974f7aa94caad2 | /src/vgg19net.py | e935644faa019cadb09d034a59bae8c36f3b9866 | [
"MIT"
] | permissive | nirmorgo/vae-photo-masher | 60b62f60cef832381eb9d353a56ed85612e5f63e | 251d87d65d23ebca8a6fd4a0cc0249c310974540 | refs/heads/master | 2020-03-30T14:15:43.866076 | 2018-11-04T21:03:28 | 2018-11-04T21:03:28 | 151,309,559 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,336 | py | import numpy as np
import scipy.misc
import scipy.io
import tensorflow as tf
VGG_MODEL = 'saved_models/VGG19/imagenet-vgg-verydeep-19.mat'
# The mean to subtract from the input to the VGG model. This is the mean that
# when the VGG was used to train. Minor changes to this will make a lot of
# difference to the perform... | [
"nirmorgo@gmail.com"
] | nirmorgo@gmail.com |
db9830c43f9f8310d1aa07d4442177ea58f86be6 | a6a211fb59f01a81f39ea9a8b3b2758eb27b54ee | /scientific_computing/boilerplate-polygon-area-calculator/shape_calculator.py | 35562df082d8582a2c3cc46a80a71c0a79308f32 | [
"MIT"
] | permissive | gantro/FreeCodeCampPython | a77985ce1ae280fffd3fe1c451cc9f575a148866 | e1a0d215051a302368953c97e9e7210bc35c98e8 | refs/heads/main | 2023-01-21T10:14:09.275656 | 2020-12-06T16:40:14 | 2020-12-06T16:40:14 | 318,668,440 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,136 | py | class Rectangle:
def __init__(self, width, height):
self.width = width
self.height = height
def __repr__(self):
return ('Rectangle(width=%d, height=%d)' % (self.width, self.height))
def set_width(self, val):
self.width = val
def set_height(self, val):
self.height = val
def get_area(se... | [
"noreply@github.com"
] | noreply@github.com |
fa05b68b68103da6eba41cb3eace31abf9f4ba74 | 4a5a39858bab54d9fe06364ecfe8edc2747b87f6 | /Code Jam 2018/Round 1C/ant-stack.py | ddc1e8535674f7ccbaa880e66e31d6b637f53b28 | [] | no_license | gsakkas/code-jam | d85a63c11d13ba405b9df4be1e6739ef5c5394ae | 8e81a4d9b2ea11d9bbb9b3e206951a2261798458 | refs/heads/master | 2021-01-22T19:54:24.732574 | 2018-05-17T12:14:06 | 2018-05-17T12:14:06 | 85,257,349 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 888 | py | def read_int():
return int(raw_input())
def read_many_ints():
return map(int, raw_input().split())
def solve(n):
ws = read_many_ints()
large = 10 ** 100
sums = [[large] * min(139, n) for _ in xrange(n)]
for i in xrange(n):
sums[i][0] = ws[i]
# sums = {}
# sums[0] = ws[0]
... | [
"george.p.sakkas@gmail.com"
] | george.p.sakkas@gmail.com |
bb144a2611bdf1bcc08cdf8a0c080015a129f699 | 02569e805e7191d21212631d8e6818cb396702d5 | /scripts/DimRed.py | 4842f5d3db4519a6cfbbba064506e3f2a80828ce | [] | no_license | asstergi/Big-Data-and-Business-Analytics-Thesis-AUEB | f390a17f6dcf377b494d8da4c1c89538981986d2 | a6504c4b1c940bb1f4b9a0caa93f0212241f575a | refs/heads/master | 2020-12-24T14:00:39.085196 | 2018-04-07T14:45:42 | 2018-04-07T14:45:42 | 27,644,214 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,889 | py | #!/usr/bin/env python
from __future__ import division
import re
import numpy as np
import pandas as pd
from scipy.sparse import vstack, csr_matrix
from sklearn import metrics
from sklearn.feature_extraction.text import CountVectorizer, TfidfTransformer
from sklearn.preprocessing import LabelEncoder
from sklearn.feature... | [
"a.stergioudis@gmail.com"
] | a.stergioudis@gmail.com |
af7343241d25adfa0239fc48d6b1c29e0fd2cfcf | 360ae1188ad79e71ccc72da0b9ae709bda678f91 | /ryu/services/protocols/__init__.py | 340a42305b81a40727ffe472e0a96ccaa638aed4 | [
"Apache-2.0"
] | permissive | faucetsdn/ryu | 47b3523e7ccb381f3bdf2877a3f9f01cb1876054 | d6cda4f427ff8de82b94c58aa826824a106014c2 | refs/heads/master | 2023-09-05T06:37:21.991029 | 2022-06-09T23:09:40 | 2022-06-09T23:09:40 | 2,945,007 | 385 | 215 | Apache-2.0 | 2022-11-13T10:50:25 | 2011-12-09T03:43:50 | Python | UTF-8 | Python | false | false | 682 | py | # Copyright (C) 2013 Nippon Telegraph and Telephone Corporation.
# Copyright (C) 2013 Isaku Yamahata <yamahata at private email ne jp>
#
# 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
#
# h... | [
"fujita.tomonori@lab.ntt.co.jp"
] | fujita.tomonori@lab.ntt.co.jp |
6114b62911bc8b004342e18dd2ca4b7eaed01aaa | 8bba06939a8cce6b5ecce25d15f9f9062b8206d8 | /pyrelacs/NixIterators.py | 31b3b33958cc313e684a0b3aa724840915e1bf49 | [] | no_license | jpresern/pyrelacs | e72c82d999e5d97eaecde2eed1bee94041fe46f3 | 62eefec7541406eeb30d932b8a844ea5abef2fd6 | refs/heads/master | 2021-01-18T02:30:25.237867 | 2016-03-11T14:47:20 | 2016-03-11T14:47:20 | 27,421,353 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,897 | py | from IPython import embed
import nix
import numpy as np
def trial_iterator(multi_tag):
traces = {r.name:np.asarray(r.data) for r in multi_tag.references if r.dimensions[0].dimension_type.name == 'Set'}
sample_interv = {r.name:r.dimensions[0].sampling_interval for r in multi_tag.references if r.dimensions[0].d... | [
"fabian.sinz@uni-tuebingen.de"
] | fabian.sinz@uni-tuebingen.de |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.