blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 220
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1ebd1dd0aa7d1f4a4140c09684866a9a7eccdcb8 | d685a23ff883f216f5ab8ea6ba257eb660e6a931 | /laboratorios/lab01/codigo/rectangle.py | c50f4713939745bab2bd9d972bd8ca6c78d7b997 | [] | no_license | varisti7/ST0245-001 | 2abde80a13d6139018e6e7ac9b99fd476f572c98 | 3582eb0a06f22af496d63458db55d8d47b797c79 | refs/heads/master | 2023-01-12T20:29:19.816894 | 2020-11-17T21:27:02 | 2020-11-17T21:27:02 | 283,341,706 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,299 | py | import time, string, random
import matplotlib.pyplot as plt
def rectangle(size2n):
"""
This agorithm recieves an integer as the number of rectangles of 2xn and calculates of how
many ways it could be filled with 2x1 rectangles.
"""
if size2n == 1 or size2n == 2: # C1
return size2n
else:... | [
"varisti6@gmail.com"
] | varisti6@gmail.com |
a03f688cd3bb6ceef3f26b749170bc2c0ac710d7 | 82770c7bc5e2f27a48b8c370b0bab2ee41f24d86 | /microblog/flask/venv/lib/python2.7/site-packages/billiard/forking.py | 57fc9795e47d83e6c656232b9ddde88438c6ec12 | [
"Apache-2.0"
] | permissive | johankaito/fufuka | 77ddb841f27f6ce8036d7b38cb51dc62e85b2679 | 32a96ecf98ce305c2206c38443e58fdec88c788d | refs/heads/master | 2022-07-20T00:51:55.922063 | 2015-08-21T20:56:48 | 2015-08-21T20:56:48 | 39,845,849 | 2 | 0 | Apache-2.0 | 2022-06-29T23:30:11 | 2015-07-28T16:39:54 | Python | UTF-8 | Python | false | false | 17,515 | py | #
# Module for starting a process object using os.fork() or CreateProcess()
#
# multiprocessing/forking.py
#
# Copyright (c) 2006-2008, R Oudkerk
# Licensed to PSF under a Contributor Agreement.
#
from __future__ import absolute_import
import os
import sys
import signal
import warnings
from pickle import load, HIGHE... | [
"john.g.keto@gmail.com"
] | john.g.keto@gmail.com |
43fa9cc363b25fbbb658601647398ac8dbfe41aa | a25b26b3b27b59325915c10dfafd607faae4ed01 | /pickfrombothsides.py | 879435386092602b6015b9cf8eab00d3d4514243 | [] | no_license | helplearnhome/Coding-Interview-in-Python | 3e3d9f42b993b9ea8e86e25d8a8e36c1610c45f2 | 52a76689a5808a89ebb8399bf3e6d4922c4c190b | refs/heads/master | 2023-07-17T06:30:09.207235 | 2021-09-08T03:28:33 | 2021-09-08T03:28:33 | 397,350,111 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,823 | py | # # Recursive
def func(A,B,i,j,sum):
if B == 0:
# print(sum)
return sum
return max(func(A,B-1,i+1,j,sum+A[i]),func(A,B-1,i,j-1,sum+A[j]))
class Solution:
# @param A : list of integers
# @param B : integer
# @return an integer
def solve(self, A, B):
# print(B)... | [
"noreply@github.com"
] | helplearnhome.noreply@github.com |
47f0abfaceb11e660d4f305e745db7fe9fee819f | da84fa23cc4cf2e81e50892085ac162508bff155 | /nestris_ocr/capturing/linux/linux_mgr.py | 6381209b8dd85f1880aca2b7eb9cbc653ec9f0cd | [] | no_license | alex-ong/NESTrisOCR | 83ddaba55b100f0ee20e924731459e547e321887 | 488beeb30e596ccd0548152e241e1c6f772e717b | refs/heads/master | 2023-01-10T08:02:41.702538 | 2021-07-07T06:33:39 | 2021-07-07T06:33:39 | 169,196,192 | 25 | 8 | null | 2022-12-27T15:37:40 | 2019-02-05T05:44:34 | Python | UTF-8 | Python | false | false | 1,202 | py | import Xlib
import Xlib.display
from Xlib import X
class WindowMgr:
"""Encapsulates some calls for window management"""
def __init__(self, hwnd=None):
self.handle = hwnd
def checkWindow(self, hwnd):
"""checks if a window still exists"""
return hwnd
def getWindows(self):
... | [
"the.onga@gmail.com"
] | the.onga@gmail.com |
92342462dbbae240ef7cda2ffdb9248d3c5c9ee5 | d9ebec1b75f31881ae7e05139a9ad7004dd92227 | /api/recommender/models.py | 55993431ad80a72aeec090a0f85ea6cc58322235 | [] | no_license | Drobo07/eBackend | 83efa41aac6dddc483b8a4061bbcb00fee9208b7 | cf090d5d4b0c4d5bb8c50c511dbc0f3d90e1aca4 | refs/heads/master | 2020-12-21T15:08:18.811907 | 2019-05-02T17:18:49 | 2019-05-02T17:18:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 768 | py | from django.db import models
from django.contrib.postgres.fields import ArrayField
from datetime import datetime
from general.models import Publications
# Create your models here.
class BarcRequest(models.Model):
title = models.CharField(max_length=128,null=False)
abstract = models.TextField(max_length=1024,... | [
"dipeshkrj14@gmail.com"
] | dipeshkrj14@gmail.com |
f7893075ad7f7f33d47f38004cf784a9fc9afb2d | ebe11743bb33a1bfe36cddf92551a1e08b3e565d | /advanced/Common.py | d01638f48bbc3fb6f7e1f69744c92fc1ace91f0e | [] | no_license | nick-cheatwood7/python-mondrian | 671ca3aa0734fa283906181f81d1b29be3dccb1b | e5f98b6009eb41eacc90f5906218bb3f3e59452e | refs/heads/main | 2023-03-13T10:30:36.799891 | 2021-02-22T07:55:29 | 2021-02-22T07:55:29 | 339,519,950 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,750 | py |
# Created 02/22/2021 by Nick Cheatwood
# Contains any numbers or functions generic enough to warrant being outside of main file
import random
# Specify canvas width/height
canvasWidth = 1024
canvasHeight = 768
# Specify splits
# 'Generate a random integer between 120 and the width of the region * 1.5'
# If the ran... | [
"nick.cheatwood@gmail.com"
] | nick.cheatwood@gmail.com |
49da684394e0562e287537b0ace76cdd6969645c | ec649dc247e5229f78c2bcf51fdef1c57f3cdbff | /OCR/tesseract-invoice.py | 0a8f8a6159e2642f490c1a13260c8f55f28faaf0 | [] | no_license | dainv1989/machine-learning | 0f1686a9bf921bfcf665a786c63ec68b189942a0 | e44b14041f577ebe5d5ce785af45e4226e0d2756 | refs/heads/master | 2021-07-11T20:39:39.423568 | 2020-03-22T23:55:10 | 2020-03-22T23:55:10 | 93,155,384 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,415 | py | import cv2
import re
import pytesseract as pts
from pytesseract import Output
def show_textboxes(image):
d = pts.image_to_data(image, output_type=Output.DICT)
#print(d.keys())
n_boxes = len(d['text'])
for i in range(n_boxes):
if int(d['conf'][i]) > 60:
(x, y, w, h) = (d['left'][i],... | [
"dainv1989@hotmail.com"
] | dainv1989@hotmail.com |
837640dec4290cdc6c2b69db42c87b60beb2a646 | 327a6d74d22fb06d76f5da814452e76aa8999692 | /stanCode_projects/Photoshop/green_screen.py | ff846ff20b3d35e8ea5a12d8952923732dfd0a2b | [
"MIT"
] | permissive | siyuban/stanCode | 6a5c2114a3bc949c1d6e5a70b987dcda74161874 | 5cca179a7542abdf1fe3a9e1da256945241249cc | refs/heads/main | 2023-02-11T16:20:08.707138 | 2021-01-09T15:44:55 | 2021-01-09T15:44:55 | 324,043,306 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,464 | py | """
File: green_screen.py
Name:萬思妤
-------------------------------
This file creates a new image that uses
MillenniumFalcon.png as background and
replace the green pixels in "ReyGreenScreen.png".
"""
from simpleimage import SimpleImage
def combine(background_img, figure_img):
"""
:param background_img: Simpl... | [
"noreply@github.com"
] | siyuban.noreply@github.com |
11065362a8ac77972c519aadeae585300bb5085d | 7bededcada9271d92f34da6dae7088f3faf61c02 | /pypureclient/flasharray/FA_2_25/models/active_directory_get_response.py | ee529854e041a3ff612ccf174315845d4e2c49ef | [
"BSD-2-Clause"
] | permissive | PureStorage-OpenConnect/py-pure-client | a5348c6a153f8c809d6e3cf734d95d6946c5f659 | 7e3c3ec1d639fb004627e94d3d63a6fdc141ae1e | refs/heads/master | 2023-09-04T10:59:03.009972 | 2023-08-25T07:40:41 | 2023-08-25T07:40:41 | 160,391,444 | 18 | 29 | BSD-2-Clause | 2023-09-08T09:08:30 | 2018-12-04T17:02:51 | Python | UTF-8 | Python | false | false | 5,613 | py | # coding: utf-8
"""
FlashArray REST API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: 2.25
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re
import six
import typing
from ... | [
"noreply@github.com"
] | PureStorage-OpenConnect.noreply@github.com |
e0cf8c5298a8ee4e8a3b21eb3b1fe65504c3047e | 204ec78fcebcea9e1e1da4905cf3fad0a514b01f | /test/unit/test_timeout.py | 4990b87aad1b2d40888f75acc3481c349d3eb4e0 | [
"Apache-2.0"
] | permissive | ARMmbed/pyOCD | 659340bf8753aa8e15a72890b8bea64dff2c2f42 | d4cdcf7e532cae17caad866839287bbe1e0d952b | refs/heads/master | 2023-05-31T13:45:15.797588 | 2020-10-12T13:55:47 | 2020-10-12T13:55:47 | 190,203,829 | 3 | 1 | Apache-2.0 | 2019-07-05T11:05:40 | 2019-06-04T13:09:56 | Python | UTF-8 | Python | false | false | 1,942 | py | # pyOCD debugger
# Copyright (c) 2017-2019 Arm Limited
# SPDX-License-Identifier: Apache-2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0... | [
"flit@me.com"
] | flit@me.com |
f158c6821e350e490fa25d9eda4fc880f01fe9d0 | 6e2dc82bcfbc420ce6fd8e890f9f254e8e594902 | /www/cursivedata/migrations/0005_auto__add_field_pipeline_anim_loop.py | 92063d7e04206acf824ce406bdbd7eabe0b2d325 | [
"CC-BY-4.0"
] | permissive | mattvenn/cursivedata | 8ea86bde4a58a5678b1116953d17f0ae3600daf6 | 43e43263bef6f01698166d87bcff00b246957277 | refs/heads/master | 2021-01-17T08:06:38.715586 | 2016-07-22T16:04:10 | 2016-07-22T16:04:10 | 5,599,674 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,340 | py | # -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'Pipeline.anim_loop'
db.add_column('cursivedata_pipeline',... | [
"matt@mattvenn.net"
] | matt@mattvenn.net |
4a1c309a93de9647a0f1adc90e88ad9c8624b3be | 2b8c88dfee5c5a784357515eafe8cd5f997c8774 | /leetcode/dynamic_programming/code-84.py | 1b9e7013a5652e79e6603e09d069daf7eb6aa134 | [] | no_license | archenRen/learnpy | e060f3aa2f77c35fc1b12345720af6c8b528da57 | 934ef76b97297f746a722a48c76672c7bc744cd9 | refs/heads/master | 2022-04-28T20:25:59.114036 | 2020-05-03T02:16:03 | 2020-05-03T02:16:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,187 | py |
# This is a TLE solution.
def largestRectangleArea2(heights: 'List[int]') -> int:
n = len(heights)
max_val = 0
for i in range(n):
min_val = heights[i]
max_val = max(max_val, min_val)
for j in range(i-1, -1, -1):
min_val = min(heights[j], min_val)
max_val = m... | [
"wangdi03@ppdai.com"
] | wangdi03@ppdai.com |
8e19d867074a1f86ccc691db65d40f99ea7ffb2b | c989985588c9c3132cb3df4710a59fa8df7c7f2d | /user.py | 3bf573c28689ca53aea39411c68c0e0d0a081ec0 | [] | no_license | hsolmaz/amazonbrowsertest | 3100886d08ba88f16efe33ef71db9dd4bf1b4566 | 54f0010ffcbcda89b2e85a5ab6f1d2724303a52e | refs/heads/master | 2020-03-21T00:39:38.131878 | 2018-06-21T11:16:55 | 2018-06-21T11:16:55 | 137,903,641 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,096 | py | # -*- coding: utf-8 -*-
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
import random
import string
import time
char_set2 = string.ascii_lowercase + string.digits
random_number = char_set2.split('0')[1]
char_set = char_set2.split('0')[0]
random_numbers = ''.join(random.sample(random_num... | [
"huseyin@hayalmahsulleri.com.tr"
] | huseyin@hayalmahsulleri.com.tr |
2d8ac059bbfc47157c68170ee0adcfcc597a30df | d6c7a20e0286d389ba17aef2b22931bd5d294dd0 | /postgres_demo.py | a722c97c42594c3b784794e756dfd057802fee71 | [] | no_license | bashooff/databases_demo | d1ebfde67f418324f45cf11922ce4395f96f9028 | 281cd00254451519e989bd076ed70bf4fe3cacde | refs/heads/main | 2023-04-05T22:02:20.629234 | 2021-05-05T08:51:35 | 2021-05-05T08:51:35 | 364,515,688 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,743 | py | import psycopg2
def create_table():
# Connect to a database
conn = psycopg2.connect("dbname='database1' user='postgres' password='postgres1234' host='localhost' port='5432' ")
# Create a cursor object
cur = conn.cursor()
# Write SQL query
cur.execute("CREATE TABLE IF NOT EXISTS store (item T... | [
"bashooff@hotmail.com"
] | bashooff@hotmail.com |
d5b6777d7162805424e48a672f5d020c4bd445be | d7d22ea566bd8e97f7bfe956118ad3be4edb9d2f | /game/entity/actor.py | 355a0a98d7f1aa4005adc119a411a9821d482da1 | [] | no_license | philax/gourd_of_the_lings | c02ef1db5467306c7994b20280c7c140ea65280f | 8bdf4c0c410e39e4ac531906aacbb98d5122c632 | refs/heads/master | 2021-01-10T05:35:45.802300 | 2015-12-17T22:35:22 | 2015-12-17T22:35:22 | 48,065,132 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 800 | py | class Actor(object):
def __init__(self, name, base_hp, base_dmg, inventory=[]):
self.base_hp = base_hp
self.hp = base_hp
self.name = name
# if(stats == None):
# self.stats['HP'] = 10
# self.stats['STR'] = 5
# self.stats['AGI'] = 5
# self.stats['DEX'] = 5
... | [
"plaks@turbine.com"
] | plaks@turbine.com |
66a53d2b71a6f7420dc7a93f85b662fb08440da4 | f6a24e544fe48cb13fa38fcde11ce9b57d119eba | /api.py | 7e4075258107e12abd359e2ec3feba410554f86c | [
"MIT",
"BSD-3-Clause",
"Apache-2.0"
] | permissive | postsai/postsai | b8afeb44d87ff16cd0526ba593f70446751affc6 | c2b8363c34ff28a8c54b04548ff1c72c8a98e2c3 | refs/heads/master | 2023-08-16T16:50:30.671405 | 2023-08-10T15:08:17 | 2023-08-10T15:08:17 | 52,112,371 | 5 | 5 | NOASSERTION | 2023-09-14T14:19:35 | 2016-02-19T19:49:22 | Python | UTF-8 | Python | false | false | 1,985 | py | #! /usr/bin/python3
# The MIT License (MIT)
# Copyright (c) 2016-2021 Postsai
#
# 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... | [
"nhnb@users.sourceforge.net"
] | nhnb@users.sourceforge.net |
341107c12104363f5af83709a82a18422f87fb29 | 81246c8049ebf8d58e9614f4f062ec4dc0a2bd8b | /venv/Scripts/django-admin.py | 62609559dbfa35dd7608610ad723d1334c72616d | [] | no_license | nikakuzina/django | cf68e43f9779c5ee19ebfc95c4173c31338c0bec | afb2c4fe6f6e72ecad9653e72758350989e794e7 | refs/heads/main | 2023-01-31T15:07:37.111973 | 2020-12-07T22:20:18 | 2020-12-07T22:20:18 | 319,457,660 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 702 | py | #!C:\Users\Admin\PycharmProjects\djangonika\venv\Scripts\python.exe
# When the django-admin.py deprecation ends, remove this script.
import warnings
from django.core import management
try:
from django.utils.deprecation import RemovedInDjango40Warning
except ImportError:
raise ImportError(
'django-admi... | [
"stasciobanu777@gmail.com"
] | stasciobanu777@gmail.com |
0bd4bb83349048366f08e67ed891cd7688d8efe5 | 9de52a33dfa175b3f4994658ad6a2261f045c8b0 | /难点积累/通过颜色特征直方图与滑动窗口比较图片相似性.py | c5f30321927b646fe0c3e45f26744c413506b9df | [] | no_license | infcnwangjie/opencv | 64140cebc64cacc9fe078bb266ee6569ba62bc0f | ea18ef4e9c514f703ed8fdd83b0f5d74069e1d90 | refs/heads/master | 2022-12-14T23:01:21.642076 | 2020-11-04T08:01:54 | 2020-11-04T08:01:54 | 133,104,182 | 0 | 0 | null | 2022-12-08T11:40:53 | 2018-05-12T01:38:08 | Python | UTF-8 | Python | false | false | 2,060 | py | # -*- coding: utf-8 -*-
import cv2
#https://baijiahao.baidu.com/s?id=1615404760897105428&wfr=spider&for=pc
def color_similar_ratio(image1, image2):
if image1 is None or image2 is None:
return 0
img1 = cv2.cvtColor(image1, cv2.COLOR_BGR2HSV)
img2 = cv2.cvtColor(image2, cv2.COLOR_BGR2HSV)
hist1 = cv2.calcHist([img... | [
"wangjie_rj@163.com"
] | wangjie_rj@163.com |
4ab262e191693747daa93149c342a0572400a678 | 0255c635cd5aba99c7dafb3f34757fc4761ecbb7 | /annotation_pipeline/mturk_backend/hit_results.py | b7381b2b864259150bd21a56e92d852280a9fcc7 | [
"Apache-2.0",
"MIT"
] | permissive | tomerwolgithub/Break | 021a6ecfd780fbcd0556dbdc8dcd6a2f2fe16115 | e7106929b9b7cca069e5d33c894d0eec10ef538f | refs/heads/master | 2022-12-17T14:31:34.528576 | 2021-10-30T08:56:09 | 2021-10-30T08:56:09 | 233,827,307 | 46 | 13 | MIT | 2022-12-08T03:40:20 | 2020-01-14T11:35:00 | JavaScript | UTF-8 | Python | false | false | 1,537 | py | """HIT results data structure"""
import json
class HITResults:
def __init__(self, hit_id, assignment_id, worker_id, submit_time):
self.hit_id = hit_id
self.assignment_id = assignment_id
self.worker_id = worker_id
# submit_time is a datetime object which we convert to a string
... | [
"noreply@github.com"
] | tomerwolgithub.noreply@github.com |
610ac8671393a3cc93c8ac2f5fb7cbe982e9e849 | 96090102d5e87f1771ba5a90f7b676f4ccb0afa6 | /src/profiles/forms.py | ef4d8adbf95e2f2acf6f725493fe0bef6afcef2b | [] | no_license | rahulsayon/SocialWedding | b4b37ad69b89236784c6fb983ab27b4cd2e4266e | ab96b6a5d381936463065e75f74d0c8ffd3b1907 | refs/heads/master | 2022-12-18T15:08:39.380348 | 2020-09-27T14:49:40 | 2020-09-27T14:49:40 | 299,053,233 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 197 | py | from django import forms
from . models import Profile
class ProfileModalForm(forms.ModelForm):
class Meta:
model = Profile
fields = [ 'first_name','last_name','bio','avatar' ] | [
"rahulsayon95@gmail.com"
] | rahulsayon95@gmail.com |
24bb1c93e94a9f3ea07ca4b69095ba78a63c236d | 569c958cf7a13f61ebe1417caee671be5ba4adb4 | /LFUcache-Python/LFUCache.py | a1c98614d68c3c1bb3abb707f57c2efb94946ea7 | [] | no_license | Dechuan0629/LeetCodePractice | 932c079aff4cc1ef01d3a57b2a3d70389c1c81e3 | 8e801a667617bc76854f02dbe2fcd068d448fa39 | refs/heads/master | 2022-12-26T02:37:00.247683 | 2022-12-15T09:29:17 | 2022-12-15T09:29:17 | 246,292,015 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,401 | py | import time
class LFUCache:
def __init__(self, capacity: int):
self.capacity = capacity
self.current_capacity = 0
self.cache = {}
def get(self, key: int) -> int:
try:
ans = self.cache[str(key)][0]
self.cache[str(key)][1]+=1
self.cache[str(key... | [
"610459802@qq.com"
] | 610459802@qq.com |
6310e23a458f6e5fc6663a32b235b73bc2454352 | 0da6893c3d64c5653e33b1330e7ea02975e6138b | /Flame_Sensor_Publish.py | 454917a337e2c4222609ddcdb705913bd80d80b5 | [] | no_license | AdarshKBulusu/projectWildfire_Alert-Detection | 6faf6a5b39846d1fd2cdbccf44868d2b23aba1b1 | 2a698a29899aae0953ec4feb95c9b964921038d2 | refs/heads/master | 2022-11-20T00:23:12.646675 | 2020-07-22T01:49:29 | 2020-07-22T01:49:29 | 281,527,148 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 508 | py | import socket
host = '10.0.0.251.' #127.0.0.1
port = 50008
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.bind((host, port))
s.listen(1)
print("hello starting program")
conn, addr = s.accept()
print ("Connection from", addr)
while True:
data = conn.recv(1024)
if not data: break
print("Recieved:... | [
"noreply@github.com"
] | AdarshKBulusu.noreply@github.com |
ae8c74c7b7f7206875a2b5b26902c89d55155d71 | d6362b0d78433efb7b6f0a59ed427bf58d5bad47 | /python_basics/multiprocessing/other_tests/pool_map.py | ec8073e05d2559b0a26b9e75a30f10d1c6c6b3b5 | [] | no_license | davidbp/python_tutorials | 27c78791ad1ea041d543a8cd5b48a6f58bca700d | 5a7bc14a967f18d6820b39b152fc8219c95d3f75 | refs/heads/master | 2023-07-13T11:26:21.374596 | 2023-07-01T21:19:55 | 2023-07-01T21:19:55 | 104,083,908 | 14 | 4 | null | 2022-06-21T22:37:29 | 2017-09-19T14:13:34 | Jupyter Notebook | UTF-8 | Python | false | false | 526 | py |
from random import random
from time import sleep
from multiprocessing.pool import Pool
def multi_run_wrapper(args):
return task(*args)
def task(identifier, id):
value = random()
print(f'Task {identifier} executing with {id}', flush=True)
sleep(1)
return value
# protect the entry point
if __name_... | [
"davidbuchaca@gmail.com"
] | davidbuchaca@gmail.com |
8dfafbc28a614569c623e5f7c6693a7448952581 | b48a447030cd1afd7c38f765eb21448ff87c7b2f | /app/app/test.py | c767945514566650545e409e3378eeeac378c435 | [] | no_license | joshuagato/django_rest_framework_docker_setup | 87bba4292d708bc33340c07eec08bf2b00917bb6 | ea5f69654616993de91f4993a216a195b1f64657 | refs/heads/master | 2022-12-13T20:15:59.224836 | 2020-09-19T16:36:14 | 2020-09-19T16:36:14 | 295,513,713 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 362 | py | from django.test import TestCase
from .calc import add, subtract
class CalcTests(TestCase):
def test_add_numbers(self):
"""Test that two numbers are added together"""
self.assertEqual(add(4, 6), 10)
def test_subtract_numbers(self):
"""Test that values are subtracted and returned"""
... | [
"joshuagato37@gmail.com"
] | joshuagato37@gmail.com |
bd5146467d282b22af61c534fd0e9f2dd2af0c1e | eeee85ce45554dc328776fa5b6f24c894c86a098 | /bikeshed/app/admin.py | 034d9f6b95426c879ccfcfc4d05eaba3613feeea | [] | no_license | varavan/bikeshed-test | 646b0fc4dcd452dd398c46fe75ad2154009f853e | 39b93c340362e02ebf06290cd2c0b214696579c8 | refs/heads/master | 2021-01-11T18:54:58.106643 | 2017-01-22T18:12:48 | 2017-01-22T18:12:48 | 79,654,743 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 102 | py | # coding=utf-8
from django.contrib import admin
from .models import Brand
admin.site.register(Brand)
| [
"ivan.ruiz.delatorre@gmail.com"
] | ivan.ruiz.delatorre@gmail.com |
ffd4ff39507434f06cbbc5a0767aeadf66cdf5a4 | 2bdedcda705f6dcf45a1e9a090377f892bcb58bb | /src/main/output/idea/party/issue/line_friend/group_lot_guy_lombok_kind/door/oauth.py | 555d4e970019c6d7f81128a63b321c2efb7bdedb | [] | no_license | matkosoric/GenericNameTesting | 860a22af1098dda9ea9e24a1fc681bb728aa2d69 | 03f4a38229c28bc6d83258e5a84fce4b189d5f00 | refs/heads/master | 2021-01-08T22:35:20.022350 | 2020-02-21T11:28:21 | 2020-02-21T11:28:21 | 242,123,053 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,672 | py | const request = require('request')
const uuidv4 = require('uuid/v4')
const { LimitReachedError } = require('./errors')
const ITEMS_IN_REQUEST_LIMIT = 25
const REQUEST_CHAR_LIMIT = 5000
const CHAR_PER_HOUR_LIMIT = 2000000
// const subscriptionKey = process.env.TRANSLATOR_TEXT_KEY;
// if (!subscriptionKey) {
// throw... | [
"soric.matko@gmail.com"
] | soric.matko@gmail.com |
7094d4bbe7a500eb46faa9fac35c316ada1389af | 77fc5af96da1d461c86c7f9668b64b99ca04a1b6 | /codes/horner.py | 4458f960d38c57f60ba6940082b190afccdbd331 | [] | no_license | rene-d/edupython | 5b6bc8ddb5eb8ec896ee70fb961d4e689af1075a | 1261d0c7aae17bb2d4ff3370860768b73ba4172d | refs/heads/master | 2020-11-24T10:07:18.504472 | 2019-12-21T21:03:08 | 2019-12-21T21:03:08 | 228,099,675 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 425 | py | # Méthode de Hörner
# https://edupython.tuxfamily.org/sources/view.php?code=horner
# Créé par IANTE, le 12/07/2011
from lycee import *
P=liste_demande('entrez les coefficients de P(x) par ordre des puissances croissantes')
r=demande('Entrez une racine évidente')
Q=[0]*(len(P)-1)
v=0
for d in range(len(P)-2,-1,-1):
... | [
"rene.devichi@gmail.com"
] | rene.devichi@gmail.com |
f4ece548db005dd63655e9189b41b5c461dedea0 | 2ad4b5b73b050f01f4952bd95806f3ff316fbfa4 | /Leetcode/python/sol_25(2).py | e13645131ecae05cbe6f2bafd5435c575cb5a201 | [] | no_license | Clement25/Leetcode-Solution-and-Algorithm | 5d44f4099b8fb7b81fa497cc08161e16e70285b0 | c80fd1dee21209abcbaa1fb09412cd7f2de7b586 | refs/heads/master | 2021-09-08T15:01:44.661219 | 2020-11-06T07:05:16 | 2020-11-06T07:05:16 | 178,236,299 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,490 | py | def threesumclosest(nums, target):
'''
type nums:List[int]
type target:int
rtype:int
'''
mind = 100000
nums.sort()
for i, v in enumerate(nums[:-2]):
ntgt1 = target - v
for j, u in enumerate(nums[i + 1:-1]):
ntgt2 = ntgt1 - u
if ntgt2 in nums[i + j ... | [
"35480362+Clement25@users.noreply.github.com"
] | 35480362+Clement25@users.noreply.github.com |
1ac9e3f7b26aa042692590d17c2b31da13a46806 | 3549dd941a47e359fa3ab17f2f2ab1968fb928e4 | /dataset/mini_imagenet.py | 977d67fbdfa3631520e6fc5a48353ed196f061d1 | [] | no_license | Juncheng-Dong/FSL | 74628d414a863091cfcc5627ed5dc2a54a7f2611 | 1273175c6cfc14a27dcc6d7e5b682f950b45b4ed | refs/heads/main | 2023-08-01T03:49:01.978935 | 2021-09-14T15:48:33 | 2021-09-14T15:48:33 | 406,255,683 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,283 | py | import os
import pickle
from PIL import Image
import numpy as np
import torch
from torch.utils.data import Dataset
import torchvision.transforms as transforms
class ImageNet(Dataset):
def __init__(self, args, partition='train', pretrain=True, is_sample=False, k=4096,
transform=None):
supe... | [
"jd420@research-tarokhlab-10.oit.duke.edu"
] | jd420@research-tarokhlab-10.oit.duke.edu |
39d5e277eb935eee8876c1af0b0557edcf5f6b91 | 146012dda21ab72badad6daa8f98e6b26fedb128 | /13day/9-名片系统.py | c647a413c352cb726036cb58e94329648c26b284 | [] | no_license | fengshuai1/1805 | 41786c3561beca580ba82d9e9d4347571e38e198 | 8dc3e6605cc1d6f91685ae45bfebfc062f0aa489 | refs/heads/master | 2020-03-19T07:41:40.608389 | 2018-06-28T01:45:43 | 2018-06-28T01:45:43 | 136,140,329 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,124 | py | list = []#存放名字
print("名片管理系统".center(50,"*"))
while True:
print("1:添加名片".center(50," "))
print("2:查找名片".center(50," "))
print("3:修改名片".center(50," "))
print("4:删除名片".center(50," "))
print("5:打印名片".center(50," "))
num = int(input("请选择功能"))
if num == 1:
d = {}#空字典
while True... | [
"1329008013@qq.com"
] | 1329008013@qq.com |
4eff0fd515d88525ed27929659bd4f5416c8a937 | 0181ec7a90e4e5955c88751f7ef7ab0dbbb21203 | /parser.py | cc5701698b239f2659b835cfd3032656d4c417a0 | [] | no_license | rizel/gyle | fa7d490fc587bddc0688bd02ff2cd25e4e4504b3 | e32ad8c7ba8b5c011f25c837f0bb378d9db110bf | refs/heads/master | 2023-06-13T08:11:22.627707 | 2021-07-11T22:56:33 | 2021-07-11T22:56:33 | 383,124,195 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,849 | py | import json
from pprint import pprint
from configuration import OUTPUT_FILE, INTERESTING_JOB_TITLES
from global_variables import *
def parse_informational_data():
global skipped_employees, processed_employees
global argyle_countries, argyle_languages, argyle_interesting_facts
json_content = None
with... | [
"rizelita@gmail.com"
] | rizelita@gmail.com |
265c1a982e59086f60095200d42064955cf9ed66 | f7d22242393632528f866e4cb4d08ba83550f865 | /Part 11 - XGBoost/xgboost.py | fda346b0b846cb6f0b57ae30026753a18634b205 | [] | no_license | someshjaishwal/Machine-Learning | 5ecc71685e4230f5a031b9368a89fcd34bf94568 | 3f66e282501a87131a364267486f4427bf3fab0b | refs/heads/master | 2020-03-22T05:42:46.492676 | 2018-07-03T13:12:50 | 2018-07-03T13:12:50 | 139,585,063 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,855 | py | # -*- coding: utf-8 -*-
# extreme gradient boosting
# basic libararies
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
# import dataset
dataset = pd.read_csv('Churn_Modelling.csv')
X = dataset.iloc[:,3:13].values
y = dataset.iloc[:,13].values
### PART 1 - Preprocessing Dataset
# encoding cat... | [
"noreply@github.com"
] | someshjaishwal.noreply@github.com |
a4a14ef74a6feb9dfff1fce11de617aeefe4c012 | 8f4cb6b34e4a13b0d71756987aa07d22d1e5c399 | /solutions/uri/1029/1029.py | aa872f44a910ef2e08cbb1dcaf8f16351f4eafd5 | [
"MIT"
] | permissive | kaneki-ken01/playground | e688537439d4ef937cfeb3a0be54159c5d47d51b | 1900da4a7b352b1228659631068ff365456408e1 | refs/heads/main | 2023-08-16T21:00:05.823664 | 2021-10-04T19:09:08 | 2021-10-04T19:09:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 509 | py | fibs = [0] * 40
calls = [0] * 40
def fibonacci(n):
global fibs, calls
if n <= 1:
fibs[n] = n
calls[n] = 0
else:
if fibs[n] != 0:
return fibs[n]
fibs[n] = fibonacci(n - 1) + fibonacci(n - 2)
calls[n] = calls[n - 1] + calls[n - 2] + 2
return fibs[n]
... | [
"deniscostadsc@gmail.com"
] | deniscostadsc@gmail.com |
c441941156bd0808bc93eb34a0c6ef9a076dbaee | 06164402e4a9c46a03d579175e588519dbd4048d | /experiments/experiments_gdsc/cross_validation/vb_nmf/linesearch_xval_vb.py | 013c70a9a0481ff098be2e4b97b6fb3098dc6e91 | [
"Apache-2.0"
] | permissive | XuanHeIIIS/BNMTF | 19547e36466ecee8d45fb0002d305ee6b7ba6c23 | 34df0c3cebc5e67a5e39762b9305b75d73a2a0e0 | refs/heads/master | 2020-03-27T12:47:58.375964 | 2018-06-10T10:22:19 | 2018-06-10T10:22:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,825 | py | """
Run the cross validation with line search for model selection using VB-NMF on
the Sanger dataset.
"""
import sys, os
project_location = os.path.dirname(__file__)+"/../../../../../"
sys.path.append(project_location)
import numpy, random
from BNMTF.code.models.bnmf_vb_optimised import bnmf_vb_optimised
from BNMTF.c... | [
"tab43@cam.ac.uk"
] | tab43@cam.ac.uk |
2cb62f842ce83e502bbe612b698ba73756afc2e2 | a4571dd0b2ebb0f3c50a540355910d502796ea6a | /EX - 79.py | b45ee0bd62eb1934035ac3e1b7cbf14cd3fc653c | [] | no_license | Eduflutter/EXE_python | bf2f3d881e97e75a70505635b483fda642f5f6c7 | acc38dabf3d8b694fbe674c54e283cf55a5578d8 | refs/heads/master | 2023-05-01T14:59:30.839428 | 2020-10-02T17:31:23 | 2020-10-02T17:31:23 | 366,124,391 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 791 | py | '''
Crie um progrma onde o usário possa
digitar vários valores numéricos e cadrastre-os em
uma lista.Caso o número já axista lá dentro, ele
não será adicionado.No final, serão exibidos todos
os valores únicos digitados, em ordem crescente.
'''
print('\33c')
print('\33[1;34m-\33[1;33m'*40)
print(f'\33[1;32m{":":<0}\33[... | [
"eduoliveira3939@gmail.com"
] | eduoliveira3939@gmail.com |
6dd96a9c6db1009bb2305040395a722405b07ba1 | e877a3761f4f6ceefc361eee30844e82ca4155b1 | /testing/models.py | 2a1cae72ade8df75fec16b47e780c9480994b4d6 | [] | no_license | AlexSilva18/StatikA | a24b2d54b63b7038188310fe56adddb3dbba2a8b | 7b5791ff1055d7e4fa25fc249930d5beb2b58a1e | refs/heads/master | 2021-01-01T15:54:25.604198 | 2017-08-10T18:25:54 | 2017-08-10T18:25:54 | 97,729,746 | 0 | 1 | null | 2017-07-27T16:10:16 | 2017-07-19T15:02:14 | HTML | UTF-8 | Python | false | false | 325 | py | from django.db import models
class Testing(models.Model):
title = models.CharField(max_length=255)
test_description = models.TextField(blank=True, default='')
def __str__(self):
return '{}: {}'.format(self.title, self.test_description)
def get_absolute_url(self):
return print("Hello... | [
"alex.rsilva18@gmail.com"
] | alex.rsilva18@gmail.com |
b6797ce0808d55a048fdb5f8ef31e878e2ee688e | c637f95bb4fdd6fcf5e0ee2b8a7ea59f915ebc13 | /Red Team/cobaltsrike-notif-beacon/telegram.py | 6784631dfb91f0d412b586b7c97998db51fbdd83 | [] | no_license | Crj0b/Pentest | e9bbfcc82122176ad0ae9c27961376b33fe76e94 | a893c3cbd4d34dcb70cb12430dc33558208f3c2b | refs/heads/master | 2023-03-17T10:45:31.035452 | 2019-06-30T18:23:19 | 2019-06-30T18:23:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 659 | py | #! /usr/bin/env python3
import argparse
import telepot
import socket
chat_id = 'xxx' #userID
bot = telepot.Bot('xxxxxxxx') #token telegram
parser = argparse.ArgumentParser(description='Beacon Info')
parser.add_argument('--computername')
parser.add_argument('--internalip')
parser.add_argument('--username')
args = pars... | [
"rahmat.hadi@tiket.com"
] | rahmat.hadi@tiket.com |
94849937d8f7341ee3a6c4ea309d665c8ed58ae7 | 8d1351a226efbe70d4bffa7f185e74b9fe49827e | /app/registerData/registerConform.py | 460e328c7178f6ce1647295140a13e2960b3f5b2 | [] | no_license | heojoon/flaskdemo | 3a0afb2594e736b4774ff4c6f6a3c4a4dad73489 | 9fc1fd317e37c35495a9fcf421cc78787ab31229 | refs/heads/main | 2023-04-05T05:46:47.244706 | 2021-04-17T13:04:03 | 2021-04-17T13:04:03 | 357,064,693 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 751 | py | # file name : registerConform.py
# pwd : /project_name/app/registerData/registerConform.py
from flask import Blueprint, request, render_template, flash, redirect, url_for
from flask import current_app as app
from app.module import forms
registerData = Blueprint('registerData', __name__, url_prefix='/register')
#@re... | [
"heojoon48@gmail.com"
] | heojoon48@gmail.com |
b335b27973d0716c0d68c2be7d60cf3fe2f5edf8 | 87270a041c6acb4d0a8926fef53d73259a59011c | /examen2CDI.py | 5f995d46bcb6d230e3eb486016f13fb83485c10e | [] | no_license | marcazu/CDI-FIB | c83b16ccbcde5bc40833cdba6b3dcdabac07f6c3 | c5df3c5279437d992877bd535d361bda312cecac | refs/heads/main | 2023-01-06T10:58:25.281409 | 2020-11-15T18:38:08 | 2020-11-15T18:38:08 | 313,098,325 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,023 | py | # -*- coding: utf-8 -*-
"""
Created on Tue May 26 17:53:30 2020
@author: Marc
"""
import numpy as np
from scipy import misc
from math import sqrt,log2,log
import matplotlib.pyplot as plt
from PIL import Image
import pywt
"-----------------EXERCICI PREFIJO-----------------"
def prefix_code(lst):
output = []
... | [
"95marc@gmail.com"
] | 95marc@gmail.com |
47b9a6bd6f7a0eeeea5383a97b107d05ed17e022 | 505506f12bf43f8693b95d4b19bc4e0aded8cab0 | /agents/runner.py | b42ea639c0ed776070021f875e865efeb36b0840 | [
"BSD-3-Clause"
] | permissive | Aubret/gym-minigrid | 8be3fe596a0a071af4c504d215655114d4c7bc76 | fc622913333da4564a7e3343920ce4415e47c5ab | refs/heads/master | 2021-06-06T20:23:48.382545 | 2021-06-04T12:31:37 | 2021-06-04T12:31:37 | 169,751,153 | 0 | 0 | null | 2019-02-08T14:58:54 | 2019-02-08T14:58:53 | null | UTF-8 | Python | false | false | 5,000 | py | import numpy as np
from baselines.a2c.utils import discount_with_dones
from baselines.common.runners import AbstractEnvRunner
#not use this
class Runner(AbstractEnvRunner):
"""
We use this class to generate batches of experiences
__init__:
- Initialize the runner
run():
- Make a mini batch of... | [
"lalumiere3@hotmail.fr"
] | lalumiere3@hotmail.fr |
72dde4d0cca5ada32dd37e6e36d79b7dc6680cba | 685e7dc080a383d12dd526a510a8f74c34ef2e71 | /tests/nonci/test_compare_pretrained.py | cf57a0df969679003ebcb54d6d1f3d881dc8170d | [
"MIT"
] | permissive | 18813055625/bert-for-tf2 | f1b86351675861ebe710bb4f94e99b89a639f83a | e71d108f0bd8c5af0c4e0b8427b144e996c02fdb | refs/heads/master | 2020-07-29T08:24:33.635201 | 2019-09-09T11:56:37 | 2019-09-09T11:56:37 | 209,729,589 | 0 | 1 | MIT | 2019-09-20T07:16:54 | 2019-09-20T07:16:53 | null | UTF-8 | Python | false | false | 8,706 | py | # coding=utf-8
#
# created by kpe on 27.Mar.2019 at 15:37
#
from __future__ import absolute_import, division, print_function
import unittest
import re
import os
import numpy as np
import tensorflow as tf
from tensorflow.python import keras
from tensorflow.python.keras import backend as K
import params
from bert i... | [
"kpe.git@gmailbox.org"
] | kpe.git@gmailbox.org |
d2fd857768b784b5d412fcfde44b925623531940 | 62d2d16c3042c4c3737f02a7b0a5a23961fc3bc3 | /exers/notas.py | 1b0fb4137568709465ba2b6ed78b072308c164be | [] | no_license | Jose-Humberto-07/pythonFaculdade | 9e3d196a2b27ed34b182519db7f0e0b0a3ac6be2 | e7a03cca421c8656b3169dfc8fe5ac5973e21176 | refs/heads/main | 2023-05-26T05:03:19.838093 | 2021-06-03T00:53:22 | 2021-06-03T00:53:22 | 369,333,671 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 827 | py |
#funcao
def media(ap1, ap2):
m = (ap1 + ap2) / 2
return m
nome = []
ap1 = []
ap2 = []
print("===============controle de notas=============")
#=[0,1,2,3,4,5]
for c in range(3):
print("Qual o nome do ",(c+1),"° aluno? ")
nome.append(input())
print("Qual a nota AP1 do " + nom... | [
"jhpnascimento96@gmail.com"
] | jhpnascimento96@gmail.com |
dda125c8083666e799a4bccbfac1e27a51202a18 | 9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97 | /sdBs/AllRun/ec_13284-2532/sdB_EC_13284-2532_lc.py | dfa44dd24cbfe5cc7255aa0893f9c5a3ba440b9b | [] | no_license | tboudreaux/SummerSTScICode | 73b2e5839b10c0bf733808f4316d34be91c5a3bd | 4dd1ffbb09e0a599257d21872f9d62b5420028b0 | refs/heads/master | 2021-01-20T18:07:44.723496 | 2016-08-08T16:49:53 | 2016-08-08T16:49:53 | 65,221,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 351 | py | from gPhoton.gAperture import gAperture
def main():
gAperture(band="NUV", skypos=[202.803875,-25.791181], stepsz=30., csvfile="/data2/fleming/GPHOTON_OUTPU/LIGHTCURVES/sdBs/sdB_EC_13284-2532 /sdB_EC_13284-2532_lc.csv", maxgap=1000., overwrite=True, radius=0.00555556, annulus=[0.005972227,0.0103888972], verbose=3)
if _... | [
"thomas@boudreauxmail.com"
] | thomas@boudreauxmail.com |
889a37fe8215598757625f98d9e00660675b6457 | 991d762127850817be2da9fbbb6ba4601d1c1252 | /test_trellis.py | 30f974fdbe80962a1faaa2093d97f0f28a5025fb | [] | no_license | tomjoy/trellis | 8699c264a1d3e287ae145488a172552a2a8c1c64 | ce5e7dfc6cff6386a9ee216ed9be7436816c4512 | refs/heads/master | 2016-09-11T10:33:13.288062 | 2014-11-18T08:19:33 | 2014-11-18T08:19:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 42,364 | py | from test_sets import *
from peak import context
from peak.events.activity import EventLoop, TwistedEventLoop, Time, NOT_YET
from peak.events import trellis, stm, collections, activity
from peak.util.decorators import rewrap, decorate as d
from peak.util.extremes import Max
import unittest, heapq, mocker, types, sys
t... | [
"tomjoy002@gmail.com"
] | tomjoy002@gmail.com |
225d48e80f10f03bb995d8fb1ba7892453a63f12 | 3a3529f566957d8d79afc7d1ebe533fba239ab7c | /forum/urls.py | 3af8ed2a2bc3f64f573748ac7ea101fcff412b82 | [] | no_license | zhufree/sample | 9dc4f3aef86322487b9f252163d8b17937651ee7 | ba765b5e0a91e53d179f3593c0578a31e2bddfd8 | refs/heads/master | 2021-10-28T18:49:27.091127 | 2021-10-21T02:06:35 | 2021-10-21T02:06:35 | 41,006,994 | 30 | 5 | null | null | null | null | UTF-8 | Python | false | false | 266 | py | __author__ = 'zhufree'
from django.conf.urls import url
from .views import *
urlpatterns = [
# Examples:
url(r'^$', index),
url(r'^p/(?P<id>\d+)/$', single_post),
url(r'^topic/(?P<id>\d+)/$', show_topic),
url(r'^post/$', post),
]
| [
"zhufree2013@gmail.com"
] | zhufree2013@gmail.com |
73583adcaea5d524cdb542a439f178769047ef38 | 480cbc014abecd36899915e814157fe7e0d4072f | /tools/tasks.py | 3dc7ec6cf9c2c1af355e90ce242754ed7b321601 | [
"Apache-2.0"
] | permissive | mattcarabine/sync_gateway | 090c48f6a9646f40feda1a36ed10b8a33f7fc9f3 | a8bc5099d3c7185de72829a10311c96c800c01c7 | refs/heads/master | 2021-01-18T20:07:25.023611 | 2016-05-20T17:55:36 | 2016-05-20T17:55:36 | 59,411,033 | 0 | 0 | null | 2016-05-22T12:26:34 | 2016-05-22T12:26:33 | null | UTF-8 | Python | false | false | 34,404 | py | #!/usr/bin/env python
# -*- python -*-
import os
import sys
import tempfile
import time
import subprocess
import string
import re
import platform
import glob
import socket
import threading
import optparse
import atexit
import signal
import urllib
import shutil
import urlparse
class AltExitC(object):
def __init__(s... | [
"tleyden@couchbase.com"
] | tleyden@couchbase.com |
d9bdb178ecc13cd0d02f628d51c3fc104d950945 | 0ddcfcbfc3faa81c79e320c34c35a972dab86498 | /puzzles/power_of_three.py | 0c90784597ced25c72515a818f2ab265938bf1d4 | [] | no_license | IvanWoo/coding-interview-questions | 3311da45895ac4f3c394b22530079c79a9215a1c | 1312305b199b65a11804a000432ebe28d1fba87e | refs/heads/master | 2023-08-09T19:46:28.278111 | 2023-06-21T01:47:07 | 2023-06-21T01:47:07 | 135,307,912 | 0 | 0 | null | 2023-07-20T12:14:38 | 2018-05-29T14:24:43 | Python | UTF-8 | Python | false | false | 862 | py | # https://leetcode.com/problems/power-of-three/
"""
Given an integer n, return true if it is a power of three. Otherwise, return false.
An integer n is a power of three, if there exists an integer x such that n == 3x.
Example 1:
Input: n = 27
Output: true
Example 2:
Input: n = 0
Output: false
Example 3:
Input: n = ... | [
"tyivanwu@gmail.com"
] | tyivanwu@gmail.com |
86e15099b852b3ba1d7f58082cd64ac62fd06500 | 74b8a63615281a74a3646c9a03928bea60c3c6f3 | /pymccrgb/tests/context.py | 25bf269f3088eab6a0e29d1b098ee1e77eea81e9 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | lswsyx/pymccrgb | 8d3df8200633b9b9918b8d7ec7ee84baa49750c6 | dc8ad2e46cbe6ff8081c32fa11bce68f869baafa | refs/heads/master | 2023-02-23T20:38:14.727935 | 2020-08-06T21:18:05 | 2020-08-06T21:18:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 125 | py | import os
import sys
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "../..")))
import pymccrgb
| [
"robertmsare@gmail.com"
] | robertmsare@gmail.com |
799ae55b2b7a4557348b168f0a3fc74d923f5fd4 | 2cd0a84aefb8a7141d1c8da99845a8ada0cc009c | /tensorflow/python/ops/rnn_cell.py | 9aa2314e5e65b02c0d4f7ee1661b77200ea50ef1 | [
"Apache-2.0"
] | permissive | hholst80/tensorflow-old | d466cee96eac717524ab8e4ee85275ce28bb5d68 | 79df325975402e03df89747947ff5b7f18407c52 | refs/heads/master | 2022-12-20T22:07:40.427519 | 2016-05-13T09:57:24 | 2016-05-13T09:57:24 | 58,914,336 | 1 | 1 | Apache-2.0 | 2022-12-09T21:52:14 | 2016-05-16T08:00:04 | C++ | UTF-8 | Python | false | false | 26,838 | py | # Copyright 2015 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | [
"henrik.holst@frostbite.com"
] | henrik.holst@frostbite.com |
6751b2b46e1d04b8b4096859890d818f7342a742 | 60cc5a46e6b48716ee734526cdde74a993921a88 | /pysignup/backends/memory.py | 279145f454fe6d85579ee27a41d12d74b4d8db08 | [] | no_license | pietvanzoen/signup | fc65e4a26301e7fd7dc28af328488464b733fff2 | 80c62cb1841b83f439b547add758ae9ccaddd00d | refs/heads/master | 2021-01-16T19:31:06.049713 | 2013-10-08T20:22:18 | 2013-10-08T20:22:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 941 | py | from collections import OrderedDict
from . import base
class MemoryStore(type):
def __new__(cls, name, bases, namespace, **kwargs):
result = type.__new__(cls, name, bases, namespace)
result._store = OrderedDict()
return result
class MemoryModelMixin(metaclass=MemoryStore):
@classmet... | [
"m@schmichael.com"
] | m@schmichael.com |
f44f7184c5e26e6031fc36a3813d8d0f6e48eb80 | 8e2474e41b37a54774610fa7519d6000d8fb01d8 | /application/migrations/0004_auto_20170417_2205.py | c3402c87417ffe72d634a2f5884ff0600c1a7637 | [] | no_license | dezdem0na/make-an-appointment | 446548b911b6f8960e6afee204a5be2f0a519329 | 1695f4544c668c84ba02b3723ff2925b74c2f8e3 | refs/heads/master | 2021-01-19T23:16:23.506988 | 2017-04-23T12:58:45 | 2017-04-23T12:58:45 | 88,956,076 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 912 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2017-04-17 19:05
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('application', '0003_auto_20170417_2204'),
]
operations = [
migrations.AlterFi... | [
"natalie.reshetnikova@gmail.com"
] | natalie.reshetnikova@gmail.com |
88d6df365f47a253326935bb8fac400997ba4126 | 702339cb0a4d0a1f7f01705107d77a4950e6f91d | /Snakefile | be70350f3631faa16423080dcb37b1e6daa5c0c2 | [
"MIT"
] | permissive | hans-vg/snakemake_guppy_basecall | a2c2ad9f9da779f8ce7556fcdf0700f7db7be37c | 76c1a08e2c553a8976108397d292203a1796b81e | refs/heads/main | 2023-08-05T09:45:00.360836 | 2021-09-08T22:39:18 | 2021-09-08T22:39:18 | 400,228,888 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,052 | import glob
configfile: "config.yaml"
inputdirectory=config["directory"]
SAMPLES, = glob_wildcards(inputdirectory+"/{sample}.fast5", followlinks=True)
print(SAMPLES)
wildcard_constraints:
sample="\w+\d+_\w+_\w+\d+_.+_\d"
##### target rules #####
rule all:
input:
expand("basecall/{sample}/sequencing... | [
"hvasquezgross@unr.edu"
] | hvasquezgross@unr.edu | |
9f59f49f87adf975eba07fe96fc5a30a73485cc8 | fc678a0a5ede80f593a29ea8f43911236ed1b862 | /77-Combinations.py | 91ae53a9008ceabe92c1973817d59e67f8a8c2c3 | [] | no_license | dq-code/leetcode | 4be0b1b154f8467aa0c07e08b5e0b6bd93863e62 | 14dcf9029486283b5e4685d95ebfe9979ade03c3 | refs/heads/master | 2020-12-13T15:57:30.171516 | 2017-11-07T17:43:19 | 2017-11-07T17:43:19 | 35,846,262 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 463 | py | class Solution(object):
def combine(self, n, k):
"""
:type n: int
:type k: int
:rtype: List[List[int]]
"""
def helper(comb, start, k):
if k == 0:
res.append(comb)
return
for i in range(start, n + 1):
... | [
"qiandeng@Qians-iMac.local"
] | qiandeng@Qians-iMac.local |
624bff574da212d7d85f10e9d8fb96838f062fbc | c638ed4efd02028c97c0d6fe84200c4e4484fdba | /CCC/triangleTimes.py | 11a228073e63568a153a405bd609ebddd0c4ea4c | [] | no_license | oliver-ode/Algorithmic-Coding | 3c08f783e2f8d07040b81610a8e175383716eaf3 | dc4d4bfb538e04789ed731236e1a5a39978cad0a | refs/heads/master | 2022-12-07T02:35:56.629521 | 2020-08-31T03:18:30 | 2020-08-31T03:18:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 345 | py | angles = []
for i in range(3):
angles.append(int(input()))
if angles[0] == 60 and angles[1] == 60 and angles[2] == 60:
print("Equilateral")
elif sum(angles) == 180 and angles[0] == angles[1] or angles[1] == angles[2] or angles[0] == angles[2]:
print("Isosceles")
elif sum(angles) != 180:
print("Error")
e... | [
"oliverode@gmail.com"
] | oliverode@gmail.com |
0e9d83f11f89926b5b0ac3d2b057dcf7f4fed023 | 4817b6eea29d9d952ef91899efee23becd741757 | /ryu/app/network_awareness3/shortest_forwarding.py | b60beb9a8db1ce446fdc203f2b65f082d326ae88 | [
"Apache-2.0"
] | permissive | zspcchinu/Optimal-routing-using-RL-with-SDN | 153eec7aae93e852278e02e4bac39a6fa9be4a8a | b7993c7f328ab6bafdcb6dab56f4ecd83ef0fe14 | refs/heads/master | 2022-06-17T21:26:41.293024 | 2020-05-17T03:42:16 | 2020-05-17T03:42:16 | 264,542,516 | 15 | 3 | null | null | null | null | UTF-8 | Python | false | false | 14,357 | py | from __future__ import absolute_import
# Copyright (C) 2016 Li Cheng at Beijing University of Posts
# and Telecommunications. www.muzixing.com
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
... | [
"chithambaram.singaravelupoonkodi@sjsu.edu"
] | chithambaram.singaravelupoonkodi@sjsu.edu |
1ba71e9765761905566094b0343c991430cf2236 | 2bcbd13a1d91ada88ec490de767f7e4cb01d6232 | /reading file.py | b48a01dd7da758360e07d7f6b2906043fae49ec3 | [] | no_license | Naveen131298/hackertest | 406484933418489940ebb305700f16d8f39aa685 | 5b5a34ba6f779b564279248ce73f3a2a58e89f57 | refs/heads/master | 2020-12-05T22:30:35.424802 | 2020-10-11T18:16:02 | 2020-10-11T18:16:02 | 232,261,603 | 0 | 1 | null | 2020-10-11T18:16:03 | 2020-01-07T06:50:13 | Python | UTF-8 | Python | false | false | 215 | py | import os
import glob
def read_pdf(path):
for pdf_file in glob.glob(path + '/*.pdf'):
print(pdf_file)
pdf_location = os.path.join(os.getcwd())
read_pdf(pdf_location)
print(os.path.join(os.getcwd()))
| [
"naveenmurugan72@gmail.com"
] | naveenmurugan72@gmail.com |
077349d5fcd423d4c28bef9cf4945a2d36546d58 | 0b36cff195d540e96f50f87c2b984235d958905c | /input_file_with_xy.py | 112ea05be72c8c61be1a1e99aa0d8f2640760816 | [] | no_license | JeanLouis1606/premiers_scripts_python | a41adea7b5c6d01c3d7538e2e3039e034bd15f4b | c0b348f736990900ff5596e295a350265ecf1741 | refs/heads/master | 2020-08-02T07:03:57.755530 | 2019-09-27T14:10:07 | 2019-09-27T14:10:07 | 211,271,144 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 181 | py | with open("/usr/share/dict/words") as inputfile:
for line in inputfile:
if len(line)<15:
if (line[0] == 'x' and line[1] == 'y'):
line = line.strip()
print(line)
| [
"jeanlouisfuccellaro@MacBook-Pro-de-jl-2.local"
] | jeanlouisfuccellaro@MacBook-Pro-de-jl-2.local |
bb9b8448866a42aee485331c76d2d094853127b4 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_231/ch22_2020_06_20_19_00_14_584797.py | bd79702d66dbec13e717be885a2a86143f73ec2b | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 125 | py | c= int(input('quantos cigarros vc fuma por dia?'))
a= int(input('ha quantos anos?'))
t= ((10*c*a*365)/1440)
print(t)
| [
"you@example.com"
] | you@example.com |
ffed5598e099bdd416d547810817ad878dfc91b7 | 1ad482ad03c0241cc39067c47d5b046dd8371fa9 | /core/migrations/0009_auto_20210319_2041.py | 7333b546d4720a4839edcd38dc03bc34a4667bec | [] | no_license | momentum-team-7/django-habit-tracker-drehan7 | aa421911434d0d548de232cb2f12f4ac11ddf509 | 471950de16de47fea0a020809e98d5f8abdaceb1 | refs/heads/main | 2023-03-31T11:33:00.586816 | 2021-03-27T18:55:27 | 2021-03-27T18:55:27 | 348,402,252 | 0 | 0 | null | 2021-03-22T15:49:06 | 2021-03-16T15:39:35 | JavaScript | UTF-8 | Python | false | false | 506 | py | # Generated by Django 3.1.7 on 2021-03-19 20:41
import datetime
from django.db import migrations, models
from django.utils.timezone import utc
class Migration(migrations.Migration):
dependencies = [
('core', '0008_auto_20210319_2019'),
]
operations = [
migrations.AlterField(
... | [
"d.rehan7@gmail.com"
] | d.rehan7@gmail.com |
04543567fbdf013acee68970b2130008939f9517 | 29ff0f91f49117d214f6f776b59a2769ad5b38d5 | /tests/test_adapters.py | e260ecfa2d316ea75354eb7e2626740e65f0aa78 | [
"MIT"
] | permissive | caioraposo/uceasy | 5f770595f99e847cff75a99f82cb78196857f981 | 921103f64c69c31aa6fc05fdf474c17a575a5525 | refs/heads/master | 2021-03-13T10:17:26.033997 | 2020-04-13T19:37:49 | 2020-04-13T19:37:49 | 246,669,260 | 0 | 0 | MIT | 2020-03-11T20:05:53 | 2020-03-11T20:05:53 | null | UTF-8 | Python | false | false | 494 | py | from uceasy.adapters import ADAPTERS
def test_illumiprocessor_help():
cmd = ADAPTERS["illumiprocessor"](["--help"], capture_output=True)
assert "usage: illumiprocessor" in cmd[0]
def test_trinity_help():
cmd = ADAPTERS["trinity"](["--help"], capture_output=True)
assert "usage: phyluce_assembly_assem... | [
"caioraposo@protonmail.com"
] | caioraposo@protonmail.com |
ed3cb703c2428ed63dfa7f758269be8f2bb0a7af | 885c1cab7931d010b6711af652c9a79e2f7490c2 | /MyDjangoProjects/mydjangosite/mydjangosite/wsgi.py | a5dfbab0db7f5cb9860a1848e33e3de5a5df1a1b | [] | no_license | shreyash14s/Manjo | 3f1c11f7234cd12783c5e60a05cbf3f5ae9ca21d | b0ea4e3ef31d7853a8288e06a84bf556c4908d63 | refs/heads/master | 2021-01-17T21:56:38.905412 | 2015-08-15T17:45:39 | 2015-08-15T17:45:39 | 40,665,170 | 0 | 1 | null | 2015-08-13T15:05:27 | 2015-08-13T15:05:27 | null | UTF-8 | Python | false | false | 401 | py | """
WSGI config for mydjangosite project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.8/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_... | [
"sanjay.india96@gmail.com"
] | sanjay.india96@gmail.com |
566fdde94b7a27a1ac308ac870b09e58209d60fc | 2827d7a837eb29c3cb07793ab6d3d5a753e18669 | /alipay/aop/api/request/AlipayMarketingCampaignDiscountBudgetAppendRequest.py | 3e1af80821fc15b93a0a4328c878c0180e7b136d | [
"Apache-2.0"
] | permissive | shaobenbin/alipay-sdk-python | 22e809b8f5096bec57d2bb25414f64bdc87fa8b3 | 5232ad74dff2e8a6e0e7646ab3318feefa07a37d | refs/heads/master | 2020-03-21T04:51:39.935692 | 2018-06-21T07:03:31 | 2018-06-21T07:03:31 | 138,131,022 | 0 | 0 | null | 2018-06-21T06:50:24 | 2018-06-21T06:50:24 | null | UTF-8 | Python | false | false | 4,058 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.FileItem import FileItem
from alipay.aop.api.constant.ParamConstants import *
from alipay.aop.api.domain.AlipayMarketingCampaignDiscountBudgetAppendModel import AlipayMarketingCampaignDiscountBudgetAppendModel
class AlipayMarketingCampai... | [
"liuqun.lq@alibaba-inc.com"
] | liuqun.lq@alibaba-inc.com |
360e98c144781868bcbc8c5a13d5f42085348077 | 066d05a826430a05fc1c333bd988ef702a8ed364 | /lesson3/ex4.py | 9835c43e2cca47438c789a51671c6be04f77085c | [] | no_license | se7entyse7en/learning-tensorflow | 4a5693ea49cd5a88add241301b565d672f28a318 | 1377739d54998c773e90b30dd57f3a407e19e245 | refs/heads/master | 2021-01-12T15:26:34.812952 | 2016-11-10T22:02:25 | 2016-11-10T22:02:25 | 71,783,274 | 1 | 1 | null | 2019-05-11T23:24:10 | 2016-10-24T11:45:52 | Jupyter Notebook | UTF-8 | Python | false | false | 853 | py | import matplotlib.image as mpimg
import matplotlib.pyplot as plt
import numpy as np
import tensorflow as tf
filename = 'MarshOrchid.jpg'
image = mpimg.imread(filename)
x = tf.Variable(image, name='x')
model = tf.initialize_all_variables()
with tf.Session() as session:
session.run(model)
shape = tf.shape(x)... | [
"loumarvincaraig@gmail.com"
] | loumarvincaraig@gmail.com |
c8327228eb9f84c7971a01151d5d026d74f669aa | 929d9121a74f3167e620bf4f2c9073f84e57d422 | /mysite/mainapp/forms.py | b7cb0e2cd653d5d80b50e5bea1012688afae1a98 | [] | no_license | zoriana-melnyk/HealthyEating | f7c91caa82830c112ca132fef6d172d867eb3868 | 4fea7ab1e7a5a8438c9d57288dd3c294a4a06bff | refs/heads/master | 2023-04-21T07:54:56.288872 | 2021-05-11T22:29:24 | 2021-05-11T22:29:24 | 333,217,246 | 0 | 0 | null | 2021-05-11T22:29:25 | 2021-01-26T21:05:50 | Python | UTF-8 | Python | false | false | 302 | py | from django.forms import ModelForm
from django import forms
from django.contrib.auth.forms import UserCreationForm
from django.contrib.auth.models import User
class CreateUserForm(UserCreationForm):
class Meta:
model = User
fields = ['username', 'email', 'password1', 'password2'] | [
"48826458+zoriana-melnyk@users.noreply.github.com"
] | 48826458+zoriana-melnyk@users.noreply.github.com |
c39a87caae3620cf991bb70f79a8ef12cfc44fbe | 7fda36e97edc2fbcf8ad2fc01ea070f881e756d2 | /tuts100_exercise11.py | cb42f99394e09547e422659a6eb8794f6e8a0eee | [] | no_license | RashadGhzi/My-Repository | 6b386521cea3b40ce0be065ca53b2bd633b36197 | 91f5897bdfb869a0d30f49693b87ed1244488e3d | refs/heads/main | 2023-08-16T07:34:24.357667 | 2021-10-12T11:44:46 | 2021-10-12T11:44:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 503 | py | import re
str = '''Email: northamerica@tata.com
email = rashadarsh78@gmail.com
priya@yahoo.com
email = meeting @2pm
Website: www.northamerica.tata.com
shubhamg199630@gmail.com
harrygoodboy@gamil.com
Directions: View map fass
indian no. +91 5588-940010
harry bhai lekin
indian no. ++91 5588-000000'''
item = re.compile(... | [
"rashadarsh0@gmail.com"
] | rashadarsh0@gmail.com |
8c093d5bdd4b85a2f36c0adbc7b3a65e995fff87 | ecf96ce18d8c1bfc20b667f2bd2050dbf4286fb7 | /weights.py | 0729d7f47c0b1130a2ba5b4be4d84b925acf9bcb | [] | no_license | wiktoraleksanderkaczor/PyNN | 900ab16df0dedec9591193c6527e595c47d36bf0 | 9cd594be39f6e62ab095595cdf956282b2bf88fc | refs/heads/master | 2021-08-19T11:39:11.097391 | 2021-06-11T01:02:20 | 2021-06-11T01:02:20 | 158,038,948 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,530 | py | # Module: weights.py
# Definition of some useful weight initialization functions.
import numpy as np
np.random.seed(123)
def random_init(num_prev_neurons, precision):
"""
Initializes the weights using a random number generated from a seed.
Args:
num_prev_neurons (int): The number ... | [
"wiktoraleksanderkaczor@gmail.com"
] | wiktoraleksanderkaczor@gmail.com |
47a5f7dac1c21ccd1fd6d4200b4a2068c776886a | a28946f264ebb2648b6e31f709d5bdf845bf0b50 | /lyrics.py | dd21c6cbdc825e9feddcc055895f4296128f90e2 | [
"MIT"
] | permissive | py-paulo/lyrics | e6be77132a353000b939941ea751c19534b0068e | 9bc1596fa9acc423aedace747ddb2e2339258331 | refs/heads/master | 2023-04-07T10:21:22.899483 | 2021-04-08T10:39:39 | 2021-04-08T10:39:39 | 354,976,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,275 | py | import urllib.request
from bs4 import BeautifulSoup
uri_base = 'http://www.google.com/search?q='
artist = 'Milton Nascimento'
music = 'Clube da Esquina n 2'
query_quote = ('%s %s letra' % (artist, music)).replace(' ', '+')
req = urllib.request.Request(uri_base+query_quote, headers={
'accept': 'text/html,applic... | [
"paulo.rb.beserra@gmail.com"
] | paulo.rb.beserra@gmail.com |
f2a5384d6168682cc2ed2c5a6b873ece4666dcf3 | 417c3cceaa1e010c7747db4e9ea4ffabfff92732 | /learning_user/basic_app/views.py | dcdc631b7e9fae41fb151a10f7f520363b17169b | [] | no_license | ibukun-brain/django-deployment-example | ef54c2a26153026c68986fc41d53725fdb52743a | b984426f7108a40f15ba5cc3dbdd86f3b93fa298 | refs/heads/master | 2023-05-31T21:21:55.624611 | 2021-07-04T05:29:44 | 2021-07-04T05:29:44 | 382,760,477 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,341 | py | from django.shortcuts import render
from basic_app.forms import UserInfoForm, UserProfileInfoForm
from django.contrib.auth import authenticate, login, logout
from django.http import HttpResponseRedirect, HttpResponse
from django.urls import reverse
from django.contrib.auth.decorators import login_required
# Create you... | [
"ibukunolaifa1984@gmail.com"
] | ibukunolaifa1984@gmail.com |
97a1c88e30cf7f7e198ab1dfadc80c3db447a9ba | 1a324f9aefc9cc6f858effea02501f0885611c28 | /search_engine_demo/googlesearch/urls.py | 5b1087f1554c44a6d214a1fd5274cc1b42dc6ba4 | [] | no_license | AmamiRena/py | 72c55180209b1c18a5484fa37f4b4d6abac746f9 | 0f9f3b05fed09b2fff329a103426dde718f798cf | refs/heads/master | 2021-10-25T17:30:19.419609 | 2021-10-22T01:26:08 | 2021-10-22T01:26:08 | 143,627,993 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 163 | py | from django.urls import path
from .views import *
urlpatterns = [
path('', index),
path('search', SearchView.as_view(), name="google-search-view")
] | [
"mayuzumi159@gmail.com"
] | mayuzumi159@gmail.com |
22eb63305890280ff00427e395dc7ee12f3f314c | d554b1aa8b70fddf81da8988b4aaa43788fede88 | /5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/223/users/4330/codes/1594_1800.py | 0302eb5caf63f16066aa6406b53455d42458aa87 | [] | no_license | JosephLevinthal/Research-projects | a3bc3ca3b09faad16f5cce5949a2279cf14742ba | 60d5fd6eb864a5181f4321e7a992812f3c2139f9 | refs/heads/master | 2022-07-31T06:43:02.686109 | 2020-05-23T00:24:26 | 2020-05-23T00:24:26 | 266,199,309 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 168 | py | a=int(input("Insira o valor de A"))
b=int(input("Insira o valor de B"))
c=int(input("Insira o valor de C"))
x = (a**2)+(b**2)+(c**2)
y = a+b+c
t=x/y
print(round(t,7))
| [
"jvlo@icomp.ufam.edu.br"
] | jvlo@icomp.ufam.edu.br |
c9580567614da5bed9f9c744137f3d463eb77515 | dac7d0abff54dbeb9e6587f17866a34b5e7f3948 | /Cobbity/compare.py | ec3b6cf07d175832a7fb04e914de1c0c894bf84c | [] | no_license | KipCrossing/EMI_Field | 5665aba5ff5fbf4a4d42fc9b3efc9aa3b3f51eea | e52142648388a25d26f682986c586cd1827e31e0 | refs/heads/master | 2020-05-22T12:37:42.892290 | 2019-09-12T01:27:24 | 2019-09-12T01:27:24 | 186,342,788 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,487 | py | import pandas as pd
df_OpenEM = pd.read_csv("~/Cobbity/Output/Smooth_C2_OpenEM.xyz", header=None, delimiter=r"\s+")
df_DUALEM = pd.read_csv("~/Cobbity/Output/Smooth_C2_DUALEM.xyz", header=None, delimiter=r"\s+")
print(df_OpenEM.head())
print(df_DUALEM.head())
New_OpenEM_readings = []
New_OpenEM_lon = []
New_OpenEM_la... | [
"kip.crossing@gmail.com"
] | kip.crossing@gmail.com |
0efac6e3d7417f91494c5e8208d5faffb89d643d | 5edf72a6e86f35fb00a34670a6f9ca61d96c2db8 | /kmeans.py | 11b764d161a4957b8d65b733c9e8080f2df3de7d | [] | no_license | isabellekazarian/kmeans-algorithm | b94008ed80ec198f2d8cb7def960025dfdfad53e | 7378cdf56f1c51c953c34f1e11c76499850d07c1 | refs/heads/master | 2023-03-11T19:37:57.830724 | 2021-02-08T18:39:13 | 2021-02-08T18:39:13 | 337,162,531 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,487 | py |
import matplotlib.pyplot as plt
import numpy
import csv
import random
from collections import defaultdict
DATA_FILE = './dataBoth.csv'
NUM_CLUSTERS = 4
NUM_ITERATIONS = 4
# returns distance between two data points
def distance (x1, y1, x2, y2):
square = pow((x2 - x1), 2) + pow((y2 - y1), 2)
return pow(squar... | [
"rosekaz13@gmail.com"
] | rosekaz13@gmail.com |
d839e4467adb97c603f1bbf720207d83942d87d2 | 46267e38d63bb487ccef4612593676412ea956d7 | /astraeus/core.py | 268d58bf9ad346c038f6b1a1989ccc7a00c0339b | [
"MIT"
] | permissive | eos-sns/astraeus | 17f63fc02e27b8b40b8470fb8202b9bb4b50e3d6 | bbbe820bdc02d7c0209854b80b1f952bfaaf984a | refs/heads/master | 2020-04-25T12:56:35.666259 | 2019-09-18T12:15:04 | 2019-09-18T12:15:04 | 172,793,341 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,379 | py | # -*- coding: utf-8 -*-
import abc
import datetime
import uuid
from astraeus.models.memcache import MemcacheClientBuilder, MemcacheFacade
from astraeus.models.mongodb import MongoDBBuilder
class Hasher:
""" Something that hashes something """
@abc.abstractmethod
def hash_key(self, key):
return ... | [
"sirfoga@protonmail.com"
] | sirfoga@protonmail.com |
8ffe7365488fff3d284791da93f2ec10bd6e22b7 | e45060b2fb6c5911249f930703db06af74292a14 | /src/misc.py | 2ef953d46b21e269cfe78df97b2fb7c04182704b | [
"MIT"
] | permissive | Guigouu/clonesquad-ec2-pet-autoscaler | a6dd350acaa559fba6caf209c439579a5c7ab15a | 33eee544a5c208caf548869c2e714d9ebc7f0be6 | refs/heads/master | 2023-01-07T01:27:33.725418 | 2020-11-05T21:28:02 | 2020-11-05T21:28:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,784 | py | import os
import sys
import re
import hashlib
import json
import math
import gzip
# Hack: Force gzip to have a deterministic output (See https://stackoverflow.com/questions/264224/setting-the-gzip-timestamp-from-python/264303#264303)
class GzipFakeTime:
def time(self):
return 1.1
gzip.time = GzipFakeTime()
... | [
"jeancharlesjorel@gmail.com"
] | jeancharlesjorel@gmail.com |
f2ab8dfb0b4f100d21c732dc63482a3816c4a33e | 9629daa92c3a002dcfb5e81ba1870c8bf22c4ae3 | /Shop/forms.py | 721799ae0e2fa7dfb43d4f8c56df47d172623992 | [
"MIT"
] | permissive | forhadsidhu/Django-E-Commerce-App | ce61e15836a9dd4d808b52768ab4d592c0f7890f | 5c07b0c2e562fc0bb8dcc6803a7595b889ea8954 | refs/heads/master | 2023-03-16T14:58:06.391665 | 2021-03-15T10:50:00 | 2021-03-15T10:50:00 | 248,206,652 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 618 | py | from django import forms
from .models import ImageUploadModel,Post
from django.contrib.auth.forms import UserCreationForm
from django import forms
from django.contrib.auth.models import User
# Now create customized user creation form like for adding email field in default django form.
class CreateUserform(UserCreat... | [
"forhadsidhu@gmail.com"
] | forhadsidhu@gmail.com |
19d14b124965f2f461568792ad34bb6bbd4dc10d | 5fe72bb13baf3649058ebe11aa86ad4fc56c69ed | /hard-gists/367ff95d4d3d3770fa7b/snippet.py | 6cd51cef4fd2bff70541bd8d5ea0c23646114dd5 | [
"Apache-2.0"
] | permissive | dockerizeme/dockerizeme | 8825fed45ff0ce8fb1dbe34959237e8048900a29 | 408f3fa3d36542d8fc1236ba1cac804de6f14b0c | refs/heads/master | 2022-12-10T09:30:51.029846 | 2020-09-02T13:34:49 | 2020-09-02T13:34:49 | 144,501,661 | 24 | 20 | Apache-2.0 | 2022-11-21T12:34:29 | 2018-08-12T21:21:04 | Python | UTF-8 | Python | false | false | 1,003 | py | from collections import defaultdict
from django.db.models.signals import *
class DisableSignals(object):
def __init__(self, disabled_signals=None):
self.stashed_signals = defaultdict(list)
self.disabled_signals = disabled_signals or [
pre_init, post_init,
pre_save, post_sav... | [
"42325807+dockerizeme@users.noreply.github.com"
] | 42325807+dockerizeme@users.noreply.github.com |
425ccb10cc834c44b5fad2c6f6259a5ce46223e7 | 3babd5887c70ff85a2254882c36e35b127a8905d | /dbhandler.py | 756e6cefac6a212f9c4f414705806bf6d4b51364 | [] | no_license | angyay0/demo-devops-users | 1109e443fbaf087e9e632e8902bfcb968bb0cc34 | f170ae65358993a48f6a073895ca2585fa087ba1 | refs/heads/master | 2022-12-02T06:09:55.470309 | 2020-08-13T21:36:10 | 2020-08-13T21:36:10 | 287,142,220 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 919 | py | from userapi.models import LoginResponse
import psycopg2
import json
#Load and return json as dict
def ReadFromJson():
with open("db.json") as file:
return (json.load(file))
#Database operations to retrieve and save users
class DBHandler:
def __init__(self):
self.credentials = ReadFromJson()
... | [
"aperez@mstecs.com"
] | aperez@mstecs.com |
abc7888375db7b5790e14fedfa8dedb11c05d33e | d2e6823851e236312e4b99acca53a293dff5b1a7 | /BlogApp/managers.py | eedf596bd527a60656aea2a3e09bf9a12dcf89b5 | [
"Apache-2.0"
] | permissive | devvspaces/nimrodage | f061378692e94b8dc9b15ae2f3fdcd587bfdfe1d | 578eb14e2e8f7dc7ae58913b6131fd60c1596c0b | refs/heads/main | 2023-05-09T03:41:22.345841 | 2021-06-04T03:47:56 | 2021-06-04T03:47:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 385 | py | from django.db import models
class PostQuery(models.QuerySet):
def get_authors_post(self, username):
return self.filter(author__username=username)
class PostManager(models.Manager):
def get_queryset(self):
return PostQuery(model=self.model, using=self._db)
def get_posts(self, username... | [
"netrobeweb@gmail.com"
] | netrobeweb@gmail.com |
d2feecf8c86df8ebfbb1a826ff254b1b98455ddf | 4ac6c008882c1a7321bf9477ba532b88bb113741 | /ThiNet_TPAMI/ResNet50/analysis_reid.py | 9e4300e6213e6eaf5645e641d6a0213350804a8f | [
"MIT"
] | permissive | QQQYang/ThiNet_Code | cbd67470838b0d1d0a1803ae66a9a74a899adf89 | 850525c8ca85b63e5f7cec1a73b1b681178a5786 | refs/heads/master | 2020-09-18T05:36:23.093997 | 2019-12-05T11:54:39 | 2019-12-05T11:54:39 | 224,130,726 | 0 | 0 | MIT | 2019-11-26T07:37:29 | 2019-11-26T07:37:28 | null | UTF-8 | Python | false | false | 6,649 | py | #coding=utf-8
'''
This file is used for analysing the filters and activations of a network, which inspire us of new ideas about network pruning
Author: yqian@aibee.com
'''
# import ptvsd
# ptvsd.enable_attach(address = ('0.0.0.0', 5678))
# ptvsd.wait_for_attach()
import caffe
import numpy as np
from PIL import Image
... | [
"yqian@gpu002.aibee.cn"
] | yqian@gpu002.aibee.cn |
b0eab76f789da136a8a281e69b3f5b956c7456b4 | d0a2df49e95881b3e3cdde806e55d5ef7ca84526 | /logistic_regression.py | e8f81f7f32d6b1273b8f2a77b8c6408ec5b2571b | [] | no_license | nhan-dam/svgd-variance-reduction | b288d35f0ad7c342be57043d14104a8cdc905a66 | 7f626a198cf0cf3aab083e1ac720ea58d3c9b7b9 | refs/heads/master | 2022-04-18T07:07:30.940649 | 2020-04-06T08:35:31 | 2020-04-06T08:35:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,968 | py | from __future__ import print_function, division, absolute_import
import numpy as np
'''
Logistic Regression:
The observed data D = {X, y} consist of N binary class labels,
y_t \in {-1,+1}, and d covariates for each datapoint, X_t \in R^d.
p(y_t = 1| x_t, w) = 1 / (1 + exp(-w^T x_t))
'''
... | [
"ndam@deakin.edu.au"
] | ndam@deakin.edu.au |
345af0510923871e7c277fa605b5fbb91b36acd5 | 357048e2990a572be19f2816a9890fdb10b4ef71 | /bmips.py | 2b0713eb577cd1cf89d6eeb2eb0ee707691543e2 | [] | no_license | brightp-py/bmips | 444771a8b46edd7bded2e048dc58573cee2007ca | 59308e55f5eb4b56937044e932383216b1a0c8c7 | refs/heads/master | 2023-04-03T01:58:14.517627 | 2021-04-10T19:52:42 | 2021-04-10T19:52:42 | 356,678,928 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 740 | py | import sys
from src import simulator, parsemips
if len(sys.argv) < 2:
print("FAILED: Expected a file name.")
print("'python bmips.py [filename] (-d)'")
sys.exit()
simulator.DEBUGPRINT = False
simulator.REPORTPRINT = None
wantreportfile = False
for arg in sys.argv[2:]:
if wantreportfile:
if ar... | [
"brightp@umich.edu"
] | brightp@umich.edu |
f931f93487dee0b1d116ef38d52fa5222198b620 | b6c09a1b87074d6e58884211ce24df8ec354da5c | /345. 反转字符串中的元音字母.py | f259c3af854c1e4b250ef47b593bf61f4f86067c | [] | no_license | fengxiaolong886/leetcode | a0ee12d67c4a10fb12d6ca4369762ab5b090cab1 | 4c0897bc06a297fa9225a0c46d8ec9217d876db8 | refs/heads/master | 2023-03-18T22:16:29.212016 | 2021-03-07T03:48:16 | 2021-03-07T03:48:16 | 339,604,263 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 444 | py | """
编写一个函数,以字符串作为输入,反转该字符串中的元音字母。
"""
def reverseVowels(s):
query = "aeiouAEIOU"
vow = []
idx = []
for i, j in enumerate(s):
if j in query:
vow.append(j)
idx.append(i)
vow = vow[::-1]
s = list(s)
for i, j in zip(idx, vow):
s[i] = j
return "".join(... | [
"xlfeng886@163.com"
] | xlfeng886@163.com |
7b4f54884801a64b393131a5a772f15a7ccfe5aa | 45a70554091ea06afc63d86ddb2724053513189b | /dataset/__init__.py | 6db9f41c3b178cc49530593183e883df9f08deb2 | [] | no_license | mponza/keyphrase-annotation | d10705c2ccf9ae7b2d2e3d8aa1901460de564976 | 14abbd4ebcf449f65f1b1c392235b55eb051005b | refs/heads/master | 2021-06-13T00:21:49.108263 | 2017-01-04T14:09:00 | 2017-01-04T14:09:00 | 77,946,796 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 664 | py | from duc import DUCDataset
from icsi import ICSIASRDataset, ICSIHumanTranscriptDataset
from inspec import InspectTrainingDataset, InspectValidationDataset, \
InspectTestDataset
from nus import NUSDataset
def make_dataset(dataset_name):
"""
Factory-style method for getting dataset from stri... | [
"mponza@gmail.com"
] | mponza@gmail.com |
aea6c3de83c23b1dc7a355b74d2d31cefade985e | dd9f643d5833a3a4707a08eac38e30e03819a5f8 | /scomp/migrations/0014_blogmodel_blogparamodel.py | 8b5a0b8680eb54ca0f8280f9415cd36845bdfcdc | [] | no_license | Ashwary-Jharbade/services | e65e99be5508c9854797124f0392c2d32477ee7a | 2e514117e374fee4feef908e85cf8853f830f390 | refs/heads/master | 2023-03-04T10:10:35.499854 | 2021-02-18T19:12:16 | 2021-02-18T19:12:16 | 304,116,261 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,590 | py | # Generated by Django 3.0.4 on 2020-08-27 07:39
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('scomp', '0013_servicemodel_desc'),
]
operations = [
migrations.CreateModel(
name='BlogModel',
... | [
"ashwary.jharbade999@gmail.com"
] | ashwary.jharbade999@gmail.com |
49735df185c393c2ec9eacd961fb3a5fade967e1 | b3a9740a5099c490c2f21ca9a9bbf507ad2bd2bf | /blog/apps/aricle/migrations/0002_auto_20190725_1259.py | edfa89f55b029a422eb06d9951b52e75e5453e68 | [] | no_license | JummyWu/drf_blog | c27d39237fa0953650d092f40cfcc73beb238652 | b192485ad460eb1f05322dd09d0e97a63c476d4f | refs/heads/master | 2022-12-08T11:40:41.594820 | 2019-08-24T02:13:26 | 2019-08-24T02:13:26 | 164,213,480 | 1 | 0 | null | 2022-12-08T01:48:34 | 2019-01-05T12:36:00 | Python | UTF-8 | Python | false | false | 1,515 | py | # Generated by Django 2.1.5 on 2019-07-25 12:59
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('aricle', '0001_initial'),
migrations.swappable_dependency(setti... | [
"929440925@qq.com"
] | 929440925@qq.com |
f316549e5a2ecc6bd4a40922f52af9d83adf665c | 55e79a84cc8f416ef354c9457f53ba0ddf1dde09 | /tweets/migrations/0003_auto_20200120_1407.py | 107537f578f2235605ad5eb7b08cfa7cced2601d | [] | no_license | montionugera/twitter-api-drf | fdb9935b924ca406a4d472b0d38a13c06988bd7d | e1a6e7d4e88b8946548f7c7a301061871e65206c | refs/heads/master | 2020-12-14T23:50:41.866101 | 2020-01-20T15:01:34 | 2020-01-20T15:01:34 | 234,916,558 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 352 | py | # Generated by Django 3.0.2 on 2020-01-20 14:07
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('tweets', '0002_remove_tweet_pub_date'),
]
operations = [
migrations.AlterModelOptions(
name='tweet',
options={'ordering': ['... | [
"montionugera@gmail.com"
] | montionugera@gmail.com |
e5b94ab47de93b8731f125af0e33149260abb4fe | 6a515e3eaec9ddc9a0f5d61a8295ef26b250a520 | /run_tests.py | 88d89d01c2be113fec3bb199ac59b13e114a55df | [] | no_license | EventsExpertsMIEM/backend_19288 | 88146d0e1e0140318040e2f9fc68da14e180a76b | f4a98b325366ef7bbdbe9243f9b742a6998d6da3 | refs/heads/dev | 2020-09-14T14:17:51.939454 | 2020-04-23T14:45:49 | 2020-04-23T14:45:49 | 223,153,250 | 1 | 1 | null | 2020-04-10T10:34:15 | 2019-11-21T10:56:04 | Python | UTF-8 | Python | false | false | 172 | py | from app import db
import bcrypt
import testsuite
pw = bcrypt.hashpw(str('1234').encode('utf-8'), bcrypt.gensalt())
db.create_tables(pw.decode('utf-8'))
testsuite.run()
| [
"mvalkhimovich@miem.hse.ru"
] | mvalkhimovich@miem.hse.ru |
80bd00d96dd1eb06ab47528bd9e4e22aa23bbe46 | 152eae1f0febe35268c65b80ac218480486f2123 | /py/my_collections/test/test_sorting.py | 44a05787466dec2edb9df712b10793728e81a659 | [] | no_license | Crescent617/code-practice | a02b65516d296db15e72b2c2d1412f5befd7034f | f3dd8a3cf0bc9b1d00ed37793d02f1a89d8d5a96 | refs/heads/master | 2023-06-28T02:30:30.987862 | 2023-06-22T14:41:08 | 2023-06-22T14:41:08 | 218,738,764 | 0 | 0 | null | 2023-06-22T14:41:09 | 2019-10-31T10:17:55 | Python | UTF-8 | Python | false | false | 1,378 | py | from sorting import *
from dllist import DoubleLinkedList
from random import randint
from cProfile import Profile
max_num = 5000
def random_list(count):
numbers = DoubleLinkedList()
for i in range(0, count):
numbers.shift(randint(0, 10000))
return numbers
def is_sorted(numbers):
node = number... | [
"lihuaru617@outlook.com"
] | lihuaru617@outlook.com |
dab971b8321388507ca5447b0771da8ff6b6cbe4 | 9ecfdfbe098070079c9d96eb41ddb73f95857f93 | /Problems/Fahrenheit/main.py | a79b42503b60d7e0b1dac928368c284aaae7d333 | [] | no_license | sathishkumar8594ys/Simple_Chatty_Bot | 0e850c616bc6dbd1a970596a3a6105d38960f59a | b07c148fa057bd3171a86e6bb456342fbfd38bfe | refs/heads/master | 2023-03-09T21:13:13.150854 | 2021-02-28T04:07:00 | 2021-02-28T04:07:00 | 343,017,024 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 100 | py | def fahrenheit_to_celsius(fahrenheit):
cel = ((fahrenheit - 32)*(5/9))
return round(cel, 3)
| [
"sk@kali"
] | sk@kali |
65ece97ccb16002fa54a5cd663cf837dc9ccdf3f | 96bf70c65bbca98f85112e09d51ca749eeeaeb6b | /selftf/tf_job/inception/slim/ops_test.py | fa6b41c009c903fcb6a101d5c69b220604dc8b40 | [] | no_license | MLSysTune/MLTuner | 13f3ad91ce243224bf54e4b1af0a39046c4c45cb | 82fbeadb64a476a6d37afc7f34bd29ca2627740e | refs/heads/master | 2023-08-01T08:17:08.112017 | 2021-07-30T12:19:19 | 2021-07-30T12:19:19 | 407,482,737 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 29,284 | py | # Copyright 2016 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agree... | [
"fafaoc@me.com"
] | fafaoc@me.com |
e063920acaa40258008dba8ae5ed79c9bd2b66b7 | 85a9ffeccb64f6159adbd164ff98edf4ac315e33 | /pysnmp-with-texts/ENTERASYS-VLAN-AUTHORIZATION-MIB.py | c846ff1eb1ce291ffe2d355f4fb5cea046a7128a | [
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | agustinhenze/mibs.snmplabs.com | 5d7d5d4da84424c5f5a1ed2752f5043ae00019fb | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | refs/heads/master | 2020-12-26T12:41:41.132395 | 2019-08-16T15:51:41 | 2019-08-16T15:53:57 | 237,512,469 | 0 | 0 | Apache-2.0 | 2020-01-31T20:41:36 | 2020-01-31T20:41:35 | null | UTF-8 | Python | false | false | 12,071 | py | #
# PySNMP MIB module ENTERASYS-VLAN-AUTHORIZATION-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ENTERASYS-VLAN-AUTHORIZATION-MIB
# Produced by pysmi-0.3.4 at Wed May 1 13:04:50 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Pyt... | [
"dcwangmit01@gmail.com"
] | dcwangmit01@gmail.com |
00ff92f5206a95948024ec7a6e5ea5fa74bdedc7 | d5f31dbe958d5e8ddcf0dd042050925b5206c7c7 | /.vscode/寻找空间中的向量投影.py | 23e5f2dd1e0d29100620dc3deb4baaeee142ffec | [] | no_license | dertaek/a-b-test-projects | b88910ffca421b8b5d3c47d84142ebe6fa6f0239 | 5637b833064b8992d9eb7ba115477b7a9723d492 | refs/heads/master | 2023-03-17T00:45:30.337383 | 2020-10-26T05:26:11 | 2020-10-26T05:26:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 33 | py | # 利用矩阵来描述投影。
| [
"w664578037@gmial.com"
] | w664578037@gmial.com |
9258811529068e0ef737d4531c5f0d6ea7426561 | 4d6975caece0acdc793a41e8bc6d700d8c2fec9a | /leetcode/1692.number-of-ways-to-reorder-array-to-get-same-bst/1692.number-of-ways-to-reorder-array-to-get-same-bst.py | 00644cb83012c5b2e15d2232e9f6f7f861427b4f | [] | no_license | guiconti/workout | 36a3923f2381d6e7023e127100409b3a2e7e4ccb | 5162d14cd64b720351eb30161283e8727cfcf376 | refs/heads/master | 2021-08-03T10:32:02.108714 | 2021-07-26T04:38:14 | 2021-07-26T04:38:14 | 221,025,113 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 73 | py | class Solution:
def numOfWays(self, nums: List[int]) -> int:
| [
"guibasconti@gmail.com"
] | guibasconti@gmail.com |
e19cb658c575b3bf49becb8695d95500b966fddc | 0967182e0b2c59448305870aaa193e051dd0eafa | /visualizer.py | 79f1191df0144cfdc55d0ebf0481a7b094b9d15b | [] | no_license | DT021/fake-tradingview | 43dcd483328193fb7d401b783bfa390c02c539d2 | 4c1c2ba1a58263c85545ac11abff555fa747c09a | refs/heads/master | 2023-01-30T22:15:48.790656 | 2020-12-04T15:06:23 | 2020-12-04T15:06:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,812 | py | import datetime
import logging
import time
import numpy as np
import pyqtgraph as pg
from pyqtgraph import QtCore, QtGui
from pyqtgraph.dockarea import *
from candlestickItem import CandlestickItem
from utils import Worker, logger
from volumeProfileItem import VolumeProfileItem
class Visualizer(DockArea):
def _... | [
"minh020698@gmail.com"
] | minh020698@gmail.com |
39b208a82a1ddf4a4bdc0162879768521bb9893d | 30b0b79b5d5258aefbeb4faf129483fae456c9fa | /shoe/models.py | 40a94f5d75503d82fd4a3ab753daf5b3f513b6dc | [] | no_license | arturAdr/easyResource | bcee8fefeffb13bc2de648a2d0220eb3dc1b1d71 | ffff2818c481191a0133b8b44b9b3e53f9de9e94 | refs/heads/master | 2020-06-10T08:44:01.352198 | 2019-06-30T02:19:45 | 2019-06-30T02:19:45 | 193,625,570 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,083 | py | from django.contrib.postgres.fields import ArrayField, JSONField
from django.db import models
from EasyResource.fields import JSONSchemaField
class Shoe(models.Model):
sku = models.CharField(max_length=100, unique=True)
name = models.CharField(max_length=100)
details = models.CharField(max_length=5000)
... | [
"artur.adr@hotmail.com"
] | artur.adr@hotmail.com |
1e4bc752b2c1a4e95cfc85a70366502bdad4f7cf | dfc4dc5d823dada86216bc7df451127bffab00bb | /authors/apps/products/views.py | f7e50a3347930b55f6672439a7e79b8ee513a0c9 | [
"BSD-3-Clause"
] | permissive | hoslack/jua-kali_Backend | 311250360574495052adab9267dc7c07f48ba0e7 | e0e92aa0287c4a17b303fdde941f457b28c51223 | refs/heads/master | 2022-12-21T02:17:35.808370 | 2019-02-05T12:26:05 | 2019-02-05T12:26:05 | 158,075,591 | 0 | 0 | BSD-3-Clause | 2022-12-08T01:20:29 | 2018-11-18T11:13:48 | Python | UTF-8 | Python | false | false | 374 | py | from .models import Product
from .serializers import ProductSerializer
from rest_framework import generics
class ProductList(generics.ListCreateAPIView):
queryset = Product.objects.all()
serializer_class = ProductSerializer
class ProductDetail(generics.RetrieveUpdateDestroyAPIView):
queryset = Product.o... | [
"hoslackochieng@gmail.com"
] | hoslackochieng@gmail.com |
315d23bf96cfe201a6c72c58d0333896da2bea03 | 649eabe3d4bef9c866c2884474f58c997a64f8d5 | /papers.py | 4dec4263add2da77a2e1abc163a3cbb8e88b5b83 | [] | no_license | ValeriaFakhrutd/Memory_model | 091c78a537b5ea4f7391c0d686c976711f43d339 | 62d787eb6e5d02899c727d28d401fb0d169ebede | refs/heads/master | 2022-12-07T12:31:54.710748 | 2020-09-03T21:25:13 | 2020-09-03T21:25:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,178 | py | """
=== Module Description ===
This module contains a new class, PaperTree, which is used to model data on
publications in a particular area of Computer Science Education research.
This data is adapted from a dataset presented at SIGCSE 2019.
You can find the full dataset here: https://www.brettbecker.com/sigcse2019/
... | [
"valeriia.fakhrutdinova@mail.utoronto.ca"
] | valeriia.fakhrutdinova@mail.utoronto.ca |
fc72058027cff3d6df1073e107bb3a426e164f7b | 85b6e009c45f2dd530d8ae186feb7e6e67d076a8 | /cohesity_management_sdk/models/protection_job_request.py | 3109e3d98f4406b033242dbb266e3567bd18c46e | [
"MIT"
] | permissive | priyambiswas0/management-sdk-python | 4a60153b038d0a04de02f2308362a2531b0ff9cb | 5807c85e003f271ce069b52529b31abfd08ec153 | refs/heads/master | 2021-10-20T05:43:34.626369 | 2018-05-22T06:04:20 | 2019-02-25T23:56:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 27,335 | py | # Copyright 2019 Cohesity Inc.
# -*- coding: utf-8 -*-
import cohesity_management_sdk.models.alerting_config
import cohesity_management_sdk.models.cloud_parameters
import cohesity_management_sdk.models.environment_specific_common_job_parameters
import cohesity_management_sdk.models.time_of_day
import cohesity_... | [
"ashish@cohesity.com"
] | ashish@cohesity.com |
7b97ec507375533d56ca683bf1a913138e0a7955 | e52bf115107bc31cd812cb5573bfa85900ecfaff | /eval-parcial-primer-bimestre/Ejercicio_1.py | e12c51a086dfa575494f7ea564cfe9d2509f06cc | [] | no_license | cfjimbo/fp-utpl-18-evaluaciones | cd0cbc793cb11f0d297c9dd2c445991d2b183e9a | 0353656bae322848d7732edb39d7d7f25e1bb275 | refs/heads/master | 2020-03-14T04:43:58.676649 | 2018-05-01T06:36:55 | 2018-05-01T06:36:55 | 131,448,076 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 563 | py | """Realizar un programa en Java que permita ingresar por teclado la longitud y la anchura de una
habitación, realizar los procesos respectivos que permita obtener la superficie de la misma, además
se debe presentar en pantalla el valor de la superficie, finalmente tomar en consideración que se
debe presentar el valo... | [
"noreply@github.com"
] | cfjimbo.noreply@github.com |
e30926a419b5d166b02a76f3f5c8ed329de20e60 | ff9fedd28f7436ba9945421e061fd2e1dadbf5c3 | /Alogithms/Dijkstra/dijkstra.py | 3d1510e8e6c59b494d2b934513ca7381f575586b | [] | no_license | ritwikbadola/Empirical-Analysis-Of-Algorithms | 0ed1b9c2c92813d11af33405527a4ecced8b2845 | 7ffb7a03e9d356d5368d2d79a49a8dabf49ed6c7 | refs/heads/master | 2022-08-19T12:39:24.875859 | 2020-05-16T03:53:35 | 2020-05-16T03:53:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,979 | py | # Python program for Dijkstra's single
# source shortest path algorithm. The program is
# for adjacency matrix representation of the graph
# Library for INT_MAX
import sys
class Graph():
def __init__(self, vertices):
self.V = vertices
self.graph = [[0 for column in range(vertices)]
for row in range(vertice... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.