blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
bb9752b6e5369b85804c3c06999944d5ca79451b | 21c6591a5485bea21b78a193e6b964a839bbd1a9 | /project/social/__init__.py | 54320dfebd6f16dab7e08fe0c6c075703ec76ab2 | [] | no_license | Viki7sh/isp34 | 3dc653d9d41fcabd6c0bdd8d3b766d3dad9303fd | 29726ece6013c96f3f4797103eaa9842a38437cd | refs/heads/master | 2023-05-15T08:03:11.705963 | 2021-06-16T16:14:49 | 2021-06-16T16:14:49 | 377,517,310 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 136 | py | from flask import Blueprint
social_blueprint = Blueprint('social', __name__, template_folder='templates')
from . import routes, events | [
"ruslan.bekchanov@gmail.com"
] | ruslan.bekchanov@gmail.com |
9d3fb5e9f0d13d0dac39ac54ebcd262cccdd485c | 5219ea9d40a5e6187fc047d0e463ecca47654f72 | /project_name/urls.py | baecf57ddd274ae81eaeab21df6fd7ecd4c440b1 | [] | no_license | wo0dyn/django-project-template | b5bb7ffec3a0ecd90df34fc60b6c13422e7f9de1 | 68a0eec61a09486b662cbdf72b13cd5c7b476810 | refs/heads/master | 2021-01-17T07:24:24.012032 | 2013-06-07T08:22:49 | 2013-06-07T08:22:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 915 | py | from django.conf import settings
from django.conf.urls import patterns, include, url
from django.conf.urls.static import static
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from django.http import HttpResponse, HttpResponsePermanentRedirect
from ratelimitbackend import admin
admin.autodiscover()... | [
"buburno@gmail.com"
] | buburno@gmail.com |
a161fba5fe7ae59bb90970bcaa6be16daeaf12f3 | 4a5dff4c7a0f57d855d2d460f5fe079c88c40b4b | /db_repository/versions/010_migration.py | 90602e57c5fdb57d8e644400ce59c186f215443e | [] | no_license | zomgitstoly/VentureOn | af46d3b163e49c583415cc06412be96ea3edd876 | 1c74502bb1001912d8d7b416f85d9193b7f6098e | refs/heads/master | 2021-05-27T17:56:02.787484 | 2013-04-27T00:38:32 | 2013-04-27T00:38:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,658 | py | from sqlalchemy import *
from migrate import *
from migrate.changeset import schema
pre_meta = MetaData()
post_meta = MetaData()
user = Table('user', pre_meta,
Column('id', Integer, primary_key=True, nullable=False),
Column('nickname', String),
Column('email', String),
Column('role', SmallInteger),
... | [
"link13@gmail.com"
] | link13@gmail.com |
396b07af836678cbf34f87d2c44a64e0513292ea | 98cd5ddf45a73aea64bbfac0c0104829d7231b81 | /T - Image + Hexagon/main.py | 4a4ad6510a74b8e54b6218bb846ee6c486774044 | [] | no_license | atheis4/ETC_Modes_Extra | 42508d523cfe632a3335e29f6e1e40af91df231b | d0ce221562105382a7a73cc6d280f4ad0eabf6f3 | refs/heads/master | 2022-04-04T11:15:07.335910 | 2020-01-03T20:27:32 | 2020-01-03T20:27:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,426 | py | import os
import pygame
import time
import random
import glob
import pygame.gfxdraw
images = []
image_index = 0
image_x=100
image_y=100
image_size_x=100
image_size_y=100
border_x = 1
border_y = 1
square_start_x = 1
square_start_y = 1
square_end_x = 1
square_end_y = 1
square_size = 50
trigger = False
def set... | [
"media@critterandguitari.com"
] | media@critterandguitari.com |
5657fd1285700308e09367580684bb8bb6bc2671 | c4deafa379b70e96315309df1474162ebb796d80 | /mpexplorer/python_libs/buzzer.py | 7cea4f210068c9c849e9b4cd386e0ca396aede11 | [] | no_license | FelipeG37/Embebidos | e594ead75aa07efe9451b3ce93d64f44851f8516 | adc1f2ac3128708365f35169055c4edbb34b731e | refs/heads/master | 2020-08-06T17:32:58.672500 | 2020-02-12T07:23:59 | 2020-02-12T07:23:59 | 213,093,605 | 0 | 2 | null | 2020-04-30T12:34:31 | 2019-10-06T01:28:21 | JavaScript | UTF-8 | Python | false | false | 4,566 | py | import sys
from math import pow
try:
import time
except ImportError:
pass
try:
import re
except ImportError:
import ure as re
try:
from midi import MidiFile
except ImportError:
MidiFile = None
try:
from rtttl import RTTTL
except ImportError:
RTTTL = None
SAMPLING_RATE = 1000
names = ... | [
"juliandresfe@gmail.com"
] | juliandresfe@gmail.com |
7d8e9e125421aa68fd1b1bc2b40de358c22fa271 | b8ec65cc064cb6c4e7b6e8f2b79780d1dd2510a3 | /atcoder/abc171/C.py | 0fec840484372c1b122aa1ae333021986520c8fa | [
"Apache-2.0"
] | permissive | mohitjaisal/Competitive-Programing-Submissions | cbcdde6fc8e21687c530c0d12bb1e6242c287bc1 | 049541ef542b8b0070bcb5c20470500c3c5bb173 | refs/heads/master | 2023-03-30T03:05:22.940236 | 2021-04-02T07:58:00 | 2021-04-04T02:54:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 766 | py | import math
ALPHABET = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z']
result = []
def alphabet_decimal(v):
quotient = math.floor(v / len(ALPHABET))
surplus = v % len(ALPHABET)
quotient -= 1 if surplus == 0 else 0
surplu... | [
"siddhantkhare2694@gmail.com"
] | siddhantkhare2694@gmail.com |
82f7c41ef29f882eb7ab9cb984644c1902d39cbe | 39db61580cfb0289e7cde7465c6bbc669ed3ef2a | /blogposts/models.py | 405c0f8c57a2edee97870b6517ac960e2c8eac0c | [] | no_license | caputocode/subscription-box | efc25260d2d8259d9bf9aa97771c4a57e6c7bc62 | 26089c4af645d54954a831848d2d437419e549e6 | refs/heads/master | 2020-04-19T16:50:12.475730 | 2019-02-05T14:33:44 | 2019-02-05T14:33:44 | 168,316,100 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 691 | py | from django.db import models
from django.utils import timezone
# Create your models here.
class Post(models.Model):
"""
Model for a single post
"""
title = models.CharField(max_length=200)
content = models.TextField()
created_date = models.DateTimeField(auto_now_add=True)
published_date = ... | [
"caputoheather@ymail.com"
] | caputoheather@ymail.com |
a109be69171e90a7b07833457d5bc456e51b1150 | f77e8e0b270c854c3dbb672edddcbe435e2b93d8 | /spbroadcast/spadmin/service/admin/__init__.py | b2780be643a88d6080b9d8f76a7487165ff8c715 | [] | no_license | cooler1217/siping | f67e3fc8aefdcbbc5b25e6749392fb71cbec18cc | 44572527ee70b90500fd984d6ee76410d5faf872 | refs/heads/master | 2020-12-30T13:19:46.945440 | 2017-05-15T14:24:32 | 2017-05-15T14:24:32 | 91,343,313 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 119 | py | #!/usr/bin/env python2.7
# coding=utf-8
"""
Created on 2014-12-9
@author: cooler
"""
from .admin import admin | [
"418435432@qq.com"
] | 418435432@qq.com |
fcaaf85f73d89c5ad35bde6cff2acca876ac2896 | 944a58e825bb263d469922e842a8160eb305cd07 | /env1-python3.7.4/bin/isort | 6da418966506ee7be769b4ca2d3eb17d44e4b755 | [] | no_license | sowens81/python-flask-cosmosdb-api | 25d08f35a95af409808672b6656a994174850936 | 26097e20803bf79a58ec7090b86051d14334df5a | refs/heads/master | 2023-01-12T00:24:12.847507 | 2021-05-08T18:19:58 | 2021-05-08T18:19:58 | 215,409,848 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 272 | #!/Users/steve/OneDrive/GIT/Python/PythonLearning1/env1-python3.7.4/bin/python3.7
# -*- coding: utf-8 -*-
import re
import sys
from isort.main import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"steve.owens@uk.fujitsu.com"
] | steve.owens@uk.fujitsu.com | |
a971057d036c9e02983eea09d044b3cc1531cccc | 526bf18a8695862067c817f432ab197ceb645f39 | /migrations/versions/9e01343b62ef_cars_added_fields.py | 4721e5e3683b75236d82cd6644df0c3fd3d99c76 | [] | no_license | sintimaski/bfs-be | a7fd623911a2220face49a0ef84574f3fd7a09a8 | 964a9c7e9cc876aaf8b0723d6b3f26bd378c3721 | refs/heads/master | 2023-08-02T09:00:44.855055 | 2021-09-22T13:07:01 | 2021-09-22T13:07:01 | 339,531,610 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 659 | py | """cars added fields
Revision ID: 9e01343b62ef
Revises: 172fb3a90b3b
Create Date: 2020-10-19 07:41:26.893114
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '9e01343b62ef'
down_revision = '172fb3a90b3b'
branch_labels = None
depends_on = None
def upgrade():
... | [
"dimadrebezov@gmail.com"
] | dimadrebezov@gmail.com |
bd5c5077877efb9647ef56dbc9a6892780a9afc6 | 87eaced6e2be7f2f68ebdc06004086e83dd64512 | /a2p3/rational.py | d572bac08b629c969af9b3a6171cc0f7bbd5d9ee | [] | no_license | digital-wossen/Advanced-Python-2 | 523e300e026bb6120bea9b489b151250b144ba9f | 319ee76f888bf70fc9fe05b86bfc68033d3fcfcb | refs/heads/master | 2022-01-30T14:08:40.102119 | 2019-07-23T07:24:05 | 2019-07-23T07:24:05 | 198,375,381 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,044 | py | """
File: rational.py
Resources to manipulate rational numbers.
"""
class Rational(object):
"""Represents a rational number."""
def __init__(self, numer, denom):
"""Constructor creates a number with the given numerator
and denominator and reduces it to lowest terms."""
self._numer = nu... | [
"wossen.k11@gmail.com"
] | wossen.k11@gmail.com |
e6fd5d60484b99abd40aef90047df89cfb86c241 | 03f00f93b2ad0fe9825617eb9451aa3230465c08 | /05-ML/06-Unsupervised-Learning/03-Movie-Recommendation/tests/test_feature_engineering.py | 9e180b7bb684051b6096ae1f4095c033fca0168f | [] | no_license | grinbea/data-challenges-clean | 775e2f094f65745956473bdf4fea1016da854e63 | 8126abd45728e5c64a6b302dd182d8e497376fe3 | refs/heads/master | 2023-08-15T04:37:35.388965 | 2021-10-09T19:00:01 | 2021-10-09T19:00:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 669 | py | from nbresult import ChallengeResultTestCase
class TestFeatureEngineering(ChallengeResultTestCase):
def test_unicity_of_movies(self):
self.assertFalse(self.result.unique_movies,
'Make sure you have only one row per movie')
def test_metadata_has_tags(self):
self.assert... | [
"pedemonte.david@gmail.com"
] | pedemonte.david@gmail.com |
0de2e57e651606fa39a419b990f8d4e0e9f98820 | afd74aa3e8c847d557828115f48f60f696fdfe95 | /C38/validate_getattribute.py | 9e557d5b18eea803ad61c04b81201237089827d8 | [
"MIT"
] | permissive | BetTom/learningpython | f1b957607f92b4acf66aba1d22090f519824822a | 47e78041e519ecd2e00de1b32f6416b56ce2616c | refs/heads/master | 2021-10-11T09:45:40.608420 | 2019-01-24T09:44:05 | 2019-01-24T09:44:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,100 | py | class CardHolder(object):
acctlen = 8
retireage = 59.5
def __init__(self, acct, name, age, addr):
self.acct = acct
self.name = name
self.age = age
self.addr = addr
def __getattribute__(self, name):
superget = object.__getattribute__
if name == 'acct':
... | [
"jpch89@outlook.com"
] | jpch89@outlook.com |
50d36e11b31d4633fb45fcd0f5d7bd95434b4049 | 35662376e89a6292015b9f76f29e0ab029d1c9d3 | /smp2017-Python-maulik/python/LyricoWin/LyricoGUI.pyw | d255568cb1bba74350221818c639ac00f8d7508f | [] | no_license | wdlsvnit/SMP-2017-Python | 6d865fa7d35b5ed32738266ad2b5045e1a31f2eb | 7acc05223d482bb718f6c758a62b63b24ce3ebed | refs/heads/master | 2021-06-20T14:32:06.064971 | 2017-07-15T16:51:09 | 2017-07-15T16:51:09 | 91,326,566 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 11,055 | pyw | import traceback
from tkinter import filedialog
from tkinter import messagebox
from tkinter import *
import time
import os,requests,bs4,sys,re
import helpers
toGetSize = Tk()
toGetSize.withdraw()
w = 500 # width for the Tk
h = 300 # height for the Tk
# get screen width and height
ws = toGetSize.winfo_screenwidth() ... | [
"maulikchevli@gmail.com"
] | maulikchevli@gmail.com |
9f2a946202864a07e3ec0b8b972e50a4b51e4222 | 1803b6d5b6cd28f6719c2584f28d581811526d26 | /p57_longerthan_specified.py | 81fde2b4965d7b30b5967916920792216a7137a5 | [] | no_license | augustedupin123/python_practice | 0ee2ebd30810f8df82d9e26b8d52328d052e1a5e | 5ba1f9e4598d1eaa7f5f6f36efb5f96ca4be18a0 | refs/heads/master | 2022-12-08T06:15:48.808986 | 2020-08-31T19:16:15 | 2020-08-31T19:16:15 | 266,285,050 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 335 | py | #Write a python program to find the list of words that are longer
#than n from a given list of words.
def list_of_words(l,n):
listreq = []
l1 = l.split()
for i in l1:
if len(i)>n:
listreq.append(i)
return listreq
a = input('enter the list')
n1 = int(input('enter n'))
print (list_of... | [
"bhardwajrahul100@gmail.com"
] | bhardwajrahul100@gmail.com |
bd6aa535d803e0d7626d692ef7f85f9264f1790c | 14b39f2b54d9046d2a82bbcd650e33234e2854c5 | /6.4k.py | a5989a61744e1339429c7809d31965e026824bab | [] | no_license | ranakroychowdhury/Expectation-Maximization-for-Noisy-OR | f93a1fd9e566dd9d2b0a5e2cc04c4c4bb9016397 | ed53720c1c43ec8e49af06bb059915f4ff4c60a3 | refs/heads/master | 2020-12-18T15:17:21.557787 | 2020-01-21T20:36:30 | 2020-01-21T20:36:30 | 235,436,591 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 638 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Nov 12 12:41:30 2019
@author: Ranak Roy Chowdhury
"""
from matplotlib import pyplot as plt
import numpy as np
def SGD(x, iteration):
result = [x]
for i in range(iteration - 1):
x = x - g(x)
result.append(x)
return result
def g(x):
result = 0
... | [
"rrchowdh@eng.ucsd.edu"
] | rrchowdh@eng.ucsd.edu |
9bd2d5a01e42deff358f9b94bc9f1beeebe5ab33 | 047d1d95acb43d055867ba922d67d3a74fc3a9bd | /payment/admin.py | 59f68e8c2af78fdf2662ca9e2a7e98f2186035b0 | [
"MIT"
] | permissive | Arlus/django-payment | 5d18eecadc413aa70dba87682d8f225f4cfa28e4 | 95d8da39d7d8ccf233628140b85525619609745f | refs/heads/master | 2020-07-03T22:35:42.685217 | 2019-10-26T04:45:19 | 2019-10-26T04:45:19 | 202,074,537 | 0 | 0 | null | 2019-08-13T05:57:52 | 2019-08-13T05:57:52 | null | UTF-8 | Python | false | false | 7,586 | py | from django.conf.urls import url
from django.contrib import admin
from django.forms import forms
from django.http import HttpResponseRedirect
from django.shortcuts import get_object_or_404, render
from django.urls import reverse
from django.utils.html import format_html
from django.utils.safestring import mark_safe
fro... | [
"nwolff@gmail.com"
] | nwolff@gmail.com |
9b2a0eecd62a2b7a840e499fcfb0059fec62b7b6 | b133ca39198761fd0f6e6e13da0bdd563a223f2e | /manage.py | 61a890f50c116d7aab05faefd506324d96e18a94 | [] | no_license | Niko24x/OrderSpot-web | d75534f0d0f499238ec3d91f374ea5d6bb1e4cee | f49241760391a389b0bc222ee8aa3e3b91a6adb8 | refs/heads/master | 2023-05-06T00:34:53.531544 | 2021-05-13T04:46:42 | 2021-05-13T04:46:42 | 268,131,891 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 632 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'OrderSpotWeb.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise I... | [
"nikolascohn@gmail.com"
] | nikolascohn@gmail.com |
82f465c11b316b7121d832c85659e050bd9a19b4 | 978c9a1dd27a30b32eceed7f1518a26292695891 | /python/2021/codewars/calculateinversions.py | 513e292b0b59d1a782154f9bfaeb3538c3fe3baa | [] | no_license | detcitty/100DaysOfCode | 4da3407bdc4170f9d042f49e6c94a8469f8808f5 | a3d989ea56491f89ece5191d5246166ca01d2602 | refs/heads/master | 2023-08-09T04:45:51.842305 | 2023-07-21T17:02:08 | 2023-07-21T17:02:08 | 178,976,277 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 887 | py | # https://www.codewars.com/kata/537529f42993de0e0b00181f/train/python
from itertools import combinations
def count_inversions(array):
locations = []
for count, value in enumerate(array):
idx = value - 1
diff = idx - count
locations.append(diff)
list_combos = list(combinations(array... | [
"devin.etcitty@gmail.com"
] | devin.etcitty@gmail.com |
d89c447f47026b1045c450addf3e71318dbe69d0 | 894d7451d1d7868fa673c210b70abf8daad2040c | /venv/Scripts/easy_install-script.py | 0a5ca8d03c8d69788b509581fb452c56c5727a5e | [] | no_license | dongeorge77/Automation_Framework | 172678a8484cdfd54b608099ebba6cfd4f34536b | 5d2e78f0f510af8cd542c60835517103e4cc6c45 | refs/heads/master | 2021-10-19T22:59:54.141390 | 2019-02-24T15:00:14 | 2019-02-24T15:00:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 463 | py | #!C:\Users\ADMIN\PycharmProjects\10th_Class_24_2_2019\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install'
__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'(-sc... | [
"dongeorge95@gmail.com"
] | dongeorge95@gmail.com |
341a93c86d08213d8fc6a0ac712472428ddd5fe9 | 58ab9d3670310fa77dab74527de87dedcc4126d3 | /data/egos.py | bde22f9e7e975ce759a868472da332da730eb6e3 | [
"MIT"
] | permissive | ranaehmad/IntroPyForDataScience | e5b92d2ee8eea1d0515d800f7adb65f3a580b524 | 2fe92f21ded7533dd8963e135f6a18a6ade1c00b | refs/heads/master | 2021-05-04T17:33:52.868594 | 2018-02-05T08:12:48 | 2018-02-05T08:12:48 | 120,274,764 | 1 | 0 | null | 2018-02-05T08:16:59 | 2018-02-05T08:16:59 | null | UTF-8 | Python | false | false | 436 | py | import sys
import os
# we retrieve the folder as the first positional argument
# to the command-line call
if len(sys.argv) > 1:
folder = sys.argv[1]
# we list all files in the specified folder
files = os.listdir(folder)
# ids contains the sorted list of all unique idenfitiers
ids = [ int(file.split(... | [
"bashar.dudin@gmail.com"
] | bashar.dudin@gmail.com |
958fc768494ec3c7056fc6c7e6555e4a4a2b2dd8 | 34a633e2d60c5adf0e9f420bcc9587ac66b6766b | /kats/tests/models/test_stlf_model.py | ffe21a735545d553826036ca2afecdb1086247f7 | [
"MIT"
] | permissive | kpbMarques/Kats | 5cdd7ac61e23218cb5588ef775ca194224abe739 | 259fdf8f80f628b44f9ee8881f112b1e9fd7a85f | refs/heads/master | 2023-07-02T15:55:30.915358 | 2021-08-10T19:47:44 | 2021-08-10T19:49:02 | 394,783,804 | 1 | 0 | MIT | 2021-08-10T21:19:45 | 2021-08-10T21:19:45 | null | UTF-8 | Python | false | false | 2,529 | py | # Copyright (c) Facebook, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import os
import unittest
from unittest import TestCase
import pkgutil
import io
import pandas as pd
from kats.consts import TimeSeriesData
fro... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
a6246c058e55d2fa2abbd2f56635e74cf4b7d23e | 89bcca150fba13001bc9d98af3d799871d1dd272 | /merge_weather_with_activities.py | aadc2d697b2547933608d31a9fe575dd2b83b836 | [] | no_license | mgirardot/Running | b9db83a2baa606fe9ef4b7b22cfc2c73dcfbb939 | 887f10de8f6e240aa0dd325ad7d81d75b00aa581 | refs/heads/master | 2021-01-10T06:34:27.765824 | 2015-09-25T08:12:31 | 2015-09-25T08:12:31 | 43,059,707 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,347 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Sep 13 08:30:56 2015
@author: Michael
"""
import pandas as pd
f=open("C:/Users/mgirardot/Desktop/garmin_data/OpenWeatherMap_API_key.txt", 'r')
Apikey=f.read()
# importing activities.csv
data = pd.read_csv("C:\Users\mgirardot\Desktop\garmin_data\Activities_format_date.csv", ... | [
"michael.girardot@seekpeak-bioinformatics.com"
] | michael.girardot@seekpeak-bioinformatics.com |
e91ce4fbd61598edc83dcdef899fcd223c630369 | bd6bc6d65fe477d7b12df5bd8135c043d4dc32b7 | /PYTHON/URI - 1070.py | 1b8f95ba04eda6c8e16be787fdd69aaae6743a18 | [] | no_license | AndersonCamargo20/URI-Solutions | 276dbe7c313e27521583861cc4715a54823780fa | e9ff34f67dbf09f5d4999e1417ba5d6ea2769be5 | refs/heads/master | 2021-01-25T14:22:29.015255 | 2019-08-18T10:02:59 | 2019-08-18T10:02:59 | 123,687,031 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 144 | py | n = int(input())
count = 0
test = n
while(count != 6):
if(test % 2 != 0):
count = count + 1
print(test)
test = test + 1 | [
"anderson.camargo@unochapeco.edu.br"
] | anderson.camargo@unochapeco.edu.br |
cc2b5f9d64909554ac377708179e45ee80b181ba | 2d4c726e7a2b4a47dd4849a72281d4b581292c47 | /SisTecInfoNeg/aplicaciones/Personas/migrations/0001_initial.py | 6a32d3c1dcbb0c14ebc32c80e5314a0e001e795b | [] | no_license | Rauliale/SiSTecInfoNeg | 81c4cf3aef43a435ebd7d0ae0f02f9a09d9fdccf | 2a298c9b081c378fa604fc1abb3d51c279701706 | refs/heads/master | 2023-01-02T21:12:54.667753 | 2020-10-31T05:15:36 | 2020-10-31T05:15:36 | 285,526,494 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,260 | py | # Generated by Django 3.0.8 on 2020-10-06 00:52
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Domicilio',
fields=[
... | [
"50275694+Rauliale@users.noreply.github.com"
] | 50275694+Rauliale@users.noreply.github.com |
b526e01a663a13d55dc70e3e5c9adaba7f327fbc | 5dba3b17fd9a61140ed855ceb8d1c1cc7c030261 | /Sender.py | 673898e4b7d7e9599e4aefd4ed3e18e6d4073cdb | [] | no_license | marbibu/myCad | ea2c6ac3740e2e3a9673aa5d6475978e95360121 | e945f33b55c0dd7a74677493d3eddfb147d3fca7 | refs/heads/master | 2021-01-13T02:07:33.165076 | 2014-06-17T18:05:41 | 2014-06-17T18:05:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 514 | py | class Sender:
#Klasa, ktora rozsyla info do odbiorcow
def __init__(s):
#Dane:
s.__listeners=[]
def addListener(s,listener):#Dodaje sluchacza
s.__listeners.append(listener)
def delListener(s,listener):#Usuwa sluchacza
s.__listeners.remove(listener)
... | [
"marbibu@gmail.com"
] | marbibu@gmail.com |
788c333b43a743488ab766920b353cd9d0fcd9e3 | add82af4460e8504818a7cb09702e855a7fbc1cd | /Queue_LinkList.py | 82c2bd3d86a1ff83fd38662f5c9bca6705cf20a7 | [] | no_license | hiteshwarsingh1/Data-Structure-Python | e5b52ab7bd514c877885bf64f3916c29446dbb53 | 5b58ee8399861c1041894512757159681ab3604b | refs/heads/master | 2023-01-23T19:19:14.816845 | 2020-11-23T06:05:43 | 2020-11-23T06:05:43 | 292,058,889 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,087 | py | class Node:
def __init__(self,data):
self.data = data
self.nextNode = None
class Queue:
def __init__(self):
self.head = None
self.length = 0
def add(self,data):
self.length = self.length + 1
new = Node(data)
if not self.head:
... | [
"noreply@github.com"
] | noreply@github.com |
95d00c25a4e347aac1dc9d9e1f43779f6d393425 | bc5a8b0b41e32676cdccfc9e792c80f66c90d425 | /gmm/GMM.py | 33b849d9c31a5a02ba8cdb39907570b824dfd418 | [] | no_license | shaoguangcheng/MachineLearningToolbox | c785359ab2905fef6c30bab2aa49c9a48d64de2d | 5d5761df28513ae38094410bdba41149b1d0e07e | refs/heads/master | 2021-01-10T20:44:24.280044 | 2015-01-06T14:36:57 | 2015-01-06T14:36:57 | 24,097,426 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,730 | py | #!/usr/bin/env python
"""Gaussian Mixed Model"""
import numpy as np
import pylab as pl
class GMM(object) :
def __init__(self, X, K_or_centroid) :
"""
X : input data, size : N x D
K_or_centroid : if the type of K_or_centroid is int, then it represents the number of Gaussian components
if the t... | [
"chengshaoguang1291@gmail.com"
] | chengshaoguang1291@gmail.com |
21f65a454607757b2405089a7e5b36b67b45d525 | 8998719f3887966df87e217b3f5fb80b768d313b | /Chapter_5/Character_Creation.py | 44ecc386840b393261cf46bd473d1975bc294597 | [] | no_license | theglitchmitch/M3-Learning-Python | eba3714fb7ec1384536772bc4ff3181cd24797d8 | 6c4e0aa98cd77e4626b4463fbfe0ef850c0be0ea | refs/heads/master | 2016-09-05T09:59:42.441359 | 2014-07-05T07:56:10 | 2014-07-05T07:56:10 | 16,834,705 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,337 | py | #variables
attributes = {"strength": 0, "health": 0, "wisdom": 0, "dexterity": 0}
pool = 30
inc_dec = ""
#current stats
print("Your current stats are as follows:")
print("Strength:\t",attributes["strength"], "\nHealth:\t\t",attributes["health"], "\nWisdom:\t\t", attributes["wisdom"], "\nDexterity:\t", attributes["dext... | [
"mitchellverlinden@hotmail.com"
] | mitchellverlinden@hotmail.com |
22a152ea94ccbc1c22feb2095dac25d8a3c7f763 | c607902a48125eaa724452ef9988d450ab5b32b2 | /ctasks/year_2021/month_06/day_20210618/L00100275_v1.py | 3647eb49b131d97ff6256a4e723cfdba99d7f45c | [
"MIT"
] | permissive | nesen2019/everyday | 8571e00275546b7a437dbb4da5e6d95a6be60f5a | 8439d99b12a938cb8325cdaceef8861af062abc5 | refs/heads/main | 2023-06-21T05:02:47.713360 | 2021-07-28T15:27:23 | 2021-07-28T15:27:23 | 376,860,050 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,668 | py | '''
剑指 Offer 03.数组中重复的数字 LCOF
剑指 Offer 03.数组中重复的数字
https://leetcode-cn.com/problems/
shu-zu-zhong-zhong-fu-de-shu-zi-lcof
找出数组中重复的数字。
在一个长度为 n 的数组 nums 里的所有数字都在 0~n-1 的范围内。数组中某些数字是重复的,但不知道有几个数字重复了,也不知道每个数字重复了几次。请找出数组中任意一个重复的数字。
示例 1:
输入:
[2, 3, 1, 0, 2, 5, 3]
输出:2 或 3
限制:
2 <= n <= 100000
class Solution:
de... | [
"228730267@qq.com"
] | 228730267@qq.com |
772259c48b97ee2126c1ea50506492631a0f8430 | 86f8a6bc701a70cabaf26c4aa50f8e7e701d9dfc | /basic2.py | efdf882f94218afb65fb73fae771d9b4d737f086 | [] | no_license | zosand123/pj1 | 8cf45086ef5e69d8c4cc61d4c9673a499a6ce696 | 2e071601023634c99179bbfd2d2d024be4d57a78 | refs/heads/master | 2023-03-28T13:57:02.223384 | 2021-03-18T07:57:56 | 2021-03-18T07:57:56 | 313,252,062 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,185 | py | # import basic
# logger=basic.logger
# def hap(n):
# logger.info('hap함수 호출')
# h=0
# for i in range(n+1):
# h=h+i
# if h>1000:
# logger.critical("합이 1000을 초과,"+str(i)+","+str(h))
# return h
# print(hap(10))
# print(hap(100))
# ---예외처리--------------------
# try:
# 예외가 발생할 ... | [
"zosand123@users.noreply.github.com"
] | zosand123@users.noreply.github.com |
0ecab6beb8846f90119b772c94a608c39ed4b8ea | f0417264adb22d064b0b83b5a24ae33208c0a62b | /H2TauTau/scripts/harvest_old.py | e4891de4db0866345f1c6c3f5b38d618c20264e6 | [] | no_license | cbernet/cmgtools-lite | 6ae1a0bfc45ff03b14195ab0f05b353ffde9cd2e | 359209cd4f982cd1b9d8e3cb366de32b7b46113d | refs/heads/htt_9_4_11_cand1_v1 | 2021-01-18T15:56:14.845371 | 2019-10-24T14:00:32 | 2019-10-24T14:00:32 | 86,693,438 | 1 | 0 | null | 2019-06-07T09:04:05 | 2017-03-30T11:09:21 | Python | UTF-8 | Python | false | false | 382 | py | #!/usr/bin/env python
from CMGTools.H2TauTau.harvest.harvest_old import harvest, get_options
if __name__ == '__main__':
options, args = get_options()
src = args[0]
harvest(src,
subdir_pattern=options.subdir_pattern,
tgz_pattern=options.tgz_pattern,
apply_ff=options.... | [
"colin.bernet@cern.ch"
] | colin.bernet@cern.ch |
c0793432f7e28931623fb2922bba6c96e0d61b7d | dacfdce9a0f0793c93ba46b3fefe741f5bedd158 | /src/usps_graph.py | afbd4341398b216057147748f6bab879870b20f6 | [
"MIT"
] | permissive | ejnnr/karger_extensions | d219704dbc497198cb78cd08d8e47c4b67557336 | 63a17d5a2483b998fad0a4a425bac8811a293afa | refs/heads/main | 2023-06-21T04:58:13.504935 | 2021-08-03T15:33:09 | 2021-08-03T15:33:09 | 392,244,506 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,611 | py | import os
import sys
import h5py
import numpy as np
from sklearn.neighbors import kneighbors_graph
import scipy
np.random.seed(0)
os.makedirs("results/graphs/usps", exist_ok=True)
n = 7291
beta = float(sys.argv[1])
with h5py.File("data/usps.h5", "r") as f:
data = f["data"][:] * 255
labels = f["labels"][:].ast... | [
"erik.jenner99@gmail.com"
] | erik.jenner99@gmail.com |
eb96d7ba59e15da0b0f51e76d65639b8b35c5cc1 | 1d277498f96998cbbdc475db17191b7d6dc371ab | /rap/management/commands/play.py | 24ebadfb8155bc29f96f1cdd8ee0b3cd3017fe27 | [] | no_license | everythingability/rap | cfaccfbac75b7ff2522fc9bc7debb0fd3eec3559 | 44e550f1ca0ef68c1277d9904bd546c52d51a3e5 | refs/heads/master | 2022-12-09T07:52:27.961493 | 2020-03-18T19:11:23 | 2020-03-18T19:11:23 | 248,318,782 | 0 | 0 | null | 2022-12-08T03:50:01 | 2020-03-18T19:02:14 | Python | UTF-8 | Python | false | false | 2,544 | py | from django.core.management.base import BaseCommand, CommandError
from rap.models import Project, GTRCategory, HECategory, HEResearchArea, Person, Organisation
import os, sys
import csv, json
cats =["Archaeological Theory",
"Archaeology Of Human Origins",
"Archaeology of Literate Soc.",
"Architecture HTP",
"Environmen... | [
"="
] | = |
a811c97b51393a2eaedfda149c3031abea217fdf | 420447baf4f9ec631dad6dc53694d19bbcc643a5 | /section-4/examples/aa.py | 0e5c9eff8d4f5afcc1c016c86ea07e26ff69407e | [] | no_license | shamim-ahmed/udemy-python-masterclass | deae51e38b550e42d4a04d39168769d4953894af | b0789e398d4d022eeadba421b5ddb0f0986961c4 | refs/heads/main | 2023-08-12T12:56:31.420529 | 2021-09-23T12:42:07 | 2021-09-23T12:42:07 | 109,475,858 | 0 | 0 | null | 2021-09-28T13:14:40 | 2017-11-04T07:28:34 | Python | UTF-8 | Python | false | false | 242 | py | #!/usr/bin/env python3
x = 23
x += 1
print(x)
x -= 4
print(x)
x *= 5
print(x)
x //= 4
print(x)
x /= 5
print(x)
x **= 2
print(x)
x %= 5
print(x)
greeting = "Good "
greeting += "Morning"
print(greeting)
greeting *= 5
print(greeting)
| [
"shamim.buet.99@gmail.com"
] | shamim.buet.99@gmail.com |
23a017b6985b9075f84884d1e3f47eb3c33db526 | 94c20b83ecf16ff34e8feeb3ac1cdc7a514a7496 | /Django/Django/boston/music/migrations/0002_auto_20170402_0716.py | 22207ebef1b618bc22d01e5159e3ffd432e346a9 | [] | no_license | shivanshuisin/sample | ecb4678327b50539946c9327856c966a66144b27 | ae9724776cc11e63daf28ab671317121aa145dd6 | refs/heads/master | 2021-01-23T11:09:32.577188 | 2017-06-02T06:06:02 | 2017-06-02T06:06:02 | 93,127,065 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 594 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.6 on 2017-04-02 07:16
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('music', '0001_initial'),
]
operations = [
migrations.AddField(
... | [
"noreply@github.com"
] | noreply@github.com |
57ed110bbfd9c0df5ac08a2247a9e6c8b61b0f54 | 6110288c46c7436c58c4ca6987ebb8d2e5452904 | /框架/test_学校/a_3.py | 86bfd29985a7012aba3b40e07985f569ef658387 | [] | no_license | liuyy6/python | f87fca456b99a2460afdba9b7a1b3896a88295a4 | a05b1e8d425b8271cc7ab66c2baa99dc5fca94dd | refs/heads/master | 2020-04-10T04:37:05.900484 | 2018-12-08T08:11:35 | 2018-12-08T08:11:35 | 160,803,295 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 665 | py | #!/usr/bin/env python
#--*-- coding:utf-8
import unittest
from 框架.data_读取文件.a_2 import duqu
from 框架.config_配置_公共性.a_1 import 学校_查询
class haofenshu(unittest.TestCase):
shuju=duqu().tes_shuju()
jiekou=学校_查询.学校_快查
def test_1(self):
html = self.jiekou(self.shuju[0][0])
self.assertNotEqual(html['... | [
"17839210919@163.com"
] | 17839210919@163.com |
3633844e31ef25946149f347fd8b632cd1063b5e | 42de7dc0ec8fb7a2b00651f89cebfb6f30d93a43 | /apps/books/views.py | a4840781b7de3197fe9990a8bff7543b537ffc1b | [] | no_license | caroline-rivera/GILBi | ce4cfccb57ec77c98ab0794cdce2d3a2857fbddb | e17c7c0fb5d6cfdf1620bb66b17d9823ccb418c5 | refs/heads/master | 2020-11-26T14:07:08.793697 | 2012-02-09T01:18:28 | 2012-02-09T01:18:28 | 3,165,769 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,467 | py | # encoding: utf-8
import json
from django.core import serializers
from django.http import HttpResponse, HttpResponseRedirect
from django.template import RequestContext
from django.shortcuts import render_to_response
from gilbi.apps.books.models import Author, Publisher, Book, BookAuthor
from gilbi.apps.books.forms imp... | [
"caroline.rivera@hotmail.com"
] | caroline.rivera@hotmail.com |
2bddd66670f5baf95cf4765691bae735b9839edd | 746f30ec200992dc274b2d1f37400714d4dc7f0a | /lesson7.py | b31f40ffcdce6eedf54198b3b88dc1a36454b7c1 | [] | no_license | DmytroLuzan/My_home_study_python_part2 | feadc6b72c1351939c927900f9bed62d3ffc48f1 | 74814cf7219edb0d0adbb0d0f10017fb8a351e93 | refs/heads/master | 2023-07-30T12:21:10.443439 | 2021-09-20T20:46:34 | 2021-09-20T20:46:34 | 408,593,911 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 232 | py | # test = None
# test = 123
# print(test)
# x = 1
# y = 5
#
# print(x, y)
#
# z, w = (3, 7)
# print(z, w)
print(type(my_true))
print(type(my_false))
str() int() float() bool()
x = 5
print(x, type(x))
x = bool(x)
print(x, type(x)) | [
"dimaluzan9@gmail.com"
] | dimaluzan9@gmail.com |
cc5b182b31c15e0834f851a86264418069dace1b | 09e5cfe06e437989a2ccf2aeecb9c73eb998a36c | /modules/cctbx_project/mmtbx/refinement/tst_occupancy_selections.py | 00e45d369bbd20f50d9ca7e271fc4920cf51cc44 | [
"BSD-3-Clause-LBNL",
"BSD-3-Clause"
] | permissive | jorgediazjr/dials-dev20191018 | b81b19653624cee39207b7cefb8dfcb2e99b79eb | 77d66c719b5746f37af51ad593e2941ed6fbba17 | refs/heads/master | 2020-08-21T02:48:54.719532 | 2020-01-25T01:41:37 | 2020-01-25T01:41:37 | 216,089,955 | 0 | 1 | BSD-3-Clause | 2020-01-25T01:41:39 | 2019-10-18T19:03:17 | Python | UTF-8 | Python | false | false | 67,722 | py | from __future__ import absolute_import, division, print_function
from mmtbx.monomer_library import pdb_interpretation
from mmtbx.refinement.occupancies import occupancy_selections
from mmtbx.command_line import fmodel
import mmtbx.model
from iotbx import file_reader
import iotbx.pdb
import iotbx.phil
from libtbx.test_u... | [
"jorge7soccer@gmail.com"
] | jorge7soccer@gmail.com |
ec29a5585bca701315c77178f7d11b5f56e4e8ee | d75ff386cf0920cb84f1d6cbfd9e66042c21ee35 | /main.py | 5599067e5cb40140282189c657525a1b50490031 | [] | no_license | passportout/password-generator | 5801ed6743a543baaffffaf200811619b8f44aea | 2d252cf4534071e64d8067fbedb5070338647dc4 | refs/heads/master | 2022-09-06T09:11:31.591729 | 2020-05-20T11:02:23 | 2020-05-20T11:02:23 | 265,537,501 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 484 | py | import string #Done by Passportout
import random
if __name__ == "__main__":
s1 = string.ascii_lowercase
s2 = string.ascii_uppercase
s3 = string.digits
s4 = string.punctuation
plen = int(input("Enter the password length\n"))
s = []
s.extend(list(s1))
... | [
"noreply@github.com"
] | noreply@github.com |
489a78e8ffb4d1cf110c0af54cad92b01c4d83b7 | f7550c4964dc8f3c59dbcebe39e947bd6a264dba | /9. Generic Trees/take input Tree .py | 035d0395b6c16a2194ca74782181cd193b973a60 | [] | no_license | Jashwanth-k/Data-Structures-and-Algorithms | db5e2e30932e0a35db578c19ae6cff9f147b7c3d | 1ebf9986999a474cb094f3ab04616a46f2887043 | refs/heads/main | 2023-08-25T02:57:17.394322 | 2021-10-11T15:27:56 | 2021-10-11T15:27:56 | 402,448,718 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 772 | py |
class TreeNode:
def __init__(self,data):
self.data = data
self.children = list()
def printTreeDetailed(root):
if root is None:
return
print(root.data,end=':')
for child in root.children:
if child != None:
print(child.data,end=',')
print(... | [
"noreply@github.com"
] | noreply@github.com |
3c5cf7a046a24b6b946834f4dd1e73195c28d8af | 6a3805c0e3a1f1a17dafde998b07dff724fa3432 | /fixedwing/migrations/0003_remove_fixedwingpost_user_name.py | bc069521c1e8eb8d325b7a1382518dea94a5cc49 | [
"MIT"
] | permissive | shivam675/avation | de85bd7bceb88f4567f2d549c914b6bee978d216 | 9f39a9fbeb2ad7d27d88816b0085cdd814b9ae35 | refs/heads/main | 2023-04-14T14:54:20.213381 | 2021-05-02T10:35:05 | 2021-05-02T10:35:05 | 358,865,969 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 355 | py | # Generated by Django 3.2 on 2021-04-21 07:34
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('fixedwing', '0002_auto_20210421_0522'),
]
operations = [
migrations.RemoveField(
model_name='fixedwingpost',
nam... | [
"samarkale.15@gmail.com"
] | samarkale.15@gmail.com |
02ec8af28553499e98bf2dd4e3f5f615f381ca80 | 44b73d2d2e7f6f10f9bbe37b30f80102b9c3b6c7 | /polls/migrations/0001_initial.py | e1f0b36c8a082d2134fecc1c40e71bd63effa101 | [] | no_license | wulliam/django_tutorial | 275afbdb8787a561111bce480ca752151da64a6e | 295c358d632639249f5c8e5d905ef24673c8519d | refs/heads/master | 2021-01-21T11:15:15.500110 | 2017-03-03T07:09:08 | 2017-03-03T07:09:08 | 83,539,249 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,230 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-02-28 09:35
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.Crea... | [
"wulliam@gmail.com"
] | wulliam@gmail.com |
254a416690e6e5351afff80f1d54dccebdb3bb22 | 3ccee0248d282d9e2f19d98992fe40a6eb3b8052 | /NN_HW_liuchang/util.py | cc9f209f92a51dc8833f4b2d7f3d83d879b2b92d | [] | no_license | Alin666/BiLSTM-readability-classification | 2feeea57326e5340a5a52ab518eeb97610200517 | 52f274728c0c0e82298486887c6216a83907e521 | refs/heads/master | 2020-12-02T15:59:23.483754 | 2019-12-31T08:48:44 | 2019-12-31T08:48:44 | 231,057,800 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,006 | py | # encoding=utf-8
import pandas as pd
import csv
import tensorflow as tf
from sklearn.metrics import classification_report
def _read_tsv(input_file, quotechar=None):
"""Reads a tab separated value file."""
with tf.gfile.Open(input_file, "r") as f:
reader = csv.reader(f, delimiter="\t", quotechar=quotec... | [
"tyling6666@163.com"
] | tyling6666@163.com |
9a3688a9982dfc32e2b669954d7acea5edfc7b99 | df97001ba51f360d3091ee99eaca21e617d6861e | /exp_replication.py | c9fef17915f40f53ce53deea953c071fffc011c4 | [] | no_license | lucaspetry/news-similarity | be96948e5c00ec759786827cb312b91f9db4f684 | 36b877ae3215694d3567461e528d9f8b4a038d60 | refs/heads/master | 2022-12-13T08:20:24.099264 | 2020-11-09T00:36:01 | 2020-11-09T00:36:01 | 150,455,570 | 6 | 2 | null | 2022-12-08T07:37:04 | 2018-09-26T16:18:55 | Python | UTF-8 | Python | false | false | 6,004 | py | import os
import gc
import pickle
import numpy as np
import pandas as pd
from joblib import Parallel, delayed
import multiprocessing
from sklearn.metrics.pairwise import cosine_distances
from exp_corpus_loader import load_cleaned_news
from exp_corpus_loader import get_corpus_bow
from exp_corpus_loader import get_corpu... | [
"lucasmaypetry@gmail.com"
] | lucasmaypetry@gmail.com |
8b9586e7b4d8ccf822cc2fac6c8e2a66e0cace0c | b5a9d7b62693aab6d04fc3e58643100e4c93a923 | /other/test3.py | 50773976518df587b0d91a3d9a4d1a0faf4487b4 | [] | no_license | baobaobaozhu135/credit-4 | f6df207a0c302a9e0d2bd33f84bfc5633353d983 | fa9e0226313a0f2339107137e393ba09304a3bf6 | refs/heads/master | 2020-03-27T07:16:07.498588 | 2018-08-27T07:52:07 | 2018-08-27T07:52:07 | 146,176,905 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 520 | py | # _*_encoding:utf-8_*_
import re
style = 'width: 100%; -moz-user-select: text;"' \
' value="2018-10-25" name="dateclosed" size="1" aria-invalid="false" data-errorqtip=""'
print style.find("value")
print style[style.find("value"):]
new_style = style[style.find("value"):]
print new_style[7:17]
print new_style[0:... | [
"jiayunxiaoju@sina.com"
] | jiayunxiaoju@sina.com |
6fff91f6be14b4821b639c1e16c3f315292f7e05 | a4c440231d2f41fc4c9d132029a4571d486a977a | /classfiturwarna.py | eaf121cf6f386d39ffc278fd468d834653ed1a46 | [] | no_license | bubgum/image-processing | 58951f51179dfa04477db5d498013529d2cddc79 | f6f0d40dec5ec9b3f16482079e2afb116c2e4c86 | refs/heads/master | 2016-09-14T07:17:29.680007 | 2016-05-16T04:20:07 | 2016-05-16T04:20:07 | 58,688,743 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,400 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Mar 18 23:59:49 2016
@author: bubgum
"""
import cv2
import numpy as np
import matplotlib.pyplot as plt
import math
from function import *
class classfiturwarna:
global maksWarna
maksWarna = 64
bins = 256 / maksWarna
func = function()
f... | [
"dwi.put4@gmail.com"
] | dwi.put4@gmail.com |
608ff5607f98ac53fee0da1e7bce9d79ee3a95bc | 2615f86b7bbcd230ef1fe76a601c239d722f9625 | /accounts/migrations/0004_remove_user_active.py | 7badb5f2122301de57e153d6c9fb49c8759527a7 | [] | no_license | sheriffyusuf/eCommerce | bf576b77e77df99672c6d764d8a033f626ed22fd | e6bf4b3846398ddb6ebc70569d89a54cffdca07d | refs/heads/master | 2022-08-02T08:17:22.455494 | 2018-05-11T13:40:43 | 2018-05-11T13:40:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 388 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.4 on 2018-04-17 14:38
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('accounts', '0003_user_is_active'),
]
operations = [
migrations.RemoveField(
... | [
"halex.alex@yandex.ru"
] | halex.alex@yandex.ru |
a0c7e8eb0549e6970d3dbecb906888251e0eb0c7 | d2a818967193f8f7f9e980ef5ba7decea6cb1065 | /CondTools/L1TriggerExt/python/L1O2OTagsExt_cfi.py | 15e998d6699339aaa62dab53e6f99ab3f70740b5 | [
"Apache-2.0"
] | permissive | panoskatsoulis/cmssw | 1f5bfc6664856032db6609fad1b793d63b31afa6 | 5e32e53f9a775ea197e83fdb1462f99d4c9cb1a9 | refs/heads/l1t-integration-CMSSW_9_2_8 | 2022-08-14T15:22:14.881299 | 2017-09-01T06:17:20 | 2017-09-01T06:17:20 | 102,378,833 | 0 | 1 | null | 2021-02-12T12:09:50 | 2017-09-04T16:01:18 | C++ | UTF-8 | Python | false | false | 1,171 | py | def initL1O2OTagsExt():
import FWCore.ParameterSet.Config as cms
from CondTools.L1TriggerExt.L1CondEnumExt_cfi import L1CondEnumExt
initL1O2OTagsExt.tagBaseVec = [None] * L1CondEnumExt.NumL1Cond
initL1O2OTagsExt.tagBaseVec[ L1CondEnumExt.L1TriggerKeyListExt ] = "Stage2v0_hlt"
initL1O2OTagsExt.tag... | [
"kkotov@cern.ch"
] | kkotov@cern.ch |
a6c9e1c6485b4e005358f2fb9fc61b222dbcca23 | 191547132fcbea34a1ebd6694fdbbce75c17e4a7 | /Scheduler/venv/lib/python3.6/genericpath.py | 3810bec1f6c6a25e0279efc82a513fbe69eeebb9 | [] | no_license | kanadas/IO | 24c42ba6bdf6757a56ad15fe5ce291812c0051f7 | 85a735c2186b4544ef527112ec6c697525539630 | refs/heads/master | 2021-04-09T13:00:12.050356 | 2018-06-03T17:27:35 | 2018-06-03T17:27:35 | 125,632,361 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 59 | py | /Users/bartoszgromek/anaconda3/lib/python3.6/genericpath.py | [
"bartoszgromek@Bartoszs-MacBook-Pro.local"
] | bartoszgromek@Bartoszs-MacBook-Pro.local |
f6610dd5ba71b486ffe45995b39618ca7c982fa4 | 2d12bc48087222318aba7f3e38edca014022c5b5 | /scripts/infer-traffic-threshold/compute_max_th.py | c1ce9acf112835ce14ddee89111ae0cc435f0c68 | [
"Apache-2.0"
] | permissive | djdubois/smart-speakers-study | c6d8fb968474cca67f1488509a2f0937e4c4fa08 | 1cf04d955d4e59df9468fc11c4bc3860506442c9 | refs/heads/master | 2022-11-24T01:42:43.178233 | 2020-06-16T10:04:55 | 2020-06-16T10:04:55 | 272,668,271 | 3 | 3 | Apache-2.0 | 2020-07-14T20:25:22 | 2020-06-16T09:38:25 | MATLAB | UTF-8 | Python | false | false | 2,132 | py | import pandas as pd
import numpy as np
from datetime import datetime
import sys
df = pd.read_csv(sys.argv[1], error_bad_lines=False, sep=";")
#th=float (sys.argv[2])
mac_dev = sys.argv[2]
bob_ips = ["52.94.233.109","52.94.233.109","54.239.21.157","54.239.21.157","52.94.229.122","52.94.229.122","52.119.197.96","52.1... | [
"d.dubois@northeastern.edu"
] | d.dubois@northeastern.edu |
69c092950f4db463506ab6a6d11d94f52f9e0535 | c5f7019c52cd91a3d9505943b9d866539f2fb0bc | /synapse/models/transport.py | 189fc28633f8945726bba6d076022c1b92bc10b3 | [
"Apache-2.0"
] | permissive | vertexproject/synapse | ce31699fcb10cb2c870d448915f4d4524247e2d0 | 1808dff78921b4bfdb451a12ee5d03427a5295b9 | refs/heads/master | 2023-09-03T23:48:26.584015 | 2023-08-31T20:34:35 | 2023-08-31T20:34:35 | 37,228,107 | 307 | 63 | Apache-2.0 | 2023-09-14T21:53:32 | 2015-06-10T23:29:41 | Python | UTF-8 | Python | false | false | 15,787 | py | import synapse.lib.module as s_module
class TransportModule(s_module.CoreModule):
def getModelDefs(self):
modl = {
'types': (
('transport:direction', ('hugenum', {'modulo': 360}), {
'doc': 'A direction measured in degrees with 0.0 being true North.'}),
... | [
"noreply@github.com"
] | noreply@github.com |
db8858d3d0b03c9346f4b028be2f3a4fc6c900e7 | 37db56765276c0835a2c7e3955c412ce204836c1 | /1732.py | a3221be6890f5768a8a8d1a01f9b713a2f3c54bd | [] | no_license | supperllx/LeetCode | 9d0a3a7258d1cff6afa6e77f61a2e697834914ca | df3a589ea858218f689fe315d134adc957c3debd | refs/heads/master | 2023-05-01T06:57:17.403568 | 2021-05-19T18:29:25 | 2021-05-19T18:34:03 | 288,351,041 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 239 | py | class Solution:
def largestAltitude(self, gain: List[int]) -> int:
curHeight = 0
maxHeight = 0
for g in gain:
curHeight += g
maxHeight = max(maxHeight, curHeight)
return maxHeight | [
"supperllx@outlook.com"
] | supperllx@outlook.com |
bbbb98922649b61e90795c6fd283613ad91677fd | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/response/AlipayTransferThirdpartyBillCreateResponse.py | 5eec748f112c295bae2984605e0dddffe8587281 | [
"Apache-2.0"
] | permissive | alipay/alipay-sdk-python-all | 8bd20882852ffeb70a6e929038bf88ff1d1eff1c | 1fad300587c9e7e099747305ba9077d4cd7afde9 | refs/heads/master | 2023-08-27T21:35:01.778771 | 2023-08-23T07:12:26 | 2023-08-23T07:12:26 | 133,338,689 | 247 | 70 | Apache-2.0 | 2023-04-25T04:54:02 | 2018-05-14T09:40:54 | Python | UTF-8 | Python | false | false | 1,301 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.response.AlipayResponse import AlipayResponse
class AlipayTransferThirdpartyBillCreateResponse(AlipayResponse):
def __init__(self):
super(AlipayTransferThirdpartyBillCreateResponse, self).__init__()
self._order_id = No... | [
"liuqun.lq@alibaba-inc.com"
] | liuqun.lq@alibaba-inc.com |
040c1fcf9186eb659cdafd55bb4f2dd109ab33c3 | 3da45afe0b6f67306b1fba83c54c348ec34803c0 | /Task05/TextRNN变长/MyDataset.py | ef5c9ae93e088de991136df957c23f1690c8a92b | [] | no_license | lyj1998/nlp_learning | ec748caf69c21d84abde1f7c780877bd92a12ad4 | 9877c66b446d4261312d4ead9d93e3d91fafd456 | refs/heads/master | 2022-12-02T02:03:34.692211 | 2020-08-03T16:20:48 | 2020-08-03T16:20:48 | 285,043,264 | 1 | 0 | null | 2020-08-04T16:54:20 | 2020-08-04T16:54:20 | null | UTF-8 | Python | false | false | 1,092 | py | import torch
from torch.utils.data import Dataset
class MyDataset(Dataset):
def __init__(self, model_embedding, corpus, corpus_label=None, max_length=600, with_label=False):
super(MyDataset, self).__init__()
self.corpus = corpus
self.with_label = with_label
if self.with_label:
... | [
"372198787@qq.com"
] | 372198787@qq.com |
45fb8b4a825288850eb34bba58d4a38f849754d2 | afb3f5dd51047b292c65c41ce9f05d87e0601eef | /URI-Python/1045.py | ddb320ab3b338c0bf9f9394f88ae3bf3bcc8a487 | [] | no_license | gustavogds/URI | 4e22111290523847a7936c3104da995f24a68ce7 | 67d0a6c1cea94df780ff7ab9daf4157ce7b1534b | refs/heads/master | 2023-02-08T17:48:18.666576 | 2020-07-31T23:28:53 | 2020-07-31T23:28:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 548 | py | nums = input().split()
n1, n2, n3 = nums
lista = [float(n1), float(n2), float(n3)]
s = sorted(lista, reverse = True)
a = s[0]
b = s[1]
c = s[2]
if a >= b+c:
print('NAO FORMA TRIANGULO')
else:
if a**2 == (b**2 + c**2):
print('TRIANGULO RETANGULO')
elif a**2 > (b**2 + c**2):
print('TRIANGULO ... | [
"gustavogds9@hotmail.com"
] | gustavogds9@hotmail.com |
d38f2d2d93c871de5b8f3bdd3821e533926b5216 | a7872ecce16922ae991458c40d4d2b0e4ce1eca1 | /scrape.py | 435efc5e551c275c88db2e52d7b7af2f078705e1 | [] | no_license | canadian-open-sea-lab/scrappy | a15a715725e42856da502cd504bcfd4915264451 | b8d1eaee883e6d7cc7c01d20fb023a461a4df5b5 | refs/heads/master | 2021-09-05T23:30:08.059601 | 2017-11-06T13:22:04 | 2017-11-06T13:22:04 | 109,267,046 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 682 | py | from owslib.wms import WebMapService
import mapapi_connector
import config
def main():
connector = config.MAPAPI_DATABASE_CONNECTOR
with mapapi_connector.WMSConn(connector) as conn:
# Process WMS
for s in config.wms:
print("Connecting to: %s" % s)
wms = WebMapService(s... | [
"bradcovey@gmail.com"
] | bradcovey@gmail.com |
4f390d0eed7af74bc9ea62e24d6c3d8cb845873d | 0a89b8ecca5912cbf086f17de25d543c17d225a0 | /LABS/Labs-3-1/lab3-1-5.py | 1249ef8f4a4cbd762731de4f83c08244842be63d | [] | no_license | meighanv/05-Python-Programming | 0072051149b8ed3b668250b2c1d4d5503715b0b6 | 5493fc2adfbf5fbf5a03a1e027c269646b639332 | refs/heads/master | 2020-08-29T14:21:19.646870 | 2020-03-13T18:36:07 | 2020-03-13T18:36:07 | 218,059,331 | 0 | 0 | null | 2019-10-28T13:58:16 | 2019-10-28T13:58:16 | null | UTF-8 | Python | false | false | 338 | py | #Declaring variable for speed calculation
speed = 0
time = [5, 8, 10]
distance = 0
#Getting user input for speed
speed = input('How fast in MPH are you traveling?\n')
#for loop to go through the time intervals
for i in time:
print('If traveling at {} for {} hours, you will have traveled {} miles.\n'.format(speed,... | [
"jubei421@gmail.com"
] | jubei421@gmail.com |
b7d91ee98e930d3065eac0f1d1dd754aa4bac987 | 2191c690328f5b03df0f6a43bb2e103aecd620e4 | /RLpytorch/Policy_Gradient/Policy_gradient.py | 6e2e94fadd38dbe18bb79e50dbf5878a9ae17881 | [
"Apache-2.0"
] | permissive | hq-liu/RL_pytorch | 35170b21dc16c97b3ad31bcb823713b50c9e8710 | 301badf44c5b026dbc798e7eec8a9d37b7e943e5 | refs/heads/master | 2021-09-02T08:38:37.423578 | 2018-01-01T03:29:27 | 2018-01-01T03:29:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,595 | py | from torch import nn
from torch.nn import functional as F
import numpy as np
from torch.autograd import Variable
import torch
from torch import optim
from torch.nn import init
class policy_gradient_net(nn.Module):
def __init__(self, state_dim, action_dim, num_hidden=3, hidden_size=128):
"""
Policy... | [
"noreply@github.com"
] | noreply@github.com |
afe9951dde3fd1a96076c03a9c8e9fa17b1c506c | 291007cc365cb2bbca1ad49d13b55c3ef427db60 | /blakeden | f45405a01de0b7c9747ed05c8b9cd704ae7a6c13 | [] | no_license | npbarnes/hybridtools | a403b9d52827b3b6d9a52d8b20c38ca9458e9797 | aa2d84f91873bbc889d0995de7a1dc6dbd62f771 | refs/heads/master | 2022-11-14T13:59:42.320930 | 2022-11-10T00:02:50 | 2022-11-10T00:02:50 | 95,045,051 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 272 | #!/usr/bin/python
import numpy as np
import os
import matplotlib.pyplot as plt
from FortranFile import FortranFile as ff
f = ff('c.np.dat')
f.seek(0,os.SEEK_END)
data = f.readBackReals()
data = np.reshape(data, [100,12,100], 'F')
plt.pcolormesh(data[:,6,:])
plt.show()
| [
"npbarnes@alaska.edu"
] | npbarnes@alaska.edu | |
5ce59ccf65ce1cfc60df21590be80eceb7e53e92 | 532b7ff485001ec8741cf044a89ad160599dcb32 | /iti/students/urls.py | ea9e1a61844dedc9a00faa74446273c97bef7331 | [] | no_license | NohaAShehab/DjangoDimST21 | 9ca2ea43b7703367e020c0d8b626f660b2338fa9 | 55fba09f6bcc8d5edd76f190e95d1d7016a34d84 | refs/heads/main | 2023-07-18T07:13:53.732630 | 2021-09-06T09:13:47 | 2021-09-06T09:13:47 | 402,746,362 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 165 | py | from django.urls import path
from students.views import listStudents, viewstudent
urlpatterns = [
path('', listStudents),
path('<stdname>', viewstudent),
]
| [
"nohashehab.iti@gmail.com"
] | nohashehab.iti@gmail.com |
5b3e180cb61affd2e21d1bdf589c262dc1567e5d | c09c74117c5e29fabb71921c7b473a0feb0be11f | /jun10.py | b0c472d27928780a37b78f44e76d714c829e1f78 | [] | no_license | BrodyCur/week5_reinforcement | cc80e16bcdbb6519196a186ba821277458c7a0c9 | 6a24e1326cda31f73e6dbf620dba4bfa786ea4cf | refs/heads/master | 2020-05-28T04:07:58.406807 | 2019-07-19T20:35:15 | 2019-07-19T20:35:15 | 188,875,175 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,116 | py | import random
reinforce_dictionary = { 'response': {
'status': "ok",
'userTier': "developer",
'total': 9772,
'startIndex': 1,
'pageSize': 10,
'currentPage': 1,
'pages': 978,
'orderBy': "relevance",
'results': [
{ 'id': "film/2017/jul/25/daniel-craig-judi-dench-and-idris-elba-toronto-film-festival",
'type': "article",
... | [
"brodycurrie@gmail.com"
] | brodycurrie@gmail.com |
15dfd4b7c8e60897f161dcf8e6db68f0a3882e15 | 366a2251b52c5238ae0e8856769d455894b5024b | /web-app/reports/migrations/0002_auto_20190310_1129.py | bb76258cbfcb19397d470f30882a9ef0cc5a6a9e | [] | no_license | juliarosenrauch/cmd-f-2019 | 953a592cb2290feb198f83792568dc7374d658d4 | e22019fa1376dad2427211644464da3954c461a2 | refs/heads/master | 2022-10-03T17:24:30.479068 | 2022-08-31T23:27:06 | 2022-08-31T23:27:06 | 174,753,003 | 0 | 0 | null | 2022-08-31T23:27:07 | 2019-03-09T22:29:01 | Java | UTF-8 | Python | false | false | 1,053 | py | # Generated by Django 2.1.5 on 2019-03-10 11:29
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('reports', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Report',
fields=[
('id', m... | [
"carol@carolkng.com"
] | carol@carolkng.com |
f9d5e2852c279495088d3720a464eafb1411bdd6 | 0607fa7255fa47608407b3cfd819e83d55ba9eab | /InvenTree/stock/views.py | 26a957a64403ad18198d94f4949cfe424beec2bd | [
"MIT"
] | permissive | IsThisNameGoodEnough/InvenTree | f7d71aa8c33f69654b2bb4d3827d4a60290df8ad | fa789036e0ae7d56ced3c9e1f2d2ff596983a365 | refs/heads/master | 2020-07-26T02:31:34.316571 | 2019-09-13T14:14:45 | 2019-09-13T14:14:45 | 208,505,299 | 0 | 0 | MIT | 2019-09-14T21:20:24 | 2019-09-14T21:20:24 | null | UTF-8 | Python | false | false | 31,264 | py | """
Django views for interacting with Stock app
"""
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.core.exceptions import ValidationError
from django.views.generic.edit import FormMixin
from django.views.generic import DetailView, ListView
from django.forms.models import model_to_dict
fro... | [
"oliver.henry.walters@gmail.com"
] | oliver.henry.walters@gmail.com |
d86ff068794b921e38b791674c460f3f27e2b0cb | d121170375f73bdea9254f36aae552f71700be2c | /book/views.py | 68996e68152c226cd3a6f31dc722a00e222c69f5 | [] | no_license | tuanna1503/django_book_lib | fe0c85e3091f2428972a3d2894c4682c52566192 | 7bf0d965bffe6c79f69eca9f1516f1d733041dc1 | refs/heads/master | 2020-06-14T23:28:48.175183 | 2019-07-04T02:22:15 | 2019-07-04T02:22:15 | 195,154,552 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,613 | py | import io, datetime, re
from django.contrib import messages
from django.http import HttpResponse, Http404, HttpResponseRedirect
from django.template import loader
from django.shortcuts import get_object_or_404, render, redirect, render_to_response
from django.urls import reverse, reverse_lazy
from django.views import g... | [
"anhtuan.prime1st@gmail.com"
] | anhtuan.prime1st@gmail.com |
4c2f052e47f331249f8d010f61215fab0048cba4 | 4f2f71beee2fb016550598996e100ce176100dcb | /python/etl/etl.py | 9bbd5ca4f54b1b3e9ae65cbba66894797f2bf174 | [] | no_license | charles-wangkai/exercism | d2723bd160573b2d3ee9051ff63972e5be900d87 | c283a5078e3d0f05ff3d86b2c208ae086d3896a4 | refs/heads/master | 2023-05-11T13:11:23.776323 | 2023-04-30T17:40:56 | 2023-04-30T17:40:56 | 102,832,444 | 2 | 4 | null | 2020-03-14T15:49:13 | 2017-09-08T07:31:36 | C++ | UTF-8 | Python | false | false | 151 | py | def transform(legacy_data):
return {letter.lower(): score
for score, letters in legacy_data.items()
for letter in letters}
| [
"charles.wangkai@gmail.com"
] | charles.wangkai@gmail.com |
cacd05c74fbf20c30a1536f358316fa99c9c50cb | dab075d6fe2cba2750c80838ccbf3cfc4bdf1ce5 | /ChatBot/chatbot_search/chatbot_sentence_vec_by_word.py | c79dd6ff27d710ba743ee56b1504b46ccab06cbc | [
"MIT"
] | permissive | yuxuan2015/nlp_xiaojiang | 324d880265ebfbbb0b2dd3efdb854e5b5a641732 | 2b03d0fcec16d926b0d08c8c5907c76b6d4be9f1 | refs/heads/master | 2020-05-20T05:45:13.276559 | 2019-05-06T23:43:42 | 2019-05-06T23:43:42 | 185,414,058 | 1 | 0 | MIT | 2019-05-07T14:03:13 | 2019-05-07T14:03:12 | null | UTF-8 | Python | false | false | 7,687 | py | # -*- coding: UTF-8 -*-
# !/usr/bin/python
# @time :2019/4/4 10:00
# @author :Mo
# @function :chatbot based search, encode sentence_vec by word
from conf.path_config import w2v_model_merge_short_path, w2v_model_wiki_word_path
from conf.path_config import projectdir, chicken_and_gossip_path
from utils.t... | [
"noreply@github.com"
] | noreply@github.com |
501c0eef2e3e24a14f185a846e3c3e83001d15e2 | d95f8a38dbd4ba85e9f2da8055d092a182be6364 | /apps/backups/utils.py | 6fcc3fd6b964f1905cb8c68b2c7b069e8c444a52 | [
"MIT"
] | permissive | fylein/fyle-backup-app | c2e45b3257f85acdd62ec2ab082f4d0abb96cf57 | 80eeb9d6fa583a788d34cd7248dacdc168a14fc6 | refs/heads/master | 2022-12-19T03:32:27.506439 | 2022-12-16T03:52:50 | 2022-12-16T03:52:50 | 246,866,072 | 0 | 1 | MIT | 2022-12-16T03:53:13 | 2020-03-12T15:16:25 | Python | UTF-8 | Python | false | false | 5,272 | py | import json
import logging
import traceback
from apps.user.models import UserProfile
from apps.data_fetcher.utils import FyleSdkConnector
from fyle_backup_app import settings
from .models import Backups, ObjectLookup
logger = logging.getLogger('app')
class BackupFilters():
"""
Fetch filter values based on bu... | [
"noreply@github.com"
] | noreply@github.com |
515abe39a4b083f36ba29a7d297e46acd12b68d2 | ed5530eac95cdbd91a16c8f67c4d3fa6183665ec | /users/models.py | 9979bd3b6a5ebd2d0596e8d94d88f67fdf5911cf | [] | no_license | soccerplayer16/DjangoBlog | cee2474b4af64bb957593ef5beff8f9726119685 | c5e3e2a89e8187a2290110f02bc7264d873cfbd9 | refs/heads/master | 2023-02-05T04:32:56.732156 | 2020-01-04T20:41:39 | 2020-01-04T20:41:39 | 231,824,250 | 0 | 0 | null | 2023-01-20T23:39:17 | 2020-01-04T20:30:37 | JavaScript | UTF-8 | Python | false | false | 635 | py | from django.db import models
from django.contrib.auth.models import User
from PIL import Image
### model 其实就是一个Table
# Create your models here.
class Profile(models.Model):
user = models.OneToOneField(User, on_delete=models.CASCADE)
image = models.ImageField(default='default.jpg', upload_to='profile_pics')
def _... | [
"yanrusen@gmail.com"
] | yanrusen@gmail.com |
324b400d9ddcc89c488b9ff5ea8d861eccab41f4 | 450b1edc16dc0a5418ba3b55412e9c331a427067 | /e-com/Lib/site-packages/setuptools/_distutils/command/register.py | dc166e8fa6031c73d45c9d8a491c9a9232a0b196 | [] | no_license | bkablam11/E-commerce-django | a438f96fc412f141638b4eea9acfe8d6db07811b | 14d32ea5aef19f41a7dba317b5048964c2e62b63 | refs/heads/master | 2023-06-29T02:06:37.486754 | 2021-08-08T01:45:54 | 2021-08-08T01:45:54 | 393,053,507 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,715 | py | """distutils.command.register
Implements the Distutils 'register' command (register with the repository).
"""
# created 2002/10/21, Richard Jones
import getpass
import io
import urllib.parse, urllib.request
from warnings import warn
from distutils.core import PyPIRCCommand
from distutils.errors import *
from distut... | [
"bkablam11@gmail.com"
] | bkablam11@gmail.com |
f8810d55e42892220406b09915f49bcc8e9e6c17 | dc4189a5130071ae9deec432d3632f9c644706f1 | /JSmodel.py | bc59f41dac82d3ac389ba9816b449dae2c246ed8 | [] | no_license | Jerseyshin/JSmodel | e515fb9cdd55d14a49ba7fe97bbdf361e2a803e8 | 73fee31c506e74bc71d194f8a19c07129428c17c | refs/heads/main | 2023-01-19T02:32:34.982153 | 2020-11-24T12:00:21 | 2020-11-24T12:00:21 | 315,618,262 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,425 | py | import torch
import torchvision
import torchvision.transforms as transforms
import matplotlib.pyplot as plt
import numpy as np
import torch.nn as nn
import torch.nn.functional as F
import torch.optim as optim
import coremltools as ct
PATH = './JScifar_net'
transform = transforms.Compose(
[transforms.ToTensor(),
... | [
"noreply@github.com"
] | noreply@github.com |
80d44d90e8e12efff1922220a0aba55abdd309d5 | 5dcaa0a339ceae6248e0e58b907a2b7a808377b0 | /2018 EPJST figures/Make Figure 4 C and D.py | 0358136e43f30f74f2ca8151aaf3b3d62743afb9 | [
"MIT"
] | permissive | vivarose/using_trackpy | 6d5d0edbd33b97897e9492a8e05ef89376c63807 | 3e93f212aa2925aa4df4d03483ad0cc69283c286 | refs/heads/master | 2021-07-06T01:27:05.024076 | 2021-06-02T03:54:20 | 2021-06-02T03:54:20 | 51,491,621 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,306 | py | ## Run this cell in the tracers notebook
## drift subtracted vs non drift subtracted.ipynb
## Then send the png and pdf files to Viva
import seaborn as sns
sns.set(style='ticks')
sns.set_context('paper')
#sns.set_palette(sns.husl_palette())
# Big font
#font = {'size' : 9}
#plt.rc('font', **font)
plt.subplot(1,2, 2... | [
"vivarose@gmail.com"
] | vivarose@gmail.com |
247ea9b72ec5fb8eb33e372f7f76a5968669f60b | 9e649e0bba4aa9c76992e9f3b102963aea5eaed5 | /Atividade61.py | 0eab2010044865095fe336e14afb41c03b7d0065 | [] | no_license | SandroS22/Curso-Python | fd49e28cebfefe0e58e7e8aec55a110bb6a494f5 | e8750e69c5242663e184bb86de3c273bfba5ea94 | refs/heads/main | 2023-08-23T06:51:23.380910 | 2021-10-25T02:32:01 | 2021-10-25T02:32:01 | 417,292,326 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 196 | py | term = int(input('Qual o primeiro termo? '))
raz = int(input('Digite a razão: '))
n = 1
while n <= 10:
print('{} -> '.format(term), end='')
term += raz
n += 1
print('FIM!!!')
| [
"noreply@github.com"
] | noreply@github.com |
3cad3a7f0c739a5e2e8aa5effbc6fe398ab7bd71 | 12d99cdb0e7d761098329cb86bc1dcc0ce396acf | /lib/python3.7/site-packages/findspark.py | 6e5c12e1884ba9826f043b427a5ca89a727becae | [] | no_license | jodiemorton/GA_Capstone_Flask | be548cfc7d232b5a2789fb786d2697cd7d36411e | 8bf8b5c04336519b68b85bfc7bd2e982c21c683e | refs/heads/master | 2022-06-11T05:44:20.748030 | 2020-05-06T16:32:58 | 2020-05-06T16:32:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,509 | py | """Find spark home, and initialize by adding pyspark to sys.path.
If SPARK_HOME is defined, it will be used to put pyspark on sys.path.
Otherwise, common locations for spark (currently only Homebrew's default) will be searched.
"""
from glob import glob
import os
import sys
__version__ = '1.3.0'
def find():
""... | [
"58299782+jasonchia89@users.noreply.github.com"
] | 58299782+jasonchia89@users.noreply.github.com |
960540a6f9a5e5fdc7c3bb222cfbfd59bf548e8d | bf2d010229aece071359662f4fef44e48ba57951 | /dynamic_range_time_step_plot.py | ce67b22b30e65b9b6c4f46b93df1df6ec14a9916 | [] | no_license | Osrip/CriticalEvolution | b97398f74e2fc5b54c9ab92765b08ce3bf97257e | f77cae8acc626cb4c6d64d5a44fdf00310309c2e | refs/heads/master | 2021-06-24T03:44:03.283017 | 2021-04-03T13:09:42 | 2021-04-03T13:09:42 | 215,332,038 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,728 | py | import os
import numpy as np
from automatic_plot_helper import load_isings_specific_path
from automatic_plot_helper import attribute_from_isings
from automatic_plot_helper import all_folders_in_dir_with
import copy
import pandas as pd
import glob
import pickle
from run_combi import RunCombi
import matplotlib.pylab as p... | [
"jan.prosi@hotmail.com"
] | jan.prosi@hotmail.com |
7b4c0ee8e9c21c8ba5b2ba673a2c0b26d51be6a7 | 5394122fc755b642849dcefc25d6056e49272120 | /mpi/mpi4py/P_ex03I.py | 426871110a4259ea82ed9bde310a0f7c1c5cf538 | [
"Unlicense"
] | permissive | timkphd/examples | 3e2a0c514322a8537671c80c909d835eeca5aec9 | e84f249a4f72e45767d29ca889f5ea286ba0de1a | refs/heads/master | 2023-09-01T02:51:00.798436 | 2023-08-19T22:39:44 | 2023-08-19T22:39:44 | 188,473,532 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,471 | py | #!/usr/bin/env python3
#This is a simple isend/irecv program in MPI
# numpy is required
import numpy
from numpy import *
# mpi4py module
from mpi4py import MPI
import sys
# Initialize MPI and print out hello
comm=MPI.COMM_WORLD
myid=comm.Get_rank()
numprocs=comm.Get_size()
print("hello from ",myid," of ",numprocs)
... | [
"tkaiserphd@gmail.com"
] | tkaiserphd@gmail.com |
a558d1799604d17b04c567410500e302ce442646 | cc0e5ab7d5660cd75140286f845867e39ae8708d | /featurescom.py | 4ff0ae9b7d2bf38eceadb45ea1b5cde29b9dec6c | [] | no_license | edysuardiyana/micro_annotation | 6903419a3d0e3d63a804539a2528eaeb9822c84b | 5397e12ff4556720f275001acd2a378b99ad81e4 | refs/heads/master | 2020-04-15T10:50:48.481994 | 2017-06-20T13:26:10 | 2017-06-20T13:26:10 | 50,419,899 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,847 | py | __author__ = 'ArseneLupin'
#this code is for calculating and combining the features
from numpy import sqrt, mean
import numpy
import integrator
import emafit
import csv
import mytilt
import energyFeat
import smaFeat
import source_var
def featurescom (fullarray, micannot,act_state):
samp_rate = source_var.sampli... | [
"putrai@uni.coventry.ac.uk"
] | putrai@uni.coventry.ac.uk |
4af845e1f971176a5206c5bffb5b78b46436f77c | e18538dc767cdecabc752b0d7ff7bea695494305 | /keys.py | 61f62de7a4398b8594f47816a3eca02666f40a4e | [] | no_license | gabeochoa/snackr | 0a826b473a817eb7eab036f21cba5085fc0acc54 | 9139f0b6880707e7712e3837aa4194774e0b430a | refs/heads/master | 2020-12-24T18:42:25.835699 | 2016-04-17T05:23:19 | 2016-04-17T05:23:19 | 56,400,831 | 0 | 0 | null | 2016-04-17T02:51:30 | 2016-04-16T19:01:56 | JavaScript | UTF-8 | Python | false | false | 218 | py | READ_MONGO_URL = "mongodb://abcdef:abcdef@ds011311.mlab.com:11311/snackr"
WRITE_MONGO_URL = "mongodb://SNACKR_AUTHOR:snackrpass@ds011311.mlab.com:11311/snackr"
NUTRITION_API = "WzOb3NLVwI5Z0WvgXMsWQBGAJm0oP5fZrF6LRbQb" | [
"gabe1118@yahoo.com"
] | gabe1118@yahoo.com |
9493637dc94aa8fbd154efceeef1ecd79af3be07 | cf5b9cca63fb98c5d3c51c8a223eea67c5b934d4 | /product/forms.py | 84200088e5f37d6aad8ec1a01b37485f3bb1894f | [] | no_license | lopinho/tcc | da50239d3fea8769efc5448dc10ff7c8cd8d4216 | 1847eb8be6509ca71c329083a72365755f8c3ad1 | refs/heads/master | 2020-05-29T11:52:22.476131 | 2015-11-02T18:27:26 | 2015-11-02T18:27:26 | 45,647,972 | 0 | 0 | null | 2015-11-06T00:07:18 | 2015-11-06T00:07:18 | null | UTF-8 | Python | false | false | 2,273 | py | #coding:utf-8
from django import forms
from core.forms import BaseSearchForm
from product import models
from extra_views import InlineFormSet
#
# Product Forms
#
class ProductSearchForm(BaseSearchForm):
product_number = forms.IntegerField(
label='Número do Lote',
required=False)
model__bra... | [
"edgabaldi@gmail.com"
] | edgabaldi@gmail.com |
b89903e243a4e3f01446a14528a24f69dc433505 | 7f9a98410bed5c3b0823b362b20fc977339326bd | /hr/views.py | 69db247f8ece721f7cf34d2a42a70fc3f365facb | [] | no_license | sotsi/app1 | 8ba94fda46c146823c4d68fe68ad38622766ef12 | f4603abe71407fd9a883c79271304dac36e37329 | refs/heads/master | 2020-04-02T04:10:21.028966 | 2016-06-08T11:07:21 | 2016-06-08T11:07:21 | 60,513,422 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,811 | py | #from django.shortcuts import render
# Create your views here.
import django
import matplotlib
import matplotlib.pyplot as plt
import numpy as np
import mpld3
from mpld3 import plugins, utils
# import Figure and FigureCanvas, we will use API
from matplotlib.backends.backend_agg import FigureCanvasAgg as FigureCanvas
f... | [
"so.tsivras@gmail.com"
] | so.tsivras@gmail.com |
783c3f96c270a8323efbe58ab9ad72e3ffc8e029 | 1c6a7125c8ea024050045fb18a685daadcfbcb0f | /codeforces/random/B_Equal_Candies.py | 5666b59c9804f96384bfdd8bf152e6b93b45323e | [] | no_license | HurayraIIT/competitive-programming | 0e2f40cf1cae76129eac0cd8402b62165a6c29e4 | 3b9bc3066c70284cddab0f3e39ffc3e9cd59225f | refs/heads/master | 2022-12-10T18:33:10.405727 | 2022-12-06T13:15:15 | 2022-12-06T13:15:15 | 236,779,058 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 760 | py | # Abu Hurayra
import sys
from collections import defaultdict
# import threading
# threading.stack_size(2**27)
# sys.setrecursionlimit(2**21)
def rs(): return sys.stdin.readline().rstrip()
def ri(): return int(sys.stdin.readline())
def ria(): return list(map(int, sys.stdin.readline().split()))
def ws(s): sys.stdout.wri... | [
"hurayraiit@gmail.com"
] | hurayraiit@gmail.com |
358da0267b6022cdf9e060a5ac49c737a3d5856e | d74f1cfee530967b54aa1aa961a498e2fbb18c7d | /todo/accounts/forms.py | 52a9ff8963fa8620a8b6c3ccf92f32eac23b49c9 | [] | no_license | leoconstancio/todo-list | 92b7dbd7b5420d9a3acf49bd053134208ec35dff | 2b184e1031adc0092e079cb4b017defa7c3a5be5 | refs/heads/master | 2020-03-21T04:11:43.398932 | 2019-04-21T17:28:50 | 2019-04-21T17:28:50 | 138,051,493 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 681 | py | from django import forms
from django.contrib.auth.models import User
class UserForm(forms.ModelForm):
first_name = forms.CharField(widget=forms.TextInput(attrs={'class': 'form-control', 'placeholder': 'Ex.: Darth'}))
last_name = forms.CharField(widget=forms.TextInput(attrs={'class': 'form-control', 'placeholde... | [
"leo.constancio@hotmail.com"
] | leo.constancio@hotmail.com |
708047d155a312ce3ae3a7a006c7e151b4a21727 | 6dae645a54129c4f6d3b5d608e2b7c3c99474851 | /GraficaTendencia_Nacional.py | 1d7d52b2a28683521f834488078c795c03a29a71 | [] | no_license | alexrobl/Graficos_Coronavirus | 38ab221467fdbe25c32c3c4c54d209091ba7b064 | 3d5e1028d0cd2039b1e21eb2a1e15cb1bff92c17 | refs/heads/master | 2021-04-22T17:12:22.289828 | 2020-03-25T01:57:43 | 2020-03-25T01:57:43 | 249,863,981 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 841 | py | import pandas as pd
import numpy as np
import datetime
import plotly.offline as pyo
import plotly.graph_objs as go
df = pd.read_csv('data-240320.csv',sep=';')
df['Fecha de diagnóstico'] = pd.to_datetime(df['Fecha de diagnóstico'])
df = df.rename(columns={'Fecha de diagnóstico': 'fecha'})
df = df.rename(columns={'ID... | [
"vandermicra@hotmail.com"
] | vandermicra@hotmail.com |
24eab0073b819cc196e8f7657f4052507436ad3f | 007f7d8c93725457bc5692715587227d6c8acc0c | /blender/.blender/scripts/renameobjectbyblock.py | eeea815c650127d2b64e7c557b1b425a00e90a67 | [
"GPL-2.0-only",
"PSF-2.0",
"GPL-1.0-or-later",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | Nicoeevee/sketchfab_download | cf1c72ab45a88bebb0e08d7fb984fa01a3be97fa | a81ad3a2053e715608e657fd62c9dc1194ffe290 | refs/heads/master | 2023-04-21T08:05:28.322657 | 2021-05-13T18:01:30 | 2021-05-13T18:01:30 | 354,547,290 | 0 | 0 | Apache-2.0 | 2021-05-14T12:04:21 | 2021-04-04T13:13:28 | Python | UTF-8 | Python | false | false | 4,863 | py | #!BPY
""" Registration info for Blender menus: <- these words are ignored
Name: 'Object Name Editor'
Blender: 232
Group: 'Object'
Tip: 'GUI to select and rename objects.'
"""
__author__ = "Jean-Michel Soler (jms)"
__url__ = ("blender", "blenderartists.org",
"Script's homepage, http://jmsoler.free.fr/didacticiel/blend... | [
"2966764421@qq.com"
] | 2966764421@qq.com |
32d3d654ca3b38073ca67cd20c209e4c1bd06b03 | 4004167478be0cc0389b5a86299206fdf991f65b | /5.7 Extended Unpacking.py | 11a83b3a0bf4abfe656876f82224323166c4ee5f | [] | no_license | mohamad97mj/PYTHON-deep_dive_part1 | ca5ae2e1cec16fb91c752690e18e1c9ba9a9a18a | 812853e03023c01b42f209dd72dfa1cd5b86bb8a | refs/heads/master | 2023-01-16T07:39:56.039158 | 2020-11-16T20:12:02 | 2020-11-16T20:12:02 | 305,733,807 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,039 | py | a, *b = [-10, 5, 2, 100]
print(a, b)
a, *b = (-10, 5, 2, 100)
print(a, b)
print(type(b))
a, *b = 'XYZ'
print(a, b)
print(type(b))
a, b, *c = 1, 2, 3, 4, 5
print(a, b, c)
a, b, *c, d = [1, 2, 3, 4, 5]
print(a, b, c, d)
a, *b, c, d = 'python'
print(a, b, c, d)
# wrong
# a, *b, c, *d = [1, 2, 3, 4, 5, 6]
l1 = [1, 2... | [
"mohamad97mj@gmail.com"
] | mohamad97mj@gmail.com |
35488866c24bd360ea370d1014afbe7e4ed4e555 | b33d1d4b74d375a2050baf80cda5b8571aff7462 | /s14/day01/homework2.py | 1a595d08faafbc21bfeba3287a464e606179d299 | [] | no_license | sunwang33/code | e979e1b11209200fba07a99d926d76f09c83b514 | 377f3e919555bf0f02ef56c9395d57992c84fcfd | refs/heads/master | 2021-01-16T18:10:08.358744 | 2018-01-01T02:58:43 | 2018-01-01T02:58:43 | 100,045,002 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,440 | py | # Author:Sun Wang
menu = {
'北京':{
'海淀':{
'五道口':{
'soho':{},
'网易':{},
'google':{}
},
'中关村':{
'爱奇艺':{},
'汽车之家':{},
'youku':{},
},
'上地':{
'... | [
"330463670@qq.com"
] | 330463670@qq.com |
c6df7141adff7d26b3af93a38899f01eac16e914 | d0430e75fd1c30ee1f780b2a4ca8773aa1430a68 | /apps/oclib/utils/encoding.py | 3998c41d7fdb120a4cce22dd907fec43e23d28f7 | [
"Apache-2.0"
] | permissive | leigeng2014/sango2 | 7139a90e75e683f56127acdd6f79f1ffb664dd55 | aa0a3ed1a316d8afc9482f072f2aa57cffe9a10f | refs/heads/add-license-1 | 2021-01-10T08:38:22.885241 | 2020-10-28T02:41:00 | 2020-10-28T02:41:00 | 44,725,363 | 0 | 0 | Apache-2.0 | 2020-10-28T03:02:25 | 2015-10-22T06:03:55 | JavaScript | UTF-8 | Python | false | false | 682 | py | #!/usr/bin/env python
# encoding: utf-8
"""
字符串,unicode转换
Copyright (c) 2011 Rekoo Media. All rights reserved.
"""
def force_str(text, encoding="utf-8", errors='strict'):
t_type = type(text)
if t_type == str:
return text
elif t_type == unicode:
return text.encode(encoding, error... | [
"519087819@qq.com"
] | 519087819@qq.com |
a0e80b9a8d92ec000788fca8095d5b687aa71639 | 13cf53b5f8c96429902781dadd23b0f9e838a0f9 | /Programs/modular/promotion.py | ff170d05f185b6937cb7a41f4e2246aaa5058d31 | [] | no_license | maheshss/pythonpractice | 354fa606756e981818393c8a53c9b94ba0787321 | 0e626dc7818657e51331c85e9d8eb5ceb03a1873 | refs/heads/master | 2020-03-29T00:52:19.567319 | 2017-06-27T11:50:22 | 2017-06-27T11:50:22 | 94,637,382 | 0 | 1 | null | 2017-06-17T20:19:16 | 2017-06-17T16:58:27 | Python | UTF-8 | Python | false | false | 104 | py | #This file contains the promotional discount module for coffee
def discount(price):
return 0.90*price
| [
"maheshsaboo25@gmail.com"
] | maheshsaboo25@gmail.com |
72cd4e6fde17b03b12738b441ec9e9f9e86204b8 | 8afb5afd38548c631f6f9536846039ef6cb297b9 | /_REPO/MICROSOFT/computervision-recipes/utils_cv/detection/references/utils.py | b477c887d61384e3e724535c9061f46326984030 | [
"BSD-3-Clause",
"LGPL-2.1-or-later",
"Apache-2.0",
"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 | 10,311 | py | from __future__ import print_function
from collections import defaultdict, deque
import datetime
import pickle
import time
import torch
import torch.distributed as dist
import errno
import os
class SmoothedValue(object):
"""Track a series of values and provide access to smoothed values over a
window or the... | [
"bryan.guner@gmail.com"
] | bryan.guner@gmail.com |
84cf00e420320db8d06fe270ec7e15349dc4abb0 | 5a5ed42b27b83cadc065a770fdfd7c0e0225ea11 | /infrastructure/local/wait_for_local_stack.py | d678dab1083d0f3b7f56587af37dab9807d065b8 | [] | no_license | codemacs/localstack_terraform_python_lambda_ex | 662e300956d7653636fcb46e45fc7d69bfeb742b | 36ab38744757f606bce29e24c4ce5c7b889ff949 | refs/heads/master | 2022-09-11T13:42:55.616302 | 2020-05-27T01:13:13 | 2020-05-27T01:13:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,424 | py | import os
import requests
from dotenv import load_dotenv
from time import sleep
load_dotenv()
def wait_for_local_stack_services(host, port, services):
status = get_local_stack_status(host, port)
while not are_services_ready(services.split(','), status):
print('Local stack services are not ready, retrying in 3 ... | [
"jacobveal90@gmail.com"
] | jacobveal90@gmail.com |
49bbdb23a2f3d25143f85c0b2ffbbfd9c4688e33 | 8fa2564325ce27ac04f6236b0a7ec65314113b69 | /echarts/python/朴素贝叶斯。词向量/sklearn_sx_demo 改正后.py | bed7526aa00249439491f0562790718da0baf8f9 | [] | no_license | wwyys/echarts | 5ef4aefeebe24ab640f07fc5a1bf830d38b6c5d9 | 5c269706b62b9fd92c40ccc52fd09cf9455c8ba3 | refs/heads/master | 2022-06-20T16:29:38.648090 | 2020-05-08T11:25:23 | 2020-05-08T11:25:23 | 262,302,328 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,582 | py | #coding="utf-8"
import os
import jieba
import pandas
import numpy
from sklearn.feature_extraction.text import TfidfTransformer,CountVectorizer
from sklearn.naive_bayes import MultinomialNB
"""
1、数据集我们已经有了---无----爬虫
2、构建MNB()形参数据类型
3、fit()训练
4、predict(X)未知的X预测
"""
"""
1、数据集我们已经有了---无----爬虫
2、构建MNB()形参数据类型
功能: 数据集我... | [
"2327813233@qq.com"
] | 2327813233@qq.com |
a69e06de247ad3631563edfd5c4b3257cf2749ed | 7c8bff784568691c516833ac81afc967857d24e2 | /jacc/migrations/0019_entrytype_identifier.py | effb3d0f203ab8c4e4ea27554b71aa4fcc456877 | [
"MIT"
] | permissive | kajala/django-jacc | b71f2c3df1321b9bb31e1e648895931b735949a6 | 4acb8ca2d32b11fd5afa3b5316b13be223b20ec6 | refs/heads/develop | 2023-08-18T14:12:38.196880 | 2023-08-11T15:18:57 | 2023-08-11T15:18:57 | 121,229,896 | 11 | 5 | MIT | 2021-07-12T15:02:36 | 2018-02-12T10:02:20 | Python | UTF-8 | Python | false | false | 746 | py | # Generated by Django 2.1.2 on 2018-10-18 15:36
from django.db import migrations, models
from django.db.models import F
def migr_code_to_identifier_0019_entrytype_identifier(apps, schema):
EntryType = apps.get_model("jacc", "EntryType")
EntryType.objects.all().update(identifier=F("code"))
class Migration(m... | [
"kajala@gmail.com"
] | kajala@gmail.com |
e01a13130ccc128e63bdb0486285772b63f84edf | a155780658a6d2c9b4e4adfaf822ba465f8f6be8 | /controller/jellyfish-mods/jf_phoneme.py | 9a4988ea5646229664603c154277d4e59983d701 | [] | no_license | stcybrdgs/NLP-Matching | e77ab6c63281d6d859f9a68be31c8913be20d9e6 | 6b4725e68eb4233844273d3a96b0f36b14ce8e80 | refs/heads/master | 2020-05-25T18:21:55.009741 | 2019-06-13T07:15:47 | 2019-06-13T07:15:47 | 187,928,409 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,168 | py | # -*- coding: utf-8 -*-
"""
Created on Fri May 31 19:15:42 2019
@author: Stacy
jellyfish modules for use with the controller program
"""
import jellyfish
def soundex():
tokens = ['Ball Bearing',
'bll brng',
'Centrifugal',
'centrifigal',
'PUmp',
... | [
"stcybrdgs@gmail.com"
] | stcybrdgs@gmail.com |
d3244e423fcdc57fd0a4c2ee7944be54e8f1e5c2 | 989c310cd676fe3dcf3163d110802052a6be4e45 | /aci_labs/LAB-6.py | 73c5d899df9cbb8e97094bce08e41484ba8bef57 | [] | no_license | pnegron2002/aci_dev | 3dc5813cf7afb7067b154d42fd22ed68ba542e4d | d0501e3346bc19be1d26cbdd2218a64201eaa92e | refs/heads/master | 2020-04-10T22:21:34.299675 | 2018-09-10T04:09:37 | 2018-09-10T04:09:37 | 124,299,862 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,109 | py | #! /usr/bin/env /Users/pnegron/anaconda/envs/Python35/bin/python
# import the neccessary modules
import sys
import requests
import getpass
import simplejson as json
print(sys.version)
# setup the variables used in the script
def Login_ACI():
ip = '192.168.10.1'
username = "admin"
password = getpass.getpa... | [
"pnegron@pauls-mbp-2.home"
] | pnegron@pauls-mbp-2.home |
eaad3f802c87690e95229debd652157688d7f318 | 34e03b02692e677124f217c57f13eec8f8d075f2 | /Python_Data/d9/pred_plot9.py | c1d8ee31272e085d6c9bb5bb1aadf9ced46c5c34 | [] | no_license | dingkwang/DroneLiDAR | 3d81defd7af4d0dae700d77db408979dbba9c8e9 | 8c2f3b82934e2cccd0b799a8db528cc1808a4573 | refs/heads/main | 2023-06-03T00:00:44.625617 | 2021-06-15T14:52:37 | 2021-06-15T14:52:37 | 353,464,189 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,221 | py | import numpy as np
import matplotlib.pyplot as plt
import joblib
from sklearn.metrics import mean_squared_error
def prep(file_name):
gft = (np.genfromtxt(file_name,delimiter=','))[1:, :] # generate from text
gft = gft[~np.isnan(gft).any(axis=1)] # remove nan
return gft
#%%
path = ""
fn1 = 'test1.cs... | [
"wangdk93@outlook.com"
] | wangdk93@outlook.com |
6b3d9e4221301ea07db8eefe6a5341450fc2ac6b | a852baf869d2433488b5c7563004ee95bb561ab5 | /member/models.py | e7e20f08e2d2fa9574d776dd788281ddb2cd9b54 | [] | no_license | jhoncortez/approval | 082568eae4abbdc081e2a2634dd916e3f2f10750 | 18d0107cd68c240c7730c19828bddb3c0b88fb76 | refs/heads/main | 2023-02-05T15:40:06.316318 | 2020-12-20T08:59:58 | 2020-12-20T08:59:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,916 | py | from django.db import models
from datetime import datetime
class User(models.Model):
# personal information
nickname = models.CharField(max_length=30, unique=True)
last_name = models.CharField(max_length=2)
first_name = models.CharField(max_length=3)
# login information
email = models.CharFi... | [
"yejun1060@daum.net"
] | yejun1060@daum.net |
97df8e6ee3b240ee0ccaa29aedf3e30de4fddcb7 | d0c168ea109f87355c012aa44a7f160725368d86 | /Linux/鱼眼项目文件/ubantu-opencv/try/x86ff/gedit/plugins/snippets/library.py | c60695fa41ab5f8fe01484a0a99c5eebd99bec46 | [] | no_license | ShawnOfMisfit/FishEye-Correct | 04838a9b1162035f52e66c80de33d5d6310e0633 | 605475e061bdff3b2f9851f7153d9936feafe578 | refs/heads/master | 2021-01-22T05:42:50.346149 | 2015-03-20T01:57:42 | 2015-03-20T01:57:42 | 47,732,123 | 0 | 4 | null | 2015-12-10T02:17:09 | 2015-12-10T02:17:08 | null | UTF-8 | Python | false | false | 36,227 | py | # Gedit snippets plugin
# Copyright (C) 2005-2006 Jesse van den Kieboom <jesse@icecrew.nl>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
#... | [
"guochunwei@xarkit.com"
] | guochunwei@xarkit.com |
632789f2b0dcf3c03c1d6fd2e945bda51a359db3 | c071eb46184635818e8349ce9c2a78d6c6e460fc | /system/python_stubs/-745935208/cx_Oracle/MessageProperties.py | 641ade26f658f4b7e5bbfa26034ba4823d3e2d0f | [] | no_license | sidbmw/PyCharm-Settings | a71bc594c83829a1522e215155686381b8ac5c6e | 083f9fe945ee5358346e5d86b17130d521d1b954 | refs/heads/master | 2020-04-05T14:24:03.216082 | 2018-12-28T02:29:29 | 2018-12-28T02:29:29 | 156,927,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,375 | py | # encoding: utf-8
# module cx_Oracle
# from C:\Users\siddh\AppData\Local\Programs\Python\Python37\lib\site-packages\cx_Oracle.cp37-win_amd64.pyd
# by generator 1.146
# no doc
# imports
import datetime as __datetime
from .object import object
class MessageProperties(object):
# no doc
def __init__(self, *args... | [
"siddharthnatamai@gmail.com"
] | siddharthnatamai@gmail.com |
801919a9041392d2a230ba8ee57d69d20020fb7b | 1dde336f31cf8ef9124cb69f228b83582344f164 | /haigha/transports/__init__.py | b125ee1e01e504cf0aaa8eaf559475bad3592706 | [
"BSD-3-Clause"
] | permissive | joeyimbasciano/haigha | ed011e646a66fbba6e46beb2d6ead90a972f98bb | 0bd2e1603e54406f674303ab51e47761b91fe50b | refs/heads/master | 2021-01-20T22:50:58.104289 | 2012-12-04T18:52:04 | 2012-12-04T18:52:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 161 | py | '''
Copyright (c) 2011, Agora Games, LLC All rights reserved.
https://github.com/agoragames/haigha/blob/master/LICENSE.txt
'''
from transport import Transport
| [
"aaron.westendorf@gmail.com"
] | aaron.westendorf@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.