blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f73bb0415d498fc5ccba4b74357ab352a3acfbd5 | b1aaf7d98c90d2fec833f7a197ec8b807fcbcba1 | /samples/client/petstore/python-experimental/petstore_api/models/child_dog.py | 450e6983fca5580e71272a9a680de3ecf71fdbed | [
"Apache-2.0"
] | permissive | infinacle/openapi-generator | 544441bce51b4970e26eacfdf3a5eee235255b19 | 9f51bc19b802def95a47ef6daba80247c1dabf9a | refs/heads/master | 2020-07-18T11:18:14.251075 | 2020-03-16T05:44:22 | 2020-03-16T05:44:22 | 206,235,129 | 0 | 1 | Apache-2.0 | 2019-09-04T05:00:45 | 2019-09-04T05:00:44 | null | UTF-8 | Python | false | false | 5,720 | py | # coding: utf-8
"""
OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
The version of the OpenAPI document: 1.0.0
Generated by: https://openapi-generator.tech
"""
... | [
"james.schubert@gmail.com"
] | james.schubert@gmail.com |
dae6953a6a2368a727165f3716b61d70f3ef3003 | ecaf2c4d3360aab8492db46dce7104b3b19cfe73 | /gym_minigrid/multigrid.py | d37a1ad6ce6dfd5c1a385ed6a53d2da07857e6ea | [
"Apache-2.0"
] | permissive | naziah28/gym-minigrid | a7726187709dfc1f07fd90b94232c337bac93b56 | 8ebcf2840da5ebf728e083ed293b92fb38b9cebc | refs/heads/master | 2023-01-03T04:54:53.593145 | 2020-10-28T11:13:53 | 2020-10-28T11:13:53 | 263,015,879 | 0 | 0 | Apache-2.0 | 2020-05-11T10:53:49 | 2020-05-11T10:53:48 | null | UTF-8 | Python | false | false | 33,775 | py | import math
import gym
from enum import IntEnum
import numpy as np
from gym import error, spaces, utils
from gym.utils import seeding
from .rendering import *
from .window import Window
import numpy as np
# Size in pixels of a tile in the full-scale human view
TILE_PIXELS = 32
# Map of color names to RGB values
COLOR... | [
"naziah28@gmail.com"
] | naziah28@gmail.com |
49606bc5d3a8da0cae3a8792f1f6867089dfb5f2 | f9d3ee7b3b203d23f9ef2c95055e1d26bfddd74b | /nn/embedding/embedding.py | 29d3ea957df9c0aae268444adcd8460d4784fb39 | [
"MIT"
] | permissive | kefirski/amt | ec4b1d4f2bb9a0103c82ef3c09357894272b44f4 | 6dcca5743ea8750a740c569181ec6998352ef784 | refs/heads/master | 2021-05-12T19:26:27.756474 | 2018-01-14T19:56:24 | 2018-01-14T19:56:24 | 117,093,089 | 28 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,362 | py | from math import sqrt
import numpy as np
import torch as t
import torch.nn as nn
from gensim.models.keyedvectors import KeyedVectors
from torch.autograd import Variable
class Embeddings(nn.Module):
def __init__(self, path, vocab_size, max_len, h_size):
super(Embeddings, self).__init__()
self.voc... | [
"olavursky@gmail.com"
] | olavursky@gmail.com |
48710e200ed825af32b3f9c20c0a3b1df97979d4 | 7030af307165db851b7e0f826dac248a347c33e9 | /venv/bin/easy_install | 607d4e39a4c1ee345754bb3fe7e5d9b3d7b85259 | [] | no_license | kian79/django-blog-project | 8f1e0ffbfef24fe210211c1c970c2ca05c3b3522 | e5f9d23091b017ad5643fdc424c276ec461f54c1 | refs/heads/master | 2020-08-28T12:12:26.123003 | 2019-10-28T19:40:56 | 2019-10-28T19:40:56 | 217,695,760 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 445 | #!/home/kiankr/PycharmProjects/Blog_project/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install'
__requires__ = 'setuptools==40.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?... | [
"kiankr79@gmail.com"
] | kiankr79@gmail.com | |
4bcaa3376d450b8aa1c54c76e3908d3796c1edd3 | 68bfd128be73ab94ce3b2084585d2957376477d5 | /use_cos_loss/data_process.py | b71008b8eac28d7d60168c393e09fd653501c2c9 | [] | no_license | SunnyangBoy/Table_Derection | 88ceaab3c5f9f8b5ca5d62b7cdb8bffe6e5520b0 | 35eb4d48858f5aaabe4e46602b169acf67aca2d0 | refs/heads/master | 2022-10-21T08:20:22.546040 | 2020-06-17T15:46:30 | 2020-06-17T15:46:30 | 273,015,655 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,758 | py | import cv2
import numpy as np
import os
import math
def avg_count(img):
sum_r = 0
sum_g = 0
sum_b = 0
for i in range(10):
for j in range(10):
sum_r += img[i][j][0]
sum_g += img[i][j][1]
sum_b += img[i][j][2]
return sum_r/100, sum_g/100, sum_b/100
def av... | [
"ubuntu@localhost.localdomain"
] | ubuntu@localhost.localdomain |
623be1eccf107caa6df1c56c775d46b6a527b69b | 67a1f3b605cbd251bee18f3b62228196d17363ba | /content/assets/hots-duration/source/make_graphs.py | b49105eb845a43b4b38a82c098dbc9134e214a85 | [] | no_license | narfdotpl/narf.pl | 195e06516ebd1cace2bd07e823470553fa76e607 | 320cf835466ccc90db278bf0ea64fc30f06fcaf1 | refs/heads/master | 2023-09-03T15:46:06.278382 | 2023-07-11T19:30:44 | 2023-07-11T19:44:42 | 10,423,994 | 14 | 7 | null | 2023-05-02T20:13:47 | 2013-06-01T15:11:36 | Python | UTF-8 | Python | false | false | 6,112 | py | from dataclasses import dataclass
from typing import List
import math
import os
import statistics
from geometry import Point
from svg import Circle, Polygon, Polyline, Stroke, SVG
import colors
CURRENT_DIR = os.path.dirname(os.path.realpath(__file__))
GRAPHS_DIR = os.path.join(CURRENT_DIR, 'graphs')
@dataclass
... | [
"hello@narf.pl"
] | hello@narf.pl |
df62cdb2f8e3b3b4b00f8e54290e270e940e7491 | dfef060b2db0d29a6ccf312de98e0ffbf298ec25 | /artists_alboums.py | 670ef424b2423cdea83a66d2343a516fe8757d11 | [] | no_license | AmirMehdiHosseini/Ali-Sorena-Alboums | c5ff30a206f9a4c85a1b04cf146485914716eaad | ca38daae130570783821eff57a594054f2fb111e | refs/heads/main | 2023-07-16T22:04:51.796846 | 2021-09-01T17:54:36 | 2021-09-01T17:54:36 | 402,858,683 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,930 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'artists_alboums.ui'
#
# Created by: PyQt5 UI code generator 5.15.4
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
from PyQt5 import QtCo... | [
"amirhoseynimahdi1382@gmail.com"
] | amirhoseynimahdi1382@gmail.com |
e21bfb48b786aff188b42058a5985d33f25d148d | dba1d2881b9435c7d556c4ac96ae65796d6e6629 | /venv/Scripts/easy_install-3.6-script.py | 74000389bd3997cfa6e46c149aa579c486018682 | [] | no_license | CocoTheHacker/Useless-Pentest-Tools | 0554e18c6716b1e38b7f3a04e1d247fcd269e65f | 5f47a4cde13547020549acb89b290276da6621e2 | refs/heads/master | 2020-03-21T19:08:36.705083 | 2018-09-04T01:10:18 | 2018-09-04T01:10:18 | 138,931,846 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 460 | py | #!C:\Users\smile\PycharmProjects\HackerMan\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install-3.6'
__requires__ = 'setuptools==39.1.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.p... | [
"candocanadian@outlook.com"
] | candocanadian@outlook.com |
b328148513b730d327ef00347c479d77d7017b81 | 26d846c4cb9b54d9cbf688ef4244aaa274f485cd | /vision/nodes/ball_detect | cb520dec384bf3b88b3859a855fd2d788b13a8df | [
"MIT"
] | permissive | SuryaKannan/robotics_design_project | 2b9ea55ab013a43372b81d251c136422e9cd9227 | a7e85ea61e6f37891d92e2cd314ebed6b8fe5c0b | refs/heads/main | 2023-08-21T04:59:14.691799 | 2021-10-16T06:09:13 | 2021-10-16T06:09:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,848 | #!/usr/bin/env python2
from sensor_msgs.msg import Image
from std_msgs.msg import Float32
import rospy
from cv_bridge import CvBridge
from cv_bridge import CvBridge, CvBridgeError
import cv2
import numpy as np
class Detect():
def __init__(self):
rospy.init_node("ball_detect")
rospy.Subscriber("/j... | [
"surya.kannan@icloud.com"
] | surya.kannan@icloud.com | |
8a67bdc1d77e3fadc6856f44c49ef340a6f4c618 | 1ab5623e2ab599ca46c8535e337aedb8f7b6702c | /multiagent/scenarios/debug_sparse.py | 5362eee0717799f3020f727c234248cb2377bcf3 | [
"MIT"
] | permissive | sebLopezCot/multiagent-particle-envs | 777b8be9b80a40a3ae7272575f226bcbf0bc4a57 | 47e14d89a3a24d57b8278494ccb435c74a496ebe | refs/heads/master | 2020-04-13T13:22:44.590464 | 2018-10-15T02:15:26 | 2018-10-15T02:15:26 | 163,227,936 | 0 | 0 | MIT | 2018-12-27T00:16:08 | 2018-12-27T00:16:08 | null | UTF-8 | Python | false | false | 6,669 | py | import numpy as np
from multiagent.core import World, Agent, Landmark, Goal
from multiagent.scenario import BaseScenario
class Scenario(BaseScenario):
def make_world(self, num_agents=1, collide=True):
world = World()
# set any world properties first
world.dim_c = 2
num_agents = nu... | [
"dkkim93@mit.edu"
] | dkkim93@mit.edu |
98b5bc5c8b46589262257c617a744a4d546bdf4f | de54aae0476164a18b11381d06c7293a86893076 | /accounts/forms.py | 36a8cef559463c439e07ae3f5c6d7984e17cceb0 | [] | no_license | arjun828207/CoustmerRelationManagement | 0be97cd67c8553e52ed9a3071a81139c121e4599 | a4ab2d14fa4ec21625107391b1006560a4b0fa6a | refs/heads/master | 2023-02-24T14:01:53.402334 | 2021-02-01T06:37:00 | 2021-02-01T06:37:00 | 322,649,518 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 190 | py | from django.forms import ModelForm
from .models import Order
class OrderForm(ModelForm):
class Meta:
model=Order
fields='__all__' #fields=['customer', 'orfder']
| [
"arjun_bp@rediffmail.com"
] | arjun_bp@rediffmail.com |
ef71b7f4349dd2f1d6aad225363d74a2f29bb878 | 5cbdc1a651c6f6308ab1a2a96c009731af5a0e73 | /.github/AwsConfigRulesPythonLinter/test/test_testcase_naming_not_compliant.py | 1ed3bfe0590f62940634754e9b054ac41992f0b1 | [
"CC0-1.0"
] | permissive | vijayth/aws-config-rules | 239da1b56e1d739fdfd83aa07d6112094d0fb8b8 | 7c6320f7e6537996c2131a529e7f355d37f4e0f3 | refs/heads/master | 2022-06-12T05:21:15.777836 | 2020-04-08T02:38:51 | 2020-04-08T02:38:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,388 | py | import pylint.testutils
import astroid
from aws_config_rules_python_linter import testcase_naming_not_compliant
from pylint.interfaces import Confidence
GOOD_NAME = """
import unittest
class ComplianceTest(unittest.TestCase):
def test_scenario1_evaluateChange_stoppedInstanceWithoutDate_returnsCompliant(self):
... | [
"jrault@git.amazon.com"
] | jrault@git.amazon.com |
796339c3d2823a9cfd5a24e26446e0c3589c81fc | 635aee2df4d27283de58cd6abe2717638cdef2a1 | /Django_L/orm_operate/orm_operate/wsgi.py | d9ccbb458236798ec5b7bf834ae0b1f69c7f64cb | [] | no_license | Rainlv/LearnCodeRepo | bf469953deeadac00a288c596dee43ff5fa0f46e | 7bebb43d726e24c74f105a38d3f72d03b22c89fc | refs/heads/master | 2023-06-16T14:22:02.844026 | 2021-07-16T06:36:33 | 2021-07-16T06:36:33 | 386,536,156 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | """
WSGI config for orm_operate project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_S... | [
"610253199@qq.com"
] | 610253199@qq.com |
d5e44748a1add0550ba38eb0d3ee626128c916e3 | 931144ef4082c71a4bb5de9eabe529b4f30b5f22 | /roles/iri/files/nbctl | 00188a4de1cb50ae7396a2d447d06752c5c70672 | [
"MIT"
] | permissive | svenger87/iri-playbook | ac3c67ac9ed49215a1ba7e2496097a0996abbe87 | e3871c78a5b60dad8ceea1dac842fe89e4d22f62 | refs/heads/master | 2020-04-24T02:09:40.357588 | 2019-02-20T07:57:13 | 2019-02-20T07:57:13 | 122,597,876 | 0 | 0 | MIT | 2018-02-23T09:04:53 | 2018-02-23T09:04:52 | null | UTF-8 | Python | false | false | 12,023 | #!/usr/bin/env python
import argparse
import tempfile
import logging
import hashlib
import socket
import yaml
import json
import sys
import re
import os
from shutil import copyfile
from os.path import expanduser
from ipaddress import ip_address
from argparse import RawTextHelpFormatter
try:
import urllib3
except ... | [
"nurielst@hotmail.com"
] | nurielst@hotmail.com | |
0845d1f075a7811404b355d17f30f0b0df9abc6c | 045cb1a5638c3575296f83471758dc09a8065725 | /addons/whatsapp_live/__manifest__.py | 38438a168cf3acf2f7b5d8951b7acb880a863574 | [] | no_license | marionumza/saas | 7236842b0db98d1a0d0c3c88df32d268509629cb | 148dd95d991a348ebbaff9396759a7dd1fe6e101 | refs/heads/main | 2023-03-27T14:08:57.121601 | 2021-03-20T07:59:08 | 2021-03-20T07:59:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 699 | py | # -*- coding: utf-8 -*-
# Copyright 2019 GTICA C.A. - Ing Henry Vivas
{
'name': 'Whatsapp Connect Chat Live',
'summary': 'Marketing, Sale, connect Chat Whatsapp live for your business',
'version': '13.0.1.0.0',
'category': 'Website',
'author': 'Harpiya Software Technologies',
'support': 'info@h... | [
"yasir@harpiya.com"
] | yasir@harpiya.com |
34a254cec9548abcbab60b1f99bd0c35a6bbda8c | cddecd541b81e6240a3931f6ed0edebd1996d6ad | /lib/typing.py | 7d8c7a343e44ad27f80bfd4f9e9c6ecf9015a12f | [
"MIT"
] | permissive | ejsuncy/tesla-alfred-workflow | cca47f59dd5e7fa9983eddf16fd6effad3542d44 | d68e55b9d779004470c8e45327a3445946ed468f | refs/heads/master | 2020-04-21T11:10:35.661274 | 2019-07-31T20:53:40 | 2019-07-31T20:53:40 | 169,513,194 | 3 | 0 | MIT | 2019-07-31T20:53:41 | 2019-02-07T03:19:41 | Python | UTF-8 | Python | false | false | 71,774 | py | from __future__ import absolute_import, unicode_literals
import abc
from abc import abstractmethod, abstractproperty
import collections
import functools
import re as stdlib_re # Avoid confusion with the re we export.
import sys
import types
import copy
try:
import collections.abc as collections_abc
except ImportE... | [
"dbunked@gmail.com"
] | dbunked@gmail.com |
59948c00e4905df5fa1638c82f7126e0f1b85ed8 | 5381faf718dce8931d4213bd80b26beacd032015 | /mysite/polls/views.py | 0bc81bccc9542893cf8355db502735e2f1978185 | [] | no_license | Kozzii/matt_blog | e4f06ca9313eaa5e0f80d49f4fbbb385493c3a0c | 43f8d3cf12b8bcdfcdde05b593bee87bab2eb8ed | refs/heads/master | 2021-01-22T20:35:00.552754 | 2012-06-22T19:51:25 | 2012-06-22T19:51:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 930 | py | from django.shortcuts import get_object_or_404, render_to_response
from django.http import HttpResponseRedirect, HttpResponse
from django.core.urlresolvers import reverse
from django.template import RequestContext
from polls.models import Choice, Poll
def vote(request, poll_id):
p = get_object_or_404(Poll, pk=poll_id... | [
"kozzii@kozzii-virtual-machine.(none)"
] | kozzii@kozzii-virtual-machine.(none) |
1f641b2abde23abb37a077aa66188bc379549324 | e2fdd704dcb3a6d38af9fe2c6d88f46088f7f868 | /leetcode/next-greater-element-i/sort-characters-by-frequency/solution.py | 7864b61e198872a55d638ffab4ef3f2d739e135f | [
"MIT"
] | permissive | Minkov/leetcode-solutions | ad6fa95338d1b4fc2d67f2d860df2417519082a1 | 0576fb5578282ec594656ed26cadf68f791d3ef9 | refs/heads/master | 2020-03-14T02:06:49.570035 | 2019-11-13T10:29:11 | 2019-11-13T10:29:11 | 131,392,480 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 485 | py | class Solution:
def frequencySort(self, s):
by_frequencies = dict()
for ch in s:
if ch not in by_frequencies:
by_frequencies[ch] = 0
by_frequencies[ch] += 1
chars = [[by_frequencies[ch], ch] for ch in s]
chars = sorted(chars, reverse=True)
... | [
"donchominkov@gmail.com"
] | donchominkov@gmail.com |
a5a8f7960bbf17e16e514e2ba7fcab7e25a86534 | 69e65b611ac1087397afffbb8123f9ee7ed3f13c | /poket/algorithm/kadane.py | af0fd3917217b8e1322937413d4f124a663c8865 | [] | no_license | Fool-Yang/Doraemon-Pocket | 8fa9122b43a79458aece7e1ec0ed0cd27ff636a1 | 11597f8a3e835896540be39fa2e264bdbe6e2b25 | refs/heads/master | 2021-06-14T21:27:43.264457 | 2021-02-22T03:05:55 | 2021-02-22T03:05:55 | 133,148,536 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 579 | py | def Kadane(Arr):
local_start = start = end = tot_sum = 0
# defalt setting
# max_sum, min_start, min_end
for i in range(1, len(Arr)):
if Arr[i - 1] + Arr[i] < Arr[i]:
local_start = i
else:
Arr[i] = Arr[i - 1] + Arr[i]
if Arr[i] > tot_sum:
... | [
"noreply@github.com"
] | Fool-Yang.noreply@github.com |
8d0f961f5067783ad1f226278a1f72f69a73e2f2 | 7ed7f864373e80d67875eb85010d2e59a5000bf6 | /projectpolls/urls.py | ba13d984bb1f6ac92b507511e58a24dc7fdda264 | [] | no_license | shaina9/polls- | 31a0b3be17e3ed52aaeaf0ccb4a5407bab40c156 | 2e72df87fb50822e7a4d5bf34c9858be446ddf9e | refs/heads/master | 2020-12-23T16:06:04.649462 | 2020-01-30T11:32:33 | 2020-01-30T11:32:33 | 237,199,807 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 798 | py | """projectpolls URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-... | [
"shainakhan763@gmail.com"
] | shainakhan763@gmail.com |
a0fc8d19c10db23a8abe32132998effa45b3dd65 | 4189f8f3b01265314a9117368a1b680d5e45916f | /sumvec/sumvec_v05.py | 12121672ee8da1404489e40c8b531638505fa316 | [] | no_license | operedo/training-python-line-profiler | 45b0f07c5919a31c64c4d66f92e847b117abd77b | eab29422b6775991afedc99833b7456f7f22e35b | refs/heads/master | 2020-12-07T10:36:01.270023 | 2020-01-09T02:41:48 | 2020-01-09T02:41:48 | 232,704,948 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 663 | py | import math
import random
@profile
def decrement(value,vec,i,lim,div):
if(vec[i]>=lim):
return value
else:
return value-vec[i]/div
@profile
def increment(value,vec,i,lim,div):
if(vec[i]<lim):
return value+vec[i]/div
else:
return value
@profile
def sumvec(vec,n,lim,div):
value=0.0
i=0
for i in range(0,... | [
"operedo@operedonb-uac.vtr.cl"
] | operedo@operedonb-uac.vtr.cl |
46ec2bd6cceb54f2a7d46ee534cfdccc21e2ffa1 | 65fc48bf49e662486c238ea71738010ae9f07f34 | /scripts/util/HMM_sclassifier_single_trial.py | 3527589fa07d5def1d3205a3abfdc6ed939d8150 | [] | no_license | dagv21/hmm_gait_phase_classifier | 86a8ed6447519dbc2282a888ba131911da25aba2 | 4650c2649bc55a733275ac81bbc8334f0423dffb | refs/heads/master | 2022-03-27T18:55:44.375727 | 2019-12-17T19:43:36 | 2019-12-17T19:43:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,181 | py | #!/usr/bin/env python
import rospy
import rospkg
import pickle
import entry_data as ed
import numpy as np
import time
from sklearn.model_selection import StratifiedKFold
from sklearn.preprocessing import normalize
from sklearn.mixture import GaussianMixture
from entry_data import DataEntry, fullEntry
from pomegranate i... | [
"miguel.sanchez-m@mail.escuelaing.edu.co"
] | miguel.sanchez-m@mail.escuelaing.edu.co |
f4165ab31deeb9639cc57bfd503e4f3bd24b3353 | a8adf39521dd45fb66cc91bb26636de142f63438 | /devtools/init-git-hooks.py | 1c87bd6a9daeac52676c7eb06d6cb4bfbace5014 | [
"MIT"
] | permissive | ethz-asl/refill | 6ff80d4601985cf0565768157da88dfdb04dce66 | 64947e0a8e15855f4a5ad048f09f8d38715bbe91 | refs/heads/master | 2023-08-03T13:01:06.233740 | 2021-06-01T16:50:29 | 2021-06-01T16:50:29 | 71,505,955 | 9 | 3 | MIT | 2021-09-16T17:23:15 | 2016-10-20T21:29:47 | C++ | UTF-8 | Python | false | false | 520 | py | #!/usr/bin/env python
# Disable pylint filename and missing module member complaints.
# pylint: disable=C0103,E1101
""" Initializes git hooks for refill project. """
import commands
import subprocess
def main():
""" Copies pre-commit script to git hooks folder. """
_, repo_root = commands.getstatusoutput('git... | [
"igilitschenski@ethz.ch"
] | igilitschenski@ethz.ch |
328b6a0bbc4e1382159323ffc5c6ecccac6df006 | 2ecefe5f02ea941e41707820c0ea1f1b1bf0d6ba | /eio-stress.py | 95a5abba1fd92c144ce71fa5942ea132595a89e6 | [] | no_license | ankur4369/debug-scripts | fc0cedfe1f2b8da21e00ee93d7009256c5ab2542 | 32105caa0eea2cd73c3b0810e0d4110ff2b6944a | refs/heads/master | 2023-03-12T19:04:42.265801 | 2021-02-25T21:04:36 | 2021-02-25T21:04:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,668 | py | from bcc import BPF
from time import sleep
from subprocess import Popen
import argparse
import sys
import os
import ctypes as ct
bpf_text = """
#include <uapi/linux/ptrace.h>
#include <linux/bio.h>
#include <linux/blkdev.h>
BPF_HASH(seen, u64);
BPF_ARRAY(enabled, u64, 1);
BPF_PERF_OUTPUT(events);
BPF_STACK_TRACE(stac... | [
"josef@toxicpanda.com"
] | josef@toxicpanda.com |
6257c5a2afec86ebc40d0443780bae8d1708a3fc | 8839f7d655f07e6ec52255b783d8dc3d20b7673a | /task 9 fuel management system.py | 1d81187989658aaa95481bff3048a8668bf6c65d | [] | no_license | amardeep-H/Innomatics_Internship_APR_2021 | e58244b391ec9f3efd6a4016c011d17dba2d4265 | 3d336a274c8afcd62028ca97e2b29d1af5a71977 | refs/heads/main | 2023-05-07T23:16:31.287184 | 2021-06-03T17:40:20 | 2021-06-03T17:40:20 | 361,978,607 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,040 | py | #!/usr/bin/env python
# coding: utf-8
# In[18]:
#TATA has developed a better fuel management system for the SUV segment. They claim that with this system,
#on average the SUV's mileage is at least 15 km/litre?
import matplotlib.pyplot as plt
import numpy as np
from scipy.stats import norm
from scipy.stats import ... | [
"noreply@github.com"
] | amardeep-H.noreply@github.com |
7bb05a4bbe2e8267a6c43e3620d67b4f465c3b44 | 2a54e8d6ed124c64abb9e075cc5524bb859ba0fa | /.history/1-Python-Basics/28-tuples2_20200413203128.py | 8c41bfd70429203ae803473b037a15cffd43b26d | [] | no_license | CaptainStorm21/Python-Foundation | 01b5fbaf7a913506518cf22e0339dd948e65cea1 | a385adeda74f43dd7fb2d99d326b0be23db25024 | refs/heads/master | 2021-05-23T01:29:18.885239 | 2020-04-23T19:18:06 | 2020-04-23T19:18:06 | 253,171,611 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 42 | py | #Tuples part 2
my_tuple = (2, 1, 4, 10)
| [
"tikana4@yahoo.com"
] | tikana4@yahoo.com |
ddb5bc9e87cfc65e9510b627a37f2f35ff9512ab | 85a9ffeccb64f6159adbd164ff98edf4ac315e33 | /pysnmp-with-texts/WWP-LEOS-TABLE-CHG-NOTIF-MIB.py | d8fa65af32a4a4509f661a718246905fca451a21 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | agustinhenze/mibs.snmplabs.com | 5d7d5d4da84424c5f5a1ed2752f5043ae00019fb | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | refs/heads/master | 2020-12-26T12:41:41.132395 | 2019-08-16T15:51:41 | 2019-08-16T15:53:57 | 237,512,469 | 0 | 0 | Apache-2.0 | 2020-01-31T20:41:36 | 2020-01-31T20:41:35 | null | UTF-8 | Python | false | false | 12,414 | py | #
# PySNMP MIB module WWP-LEOS-TABLE-CHG-NOTIF-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/WWP-LEOS-TABLE-CHG-NOTIF-MIB
# Produced by pysmi-0.3.4 at Wed May 1 15:38:29 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python vers... | [
"dcwangmit01@gmail.com"
] | dcwangmit01@gmail.com |
aaf367affcdb324c29cc08570be95dacaabf4b4e | 1fb3aef0501dcb3b12a37ffb4e3ae00bd49f0767 | /rainbow2.py | e9f56845e108961a1bcc7b4dc5cd692cc6823800 | [
"MIT"
] | permissive | joedeller/pymine | 980cfd6bda5f24b6df492f6a96dc7d5858092076 | 55c92815bbda1a0a237764ca3543de56354d28dc | refs/heads/master | 2021-06-05T14:22:35.389878 | 2017-05-23T10:09:18 | 2017-05-23T10:09:18 | 29,393,956 | 6 | 1 | null | null | null | null | UTF-8 | Python | false | false | 857 | py | #! /usr/bin/python
# Joe Deller 2014
# A slightly more dangerous version of our Rainbow program
# Level : Intermediate
# Uses : Libraries, variables, operators, loops, lists
import mcpi.minecraft as minecraft
import mcpi.block as block
import math
mc = minecraft.Minecraft.create()
# Find out where we are in the w... | [
"joedeller@outlook.com"
] | joedeller@outlook.com |
feff5ab73695206b96ceecd566fb5f3a48277960 | 685f4474699d769dae88537c69f5517ac13a8431 | /EL266.py | 03916d472efa7cdc10b541a5ebdc329e8c3f3e82 | [] | no_license | Pumafied/Project-Euler | 7466f48e449b7314598c106398c0be0424ae72d5 | 0c3e80a956893ce1881a9694131d52b156b9d3d8 | refs/heads/master | 2016-09-05T22:45:09.733696 | 2013-04-20T04:46:48 | 2013-04-20T04:46:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 364 | py | # The divisors of 12 are: 1,2,3,4,6 and 12.
# The largest divisor of 12 that does not exceed the square root of 12 is 3.
# We shall call the largest divisor of an integer n that does not exceed the square root of n the pseudo square root (PSR) of n.
# It can be seen that PSR(3102)=47.
# Let p be the product of th... | [
"pumafied@gmail.com"
] | pumafied@gmail.com |
d5116123857d9a768edde5094afd778289ae7a46 | 57d6a2def2fc723f56e6507e5ad38b33d235a7bd | /About_Flask_ M Sai Pranav/Flask_Prj/kotak.py | e36ad628e5973c82c29a96fa0a82a9bf2cd8cc87 | [] | no_license | febatech/cloudformationtemplates | fae3f62fafed0ac6d32cbf0517e5f3ff1e77f38d | 3f57c6e71f016f1f420e3e53f4fec023e4b6878e | refs/heads/development | 2023-06-25T17:33:19.286140 | 2021-06-28T09:29:03 | 2021-06-28T09:29:03 | 288,682,952 | 0 | 2 | null | 2021-01-13T06:32:57 | 2020-08-19T08:57:49 | Python | UTF-8 | Python | false | false | 4,514 | py | from urllib.request import urlopen
from bs4 import BeautifulSoup
import json
kotak_url=['https://www.kotak.com/en/personal-banking/cards/credit-cards.html']
identity=["cmp-item-list card-list m-grid dynamic-card-values list"]
# execute pip install lxml in the terminal
html = urlopen(kotak_url[0])
soup = BeautifulSou... | [
"sai.pranav@febatech.com"
] | sai.pranav@febatech.com |
d6d7a75916aede2d40d4a98a66ef61730b3e96b4 | 0b9e588b3d6ddf95d87a0a0f02d10ef6efcccf51 | /eduapi/api/views/mixins.py | 3813677de2e8238d750d2f38aae79b5771ad513e | [] | no_license | omni360/inspiration-edu-api | b5d07a7fe3a473689d5323e60e6f88dd3d6fb4cb | 6e1bbf8d895082d4c44af4ae35b9f5aa5cc9addc | refs/heads/master | 2022-01-22T23:30:09.879433 | 2016-04-28T02:02:46 | 2016-04-28T02:02:46 | 57,559,736 | 0 | 0 | null | 2022-01-06T22:24:03 | 2016-05-01T06:35:12 | Python | UTF-8 | Python | false | false | 36,165 | py | import types
from django.db.models import Q
from django.contrib.contenttypes.models import ContentType
from django.shortcuts import get_object_or_404
from django.http import Http404
from rest_framework import generics
from rest_framework import exceptions
from rest_framework.request import clone_request
from rest_frame... | [
"frida.cai@autodesk.com"
] | frida.cai@autodesk.com |
72a887179abec28f878b941bf6eebd47148f646c | 264d5db665a175076f023576a9339e12af31405b | /collective/templateengines/tests/base_test.py | 6336a00dfad73e9bf4ff0a1cc428e41aa92f8b31 | [] | no_license | barseghyanartur/collective.templateengines | 5d95dd50be7181cc99d85eff4a4dc06baf629193 | 16b8f2716e76c073a9716c07aac4c1300a19231f | refs/heads/master | 2021-01-17T18:44:45.625521 | 2013-05-07T10:50:54 | 2013-05-07T10:50:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,494 | py | """
Implement few generic tests which can be run against all test cases.
"""
__author__ = "Mikko Ohtamaa <mikko@redinnovation.com>"
__copyright__ = "2008 Red Innovation Oy"
__license__ = "3-Clause BSD"
import unittest
from collective.templateengines.utils import DictionaryContext, dump_messages
from collectiv... | [
"miohtama@db7f04ef-aaf3-0310-a811-c281ed44c4ad"
] | miohtama@db7f04ef-aaf3-0310-a811-c281ed44c4ad |
0f1ba5df09e7999b7d2e7b41b26c59324662c577 | 5177bdf1d3ccc485d536f6e1a2ef9be3329baaf1 | /src/PresentationSamples/TornadoAndAsyncMongo/VegTrackerPyMongo/RestaurantCreateHandler.py | b4b341a6d7c10e8e35537b3f6af9127ed563d7d4 | [] | no_license | johnzablocki/codevoyeur-samples | eb0857093c0dbc2b38fe2fc70902f2ae24265ccc | 47df19fab8ca57d2bae122b45b041fb6d92af833 | refs/heads/master | 2021-06-14T01:30:59.589088 | 2011-11-10T21:48:54 | 2011-11-10T21:48:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 564 | py | import tornado.web
import tornado.ioloop
import pymongo
import pymongo.objectid
from DBFactory import DBFactory
class RestaurantCreateHandler(tornado.web.RequestHandler):
def get(self):
self.render("Templates/Restaurants/Create.html", venue={ "name" : "", "city" : "", "state" : "" })
def post(... | [
"jzablocki@users.noreply.github.com"
] | jzablocki@users.noreply.github.com |
32d562966f971043fc0b2072d5ace086c72fe63a | 0afd22acee523695c9b5682256b6c6406488ff78 | /src/__init__.py | 599ce32e0ca5e44f55c31550b3b6baad6f6132bd | [
"MIT"
] | permissive | AndersBennedsgaard/RESTful-Kubernetes-project | d52b732c072458b53342a9db02ac020f632329c9 | 7562ba9fd197d0d8fc36aeea02d1cfc17cd4d731 | refs/heads/main | 2023-02-19T00:05:57.540752 | 2021-01-18T12:31:46 | 2021-01-18T12:31:46 | 325,029,412 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,037 | py | from flask import Flask
from flask_restful import Api
from src.logger import log
from src.resources import Item, ShoppingList
from src.db import init_db
def create_app(testing=False):
app = Flask(__name__)
if testing:
app.config["SQLALCHEMY_DATABASE_URI"] = "sqlite:///data/test.db"
app.config[... | [
"abbennedsgaard@gmail.com"
] | abbennedsgaard@gmail.com |
d221ce0e4a81e0f35bfe3da9fbf509a3fdd2d96f | 34fd78ad654ba3910a4d0184a4e5b512a3467ff1 | /src/Follow_Black_Line.py | 38868fcc72237830d776a3ccce664eb883be5313 | [] | no_license | Maast3r/iRobot | 20236529286d99cad8ca7720ab5594efa73e0eb2 | 232375993640e1e56ec100b662cdf6943621f2c2 | refs/heads/master | 2020-12-24T14:18:29.422076 | 2014-11-26T02:31:16 | 2014-11-26T02:31:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,997 | py | '''
Created on Nov 1, 2013
@author: maas
'''
import c0
import m1
import m2
import m3
# import Xbox_And_KeyBoard
import tkinter
from tkinter import ttk
import time
import new_create
import math
class Distance():
# Using this class to help change variable values
def __init__(self, distance):
self.entry_... | [
"maastergotmail@gmail.com"
] | maastergotmail@gmail.com |
2fc4f483c819b45342b2d698e55c11b258c510fb | a43243ad3d3827f60292336bac51b383435f8115 | /src/streamlit_extras/add_vertical_space/__init__.py | 8083df0e14e49b5c2e225502657ed22a784fec8c | [
"Apache-2.0"
] | permissive | arnaudmiribel/streamlit-extras | def71d79f2b134ba7d2e9d5c633e652742990d64 | 7c39fb1ca18b7b115cf71131e2def35aae980698 | refs/heads/main | 2023-08-17T06:50:11.764961 | 2023-08-01T15:01:17 | 2023-08-01T15:01:17 | 523,339,630 | 344 | 43 | Apache-2.0 | 2023-09-08T13:09:08 | 2022-08-10T12:43:31 | Python | UTF-8 | Python | false | false | 751 | py | import streamlit as st
from .. import extra
@extra
def add_vertical_space(num_lines: int = 1):
"""Add vertical space to your Streamlit app."""
for _ in range(num_lines):
st.write("")
def example():
add_n_lines = st.slider("Add n vertical lines below this", 1, 20, 5)
add_vertical_space(add_n... | [
"arnaudmiribel@gmail.com"
] | arnaudmiribel@gmail.com |
090cb39b4dfa1b99a1ce99b755421f0b5280b73a | 6d60fbb6de13bfa13c2d99757f4e2aa832a3ec9a | /intern/protwo/apptwo/migrations/0001_initial.py | 22cd3f90305d13d30d2fdc4efebb934615b3693b | [] | no_license | harshitamalhotra/mongo | 968e33b762b19e190bbbceddbf34c68b64e08d1f | 468e6800171faebf0062cd28a2b01319a9246605 | refs/heads/master | 2022-09-17T11:09:16.431926 | 2020-06-04T05:23:41 | 2020-06-04T05:23:41 | 269,266,893 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 653 | py | # Generated by Django 3.0.6 on 2020-06-02 16:36
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='User',
fields=[
('id', mode... | [
"noreply@github.com"
] | harshitamalhotra.noreply@github.com |
2ab42b252bed8f05f85438e157fa80d1fb2c89fe | 59435e92515bc07c60a0f555b8b46a3d667b2d36 | /mtutorproject/mysite/polls/models.py | 9f4c2b8845ee2d8c20942291bf30611e823ab4e7 | [] | no_license | jianwatertown/practise | e90dc8b8b84160ebfb86cc44fc4034defbcb7964 | 04be0893f9300c197e829936ea1740b92db971ee | refs/heads/master | 2016-09-15T11:12:06.379203 | 2016-03-02T22:28:56 | 2016-03-02T22:28:56 | 38,128,888 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 889 | py | from django.db import models
from django.utils import timezone
import datetime
# Create your models here.
class Question(models.Model):
question_text = models.CharField(max_length=200)
pub_date = models.DateTimeField('date published')
def was_published_recently(self):
return self.pub_date >= tim... | [
"jian.wang@redfin.com"
] | jian.wang@redfin.com |
a8c147db047fa4bcc792392e8c7a98ea3ea03be4 | 18576820ca4cfbecbfc8e8c05e9aaba0809e6138 | /fizeau_control_loop.py | 5ea265e3af610f8f96546e44790327fc23afc2ca | [] | no_license | mwanakijiji/lbti_fizeau_control | d12e3fcfa12725ab24c42acaaea6e83bd97e2f02 | 08cd6aa2ae77d028b3b5d794d6403bffe143b25d | refs/heads/master | 2021-07-09T09:13:06.175214 | 2018-12-10T16:24:44 | 2018-12-10T16:24:44 | 139,908,276 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,021 | py | #!/usr/bin/python
from lmircam_tools import *
from lmircam_tools.overlap_psfs import overlap_airy_psfs, overlap_grism_psfs
from lmircam_tools.dial_opd import optimize_opd_fizeau_grism, optimize_opd_fizeau_airy
from lmircam_tools.change_tt import optimize_tt_fizeau_airy
############## BEGIN GROSS OVERLAP OF NON-FIZEA... | [
"spalding@email.arizona.edu"
] | spalding@email.arizona.edu |
6ceb7d7328b1004c4101d54edf822932443dda3b | 7f079dac4df411a63ef783050da03fac55e56f0d | /cu-nyc-data-pt-08-2020-u-c-master/01-Lesson-Plans/06-Python-APIs/2/Activities/04-Stu_Burundi/Unsolved/config.py | 3d33d5fa75b28a166edf4a0093fdb6d3286a86cc | [] | no_license | cesar3963/Hi_Class | cdecad9156d153f4101cefb63439d046a941f5d5 | 79f55361a00685a56fb66ddcedf248bc06b526c5 | refs/heads/master | 2022-12-27T04:15:35.541612 | 2020-09-26T20:51:51 | 2020-09-26T20:51:51 | 286,837,867 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 64 | py | # Add your API key
api_key = "6ca7295c1b0ae5a0701369f7cefb416e"
| [
"67514872+cesar3963@users.noreply.github.com"
] | 67514872+cesar3963@users.noreply.github.com |
7f474e1185145866641277d124acb862236f8537 | f904ff9734760ffb2dad837c8fb7b8b7d6d1f7a4 | /1472A.py | 877a7df9aa98fbc3e80bdae6fb578b499bbb4231 | [] | no_license | durax-0xf/codeforces-accepted | 230be54c71da887052e3b202f58f4e25058557a8 | 1e6d04e3a530d02d3d56cdaba18f141719a759a6 | refs/heads/main | 2023-03-31T08:21:27.007849 | 2021-04-08T17:29:27 | 2021-04-08T17:29:27 | 336,671,736 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 273 | py | t = int(input())
for i in range(t):
w, h, n = map(int, input().split())
suma = 1
while(w % 2 == 0):
suma = suma * 2
w = w / 2
while(h % 2 == 0):
suma = suma * 2
h = h / 2
if(suma >= n):
print("YES\n")
else:
print("NO\n")
| [
"noreply@github.com"
] | durax-0xf.noreply@github.com |
2625cb7197df50625f65a7b70d5afbbbaa9073de | a1bffbabf9524c90d71c254f5638ee3caedd54e1 | /modulos1.py | d685948886b6e79f24dd18d97cef7abd9fa14ac6 | [] | no_license | UskoKruM/modulos_python | 0e646d312d5e02394e7924a452ac170144e62103 | be96f7c6f94631dfdcf4af90b8aa6913f2dda82e | refs/heads/master | 2023-07-11T01:31:05.810368 | 2021-08-18T04:32:59 | 2021-08-18T04:32:59 | 349,550,154 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 168 | py | canal = 'UskoKruM2010'
def sumar(a, b):
return a+b
def restar(a, b):
return a-b
def multiplicar(a, b):
return a*b
def dividir(a, b):
return a/b
| [
"uskokrum2010@gmail.com"
] | uskokrum2010@gmail.com |
92253b6699b4fa29407b305bc4edebcb5b8eac97 | 1a730dc0a1f6de6672b968be3001c5c473dc88bd | /NewPerson2.py | d17a879efe40c33bc5f1b4b2e4623a4db7b9f6fb | [] | no_license | DrDrei/Project1Cmput291 | 565ccb9f28d8b6a6252e541d253a908875786d56 | fc8d84e74aeead7a5d84982930c692c4ce6282a1 | refs/heads/master | 2021-05-01T16:25:33.447487 | 2016-03-18T23:08:48 | 2016-03-18T23:08:48 | 52,899,821 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,966 | py | '''
Created on Mar 15, 2016
@author: drei
'''
import tkinter as tk
import datetime
import re as regex
from DBConnect import DBTables
from cgi import valid_boundary
class NewPerson2(tk.Frame):
valid = 'light grey'
invalid = 'red'
isInputValid = False
isDBValid = False
personData =[]
connectio... | [
"drei3000@gmail.com"
] | drei3000@gmail.com |
a12d88a970708e9d5d97076359afcb8f116582e4 | 97c4d3d0509897c8a3591cd340dc2b77c4eeba77 | /5.24/10_Dictionary/Homework.py | c86f2faeb142fd30950ccb0b12b5e463b499a9b3 | [] | no_license | asterinwl/2021-K-Digital-Training_selfstudy | a056f3e7fa92c6b51914171d5171f05fd13fd9ec | cd9c136ddba5df4be6ae2ceb447ee6bb8d5d53bc | refs/heads/master | 2023-08-29T02:18:13.234499 | 2021-10-09T15:21:55 | 2021-10-09T15:21:55 | 373,746,421 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,222 | py | print('1번')
students = [
{"name" : "홍길동", "korean" : 87, "math" : 98, "english" : 88, "science" : 95},
{"name" : "이몽룡", "korean" : 92, "math" : 98, "english" : 96, "science" : 98},
{"name" : "성춘향", "korean" : 76, "math" : 96, "english" : 94, "science" : 90},
{"name" : "변학도", "korean" : 98, "math" : 92,... | [
"noreply@github.com"
] | asterinwl.noreply@github.com |
bfb0a89cacedfde8761a840cff5f420644463eeb | 8af4e1eda9aee144c882865b5d8248923c074c77 | /PyCode/youku_work/kubox_pressure/main.py | eb71e08bf53c711139fb63da13185bec136d37ba | [] | no_license | supersonictan/iterview | cec5323c4b86f04928f1e9394732ba20e53c846d | 1577b2864b352462d78e3a44bc18873db6074dc5 | refs/heads/master | 2021-01-24T03:07:30.269867 | 2019-06-24T04:06:32 | 2019-06-24T04:06:32 | 68,491,613 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 945 | py | #!/usr/bin/python
# -*- coding=utf-8-*-
import requests
import Queue
import sys
import json
import threading
from KuboxTasker import *
from Logger import *
import time
#http://www.cnblogs.com/pastgift/p/3985032.html
import Global
reload(sys)
sys.setdefaultencoding('utf-8')
def read_query_file(queryFilePath):
wi... | [
"tanzhen.tz@alibaba-inc.com"
] | tanzhen.tz@alibaba-inc.com |
49c9350d4ff10307ccb1042a24652e6a2b544470 | d6ad504ed2bd7288fc12ba70151301e867d9e2cc | /virtualenv/TravelWithFriends/Lib/site-packages/psycopg2/tests/test_quote.py | 1b35daeda5ec5d418989381d99266e90e39d5f16 | [] | no_license | ajorve/pdxcodeguild | 571f4440d78d250b2e9457d7331b1401fa81d5b2 | 91265b69ac0c61485757659508392bd2231e9eb1 | refs/heads/master | 2022-11-02T11:21:14.736382 | 2017-03-29T23:00:08 | 2017-03-29T23:00:08 | 79,478,400 | 0 | 1 | null | 2022-10-11T01:57:54 | 2017-01-19T17:42:12 | Jupyter Notebook | UTF-8 | Python | false | false | 8,553 | py | #!/usr/bin/env python
# test_quote.py - unit test for strings quoting
#
# Copyright (C) 2007-2011 Daniele Varrazzo <daniele.varrazzo@gmail.com>
#
# psycopg2 is free software: you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published
# by the Free Software... | [
"anders@codeinfusion.com"
] | anders@codeinfusion.com |
6e9534944b13297621f239d82d35017df8ca7f00 | b4b7983e86077bc41ed9fb2c373188e9fe102b30 | /HW_code/3.9/ms.py | c05275660c5c72b031ffb938034bf723dcd6aadb | [] | no_license | luiscaro1/AI-HOMEWORK-2 | 46dbbf4fb14a66572eb0ebb2855fbacc88da3a46 | c134034094ec05ff8d9d4f68c20f4ec8bedf0c87 | refs/heads/main | 2023-03-26T09:21:36.309211 | 2021-03-26T23:02:22 | 2021-03-26T23:02:22 | 351,931,165 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,741 | py | from problem import Problem
from node import Node
from state import State
class MissionariesAndCannibals(Problem):
"""Missionaries and Cannibals problem class"""
def __init__(self):
"""The constructor specifies the initial state, and goal state."""
initial_state = State((3, 3, 1))
goa... | [
"luis.caro1@upr.edu"
] | luis.caro1@upr.edu |
b372f136945c7c140f928e3fcc06b705264dd82a | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2606/60797/247414.py | a53d3bf72630c68d1fad189adb9a6e4ed7f2c6f0 | [] | 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 | 471 | py | import math
def search(nums, target):
left = 0
right = len(nums) - 1
i = (left + right) // 2
while target != nums[i]:
if target < nums[i]:
right = i - 1
i = (left + right) // 2
else:
left = i + 1
i = (left + right) // 2
return i
if __... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
7dbbc8c8312fb74686baedc5c5678628c55fa627 | 3a55b0d34af0bf6004f983083b3f9ad89c370289 | /Design_Scripts/makeStimulusList1.py | b3a482abd1b175ca1a190f0bb0a5ff69affdcc52 | [] | no_license | eng543/probabilistic-reduction-production | 64dc8eddef7379f28b1a0e676cf442efbb0623a2 | fc73154e00f8e23842dae4c4ea7d41efbbd2cf94 | refs/heads/master | 2021-01-10T12:35:48.403175 | 2017-04-05T21:08:50 | 2017-04-05T21:08:50 | 50,067,221 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,811 | py | # Step 1
# Script for creating intial pseudo-randomized list of stimuli (without practice trials)
# Creates reference sheet to use for making other counterbalanced lists
import random
import csv
with open("pairs1.txt", "U") as f:
pairs = f.readlines()
pairs = [line.rstrip("\n") for line in pairs]
# Second half ... | [
"eng543@gmail.com"
] | eng543@gmail.com |
53a2d5eb1ffe18898404e3dd1675daf0ba6b3d04 | 2f6eeff6562d88010ee0613bc10397e9b5305dbe | /data_preprocessing/db_utils.py | 915b77b291da330f6c189dfe430934fe53a78185 | [] | no_license | dalonsos/drugs-discovery | cba077ded0b5ea88f87a0a90094eda7c67850dfb | ac9e74ea461639b91aefa3f4b4596180b8ff848b | refs/heads/master | 2022-09-11T06:02:48.308128 | 2020-05-25T21:20:10 | 2020-05-25T21:20:10 | 266,876,342 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 722 | py | import sqlite3
from sqlite3 import Error
def create_connection(db_file):
"""
create a database connection to the SQLite database
specified by the db_file
:param db_file: database file
:return: Connection object or None
"""
print("Connecting to database ...")
conn = None
try:
... | [
"daniel_saro@hotmail.com"
] | daniel_saro@hotmail.com |
0e529e884f05b337cd282d3977342a4aee9e70b4 | 5f73a8162b8c22f8f65c2c1a98b5a61502fb0ed3 | /viskit/frontend.py | 4a3a355fec35cebee5d079cd865cd968af6996c8 | [] | no_license | brandontrabucco/viskit | b6d18ba2d8f32779b0bb98fa550a80c6d6463ec2 | a546e51e13bd1cf0eb9fa5284f1c596b88eded50 | refs/heads/master | 2020-04-29T21:40:45.270104 | 2019-03-19T04:03:44 | 2019-03-19T04:03:44 | 176,420,386 | 0 | 0 | null | 2019-03-19T04:01:00 | 2019-03-19T04:01:00 | null | UTF-8 | Python | false | false | 30,527 | py | import sys
from viskit.core import AttrDict
sys.path.append('.')
import matplotlib
import os
matplotlib.use('Agg')
import flask # import Flask, render_template, send_from_directory
from viskit import core
import sys
import argparse
import json
import numpy as np
from plotly import tools
import plotly.offline as po
... | [
"vitchyr@gmail.com"
] | vitchyr@gmail.com |
d7e4b141fa7d0a5cfcf1eb37dd3bc042a92389d4 | 966fa5fb8ad51fa429210e92dac35fea6552298d | /cs410videosearchengine/videosearchengine/migrations/0005_video_gc_uri.py | dd8a3ba813cbb0a7f9375a1396018be69175dc46 | [] | no_license | FASLADODO/cs410project | 90ca7e2f5edfa63805ed73fbff079f74b6e3454a | 76e54cc19bcec7fe3fe74d3e899a58d2f8bb7735 | refs/heads/master | 2022-03-20T18:22:27.247795 | 2018-12-17T02:02:10 | 2018-12-17T02:02:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py | # Generated by Django 2.1.4 on 2018-12-09 16:40
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('videosearchengine', '0004_auto_20181204_0342'),
]
operations = [
migrations.AddField(
model_name='video',
name='gc_u... | [
"cconnon11@gmail.com"
] | cconnon11@gmail.com |
6b6ac9b826f31a32a49551e976173231bb8a6eb8 | af4355a253bd344f92e9dfe37e29157d69ecc451 | /app/msscomp/api/api_in/session_output.py | 3edafd1c109556c8c58fd7e917bdb73ff2a17c3a | [] | no_license | MinGoJing/flask_demo | feac434ce2214db01c0b08f668266e6d101b1aba | f2ba620a04b5402ae77c8debf3cf28a775c1da57 | refs/heads/master | 2023-03-24T00:25:22.190867 | 2020-12-20T11:00:50 | 2020-12-20T11:00:50 | 268,649,120 | 4 | 0 | null | 2021-03-25T23:50:44 | 2020-06-01T22:47:27 | Python | UTF-8 | Python | false | false | 921 | py | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
'''
@File : session_output.py
@Desc : provide session output parser
@Version : 1.0
@Author : MinGo
@Contact : mingo_jing@163.com
@License : Copyright © since 2020 MinGo All Rights Reserved.
@History :
1.0: 2020/07/24 05:25, MinGo
1. Create... | [
"mingo_jing@163.com"
] | mingo_jing@163.com |
cff5c89fd936f586cab31abd4b149ad10371821d | b05d72d107794cd87116c435a0b14bd629a8f843 | /catkin_ws/build/cv_bridge/catkin_generated/pkg.installspace.context.pc.py | 2a47cebaf99a5722fcd96836646c61b605d3bd61 | [
"MIT"
] | permissive | vipulkumbhar/AuE893_Autonomy_Science_and_Systems | e12f79659c49c1ccafeba5400d9b684f7b94adc9 | f741d5299b2804fd541b2bba64b8a4fba8521f33 | refs/heads/master | 2023-01-31T21:29:15.100607 | 2020-12-04T20:20:36 | 2020-12-04T20:20:36 | 241,254,713 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,034 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "${prefix}/include;/opt/ros/kinetic/include/opencv-3.3.1-dev;/opt/ros/kinetic/include/opencv-3.3.1-dev/opencv".split(';') if "${prefix}/include;/opt/ros/kinetic/include/opencv-3.3.1-dev;/opt/ros/kinetic... | [
"vipulk@clemson.edu"
] | vipulk@clemson.edu |
ed86d450a200b1a3716031f000c74d3c8bc7d0b5 | 449f410b621049c4049a4f7d4b0858f53d56a7d7 | /tests/test_text.py | 6551f5ce92298f3a3be022e2e9f7888b1f6651cd | [
"MIT"
] | permissive | mvwicky/holdmypics | c02f25fd05d9694ff61d5839bd039a3a1bea4b01 | 194b135f885ef76d55975727a4a5125a6f9d33ee | refs/heads/main | 2023-05-10T19:36:20.978697 | 2023-05-06T21:27:29 | 2023-05-06T21:27:29 | 196,925,416 | 0 | 0 | MIT | 2023-03-31T15:23:01 | 2019-07-15T04:45:27 | Python | UTF-8 | Python | false | false | 5,151 | py | from __future__ import annotations
import imghdr
import io
import os
import time
from collections.abc import Callable
from typing import TYPE_CHECKING
from urllib.parse import urlencode
import pytest
from flask.testing import FlaskClient
from hypothesis import example, given, strategies as st
from loguru import logge... | [
"mvanwickle@gmail.com"
] | mvanwickle@gmail.com |
1694499f38c5a7460bdbbd2db70b473fc4b3672a | 8afb5afd38548c631f6f9536846039ef6cb297b9 | /MY_REPOS/Lambda-Resource-Static-Assets/2-resources/BLOG/Data-Structures/1-Python/sort/bubble_sort.py | eab30b253fea793d1b3452317c7e81488330911d | [
"MIT"
] | permissive | bgoonz/UsefulResourceRepo2.0 | d87588ffd668bb498f7787b896cc7b20d83ce0ad | 2cb4b45dd14a230aa0e800042e893f8dfb23beda | refs/heads/master | 2023-03-17T01:22:05.254751 | 2022-08-11T03:18:22 | 2022-08-11T03:18:22 | 382,628,698 | 10 | 12 | MIT | 2022-10-10T14:13:54 | 2021-07-03T13:58:52 | null | UTF-8 | Python | false | false | 770 | py | """
https://en.wikipedia.org/wiki/Bubble_sort
Worst-case performance: O(N^2)
If you call bubble_sort(arr,True), you can see the process of the sort
Default is simulation = False
"""
def bubble_sort(arr, simulation=False):
def swap(i, j):
arr[i], arr[j] = arr[j], arr[i]
n = len(arr)
swapped = ... | [
"bryan.guner@gmail.com"
] | bryan.guner@gmail.com |
eaeaa64b5e302ecdacee09900f045ff3b5231b71 | 4f6ea3dcdbbcba3265d49042e443943c8bf27bad | /tree.py | dc69de5cda39b6bca97ab95cedd8879932b89e1a | [] | no_license | Hyliagon78/renduentretien | 7cc6ca73d6649fff96e5c8b08a6f7179058be843 | 794b0ba7c6a9141db436ee9b89f4fb114cad5b3c | refs/heads/master | 2021-01-20T18:58:44.793154 | 2016-08-05T14:01:29 | 2016-08-05T14:01:29 | 65,023,500 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 312 | py | class abr_search:
def __init__(self, tree, val)
self.tree = tree
self.val = val
def run()
ptr = self.tree.root
if ptr.value = val
return val
elif val < ptr.value
return abr_search(ptr.left, val)
else
return abr_search(ptr.right, val) | [
"manfred.msn@free.fr"
] | manfred.msn@free.fr |
7e6192a15decbaf3226352636cf0ba169df38d89 | f3e5a8157167f952490c510f39bf25c612eb5a53 | /dhjlrepo/wordCloud/jobw.py | fde2627eabe1becd5c3b6225c7b0752e712de2b1 | [] | no_license | dhjl1807/dhjlrepo | 5fcbeb08ba63089bf1d5308577a36de104e4d8a4 | e3599f80b8d2b00553a46ec94ec4b0d2ccc7b413 | refs/heads/master | 2022-12-16T03:36:43.484259 | 2019-05-28T12:11:22 | 2019-05-28T12:11:22 | 188,370,619 | 0 | 1 | null | 2022-12-08T05:34:14 | 2019-05-24T07:05:17 | HTML | UTF-8 | Python | false | false | 2,284 | py | # -*- coding: utf-8 -*-
from os import path
import matplotlib.pyplot as plt
import pymysql
from wordcloud import WordCloud
import numpy as np
from PIL import Image
import jieba
class sqlHelper(object):
def __init__(self, host, user, password, database):
# 打开数据库连接
self.db = pymysql.connect(host, us... | [
"45684207+BlueSky-26@users.noreply.github.com"
] | 45684207+BlueSky-26@users.noreply.github.com |
400c20425237b68c8bf91f689766e53ffd43468e | 7e4322276e367ce39c41a78fadbe89a100805c88 | /streamwebs_frontend/streamwebs/migrations/0016_ripaquaticsurvey_site.py | 561a7a9ddfaa1d6b01d0e3831123e70d7b84b4e8 | [] | no_license | osuosl/streamwebs | eb1ea68fc7db69ab88eaf2f56b0b88538a28ebd3 | b530b6fde8f354ec67281b897c10d95f7fe1752e | refs/heads/develop | 2023-01-08T22:24:33.900113 | 2022-09-09T23:11:09 | 2022-09-09T23:11:09 | 46,070,727 | 5 | 2 | null | 2022-09-10T00:06:44 | 2015-11-12T18:01:39 | Python | UTF-8 | Python | false | false | 576 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2017-09-15 15:20
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('streamwebs', '0015_auto_20170915_1429'),
]
operation... | [
"baileysingleton@github.com"
] | baileysingleton@github.com |
738b8cf3f59c9df7da1c0c7c55adfefafc2b9a16 | 9ba61317b33c4015ccfedd80a08532e6698c5b7f | /mnist_data/mnist_app.py | 59c99360f921f9ad12f26afc3ca2d477430a7abd | [] | no_license | csliuchang/tensorflow_project | 68ff7cdda3805747529de8e57bdcb94e8abaf4f2 | 0ff718d814ee2e181a35dd968e596421e6986616 | refs/heads/master | 2020-06-25T23:57:36.669965 | 2019-08-02T11:28:10 | 2019-08-02T11:28:10 | 199,460,996 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,147 | py | # coding utf-8
import tensorflow as tf
import numpy as np
from PIL import Image
import mnist_backward
import mnist_forward
# from .mnist_backward import MODEL_SAVE_PATH
def restore_model(testPicArr):
"""
" 创建一个默认图,在改图中执行以下操作"
args:
MOVING_AVERAGE_DECAY: 用于控制模型更新的速度,训练过程中会对每一个变量维护一个影子变量,这个影子变量的初始... | [
"598306303@qq.com"
] | 598306303@qq.com |
96235581b405cc06d689e6550080064c2f006214 | e5eb1028d288b6415aede8d8d76d1ec2fcb94ecc | /n_to_m.py | ba9a8ce07929862db0a083cbb065aa2e0e7c2f7f | [] | no_license | xmd404/python-105-exercises | 970c65eab304d1f4f7d1297e34b58606bfecf860 | ba87f18bd770ecab84cbde2497e7ea85b2c4b017 | refs/heads/master | 2020-03-21T16:44:15.679355 | 2018-06-26T22:07:04 | 2018-06-26T22:07:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 238 | py | start = int(raw_input("Starting #: "))
end = int(raw_input("Ending #: "))
for i in range(start, (end + 1)):
if start < end:
print i
else:
print "Starting number cannot be greater than ending number!"
break | [
"noreply@github.com"
] | xmd404.noreply@github.com |
d40cbd78c22105244ca33f02a4478fe8bbf16590 | a8720518ad514ed4ce893afc43576b6d44ad80b1 | /homepage/core/admin.py | 42e968b08de540fbcf2531c8f353b64cdaf5e2c2 | [] | no_license | AlecAivazis/homepage-old | 39d7b08219a1aa1341af8a1ce8ae17dab136ea7d | c48abea73d7118455ac207058cdf0f9d00352877 | refs/heads/master | 2023-03-12T14:13:44.321900 | 2015-10-28T23:44:43 | 2015-10-28T23:44:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 357 | py | # -*- Python -*-
# -*- coding: utf-8 -*-
#
# alec aivazis
#
# this file describes the base administration for homepage
# homepage imports
from .models import Project, ProjectScreenshot
# import the django admin
from django.contrib import admin
# register the base models
admin.site.register(Project)
admin.site.regist... | [
"alec@aivazis.com"
] | alec@aivazis.com |
2da1eeeb4bd870c2f215eed4e889a6f023252005 | 421edcb49aa242891bcf26c96dd55a298b97f1a1 | /venv/bin/alembic | cd88e75f65426a0935e923078c83d31f4350c22e | [] | no_license | wendy006/Blog_Flask | 81b8cdd3d29d37e3043375e4757755698195b1f9 | 731565a0ea9c1b90eb01df128bb487b74bca5a05 | refs/heads/master | 2022-01-12T16:01:26.386064 | 2019-03-23T14:54:57 | 2019-03-23T14:54:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 250 | #!/Users/tanny/Desktop/Flask_Python/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from alembic.config import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"tanorigin@gmail.com"
] | tanorigin@gmail.com | |
faf746738540093dc50b7121722259f366ad60ef | 608f0dc5a2a9dd2018fea24643ca1e55f663e37d | /alumini/migrations/0001_initial.py | e055fedd092347df8b852bf4cc3c49bf20538022 | [] | no_license | Martinagracy28/Alumniportal | 99ef567a37d1cd9c03a42a72bc9d5983c5114811 | 4c5de9b596027459e88fb92fe433c3df8e57a0a2 | refs/heads/master | 2022-07-15T11:43:21.831876 | 2020-05-12T05:47:09 | 2020-05-12T05:47:09 | 261,420,602 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,924 | py | # Generated by Django 3.0.5 on 2020-04-29 05:21
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Alumini',... | [
"martinagracy28@gmail.com"
] | martinagracy28@gmail.com |
8000d49d0b851aa4516fccb1ab153572422bd905 | 8b4bc065300170173717cbe4b34aa51c27bd7db7 | /django-env/bin/sqlformat | fd866dffd06e468fa20af6e09a20094deec360ff | [] | no_license | shrimp509/Kdan-Hackathon | a0088002f340ebb50158533b7ff70c33b5f2bc49 | f10e945b3888772c4fe33043c6c5dfdbcab76292 | refs/heads/master | 2022-12-03T01:47:44.931220 | 2020-08-22T08:57:45 | 2020-08-22T08:57:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 268 | #!/Users/samho/PythonProject/kdan_book_storm/django-env/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from sqlparse.__main__ import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"sam.ho@kdanmobile.com"
] | sam.ho@kdanmobile.com | |
9200f3457db1b656ae850b877cfc3dc494f16a4b | 053b4cde6f13068b231467b185a9bfb1209a6c6d | /model.py | 35fb240f061935140374991366633321e8e87c3b | [] | no_license | nameless-Chatoyant/SfM-Learner_pytorch | 16c349f5202557eb0298cc03037c28b8d066abaf | 9628abca9c0fb305261566f96fbf4c9415bd90e9 | refs/heads/master | 2021-04-15T03:54:47.141359 | 2018-03-26T14:46:16 | 2018-03-26T14:46:16 | 126,843,773 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 438 | py | import torch.nn as nn
from modules import DispNet, PoseExpNet
class Net(nn.Module):
def __init__(self):
super(Net, self).__init__()
self.disp_net = DispNet()
self.pose_exp_net = PoseExpNet()
def init_weights(self):
self.disp_net.init_weights()
self.pose_exp_net.i... | [
"me@nameless.studio"
] | me@nameless.studio |
65b3c85e1b576786400888013c56c15748a50466 | 03a87f35e57ad9b45011d153486d8cc03e78ca53 | /Autohotkey-python-project/fonctionClic.py | 48d47c57150ddac47e7e54f8fc62da834212fbf2 | [] | no_license | PierreGoe/FirstPythonProjects | d0216e0c5457b98aea1cedfeb5b7b2cdbf2d987b | 36b6fa10da752e6db5e949916f0a2b0905e0b207 | refs/heads/main | 2023-08-30T14:20:48.736298 | 2021-11-15T19:09:09 | 2021-11-15T19:09:09 | 428,387,989 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,595 | py | import pynput
from pynput.keyboard import Key, KeyCode, Listener
from pynput.keyboard import Key, Controller as KeyboardController
from pynput.mouse import Button, Controller as MouseController
import time
# Variable indispensable pour modul Keyborad controller
keyboard = KeyboardController()
mouse = MouseController... | [
"57042206+PierreGoe@users.noreply.github.com"
] | 57042206+PierreGoe@users.noreply.github.com |
709edbefe665668855f66f063cee66d2d8362693 | c1950d6c352298df099a2d6a1d04846c630d4233 | /UVA11264CoinCollector.py | baeea0365c762de73e3d294d4e8ff0e824259f6c | [] | no_license | IanPaixao/Laboratorio-Projeto-Algoritmo | 31bb24c1ce380dda9e9b1e74ff3634ff8588ced8 | 3842b8bccd534ded86f4342260cf7e9ef468253e | refs/heads/master | 2020-04-21T09:45:16.149559 | 2019-06-12T21:36:40 | 2019-06-12T21:36:40 | 169,461,578 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 346 | py | """
Greedy algorithm to solve coin collector
"""
n = int(input())
for i in range (n):
Sum = 0
input()
coins = [int(coin) for coin in input().split()]
ans = 0
for coin in coins:
if(coins.index(coin) == (len(coins)-1)) or Sum + coin < coins[coins.index(coin)+1]:
Sum += coin
a... | [
"noreply@github.com"
] | IanPaixao.noreply@github.com |
b1d1da5c92bd4ca78a95a8e85e448fcc8cd9aaf6 | 22131427625828a1fdc67c72e9e0189c09bd5d98 | /ex9.py | 5e09a733b95ad30666a073626f14695a9f25a2eb | [] | no_license | cmundt88/PythonLearning | aa5a4c15ad088bebcba28058e64e285e0e156fd9 | 7c33faf73d951b11fde953fbddd658221baaa89b | refs/heads/master | 2021-01-21T12:35:49.549343 | 2015-08-05T16:40:02 | 2015-08-05T16:40:02 | 39,265,996 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 422 | py | # Here's some new strange stuff, remember type it exactly.
days = "Mon Tue Wed Thu Fri Sat Sun"
months = "Jan\nFeb\nMar\nApr\nMay\nJun\nJul\nAug"
print "Here are the days: ", days
print "Here are the months: ", months
print """
There's something going on here.
With the three double-quotes.
We'll be able to type as m... | [
"chris.mundt@gmail.com"
] | chris.mundt@gmail.com |
b683a8b084d250943a04f7b80d5cb9fa65abfa8c | ee974d693ca4c4156121f8cb385328b52eaac07c | /env/lib/python3.6/site-packages/imgaug/augmenters/contrast.py | 73170bb37c584e7b4de84c07db04386b23c4f881 | [] | no_license | ngonhi/Attendance_Check_System_with_Face_Recognition | f4531cc4dee565d0e45c02217f73f3eda412b414 | 92ff88cbc0c740ad48e149033efd38137c9be88d | refs/heads/main | 2023-03-12T07:03:25.302649 | 2021-02-26T15:37:33 | 2021-02-26T15:37:33 | 341,493,686 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | py | version https://git-lfs.github.com/spec/v1
oid sha256:6724a23ca8693f52610258fd36edf644480787d709d4351080b5513adc338d47
size 57678
| [
"Nqk180998!"
] | Nqk180998! |
10fd3151bae438dfb2d40395abb76b9a5b2645a9 | b8273a69fd1f12ea9f2a43205e1af2218d6c57db | /xueqiu_mood/xueqiu_comment.py | 98a5c0244d4ef937a4cf33970e2cd4e63d219c9e | [] | no_license | PsYear/CodeLearning | 42be8c62c4a78a85f0f7cf1feaad29b272932787 | e6626496d82a1d31d927fa666a0a8b662530d067 | refs/heads/master | 2020-04-11T23:29:25.704391 | 2018-06-01T08:55:55 | 2018-06-01T08:55:55 | 69,359,898 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,948 | py | #coding:utf-8
import requests
import bs4
from bs4 import BeautifulSoup
import requests
import json
import bs4
import codecs
import time
import tushare as ts
def comment(socks,page):
headers1 = { "User-Agent":"Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.116 Safari/537.... | [
"sunzewen_brief@163.com"
] | sunzewen_brief@163.com |
e87fd0af770bdebc927b353eaa39dd78d958400f | d75f2550f0493a153e144759c8c6c378a4c436b2 | /base_kivy_app/graphics.py | e766af9a31226890faa523de76926c8702df8b2d | [
"MIT"
] | permissive | healthonrails/base_kivy_app | c946fab1e130cd4b40eadc45116a2c4eabf460cf | 47ade9665c79850909d4f2b6bae3acebaa1a0a3c | refs/heads/master | 2020-12-10T18:55:36.819462 | 2020-01-03T23:36:46 | 2020-01-03T23:36:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 35,652 | py | '''Graphics
============
'''
from os.path import join, dirname
import math
from time import perf_counter
from functools import partial
from inspect import isclass
from math import pow, fabs
from kivy.lang import Builder
from kivy.clock import Clock
from kivy.properties import (
NumericProperty, ReferenceListProper... | [
"moiein2000@gmail.com"
] | moiein2000@gmail.com |
74eda2f244ad6ca047d120d29e3ae212cd56b36a | 4d080114481278ecd3baf4aef17f9dccba7b2a41 | /tests/test_try_struc.py | 805253ff2cf2a8bee4bd5fc287053460cfb52a24 | [
"MIT"
] | permissive | xoeye/typecats | 777cc0c814903fbb96b54c26ea55308b16362c0f | 7f1f58c182e49f5e38ee0cd2d75bf3751073a14f | refs/heads/main | 2022-12-05T16:37:42.192855 | 2022-11-21T13:51:04 | 2022-11-21T13:51:04 | 202,187,857 | 17 | 3 | MIT | 2022-11-21T13:51:05 | 2019-08-13T16:55:03 | Python | UTF-8 | Python | false | false | 366 | py | from typecats import Cat, try_struc
def test_with_no_default():
@Cat
class Thing(dict):
name: str
assert try_struc(Thing, None) is None
assert Thing.try_struc(None) is None
def test_with_default():
@Cat
class Thing(dict):
name: str = ""
assert try_struc(Thing, None) is ... | [
"xavbergeron@gmail.com"
] | xavbergeron@gmail.com |
93b454caebabdce1dc2b3f96faf9c68967dee4f5 | 0cc681835c752c5c99610922d9952aa8fdbf71a9 | /grackle/trainer/premise.py | 4c83ab6f23fa67e970d04af309fa2a13537231ae | [] | no_license | ai4reason/atpy | cc2d4532d6348d7618d2c5168aa63bfe0db9e916 | f16dd7b7c13fdffe1767158555e07847175052ca | refs/heads/master | 2021-04-29T21:33:11.972336 | 2019-05-17T10:46:01 | 2019-05-17T10:46:01 | 121,618,495 | 0 | 2 | null | 2019-04-24T19:30:01 | 2018-02-15T10:51:29 | Python | UTF-8 | Python | false | false | 2,606 | py | from os import path, system
from .trainer import Trainer
from atpy import paramils
SCENARIO = """
algo = grackle-wrapper.py %s
execdir = .
deterministic = 1
run_obj = runlength
overall_obj = mean
cutoff_time = 60
cutoff_length = max
tunerTimeout = 360000
paramfile = params.txt
outdir = paramils-out
instance_file = i... | [
"jakubuv@gmail.com"
] | jakubuv@gmail.com |
9696ef11bc4fc57ad2c5358083c52b57eba4a87c | 3e7a8c5630de986a4d02011b1bd368c041f3f477 | /pytorch/pytorch实现多层感知机对手写数字分类.py | 9bc6523f288118ada524b6e1da6d7b78f30ab5bd | [] | no_license | gswyhq/hello-world | b9ef715f80d2b39c8efaa1aa2eb18a6257e26218 | b1ab053a05e1f8c63b8b04d6904a3cdca450bd9f | refs/heads/master | 2023-05-26T13:15:36.788620 | 2023-05-19T13:38:50 | 2023-05-19T13:38:50 | 158,821,148 | 16 | 6 | null | 2021-03-19T02:59:48 | 2018-11-23T11:04:43 | Python | UTF-8 | Python | false | false | 4,428 | py | #!/usr/bin/env python
# coding: utf-8
# # 3.10 多层感知机的简洁实现
# In[ ]:
import torch
from torch import nn
from torch.nn import init
import numpy as np
import sys
import torchvision
print(torch.__version__)
# ## 3.10.1 定义模型
# In[11]:
num_inputs, num_outputs, num_hiddens = 784, 10, 256
class FlattenLayer(torch.nn.M... | [
"gswyhq@126.com"
] | gswyhq@126.com |
14585ad372296f3638ee4b2e4fdaa3cfc944f550 | 28de651ccde30bf93a815e5f5968cd6b4a9a1032 | /test2.py | c07fefa9a6421aaa0dffaad60c2a8e0e33f5c881 | [
"Apache-2.0"
] | permissive | mhowsmon/pyneta | c5c2e42c476724bd959030d6d32acf228b3419ae | 4206bb3849dd677afdb87d2d8d18c349becbb1d6 | refs/heads/master | 2022-05-21T01:36:37.068483 | 2020-04-30T21:12:20 | 2020-04-30T21:12:20 | 260,292,765 | 0 | 0 | Apache-2.0 | 2020-04-30T21:07:05 | 2020-04-30T18:51:14 | Python | UTF-8 | Python | false | false | 135 | py | #!/usr/bin/env python
from __future__ import print_function, unicode_literals
for x in range(10):
print(x)
print("some change")
| [
"mhowsmon@yahoo.com"
] | mhowsmon@yahoo.com |
9cf0d899567ad954c7b2575f2025e92701183246 | 4c94d8dc9b2ffac0cc9917b720df92861a48bc53 | /Server/Vision.py | ac3151861be8e05b475b028bc11a3133d56cecee | [] | no_license | abeakkas/Augmented-Checkers | 22553f969cafb99234f02a8f40328f381bb5aaa1 | 5b70725c089e23cc18b55d03c6041ad3fe5ab83d | refs/heads/master | 2020-03-29T18:22:53.768859 | 2018-09-25T05:03:28 | 2018-09-25T05:03:28 | 150,208,966 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,903 | py | import math
import cv2
import numpy as np
from PIL import Image, ImageFilter
SAT_MIN, SAT_MAX = 30, 256
HUE_MIN, HUE_MAX = 230, 10
VAL_MIN, VAL_MAX = 20, 256
def get_corners(orig_img):
filter_ = ImageFilter.GaussianBlur(radius=3)
blurred_image = orig_img.filter(filter_)
img = blurred_image.convert("HSV... | [
"akkas@mit.edu"
] | akkas@mit.edu |
7419612351bcea0099d46d9f47c0deacc9d3f846 | e8a4c963356dd8bd3e161e66559cb954a978d7f4 | /youtube_vid.py | 6c005b5a7c384f9b3d2663c7f7a84aed7e1f58db | [] | no_license | Haraprosad/ocs_class | 6f3c6a155efa902e443f78a64a6c326d64f2c45a | e80aba9bc339ca98ad5df953ceb1c0c6b0cf67f0 | refs/heads/master | 2022-12-24T06:10:59.850176 | 2020-10-02T11:41:53 | 2020-10-02T11:41:53 | 300,596,435 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 483 | py | import pyautogui,time
pyautogui.press("winleft")
time.sleep(1)
pyautogui.typewrite("chrome",0.5)
pyautogui.press("enter")
time.sleep(4)
pyautogui.typewrite("www.youtube.com\n")
time.sleep(14)
pyautogui.moveTo(698,162,0.5)
time.sleep(3)
pyautogui.click()
time.sleep(3)
pyautogui.typewrite("sotyi bolchi tomake r valobash... | [
"haraprosadbiswas123@gmail.com"
] | haraprosadbiswas123@gmail.com |
2eab281a1db78a8b6420122afd404fe0b0a12c37 | 568fa58296378fa129ab3349adf010daa44ed45b | /third_party/incubator-tvm/python/tvm/contrib/miopen.py | e062ac1e735ecdca9a09778d0aaef388d7a78837 | [
"Zlib",
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"BSD-2-Clause",
"BSD-3-Clause",
"NCSA",
"X11-distribute-modifications-variant",
"Unlicense",
"LLVM-exception"
] | permissive | mindspore-ai/akg | 37f471badc66de6a831f1f45ad84344f34d23ef2 | 99f33858d6972741748cbfc9ab0bf9600428fef7 | refs/heads/master | 2023-07-25T23:03:17.672665 | 2023-07-11T07:33:57 | 2023-07-11T07:33:57 | 274,077,856 | 319 | 36 | Apache-2.0 | 2021-12-30T13:43:08 | 2020-06-22T08:09:05 | Python | UTF-8 | Python | false | false | 3,805 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"1027252281@qq.com"
] | 1027252281@qq.com |
9d686a9560581189eaa2550da520a49e76693b4d | d2d30184c194001b5f0bb90da66c034c81461740 | /src/jogovelha.py | 70667a5cc5c8e827279200e182e2bc542d24d5d6 | [] | no_license | AndersonTaborga/devops-aula07 | 058d0f59823762a03151794d3a93867dc1065724 | 2cbdeea615601130338e4f3090d3445f066ec1b7 | refs/heads/master | 2020-03-29T17:47:47.429038 | 2018-09-25T01:47:36 | 2018-09-25T01:47:36 | 150,180,251 | 0 | 0 | null | 2018-09-25T01:47:37 | 2018-09-24T23:18:01 | Python | UTF-8 | Python | false | false | 570 | py | TAB = []
def inicializar() :
TAB.append(['X','X','O'])
TAB.append(['O','O','X'])
TAB.append(['O','O','X'])
def jogar(jogador, linha, coluna):
if jogador !='X' and jogador != 'O':
raise RuntimeError('Jogador inválido!')
valores = list(range(0,3))
if linha not in valores:
raise RuntimeError('Linha inv... | [
"noreply@github.com"
] | AndersonTaborga.noreply@github.com |
b92c719c838c44f7a9aab607d59e87dbb6da351d | e97060ebb056b8c037e9cf95be08158ecab321bc | /ibmsecurity/isds/interfaces.py | f6af6a062b6ec84043d1ca491d2a39cc3363fcb0 | [
"Apache-2.0"
] | permissive | sandermey/ibmsecurity | 74ed8378e9ddb9f778b76d227e90cfb747511c1e | 92ba7828260e96a6a323f4ac3830bfa43ee8dd7e | refs/heads/master | 2020-04-09T22:49:06.302901 | 2018-03-07T05:04:37 | 2018-03-07T05:04:37 | 124,246,868 | 0 | 0 | Apache-2.0 | 2018-03-07T14:21:29 | 2018-03-07T14:21:28 | null | UTF-8 | Python | false | false | 1,052 | py | import logging
import ibmsecurity.utilities.tools
logger = logging.getLogger(__name__)
def get_all(isdsAppliance, check_mode=False, force=False):
"""
Retrieving all interfaces
:rtype: (str, dict)
"""
return isdsAppliance.invoke_get("Retrieving all interfaces", "/widgets/mgmtinterface")
def get_a... | [
"rsreera@us.ibm.com"
] | rsreera@us.ibm.com |
42474912f01dd5a4096659724f81bc1679588c38 | f175720ff98ea20c178268fff330733ae4a7d93b | /p15_time_efficiency/a3_FindGreatestSumOfSubArray.py | 96b03bd4321bace572c2b7b6c02d2fcf08f6dc84 | [] | no_license | atm1992/nowcoder_offer_in_Python27 | ef8d044494089d3cf5e881d86a632eee48c824d9 | 6ee455019ae2d9adeea9fc3876f5da4297320715 | refs/heads/master | 2021-09-08T14:42:07.844999 | 2021-09-04T03:56:18 | 2021-09-04T04:10:03 | 211,089,235 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,249 | py | # -*- coding: UTF-8 -*-
"""
连续子数组的最大和。
HZ偶尔会拿些专业问题来忽悠那些非计算机专业的同学。今天测试组开完会后,他又发话了:在古老的一维模式识别中,常常需要计算连续子向量的最大和,
当向量全为正数的时候,问题很好解决。但是,如果向量中包含负数,是否应该包含某个负数,并期望旁边的正数会弥补它呢?例如:{6,-3,-2,7,-15,1,2,2},
连续子向量的最大和为8(从第0个开始,到第3个为止)。给一个数组,返回它的最大连续子序列的和,你会不会被他忽悠住?(子向量的长度至少是1)
解题思路:使用两个变量,一个用于记录当前的累加和,另一个记录历史的最大和。若当前的累加和小于等于0,则可直接抛弃前... | [
"atm1992@126.com"
] | atm1992@126.com |
50cad0e0dab9ad79e48f8aede55e7827b8c72aef | d4bbb0aa4b9a7e2cef9b6b54cddf756af7c3d738 | /mixedBase.py | 767228519f03baa690dafe8a9fc848b0c0a78125 | [] | no_license | amgaryge/MyPython | ccaef72c106d0f0965c53bb886859c92e6c54284 | 9b233075e3bd065bc633f9fb719adfc447253c19 | refs/heads/master | 2020-03-26T21:42:44.524327 | 2018-08-18T05:07:56 | 2018-08-18T05:07:56 | 145,404,933 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 983 | py | from base64 import *
import itertools
s=open('mixedBase.txt','r').read()
result={
'16':lambda x:b16decode(x),
'32':lambda x:b32decode(x),
'64':lambda x:b64decode(x)
}
for i_1 in ['16','32','64']:
for i_2 in ['16','32','64']:
for i_3 in ['16','32','64']:
for i_4 in ['16','32','64'... | [
"mygaryge@users.noreply.github.com"
] | mygaryge@users.noreply.github.com |
931c4b664aa9e8de3ba322f0ae8cc0ad5286926f | b8c57c585b97e6353f409bde91159d206296b43a | /mysite/settings.py | 12d155c76dad4b0871a4649d9e1aee5a807ea786 | [] | no_license | ChangeWithCode/mysite | af13c2c2a28500c601f88598b1c08a464c5c9b3f | fc6ad347322821b30ba40f2125d59dfaef2cab6f | refs/heads/master | 2023-08-17T00:48:00.555333 | 2021-09-22T14:44:42 | 2021-09-22T14:44:42 | 409,240,875 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,845 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 3.2.7.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
import os
from... | [
"innocentqasim791@gmail.com"
] | innocentqasim791@gmail.com |
1c65d2f8b68e1df88765b82bf73aa337b70d5bf6 | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/networkcloud/azure-mgmt-networkcloud/generated_samples/agent_pools_create.py | e4702cfc48a1642bf33c4566afcd5f9eb16bf7eb | [
"LicenseRef-scancode-generic-cla",
"MIT",
"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 | 4,299 | 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"
] | Azure.noreply@github.com |
8421776eeb5b5952d17a78e8ec01ea390bcd7de5 | 998a41d15c4a2c3b8620d6f81b523821810bf08a | /AP/loginpage/views.py | 5c0e2c9a7b514e92f0d60e1b5c84a1b2fd2e4750 | [] | no_license | Naveenhiremath/AP | 7977644d61bffd1ec93e239755d33065d0362fb8 | ab127ed4dc919d4275c212fc4a9b0679460e7aa6 | refs/heads/master | 2020-04-16T05:31:23.157660 | 2019-01-11T21:18:37 | 2019-01-11T21:18:37 | 165,309,382 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 151 | py | from django.shortcuts import render, HttpResponse
def index(request):
import pdb;pdb.set_trace()
return render(request,'loginpage/home.html')
| [
"AL2328@accionlabs.in"
] | AL2328@accionlabs.in |
9215a798cd84391fcca343d5e5778e9710d9f969 | 8c0ad206dce797d119a40d373c644dff0cadb2c8 | /MenuSystem/MenuSystem.py | 2de54e0f4ea77f4d984e75ce152502165d5480db | [] | no_license | zhangweichen2006/MICA | 56a82832c9b75a4a3b040bb53013fae7a0d4816a | bd6a730a50c05770f80229c29855af0beae9152e | refs/heads/master | 2021-01-01T04:29:37.262409 | 2018-01-30T10:08:31 | 2018-01-30T10:08:31 | 58,037,260 | 2 | 1 | null | 2016-05-22T05:26:50 | 2016-05-04T08:50:59 | Python | UTF-8 | Python | false | false | 17,812 | py | # -*- coding: utf-8 -*-
from pygame import *
from pygame import gfxdraw
font.init()
from os.path import dirname,join
FGCOLOR = Color(0x161212f0)
FGHIGHTLIGHT = Color(0x161212f0)
BGCOLOR = Color(0xf2f1ebf0)
BGHIGHTLIGHT = Color(0x804a50a0)
BORDER_HL = Color(0x804a50ff)
FGLOWLIGHT = Color(0xbfb9b4a0)
BOR... | [
"weichenzhang@vlan-2619-10-16-82-137.student.wireless.sydney.edu.au"
] | weichenzhang@vlan-2619-10-16-82-137.student.wireless.sydney.edu.au |
257317e19a40b06ab4be3be5de419cf6111e2179 | f9e800cc2f3e8f232c749c7da352ddad85125881 | /forms.py | d8ae31f230cc5c3de837e51c77c88c1df4da4656 | [] | no_license | exponent3141/dtp12-1 | 1f1a3835013cc6fbb214b5da402a9d3f99c6090b | d48e4b0db6ac5f8bd1f01830f197448e97dc67bc | refs/heads/main | 2023-08-28T12:37:18.690913 | 2021-10-28T09:44:38 | 2021-10-28T09:44:38 | 366,182,360 | 0 | 0 | null | 2021-05-10T21:40:21 | 2021-05-10T21:40:20 | null | UTF-8 | Python | false | false | 246 | py | from flask_wtf import FlaskForm
from wtforms import StringField, SubmitField
from wtforms.validators import DataRequired
class SearchForm(FlaskForm):
query = StringField('query', validators=[DataRequired()])
submit = SubmitField('🔍')
| [
"exponent3141@gmail.com"
] | exponent3141@gmail.com |
4f24cb0ad2e47ace0e97f382862d5e8db6bb5dd1 | 23446765151830bc754d94333ecde972b6b4a2fc | /apps/users/serializers.py | c4dba9955879776e006195ff730df5928c059160 | [] | no_license | apang-ai/DRF_fresh | c3ca08e0305863bf782afc5ed6717b6da7cdbe8b | c109d43bb6ee582d7acc5fefc69fe244ed9e5bbe | refs/heads/master | 2022-09-21T14:49:42.691050 | 2020-06-01T12:05:54 | 2020-06-01T12:05:54 | 268,508,529 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,781 | py | # users/serializers.py
import re
from datetime import datetime, timedelta
from rest_framework.validators import UniqueValidator
from freshshop.settings import REGEX_MOBILE
from users.models import VerifyCode
from rest_framework import serializers
from django.contrib.auth import get_user_model
User = get_user_model(... | [
"1305999617@qq.com"
] | 1305999617@qq.com |
b20b822f7ac3425278a937d01df199ca7ad558f2 | c217ef70b03a1f3ede895e796c1f95436ff9863a | /Oppg/chap_A/growth1_index_ip1.py | 29224e7a888757e950bb4d849427b31b6d07a936 | [] | no_license | petitefille/Python | fd2ee8bea79f8781930e4e2f30e63aa9eed76645 | eb413985fb5d7b9e0fc77dba5f9e7299deee65d5 | refs/heads/master | 2020-12-19T08:40:18.802176 | 2020-04-25T09:46:59 | 2020-04-25T09:46:59 | 235,683,961 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,160 | py | from scitools.std import *
x0 = 100 # initial amount
p = 5 # interest rate
N = 10 # number of years
index_set = range(N+1)
x = zeros(len(index_set), float)
# solution:
x[0] = x0
for i in index_set[:-1]:
x[i+1] = x[i] + (p/100.0)*x[i]
print x
plot(index... | [
"emilyd@jordin.ifi.uio.no"
] | emilyd@jordin.ifi.uio.no |
4c6917bd36c5cbd63b612cd26d1b738c12813054 | d449ca90f9ac706a0684c61b97a08b2da1234a53 | /projects/views.py | 7ec85fe4a5332ea7b07319d5606e9c33201bdbae | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Muia23/Tunzoo | e72d2454cffcb7e64842e7914d8faa67589f75b7 | 1c4aafc8e5e1033c76e2a707e2923d1da1a19fab | refs/heads/master | 2022-12-05T15:37:59.271946 | 2020-08-19T20:35:12 | 2020-08-19T20:35:12 | 287,702,576 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,684 | py | from django.contrib.auth.decorators import login_required
from django.shortcuts import render, redirect
from django.http import HttpResponse, HttpResponseRedirect
from .models import Post, Kura, Comment, Profile
from .forms import PigaKura, PostForm, CommentForm
# Home page.
def home(request):
current_user = reque... | [
"wilfred.muema@gmail.com"
] | wilfred.muema@gmail.com |
38e160c9ff85d2c9b29eee12d2c1dc0dce06de0c | a05ea7ffa4354a704cc682269c2c06fbf8b6de78 | /ALDS1/3_B_Queue.py | fe001902ff9859a91460b0b03faee5983e6e4f1a | [] | no_license | MutsuOno/AOJ | fa78f82fbaea3012c75e5544af734458ccc8e617 | bb476f5fe3a749351eb5756f75a2f809c200e7cb | refs/heads/master | 2020-06-30T21:51:38.532718 | 2019-09-02T09:56:29 | 2019-09-02T09:56:29 | 200,960,648 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 950 | py | Q = []
MAX = 100000
head = 0
tail = 0
class Process:
def __init__(self):
self.name = ''
self.time = 0
def enqueue(x):
global tail
Q[tail] = x
if tail + 1 == MAX:
tail = 0
else:
tail += 1
def dequeue():
global head
x = Q[head]
if head + 1 == MAX:
... | [
"mutsuono14@iamas.ac.jp"
] | mutsuono14@iamas.ac.jp |
ef9da3bac625f676f56fdc1d3a6ff80c1630d9da | 62e58c051128baef9452e7e0eb0b5a83367add26 | /x12/4060/224004060.py | 0cfd110dffd480626cfac7c195c4d02697106c2d | [] | no_license | dougvanhorn/bots-grammars | 2eb6c0a6b5231c14a6faf194b932aa614809076c | 09db18d9d9bd9d92cefbf00f1c0de1c590fe3d0d | refs/heads/master | 2021-05-16T12:55:58.022904 | 2019-05-17T15:22:23 | 2019-05-17T15:22:23 | 105,274,633 | 0 | 0 | null | 2017-09-29T13:21:21 | 2017-09-29T13:21:21 | null | UTF-8 | Python | false | false | 416 | py | from bots.botsconfig import *
from records004060 import recorddefs
syntax = {
'version' : '00403', #version of ISA to send
'functionalgroup' : 'MA',
}
structure = [
{ID: 'ST', MIN: 1, MAX: 1, LEVEL: [
{ID: 'CF1', MIN: 1, MAX: 1},
{ID: 'CF2', MIN: 1, MAX: 9999, LE... | [
"jason.capriotti@gmail.com"
] | jason.capriotti@gmail.com |
15bf8b128820c28371be2eb3cbe9af25ed368011 | 20061f86ffa5bb626f91ba7705a68e83f0329857 | /Pizzeria/Pizzeria/urls.py | e53f380b28d71c05c08a44906f4f7f5f142ae3d0 | [] | no_license | lesiooo/PizzaMenu-Django_React | 3445fb504073f7128642006270db408437e900d6 | b9955013c3a7a5697812259d706291e74fe050ee | refs/heads/master | 2020-04-19T19:30:16.722871 | 2019-01-30T18:06:04 | 2019-01-30T18:06:04 | 168,390,515 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 879 | py | """Pizzeria URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-base... | [
"lesiooo94@gmail.com"
] | lesiooo94@gmail.com |
32041e88e6b8f77021959adb4f9c2026f3f7e91d | 7a56d644fd3817c198ce569a7a1868704ce8eeef | /exam/beautyUnion/test2.py | 3b6157bb3001b6d24b49eab36f39834bea1c32c5 | [] | no_license | wanxu2019/PythonPractice | c413c88ff7f29f21403f63218a255444b2108b17 | c9961740f8cd0a61e1dbd8379f8ee6a7da5c1387 | refs/heads/master | 2020-03-17T00:04:58.615252 | 2019-02-21T12:16:04 | 2019-02-21T12:16:04 | 133,102,951 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,133 | py | # -*- coding: utf-8 -*-
# @Time : 2018/9/27 19:38
# @Author : Json Wan
# @Description :
# @File : test2.py
# @Place : dormitory
'''
s="catsanddog"
dict="cat","cats","and","sand","dog"
'''
import re
def main():
p1=re.compile("\"(\w*)\"")
s=p1.findall(raw_input())
... | [
"1334793794@qq.com"
] | 1334793794@qq.com |
2fd745763a335d8197571f0e738ba29b6ef2315e | 03a44baca9e6ed95705432d96ba059f16e62a662 | /CodeForces_Contest/Round_578_Div2/C.py | fed4f3043eab416cd20dd5eebc2d21555ed64458 | [] | no_license | ytz12345/2019_ICPC_Trainings | 5c6e113afb8e910dd91c8340ff43af00a701c7c7 | cf0ce781675a7dbc454fd999693239e235fbbe87 | refs/heads/master | 2020-05-14T08:29:19.671739 | 2020-04-03T03:21:30 | 2020-04-03T03:21:30 | 181,722,314 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 238 | py | from math import gcd
n, m, q = map(int, input().split())
d = gcd(n, m)
x, y = n // d, m // d
for i in range(q):
a, b, c, d = map(int, input().split())
b = (b - 1) // [x, y][a == 2]
d = (d - 1) // [x, y][c == 2]
print('YNEOS'[b!=d::2]) | [
"1217783313@qq.com"
] | 1217783313@qq.com |
4faa4aa0b1c26edf2760bc10388f36959bfbd2a9 | 27860d5822084470d4a2e0f7e535175a20faf900 | /src/clup/asgi.py | 4e75e3c95e5f7dd4079708755325ae3d5e038dd4 | [] | no_license | ethansam911/project-csci-clup | 97105d786355772908d5224c053954b4e3040d06 | a033a95892db8340ce8300723639e87fdbf7b4fe | refs/heads/master | 2023-01-12T05:37:35.515518 | 2020-11-04T05:24:45 | 2020-11-04T05:24:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | """
ASGI config for clup project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJ... | [
"esam5556@gmail.com"
] | esam5556@gmail.com |
7410dad8f34039c211954604e754ddd5dcf0d373 | 865df2677c80e9d96ea8d9117fad127fb9e9f2f3 | /modules/shopify_ept/wizard/cron_configuration_ept.py | d3fee69105b16cbc85343c1f0d099f9504e53952 | [] | no_license | yspcn/odoo14-import | 8e2b9d1472251524fa1b464884b7aedf949b13c8 | 581b23342122c0568407c1c42efd4b2085719335 | refs/heads/main | 2023-06-05T06:17:53.984763 | 2021-06-17T03:42:52 | 2021-06-17T03:42:52 | 395,961,756 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 27,559 | py | # -*- coding: utf-8 -*-
# See LICENSE file for full copyright and licensing details.
from datetime import datetime
from dateutil.relativedelta import relativedelta
from odoo import models, fields, api
from odoo.exceptions import UserError
_intervalTypes = {
'days': lambda interval: relativedelta(days=interval),
... | [
"yhimanshu86@gmail.com"
] | yhimanshu86@gmail.com |
2ef3ccb92535d962510edebd9d512d0213e28fa4 | d2e32bdd4018f6686bc68a18e6e5e5f4b48672c5 | /vpn_bot/urls.py | 68647b5d203e3cc0577f695d255a29164253cea5 | [] | no_license | Chen-Han/vpn_bot | 6ed614d42223d6a3ebcf98afa5c8d65812d83e2d | 5ab555b85c3ba78205bd7ff997ef4ace34b0ea95 | refs/heads/master | 2020-04-28T03:07:05.105466 | 2019-03-11T04:11:15 | 2019-03-11T04:11:15 | 174,924,057 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 749 | py | """vpn_bot URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based... | [
"hanchen1996@hotmail.com"
] | hanchen1996@hotmail.com |
ec3a12e121db35af765ddf335bdba9a3e2ca7038 | 2540eac9601abce6baf7d80bd77b2d3ce50e21f1 | /main_app/migrations/0008_auto_20161117_1957.py | b7bc9ec03dcd079939d0d53effbac86bf675b46c | [] | no_license | sebasgomez24/GreenLeaf | 8b66832c038afdc65f215e0aad2a9fbd28dc6495 | b01fe7f0f1be6faf907b4e3cc6238343802afd09 | refs/heads/master | 2021-01-12T08:13:15.548367 | 2016-12-15T00:05:13 | 2016-12-15T00:05:13 | 76,507,585 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 515 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.2 on 2016-11-17 19:57
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('main_app', '0007_profile'),
]
operations = [
migrations.AlterField(
... | [
"sebasgomez24@gmail.com"
] | sebasgomez24@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.