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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
540d2c2be639b0bba4540c381ef879ffeacec778 | 912284ddc7b5851de2f8fffac083a458a067991b | /tests/unit/hooks/test_PentahoHook.py | 6ee9b560590d1faa4b844e1ed78b59a57aa9f40b | [
"Apache-2.0"
] | permissive | AITORGN/airflow-pentaho-plugin | 985a07f228a87fa4600969cb73e26d5cf7ec7d48 | fc91f1787005f1051c55f8116120f216a60d921e | refs/heads/master | 2021-05-20T09:53:45.390051 | 2020-04-01T14:32:45 | 2020-04-01T14:32:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,097 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Aneior Studio, SL
#
# 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 ... | [
"piffall@gmail.com"
] | piffall@gmail.com |
259efc3131b27c72208f0d5e27cf33c774bef644 | d73a2800f0d65f7726ebdf18244d7f344d2df509 | /project/showtimes/models.py | 3b50435a278420e058c215378f3ebea14f353a03 | [] | no_license | krzysiekkosior/cinema-rest-api | e93b5984fe55cb41fe4cd95e89fb9031d33ebc45 | 442308e4d5eb02a90483c4cfa7ae72f086cdfb11 | refs/heads/main | 2023-02-10T05:21:02.578261 | 2020-12-30T15:23:11 | 2020-12-30T15:23:11 | 308,387,157 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 564 | py | from django.db import models
# Create your models here.
from movielist.models import Movie
class Cinema(models.Model):
name = models.CharField(max_length=255)
city = models.CharField(max_length=255)
movies = models.ManyToManyField(Movie, through='Screening')
def __str__(self):
return self.na... | [
"krzysiek.kosior@gmail.com"
] | krzysiek.kosior@gmail.com |
5818895213230d49fa03d33776c766aaa1634362 | 11a722ae65c008928245ad721684b660a5d711f9 | /sticky_notes/serializer.py | fbd393737dbe32e32d6c6afa880df44c51660ed3 | [] | no_license | stanford-oval/friendhub | 2fb4bc72f3b9841e312e21338d593c5692055329 | f03870b09533a95978ee60c9e61b96576297ef7a | refs/heads/master | 2020-03-13T15:57:48.212167 | 2018-06-06T01:00:59 | 2018-06-06T01:00:59 | 131,187,779 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 219 | py | from rest_framework import serializers
from sticky_notes.models import Post
class StickyNotesSerializer(serializers.ModelSerializer):
class Meta:
model = Post
fields = ('author', 'post', 'date')
| [
"silei@cs.stanford.edu"
] | silei@cs.stanford.edu |
701892c25c0300f3219a72c662ae20e3993cccb6 | 03bb4b78d8e06d67cde5d7a993234e7c87413e1b | /project.py | ae2fc7a2ec815de462b49f2e1e5975c39e8ec490 | [] | no_license | prontoponcho/RestaurantCatalog | db634743e68c8d09447168877b62b511d6dea8f1 | c8499ae4204ab548d72a1dd20d39df1b98e53423 | refs/heads/master | 2021-01-17T16:16:51.226474 | 2016-12-27T02:28:55 | 2016-12-27T02:28:55 | 71,493,998 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 267 | py | from catalog import app
# For Local Deployment
if __name__ == "__main__":
app.debug = True
app.secret_key = 'super-secret-key'
app.run(host='0.0.0.0', port=5000)
# For Heroku Deployment
else:
app.debug = False
app.secret_key = 'super-secret-key'
| [
"rksipes@gmail.com"
] | rksipes@gmail.com |
de46797bc2e5740fd9cf2b3f4686a5f1dbd5d474 | 74e5eb3ace500aea76e5d621f91d04d400b8019d | /mysite/settings.py | 1bb77789982868322dd0e4d512c82a0166ccdf67 | [] | no_license | ne18048/my-first-blog | 75da2ac21dffdfcf3a1673eec868199e32c1a23b | 16a79f45a38de03f7e7767eb7ee22e534095c305 | refs/heads/master | 2020-09-05T16:38:46.333900 | 2019-11-28T04:46:46 | 2019-11-28T04:46:46 | 220,158,205 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,167 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 2.2.6.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os
# ... | [
"ne18048.azec.ac.jp"
] | ne18048.azec.ac.jp |
a13cfe435c170e8764da4ce8f7db2ea77b3333a2 | fc7e9c11a7b3c2e27581e1bfacbc2e37fa723b94 | /wta_program.py | e69a0eacb9563336ba2664d7931523ab206ec9da | [] | no_license | abhinavp403/tennis_head_to_head | 46bfc491b903ea51bb175edae2710e86acc4aaff | 4dea6d803f1b7853e79e552ab06cd4875a60ecd9 | refs/heads/main | 2023-02-26T17:59:06.482812 | 2021-01-26T01:39:37 | 2021-01-26T01:39:37 | 322,462,855 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,959 | py | import csv
import re
import playerExist
def breakdownscore(score):
winner = {"sets-won": 0, "games-won": 0, "clean-sets": 0, "straight-sets": 0}
loser = {"sets-won": 0, "games-won": 0, "clean-sets": 0, "straight-sets": 0}
sets = score.split(' ')
for s in sets:
c = s.split('-')
... | [
"noreply@github.com"
] | noreply@github.com |
e213abe1c1b83adf819a66e519a3079774757756 | e047c36d85b393822d87df90e24e3f4813d3e7ad | /model-b.py | 9c6094b307614b3a2fba138f0accd0bdb5a661bd | [] | no_license | sg1705/BehaviorCloning | 711663ff9f5cda2f777be4619e3b380bf972077a | 3e0153eb42051cecbbd282c4d7b9986fd062f7cc | refs/heads/master | 2021-05-01T23:31:48.495385 | 2017-01-28T23:29:41 | 2017-01-28T23:29:41 | 77,746,327 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,160 | py | #imports
from PIL import Image
import numpy as np
import os
import random
import csv
import matplotlib.pyplot as plt
import tqdm
from sklearn.model_selection import train_test_split
from sklearn.utils import shuffle
import tensorflow as tf
import math
import itertools
import json
# Keras imports
from tqdm import tqdm... | [
"carnd@ip-172-31-57-112.ec2.internal"
] | carnd@ip-172-31-57-112.ec2.internal |
3716f7fa8b4cedb9952573a7d1b07ba78a5576e2 | b1f7ddb1fb553ff23e07510e3d9c584c95a5e5ba | /algorithms/algorithm.py | e0ac503fbd10f08cca6c55ad378db2033b12b358 | [] | no_license | MartyMcFlyHasNoFarmHiaHiaHo/asractivelearning | e37f8b780487a3aef7889f82fa5e1c2590e867a4 | aa92cb677d9a868701adf4c1ede90d27f5b2199a | refs/heads/master | 2016-09-05T10:35:04.983610 | 2015-08-05T17:11:14 | 2015-08-05T17:11:14 | 39,498,823 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 431 | py | import itertools
class SamplingAlgorithm(object):
def __init__(self, algorithm_core, takewhile_condition=True):
self.algorithm = algorithm_core
self.condition = takewhile_condition
def _loop(self):
iterator = iter(self.algorithm)
sampled_items = itertools.takewhile(self.condi... | [
"martin.schulze@student.kit.edu"
] | martin.schulze@student.kit.edu |
e332e060ed9f32810e5a46d84f97a779d09bd079 | 28924c944ce2ad036a57ed0c969c28e196fb56f2 | /Python/Day5_31Oct/q1.py | 4c48b77f310424b7aa9bd58a4f591245864248d7 | [] | no_license | zach-aravind/AI-Nielit | eddfac71f59b4e524093d481edb6e78b07972063 | 73e1c3ff37ecd6f7347d50e5bf0fd85ba0a96343 | refs/heads/master | 2020-04-05T07:38:52.296522 | 2018-12-31T08:00:23 | 2018-12-31T08:00:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 99 | py | def div_f(dv,ds=2):
q=dv/ds
r=dv%ds
return q,r
a=input()
b=input()
r1,r2=div_f(a,b)
print r1,r2
| [
"aravindanil000@gmail.com"
] | aravindanil000@gmail.com |
1c5570843dd90b7af5fe71ddcbc491b7eccf29ea | 35186315f4079163c493d3e416d253ce63a6318b | /blog/lib/python3.7/io.py | 96dc9f3b95f8cd3f5ce8925c2db53d756a701923 | [] | no_license | mrsimonsen/flask | 070f2e27b47b77ea74e820b60b030d019f268575 | 1e913393bdc3e4c0b26533685aa1f36e0443af9e | refs/heads/master | 2020-04-24T04:27:30.030693 | 2019-11-20T22:45:30 | 2019-11-20T22:45:30 | 171,703,351 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 53 | py | /home/cabox/.pyenv/versions/3.7.0/lib/python3.7/io.py | [
"johnsimonsen@weber.edu"
] | johnsimonsen@weber.edu |
7e8d094e41e11733ecf4f888af2a181c5a50f906 | 476e846a41806ee8f80dcab3fcae7908d8a86058 | /Generators/GetUnlimitedMultiplies.py | 14e4c6412ec2b3b9f3ee6c1435df0876fb4dff4d | [] | no_license | soumyaevan/PythonProgramming | 1cd12af53566579de2f484b7c94a93d4391c1da3 | 7edeee746c1e59b352451d00d20094206565e897 | refs/heads/master | 2022-12-03T23:23:26.425779 | 2020-08-20T21:58:57 | 2020-08-20T21:58:57 | 280,628,362 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 603 | py | '''
get_unlimited_multiples Write a function called get_unlimited_multiples,
which accepts a number and returns a generator that will yield an unlimited number of multiples of that number.
The default number should be 1.
'''
'''
sevens = get_unlimited_multiples(7)
[next(sevens) for i in range(15)]
# [7, 14, 21, 28, 3... | [
"sensoumya94@gmail.com"
] | sensoumya94@gmail.com |
4fe8b90e2fcb0d67b983b62414587d1385dfab63 | 643123809c80fa47427453da2b821c4858d5149a | /PythonWebApplications/tutorial/tutorial/settings.py | 1d56562c4c51cd4b2b6027a4272855b7464e50fd | [] | no_license | Satya190597/code-archive | 6cf6aecde40ae65128cb5ad2f7767559f2ed861a | 397863aa923f026c138a58fc1cef506651be039b | refs/heads/master | 2023-01-19T09:25:56.677049 | 2020-03-12T12:55:46 | 2020-03-12T12:55:46 | 234,761,188 | 0 | 0 | null | 2023-01-07T15:34:21 | 2020-01-18T16:15:56 | Python | UTF-8 | Python | false | false | 3,094 | py | """
Django settings for tutorial project.
Generated by 'django-admin startproject' using Django 3.0.2.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import os
... | [
"webprakashsatya@gmail.com"
] | webprakashsatya@gmail.com |
ea96a9ec7b227fa2c44b390d2ed51501c41d0ea5 | 4286f62c95850a425860a150b5e1dcac556baeb7 | /utils.py | 30858a0b9872f650b156cc7a58473a3981d534af | [
"Apache-2.0"
] | permissive | malllabiisc/lcn | 78e2f42059baf9661580e30bec5811b652bbf73d | 9f507492b10ee39c2a207a4dc77848e06b56606a | refs/heads/master | 2020-04-24T04:33:12.973168 | 2019-05-22T12:06:14 | 2019-05-22T12:06:14 | 171,707,756 | 8 | 3 | null | null | null | null | UTF-8 | Python | false | false | 6,207 | py | # File is taken from https://github.com/tkipf/gcn
import numpy as np
import pickle as pkl
import networkx as nx
import scipy.sparse as sp
from scipy.sparse.linalg.eigen.arpack import eigsh
import sys
def parse_index_file(filename):
"""Parse index file."""
index = []
for line in open(filename):
index.append(int(... | [
"shikharvashishth@gmail.com"
] | shikharvashishth@gmail.com |
ded3d1b136eb1792ef49349228714d1206d85218 | 8c6e35e7c1246dcb5baf8804919c0a609545094f | /pybrain | 5d28beb1db72340de00587d1e9828615550ba0a9 | [] | no_license | edmartins-br/CourseNeuralNetworks | b8db2c5b8a77f84c98a580ff8a70c2150dedf649 | 4ce22d3caeb2a53fa2600755a1f3eee3d07b1945 | refs/heads/master | 2022-03-09T08:26:06.637875 | 2019-11-12T22:37:05 | 2019-11-12T22:37:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 806 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue Oct 29 19:38:05 2019
@author: eduardo
"""
from pybrain.structure import FeedFowardNetwork
from pybrain.structure import LinearLayer, SigmoidLayer, BiasUnit
from pybrain.structure import FullConnection
rede = FeedFowardNetwork()
camadaEntrada = Linear... | [
"noreply@github.com"
] | noreply@github.com | |
113234ea406e698856697e0ea34a37e9832cd444 | 1fca3a590677e29c6ee8cfcd8e8fd9270463ce3f | /cassandra/pythonTest/pycassa-1.6.0/pycassa/columnfamilymap.py | 896f96e955000c53d7585d108ee2fee5327d98bf | [
"MIT",
"Apache-2.0"
] | permissive | HawaiianNinja/CSSE433Benchmark | 61ed87a48deda9945157a500df7abf2be9af718f | 14fa61501df0eb4f2687a2710511d3face2b69b6 | refs/heads/master | 2021-01-25T07:39:47.589572 | 2012-05-05T22:37:01 | 2012-05-05T22:37:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,262 | py | """
Provides a way to map an existing class of objects to a column family.
This can help to cut down boilerplate code related to converting
objects to a row format and back again. ColumnFamilyMap is primarily
useful when you have one "object" per row.
.. seealso:: :mod:`pycassa.types` for selecting data types for ob... | [
"andrewjohnhopkins@gmail.com"
] | andrewjohnhopkins@gmail.com |
a376a4cd91aa54fd5b139aac48024f788a64e637 | d334553a2f0577d2cc797a19be252965db7d84d8 | /courses/admin.py | ceb719f4cdef63abe41e323dfb808c390b3b0c9f | [] | no_license | zhukovka/student_webcamp | 62e88e435c6f8034373a0391c2f5810afdbcdf1f | 98c3035631bd94e73e39edeaa1207c188772e115 | refs/heads/master | 2020-04-29T02:49:17.936786 | 2015-01-22T16:44:58 | 2015-01-22T16:44:58 | 29,688,769 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 340 | py | from django.contrib import admin
from .models import Course, Content
# Register your models here.
class CourseAdmin(admin.ModelAdmin):
class Meta:
model = Course
class ContentAdmin(admin.ModelAdmin):
class Meta:
model = Content
admin.site.register(Course, CourseAdmin)
admin.site.register(Co... | [
"helen.zhukova@gmail.com"
] | helen.zhukova@gmail.com |
f1f58b268c217427753e0b70945a120c2124216b | c493eac9d907f462adb06d2993dfde7a14fa4c6c | /Board/BoardTextures.py | 37bcfc64f75ddc4e0cffcc8d63586e7da3c4edc4 | [] | no_license | AmazingPaper/PrjWk2 | 445fe16829b7447c2af7259a7d44c0d12ff55151 | a0040e58a68930749581f4803b8584f1fe2e266e | refs/heads/master | 2021-01-24T20:01:12.687750 | 2016-02-05T10:25:20 | 2016-02-05T10:25:20 | 49,941,018 | 0 | 0 | null | 2016-02-05T10:08:54 | 2016-01-19T09:19:59 | Python | UTF-8 | Python | false | false | 573 | py | import pygame
from Board.Enumerations import PlayerType, TileType
FightTexture = 0
CornerTextures = 1
boardTextures = {
FightTexture: pygame.image.load('Tiles/FightTile.png'),
CornerTextures: {
PlayerType.Yellow: pygame.image.load('Tiles/YellowTile.png'),
PlayerType.Blue: pygame.image.load('Tiles/BlueTile.png'... | [
"elifyildizcelik@gmail.com"
] | elifyildizcelik@gmail.com |
c0ad8f4ed4f06583d9d65329b22fa6fb473c97db | 49749796194b681d9aabf29dfe594cbf3d9f67c0 | /codeup/basic4-1/1261.py | 2db158c05b9b769357146d8eb731df978fe96228 | [] | no_license | dltkqnr/algorithm | 0a5ea38e3d14e6cf4e31b0b47a6fb3e204d406d5 | 2b8db2a2d1e12a22778f55021186e6ae65cee42b | refs/heads/master | 2023-03-11T16:36:24.727806 | 2021-03-02T15:04:41 | 2021-03-02T15:04:41 | 327,655,221 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 132 | py |
data = list(map(int, input().split()))
for i in data:
if data[i] % 5 == 0:
print(data[i])
break
| [
"dltkqnr@naver.com"
] | dltkqnr@naver.com |
31a54da06af39b91bfa519e963c136a51bd445aa | a4761a5fd5beabda5a231624d105b902d726586c | /unit_tests/print/print_bool.py | 84fb9bc2a9e142ac1cd972b888e3ed61624d99dc | [
"BSD-3-Clause"
] | permissive | jpages/twopy | 7f2598b5d72b0dddb8ac829e5549838550c35302 | d0ae42b02ee60cf432e716884f43ec6670bcae2b | refs/heads/master | 2020-04-12T06:04:18.686854 | 2019-03-08T22:06:17 | 2019-03-08T22:06:17 | 162,341,587 | 12 | 1 | null | null | null | null | UTF-8 | Python | false | false | 39 | py | print(True)
print(False)
#True
#False
| [
"feeley@iro.umontreal.ca"
] | feeley@iro.umontreal.ca |
e36365362027181b269553f1a369aa67124b61ea | e83ace575ba4312f4c08a77845cd9e94e733a448 | /paasta_tools/paastaapi/models/kubernetes_container.py | b79444af8fffd6e2cb0f81d0d115d08f71be9926 | [
"Apache-2.0"
] | permissive | rohangulati/paasta | acdb5d145aaa650201e3b38bfcf88d59b5f4cf21 | 4539e39159424bfbdeddcb243ca337bcd1eb1a06 | refs/heads/master | 2021-01-02T21:55:48.904798 | 2020-09-15T22:07:27 | 2020-09-15T22:07:27 | 239,816,033 | 0 | 0 | Apache-2.0 | 2020-02-11T16:57:16 | 2020-02-11T16:57:15 | null | UTF-8 | Python | false | false | 4,181 | py | # coding: utf-8
"""
Paasta API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
The version of the OpenAPI document: 1.0.0
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import six
from... | [
"noreply@github.com"
] | noreply@github.com |
4df00afa20c0e3ff69a4604332bcdfe3f2f8115a | bdd855c273ba3bc8f3e693b572705036bbdd6c93 | /app/app/tmp/tests.py | 1ebbeeb6e4c745d0ebffea4a0190fc7f9bb9e81a | [
"MIT"
] | permissive | prozober/rcp-app-api | 2270845996837ab6ca753094801f834ada043fe5 | 3aa4c5711a9bb52a361fc2bb15638486d3fff999 | refs/heads/master | 2020-05-04T17:22:54.905579 | 2019-04-10T19:59:31 | 2019-04-10T19:59:31 | 179,309,032 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 359 | py | from django.test import TestCase
from app.calc import add, subtract
class CalcTests(TestCase):
def test_add_numbers(self):
"""Testing that two number are added together"""
self.assertEqual(add(3, 8), 11)
def test_subtract_numbers(self):
"""Testing that vlues are subtracted"""
... | [
"paola@MacBook-Air-de-Omnibnk.local"
] | paola@MacBook-Air-de-Omnibnk.local |
129453ffb58af6aa9d3db628b45552c4fc8cdf94 | 3a4539dd6129f96ebb0c1785dc0b7c14d4e8dff4 | /3D-maze/3d-maze.py | dc1d5806b14d517db311e943ad8d5d436fab0b01 | [] | no_license | CalixTang/MazeNav | 226ec90da7012530887fe3dad6ce1bef3a943e43 | 8e97a77a1568e87eda1e01a17089ef1130188fd7 | refs/heads/master | 2022-12-01T11:15:07.557125 | 2020-08-07T04:00:11 | 2020-08-07T04:00:11 | 286,889,836 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,971 | py | import vpython as vp
import random
import random
from math import *
import time
from numpy.random import uniform
import numpy as np
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D # noqa: F401 unused import
from filterpy.monte_carlo import systematic_resample
from numpy.linalg import norm
from... | [
"calix.tang@gmail.com"
] | calix.tang@gmail.com |
29928ba4f0e141caef9410e8536b343397c12478 | 179ea73f11954d8459ff1a07a3e656b6b428b333 | /holoviews/tests/plotting/plotly/testtableplot.py | 1b112857461c875f03b90771c217631153daa617 | [
"BSD-3-Clause"
] | permissive | archiba/holoviews | 079286872acd69afd4962033023083880d0c7ed8 | 8fe3ac1507793e51e2f9bbc020abb49f19b41b90 | refs/heads/master | 2020-06-28T06:47:41.458874 | 2019-07-31T13:29:53 | 2019-07-31T13:29:53 | 200,167,688 | 0 | 0 | BSD-3-Clause | 2019-08-02T04:55:51 | 2019-08-02T04:55:50 | null | UTF-8 | Python | false | false | 506 | py | from holoviews.element import Table
from .testplot import TestPlotlyPlot
class TestTablePlot(TestPlotlyPlot):
def test_table_state(self):
table = Table([(0, 1), (1, 2), (2, 3)], 'x', 'y')
state = self._get_plot_state(table)
self.assertEqual(state['data'][0]['type'], 'table')
self... | [
"jlrstevens@gmail.com"
] | jlrstevens@gmail.com |
6f290b8d7c81d7a748c4820de7365125c604cffe | 0d4ce4ba065ecb037c41f06a4f3689117b2bedd6 | /ex43.py | 49b991b2d1608c2c8b2a1b874002133c051ddee6 | [] | no_license | wlane/hardway | fbd8b1271a44e5b5998213b395f8f2629e5c8cf0 | 999cc9a797661015c985f21add5a8d4ebbca6820 | refs/heads/master | 2020-05-21T20:31:19.923374 | 2016-09-19T15:43:42 | 2016-09-19T15:43:42 | 61,432,300 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,226 | py | from sys import exit
from random import randint
class Scene(object):
def enter(self):
print "This scene is not yet configured. Subclass it and implement enter()."
exit(1)
class Engine(object):
def __init__(self,scene_map):
self.scene_map = scene_map
def play(self):
current_scene = self.scene_map.opening_sc... | [
"xyf2424094@gmail.com"
] | xyf2424094@gmail.com |
fb7f20ca09c6c642a1b67f0a20731efd3a4a1b47 | 6df9a960c0a4e2049b5932938a83ee82d4516412 | /site-form-works/car_admin/app/models.py | 18cfdad9ad5a835c135dee718187b73359c9be3b | [] | no_license | alekseykonotop/dj_hw | 9585f0d42ec95d31f5eeae09b953e5f195bc9ee7 | 6752361d007d777127eb77445d45da58332e0223 | refs/heads/master | 2021-07-19T06:30:04.333018 | 2019-09-21T18:12:38 | 2019-09-21T18:12:38 | 177,439,677 | 0 | 0 | null | 2020-06-05T22:56:52 | 2019-03-24T16:24:46 | Python | UTF-8 | Python | false | false | 1,027 | py | # -*- coding: utf-8 -*-
from django.db import models
from ckeditor_uploader.fields import RichTextUploadingField
class Car(models.Model):
brand = models.CharField(max_length=50, verbose_name='Бренд')
model = models.CharField(max_length=50, verbose_name='Модель')
def __str__(self):
return f'{self.... | [
"alekseykonotop@gmail.com"
] | alekseykonotop@gmail.com |
07ec31a46e1da2d73e1f5a96612391c1b478eded | 18ca555f07da274a226f5d7baf4dcb80fb7a1458 | /script/create_annotations.py | 47bc64c4232d4e65bb96a7ae456d6de790ccb7d0 | [
"MIT"
] | permissive | mc-lovin-mlem/concept-embeddings-and-ilp | 0f53f0bf5788d46b3fb3d15c2c7d895305e4c0cd | 1d63596825897ed8393043239f399adec547786e | refs/heads/master | 2023-01-11T22:33:11.887352 | 2020-11-06T08:45:41 | 2020-11-06T08:45:41 | 278,093,394 | 3 | 1 | MIT | 2020-11-06T07:58:24 | 2020-07-08T13:13:39 | TeX | UTF-8 | Python | false | false | 9,768 | py | import argparse
import os
import sys
import numpy as np
np.set_printoptions(threshold=sys.maxsize)
import PIL
from PIL import Image
from scipy.ndimage import label
from typing import Dict, List, Any
import pandas as pd
from tqdm import tqdm
def load_results(results_root: str, gt_class_dirs=('pos', 'neg')):
"""L... | [
"gesina.schwalbe@continental-corporation.com"
] | gesina.schwalbe@continental-corporation.com |
f2c65a0a2461fde4f9a3bff8a1865f189025824b | 442fdacfe9e2fc402ce883f6359076ef47dbb3fd | /f5/bigip/cm/__init__.py | 6bd0d9b165aa6ec3f9f2a1407ff14fd1c6be9703 | [
"LicenseRef-scancode-generic-cla",
"Apache-2.0"
] | permissive | swormke/f5-common-python | e3f16f6a158dbdcb1c6738ea85a54e54d715b3c7 | bcdb63a533fc5c2455cac3cdb0b5953eca87d56a | refs/heads/0.1 | 2021-01-24T03:04:04.193352 | 2016-02-11T16:56:34 | 2016-02-11T16:56:34 | 51,534,226 | 0 | 0 | null | 2016-02-11T17:54:35 | 2016-02-11T17:54:35 | null | UTF-8 | Python | false | false | 1,291 | py | # Copyright 2015 F5 Networks Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writi... | [
"shawn@f5.com"
] | shawn@f5.com |
778979f5751127ba2054780e1e32b2df0edb60bc | 039258333380a2cc4eb5ab535a11ad1fa7e3c508 | /runners/all_three_bit_functions_on_N_and_L.py | 73bcdffa2954009698d7569e9ecd971bfcd405c8 | [] | no_license | IlyaLab/BooleanNetworkReservoirComputers | 043e91bd2154be832ac12bafa1de03d599ca51ee | a9de4cc597e6132c89487cdc0aff5cc3833eab45 | refs/heads/master | 2020-04-05T01:12:22.518582 | 2018-11-06T18:24:02 | 2018-11-06T18:24:02 | 156,427,717 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,037 | py | import os
import sys
import time
import numpy as np
import pandas as pd
import booleanNetwork as bn
from reservoir import Reservoir
from output_layer import OutputLayer
import function_arguments as f_utils
start = time.clock()
N_list = [10, 20, 30, 40, 50, 100, 200, 300, 400, 500]
K = 2
I = 1
L_list = [10, 20, 30, 40,... | [
"gibbsdavidl@gmail.com"
] | gibbsdavidl@gmail.com |
f83c2d640cfe1cf6f510bc0fa01fa7cfaecd833c | 42cd8b00bc250c7bdde77ab2776995b74cf8f113 | /search/search/spiders/search.py | 56ba4e3891d433273049c103b73124fcae51d80d | [] | no_license | six-sigma-seo/seo-backend | ec4e134e1aba615a0ab8739999d488302d0d9e94 | d3a58a12728951640f1b5d244ecd5b5ad954a48d | refs/heads/main | 2023-02-05T19:07:42.234412 | 2020-12-15T05:06:22 | 2020-12-15T05:06:22 | 321,558,198 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,283 | py | import scrapy
import datetime
class Item(scrapy.Spider):
name = "seo"
def __init__(self, domain='', *args, **kwargs):
super(Item, self).__init__(*args, **kwargs)
self.start_urls = [domain]
custom_settings = {
'FEED_URI': 'seo.json',
'FEED_FORMAT': 'json',
'CONCURR... | [
"58991258+juanfranco97@users.noreply.github.com"
] | 58991258+juanfranco97@users.noreply.github.com |
3427c4553fd8fad0d29329097ac0dada039d557d | 4f08e94fcccc026dc670dc8b107f43695e49dc15 | /dbjudge/structures/table.py | 8587cf11e33a56ce2d1af507ea85afbc2e5d7895 | [
"MIT"
] | permissive | r4ulill0/dbjudge | 9186df28c082f77b796dfeb7bece44410c4aa473 | a94a0de71f8743bde2ae19830e68bbe2072f4e05 | refs/heads/master | 2023-01-24T22:16:07.514354 | 2020-12-08T18:55:29 | 2020-12-08T18:55:29 | 274,982,920 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,749 | py | # MIT License
# Copyright (c) 2020 Raúl Medina González <raulmgcontact@gmail.com>
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the right... | [
"raul.medina@alumnos.uva.es"
] | raul.medina@alumnos.uva.es |
58ece8df91b432499d8cc68f45a26444878ce311 | 904b4b7cd6b1709e9aded92737766a3b5a978838 | /Recuit simulé/Voyageur de commerce (Virgile)/test_vdc_simple.py | 24e06004a18dcbe9cfb6f5a06daca29be1c46c09 | [] | no_license | NicolasLagaillardie/Python | 3ec7aa6eb21ffa86fad33060bb53e42cb7957dc9 | a30037d688d8f11a195d7fa611347528c313d71b | refs/heads/master | 2020-03-30T13:48:27.038592 | 2018-10-02T16:54:42 | 2018-10-02T16:54:42 | 151,288,608 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 904 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Nov 11 00:32:34 2015
@author: btapiero
"""
import voyageur_de_commerce_simple
import random
import time
recuit = voyageur_de_commerce_simple.recuit_simulé
stats = voyageur_de_commerce_simple.statistiques
"""3 minutes pour 200 villes"""
n = 20 # nombre ... | [
"lagaillardie.nicolas@live.fr"
] | lagaillardie.nicolas@live.fr |
d04f22516e98b6fe9237904d5375a7ba63182675 | 55aa4003c17d696b104b6e6a14f25763911884e8 | /Helpers/Generator.py | 549be504e6daf2acd1320b3628b63e9134f934ed | [] | no_license | Yosef-Rubinstein/MvcForum_Python_Automation | 24bed3b85769e798edf47e45ab764add1539c2c3 | 36c4f5dc82b72d0dd01225d7fd53552e42dd4082 | refs/heads/master | 2021-09-27T06:19:10.160882 | 2018-11-06T15:42:47 | 2018-11-06T15:42:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 797 | py | import random
from Helpers.TypeValidator import TypeValidator
from Helpers.User import User
class Generator(object):
def __init__(self):
pass
@classmethod
def get_random_number(cls, amount_of_digits=6):
TypeValidator.validate_type(amount_of_digits, int)
start_num = 10 ** (amount_... | [
"29010837+Merets@users.noreply.github.com"
] | 29010837+Merets@users.noreply.github.com |
d7a18e2482da4bbf4a6672960c409bd5bac90b25 | e0fee2b004b8d17cd8c8f620a8c1ec007af7700a | /stock/weight.py | 983c44cafd697a77e5bf586ed07abc8c2099d59d | [] | no_license | jianghang/stockout | 521b418b174dbbb60e2c2b9ca5bb93b2a854b0f5 | 3c2f8844cbe05a81c1240a6c45571fcfbec3387d | refs/heads/master | 2020-04-05T17:01:11.066500 | 2018-11-17T02:59:23 | 2018-11-17T02:59:23 | 157,040,397 | 0 | 0 | null | 2018-11-17T02:59:24 | 2018-11-11T02:28:07 | Python | UTF-8 | Python | false | false | 862 | py | __author__ = 'kittaaron'
from sqlalchemy import create_engine, and_
from sqlalchemy.orm import sessionmaker
import tushare as ts
from config import dbconfig
from model.StockWeight import StockWeight
import logging
engine = create_engine(dbconfig.getConfig('database', 'connURL'))
Session = sessionmaker(bind=engine)
se... | [
"liuhuiyu@qiandongdong.cn"
] | liuhuiyu@qiandongdong.cn |
c5dc3b07b22c16ff0d2ba8e972a96db988f9eb84 | af4902a4c10a415bfd55c4c0cc44036f80943d68 | /src/2020/day14/docking_data.py | 9f87d378f173858b3b2c380f1020c51e1b129b76 | [] | no_license | nathanpainchaud/advent-of-code | 9095a0feaf73b4785be2ddde1e335e0693d031d0 | 508d929a3fadbfc3a6dab3d53eedba3e6ff79af7 | refs/heads/master | 2023-02-02T23:00:06.973458 | 2020-12-21T03:25:35 | 2020-12-21T03:25:35 | 317,658,927 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,325 | py | import itertools
from pathlib import Path
from typing import Literal, Mapping, Sequence, Tuple, Union
MaskOp = Tuple[Literal["mask"], str]
MemOp = Tuple[Literal["mem"], str, str]
Op = Union[MaskOp, MemOp]
Program = Sequence[Op]
Memory = Mapping[int, int]
def decoder_v1(mask: str, address: str, val: str) -> Memory:
... | [
"nathanpainchaud@gmail.com"
] | nathanpainchaud@gmail.com |
8ae7e0ccfdd38e4f87825bf954e3b909c044737c | b2c364f5242c1a95ba6f7548131b62e0c333bebb | /python/Repeated DNA Sequences.py | 1fd009b722e74b052beb451a902dd7dddad16168 | [
"MIT"
] | permissive | luosch/leetcode | dc6e0cfbe90f8e003533b0d804c04449efbdf22f | 4d030d0b9d1958666abc3af33fc99fc73e1c9b2a | refs/heads/master | 2021-01-15T15:49:18.842847 | 2016-11-03T08:59:34 | 2016-11-03T08:59:34 | 41,963,573 | 8 | 1 | null | null | null | null | UTF-8 | Python | false | false | 516 | py | class Solution(object):
def findRepeatedDnaSequences(self, s):
n = len(s)
if n <= 10:
return []
answer, dic = [], {}
for start in xrange(10):
for i in xrange(start, n - 10 + 1, 10):
word = s[i:i + 10]
if word i... | [
"me@lsich.com"
] | me@lsich.com |
c83acd266998a676c45af85302043b8578f186dd | 420269f4bede7be8de96eae076e054c0645c0475 | /core/crawler1.py | 6b467ef774af88b2318a2f548374a448365bd32e | [
"Apache-2.0"
] | permissive | killvxk/Scanver | 45f766ea903a3fbc77cf85adfe6f44a032221baa | b23ac4753241f95e28587b82ae66672dd3eb6b7e | refs/heads/master | 2020-04-06T22:16:24.463437 | 2018-11-16T03:06:27 | 2018-11-16T03:06:27 | 157,830,534 | 1 | 0 | Apache-2.0 | 2018-11-16T07:39:12 | 2018-11-16T07:39:12 | null | UTF-8 | Python | false | false | 9,186 | py | #!/usr/bin/env python
# encoding=utf-8
#codeby 道长且阻
#email ydhcui@suliu.net/QQ664284092
#website http://www.suliu.net
import time
import re
import os
import sys
import queue
import threading
import urllib.parse as urlparse
from requests import Session,Request
from core.util import CoroutinePool as ThreadP... | [
"664284092@QQ.COM"
] | 664284092@QQ.COM |
b8dc98327266b9e015485a91cec15a0e2b7ec8ae | 9a354de0b25a599eb052f36cb68e0fe06bf0c0a2 | /WEB/test_case/base_testcase.py | 3f64bb336dd3c159e2b170133c95ba7fa246209a | [] | no_license | Owen-ET/2021_Python_HogwartsSDE17_Project_Practice | dfbfe75d20143812566d69d7f5ab88503221064b | d94f0fe2d1712d187c68c91c15bde0ccceb2e1ad | refs/heads/master | 2023-07-09T02:44:41.366302 | 2021-08-12T04:00:50 | 2021-08-12T04:00:50 | 392,661,398 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 741 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2021/08/12 09:48
# @Author : zc
# @File : base_testcase.py
from WEB.page.web import Web
from WEB.test_case.calendar.baseTestData import BaseTestData
class BaseTestCase:
def setup_class(self):
print("=======case_class_start=======")
... | [
"zhangchanget@126.com"
] | zhangchanget@126.com |
71a466d37022c518a227613a9dfc8a297a6a05fa | 994ef1f11a48be46909fb117029958572a3ebf54 | /bikeshed/inlineTags/__init__.py | 8b8fd265704343b3633cdf90e5c2b34bf0badad9 | [
"CC0-1.0"
] | permissive | jeffcarp/bikeshed | 0b496eb57444dc370294c978c20c801915167330 | 2fd85dd667b49f9c680c3ccd6638e796809603e7 | refs/heads/master | 2020-03-19T12:55:07.226417 | 2018-06-07T23:19:23 | 2018-06-07T23:19:23 | 136,549,665 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,109 | py | # -*- coding: utf-8 -*-
from __future__ import division, unicode_literals
import io
from subprocess import Popen, PIPE
from ..htmlhelpers import *
from ..messages import *
def processTags(doc):
for el in findAll("[data-span-tag]", doc):
tag = el.get("data-span-tag")
if tag not in doc.md.inlineTagCommands:
d... | [
"jackalmage@gmail.com"
] | jackalmage@gmail.com |
00a293f517af01a376d311491215fce59770a7e2 | a24afffe9379712524ffe2a6efd3314ae1ebbe3e | /polymorph/main.py | dbef6d9e84a8a1e284d52e970ed9e84d9ff7ac10 | [] | no_license | jawahendy/python_practice | 85fef5eb7e683a3fcd82923f74df20b884be1daa | 03d87a52fee6766657b41761e2ed5a54b0009f74 | refs/heads/master | 2020-09-21T12:47:02.563445 | 2019-12-29T11:22:00 | 2019-12-29T11:22:00 | 224,793,734 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,031 | py | # poly
class standup():
def laugh(self):
return "laugh() called"
def __str__(self):
return "your stand up very funny"
obj = standup()
print(obj)
# poly with exercise: must be same def in indonesia and malaysia
class Indonesia():
def capital(self):
print("jakarta is the capital of Indonesia.")
de... | [
"hendyn25@gmail.com"
] | hendyn25@gmail.com |
441b6dc60bf5b607d113e5bd700e4935c0d30929 | 6072598f2c7777ca5edbd42fc642c93ed587b3af | /ocr/utils/iam_dataset.py | 751f79b0b420f2284d287a21393c799c354be94a | [] | no_license | saurabh9450150287/Handwritten-Text-Recognition | 9be1ba5c64121e1f24d60011e02515a7ed73e14b | 9f43c6e39c395014c047939bc7dcf7ea5d0004f7 | refs/heads/master | 2022-02-05T16:00:33.607325 | 2022-01-16T04:35:28 | 2022-01-16T04:35:28 | 254,440,288 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26,210 | py | # Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
import os
import tarfile
import urllib
import sys
import time
import glob
import pickle
import xml.etree.ElementTree as ET
import cv2
import json
import numpy as np
import pandas as pd
import zipfile
import ... | [
"43703209+saurabh9450150287@users.noreply.github.com"
] | 43703209+saurabh9450150287@users.noreply.github.com |
a9e7e10e2f7e99ac22d496ec8eea811538d31e58 | 0647dc7794126ef03e0a78b31c1ed64cc74e7c50 | /Final/log-files/SecondModel/Jan-26_20_05_57/mySimulatedEnv.py | b78de475d602dcd7daf395e950035985993c2ab8 | [] | no_license | panserbjorn/ControllerV-REP | 71a8fc9f7abd807852f869fc9d2e030fa3db09c3 | d3c1f8adfcbb3fa06279f9e8642126a95b58f7ff | refs/heads/master | 2021-09-11T19:58:02.216214 | 2018-04-11T20:03:50 | 2018-04-11T20:03:50 | 109,732,983 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,536 | py | import vrep
import time
import math
import numpy as np
import secuenceGenerator as sg
def distancia(puntoA, puntoB):
return abs(puntoA[0]-puntoB[0])+ abs(puntoA[2]-puntoB[2])
def puntoMovil(tiempo):
# return ((tiempo*0.09)-1.5,0.03,0.8) # Muy lento
return ((tiempo*0.1)-1.0,0.03,0.8) # Este arranca más adelante y... | [
"joaco.silveira@gmail.com"
] | joaco.silveira@gmail.com |
257596901833b31ee6d1c1e30389f6382bec0390 | 551593de05441c500ea6df8d1053ce79403b3deb | /blog/urls.py | cb4a5402c95e308db7507e4589c557007ccc4a00 | [] | no_license | scymz/ilk-blog | 0af87f78eb16371ae25ae1246b81fcd9513c76af | 29ba6c8b8686d39c649bc0554cfaa4048a124139 | refs/heads/master | 2021-01-14T08:05:51.939370 | 2017-02-14T11:55:26 | 2017-02-14T11:55:26 | 81,874,014 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 198 | py | from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^$', views.post_list, name='post_list'),
url(r'^post/(?P<pk>[0-9]+)/$', views.post_detail, name='post_detail',),
] | [
"suleymancaymaz@hotmail.com"
] | suleymancaymaz@hotmail.com |
6f45c2a0b1958ee0d002b74181e55cdeac6629bb | 189d36a9798ae2459d8605267021e76aa4f2640f | /testcases/rhsm/rhsm_level_2/tc_ID536715_check_whether_the_machine_is_managed_via_cli.py | f30224ba458ea594c5ac4365b03950785fcba470 | [] | no_license | shihliu/entitlement-ci | 967a0e51de39763bbc077844d2266203223c48a2 | 313e6d03eb7448387767f5d9f3b376d120c4d2f0 | refs/heads/master | 2021-01-16T21:51:56.426491 | 2017-12-21T07:46:58 | 2017-12-21T07:46:58 | 38,414,026 | 0 | 0 | null | 2015-07-13T08:47:23 | 2015-07-02T05:53:17 | Python | UTF-8 | Python | false | false | 1,935 | py | from utils import *
from testcases.rhsm.rhsmbase import RHSMBase
from utils.exception.failexception import FailException
class tc_ID536715_check_whether_the_machine_is_managed_via_cli(RHSMBase):
def test_run(self):
case_name = self.__class__.__name__
logger.info("========== Begin of Running Test Ca... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
9cbb73bc37e82590a1599785987482375bea3b43 | 689e675aa191d1b9042cc3a06bdf870ea5e238d6 | /python/templator.py | d401f64b574576d6fe4d55af23fa4a13787c5a01 | [
"MIT"
] | permissive | Skrip42/vim-templator | 3317156d2ccd3e07527ebc9ca00f92565b2f3e74 | e0f86aa89225c3413092fc60e7e36bfc6d622a56 | refs/heads/master | 2023-03-03T23:11:37.911862 | 2021-02-09T05:40:07 | 2021-02-09T05:40:07 | 331,517,207 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,447 | py | import vim
from operator import itemgetter, attrgetter, methodcaller
import re
import json
configFile = vim.eval('g:templator_config_dir')
with open(configFile) as configJson:
config = json.load(configJson)
config = sorted(config, key=itemgetter('priority'), reverse=True)
lastTemplateSet = [];
for t in config:
... | [
"skrip42@gmail.com"
] | skrip42@gmail.com |
a9454da5520d3399d40ace300004a1e6f4a8938f | f5cec28c71fdb3fdd40a43df0472cb0e6ab875f7 | /history/moderate diarized sections.py | 6940664d98f9f0bb0d0e07bf4d7456dfa19b08c7 | [] | no_license | Aprilluabsinthe/ML-Virtual-Moderator | 0a2d37ce99ba5300b822927359a49a0682e47c1d | 82dcb9403b33812f70c78e568ee64dcc29696091 | refs/heads/main | 2023-04-20T01:17:28.741720 | 2021-05-03T23:17:22 | 2021-05-03T23:17:22 | 364,085,176 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,976 | py | import pyaudio
import numpy as np
import time
import matplotlib.pyplot as plt
from speechDiarization import extractFeature, clusterRealTime
import random
import matplotlib.patches as mpatches
from six.moves import queue
from google.cloud import speech
import re
import sys
import utils
import threading
... | [
"noreply@github.com"
] | noreply@github.com |
fea64387826bc32cf1f383a64154c25a7a5dff59 | 70600bddb6e5d03c61863e90847161d558b7926b | /iroha_bridge.py | a685b69eb6f4fdd68451f9ae437b0ea6a0ca4254 | [] | no_license | cpchandrasekharan/iroha-supply-chain | 1a3e8e2c20843258b2e020bc536efe8fe5d9291f | 0dab506155c0c67d6098fa4dc22b88ae13821c68 | refs/heads/master | 2020-06-06T15:09:14.629404 | 2018-04-23T10:06:58 | 2018-04-23T10:06:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,636 | py | import sys
# sys.path.insert(0, 'build/shared_model/bindings')
import iroha
import block_pb2
import endpoint_pb2
import endpoint_pb2_grpc
import queries_pb2
import grpc
import time
from google.protobuf.json_format import MessageToJson
from google.protobuf import json_format
import json
tx_builder = iroha.ModelTrans... | [
"bulat.nasrulin@gmail.com"
] | bulat.nasrulin@gmail.com |
cbad66ecfbe6ea71eee4dcfea31e0e7a4c1c0ea2 | 654ab79a56d5ed0382bc2aa876ab8388c2fe00ea | /ecommerce/store/migrations/0040_delete_post.py | 87dfc7ee32295f115f0d77db75d3945b6f6b3477 | [] | no_license | AshutoshSingh-123/FPO-Connect- | ee76c401411a0344ab177fe7f50df2c068a7d4ef | d78035472a7596b8247a90e2ff014911a5c24f9b | refs/heads/master | 2022-12-26T20:25:53.113441 | 2020-10-18T14:35:51 | 2020-10-18T14:35:51 | 288,769,156 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 277 | py | # Generated by Django 3.0.7 on 2020-10-17 04:36
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('store', '0039_post'),
]
operations = [
migrations.DeleteModel(
name='Post',
),
]
| [
"48172432+ashsingh12@users.noreply.github.com"
] | 48172432+ashsingh12@users.noreply.github.com |
313a7c29205117facbd10cd212a0aeccefd0827d | 424f9f89ffa0de7f8ce91d8efa53c574a99ccb3b | /implementation/watermelon/solution.py | 97bc3586566746fa9debc83ab2f599d2e7d6f757 | [] | no_license | nshahpazov/problemset | ee10cfae2b14cdbd853b6ee897f4773930a0535b | d15f7b9b6fac343cf209e65d53da16001724d108 | refs/heads/master | 2021-01-19T08:15:49.638958 | 2015-06-18T08:57:12 | 2015-06-18T08:57:12 | 28,479,039 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 48 | py | w = input()
print['NO', 'YES'][n % 2 or n == 2]
| [
"nshahpazov@gmail.com"
] | nshahpazov@gmail.com |
22a0075c5895e2c43798c098210b61d6a8739694 | fbd2ff6ff25ee695469deaf66e6134c6d4ef1534 | /slq_fast.py | 97c67db26a9390f0cff1d556df36886a40f06a1d | [
"Apache-2.0"
] | permissive | unonao/SPENet | e09035202191eac151572df443e5c9950bd1d67c | 93d316cfd57227c4078d8c0f952a875ed2a33fa2 | refs/heads/main | 2023-02-18T06:04:09.682486 | 2021-01-18T07:03:05 | 2021-01-18T07:03:05 | 322,438,148 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,689 | py | # coding=utf-8
# Copyright 2020 The Google Research Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | [
"naokiuno634@gmail.com"
] | naokiuno634@gmail.com |
d76eb43b42c0d5a5afa000ae77c43c2aa410c1e8 | 842f5d262e90477cd39bef1a7c38c626bcec1e64 | /myScatter.py | 7934544802a48ffb6c8d43d4459e28d604a25209 | [] | no_license | gejianwnen/IGBT_NASA | 8e1cedc16e00413592d39f110bec65545285fc51 | 7450c26b140d3ee230ffdf317c002780dae7242c | refs/heads/master | 2020-12-13T18:24:08.719595 | 2020-01-17T08:01:11 | 2020-01-17T08:01:11 | 234,494,185 | 2 | 0 | null | 2020-01-26T13:48:48 | 2020-01-17T07:22:52 | Jupyter Notebook | UTF-8 | Python | false | false | 771 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Jan 10 19:25:15 2020
@author: gejianwen
"""
import numpy as np
import pandas as pd
import matplotlib
import matplotlib.pyplot as plt
def myScatter(map_df,suffix_str):
# plot it
cm=plt.cm.inferno # ['viridis', 'plasma', 'inferno', 'magma', 'cividis']
x = map_df['... | [
"1327303553@qq.com"
] | 1327303553@qq.com |
caedeaa0c9883d45f2c5f9a1cae9957ac8b8b4df | 200df6cda6e54d56a4c800e10e6d5f248d7d59f2 | /02-算法思想/位运算/371.两整数之和.py | ab3558bfb85bc5d3272ed4744954c96a1546b48c | [] | no_license | jh-lau/leetcode_in_python | b9b9a47d0b3ce29c3c56836b39decc3ec4487777 | 1d1876620a55ff88af7bc390cf1a4fd4350d8d16 | refs/heads/master | 2023-04-17T15:01:49.925774 | 2021-04-24T01:17:39 | 2021-04-24T01:17:39 | 192,735,826 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 902 | py | """
@Author : Liujianhan
@Date : 20/8/9 13:31
@FileName : 371.两整数之和.py
@ProjectName : leetcode_in_python
@Description : 不使用运算符 + 和 - ,计算两整数 a 、b 之和。
示例 1:
输入: a = 1, b = 2
输出: 3
示例 2:
输入: a = -2, b = 3
输出: 1
通过次数33,804提交次数60,727
"""
cl... | [
"lorgerd@163.com"
] | lorgerd@163.com |
51955a06d57a7e3c5b360c84af9a870ccd50115f | da5f58700bfc699976dbc148c326d8a56e299a00 | /in_order_traversal.py | dafdbeb4bfd9316721a05a910d1d33933e295159 | [
"MIT"
] | permissive | erv4gen/CS-Playground | 7da0ce8605964aa0a0da8d110124c4ae4cef8191 | 6225a1358384c70bc55915554a3050521e0d8524 | refs/heads/master | 2021-04-12T18:20:30.404588 | 2020-03-22T02:41:48 | 2020-03-22T02:41:48 | 249,100,077 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 718 | py | '''
Given a binary tree, return the inorder traversal of its nodes' values.
Example:
Input: [1,null,2,3]
1
\
2
/
3
Output: [1,3,2]
Follow up: Recursive solution is trivial, could you do it iteratively?
'''
# Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# ... | [
"eremin.vladimir.d@gmail.com"
] | eremin.vladimir.d@gmail.com |
11e32484d5ac5804186e9c345d42b027364cd42c | 438ac17316c3c66287a58a56c1f940ad3c7c949f | /nb_backend/api/utils/messages/__init__.py | 554c02878be1384917a3061645bfd29e449dda84 | [] | no_license | oagutu/nb | e76302c614e4e1e7d3e336cbc516f3fbc1efc88e | 6dadbaefdb7e2f68bbe18aaebb8bde273969cecb | refs/heads/develop | 2022-05-05T00:23:12.615567 | 2019-09-25T14:05:42 | 2019-09-25T14:39:22 | 171,648,355 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,272 | py | """Messages main module"""
# 3rd party
from rest_framework import status
# messages
from .success import SUCCESS
from .error import VALIDATION
def create_response(*args, **kwargs):
"""Create success/error responses.
Args:
*args (list): Variable length tuple.
**kwargs (dict): Variable length ... | [
"obolagutu@gmail.com"
] | obolagutu@gmail.com |
8db9c8a78e8868f960417500022cb6c3f1be552a | 2bc12c36eb39bc271641f391bb7067ef1bfddfc9 | /2019/12/solution.py | 00a219a1275edae41f2d08f8a0441b2979c54d15 | [
"MIT"
] | permissive | iangregson/advent-of-code | 0243077b8415a1e95e9dcd413c76aea3b9466ce5 | cd20404940ac5ed18b8ac61a836186a2f2580003 | refs/heads/master | 2023-01-05T18:59:10.931750 | 2023-01-03T11:53:46 | 2023-01-03T11:53:46 | 252,134,765 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,216 | py | from pathlib import Path
# file = Path(__file__).parent / "test_input.txt"
file = Path(__file__).parent / "input.txt"
lines = file.read_text().splitlines()
class Moon:
def __init__(self, *, p = (0,0,0), v = (0,0,0), name = 'Moon') -> None:
self.p = p
self.v = v
self.name = name
def __... | [
"ian@gregson.me"
] | ian@gregson.me |
4233021cd32fbf6c7bf58db22f415a7351f74277 | 51e4b165f7272cbfa7082ccce06e2534769d3ade | /Problem8.py | f89caa82682f67835b264f5b2e84f7ee8d2e4e30 | [] | no_license | jonaylor89/ProjectEuler | a7248a8237ac5121f3693814393b5bd5e21dfa53 | 7954cfbec7f7960e2cfeb476d6b5a51dec4372eb | refs/heads/master | 2021-09-05T09:26:37.419749 | 2018-01-26T02:47:54 | 2018-01-26T02:47:54 | 103,562,391 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,336 | py |
productList = set()
def addProducts(num):
for x in range(len(num) - 12):
sum = int(num[x])
for y in range(1, 13):
sum = sum * int(num[x + y])
productList.add(sum)
def main():
large_string = "73167176531330624919225119674426574742355349194934\
9698352031277450632623... | [
"jonaylor89@gmail.com"
] | jonaylor89@gmail.com |
4eb4be01ef0ba53ed7fb0fad33a09317a1edc153 | d71ddeec7ffaccc41f3a305b25b4c32526695b9e | /Part_2/problem3.py | 34ba9c5593ae1a0bb0eb26f78c1755b3acd34b3b | [] | no_license | kushaldhungana/Machine_Learning_in_Crowd_Modeling | 2d2bfcccf87578f1609d163aa18402c5fdd0f567 | b66c7f6de6090d2a36cf65d4e658b3622a1d9629 | refs/heads/master | 2022-03-28T22:45:45.880516 | 2020-01-10T02:55:29 | 2020-01-10T02:55:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 834 | py | import argparse
import matplotlib.pyplot as plt
from celluloid import Camera
from grid import Grid
if __name__ == '__main__':
g = Grid(50,50)
g.set_target((25,25))
g.set_pedestrians([(48, 24), (31, 47), (5, 38), (5, 10), (31, 1)])
g.save_grid("results/problem3A")
fig = plt.figure()
camera = Ca... | [
"sabin.bhandari15@gmail.com"
] | sabin.bhandari15@gmail.com |
d80c7091a3dff9392be1359fc29509df04131c9c | 3c2a2cde61adc200081af5f43c300ff163704911 | /bin/TractSeg | 80908330ca62ac4ada54131c412efa49ab43be4a | [
"Apache-2.0"
] | permissive | bdpharmacy/TractSeg | e5aa22aded7e31733d4babc4ac53870829427938 | 7ea4b3566f8d17fabc127f11c0a16ad116a47567 | refs/heads/master | 2020-07-26T12:22:33.361876 | 2019-09-13T15:09:19 | 2019-09-13T15:09:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,818 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright 2017 Division of Medical Image Computing, German Cancer Research Center (DKFZ)
#
# 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
#
# ... | [
"j.wasserthal@dkfz.de"
] | j.wasserthal@dkfz.de | |
6f13c49c6e6fa4aaec05c26ff354c085642740da | ef4f9cfca5cc0fbeb5ac6547d607bd51c52d53cc | /UnityPy/export/AudioClipConverter.py | 80218b5898476b7c6027f2aa91d7a8bdd396775c | [
"MIT"
] | permissive | l3iggs/UnityPy | c1fe52719990817c00232834d9436dfb6a70ee57 | 01822260261e395565f357b33d5dab35e1a847b3 | refs/heads/master | 2021-03-27T22:56:13.402044 | 2020-03-03T12:12:49 | 2020-03-03T12:12:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 965 | py | try:
from fsb5 import FSB5
except ImportError:
print('Couldn\'t import fsb5.\nfsb5 is required to process convert audio clips.')
def extract_audioclip_samples(audio) -> dict:
"""extracts all the sample data from an AudioClip
Copied from unitypack
https://github.com/HearthSim/UnityPack/blob/d9ce99fac3c917fa44b004... | [
"rkolbe96@gmail.com"
] | rkolbe96@gmail.com |
a737528913a0670d4c0faa29637fca75a4deaa98 | 338026ad40cbf944e8c56b0f81d13cf058cf88b8 | /K.py | adf80924ed571e1a1521ffa21085ca622faffeaf | [] | no_license | Kakashi-py/KAKASHI | 07405889af6fd1f1b9cc7ff4c63a98de69ffb552 | 100293a940ce16c865bd7419ce7ea4290ede0c9a | refs/heads/main | 2023-08-25T16:46:00.882718 | 2021-11-07T19:21:01 | 2021-11-07T19:21:01 | 425,594,679 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 77,209 | py | # Encoded by HackerMode tool...
# Copyright: PSH-TEAM
# Follow us on telegram ( @psh_team )
import marshal
exec(marshal.loads(b'c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x08\x00\x00\x00@\x00\x00\x00s\x8a\x00\x00\x00d\x00Z\x00e\x00r\x08d\x01d\x02\x84!Z\x01e\x02e\x03d\x03\x83\x02\x8f#Z\x04e\x04\xa... | [
"noreply@github.com"
] | noreply@github.com |
8e05b2723d8c50354e785b4bc7c5de8860aa706d | 134fcf9c6c9105845f3b565b94745669ecacaced | /backbone.py | fd13419cef763c6f10585bcffbdd6ae2899f109b | [] | no_license | Aamer98/proj_cdf2 | 6a8a14bac86ea86e228d7125e8b03ce4cc70724f | c81e13f3bcf0e2e792b29b0ace17d1ba864a04b1 | refs/heads/master | 2023-08-19T05:03:10.252762 | 2021-10-12T08:10:32 | 2021-10-12T08:10:32 | 400,399,793 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 231 | py | import torch
import torchvision
from torch import nn
def get_resnet18(pre_imgnet = False, num_classes = 64):
model = torchvision.models.resnet18(pretrained = pre_imgnet)
model.fc = nn.Linear(512, 64)
return model
| [
"ar.aamer@gmail.com"
] | ar.aamer@gmail.com |
237651e0e0df7020db245265ec6d0e4ffa9d53cd | babcb67c67ff427fccfe273995e407d8b6a63aac | /make_study/pair_exp.py | 3e001b8dc44aade0ff4581dc2609d944af4aeead | [] | no_license | n8heller/pair_master | 654c576e0654d828fe07456bdcb68f9fc5fda86a | 6b9b8da5cd0747cb8f550c9a7c83b4dbf3adfbb5 | refs/heads/master | 2020-12-24T18:51:09.884578 | 2016-05-09T23:09:38 | 2016-05-09T23:09:38 | 57,453,800 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 619 | py |
def Make_Pair_Exp(study_name, num_trials, num_blocks):
Make_Pair_Blocks(num_trials, num_blocks)
exp_f = open(study_name + '_exp.html','w')
const1_f = open('pair_vars/pair_const1.txt','r')
const2_f = open('pair_vars/pair_const2.txt','r')
blocks_f = open('pair_vars/block_var.txt','r')... | [
"nhheller@ucsd.edu"
] | nhheller@ucsd.edu |
2cf0d05c577d04e0a09d18fe0bcc1ef6a589c703 | cf116b01491e9b8bab039aa13d67375302c3afa0 | /intents_functions.py | aa4141c3bec996238fbd0021855320a8f8718b64 | [] | no_license | bentanlw/ebacs_plp_project | b9164f54c0b370ca2bd8b8c751ea6f2100ab3863 | 9781434d0729553449bda3daf7ce4e903cf52201 | refs/heads/master | 2023-01-06T02:27:44.178972 | 2020-10-27T12:54:37 | 2020-10-27T12:54:37 | 283,921,231 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 450 | py | def process_input(text):
return ' '.join(text.lower().strip('; ').split())
def process_input2(text):
text = text.lower() # form variable name
text = text.strip('; ')
text = ' '.join(text.split())
return text
class Intents:
def __init__(self):
self.current_intent = None
def update_... | [
"bentlw@gmail.com"
] | bentlw@gmail.com |
9453b0c82b347a2281e2f6f9578650b9102fb2aa | 59228f7db83f1fef7553c861d99474b7bb12a868 | /Stepik/67/work with file/work with fille.py | 8624b4e8188ce5f2757a7e21d7fa55d100f4ea07 | [] | no_license | OlexZ/start | ca786235475f5ca46694b6093cc48a28797f4ad3 | ec35ca8fc903405e66e5fb1b7a74e20c128c84f9 | refs/heads/master | 2020-06-11T11:17:52.269541 | 2019-06-26T16:59:19 | 2019-06-26T16:59:19 | 193,943,704 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 697 | py | # a3b4c2e10b1
# aaabbbbcceeeeeeeeeeb
with open('dataset_3363_2.txt') as a:
txt = a.readline().strip()
num = ''
res = ''
caunter = 1
for i in txt:
if i.isdecimal():
num += str(i)
else:
num += " "
num = num.split(" ")
for j in txt:
if j.isalpha():
res += j * int(num[caunter])
... | [
"ukrenianman@gmail.com"
] | ukrenianman@gmail.com |
a7927c128fb37cb2bec53172bc46e35fd8d24741 | cb2df211142e20ea1dd3b39eee92cfb03458db39 | /ABLIRC/bin/Clip-Seq/MC/pick_gene_reads.py | 4d8b525e45ef8e50cac18abf51c2b50a685b8cf5 | [
"MIT"
] | permissive | ablifedev/ABLIRC | 4c9f1efa0f92a2a08ddcc142fad8eab670f83d33 | 875278b748a8e22ada2c76c3c76dbf970be4a6a4 | refs/heads/master | 2021-01-13T11:32:05.398582 | 2019-10-18T03:35:36 | 2019-10-18T03:35:36 | 81,188,219 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,135 | py | #!/usr/bin/env python2.7
# -*- coding: utf-8 -*-
####################################################################################
### Copyright (C) 2015-2019 by ABLIFE
####################################################################################
########################################################... | [
"ganglongma@ablife.cc"
] | ganglongma@ablife.cc |
edd73a6e9f9109155e760c535cc372c0efef4781 | 99fca8eaa3fb5e93ed4ed857b439293bc0952c79 | /functions/function_with_while.py | f25f759a877a40a5e26e551959c48600153ecc7d | [] | no_license | Ebyy/python_projects | 7adb377f4e8eec94613e4e348f02c2ded306efac | 0cacfab443d3eeeb274836b7be4b7205585f7758 | refs/heads/master | 2020-05-19T22:28:17.672051 | 2019-05-19T19:32:19 | 2019-05-19T19:32:19 | 185,240,041 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 474 | py | def get_full_name(first_name,last_name):
full_name = first_name + ' ' +last_name
return full_name.title()
while True:
print ("\nPlease tell me your name: ")
print ("Enter 'q' at anytime to quit.")
first_name = input("First name: ")
if first_name == 'q':
break
last_name = input("La... | [
"eberechi_oo@yahoo.com"
] | eberechi_oo@yahoo.com |
736a008fa3dbc721d041ba83bee8c9543dda3d15 | 0aad66f2d9c68b59ab3afb81b76021fc19414796 | /build/rosbook_arm_controller_configuration_gazebo/catkin_generated/pkg.develspace.context.pc.py | 847023a8005c024d7316763b6d027d632bc5209a | [] | no_license | moucrob/dbg | bb1c8d13c7aeedbf6a7d461eaa2537db672a23c1 | 5faf26e97f9fd69cf27284cd2d336127c62a1a8e | refs/heads/master | 2020-03-18T03:17:58.129444 | 2018-05-21T09:29:46 | 2018-05-21T09:29:46 | 134,233,406 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 410 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "rosbook_arm_controller_configuration_... | [
"mathiasmouchrik@gmail.com"
] | mathiasmouchrik@gmail.com |
9137a3c57452ff463e6ce3ae2dfe80a449286f59 | 529f481b84b625a60674de9baf3bda9eac0701d8 | /kodlar/YuksekBasarimliHesaplama/Theano/random_6.py | 2daa2992409cd25d9936d014ee3eef198f6f9971 | [] | no_license | atcemgil/VBYO | 1a54199a43f29509751075f6b279f462d82935fa | 1f50e376ae951be269edc68219a1d635034d6e14 | refs/heads/master | 2021-07-07T10:36:48.381287 | 2017-10-03T11:45:16 | 2017-10-03T11:45:16 | 105,567,992 | 3 | 1 | null | 2017-10-02T18:13:37 | 2017-10-02T18:13:36 | null | UTF-8 | Python | false | false | 1,301 | py | #The way to think about putting randomness into Theanos computations is to put random variables in your graph.
#Theano will allocate a NumPy RandomStream object (a random number generator) for each such variable, and draw from it as necessary.
#We will call this sort of sequence of random numbers a random stream.
#Rand... | [
"kaya@nebula.hpc.sabanciuniv.edu"
] | kaya@nebula.hpc.sabanciuniv.edu |
a363ed5e14809ef80fba2ac13d3e07260d8556b0 | eac21157487a1a490f94a7fdc198113765e8e6c2 | /Unit 7 Objects/Lesson31 Q31.1.py | ba949136096179252d8bde0309d858a78f17367a | [
"MIT"
] | permissive | ItsMrTurtle/PythonChris | 698cca61ea78d82af0a1b718629f634b274f5d50 | 4513dea336e68f48fabf480ad87bc538a323c2cd | refs/heads/master | 2022-10-05T23:08:19.997455 | 2020-06-06T04:49:00 | 2020-06-06T04:49:00 | 257,472,347 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 733 | py | # -*- coding: utf-8 -*-
"""
Created on Sat May 23 16:41:23 2020
@author: Christopher Cheng
"""
class Circle (object):
# Must initialize parameters of a class afterwards
# this is aka method
# self is used: you'll use this var to refer to any object of type Circle
def __init__(self):
# To defi... | [
"chr.cheng@mail.utoronto.ca"
] | chr.cheng@mail.utoronto.ca |
ac5ca8df380ee2bdb709cfecc06ebb4ce0362a3d | 5e6d8b9989247801718dd1f10009f0f7f54c1eb4 | /sdk/python/pulumi_azure_native/web/v20201201/app_service_plan_route_for_vnet.py | b319bfb3b370ac6ae0980079e6b3cf975b9c9edd | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | vivimouret29/pulumi-azure-native | d238a8f91688c9bf09d745a7280b9bf2dd6d44e0 | 1cbd988bcb2aa75a83e220cb5abeb805d6484fce | refs/heads/master | 2023-08-26T05:50:40.560691 | 2021-10-21T09:25:07 | 2021-10-21T09:25:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,450 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... | [
"noreply@github.com"
] | noreply@github.com |
4f3b2fb06ab2a2befafeeeda0600d04968e73546 | 3c8aaef535328f7c4d812cf086a637b27d891752 | /interview/linkedin/face/LC12Integer to Roman.java | bb4787359b3981e514348ec317fa69f17cfcff28 | [] | no_license | zhangshv123/superjump | 9339cd7f5e75d8a94be60d44c752267cc38183d3 | 7de5f69e6e44ca4e74d75fed2af390b3d2cbd2b9 | refs/heads/master | 2020-03-20T20:36:34.378950 | 2019-03-08T04:37:22 | 2019-03-08T04:37:22 | 137,696,605 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 709 | java | #!/usr/bin/python
public class Solution {
public String intToRoman(int num) {
/**
I: 1
V: 5
X: 10
L: 50
C: 100
D: 500
M: 1000
**/
String roman="";
String one[]={"I","II","III","IV","V","VI","VII","VIII","IX"};
String two[]={"X","XX","XXX","XL","L","LX","LXX","LXXX","XC"};
String three[]={"C",... | [
"sz1266@nyu.edu"
] | sz1266@nyu.edu |
8ef9944395462e8eb17765405e47bd8404624524 | 7e36034a50693e9729fee054f304953437e787a8 | /乘法口诀表.py | 52e8a4d9157e90964085ea6f9e1bee467ac26f39 | [] | no_license | Mali-Dong/Learning-Python | 4e65a238f514bbb2aa60be220b63dac4435f73c1 | 39d9ade144ab1ade49c0312a5270c26f82fd33e5 | refs/heads/main | 2023-04-13T14:01:21.791803 | 2021-04-14T07:03:30 | 2021-04-14T07:03:30 | 357,807,640 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 110 | py | n = 1
while n<=9 :
k = 1
while k <= n :
print (k,'*',n,'=',n*k, end=' ')
k+=1
print()
n+=1
| [
"Mali.Dong@lyondellbasell.com"
] | Mali.Dong@lyondellbasell.com |
7a9e5766f3b2de142701543b54f237f093988527 | b02b0a638bb1612e646d25fe6e8389297c7fd1f9 | /recursion_and_dynamic_programming/string_permutations.py | bd9148fbfabac57c95b3d58cca2a3b762f346ef5 | [] | no_license | EricSchles/diary_of_programming_puzzles | a54d2034878732ced03bd51f547c45c913e2d459 | 20c3290ed4659df18ccb6e4063f01e9e4440f018 | refs/heads/master | 2021-01-24T22:02:32.429127 | 2015-06-14T16:08:02 | 2015-06-14T16:08:02 | 37,479,691 | 1 | 0 | null | 2015-06-15T17:20:59 | 2015-06-15T17:20:59 | null | UTF-8 | Python | false | false | 1,555 | py | """
Implement a routine that prints all possible orderings of the characters in a
string. In other words, print all permutations that use all the characters
from the original string. For exaple, given the string "hat", your function should
print the strings "tha", "aht", "tah", "ath", "hta", and "hat". Treat eac... | [
"me@davidadamojr.com"
] | me@davidadamojr.com |
1b0645a94aae75fc218608ceb7fae5dfbc357f01 | 53516c26263be668af48a08b3d9ba30d3bfd027b | /.config/sublime-text-3/Packages/oauthlib/all/oauthlib/oauth2/rfc6749/errors.py | a21d0bdb5dc15d6c53f9208ef36df858fe9baab7 | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer",
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | deltakapa/dot-files | 44c7a2534c6cbb4f852f06e4ebe11b1defabe019 | bb43088d2bcea15e892dfa45bff934b8e7399e17 | refs/heads/master | 2020-05-15T11:42:58.674152 | 2019-04-17T10:04:35 | 2019-04-17T10:04:35 | 182,241,177 | 1 | 0 | MIT | 2019-04-19T09:39:36 | 2019-04-19T09:39:36 | null | UTF-8 | Python | false | false | 7,812 | py | # coding=utf-8
"""
oauthlib.oauth2.rfc6749.errors
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error used both by OAuth 2 clients and provicers to represent the spec
defined error responses for all four core grant types.
"""
from __future__ import unicode_literals
import json
from oauthlib.common import urlencode, add_params_to_ur... | [
"mpho112@gmail.com"
] | mpho112@gmail.com |
48ebe94d3790e9461916371c7a65a09e2a7c4624 | a31bc0a04fa4e04cd3b2c33f61b4709b9d2743e2 | /translator1.py | ff2d3e43f55f08a2d63d0bbdd37b07537b8e5d5b | [] | no_license | Muhammaddiyor2002/translator_in_python | 4a11c13497aa36d3e18484b15d0a80c4d88a75e7 | e3432cf1e38b512380aeadb10a2d4d230bdf7f71 | refs/heads/main | 2023-04-08T16:08:23.556362 | 2021-04-19T10:04:40 | 2021-04-19T10:04:40 | 359,406,827 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,790 | py | from tkinter import*
from translate import Translator
from tkinter import ttk
#translation
def translate():
#get input from user
ip=engVariable.get()
#get selected langauge
langauge=lang.get()
#creating variable of Translator
translator = Translator(to_lang=langauge)
#Translation
transla... | [
"mtd.coder@gmail.com"
] | mtd.coder@gmail.com |
f3562b4889711b3146bab67e1793ebe7d76b0e88 | 3c59b7bde01cfbc1fbd170883393e8ebf7a0a92f | /백준/2174번 로봇 시뮬레이션.py | 84c48082e3727a12ce95da486b4ad383f736c878 | [] | no_license | gf234/python_problem_solving | 93ae00d940091131d8f8b06e478e385e4c2a4503 | 4c95751f5a687215c14bf61c37e6dc2e7e752342 | refs/heads/main | 2023-05-10T07:28:12.351006 | 2021-06-14T04:59:33 | 2021-06-14T04:59:33 | 314,479,583 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,566 | py | import sys
def input(): return sys.stdin.readline().rstrip()
a, b = map(int, input().split())
mat = [[0 for _ in range(a+1)] for _ in range(b+1)]
n, m = map(int, input().split())
robots = [0]
for i in range(1, n+1):
x, y, direction = input().split()
x = int(x)
y = int(y)
robots.append((x, y, directi... | [
"gf265@naver.com"
] | gf265@naver.com |
09420f650617e59edaf15fb4d77110378fbea435 | 11e7befbd33d3b1c962696fcc5b7f890e3a20225 | /src/tsp2.py | 1eb63832aacc3562b54931924ac56a8366a8c3a0 | [] | no_license | noahiscool13/eindproject | 0a2c3caba1f0cac0cb01b9c3b6a2896a4eb62b26 | 57347b936b467336635c0e9280fa631e218e61da | refs/heads/master | 2022-11-09T18:22:04.908325 | 2020-06-20T18:29:00 | 2020-06-20T18:29:00 | 256,585,111 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,991 | py | from queue import Queue
from time import time
from math import inf
def tdp(start, waypoints, goal, data):
"""
Traveling duck problem :)
"""
if (start,waypoints,goal) in data["wp"]:
return data["wp"][(start,waypoints,goal)]
# print(len(waypoints), end=" ")
# if len(waypoints) in [13]... | [
"n.j.m.jadoenathmisier@student.tudelft.nl"
] | n.j.m.jadoenathmisier@student.tudelft.nl |
a0509d73090b4367ff5d7992ec841949138f3606 | f5744f91c2900f42ed0c9597780e1d2b4eb0d9f2 | /RPS.py | 82962ee437d2cf832c62b3d2ff5de20e6bc80882 | [] | no_license | Shubhibarve/Python-Projects | d0494864b64a11faf2979b1b74f26cedda8ffc99 | 77f494e4956551270e060e857e4297fe3a28642d | refs/heads/master | 2022-12-02T08:10:20.265971 | 2020-07-23T05:28:44 | 2020-07-23T05:28:44 | 281,855,768 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 915 | py | from random import randint
t=["Rock","Paper","Scissors"]
computer=t[randint(0,2)]
player=False
while player==False:
player=input("Rock,Paper,Scissors?")
if player==computer:
print("Tie!")
elif player=="Rock":
if computer=="Paper":
print("you lose!",computer,"cover... | [
"noreply@github.com"
] | noreply@github.com |
948b9f71131add2201e0c03753c5f455cc691a1c | cdb5df3c04f0b9aae9220463d438fdbf36e725ed | /Python/Notes/practice.py | 4b1ffc87f24fa6ff19331336dddc82f320d7e9ff | [] | no_license | charlie2265/CodeGuild | fe5450e0c77b46fb114a5468d5d0f29bfad19047 | 5f937aba184e477b6f4f9915ffd533a59281e78d | refs/heads/master | 2021-06-20T10:50:32.882043 | 2019-02-10T03:54:23 | 2019-02-10T03:54:23 | 156,479,963 | 0 | 0 | null | 2021-06-10T23:06:55 | 2018-11-07T02:38:47 | Python | UTF-8 | Python | false | false | 1,036 | py | def latest_let(string):
last = string[0]
for char in string:
if char.isalpha():
if char > last:
last =char
if last.isalpha():
return last
return ''
print(latest_let('pneumonoultramicroscopicsilicovolcanoconiosis'))
# max number in a list
def max(nums):
... | [
"charlie.ritter@nike.com"
] | charlie.ritter@nike.com |
ed25c3e19e19378b86c16320397b70a9154b9600 | 611f29fd6713039d82622ce19c3fa1c700d20246 | /BellCurvePro.py | b86beb86a14288e726defa7f45bec2a6a5b2623f | [] | no_license | NabhayModi/BellCurve | 127facfdb10b5e1baab045d99d4e92e03cfe67b0 | f99baa2a39c16c0d327bb8e9ccc6662c378ac957 | refs/heads/main | 2023-07-10T17:04:23.065715 | 2021-08-04T09:43:57 | 2021-08-04T09:43:57 | 392,632,366 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 195 | py | import csv
import pandas as pd
import plotly.figure_factory as ff
df = pd.read_csv('Project.csv')
fig=ff.create_distplot([df['Avg Rating'].tolist()],['Avg Rating'],show_hist=False)
fig.show() | [
"noreply@github.com"
] | noreply@github.com |
c5c9a333688b2e09e9438aafa6f3c943e1e8b9ed | d65e9005deda84f0991ea52e056bb07429c1b360 | /MySQL/create_db.py | fc6f8620461ff12e8659a8f6d52d359addee3dfb | [] | no_license | Navaneet-Butani/python_concept | 71991ff7f31f4c21c66cec05777e61271f71b097 | d0c7e4fb773ca78f0937cb937630d11837f2d36c | refs/heads/master | 2020-10-01T10:27:25.296917 | 2019-12-13T12:15:37 | 2019-12-13T12:15:37 | 227,517,579 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 468 | py | import mysql.connector
# Create Database
mydb = mysql.connector.connect(
host="localhost",
user="root", # Specifies the user name of the system
passwd="123" # Password for that specified user
)
print("Databases:", mydb)
# Specify the cursor to work with
my_curs = mydb.cursor()
# Create Database
my_curs.... | [
"navaneetbutani44@gmail.com"
] | navaneetbutani44@gmail.com |
01cfaec5d7846367dcc5d499ec90243d8956f158 | 10f51b68e0f98a761e68e4f3a72ca5f9723cc937 | /venv2/Lib/site-packages/phonenumbers/geodata/data15.py | cb0aabb4917156d965ad4aac51383c5800863e3a | [] | no_license | CARLOS-AND-RABAB/zad | df88a06333f37b5fda86d2acf4bac30bc3b102f0 | 4e467231a42c70b7c778874eec5a3cb5c8bf493d | refs/heads/main | 2023-03-22T18:42:02.022050 | 2021-03-18T14:46:27 | 2021-03-18T14:46:27 | 345,817,968 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 923,652 | py | """Per-prefix data, mapping each prefix to a dict of locale:name.
Auto-generated file, do not edit by hand.
"""
from ..util import u
# Copyright (C) 2011-2021 The Libphonenumber Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the Licens... | [
"77850824+rababK@users.noreply.github.com"
] | 77850824+rababK@users.noreply.github.com |
9c7935a758b6fd60aedac9bddd417126e3bcb61d | ba5b75b52c4d43adc1334bed3d4f03383b8d5a8f | /Data-Structures/ArrayBinaryTree.py | f51719d8b00b324fe9c8a48037b0547a91966d33 | [] | no_license | sourceCode709/Python-Projects | be4ab1f8ca44d1146ea34c0f34a7c02e9f512b81 | bb2e07767ef20cb7b37b1ac1b7215395633547d9 | refs/heads/main | 2023-05-10T11:31:28.112030 | 2021-05-24T22:44:22 | 2021-05-24T22:44:22 | 348,187,182 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,436 | py | # Author: Daniel Brown
# Date: February 8, 2020
# Array based binary tree implementation
class ArrayBinaryTree:
def _parentIdex(self, j):
return (j-1) // 2
def _leftIdex(self, j):
return 2*j
def _rightIdex(self, j):
return 2*j + 1
def _hasLeft(self, j):
return self._leftIdex(j) <= self._... | [
"noreply@github.com"
] | noreply@github.com |
efeb79f1bd9a2d56e5e2e3ebeda405090337d68e | 99bdb3251fecee538e0630f15f6574054dfc1468 | /bsp/hk32/libraries/rt_drivers/SConscript | b810f026e9ff501395872370ecc7a2d8c7415467 | [
"Apache-2.0",
"Zlib",
"LicenseRef-scancode-proprietary-license",
"MIT",
"BSD-3-Clause",
"X11",
"BSD-4-Clause-UC",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | RT-Thread/rt-thread | 03a7c52c2aeb1b06a544143b0e803d72f47d1ece | 3602f891211904a27dcbd51e5ba72fefce7326b2 | refs/heads/master | 2023-09-01T04:10:20.295801 | 2023-08-31T16:20:55 | 2023-08-31T16:20:55 | 7,408,108 | 9,599 | 5,805 | Apache-2.0 | 2023-09-14T13:37:26 | 2013-01-02T14:49:21 | C | UTF-8 | Python | false | false | 1,309 | # RT-Thread building script for component
Import('RTT_ROOT')
Import('rtconfig')
from building import *
cwd = GetCurrentDir()
# add the general drivers.
src = Split("""
""")
if GetDepend(['RT_USING_PIN']):
src += ['drv_gpio.c']
if GetDepend(['RT_USING_SERIAL']):
src += ['drv_usart.c']
if GetDepend(['BSP_USI... | [
"jonaswen@163.com"
] | jonaswen@163.com | |
775e667b7e42903b92818536fd6f535d2e79a276 | 1bd3076902117867ec048210905195ba2aaaaa6b | /exercise/leetcode/python_src/by2017_Sep/Leet125.py | e9dc1cec010e73ea1188b750f667e3e9cd66ece8 | [] | no_license | SS4G/AlgorithmTraining | d75987929f1f86cd5735bc146e86b76c7747a1ab | 7a1c3aba65f338f6e11afd2864dabd2b26142b6c | refs/heads/master | 2021-01-17T20:54:31.120884 | 2020-06-03T15:04:10 | 2020-06-03T15:04:10 | 84,150,587 | 2 | 0 | null | 2017-10-19T11:50:38 | 2017-03-07T03:33:04 | Python | UTF-8 | Python | false | false | 930 | py | class Solution(object):
def isPalindrome(self, s):
"""
:type s: str
:rtype: bool
"""
li=[]
for i in s:
if self.is_chap(i):
li.append(self.to_low(i))
length=len(li)
length_tmp=length>>1
for i in range(length_tmp):
... | [
"songziheng@xiaomi.com"
] | songziheng@xiaomi.com |
a34e785955df1cfe34cb0badee891b8767a8f4a9 | 163424162c63ba15130ddc496d1475accde0d5f6 | /problem3.py | 5b740a0b6b153d2d50e74e512a1be826ecb42508 | [] | no_license | frankcash/Project-Euler | a2d6e0bc03a814a365068f253c0d1f722d6c52f9 | 848cb70b2aa406ff720514706be0727ec7f8d554 | refs/heads/master | 2021-01-19T23:33:26.055900 | 2017-05-06T23:32:25 | 2017-05-06T23:32:25 | 88,996,136 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 211 | py | """
What is the largest prime factor of the number 600851475143 ?
"""
def main():
num = 600851475143
for x in range(2, num):
if(num % x == 0):
num /= x;
print(num)
main()
| [
"cashc@acm.org"
] | cashc@acm.org |
fe24bf6d364fe0575df04246d61a27d8af5b9db8 | 3ab920e98da4a17ed2f45c5ffadcf196cd5f81d8 | /codes/Experiments/6 encoderfinal1.py | ab86144d4cf903eeef7d14dcfe192a373a00ee13 | [] | no_license | milanpreetsingh001/eYSIP-2017_Fi_Pi | 71b9e24c91d1c4478e5cfb8925915798e3408a88 | 8dd72cdb2be81fffedb92a512506eeff66c7f349 | refs/heads/master | 2022-04-26T20:32:27.662150 | 2017-07-07T20:40:05 | 2017-07-07T20:40:05 | 258,786,268 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,970 | py |
import RPi.GPIO as GPIO # import GPIO library
from time import sleep # time library to include sleep function
import serial # serial library for serial communication using xbee or any other serial protocol
import threading # importing threading for parallel programming to avoid delay in executing thge remaining progr... | [
"milanpreetsingh001@gmail.com"
] | milanpreetsingh001@gmail.com |
e3185f0aa3759c1a62fab0ccd65e39562f4c8763 | bf815da9cc16326bd397c939bf4e5a7ce0d3261e | /Python3/11.Function_Arguments/Lesson/1_ParametersAndArguments.py | f2299d99ecb9d70e0c00ff5f355272867622843e | [] | no_license | StingzLD/Codecademy | 2e6979afe49cfba1c0fc1038dc1a50f0649f5924 | a1a6f175758f6cd561cabd5bf050e219c1432930 | refs/heads/master | 2022-12-15T08:38:50.316955 | 2021-08-02T00:10:11 | 2021-08-02T00:10:11 | 172,606,261 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 224 | py | from record_library import place_record, rotate_record, drop_needle
def play_record(album):
place_record(album)
rotate_record(album)
drop_needle(album)
next_album = "Blondie / Parallel Lines"
play_record(next_album) | [
"47801434+StingzLD@users.noreply.github.com"
] | 47801434+StingzLD@users.noreply.github.com |
ebdc8ee5d45baab3e688487c7e44cb42b6f786dd | afa8c7f4149bfdfbbc34b3ce3c277cba046f24b5 | /casualchef/models/category.py | 3e829324bffcc1840920e9e51b464aaa58c2bafa | [] | no_license | PlaskED/casualchef | 16dd71223977fc22e149689d0e24a62c1c826d2f | 29bb3b98dc52f7b3801589e91b968e66a338a1ae | refs/heads/master | 2020-03-20T23:32:59.137769 | 2018-06-19T07:39:57 | 2018-06-19T07:39:57 | 137,851,634 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 482 | py | from casualchef.dbapp import db as db
class Category(db.Model):
id = db.Column(db.Integer, primary_key=True)
name = db.Column(db.String(64), unique=True, nullable=False)
category_recipes = db.relationship("CategoryRecipe", backref="Category",
cascade="all, delete-or... | [
"oscar_holm94@hotmail.com"
] | oscar_holm94@hotmail.com |
ec9e88a4880e87154363926cdbd257c6a1ab4f83 | 9ec23c8286f5010166ba35724f91d16ab813147f | /signup/forms.py | f0592f1184d2c928f099ef4c5a94cb7f6a313b81 | [] | no_license | Heart8reak/Part_II_Simple_Django_App-Tutorial- | 841922ab806a1c6a860a8daef0ad3094e41a3214 | 9ee9f57231c5352aca9d12119a9d4ab4e6085066 | refs/heads/master | 2020-05-14T20:25:32.744722 | 2019-04-17T18:19:11 | 2019-04-17T18:19:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,048 | py | from django import forms
from .models import Signup
# This is to capture email and save it in teh backend
class SignupModelForm(forms.ModelForm):
name = forms.CharField(widget=forms.TextInput(
attrs={
'placeholder':'Your name:',
... | [
"carlosbaez@Green-Planet.lan1"
] | carlosbaez@Green-Planet.lan1 |
1e07a88d5d8a1844e0c60d2548da5eb3d7ef3ca5 | 2fc8fc28f46a848ce0996e84b89eebdeb6bbe4ce | /gaffa_apps/gripper_detector/src/gripper_detector/OpticalFlow/InputSequence.py | 7d9b090614fbfa93309c16556053d79b80585bcd | [] | no_license | Haris-Dani/abroun-ros-pkg | 4224f473595340a0133b0089efab256aa6939f50 | e96849b845e7481cf9c4c31de51ce5c9c2ad8422 | refs/heads/master | 2021-01-23T20:51:07.240915 | 2012-07-23T14:15:58 | 2012-07-23T14:15:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,358 | py |
import rosbag
import numpy as np
import cv
import Utils
import math
import random
import sys
sys.path.append( "../" )
from OpticalFlowFilter import OpticalFlowFilter
#-------------------------------------------------------------------------------
class Distractor:
#------------------------------------------... | [
"abroun@alanbroun.net"
] | abroun@alanbroun.net |
04ceaa9c1f534e9c926b824a9f1d5781224f9210 | 5ab3ae0001216cd0dd4f8f7ffb1716d15cf77eaa | /2/150-Evaluate_Reverse_Polish_Notation.py | c0540fb63e2a4b79d9344b588a468e71e70a2546 | [] | no_license | ChangXiaodong/Leetcode-solutions | c3e55ac8f4a279698437b928c74107e102670a8e | 472f780c3214aab5c713612812d834ccbe589434 | refs/heads/master | 2021-01-17T22:23:04.085934 | 2017-08-23T14:15:24 | 2017-08-23T14:15:24 | 61,976,506 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 873 | py | # coding=utf-8
'''
注意负数除法!!!
用int(math.modf(x)[1])
'''
class Solution(object):
def evalRPN(self, tokens):
"""
:type tokens: List[str]
:rtype: int
"""
if not tokens:
return
i = 0
ops = {"+": lambda x, y: x + y, "-": lambda x, y: x - y, "*": lambda x... | [
"changxiaodonh.cxd@mac"
] | changxiaodonh.cxd@mac |
7af64b77ac598661201cc2659675e3f32f27a65c | ae3178b6fdc37f8c336614d6d1c83344b3fca03c | /utils/dataset.py | 4b59adc563093e5834a0c17640a94dc5df63443a | [] | no_license | isaacowusuosei/Team- | 0da9c0bfbb9194f2b9cce6f63bc89b05a03fa759 | 536caba5748fd75b8e4881b2581c7d4750487c86 | refs/heads/master | 2021-01-11T14:13:14.398739 | 2017-05-18T23:55:32 | 2017-05-18T23:55:32 | 81,165,593 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,691 | py | # Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"eric.rincon147@gmail.com"
] | eric.rincon147@gmail.com |
8175ab5428c114f568ad5d5ec337651d4fa883b0 | 96c1a9b9f52aa07a7a33c2a9c0510a3fca854078 | /urpx/user/models.py | 32514fffb855c36c98e97383dc0dbfc7fe0814fa | [] | no_license | urpx/urpx-backend | 318853d7a673f4469f83432342f00cb3bada90bc | c73ec092c85277620b6318690d8870d713f4c82d | refs/heads/master | 2022-12-12T01:26:15.088402 | 2019-06-25T13:37:23 | 2019-06-25T13:37:23 | 190,519,142 | 0 | 0 | null | 2022-12-08T05:48:02 | 2019-06-06T05:22:42 | Python | UTF-8 | Python | false | false | 1,247 | py | import datetime as dt
from urpx.extensions import bcrypt
from urpx.database import Column, Model, SurrogatePK, db
class User(SurrogatePK, Model):
__tablename__ = 'users'
username = Column(db.String(80), unique=True, nullable=False)
email = Column(db.String(100), unique=True, nullable=False)
... | [
"gyuhwan.a.kim@gmail.com"
] | gyuhwan.a.kim@gmail.com |
921e81500c20514092914db695ed742ea21e1583 | 6604a5ff7cb2965cd66f3d761f8c772e985c4a98 | /trec_eval_app/migrations/0004_auto_20160317_1742.py | 5722344922b0c84d90a02befffb4667f36438148 | [] | no_license | theokott/trec | 1d3d817a87b4eac9f333ef3d63944711f25ee4fa | e012f30e86decb15c9812933a0fcfa4a52fd99cb | refs/heads/master | 2021-01-10T02:28:59.763235 | 2016-03-25T16:52:28 | 2016-03-25T16:52:28 | 53,335,699 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 421 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('trec_eval_app', '0003_auto_20160317_1621'),
]
operations = [
migrations.AlterField(
model_name='userprofile',
... | [
"theoakott@gmail.com"
] | theoakott@gmail.com |
d929772b55f1b98b02b43884c15e85f8460be66b | bf07941c5ea878ae35d04a7ba78f4055a4c5d495 | /wesu-app-data-quality-analysis/separate_data.py | 0aa806b62374296dc8e6b47610c9c8a23073795c | [] | no_license | flatronek/vfr-lookout-analysis | a31d076a3c4a4ea26175f8cd91c5fe8873ab100d | 365905c311c6349a5f76f1ee0c55dc8556d0c0f6 | refs/heads/master | 2021-09-22T14:23:11.972166 | 2018-09-11T06:10:49 | 2018-09-11T06:10:49 | 115,126,805 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 132 | py | from vfr_data_analysis.samples import *
args = get_comandline_arguments()
perform_import_separation_and_cut_of_original_data(args)
| [
"sbrandys13@gmail.com"
] | sbrandys13@gmail.com |
9cab509580eeb4bdb83b561448de31f5c0e6716b | 8c680e37fcf1bc7535526dc388a2657223b0df50 | /src/api/api_v1/endpoints/items.py | eef6cd8f697b4c43d92de061c807184d36160f97 | [] | no_license | AlexKupreev/fastapi-terraform-gke-example | 9f017c0043dd41e2ea40a59db3f287745c9f5c96 | a288d1f93dcc60c908fa337379da08048200af0a | refs/heads/main | 2023-08-20T10:32:46.057596 | 2021-10-10T05:16:50 | 2021-10-10T05:29:34 | 415,219,309 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,235 | py | from typing import Any, List
from fastapi import APIRouter, Depends, HTTPException
from src.api import deps
from src.domain import schemas
from src.domain.user import User
from src.services import item as item_service, unit_of_work
from src.services.item import ItemNotFoundException, ItemPermissionException
router ... | [
"agkupreev@gmail.com"
] | agkupreev@gmail.com |
c5ff33ff898a501307deafa8300a7fe0f8387548 | b68c9e367d8f726936aad7e0903ebb3374ad3c84 | /Lab_04_MongoDB/exercise2/soln/ex2_q4.py | 68ae3f7f729e933ba9ac059f0ea74a79df9860a3 | [] | no_license | chaitaliarlekar/MongoDB | eb78cb125740917a027c76461f765e9f120dcd74 | 6f629342785c97a4d1ee551922d0ecf41f591f43 | refs/heads/master | 2021-05-26T09:10:12.509023 | 2020-04-10T14:29:55 | 2020-04-10T14:29:55 | 254,071,686 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 824 | py |
from pprint import pprint
from pymongo import MongoClient
from pymongo.errors import ConnectionFailure,OperationFailure
connectionString='mongodb+srv://201701101:201701101@mycluster-yony7.mongodb.net/test?retryWrites=true&w=majority'
#enter your connection String here
client=MongoClient(connectionString)
try:
cl... | [
"noreply@github.com"
] | noreply@github.com |
8c091a6d38d5a4a72fc19391d4ec5fbb2e1e2599 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2744/58575/318452.py | cab8aca44f0da824a2598b6dfcc05a0267da5712 | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 327 | py | n=int(input())
res=[]
for i in range(n):
temp=input().split(" ")
res.append(temp[1])
if(res==['aa','aba','aaa','abaaba','aaaaa','abba']):
print(14)
elif res==['aa', 'aba', 'aabaa']:
print(3)
elif res==['aa','aba','aaaaa']:
print(5)
elif res==['aa', 'aba', 'aabaa', 'bababa']:
print(4)
else:
p... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
cb200c3c1dcb82679f311c46a2a0981208a45d90 | 6824be3e952bfe3bf7ae9eca041788881fac3d31 | /interface/controls_components/Timer.py | 3bc19f425586e7901bed2dafaac5c840507cae29 | [] | no_license | antoine2116/Sudoku | 697cf420bc635d3bb4272f441a88e2a64cf239b1 | e5cae229bb411620cf23c9bd31f19fe359d7a021 | refs/heads/master | 2023-03-04T07:33:33.110946 | 2021-01-29T23:34:41 | 2021-01-29T23:34:41 | 322,002,575 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,218 | py | from PyQt5.QtCore import QSize, QTimer, QTime
from PyQt5.QtWidgets import QWidget, QHBoxLayout, QPushButton, QStyle, QLabel
from interface.styles.Style import Style
class Timer(QWidget):
"""
Timer component. Contains a label and a button
"""
paused = False
def __init__(self, timer_data, style=St... | [
"51358897+antoine2116@users.noreply.github.com"
] | 51358897+antoine2116@users.noreply.github.com |
09eb85c67c504269b13edd8a1b5f96b09e183ff7 | 2d68fb2ddded2cd21ca8578c99bc3b37df6226e2 | /blog/urls.py | 3245bcd1e4e85b8548ec30e30a006af9ed29a085 | [] | no_license | mathograham/my-first-blog | 72775d892d4a528345bc044001f735db7fee687a | 43649a1bfcf554be2d21470c08e44f4e6a6a7b4a | refs/heads/master | 2023-06-17T08:31:45.925723 | 2021-07-18T21:05:06 | 2021-07-18T21:05:06 | 349,804,323 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,002 | py | from django.urls import path
from . import views
#Tells django what to do with appendage to site's url
#first string in path is the appendage,
#second element is the view in views.py(must be created)
#third element is the name. Name used in html when calling django code
urlpatterns = [
path('', views.post_list, n... | [
"you@example.com"
] | you@example.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.