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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
dc469d1c8508d7fcdba7a71ff8c53b945b1202e7 | a96333bb48c34d18b7a99b2c724655dbc1fe2dbb | /python/unityagents/brain.py | d2b16d0fcbb9163b2443b38bf6fb7f1bcb926f25 | [
"MIT"
] | permissive | udacity/deep-reinforcement-learning | cdcdbf5e315659d9980866560882930a433b9062 | 561eec3ae8678a23a4557f1a15414a9b076fdfff | refs/heads/master | 2023-07-08T06:33:54.653113 | 2021-12-06T22:42:31 | 2021-12-06T22:42:31 | 140,018,843 | 4,837 | 2,575 | MIT | 2023-06-28T19:36:57 | 2018-07-06T18:36:23 | Jupyter Notebook | UTF-8 | Python | false | false | 2,859 | py | from typing import Dict
class BrainInfo:
def __init__(self, visual_observation, vector_observation, text_observations, memory=None,
reward=None, agents=None, local_done=None,
vector_action=None, text_action=None, max_reached=None):
"""
Describes experience at curr... | [
"alexis.cook@acook-mbp.local"
] | alexis.cook@acook-mbp.local |
d528ca8589f7c3e2e6250446695ec6b52efd26a8 | 30c688a237481cf4e79675809fe3d6f862293644 | /read_data.py | 8d918eecb5385516e5ad89fe6c459fa849161c0a | [] | no_license | trishtzy/cs4242-assignment2 | 38ae92abccd27e9b992e5f88142f68b888974c52 | c0bcc4f67c0623dad41d863f5dad750818399de5 | refs/heads/master | 2021-03-27T12:02:40.172833 | 2017-03-22T00:15:08 | 2017-03-22T00:15:08 | 84,911,445 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,377 | py | import json
import logging
import os.path
from dateutil.parser import parse
import datetime
# create logger
logger = logging.getLogger('main.read_data')
def read_data(path, limit=-1):
"""Given a path to JSON file, load and return contents up to limit items."""
logger.debug("Reading " + path)
if (not os.p... | [
"jonathan@jgiam.com"
] | jonathan@jgiam.com |
6abf44749d4153b914aac2a178ca3a33b570c4e2 | ae051f86e69053302e733283f34e4dff898628c0 | /tests/fixtures/binomial_edge_model_fixtures.py | 5bdaefa53a250eaf54223aeb26c25eb793c6fb72 | [] | no_license | coast-team/abc-shadow | 1ba2f411fc1f65be81a6de797a0080db48b23cc2 | b0fb7d25e885c8908da01ca1bd3c20f269502003 | refs/heads/master | 2020-05-07T13:04:21.475288 | 2019-04-03T13:15:44 | 2019-04-03T13:15:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 191 | py | import pytest
from abc_shadow.model.binomial_edge_graph_model import BinomialEdgeGraphModel
@pytest.fixture
def get_empty_binomial_edge_model(request):
return BinomialEdgeGraphModel(0)
| [
"quentin.laporte-chabasse@inria.fr"
] | quentin.laporte-chabasse@inria.fr |
e26798e9f5defc36614767a02ffd42d319cc24be | 7ec0ce1c455daaa414137b0d1db88eb116dfd2a6 | /yt_concate/pipeline/steps/download_videos.py | a2d172add1e1e4b7a04143442e03615a410b6a35 | [] | no_license | lucaschen0706/yt_concate | f562a3ff607eb7631903f61ad1b669724628d383 | 674816dcff7d79fe12cc6d96afc2a8f5e452d6d7 | refs/heads/main | 2023-06-13T03:53:29.572180 | 2021-07-13T13:07:51 | 2021-07-13T13:07:51 | 382,047,346 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 611 | py | from .step import Step
from pytube import YouTube
from yt_concate.settings import VIDEOS_DIR
class DownloadVideos(Step):
def process(self, data, inputs, utils):
yt_set = set([found.yt for found in data])
print('videos to download=', len(yt_set))
for yt in yt_set:
url = yt.url... | [
"vincent.yeats@gmail.com"
] | vincent.yeats@gmail.com |
98239664e3b9f688468eb75fcbeb94b3f8f3ea24 | 72644f1098f4b6703cdabb66b4aa91d54a911cbe | /src/protocol/protobuf_client.py | 1b446a6bef96243d1614b55c3c19ed43565d226c | [] | no_license | fei-cow/galaxy-integration-steam | 8f762b5ccbfa2bc8b0f929d0d26fd9ab3802ac94 | b638dd39e95647236ed22c493437f300595eb90b | refs/heads/master | 2022-10-08T16:51:40.050633 | 2020-06-09T13:07:19 | 2020-06-09T13:07:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 29,453 | py | import asyncio
import struct
import gzip
import json
import logging
import socket
from itertools import count
from typing import Awaitable, Callable,Dict, Optional, Any
from galaxy.api.errors import UnknownBackendResponse
from typing import List, NamedTuple
from protocol.messages import steammessages_base_pb2, steamme... | [
"friendsofgalaxy@gmail.com"
] | friendsofgalaxy@gmail.com |
761eeaa6e8e18f8112e281af167a7ccbc3748013 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03837/s920938245.py | 3aeb662f91dd2f46bbfdb9f9b7edc7cc0fdcb132 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 650 | py | def warshall_floyd():
for k in range(N):
for i in range(N):
for j in range(N):
d[i][j] = min(d[i][j], d[i][k]+d[k][j])
N, M = map(int, input().split())
d = [[10**18]*N for _ in range(N)]
for i in range(N):
d[i][i] = 0
edges = []
for _ in range(M):
a, b, c = map(in... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
0e5dc5c575994fb9d51f5fd31c55ef92cd32e3f8 | ddadba7ebb64c2f341280728fd50e62369d6251e | /apps/notes_app/models.py | d5bba0cd359c70e4d2e127891182602fdd6e7910 | [] | no_license | LisCoding/Notes-App | 0f630b8229553d6cac278650f5649a9737ce1285 | 21bd8d0177ecf69335ec24e52c49df81f555f7a5 | refs/heads/master | 2021-06-22T10:44:25.755893 | 2017-08-31T19:33:49 | 2017-08-31T19:33:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 330 | py | from __future__ import unicode_literals
from django.db import models
# Create your models here.
class Note(models.Model):
title = models.CharField(max_length=255)
description = models.TextField(default="")
created_at = models.DateTimeField(auto_now_add = True)
updated_at = models.DateTimeField(auto_no... | [
"cardozoliseth@gmail.com"
] | cardozoliseth@gmail.com |
74fc280f27c08e1336a10b2c6a6e61901d2387e1 | cd2ea0b9f0f8e01950ea4dd629a325ef26f914ad | /topics/Trees/BinaryTreeTraversal.py | b180ed30d3f5c5183418e0a9355c08ce008c8282 | [] | no_license | akhandsingh17/assignments | df5f1af44486ffefe1fefcccc643e6818ac1c55d | c89f40dcd7a8067fa78ed95d3fecc36cb1ca7b5d | refs/heads/master | 2023-08-24T18:00:32.938254 | 2021-10-06T06:01:32 | 2021-10-06T06:01:32 | 305,913,409 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,913 | py |
"""
1
/ \
2 3
/ \ / \
4 5 6 7
\
8
"""
class Node:
def __init__(self, val, left=None, right=None):
self.val = val
self.left = left
self.right = right
class BinaryTreeTraversal:
def __init__(self, root):
... | [
"akhans@amazon.com"
] | akhans@amazon.com |
781ee264796e64ff53334b63df8e2b3568dff462 | 7e0393251012e91213dddfd9c93f6b6b73ca2bfe | /cloudnetpy/products/drizzle_error.py | 6ac4ba7a3ba679b8c9adeb0aead54d7fe56fdbce | [
"MIT"
] | permissive | josephhardinee/cloudnetpy | ff4cc0303d7f2ae40f2d3466298257659ff3ccde | c37760db3cdfe62ae769f8090ba621803ec9a92c | refs/heads/master | 2021-03-06T15:37:51.529776 | 2020-02-13T09:05:29 | 2020-02-13T09:05:29 | 246,207,849 | 0 | 0 | MIT | 2020-03-10T04:29:48 | 2020-03-10T04:26:16 | null | UTF-8 | Python | false | false | 5,294 | py | import numpy as np
import numpy.ma as ma
import cloudnetpy.utils as utils
def _get_drizzle_indices(diameter):
return {'drizzle': diameter > 0,
'small': np.logical_and(diameter <= 1e-4, diameter > 1e-5),
'tiny': np.logical_and(diameter <= 1e-5, diameter > 0)}
def _read_input_uncertainty(c... | [
"simo.tukiainen@fmi.fi"
] | simo.tukiainen@fmi.fi |
22dfaba28c59c06bab37c8db0df174e75f3bf706 | bd9278423bb215dcdbf9f56a948210db044bdba2 | /tests/test_01_main/test_env_vars_1.py | 501ad06fecc21417b497a0cafa4e66f9cbcc5426 | [
"MIT"
] | permissive | dungnv2602/uvicorn-gunicorn-docker | 77fd5e0d07a94c7acc0876a773e6b1262619fb6d | 37dbc188e555c22cf9b2dd0f3f6ab3e122e32c24 | refs/heads/master | 2020-04-26T16:40:32.749609 | 2019-02-08T10:44:24 | 2019-02-08T10:44:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,250 | py | import time
import pytest
import requests
import docker
from ..utils import CONTAINER_NAME, get_config, get_logs, remove_previous_container
client = docker.from_env()
def verify_container(container, response_text):
config_data = get_config(container)
assert config_data["workers_per_core"] == 1
assert ... | [
"tiangolo@gmail.com"
] | tiangolo@gmail.com |
dd21ece637d6fcb68d7c8ef62c5fb3fc672fce85 | 20d4e820eb6eda5c9cdac2701855f449a4172973 | /mf5f.py | 6c82f4b480892fb2f5e66f2d647f189c2e45d244 | [] | no_license | ikoblyk/rozrahachysl | fa1d02b5a7c30d3b239e202b7281348abbd9fdf1 | 136c6514fc53129552f6f7457eddcc5467c87e86 | refs/heads/master | 2020-08-29T19:01:55.595896 | 2019-12-13T09:35:36 | 2019-12-13T09:35:36 | 218,139,683 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 178 | py | import matplotlib.pyplot as plt
from rozraha import hlp, x
plt.plot(x, hlp["mf5f"])
plt.title(" Медіанне послідовне згладжування W = 5")
plt.show() | [
"ivankob.16@gmail.com"
] | ivankob.16@gmail.com |
9ff8ce9fa14d395632167561ea0ce130191169e5 | 0c71da2a9d9c3b03aff74c60c9d9f572650ff6ac | /semTracker/exams.py | 6cb5ca4e22b7d92794a2202b3f0cdf5b3648d30e | [] | no_license | ach0309/SemesterTracker | d772a0a099d87be18485679910ac27d340cca866 | ff8b8f953415164588acfae5a5c8681cf0d62bb2 | refs/heads/master | 2022-12-19T00:19:36.807543 | 2020-09-25T02:28:08 | 2020-09-25T02:28:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 394 | py | class Exam:
def __init__(self, num, grade):
self.num = num
self.grade = grade
def assignInfo(self):
a_info = "Exam #" + str(self.num) + ": " + str(self.grade) + "%"
return a_info
def __str__(self):
return str(self.grade)
def toPercent(self, score, total):
... | [
"noreply@github.com"
] | noreply@github.com |
99cd3f6155cd78ae7249f084ee1a75a0331c43b9 | ef04e901ca46c865e8ea9f542429e8512efb3121 | /2020/M3/Transformadas/color.py | bc679e42f0486705c6b381b5ef455aa0ab76456f | [] | no_license | osoriodiego-utp/UTP-Grafica | 201790c76e26051da02713a41ae95cc12ca63ce9 | c26c99b971d12418809f0976f6b02464cecc9765 | refs/heads/master | 2023-01-24T04:47:27.367899 | 2020-12-08T06:16:44 | 2020-12-08T06:16:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,658 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# https://www.cerotec.net/tabla-colores-web/
#
# To use: from color import *
class color(object):
#ROJOS
rojo_indio = 205, 92, 205
cordal_suave = 240, 128, 128
salmon = 250, 128, 114
salmon_oscuro = 233, 150, 122
salmon_suave = 255, 160, 122
carmesi = 220, 20, 60
... | [
"dieferosorio@utp.edu.co"
] | dieferosorio@utp.edu.co |
5464413b2090c582e1fca7a4a5a3f513bfdd7f6e | 1f4e17c2cc2ef2cbb74bb8b5ce7dd93933529e0a | /script.py | d9ee6fd47f0dcd7b07c8162c20571b9d533f881f | [] | no_license | rohitkumar003/reader-mediacenterjs | cde5bfcc1550559b67ebdd46290fff0c93376e6d | eb2117d4c5bbf02940eb9c0df10f741661b4a126 | refs/heads/master | 2021-05-16T03:02:26.800532 | 2019-03-04T12:09:20 | 2019-03-04T12:09:20 | 42,649,516 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,976 | py | import subprocess
import sys
import re
import os
import zipfile
import time
import datetime
import shutil
# check if wiki folder exists, if yes then delete existing folder
_MAX_COUNT=5
_GREETING ="Welcome,\n"
_folder = "reader-mediacenterjs.wiki"
_commit = str(subprocess.check_output(['git', 'rev-parse', '--short', 'H... | [
"rohit.kumar.003@gmail.com"
] | rohit.kumar.003@gmail.com |
a2fff788a3bf339242af472e231ea2e64b740a53 | adea9fc9697f5201f4cb215571025b0493e96b25 | /napalm_yang/models/openconfig/network_instances/network_instance/protocols/protocol/ospfv2/areas/__init__.py | ec0be8d4e67f577dc03415c82b56d94adae2a930 | [
"Apache-2.0"
] | permissive | andyjsharp/napalm-yang | d8a8b51896ef7c6490f011fe265db46f63f54248 | ef80ebbfb50e188f09486380c88b058db673c896 | refs/heads/develop | 2021-09-09T02:09:36.151629 | 2018-03-08T22:44:04 | 2018-03-08T22:44:04 | 114,273,455 | 0 | 0 | null | 2018-03-08T22:44:05 | 2017-12-14T16:33:35 | Python | UTF-8 | Python | false | false | 10,450 | py |
from operator import attrgetter
from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType
from pyangbind.lib.yangtypes import RestrictedClassType
from pyangbind.lib.yangtypes import TypedListType
from pyangbind.lib.yangtypes import YANGBool
from pyangbind.lib.yangtypes import YANGListType
from pyangbind.lib.y... | [
"dbarrosop@dravetech.com"
] | dbarrosop@dravetech.com |
57eede34af20d7d21322bba65367464d13a27175 | 1ed3a78f37d97d6b3fdfbe1777190c1e94d7d967 | /2-Arrays/CyclicRotation.py | d5ee1604be937e5f7cefc8ad7ac16a80953f1e1c | [] | no_license | tarsioonofrio/codility | 154f4711abc52a865f0e5167d2bb4e5675da0ecd | 51aa3e937715dcab6658ba774a5690dc5ffa0539 | refs/heads/master | 2021-05-20T11:57:11.692568 | 2020-04-05T20:15:01 | 2020-04-05T20:15:01 | 252,285,380 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 195 | py | # you can write to stdout for debugging purposes, e.g.
# print("this is a debug message")
from collections import deque
def solution(A, K):
d = deque(A)
d.rotate(K)
return list(d)
| [
"5504075+tarsioonofrio@users.noreply.github.com"
] | 5504075+tarsioonofrio@users.noreply.github.com |
0ad1426d1e43e8323cd4178c8c0dcebb7e9b9290 | fa38b704f9faf3889a4a35c6edce82be2e9b0274 | /Practice_Query/apps.py | be35856f927e72567c0382dbb335f702d2f40ebb | [] | no_license | Efrana/Django_Practice | 4a4bc0f5016eb6fda94f5184a1bfbf7cc6db757b | 864e4cb80b90b59deeeb7fd9a30f8af82d58658a | refs/heads/master | 2022-11-22T00:30:11.809382 | 2020-06-08T18:13:31 | 2020-06-08T18:13:31 | 270,774,361 | 0 | 1 | null | 2020-07-19T20:01:32 | 2020-06-08T18:09:45 | Python | UTF-8 | Python | false | false | 102 | py | from django.apps import AppConfig
class PracticeQueryConfig(AppConfig):
name = 'Practice_Query'
| [
"efrana.jannat@gmail.com"
] | efrana.jannat@gmail.com |
549ad18aa00c73644e90458a3ec9cbf3fd9e36bb | e34112cf8e4cfccde629a1adec2be4ad2813063a | /while_practice.py | 47c2c1cb8e30b205a090e30df78932de445addf3 | [] | no_license | Limitlessmatrix/automation_scripts | ff64476108651b111a4dbc96207641702c7c8bae | a74c86f570629e4b680413f0ea6fc0916b51a880 | refs/heads/master | 2023-01-24T05:18:04.468908 | 2020-12-07T23:56:39 | 2020-12-07T23:56:39 | 309,514,041 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 754 | py | #This will be a practice of while loops trying to use them in real world problems.
#
def average(number_1, number_2, total):
return ((int(number_1) + int(number_2)) / total)
average(2, 4543, 2)
#better way to get averages
#take into consideration lists of numbers, and dictionaries
#Any other common data types you... | [
"28797311+Limitlessmatrix@users.noreply.github.com"
] | 28797311+Limitlessmatrix@users.noreply.github.com |
c2302fb7a4bd45a0e4b8917ab1a33fee00843b50 | 3d4f77a5c849e3eeeee311982956353890bcdb85 | /modules/utilities.py | 7b60179f8b21afecb18beab58e3e7c7c1f825bf4 | [] | no_license | symbolix/unimogFlags | 7c789dc60c92ea70819b80ce0571dc374312dfd0 | c4e23079912c8c2daec6642b79b452d8b5cbaee3 | refs/heads/master | 2022-11-14T12:07:54.997418 | 2020-07-03T13:03:20 | 2020-07-03T13:03:20 | 276,893,562 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,748 | py | #!/usr/bin/env python2.7
# ;-----------------------------------------------------------------------------------------------
# ; {UNIMOG} Integrated Pipeline Tools
# ;
# ; Name : pathconfig.utilities
# ; Author : Muhittin Bilginer
# ; Created : 15/06/2014
# ;
# ; Info : Main functions and classes used by the unim... | [
"muhittin.bilginer@gmail.com"
] | muhittin.bilginer@gmail.com |
5376d99a9743087c70df34ecdf6874d4028d72f6 | 9309b05ab53e89d888ee66d9a4225b6677b70fcf | /myPackage/test_Login.py | 5e03efdcbcad188dbfb4bac2ea918b5aab5fe045 | [] | no_license | jmonfu/python-selenium | 2109a1249f35ed37ee5e44d118b7407b0b26d0d4 | 4c939a6b557902a245598875d20e2bad823666a5 | refs/heads/master | 2022-06-05T08:12:00.070585 | 2020-05-05T11:10:28 | 2020-05-05T11:10:28 | 254,823,091 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 410 | py | import pytest
@pytest.yield_fixture
def setup():
print("Open URL to loging")
yield
print("Close brower window after login")
def test_LoginByEmail(setup): # we have to pass the testFixture ("setup") for it to run before
print("this is login by Email")
def test_LoginByFacebook(setup): # we have to p... | [
"jmonfu@gmail.com"
] | jmonfu@gmail.com |
03e810adfd8d18831b646c8bd14755a5cc94b5e4 | 05a1e42b39adfc6f7362a0f184c78694f62c87e8 | /Lib/Lib_mk.py | d41c008dae0f4bfc54231a749d7b6b0270905a1c | [] | no_license | ericsonj/stm32f4disco | 057bcddb7e0efdc1e31f12fcfdae9bd808070ed1 | 6f662b9e92a15a06d3c5e5af689da42734102bba | refs/heads/master | 2021-02-11T05:24:03.691386 | 2020-03-19T19:10:31 | 2020-03-19T19:10:31 | 244,458,918 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 140 | py | from pybuild import preutil
def getSrcs(wk):
return preutil.getAllSrcs_C(wk)
def getIncs(wk):
return preutil.getAllIncs_C(wk)
| [
"eric.surix@gmail.com"
] | eric.surix@gmail.com |
28ceb33af35360d9b276b8efca25afef25de25cf | d7b2990f8021de9fbd58067b3fc55073d56bd2e8 | /dbscriptcmd.py | 7dbb631ee6e1ca6a1c273c0d910c9a59fff9ea27 | [] | no_license | Harrywekesa/Sqlite-database | a941a740ff10451efee7eb2ee11ee7d724b7356d | 05d63d54e86afb25b30732066956148b0e8365c3 | refs/heads/master | 2023-06-15T01:26:43.150021 | 2021-07-09T06:51:12 | 2021-07-09T06:51:12 | 384,018,137 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 409 | py | import sqlite3
with sqlite3.connect("script.db") as conn:
c = conn.cursor()
c.executescript(""" DROP TABLE IF EXISTS people;
CREATE TABLE people(First_name TEXT, Last_name TEXT, Age INT);
INSERT INTO people VALUES ('Harrison', 'Wekesa',22);
""")
#Exe... | [
"harrisonwekesa09@gmail.com"
] | harrisonwekesa09@gmail.com |
3462968cf9b4b4edf17691f19caaff12ffe80c11 | a0227e40844d6bbe49b7a07abcc86d365726a2d2 | /HARD_WAY/ex21.py | f3f48149f296838750e11cc24d71e3aa1c2ae9f1 | [] | no_license | vicwuht/pl-hd | d32364f9938890ecd45d784b974331a2c571c326 | e7ada01ddd18ff6364e26a4adafc2afa78a49b82 | refs/heads/master | 2021-06-05T12:28:51.803561 | 2020-05-08T15:38:19 | 2020-05-08T15:38:19 | 146,396,843 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 644 | py | def add(a, b):
print(f"ADDING {a} + {b}")
return a + b
def subtract(a, b):
print(f"SUBTRACTING {a} - {b}")
return a - b
def multiply(a, b):
print(f"MULTIPLYING {a} * {b}")
return a * b
def divide(a, b):
print(f"DIVIDING {a} / {b}")
return a / b
print("Let's do some math with just fun... | [
"w80u10@163.com"
] | w80u10@163.com |
b59003f3e2b5df92d5bab1bb713ce93a09de5ad7 | 2d010b06a2782d4fdf049fa77d6013dd2dae74be | /test.py | 601482f12f374e04129cb76d08a49b1ec01d9403 | [] | no_license | iscc7/Sound-Shaper | bba88d722e160e07f574c3addf9dbc4a71fb690c | abe6ebf6da653e2410e3dd41f511492719fafb59 | refs/heads/main | 2023-08-28T01:32:28.617605 | 2021-11-09T05:26:40 | 2021-11-09T05:26:40 | 421,006,044 | 0 | 0 | null | 2021-11-07T06:41:51 | 2021-10-25T12:02:23 | Python | UTF-8 | Python | false | false | 576 | py | from B_Spline import BSpline
from point import PointData
from matplotlib import pyplot as plt
from mysound import sound
pp = PointData()
pp.setStart(1.0)
pp.setEnd(2.0)
pp.setAnchors(0, 0.2, 2)
pp.setAnchors(1, 0.3, -1)
pp.setAnchors(2, 0.35, 6)
pp.setAnchors(3, 0.5, 4)
pp.setAnchors(4, 0.6, 0)
pp.insert(... | [
"noreply@github.com"
] | noreply@github.com |
63bb40b826c619b0273e46af14ccebeecc73b328 | 87b910161ac0cdfec9897c10a29c561be63d6b09 | /venv/Scripts/pip3.7-script.py | 9067f2a65ad64a1726c591235ebe70495a9d093d | [] | no_license | MISO4204-201910/SISRED-Backend | b34442e63f274b80adf709e539b73137bbcc3915 | c8c2a4c30a1182ca3402e353487acc218425453b | refs/heads/master | 2020-05-19T02:54:22.012925 | 2019-04-26T01:41:06 | 2019-04-26T01:41:06 | 184,790,022 | 0 | 1 | null | 2019-05-03T16:48:42 | 2019-05-03T16:48:41 | null | UTF-8 | Python | false | false | 424 | py | #!C:\Users\usuario\proyecturgent\SISRED-Backend\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip3.7'
__requires__ = 'pip==10.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', ... | [
"jsalas2345@hotmail.com"
] | jsalas2345@hotmail.com |
2361663e1f1b4688bb3223866e011d1c585c2c09 | e62c5b4870d492efe8bd519fda0cc75c5bb0468a | /balance.py | 5eb2bfdd16ad2f6b54a0f0ac70252a21f63b74a8 | [] | no_license | coyote963/bmserver | 0298ead4e333cb4ba29e854d20f48307af8f2db1 | ab7e803c1aa18290ab2f47f74f91886448d50f56 | refs/heads/master | 2020-12-30T18:02:06.413282 | 2018-11-28T00:48:11 | 2018-11-28T00:48:11 | 90,938,998 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,435 | py | from collections import deque
from matchupdb import read_and_write
from databaseaccesslayer import find_player, player_rating, add_player, matchupdate
def request_balance(packet,socket, **kwargs):
if packet['option'] == "Chat":
if "!balance" in packet['content']:
conn = kwargs['dbcursor']
bmstream = kwargs['b... | [
"coyoteandbird@gmail.com"
] | coyoteandbird@gmail.com |
1602340190e28cb47ee3c4a8aa11ec9b668431a0 | ed5a082d977aefcecc8c40c76046d26334615a8e | /contest/abc/abc147/a.py | a0322ac34844aa2ebbc0d19eb0d875a19fe8e7e9 | [] | no_license | arakoma/competitive_programming | 0ff9b9a97d2f37a3a1dac96c157f3235dde96b85 | ebbc5621860aca320a6949433f1707f1cbfcf911 | refs/heads/master | 2021-08-07T10:50:08.890353 | 2021-07-10T14:10:15 | 2021-07-10T14:10:15 | 223,712,828 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 97 | py | a = list(map(int, input().split()))
if sum(a) >= 22:
print("bust")
else:
print("win") | [
"arakoma555@gmail.com"
] | arakoma555@gmail.com |
8974aa621afe23e3e269301bbe46c506e89b65d6 | cca08359eb4f5f3528ee593c0aaf151226a4e070 | /model.py | 3cdbac65b1b48110f92f6031b9cf50cbd7258e03 | [] | no_license | indussky8/LisGAN | 16e7cdac6ac3eb1aea070a101fef3895e45bd896 | 54d9e250a922936ec88a6e272500c706a8796353 | refs/heads/master | 2020-05-25T17:13:34.137957 | 2019-05-24T17:52:56 | 2019-05-24T17:52:56 | 187,904,609 | 1 | 0 | null | 2019-05-21T19:56:49 | 2019-05-21T19:56:48 | null | UTF-8 | Python | false | false | 9,344 | py | import torch.nn as nn
import torch
def weights_init(m):
classname = m.__class__.__name__
if classname.find('Linear') != -1:
m.weight.data.normal_(0.0, 0.02)
m.bias.data.fill_(0)
elif classname.find('BatchNorm') != -1:
m.weight.data.normal_(1.0, 0.02)
m.bias.data.fill_(0)
cl... | [
"noreply@github.com"
] | noreply@github.com |
0020b9b9b399b772a1554cd04d96f72050d68d34 | 41cc033f82ce2b134cfeb71bbea2e5a369b1ba5d | /vise/analyzer/dos_plotter.py | 415b848af07e3986d22b4b100f92b1c192a80baf | [] | no_license | takahashi-akira-36m/vise_test | 0fad2087b5503d40592af7b769069b641ab3b821 | e96f9ac914b023b330a26a43610a4b331af36ade | refs/heads/master | 2023-01-07T16:16:53.770431 | 2019-12-17T02:49:51 | 2019-12-17T02:49:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,512 | py | # -*- coding: utf-8 -*-
from collections import OrderedDict, defaultdict
import numpy as np
from atomate.utils.utils import get_logger
from pymatgen.electronic_structure.core import Spin
from pymatgen.electronic_structure.dos import Dos
from pymatgen.electronic_structure.dos import add_densities
from pymatgen.electro... | [
"yuuukuma@gmail.com"
] | yuuukuma@gmail.com |
b4dbf4f6ea8e581805b29d6a2b0247bb430e5d74 | 38afaa5e36ccfea634bf9e5afc1fb6dc8bd12dfe | /accu_2.py | f56413e883c43be9d1d5a06750a18b5c8ef0411b | [] | no_license | alpintrekker/instrumentation-tools | 81eef5c26b7d3f3c762bc8d65431e6b1752d2ee5 | de5e2882c6d13858954de159602f1d2868f63106 | refs/heads/master | 2021-01-11T02:17:21.342346 | 2017-08-26T06:18:41 | 2017-08-26T06:18:41 | 70,984,037 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,298 | py | from Adafruit_BBIO.SPI import SPI
import struct
import time
spi = SPI(0,0)
spi.mode = 1
spi.msh = 300000
spi.xfer([0b00011000, 0x02])
def decode_sent_command(ser_cmd):
cmd_bits = (ser_cmd & (((1<<6) - 1)<<10))>>10
data_bits = ser_cmd & ((1<<10)-1)
return bin(cmd_bits)[2:], data_bits
def... | [
"alpintrekker@gmail.com"
] | alpintrekker@gmail.com |
aa67f88b1322ed5544f212745020fa13656c378b | 6f645a5aadda643948b543fbb86e82710918d5e4 | /imgmeta/migrations/0001_initial.py | 2c9952c1cfe391e0a510c43716bd279f86c485c8 | [] | no_license | Abdul-Marzouq/Cloud-Computing-Assignment-2 | 5d0fae4684e9a5e702d0f2dbff430924d329f9d6 | 3cf08dbd22ac96a107f091f39f5ff47391acf0d8 | refs/heads/master | 2023-01-14T12:16:17.737380 | 2020-11-19T10:12:45 | 2020-11-19T10:12:45 | 311,052,363 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 506 | py | # Generated by Django 3.1.3 on 2020-11-07 15:51
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='ImageSet',
fields=[
('id', models.AutoField... | [
"abdulmarzouq@gmail.com"
] | abdulmarzouq@gmail.com |
dc440447ca5ed59e3783bde48e4899e3be8df4c9 | ef18630909cb771f169e1f0f3aa6fbb7818c7bcd | /play_digits.py | b800343bb337d9e81a8d49f5cb7741fddb8513d1 | [] | no_license | nickbonne/code_wars_solutions | b656ac63803c2777c2c998223997d173da701827 | 8caa9078241773eb91c4b7cb05def259695f7cb6 | refs/heads/master | 2021-01-20T09:13:25.258497 | 2017-09-01T00:17:37 | 2017-09-01T00:17:37 | 101,582,134 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 353 | py |
# https://www.codewars.com/kata/playing-with-digits/train/python
def dig_pow(n, p):
result = zip(
[int(x) for x in str(n)],
[x for x in range(p, p + (len(str(n))))]
)
result = sum([x[0] **x[1] for x in list(result)])
if result % n == 0:
return int(result / n... | [
"nickbonne@gmail.com"
] | nickbonne@gmail.com |
0021c7e9e93f3bb30c1d2f4511b9a15aee101958 | a00c487d88c50401ebf8505cd267c70b42e3c362 | /bangla/soup/MSR.py | 9c488a0e43064bf12f84eebfbeb665415f8376dd | [] | no_license | sharif1302042/A-news-Agrregation-system | 9aca07ed29f13b5da8e93a2aabe03281d6b66365 | 5e48a726f5fedba686d18601d561784c6ceddd5a | refs/heads/master | 2020-04-01T11:00:39.088387 | 2019-11-09T15:05:24 | 2019-11-09T15:05:24 | 153,142,416 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 936 | py | import requests
from bs4 import BeautifulSoup
news=[]
r=requests.get('https://bangla.bdnews24.com/politics/')
soup = BeautifulSoup(r.text, 'html.parser')
r1=soup.find_all('li',attrs={'class':'article first '})
r2=soup.find_all('li',attrs={'class':'article '})
l=0
for r in r1+r2:
if l<10:
txt=r.find('a')['href']
... | [
"sharifulcsehstu@gmail.com"
] | sharifulcsehstu@gmail.com |
087e92e25d5452f986b22430ce4fffefb538f075 | 0b49c40162e15b5e0c551e548d865c4105e8df7d | /koopmanInvertedPendulum.py | 23a2317318f8c0da4234581463207c14b2bd54f1 | [] | no_license | jiemingChen/DeepKoopman | 654a47922e4d7d6161c032a5e7ac7374d6999917 | 2e6ce8218c0bf5b7bcb072a6983a8f6870ec6186 | refs/heads/master | 2023-03-27T22:39:24.992333 | 2020-09-28T23:11:40 | 2020-09-28T23:11:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,539 | py | import numpy as np
import torch
import torch.nn as nn
import gym
from torch.utils.data import Dataset, DataLoader
import control
import os
from ReplayBuffer import ReplayBuffer
import time
import argparse
parser = argparse.ArgumentParser()
parser.add_argument("--env_name", default='InvertedPendulum-v2')
parser.add_arg... | [
"csj15thu@gmail.com"
] | csj15thu@gmail.com |
fa9510bc5a544b208da9c4746353e04ee9eb0bab | aa9718aa4c13bc681e4a92b68f5dfa53ae528812 | /bert_multilabel/src/extract_reviews_text.py | 77b62ed3ca15b2439698f17519497d8faf647710 | [] | no_license | pj0616/med_project | 58a356929b978108c6027637b8e0e5edd452c3b4 | c91d38d46670c28c264ddc3c7acc43d9f5c30ef6 | refs/heads/master | 2022-12-31T08:03:01.369370 | 2020-10-20T09:08:53 | 2020-10-20T09:08:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 508 | py | import os
import pandas as pd
def main():
input_csv_path = r"../otzovik_csvs/fold_4/dev.csv"
output_dir = r'../otzovik_csvs_texts/fold_4'
if not os.path.exists(output_dir):
os.makedirs(output_dir)
output_fname = 'dev.csv'
output_path = os.path.join(output_dir, output_fname)
reviews_df... | [
"an@clab"
] | an@clab |
94edf1ad6adc7d8a3551c8b9103bf294c8afc731 | cd23b0457bc02a60b89f1f52783e56cc36d85b5e | /oop/getitem.py | 1bff5722f8bb3e1db032216968dc42463cf0a724 | [] | no_license | cluo/learingPython | 65c7068613e1a2ae0178e23770503043d9278c45 | 54609288e489047d4dd1dead5ac142f490905f0e | refs/heads/master | 2020-04-01T13:04:15.981758 | 2015-02-23T13:21:31 | 2015-02-23T13:21:31 | 28,440,969 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | #!/usr/bin/evn python
#-*- coding:utf-8 -*-
__author__ = 'admin'
class Indexer:
def __getitem__(self, index):
return index ** 2
X = Indexer()
print X[2]
for i in range(5):
print(X[i])
class stepper:
def __getitem__(self, i):
return self.data[i]
X = stepper()
X.data = 'spam'
for item in X:
print(item)
pri... | [
"luosheng@meizu.com"
] | luosheng@meizu.com |
02e1e7d5169dd69414260d0b35f9c75724cc9356 | 5138e7812d7f12bdaf4c9ce345053adcc6b9bbfa | /tests/enc_dec.py | 5eceea53b2be77e3c9abddb70295063cee905dda | [] | no_license | Vovchik22/consensus-mvp | a01e049cedae5173e16dc94d6c5cf8ba6977c58d | 838413ad4ac70779ac936ddae9aeaa164cac8751 | refs/heads/master | 2020-03-18T20:08:37.534815 | 2018-05-28T18:24:22 | 2018-05-28T18:24:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 417 | py | import unittest
from Crypto.Hash import SHA256
from crypto.enc_random import enc_part_random
from crypto.dec_part_random import dec_part_random
class EncDec(unittest.TestCase):
def test_enc_dec(self):
era_hash = SHA256.new(b"323423").digest()
enc_data, key = enc_part_random(era_hash)
res_... | [
"sobol@pandora.foundation"
] | sobol@pandora.foundation |
9114d28401f59341504be6dbb5130626b1a0ad14 | 58411693590a261ea381bb02c39cfb3367fb4efd | /data-science/code.py | 551f4d6785e3a6bfd6db39feb151d482c2592226 | [
"MIT"
] | permissive | rickchaki/greyatom-python-for-data-science | d64440d0e26f47213c086e0e6d03ff72804f5393 | b48b9aa464ace23f113eed9212ec1e9e54682039 | refs/heads/master | 2022-10-04T00:22:45.985613 | 2020-06-03T20:09:51 | 2020-06-03T20:09:51 | 265,033,947 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 816 | py | # --------------
class_1= ['Geoffrey Hinton','Andrew Ng','Sebastian Raschka','Yoshua Bengio']
class_2= ['Hilary Mason','Carla Gentry','Corinna Cortes']
new_class= class_1+class_2
print(new_class)
new_class.pop(-2)
print(new_class)
courses= {'Math':65, 'English':70, 'History':80, 'French': 70, 'Science':60 }
prin... | [
"rickchaki@users.noreply.github.com"
] | rickchaki@users.noreply.github.com |
d75b6eaedc8a46d16734caaf66860a360d6f0ae2 | 2ad31d0b8e97b95a6fe144a31362af33a1b1c241 | /matplot_learn/python1.py | 9ba4ebd1969807577f501128abd130be37ae2ab9 | [] | no_license | inh3rit/python-learn | 55150eac2b3cd7a7531e5b0f155813eb6544cdd8 | 588ccb9d4ff9b02bbd4a73fad8453b6baf73e287 | refs/heads/master | 2020-03-22T05:07:05.451142 | 2018-07-06T09:32:44 | 2018-07-06T09:32:44 | 139,543,363 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,042 | py | import matplotlib.pyplot as plt
import numpy as np
x = np.linspace(-3, 3, 50)
y1 = 2 * x + 1
y2 = x ** 2
plt.figure()
plt.plot(x, y1)
plt.figure(num=3, figsize=(8, 5))
plt.plot(x, y2)
plt.plot(x, y1, color='red', linewidth=1, linestyle='--')
# 设置坐标轴信息
plt.xlim((-1, 2))
plt.ylim((-2, 3))
plt.xlabel('I am x')
plt.yla... | [
"391552129@qq.com"
] | 391552129@qq.com |
a1fe20bffdbcd11119758a66cf427cc742d31d68 | fd37bab7db9214267e16e39a177704c421528c20 | /bin/django-admin.py | 55da2438cb2340b1344396138b1d50d981398b23 | [] | no_license | alener/DRFsupervideoblog | 463290b004a780dadc788a43edf7d32f65160218 | 9d8db06631482809a679a5983eed475dbea25329 | refs/heads/master | 2020-03-12T07:26:36.615507 | 2018-04-21T19:35:41 | 2018-04-21T19:35:41 | 130,506,520 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 157 | py | #!/home/alejandro/develop/drfvideoblog/bin/python3
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| [
"alener014@gmail.com"
] | alener014@gmail.com |
5cd8abaa9b036a76810c148b3a3f6234245542b2 | 520c10912b21f5896e816bad3ce2564819540f3a | /myenv/bin/pip | 8bc5cd0b2fa290243926b856e42aa5f4a452cc65 | [] | no_license | ppatel089/Data-Science-Programming | 6dad499f5bb0b7be3b23a3b999e4841aa6c1ea8c | 063e0ed3c40f7d0b2a144577f83009b4445f1bb9 | refs/heads/master | 2020-08-02T18:06:45.648737 | 2020-05-18T03:04:49 | 2020-05-18T03:04:49 | 211,457,987 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 262 | #!/Users/pushparajpatel/Desktop/my_project/myenv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal.cli.main import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"pushparajpatel@USF-Gold-Wifi-226-42-173.laptops.usf.edu"
] | pushparajpatel@USF-Gold-Wifi-226-42-173.laptops.usf.edu | |
0b7cad063afdb90a3656d3eb37125ab5c852f506 | 32f5bc330388a96877d93fdd7b21599a40735400 | /Python/SquarePen.py | 844df86ed40e67e7ec69d299a7a585ccec90860e | [] | no_license | alexlwn123/kattis | 670180d86f0863328a16e12ed937c2fefb3226a2 | c1163bae3fdaf95c1087b216c48e7e19059d3d38 | refs/heads/master | 2021-06-21T16:26:15.642449 | 2020-12-24T20:59:10 | 2020-12-24T20:59:10 | 152,286,208 | 1 | 1 | null | 2018-10-14T22:40:09 | 2018-10-09T16:40:48 | Java | UTF-8 | Python | false | false | 121 | py | import sys
def main():
x = int(sys.stdin.readline())
x = (x ** .5)
print(x * 4)
if __name__ == '__main__':
main() | [
"noreply@github.com"
] | noreply@github.com |
6644164ede3bfce872418798918055de3aa91b59 | 67cd873fccf91876d6e65143a9a54acc6e42aed5 | /daily_produce.py | 512b335ab257ffd08c5446313f50d52bc177fa79 | [] | no_license | liuronghu/daily_paper | 708a2cadb0184e094200dc8132fe5afc3178e23f | 743b87e2a5b699f5aa47af5d52345216c4dd42df | refs/heads/master | 2020-07-11T00:54:13.540488 | 2019-08-26T06:47:42 | 2019-08-26T06:47:42 | 204,413,408 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 639 | py | # -*- coding: utf-8 -*-
import pandas as pd
start_date = '28/6/2019'
end_date = '31/7/2019'
target_file = 'daily_file'
source_file = 'daily_template.conf'
source_data = open(source_file, 'rt',encoding='UTF-8').read()
target_data = open(target_file, 'wt',encoding='UTF-8')
date_value = pd.date_range(start_date, end_date... | [
"1281761019@qq.com"
] | 1281761019@qq.com |
39adc6a32c3415477cdde9e47ee24a48124dc2b7 | a24d48fb972556704ba5d062db68c9d1a9125dfb | /aws/app/app.py | 805304b9cb9ab27ac462e41c48ee527d8e9075c0 | [
"MIT"
] | permissive | and-alejandro-arnes/hashicorp-waypoint-demo | 6872fa77f1342b2cc212d286d7997f3f1c51567b | 866ec4e9c5056c7cb606363c436736364b71e565 | refs/heads/main | 2023-06-16T15:11:28.909200 | 2021-07-13T19:50:40 | 2021-07-13T19:50:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 352 | py | #!/usr/bin/env python3
from flask import Flask, render_template
app = Flask(__name__)
@app.route('/')
def index():
return render_template('index.html')
@app.route('/health')
def health_check():
return json.dumps({'success':True}), 200, {'ContentType':'application/json'}
if __name__ == '__main__':
app.... | [
"mannypotter@hotmail.com"
] | mannypotter@hotmail.com |
5102a13c1af192205b49132a170a820a1c33ee47 | a799a105ab2aba39a475bf2ce086405def0351c2 | /test/model/tpp/common.py | 4fd78b174d605ac5736f5e09c8c9e575b42dfa7b | [
"Apache-2.0"
] | permissive | mbohlkeschneider/gluon-ts | d663750d13798624eca5c9d6f12a87e321ce7334 | df4256b0e67120db555c109a1bf6cfa2b3bd3cd8 | refs/heads/master | 2021-11-24T06:09:49.905352 | 2021-10-14T09:30:38 | 2021-10-14T09:30:38 | 192,546,557 | 54 | 10 | Apache-2.0 | 2022-08-31T18:36:44 | 2019-06-18T13:33:36 | Python | UTF-8 | Python | false | false | 2,364 | py | # Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License").
# You may not use this file except in compliance with the License.
# A copy of the License is located at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# or in the "license... | [
"noreply@github.com"
] | noreply@github.com |
5ef248535b30a5327699b7adcb88931292401005 | 83eb5e9459776bb82a9a785be70c5346677ae239 | /PyMeetings.py | 678b5ed63551df06737f1a83209aaa99868d96c9 | [] | no_license | Einlanzerous/PyMeetings | d964f1e1f0393114c3e0484fb025e0820926330b | be690d3da27c8f4bcc562c16ef22ff8f5426f0be | refs/heads/master | 2021-01-19T07:40:26.579190 | 2017-08-17T20:28:50 | 2017-08-17T20:28:50 | 100,642,063 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,013 | py | from PyQt5.QtWidgets import QWidget, QCheckBox, QApplication, QLabel, QLineEdit, QPushButton, QMainWindow
from PyQt5.QtGui import QIcon, QPixmap, QPalette
from PyQt5.QtCore import Qt
import sys, csv, datetime
from datetime import date
"""
PyMeetings, a simple Python App using PyQt5 GUI
Records attendance and sen... | [
"noreply@github.com"
] | noreply@github.com |
50ffc9ad26e7630be11c94ac91832bb11949eb9f | 40020805c65b2ff7d27bf86dd1bb79dc8a263784 | /LearningDemo/decTree/hyjia/cn/demo1.py | 168328e343ffbbe46a99cb65e412ae0d5f19a348 | [] | no_license | jhy616415267/MachineLearningDemo | 7fd4f37690f6ec42769a27ca6dac918413a5acaa | 659f606b14bf435c11aae308cce3e7e8977de60c | refs/heads/master | 2021-04-12T04:44:20.124453 | 2018-04-04T10:18:20 | 2018-04-04T10:18:20 | 125,847,725 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,625 | py | # _*_ coding: UTF-8 _*_
from math import log
def createDataSet():
dataSet = [[0, 0, 0, 0, 'no'], # 数据集
[0, 0, 0, 1, 'no'],
[0, 1, 0, 1, 'yes'],
[0, 1, 1, 0, 'yes'],
[0, 0, 0, 0, 'no'],
[1, 0, 0, 0, 'no'],
[1, 0, 0, 1, 'no']... | [
"jiahongying@baidu.com"
] | jiahongying@baidu.com |
e3dfa7a4455e0f59230ecf1846ccc32cc4122744 | e6c65e2e354336a4bea5b6a4ccbccd3682915fe2 | /out-bin/py/google/fhir/models/run_locally.runfiles/com_google_fhir/external/pypi__tensorflow_1_12_0/tensorflow-1.12.0.data/purelib/tensorflow/contrib/receptive_field/python/__init__.py | 3d7249a31712e439c472e3403dd11bd766b47d41 | [
"Apache-2.0"
] | permissive | rasalt/fhir-datalab | c30ab773d84983dd04a37e9d0ddec8bf2824b8a4 | 3e329fc8b4226d3e3a4a7c23c306a86e7a9ea0de | refs/heads/master | 2021-10-09T05:51:04.593416 | 2018-12-21T18:11:03 | 2018-12-22T05:38:32 | 162,744,237 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 194 | py | /home/rkharwar/.cache/bazel/_bazel_rkharwar/0ddaa3627472ad9d1367a008236ce2f5/external/pypi__tensorflow_1_12_0/tensorflow-1.12.0.data/purelib/tensorflow/contrib/receptive_field/python/__init__.py | [
"ruchika.kharwar@gmail.com"
] | ruchika.kharwar@gmail.com |
36a9d6ed2ada559682bb6025a07002cb25ffa297 | 913c6914400f7694c694f96ad6fdc90ff5436aa6 | /A.py | e5891ac5a50d16496154cd565f1cc6f0353f0f28 | [] | no_license | konamilk/atcoder-abc187 | 128cb6e6e4cc44e6a3f63c78ce07aab03219205c | 823a6748e38b242366d27dd2e534daa98de107b4 | refs/heads/main | 2023-02-21T18:56:46.751137 | 2021-01-24T01:12:38 | 2021-01-24T01:12:38 | 330,582,867 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 227 | py | A, B = map(int, input().split())
def sumOfDigits(x: int):
sum = 0
while True:
sum += x % 10
x = x // 10
if x == 0:
break
return sum
print(max(sumOfDigits(A), sumOfDigits(B)))
| [
"hina.no.atelier@gmail.com"
] | hina.no.atelier@gmail.com |
6475c7715d2ace925da77b437721147f76ea65b2 | d1d79d0c3889316b298852834b346d4246825e66 | /blackbot/core/wss/ttp/art/art_T1218.011-1.py | ae3f24301b8519e5fd2ff913044f9b62c72f2ce2 | [] | no_license | ammasajan/Atomic-Red-Team-Intelligence-C2 | 78d1ed2de49af71d4c3c74db484e63c7e093809f | 5919804f0bdeb15ea724cd32a48f377bce208277 | refs/heads/master | 2023-07-17T12:48:15.249921 | 2021-08-21T20:10:30 | 2021-08-21T20:10:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,920 | py | from blackbot.core.utils import get_path_in_package
from blackbot.core.wss.atomic import Atomic
from terminaltables import SingleTable
import os
import json
class Atomic(Atomic):
def __init__(self):
self.name = 'DefenseEvasion/T1218.011-1'
self.controller_type = ''
self.external_id = 'T121... | [
"root@uw2artic201.blackbot.net"
] | root@uw2artic201.blackbot.net |
7f795bd8e63757d315da20e4371739db3358544e | dc98d2294dc3a02cdb79f606aa02bad92d6f7a46 | /numpy/numpy.py | 85b6409401a536fbe1291dd60e7b2ca7f285902c | [] | no_license | sawrupesh04/HackerRank-Python | c5d956509f03b3ed1e4852c6b63285007c6e33ad | 7979f7e7f06611ead4dd07e932e4a90503f509f2 | refs/heads/master | 2020-03-18T07:43:36.398988 | 2019-12-25T10:33:25 | 2019-12-25T10:33:25 | 134,469,852 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 898 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue Dec 3 10:38:26 2019
@author: rupesh
"""
import numpy
nm_inputs = list(map(int, input().split()))
arr = [list(map(int, input().split())) for _ in range(nm_inputs[0])]
arr = numpy.array(arr)
print(numpy.transpose(arr))
print(arr.flatten())
####... | [
"rupeshsaw786@gmail.com"
] | rupeshsaw786@gmail.com |
1c0a86390d4b3ad61125d12e016f641e876e5580 | 8a0a4aa84cc3796c238c26fce0ce96486a8054c8 | /mmdet/models/detectors/two_stage_panotic.py | caed364b7d41b3570f3ac31e24a461ac9d806d6c | [
"Apache-2.0"
] | permissive | Davis-love-AI/EasyPSNet | cdd53a78af9192cbfc9f2a982943daa11027e99f | 5905a9adab15cd5937a1821a67cda1813175a528 | refs/heads/master | 2022-01-27T06:55:39.802984 | 2019-06-01T08:20:12 | 2019-06-01T08:20:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,655 | py | import torch
import torch.nn as nn
from .base import BaseDetector
from .test_mixins import RPNTestMixin, BBoxTestMixin, MaskTestMixin, SegTestMixin
from .. import builder
from ..registry import DETECTORS
from mmdet.core import bbox2roi, bbox2result, build_assigner, build_sampler
@DETECTORS.register_module
class TwoS... | [
"237942920@qq.com"
] | 237942920@qq.com |
efb43fd0f078e074941e4834234fd4d5fc9c8d22 | 6b66235b6d470aefe02418479819213e79059e9e | /code_attempt3/sandbox_deleteme.py | 96b926cda22a8a7e14210cf62484769be117d643 | [] | no_license | Sounzgudlowd1/AML_Project | 18bb286bdca0e602cbcb8d8725a8955800a825eb | 1aa29f732728a19cc2632a5d817675ce7fca6644 | refs/heads/master | 2021-04-28T16:00:20.989193 | 2018-03-29T20:47:16 | 2018-03-29T20:47:16 | 122,003,418 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 496 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Mar 3 14:11:12 2018
@author: Erik
"""
import gradient_calculation as gc
import get_data as gd
import numpy as np
from scipy.optimize import check_grad
import part2b_code as p2b
import time
params = gd.get_params()
X, y = gd.read_data_formatted('train_struct.txt')
X = X[0... | [
"eoslan2@uic.edu"
] | eoslan2@uic.edu |
a4fa98e0d9ffca78a5aaadefb03a15b8440eeefb | f3963ec76dfb97652445a471c9b583126bdd0f01 | /lstm_model.py | 54fe0a1af0d2c051074dc5f271c663105dc2edee | [
"MIT"
] | permissive | guilherme-pombo/PhilosophyLSTM | a145779080da7c207a9cf863b87d57dc8ed4fa2f | d86cf3a8c85acae9a391065d68d131d5d8beee77 | refs/heads/master | 2021-01-12T05:08:24.677773 | 2017-01-02T22:47:22 | 2017-01-02T22:47:22 | 77,863,899 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,781 | py | from __future__ import print_function
from keras.models import Graph
from keras.layers.core import Dense, Activation, Dropout, TimeDistributedDense
from keras.layers.advanced_activations import ELU
from keras.layers.recurrent import LSTM
from keras.layers.normalization import BatchNormalization
"""
LSTM params
Structu... | [
"guilherme@brandwatch.com"
] | guilherme@brandwatch.com |
34595e216c689a3d727e2ac979dcd348526a6ab3 | 2eb33c65c3d9eef6d7ad974214c4dae705921fb3 | /code/depthest_trainer.py | fbce91d8009026c2ad7b6fcf44d98f403c957e6e | [
"MIT"
] | permissive | inyong37/ACAN | 08022118820c29d847b40ac182c8680a2d33f9fc | 0847c14cb49e2b53ae6486f62cb0f57efd2123c2 | refs/heads/master | 2020-09-13T19:25:54.084780 | 2019-08-21T11:36:31 | 2019-08-21T11:36:31 | 222,881,603 | 1 | 0 | MIT | 2019-11-20T07:55:31 | 2019-11-20T07:55:30 | null | UTF-8 | Python | false | false | 12,764 | py | ##+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
## Created by: chenyuru
## This source code is licensed under the MIT-style license
##+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
import os
import sys
import time
import datetime
import numpy as np
import scipy.io
... | [
"532891184@qq.com"
] | 532891184@qq.com |
cbe7ed221eb94f7edbdfe154ce52e551861b265e | 3f6d198376a6a48aa92fa14eec4fb2fa41178539 | /notebooks/mypysmps/util/windrose.py | 918e563bff0d5511a3954376692dceaaf3e6447d | [
"MIT"
] | permissive | fvanden/SOC-app | 9584b5ecc060ce034a71542f79118f9f2a94114a | 488322c05b6ebe646f003274fa1a2125d993ecd0 | refs/heads/master | 2023-05-07T16:28:28.840398 | 2021-06-03T09:37:20 | 2021-06-03T09:37:20 | 373,448,861 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,403 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
__version__ = '1.4'
__author__ = 'Lionel Roubeyrie'
__mail__ = 'lionel.roubeyrie@gmail.com'
__license__ = 'CeCILL-B'
import matplotlib
import matplotlib.cm as cm
import numpy as np
from matplotlib.patches import Rectangle, Polygon
from matplotlib.ticker import ScalarForma... | [
"floorvandenheuvel@hotmail.com"
] | floorvandenheuvel@hotmail.com |
c845b3f122e9eb3f5170029f82dc0a50326a9376 | d06def5f63992ea4ef03537fad7be8beef9f1b6c | /Code/downloadhandler.py | aead68c20469042b85b4888995401632182eeccf | [] | no_license | CiaranWinna/dropbox-replica | 8db2b69a649fcccca8175bde2f93b12274ef0abd | 1ccfbc6bd7e25c2ac42a3f428162ce44e1749024 | refs/heads/main | 2023-03-26T23:05:21.932123 | 2021-04-01T17:04:20 | 2021-04-01T17:04:20 | 353,769,917 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 811 | py | # importing the required libraries
import webapp2
import jinja2
from google.appengine.ext import ndb
from google.appengine.ext import blobstore
from google.appengine.ext.webapp import blobstore_handlers
class DownloadHandler(blobstore_handlers.BlobstoreDownloadHandler):
# model that is used when download... | [
"ciaranwinnan@pop-os.localdomain"
] | ciaranwinnan@pop-os.localdomain |
62c0bb196d8d6513da33147d257fd4d507bb8ee1 | fcf63f498acc8f29c68773e9b20131bfce42f281 | /facetest.py | de125285bf47638ef5b67a409d5a381ec87e58f6 | [] | no_license | dstoner05/facial-recognition | 16758a567cc4e8774488ba7d4c0b39a4d98fe8fb | 048556db56162a42324f85a962057210f0f520dd | refs/heads/main | 2023-08-03T15:57:44.640046 | 2021-09-10T19:20:34 | 2021-09-10T19:20:34 | 401,709,908 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 710,337 | py | import requests
from PIL import Image
from numpy import asarray
import cv2
import numpy as np
import os
import base64
import io
from numpy import array
filename = "imran.jpg"
# img = cv2.imread(filename, 0)
with open(filename, "rb") as img:
string = base64.b64encode(img.read()).decode('utf-8')
# string = "iVBORw... | [
"58181886+dstoner05@users.noreply.github.com"
] | 58181886+dstoner05@users.noreply.github.com |
3c74398fe91bbc87e237a9ef137155cef7f3ca67 | df1c621021e5448169b624a4dbea44e4dce4a0af | /test/test.py | 01a7c0e7e654eab99b253ea6e35a266a8f815b32 | [] | no_license | K4ndo/FinanceControl | 5e399c2fd28c0f212d69dd047d86ed11f27af0c9 | a18cd83adbab384908e94385fd6efe1a70c8f483 | refs/heads/master | 2020-04-09T14:32:03.812592 | 2019-06-06T18:56:53 | 2019-06-06T18:56:53 | 160,400,281 | 0 | 1 | null | 2019-06-10T11:18:55 | 2018-12-04T18:18:50 | Python | UTF-8 | Python | false | false | 27 | py | from src import dataModel
| [
"dkessler@twt-gmbh.de"
] | dkessler@twt-gmbh.de |
01e1441294cda302a160e5771d99e199e575a62e | 90cdfc6ff827c8334c81f6f896b1081cbb4d4f7a | /07GUI/08Pyqt5/06QtLearning/main.py | 67e007139e350075c02c31f2644d82b77e45fcbe | [] | no_license | HBU/Jupyter | c79883f329efd2426c5c8fde1364266ed8b5059f | b3d5d08c89c26c68027409c2b466ac64aeb1af39 | refs/heads/master | 2022-07-06T22:00:43.694050 | 2020-12-22T09:53:02 | 2020-12-22T09:53:02 | 123,717,897 | 3 | 3 | null | 2022-07-06T19:20:58 | 2018-03-03T18:04:01 | Jupyter Notebook | UTF-8 | Python | false | false | 3,190 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'main.ui'
#
# Created by: PyQt5 UI code generator 5.10.1
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_Dialog(object):
def setupUi(self, Dialog):
Dialog.setObjectNam... | [
"8584751@qq.com"
] | 8584751@qq.com |
e6b1813c3f8b1b5ec5036f41e3260c00447cd56c | a9e3f3ad54ade49c19973707d2beb49f64490efd | /Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/openedx/core/djangoapps/api_admin/tests/test_views.py | ae07399acb44c8b63d501cadbbf37a3fbe23ed9e | [
"AGPL-3.0-only",
"AGPL-3.0-or-later",
"MIT"
] | permissive | luque/better-ways-of-thinking-about-software | 8c3dda94e119f0f96edbfe5ba60ca6ec3f5f625d | 5809eaca7079a15ee56b0b7fcfea425337046c97 | refs/heads/master | 2021-11-24T15:10:09.785252 | 2021-11-22T12:14:34 | 2021-11-22T12:14:34 | 163,850,454 | 3 | 1 | MIT | 2021-11-22T12:12:31 | 2019-01-02T14:21:30 | JavaScript | UTF-8 | Python | false | false | 15,310 | py | """ Tests for the api_admin app's views. """
import json
import ddt
import httpretty
from django.conf import settings
from django.test import TestCase
from django.test.utils import override_settings
from django.urls import reverse
from oauth2_provider.models import get_application_model
from openedx.core.djangoapps... | [
"rafael.luque@osoco.es"
] | rafael.luque@osoco.es |
caea401db9732eca5720a2dcdcfb26d14c37b340 | 3fed2e41269a397ac5fdc641f54e6dbfd0f00e2b | /dice/dice.py | 421fac1a42204e9fe864b3091654c0174cc3c989 | [] | no_license | 2013edp11badam/infotech | f1bd80a08f30a9fa59598175648ccf675eac47b3 | 0b8fe295615639fc5ef485fd07712b64f2ef5a37 | refs/heads/master | 2016-09-05T15:27:54.944508 | 2013-06-13T15:39:52 | 2013-06-13T15:39:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 509 | py | #!/usr/bin/python
from fltk import *
import random, glob
def roll(w_id):
random.shuffle(images)
image1 = Fl_JPEG_Image(images[0])
box1.image(image1.copy(box1.w(), box1.h()))
box1.redraw()
images = []
for image in glob.glob("images/dice*.jpg"):
images.append(image)
window = Fl_Window(100, 100, 260, 290, 'Rol... | [
"2013edp11badam@gmail.com"
] | 2013edp11badam@gmail.com |
70b11fb79888d098da78da5b1165b55e6625abf6 | bd675e3137f6e37b33bdf3a95aa7bc6d1b5545bb | /WebProject/WebProject/webshop/tests/tests_of_functions.py | add17f783014e43136b7959b342e5d8d28124209 | [] | no_license | LiaKolt/Webshop | 3d7b3cac7daca91dfca8b70e005fee2316fe348e | 143f431b7c89d66b66d7d46cd6e518d2c351d1fe | refs/heads/master | 2022-10-06T16:33:51.214139 | 2020-01-04T10:05:02 | 2020-01-04T10:05:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,310 | py | from django.conf import settings
from django.http import HttpRequest
from django.test import TestCase
#узнать что за библиотека
from importlib import import_module
import webshop.functions
from webshop.models import Cart
class GetOrCreateCartTest(TestCase):
@classmethod
def setUpTestData(cls):
cls.session_key = N... | [
"enotukit@gmail.com"
] | enotukit@gmail.com |
cc6e7193171f08b4bec062c3ccbc1f92ae8d7cf2 | 1eefbdafb2865b54ef6a8eb956d3ab9d5497f3c5 | /inria/Code/install_packages.py | 572b28f163f8be970a3aa8e54bda27bc690131a4 | [] | no_license | BRGM/hubeau | af5048c698f813c35addaa34502887e2f2743ee5 | 55fa39e74c34150b458ae034b17eec039bb4edf5 | refs/heads/master | 2023-08-05T00:59:24.869324 | 2023-08-03T08:46:09 | 2023-08-03T08:46:09 | 133,785,135 | 58 | 8 | null | 2023-08-03T08:46:11 | 2018-05-17T08:45:13 | Jupyter Notebook | UTF-8 | Python | false | false | 286 | py | import sys
import subprocess
# implement pip as a subprocess:
requirements = ["requests", "numpy", "nltk", "flair", "ip2geotools", "ipinfo", "datetime", "stanza", "pandas", "termcolor"]
for pkg in requirements:
subprocess.check_call([sys.executable, '-m', 'pip', 'install', pkg])
| [
"mayatouzari@gmail.com"
] | mayatouzari@gmail.com |
16180e8ffe25cf0b0e5dac347e8b9032e1205bf6 | 337b133f562836be90841dc0353ce820bcdea2a6 | /opcode.py | b2bdd31369867202d30e5eb01b27a6c9f6cfe8c6 | [] | no_license | noriok/pdp11 | 9683fd44f99c01f28095e4dabf45328c8da88f99 | e33d7477eaab6d41afe474d6ccc25607164cbf2f | refs/heads/master | 2020-05-19T15:09:45.364363 | 2012-12-22T14:05:00 | 2012-12-22T14:11:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,585 | py | # coding: utf-8
import util
import opdump
import oprun
import run
def dispatch(op, data, mode, vm):
def op_match(a, b):
assert len(a) == len(b), (len(a), len(b))
for i in range(len(a)):
if a[i].isdigit() and b[i].isdigit():
if a[i] != b[i]:
return Fa... | [
"noriokob@gmail.com"
] | noriokob@gmail.com |
551c6d0779faa323b290061e22848c4b22a59462 | 986eac22aaac1762a2ccc1c6faa09a283cad1245 | /imdb/tests.py | 47befb9b72a80f2fbb227bab5ead6607fd549458 | [] | no_license | Fuzail96/fynd | 582d2311cd182573049b98e2d3048ea66269cedb | aebaa39badad16fb51c52e8c0eba340f0afb237a | refs/heads/main | 2023-04-26T06:55:35.299658 | 2021-05-09T10:13:22 | 2021-05-09T10:13:22 | 365,524,693 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,365 | py | from django.test import RequestFactory,TestCase, Client
from django.urls import reverse
from .models import Movie, Genre
from ..user.models import User
from rest_framework.permissions import IsAdminUser
from .views import create_movies, update_movies, delete_movies
class SearchAndGetMovies(TestCase):
def setUp(se... | [
"fuzail@codewave.com"
] | fuzail@codewave.com |
505ce4ae23367ad7ce4f6520d7f73f81355fdb4c | 51b3620926ed448974ccd902e02264742f35867d | /projects/ide/sublime/src/Bolt/ui/chain/chain.py | b53f2fe6dd64d533e135edd80654713b77969f82 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | boltjs/bolt | 56295e30876eaea8be2f4a276e0201f85b1bfd99 | c2666c876b34b1a61486a432eef3141ca8d1e411 | refs/heads/master | 2016-09-08T02:34:47.202062 | 2013-09-03T06:55:53 | 2013-09-03T06:55:53 | 7,078,233 | 11 | 0 | null | 2013-07-14T12:01:26 | 2012-12-09T11:55:40 | JavaScript | UTF-8 | Python | false | false | 168 | py |
def go(window, pipeline):
def next_pipe(num, values):
pipeline[num].next(window, values, num, next_pipe)
pipeline[0].next(window, [], 0, next_pipe)
| [
"dev@vapid.(none)"
] | dev@vapid.(none) |
9e5e0e10855a710a5aad2148695dbd378648c068 | 98b203d8ecf2f51ab0f7707eeee09ee07d109577 | /python/khans_topological.py | a4aa125035846d67c37d12b1613209759391af22 | [] | no_license | razerboot/DataStrcutures-and-Algorithms | 9967727a730fa59daa00a91c021042d885584b10 | b47560efe4fa59ae255dc83c791e18acd9813c22 | refs/heads/master | 2021-07-16T19:08:16.770941 | 2021-01-21T11:19:19 | 2021-01-21T11:19:19 | 95,435,549 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 760 | py | from collections import defaultdict
# using khan's algo
def cyclecheck(graph, n):
degree = [0] * (n + 1)
for u in graph:
for v in graph[u]:
degree[v] += 1
q = []
for u in xrange(1, n + 1):
if degree[u] == 0:
q.append(u)
count = 0
while (q != []):
... | [
"akshaykumar@akshaymac.local"
] | akshaykumar@akshaymac.local |
fc216e0eba3e9a86e7881f4b25e16d38a4763a8f | 1b4707f03163ce2d3a787155d442194d3de9dd9e | /infomapcog/utils.py | 8b09d3323305ac9b0a11d476a652168ffb5c8c98 | [] | no_license | PhyloStar/CogDetect | 37d0537a16698ef3df59cb1c39551516009e75de | 48e8e7a412e744f1fe2de6c4abd145ad42d8889c | refs/heads/master | 2021-01-20T17:02:32.697694 | 2017-05-25T17:24:07 | 2017-05-25T17:24:07 | 82,854,261 | 2 | 1 | null | 2017-05-11T13:27:41 | 2017-02-22T21:27:26 | Python | UTF-8 | Python | false | false | 1,665 | py | from collections import defaultdict
import itertools
import numpy as np
def cleanASJP(w):
w = w.replace("%","")
w = w.replace("K","k")
w = w.replace("~","")
w = w.replace("*","")
w = w.replace("\"","")
w = w.replace("$","")
return w
def writeNexus(dm,f):
l=len(dm)
f.write("#nexus\n... | [
"taraka@fripost.org"
] | taraka@fripost.org |
91653d32a3b1b10a52e1b7c54370a3afb71dc22f | d1a798273bae6a208adbeb68036802270d3087f8 | /crowddrone_input_aggregator/scripts/input_aggregator_server.py | 6954e6733043f61f4fc229d42e529cd8eb7a8624 | [] | no_license | ElliotSalisbury/CrowdDrone | ba7642e2dac6f75a59629aed13dff4019971fe8a | 33a526bf0e85b9d2c5d3fed927754e1ab36d4f1e | refs/heads/master | 2020-05-18T09:31:30.626705 | 2017-06-20T08:43:55 | 2017-06-20T08:43:55 | 31,028,191 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,499 | py | #!/usr/bin/env python
import sys
import importlib
from threading import Thread, Lock
from threading2 import SHLock
import rospy
from geometry_msgs.msg import Twist
from std_msgs.msg import Bool, String
from input_aggregator.aggregator import Aggregator
from crowddrone_input_aggregator.srv import *
import random
robot... | [
"elliot.sal@gmail.com"
] | elliot.sal@gmail.com |
9ba5478576b15fb2df4844d41eafa996dd40b554 | 0dec0ea272260374f680c81f3b4b0827feb69694 | /examples/chinese_test.py | ef7bf8e222dd551a2b28ea0708c37ed6a5e7b54f | [
"MIT"
] | permissive | mapix/redis-completion | 7f4fc00fae8654e2488f1459d64a02fd188f6ebe | 7c72eb70622aaea9e7a226eb2661e1de4e8060f7 | refs/heads/master | 2021-01-16T17:51:40.951676 | 2013-09-11T06:43:15 | 2013-09-11T06:43:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,188 | py | # -*- coding:utf-8 -*-
import mmseg
from pinyin import Pinyin
from redis_completion import RedisEngine
pinyin = Pinyin()
engine = RedisEngine()
def store_movie(movie):
phrase = movie["title"]
seg_phrase = " ".join(mmseg.seg_txt(phrase))
_pinyin_phrase = pinyin.get_pinyin(phrase)
py_phrase = "".join(... | [
"luoweifeng@douban.com"
] | luoweifeng@douban.com |
808bcbe7a388b4c525f883d431c665fa2053eeac | d5bfa8beb034b7af6ab4c08a5fb68b19c870bced | /company_tool/shared/thing.py | 373032b3473d381c5c3cd2c171636f01760b0072 | [
"BSD-3-Clause"
] | permissive | ops-guru/project-skeleton-python | 7cd2fc7f57caa6060c289f323e412d9088210259 | 91bceba198f79f1dcb02b6745d0229090d59821c | refs/heads/master | 2020-04-21T06:33:48.170043 | 2019-02-06T08:24:46 | 2019-02-06T08:24:46 | 169,368,688 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 65 | py |
def shared_function(x, sep=':'):
return sep.join(['got', x]) | [
"max@opsguru.io"
] | max@opsguru.io |
f8861f7334eb20d8f066a25e107cb711b639faa4 | c0c820be99a4539dcb9904ebd5ffae0a8953b33f | /Parallel_ACO_Solver/data/pants/world.py | df0fd421d74c64afeed30dd5926e736207cc1357 | [
"MIT"
] | permissive | MrBadge/Parallel_Ant_Colony | d468904eead53dc959855e112c500e89e7705cc1 | 8abbb8113b8ad0f836c8181fc5f79e5dbba8eb95 | refs/heads/master | 2022-12-12T20:45:23.132411 | 2017-07-03T11:22:57 | 2017-07-03T11:22:57 | 96,044,439 | 7 | 2 | MIT | 2022-12-07T23:58:23 | 2017-07-02T19:26:44 | Java | UTF-8 | Python | false | false | 27 | py | Docker-slave/pants/world.py | [
"malcevanatoly@gmail.com"
] | malcevanatoly@gmail.com |
c462bafef5399e8f9cd37b8a37573720063ab2c2 | 306d2a92fb331aec6ddf0794b538d6e3385a0df9 | /app/api/account/urls.py | 21f884031d1962d2ca3574afe6cc2097735a669d | [] | no_license | Zarinabonu/ForceApp | f343d3a52aee08890230c5425c9e238df99c5a7f | 13f8e8613999c4850fc6f0bfcec66f897eecbe4a | refs/heads/master | 2020-12-10T08:00:25.072289 | 2020-01-20T13:14:07 | 2020-01-20T13:14:07 | 233,540,795 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 279 | py | from rest_framework.serializers import ModelSerializer
from app.model import Account
class AccountSerializer(ModelSerializer):
class Meta:
model = Account
fields = ('id',
'f_name',
'l_name',
'm_name',)
| [
"zarinabonu199924@gmail.com"
] | zarinabonu199924@gmail.com |
b43dc33f7a123f7f218d3e8b63e01cafd7ab5c7d | 56b7017a7cfd0329e73cab8fac36db1d6e5797d8 | /15.py | 24e23da030526ab032b0b7c21a17c6142ea4ca3a | [] | no_license | amalphonse/Python_WorkBook | 1d0df468c858960be89ec507f0cc82ffb0154e11 | ae2d6cea2421ef15af3fb67fc6fed05198764b7d | refs/heads/master | 2021-01-17T07:30:29.660469 | 2017-03-02T22:42:47 | 2017-03-02T22:42:47 | 83,731,980 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 107 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Feb 8 21:23:06 2017
@author: Anju
"""
my_dict = {"a":1,"b":2} | [
"anjumercian85@gmail.com"
] | anjumercian85@gmail.com |
08062448f3c156d978a7e8433af6ca9c1541e4b5 | 1e4d2a66f92b8ef3baddaf76366c1be4ad853328 | /JALADI_DSC510/HELLO_WORLD.py | bf983639cf923a54dacf4fe2adbce2e24b684082 | [] | no_license | dlingerfelt/DSC-510-Fall2019 | 0c4168cf030af48619cfd5e044f425f1f9d376dd | 328a5a0c8876f4bafb975345b569567653fb3694 | refs/heads/master | 2022-12-04T05:04:02.663126 | 2022-11-28T14:58:34 | 2022-11-28T14:58:34 | 204,721,695 | 5 | 23 | null | 2019-12-06T01:15:11 | 2019-08-27T14:30:27 | Python | UTF-8 | Python | false | false | 100 | py | # Printing hello world
def main():
print("Hello World")
if __name__ == '__main__':
main()
| [
"pradeepjaladi@gmail.com"
] | pradeepjaladi@gmail.com |
612247c1e53605ffa741a2fd8c545e5aee1047b8 | 1c2a9ce62301d5342113f2fdea8faefe807877c3 | /weekly/models.py | 95cda273c45b342928bebd15c878c21b9bdd4218 | [] | no_license | Jillelanglas/weekly | 782c03595118bb110c6d4ef3cda182d4b750ce30 | b4b5bd373b7b9a07198c1354ea2f9a7854ffa75b | refs/heads/master | 2021-01-15T23:07:08.495235 | 2013-10-05T18:01:51 | 2013-10-05T18:01:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,524 | py | from weekly import db
import cryptacular.bcrypt
import datetime
import mongoengine
from flask import url_for
from misaka import Markdown, HtmlRenderer
rndr = HtmlRenderer()
md = Markdown(rndr)
crypt = cryptacular.bcrypt.BCRYPTPasswordManager()
class User(db.Document):
_password = db.StringField(max_length=102... | [
"isaac@simpload.com"
] | isaac@simpload.com |
68d7f32302c77679396fd2327a7d8a2eae33ffc6 | ebb288731179ca6d7e92afa798ffd272e8ff2af5 | /aggregator/migrations/0007_auto_20170605_1110.py | 87fd8ee724361115d8e420112cd091af170c43f6 | [] | no_license | anirudhshenoy/projectabc | 1d4398cdeb79f460b63e6210275b4611eb6faf43 | d65d6fe6a0cfa5a95fd5ec17dec0192e97efcaca | refs/heads/master | 2021-01-23T04:58:44.797378 | 2017-06-05T09:31:41 | 2017-06-05T09:31:41 | 92,945,924 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,025 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.1 on 2017-06-05 05:40
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('aggregator', '0006_auto_20170605_1050'),
]
operati... | [
"anirudhshenoy92@gmail.com"
] | anirudhshenoy92@gmail.com |
aec4627704796f4d5e56893bda32a06a151ead98 | 1260be5f711b389385a34bf830c8382c87af8367 | /envWiki/lib/python3.6/site-packages/jsonable/jsonable.py | 88ef98970ed6e75df0e9990a5c772561f36a806a | [] | no_license | lucas0/WikiCheck | a1bf0d2807a5c27b75817fd846ba15b9e301cc93 | b8fc309cf1ce3f1db3f760347a592c0d0175a1c9 | refs/heads/master | 2020-09-19T16:11:23.544697 | 2019-11-26T17:01:37 | 2019-11-26T17:01:37 | 224,243,729 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,218 | py | import copy
from . import instance
from .self_constructor import SelfConstructor
JSON_TYPES = {str, int, float, type(None), bool}
class JSONable(SelfConstructor):
"""
Implements a simple class interface for trivially JSONable objects.
:Example:
>>> from jsonable import JSONable
>>>
... | [
"lucas.ccomp@gmail.com"
] | lucas.ccomp@gmail.com |
91844c1ed6cc7e36ae4119c9586f5fb82f28822b | e204cdd8a38a247aeac3d07f6cce6822472bdcc5 | /.history/app_test_django/models_20201116133107.py | 2523c8d06c874130fa411ddfea0a2aa8bcbbfe7e | [] | no_license | steven-halla/python-test | 388ad8386662ad5ce5c1a0976d9f054499dc741b | 0b760a47d154078002c0272ed1204a94721c802a | refs/heads/master | 2023-04-08T03:40:00.453977 | 2021-04-09T19:12:29 | 2021-04-09T19:12:29 | 354,122,365 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,940 | py | from django.db import models
import re
class UserManager(models.Manager):
def user_registration_validator(self, post_data):
errors = {}
EMAIL_REGEX = re.compile(
r'^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9._-]+\.[a-zA-Z]+$')
if len(post_data['first_name']) < 3:
errors['first_na... | [
"69405488+steven-halla@users.noreply.github.com"
] | 69405488+steven-halla@users.noreply.github.com |
999058a6a97cf347926a34d59d7b8b61d67917c9 | a0602b11ef9ea422d3c331d07678314933f99331 | /model/Optimizer.py | c9bdea5104258fc7795da695f67619dd410bd402 | [] | no_license | ElijhaLee2/LinkinNet | 7791eecd6ca5ed44ea07fbe375ecb3fdb5c35f2a | 0893209a451ba1ad30f6bf6d17ca95798e45d3e7 | refs/heads/master | 2021-07-21T03:13:01.138991 | 2017-10-24T09:25:06 | 2017-10-24T09:25:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,172 | py | import tensorflow as tf
from model.hyperparameter import OPTIMIZER_DIS_HP, OPTIMIZER_GEN_HP
from other.config import BATCH_SIZE
from other.nn_func import optimize_loss
class DiscriminatorOptimizer:
def __init__(self, stack_to_train, name):
'''
:param models:
:param stack_to_train: a dict... | [
"elijhalee1994@gmail.com"
] | elijhalee1994@gmail.com |
902b8d163053965b0fd5ccb0bccc4093f6735a82 | 0adf94fc39a02018165b62e93dd83edddd041230 | /.history/Jobs/views_20190225164613.py | 81e0cf17f2f0704d47a0e7fa8441b3d22cbb48ad | [] | no_license | SabitDeepto/BrJobs | 1e3baa143331cf46b9c70911c6644d1efd4fffd6 | 1a458c8c667f8093a2325d963e5542655467c7aa | refs/heads/master | 2020-04-24T08:02:26.350007 | 2019-03-17T05:53:30 | 2019-03-17T05:53:30 | 171,818,024 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,304 | py | from django.contrib.auth.forms import UserCreationForm
from django.shortcuts import redirect, render
from django.urls import reverse_lazy
from django.views import generic
from .forms import UserForm, ProfileForm
from django.contrib import messages
from django.db.models import Q
from django.shortcuts import get_object_o... | [
"deepto69@gmail.com"
] | deepto69@gmail.com |
0cc4452cd23425e09b958bb992224f2bbc531d8d | 38eab4b245f5a6bfb72e67068ccc8d1060a527b9 | /higherLower.py | 70aa49b7e98848a7d2305531b41e2e2dee114514 | [] | no_license | DimitrisPatiniotis/cardGamesPython | 7705948e1946069bebc16c1c18d02cf3fc10bb71 | 8f1ec3ffdc81aa7fd6f317169d933ba7d53b655d | refs/heads/main | 2023-01-12T21:17:10.091733 | 2020-11-17T06:38:28 | 2020-11-17T06:38:28 | 312,189,987 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,167 | py | from cardGameClasses import Card, Deck
game_on = True
score = 0
while game_on:
usedDeck = Deck()
usedDeck.shuffle()
dealtCard = usedDeck.deal_one()
print("The current card is ", dealtCard)
print("Your score is " + str(score))
userInput = input("Higher or lower?")
while userInput != 'h'... | [
"dimpatspy@gmail.com"
] | dimpatspy@gmail.com |
7293cd14ce1bf9222eeaeb863917fdc025928ff6 | 1078d0c9353e51b3e8b1c0ca8d96029dc373d52b | /BMIcalculator.py | c5fefe69abc956d84208dd8d6fd471263945c8c5 | [] | no_license | RevanthPro/Simple-BMI-calculator-in-Python | e4ccd2731f9e67195fbcd3f3a0bb34e9d84c04d8 | f8b70a0b6e7917806a1208d8c7818ef7bb3ee979 | refs/heads/main | 2023-05-04T15:45:05.423262 | 2021-05-30T10:32:07 | 2021-05-30T10:32:07 | 372,181,077 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 923 | py | #Taking Input from the user
name = input("Hi, What's your name?")
height = float(input("What's your height? (In metres)"))
weight = float(input("What's your weight? (In kg)"))
#Our next task is to identify the BMI of the user. BMI's formula is (kg/metres squared)
#Converting the value of our user's height from... | [
"noreply@github.com"
] | noreply@github.com |
38976f3a1ff363148a83b6a5aa39ef0ca6fe24c3 | 6fd32a62d7a560f810214319c644dbd665cb2a26 | /tests/client_test.py | 9b39df086f823f68477978cf3e88a1ffc1bfa469 | [
"Apache-2.0"
] | permissive | yuce/hazelcast-python-client-kerberos | 9d493d071621c46fd3c0a79f744e5161d88fcb73 | f00181b9264eec1887ad7ff7f860aadac91e8e6f | refs/heads/main | 2023-07-24T04:30:55.087050 | 2021-08-31T13:31:21 | 2021-08-31T13:31:21 | 401,269,308 | 0 | 0 | Apache-2.0 | 2021-08-30T08:23:46 | 2021-08-30T08:23:45 | null | UTF-8 | Python | false | false | 1,144 | py | import logging
import unittest
import hazelcast
import hzkerberos
from .util import default_keytab, Address
def customize_logger(name):
lg = logging.getLogger(name)
lg.setLevel(logging.DEBUG)
handler = logging.StreamHandler()
formatter = logging.Formatter("%(asctime)s - %(name)s - %(levelname)s - %(... | [
"noreply@github.com"
] | noreply@github.com |
1a04a1f887d81a5162e78550366bc82405a7caee | 9bd80dfa6f12613b887445c71d5e29a0d24cb0f7 | /modi.py | ebcc5f8c2cbe9fda6fc679f662dee830aa011cfc | [] | no_license | Tealephant/dokohelper | b9bc21d09b178ec6baf005220bed430ff0927001 | 4dab7a4f0193c46108174326dae114e77f743b3e | refs/heads/main | 2023-03-26T14:40:14.506225 | 2021-03-25T18:59:57 | 2021-03-25T18:59:57 | 346,080,990 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,094 | py | '''
Saves all the Gamemodes with the ranks and other constants
'''
#Fallback Playernames
FALLBACKNAMES = ["Spieler 1", "Spieler 2", "Spieler 3", "Spieler 4"]
#for creating all cards in a game
SUITS = ['C', 'S', 'H', 'D']
VALS = ['A', '0', 'K', '9', 'Q', 'J']
FULLDECK = [suit + val for suit in SUITS for val in VALS]
... | [
"peter.stehr99@gmail.com"
] | peter.stehr99@gmail.com |
644bcacf0515b331c9bdaef4ab5c70d5990a3e12 | 0fd8c217f9c4279c3957d6e7da10c526b74a1d3b | /login_project/urls.py | 1b7b948e97da17c4cc05ab9d8588dd7ef66c72b2 | [] | no_license | dhananjaym11/python-django-login | 1613b45995f2e96242fd5176ac3e840ba5794e36 | 36381dd82a18f49c8d89c93244482673205c4899 | refs/heads/master | 2020-06-11T05:00:14.362760 | 2019-06-27T07:20:30 | 2019-06-27T07:20:30 | 193,856,322 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,006 | py | """login_project URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class... | [
"dhananjay.mane@xoriant.com"
] | dhananjay.mane@xoriant.com |
7d828beea5c587f81e6381a0c054f845e2b47ec5 | b98d9bca3a094bc2c3528db7cee612e3203183d4 | /proyectoRGMG/settings.py | 1d932825fed6c5ea4d521a4bceffb07053085c8b | [] | no_license | saenzjulian/RGMG-software | 6f62f071e679bc45396883c37ce1ab6f70b42418 | 8f8f0408c7cffcdaca02b7a727fffcd6ad2440e5 | refs/heads/master | 2022-11-23T18:59:47.608078 | 2020-08-05T20:05:34 | 2020-08-05T20:05:34 | 267,161,125 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,417 | py | """
Django settings for proyectoRGMG project.
Generated by 'django-admin startproject' using Django 3.0.3.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import ... | [
"julian@treecode.co"
] | julian@treecode.co |
70c8c8a64af43dce14259867c8b7bb96acde538f | cca4cd05531c42cf2440f8de6d9372aab5ed9f21 | /AYED/AYED 2020-1/religions.py | 281a0bc42e349199a86f9cf5cf3cc431abbf9725 | [] | no_license | CamiloCastiblanco/AYED-AYPR | 35c84bfb41c34e645f5b7a60945e682e7bf849e8 | 69952a893233d3d4dc69f31ce678a607bd2e6a0b | refs/heads/master | 2022-12-04T09:11:41.986471 | 2020-08-14T21:45:59 | 2020-08-14T21:45:59 | 287,629,283 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 826 | py | from sys import stdin
class DISTRASCHOLTEN:
def __init__(self,x):
self.data = [i for i in range(x+1)]
self.size = x
def union(self,i,j):
i = self.ans(i)
j = self.ans(j)
if j != i:
self.data[i] = j
self.size-=1
def ans(self,x):
... | [
"noreply@github.com"
] | noreply@github.com |
19e9eb6c0f0128d8724b3f15dc2aeca49e1f211b | 2d921bb03eade0763ddb3a9cc5cb637730ecbde1 | /bdt/misassign_masses.py | 21339aff913311d7f6730d9ba3d5c46fd49fded9 | [] | no_license | rmanzoni/WTau3Mu | 10c57971b80f9769578284abd69009008901eea7 | 5ad336df976d5a1b39e4b516641661921b06ba20 | refs/heads/92X | 2021-01-18T15:10:41.887147 | 2019-05-09T12:48:00 | 2019-05-09T12:48:00 | 84,342,825 | 0 | 7 | null | 2018-07-19T09:08:19 | 2017-03-08T16:35:42 | Python | UTF-8 | Python | false | false | 4,883 | py | import ROOT
import root_pandas
import numpy as np
import pandas
import root_numpy
global m_k
global m_pi
m_k = 0.493677
m_pi = 0.13957061
# tree = ROOT.TChain('tree')
# tree.Add('/Users/manzoni/Documents/tau3mu2018/16april/ntuples/data_enriched_16apr2018v16.root')
print 'loading dataset...'
dataset = pandas.DataFr... | [
"riccardo.manzoni@cern.ch"
] | riccardo.manzoni@cern.ch |
91b34d7a48845d76c08dbfca409f01646a412e4e | 416cf107307e2447288d752be8bbf285015c20a6 | /node_modules/jsdom/node_modules/contextify/build/config.gypi | aff4a46eaf9b7183e197ebd95b7347bf823d4acc | [
"MIT"
] | permissive | 468/contentbot | ff5883328f159ae2a78aa3b60e3585296abc23d4 | c592718d32ac903abf0de8c9cde2ba0a239491a6 | refs/heads/master | 2020-06-24T03:44:52.805132 | 2019-07-25T14:16:38 | 2019-07-25T14:16:38 | 198,838,308 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,337 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"clang": 0,
"gcc_version": 48,
"host_arch": "x64",
"icu_small": "false"... | [
"alexandertaylor@alexandersmbp3.lan"
] | alexandertaylor@alexandersmbp3.lan |
976fba52d59ded334a47ea201d34a74a76c04a88 | d16398cb8d45b58019a9e1d1ff3b8105098d9db1 | /positional_index_search.py | 47f469b835d05ccbf14d9dfba00686169e0f6a25 | [] | no_license | Afnan1278/retrieval-model | 64fdd327cca42710c74ab37b6a4d9f5e82744b47 | 20c5b5b1135327a0494829636987f920e5941bb4 | refs/heads/master | 2023-02-26T23:52:10.812290 | 2021-02-03T16:49:02 | 2021-02-03T16:49:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,138 | py | import os
from nltk.stem import PorterStemmer
ps = PorterStemmer()
def reading_corpus():
stopfile = open("Stopword-List.txt", "r")
stopwords = [word for line in stopfile for word in line.split()]
dirr = os.getcwd()
file = os.path.join(dirr, "TrumpSpeechs")
punctuations = '''!()-[]{};:'",<>./?@#$%^... | [
"afnananwer2@gmail.com"
] | afnananwer2@gmail.com |
933d56d5e99edaeae7ca06fd784066cc8ffc782d | 50aff0dba5bc0d2b8ab0daafd705a277e3149096 | /manage.py | 75d5ba10698c48cfaf7a046959b936b070c1c1e0 | [] | no_license | ueliojr/war_dm | 12004749443544bec02adf4ed81f33041922367d | b1d5530093dc5abed7c328f04ab0740c8db17947 | refs/heads/master | 2021-07-21T14:52:30.125562 | 2017-10-31T16:57:31 | 2017-10-31T16:57:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 809 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "war_demolay.settings")
try:
from django.core.management import execute_from_command_line
except ImportError:
# The above import may fail for some other reason. Ensure that ... | [
"jose.silvaneto@dce.ufpb.br"
] | jose.silvaneto@dce.ufpb.br |
c3dc0759d55c3bd863003122aa81d87bfceca785 | 7b9164e160b3f375c6ac28496617754aa8cf4a0b | /d_2018_1_4/longest_palindromic_substring.py | fdb379bbb425f7415c3d1d1b4ce0fbb2b3c40a2a | [] | no_license | WhalesZhong/leetcode_fun | 991854de2cb8075e1a092bd873d466a58db0216a | 2e30ee0c29bd49a276224022df1168cc433685d1 | refs/heads/master | 2021-05-04T14:28:23.325897 | 2018-02-10T12:13:00 | 2018-02-10T12:13:00 | 120,202,101 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,074 | py | # coding: utf-8
def longest_palindromic_substring(s):
"""
:param s:
:return:
"""
choice_part_start_idx = 0
is_find = False
max_length = 0
choice_part = ""
for idx, w in enumerate(s):
choice_part += w
# 如果下一个字符不符合则移动已选中的区间,记录长度
if choice_part != choice_part[... | [
"whaleszhong@gmail.com"
] | whaleszhong@gmail.com |
9667e86b4ca07c2e6716741e6cf0e9de4b7bdee6 | 4ad04de638ccfed398adb5496826c0d19e755d9e | /models/hr_contract_wage_type_period.py | 50c5042a81dece83a28e3107e503007f66523598 | [
"BSD-2-Clause"
] | permissive | aroodooteam/aro_hr_payroll | 2f399a0f2e45652d2791df48a95e5ad66a051d71 | dd95d500827566f1444e32760dda5b5b69a8906e | refs/heads/master | 2021-01-22T13:47:46.272642 | 2018-01-29T11:25:35 | 2018-01-29T11:25:35 | 100,686,534 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 629 | py | # -*- coding: utf-8 -*-
from openerp.osv import fields, osv
import time
import logging
logger = logging.getLogger(__name__)
# Contract wage type period name
class hr_contract_wage_type_period(osv.osv):
_name = 'hr.contract.wage.type.period'
_description = 'Wage Period'
_columns = {
'name': field... | [
"aroodoo@asus.aro"
] | aroodoo@asus.aro |
7b440b9c4a0ca5a1ae2bd7a5bbe81865d3bad1f6 | 3826ba3af7a09204a616f9ffa4f3d61261b4ff27 | /tools/utils.py | a004f696bb7c94129ecf2a2309d343fda61cdd75 | [
"MIT"
] | permissive | sunjiangbo/UEFI_RETool | cd019468acbcd141e631a966c8ba570d1ddc2434 | 1c866b44335d9eaf46bac2c37960d16c68d8b196 | refs/heads/master | 2021-03-02T02:28:45.832163 | 2020-03-05T15:43:10 | 2020-03-05T15:43:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,644 | py | # MIT License
#
# Copyright (c) 2018-2019 yeggor
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify... | [
"vasilenko.yegor@gmail.com"
] | vasilenko.yegor@gmail.com |
14a8cf50a24e710cb32fd104efb1e7fdbb2df962 | 129d823eb0e783ff7208739eb69a786d61224a52 | /Problem005/main.py | 9b106467ac4475fd2a5983439989d348d9a883fe | [] | no_license | bomjic/StudyPython | dd493cdfc943da8c703ed5f7fd7584a466ec8623 | 8e850c6476c2dc3e0d9b8c996efa50e96fc76970 | refs/heads/master | 2020-07-05T14:44:38.843582 | 2018-05-03T19:14:38 | 2018-05-03T19:14:38 | 74,114,811 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 260 | py | dividor = 2520
flag = False
while flag != True:
for i in range(2, 21):
if dividor % i != 0:
break
if i == 20:
print (dividor)
flag = True
# if dividor % 1000000 == 0:
# print(dividor)
dividor += 2
| [
"mikhail.baikov@gmail.com"
] | mikhail.baikov@gmail.com |
49342dc0d723463fcc91fa44a273f4626921a157 | 6bb96c5116e7210f9abd4b7d0460eb85c95e99c6 | /毕设/tutorial/tutorial/mymiddlewares.py | 08a7073e44ccbed042249eda483de5a1c97ec2aa | [] | no_license | strange-jiong/graduation-project | 7940416c9a75a7337ef52dd988d95fc40628c178 | d5f0baaa7f23a7e246d671f6b2f0e8ee96520377 | refs/heads/master | 2021-01-10T03:04:46.517081 | 2017-06-14T02:02:17 | 2017-06-14T02:02:17 | 48,604,207 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,775 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Date : 2015-12-01 21:37:33
# @Author : jiong (447991103@qq.com)
# @Version : 0.1
import sys
reload(sys)
sys.setdefaultencoding('utf-8')
from scrapy.exceptions import IgnoreRequest
from scrapy.contrib.downloadermiddleware import DownloaderMiddleware
import random
im... | [
"447991103@qq.com"
] | 447991103@qq.com |
bb4794cef121a09d6791df6d946f0b5ec141d088 | d52b11bd06b1d7aa8fe120a32b98cce9a1c27279 | /ML_Models_DT_Gaussian_LR/Models/GaussianNB.py | 214e78358bd825aef7c355b5ea44b0b2c1535b24 | [] | no_license | diksha16017/MLForBeginners | 5afd24b8f34b89860c37acec4ae91ff895716230 | 7c4724ee282d08a1a6673b1e919d9c139a213cf3 | refs/heads/master | 2020-03-15T19:25:10.706034 | 2018-05-05T19:19:37 | 2018-05-05T19:19:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,915 | py | import math
import numpy as np
from collections import Counter, defaultdict
import operator
# make sure this class id compatable with sklearn's GaussianNB
class GaussianNB(object):
def __init__(self):
# define all the model weights and state here
self.label_probabilities = dict()
self.me... | [
"jhambneha30@gmail.com"
] | jhambneha30@gmail.com |
74b05663dfd6a799c1fee801ffbf488de14167c8 | c57bc3dd44198414c7ec3db45598a607f5389edb | /config.py | 79372b8bbb97886b81b40af36a7272a60ba1aae1 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | maozcan/youtube-dl-server | 368f94e1a8a4fdcc5ecce2d76281cd863077bcc0 | db35eefab908ae834eef1b145fb1786345093cda | refs/heads/master | 2023-05-12T09:53:56.835467 | 2021-06-06T23:15:03 | 2021-06-06T23:15:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 329 | py | import os
# Check for legacy DB to not break anything
if (os.path.exists('./youtube-dl-server-database.db')):
DATABASE_PATH = ('./youtube-dl-server-database.db')
else:
DATABASE_PATH = os.path.join('db' + os.sep + 'youtube-dl-server-database.db')
# LEGACY DATABASE_PATH
#DATABASE_PATH = ('./youtube-dl-server-data... | [
"2100452+flatline-84@users.noreply.github.com"
] | 2100452+flatline-84@users.noreply.github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.