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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
85e20e94bf5ceb3ce0eaa0051a9ace48902edd7c | 06d40ec0e9c7c969e881db1822a15bb16a71bd84 | /core/python/kungfu/command/master.py | 6aa55ba484fd00ac7f56e04e776113110465039a | [
"Apache-2.0"
] | permissive | lufy0839/kungfu | 092910ea5186d5fc781221f528fb6dbb6a407eef | a8dd41fbbfbf734e00daeaca04f19b391f525e77 | refs/heads/master | 2020-07-06T10:56:30.780647 | 2019-08-09T09:49:39 | 2019-08-09T09:49:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 365 | py | import click
from kungfu.command import kfc, pass_ctx_from_parent
from kungfu.practice.master import Master
@kfc.command()
@click.option('-x', '--low_latency', is_flag=True, help='run in low latency mode')
@click.pass_context
def master(ctx, low_latency):
pass_ctx_from_parent(ctx)
ctx.low_latency = low_latenc... | [
"dongkeren@gmail.com"
] | dongkeren@gmail.com |
3d3f3ffedc0136208d1dd1d69242ea787049176e | 31449586d5f4e5134c2bfd1b0b2499d6ababaed0 | /DB_HW1/Tests/FileTest.py | d87ff5917d6e606ea82d2cf6c4d66e28cbbef139 | [] | no_license | gsmith98/DatabaseSystems | c9ba02479f8d595b6ed8127276ec1e03b4a1eaec | 9cca77a048eba151ec639731509eb25c14e76605 | refs/heads/master | 2021-04-15T16:56:31.263128 | 2018-03-27T01:01:57 | 2018-03-27T01:01:57 | 126,908,176 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,170 | py | from Storage.Page import Page
from Storage.SlottedPage import SlottedPage
from Storage.File import StorageFile
from Storage.FileManager import FileManager
from Storage.BufferPool import BufferPool
from Catalog.Identifiers import FileId, PageId, TupleId
from Catalog.Schema import DBSchema
import sys
import uni... | [
"smitgw11@gmail.com"
] | smitgw11@gmail.com |
8c246fdb8ec2a24c2fe2e8fcdadfe37fd2c09855 | 5967f086e164e1c431cd60471497730ebfc6de05 | /project/source code/domain_visualization.py | e9d75878da655f0519abf5fd4828d057e503c43a | [] | no_license | ece143-fa18-group10/Wikidata_PageRank | a418f3acd5c8020ccebfb059374481d81b5155a8 | c42946b5bd2c3b55231d855e6addff4e0f450d2d | refs/heads/master | 2020-04-03T18:56:44.782663 | 2018-12-17T01:28:41 | 2018-12-17T01:28:41 | 155,503,320 | 0 | 1 | null | 2018-11-20T00:41:07 | 2018-10-31T05:24:56 | Jupyter Notebook | UTF-8 | Python | false | false | 3,853 | py |
# coding: utf-8
# In[2]:
import pandas as pd
import numpy as np
from tld import get_tld
edu_reserved_link = ['www','html','com','edu','htm','net','links','index']
reserved_link=['www','html','com','htm','net','links','index']
def plot_domain(data,name):
'''
plot domain analysis result data
Params:dat... | [
"zengkingsley@zengdembp-2.home"
] | zengkingsley@zengdembp-2.home |
7a8e293ca5b0403eab2dfe90f3c610ad48707efc | ab1cef32853b6519446800e39cff4759b4da9960 | /Python/Cours/fonction_pouvant_être_appelée_avec_un_nombre_variable_de_paramètres.py | c1d37f167f62f3a44079ab5b1c44fbc32bb02d2f | [] | no_license | wbwlkr/VSCode | cad37145072a080eae400dfbccaf9a3c1cf059b7 | 16a61832e7265f2f04b8300450f77263ac7d2ed6 | refs/heads/main | 2023-01-24T19:19:25.050923 | 2020-12-02T17:57:06 | 2020-12-02T17:57:06 | 317,948,300 | 0 | 0 | null | 2020-12-02T18:01:43 | 2020-12-02T18:01:42 | null | UTF-8 | Python | false | false | 486 | py | >>> def fonction_inconnue(*parametres):
... """Test d'une fonction pouvant être appelée avec un nombre variable de paramètres"""
...
... print("J'ai reçu : {}.".format(parametres))
...
>>> fonction_inconnue() # On appelle la fonction sans paramètre
J'ai reçu : ().
>>> fonction_inconnue(33)
J'ai reçu : (33... | [
"jessejamesdu11@gmail.com"
] | jessejamesdu11@gmail.com |
5eb6b920a069d7d323492d32eac6c8e910447e24 | a0356a363a28b31379b4dba05a1b457f0c9a98b8 | /myuser.py | bc8d33a0a6d3078cfb62b72feb40b849cd0fbdb2 | [] | no_license | UtsavShah14/InstagramWebApplication | e13d72b6b6d98563c5d17efbc6629d23ea93ef63 | 492510b13bdd8d34bacaa964f9c9f6af78abec61 | refs/heads/master | 2023-03-04T15:20:40.114255 | 2021-02-18T17:48:10 | 2021-02-18T17:48:10 | 280,900,863 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | from google.appengine.ext import ndb
from post import Post
class MyUser(ndb.Model):
username = ndb.StringProperty()
email_address = ndb.StringProperty()
followers = ndb.KeyProperty(repeated = True)
followers_count = ndb.IntegerProperty()
following = ndb.KeyProperty(repeated = True)
following_co... | [
"utsavahsesh.shah@student.griffith.ie"
] | utsavahsesh.shah@student.griffith.ie |
23adeb2cacea35f1320da8811d7238ba235c1119 | e267105f713c48c2af7aba8f8d41b17d557f84a1 | /1.py | 7d8cd6e3a7eb3aacde36ac0353fd63f715dacf85 | [] | no_license | dreamhunter2333/python-baidu-trans | 60b1d28527f6aceb0bfa1650a801686989bddd56 | 6edfc499a420864a71f5ea80dd6c8db0b6312240 | refs/heads/master | 2022-12-22T18:57:25.887027 | 2018-04-03T08:18:19 | 2018-04-03T08:18:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,331 | py | # -*- coding: utf-8 -*-
__author__ = 'jinmu333'
from tkinter import *
from multiprocessing import Process
import tkinter.messagebox as messagebox
import socket
import threading,time
import urllib,hashlib
import random
import requests,sys
def getTransText(in_text):
q = in_text
fromLang = 'auto' #翻译源语言=自动检测
toLang... | [
"jinmu333@qq.com"
] | jinmu333@qq.com |
23759faf5c42f76b6810674fefc1c94d1b0e13af | 8bb330e98fa17055f636681ffd28829b80aca63a | /domawka5.py | 1960cf0adc6d9972649bd253aa722bb48cd0e24b | [] | no_license | AnDr10wA/python | d265224e27cc0519162ffcffd5698a2f7c5bb7be | 3a39c55b3d38a3e38fa249e8c3bc5ea9c3f7f017 | refs/heads/master | 2020-04-12T05:22:44.838931 | 2019-01-24T12:02:15 | 2019-01-24T12:02:15 | 162,324,888 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,367 | py | class Human:
def __init__(self, name = None, age = None):
self.name = name
self.age = age
def say_hello(self):
if type(self.name) is str:
print(self.name)
else:
print('Name ne str')
if type(self.age) is int:
print(self.age)
... | [
"andr10wa@gmail.com"
] | andr10wa@gmail.com |
168f2b6ee6d80686195d7b2050a91cb4bf2b82ea | fbbe424559f64e9a94116a07eaaa555a01b0a7bb | /Sklearn_scipy_numpy/source/scipy/sparse/linalg/_onenormest.py | e34652a68df67fc873eecf2ed42327786c624f1e | [
"MIT"
] | permissive | ryfeus/lambda-packs | 6544adb4dec19b8e71d75c24d8ed789b785b0369 | cabf6e4f1970dc14302f87414f170de19944bac2 | refs/heads/master | 2022-12-07T16:18:52.475504 | 2022-11-29T13:35:35 | 2022-11-29T13:35:35 | 71,386,735 | 1,283 | 263 | MIT | 2022-11-26T05:02:14 | 2016-10-19T18:22:39 | Python | UTF-8 | Python | false | false | 15,138 | py | """Sparse block 1-norm estimator.
"""
from __future__ import division, print_function, absolute_import
import numpy as np
from scipy.sparse.linalg import aslinearoperator
__all__ = ['onenormest']
def onenormest(A, t=2, itmax=5, compute_v=False, compute_w=False):
"""
Compute a lower bound of the 1-norm of ... | [
"master@MacBook-Pro-admin.local"
] | master@MacBook-Pro-admin.local |
1d6b97e765f3a7f16caed9f39bd488474adf650e | b0dbd2e4dd83fe012cde29c8474bae5e33c23e2a | /harbor_client/model/robot_create_v1.py | 2f99d134e25272b617002f74eb94bb0b6fce1cd4 | [] | no_license | DevotionZhu/harbor-python-client-api | 0ba3999e5af126dbe97f0234c4a9601660a97dbb | f0cc6c453b488d5f456eff94000156182eb3a468 | refs/heads/master | 2023-04-17T22:06:06.024871 | 2021-04-11T22:20:28 | 2021-04-11T22:20:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,200 | py | """
Harbor API
These APIs provide services for manipulating Harbor project. # noqa: E501
The version of the OpenAPI document: 2.0
Generated by: https://openapi-generator.tech
"""
import re # noqa: F401
import sys # noqa: F401
from harbor_client.model_utils import ( # noqa: F401
ApiTypeError... | [
"vb@container-registry.com"
] | vb@container-registry.com |
21eb5e935e4dc33a4f8953d7df957a797f8004a7 | 5cd4bd9313bcd7d6976e38b11145a574bd534f2d | /care1/portal/fields/percentage.py | 1dcf043f324777d19528f685b8ecfe3c81c464bd | [] | no_license | venkatesh2184/pythonproject | 3fe4e352634a9deb5c85e3b1fc61a0c117ccc964 | dae9a751c5392fe425d00e04d3ef77637a21afa6 | refs/heads/master | 2020-03-28T07:40:56.331523 | 2018-09-08T09:55:47 | 2018-09-08T09:55:47 | 147,917,232 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 422 | py | from django.core.validators import MaxValueValidator
from django.db.models import PositiveSmallIntegerField
from django.utils.translation import ugettext_lazy as _
class PercentageField(PositiveSmallIntegerField):
description = _("Integer field with range from 0 to 100.")
def __init__(self, *args, **kwargs):
# k... | [
"venkat@gmail.com"
] | venkat@gmail.com |
300a308d532c85911f6555b79a7c970cd9a326eb | 9b89741c14730a4f8a1e6f96fd2ddc3ec96a25dd | /carbontax/plot.py | 1e97742d6d5a58a9214e37aafbfaa63a824e6635 | [] | no_license | kvanderwijst/optimalcarbontax | c8220b2471ca0cfa0b0f22fa2b2dd209135e30b2 | f8d4ead51b6de6be2cb81bafa9d0d8c98da018cd | refs/heads/master | 2020-03-26T14:14:33.449105 | 2018-08-16T11:35:27 | 2018-08-16T11:35:27 | 144,978,740 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,599 | py | ## Import packages
import plotly.offline as pyo
import plotly.plotly as py
import plotly.graph_objs as go
import plotly.tools as pyt
import datetime
import numpy as np
def plotlyInteractive():
pyo.init_notebook_mode(connected=True)
def plotStateAndControl (outputValues, showProxy=True, interactive=False):
... | [
"k.i.vanderwijst@gmail.com"
] | k.i.vanderwijst@gmail.com |
eb752208a5e20828b290f3fc45001e7b726bbfa8 | a9564a65e81567b03c29dc9efdb87df77933eb4d | /main.py | d1b4311f14440a09295b8936a446c0cbbcb3e2d5 | [] | no_license | ErnestSzczepaniak/game | 4c8c482bcf079968fb5c159a880be127b277e566 | 5ccf11b48a4f43edb1954bf6cf08ba18c2587a94 | refs/heads/main | 2023-02-12T07:14:48.721234 | 2021-01-13T11:32:22 | 2021-01-13T11:32:22 | 329,286,884 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,111 | py | import pygame
import sys
import object
import time
import random
import game
import player
import callback
import particle
game = game.Game()
game.camera.position.value = [512, 512]
player = player.Player()
player.position.value = [320, 320]
player.move.on_move = callback.Callback(particle.spawn, game, play... | [
"ernest.szczepaniak.en2@gmail.com"
] | ernest.szczepaniak.en2@gmail.com |
de41b60cdaaf716743d3823d22f9460650e4eb1f | 4fa6ea776b8c5ab22356274e01c6ff1a15783ae4 | /background_threds/CaptureThread.py | c23744caeb814f6c6cad0a4def0b4c9cfa9e81cb | [] | no_license | shamitv/Autonomous_Racer_Sim | d2cb4533cf5b700e8cd7ecc081667e146f073cc7 | 09717676ef709d2c3f5743b263ba27470972b6f4 | refs/heads/master | 2020-04-23T07:27:09.848436 | 2019-04-23T18:20:42 | 2019-04-23T18:20:42 | 171,006,438 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,065 | py | import threading
import time
from PyQt5.QtCore import QThread
from PyQt5.QtCore import pyqtSignal
class ImageCaptureThread(QThread):
""" It will keep taking screenshots till application exists.
"""
takeScreenShotSignal = pyqtSignal(str, name='takeScreenShot')
def __init__(self, ui, captureDir, interval... | [
"github@shamit.in"
] | github@shamit.in |
6b980f3b8e6e4db93e2cf06d94092b7994e48072 | 7893f5d395dfcbb1ad4f47d2961fbbde601c25c9 | /part_3 Chapter14/14-26.py | 934a3357123e5f0f655a3acdeb5594971da665e0 | [] | no_license | rlarkdms/This_is_coding_test_with_python | ae3286228bf0725575d8bb2f0b69b8c63ecc4028 | 41986d0079334651815167705a28ef0d2dd73a99 | refs/heads/master | 2023-07-29T10:49:15.398986 | 2021-09-10T10:49:21 | 2021-09-10T10:49:21 | 331,588,476 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,602 | py | #정렬된 두 묶음의 숫자 카드가 있음
# 각 숫자 카드의 수를 A,B라 하면 보통 두 묶음을 합치려면 A+B
# 그래서 구하는 건 여러장의 묶음이 있을 때 비교 하는 방법.
# (10+20)+(30+40)=100 ???
# -> (10+20)=30 -> (30+40) =70 ->100?
# 아니 문제가 이상한데 뭐지ㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋ
#최소 비교 횟수
# 10 20 30 40->
# 10+20=30 30+30 =60 60+40=100 ->190 아니 이거 무조건 이렇게 가는 건가?
#10+20=30 30+40=70 30+70=100 ->200
#40+10 =... | [
"rkdms7220@naver.com"
] | rkdms7220@naver.com |
2648f4ce3993783819f6af7e5907b0ad2c046d4a | 985874e55d959e6f815ef0a21fd7662b1d9b3574 | /services/gameserver/gameobjects/asynchandlers.py | f4ae42d62466b2ac1797c503c5b29cf3d85e6cec | [] | no_license | githubsands/poker | c19b746ea615a2e1cc458336dc3c55821d1e26da | 93f608eb079a4343f973688abcf1c914355b2a83 | refs/heads/master | 2022-12-04T17:22:22.140142 | 2020-08-10T18:05:37 | 2020-08-10T18:05:37 | 203,070,860 | 0 | 0 | null | 2020-08-10T18:05:38 | 2019-08-19T00:26:07 | Python | UTF-8 | Python | false | false | 114 | py | async def get_pot_handler(request):
return Response
async def get_card_handler(request):
return Response
| [
"26752232+githubsands@users.noreply.github.com"
] | 26752232+githubsands@users.noreply.github.com |
5e080f4c68f9b09ea640ba3d5f1eec6ef550305a | 63e6c270a7329e9f9030874a2a5de88c6cc1e1e4 | /status_UI/status_fetch.py | daa28a19b948f77cc50fe8ac9536c4a36d74f620 | [] | no_license | SaurabhRNayak/Just_Do_It-NPCI_HACK | e152127d391a3842d9225b20c375d849b3d5efb4 | 8e77784e8c0cbd693bce05227c2f81e7df290f06 | refs/heads/master | 2021-01-07T09:35:58.506409 | 2020-03-01T19:46:29 | 2020-03-01T19:46:29 | 241,651,881 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,817 | py | from flask import Flask,request,render_template,Response
from pymongo import MongoClient
app=Flask(__name__)
def connect_mongo():
global client,db,complaint_reg
client = MongoClient('mongodb://localhost:27017')
db = client['Database']
complaint_reg = db.complaint_reg
print("/*")
@app.route('/home... | [
"saurabhraman1996@gmail.com"
] | saurabhraman1996@gmail.com |
02701604a58c249a1488f5470f94671ab4bf44ad | 15b801de0dd019411135aad75f7cd653061489d3 | /actions/migrations/0001_initial.py | d0c21952f659882959d85157b7158114b4c98957 | [] | no_license | 007vict/bookmarksbyexample | ff73befa059de10cd4b425b615678ac0fd1fa528 | 6b614affe46ebc2ac0687ed5cdf50c6439784932 | refs/heads/master | 2020-04-29T16:59:37.434190 | 2019-03-22T21:29:27 | 2019-03-22T21:29:27 | 176,282,231 | 0 | 0 | null | 2019-03-18T19:15:24 | 2019-03-18T12:38:50 | Python | UTF-8 | Python | false | false | 1,262 | py | # Generated by Django 2.2rc1 on 2019-03-22 15:10
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('con... | [
"super_vg@bk.ru"
] | super_vg@bk.ru |
e0bb05f7819d66e7ae57c40d5566afcc54aeedac | e4920c4fe4290bde524e0c141189f80fddfe44b7 | /dashboard/urls.py | 524c5746de8285b0cc666f48b3c5563297731e11 | [] | no_license | ShahadatShuvo/Django_portfolio | 42af2b0aa686bff08730cdb105f95d6b63adb620 | 795ed7cbb6444245af08582ea63f57a0f32679a0 | refs/heads/master | 2023-05-30T01:43:50.409584 | 2021-06-14T08:29:18 | 2021-06-14T08:29:18 | 376,372,632 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 925 | py | from django.urls import path
from django.contrib.auth.views import LogoutView
from .views import (
dashboard,
profile,
profile_edit,
messages,
messages_api,
projects,
projects_api,
LoginView,
EducationView,
)
app_name = 'dashboard'
urlpatterns = [
path('', dashboard, name=... | [
"shahadat@baiust.edu.bd"
] | shahadat@baiust.edu.bd |
b617d07df3e7a5fef856996874c5493871797d17 | 3b6fe3d636c31e2f19b5bab47a24e461b50e99e0 | /FindMeAJob/SearchEngines/__init__.py | 1189fc7972452ea7b3f76b17bc2968b4543a5587 | [
"MIT"
] | permissive | ImOnFreeze/AdvancedMassJobSearch | 1ef5a6c42ad21b7c4bc80e07eb68e8d7250153c8 | d15a585eef209c4c29a41ff9457968e171b03615 | refs/heads/master | 2021-01-25T12:19:03.711190 | 2018-03-01T16:48:58 | 2018-03-01T16:48:58 | 123,462,119 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 193 | py | from .dice import Dice
from .careerbuilder import CareerBuilder
from .monster import Monster
from .simplyhired import SimplyHired
from .glassdoor import GlassDoor
from .linkedin import LinkedIn | [
"Joliva314@gmail.com"
] | Joliva314@gmail.com |
32d17909340fe8f715a0d61bf089d812ecc8233a | 32cd2cfa4f7c7d7e0d019a762a7bf6d5af57dcff | /tilers_tools/reader_ozi.py | 049560b0df9f780ec9f911a94b07b39c588b31b0 | [] | no_license | nakijun/tilers-tools.v20 | 56145c593587e688b0ecb2bcfd63f9cf4fdeeae3 | 798fed263f559fcbadd7caab712b7f2a20e769f2 | refs/heads/master | 2020-05-18T18:03:12.515493 | 2011-03-01T13:37:07 | 2011-03-01T13:37:07 | 32,844,158 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,441 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# 2011-02-08 17:38:41
###############################################################################
# Copyright (c) 2010, Vadim Shlyakhov
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation ... | [
"vadp@localhost"
] | vadp@localhost |
917441a22930e86ee5b95d848d91748a459d636c | 2157fc11935e920deebb3f0b26ad36d75fc938c9 | /Miscelaneous/countries_scraper.py | a3f2af83d03d5314a9e5fe4695ff9788338e37ce | [] | no_license | PhotoStorageSoftwareLab/Documents | 42814f7eec0ec8102b9cca734eeb4f2c11f66cfb | 9027d4afa5f1e2c1f5ae2658c1a0b26c46c820d7 | refs/heads/master | 2020-08-01T11:30:45.089612 | 2019-11-15T12:50:15 | 2019-11-15T12:50:15 | 210,983,413 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,333 | py | import scrapy
import csv
import os
import re
class CountriesSpider(scrapy.Spider):
try:
os.remove('countries.csv')
except:
pass
name = 'countries'
allowed_domains = ['developers.google.com']
start_urls = [
'https://developers.google.com/public-data/docs/canonical/countries_... | [
"brandon.pham@utexas.edu"
] | brandon.pham@utexas.edu |
c52d8b3df711e1593070d83d3fb7a6807d94af1b | 21d9d7e09d512094f6de1b1633cc1883c1b22dbe | /03. Arrays and ADT's/examples/Array.py | e08b384084e83f4fbf93c63a5813b0e684188057 | [] | no_license | scvalencia/algorist | b832abe4e979394583a189a18564b468b6e8d311 | 932913813ad6fe5318a9ebdb3db2abd91b483f87 | refs/heads/master | 2021-06-02T05:23:19.251398 | 2015-12-02T01:26:22 | 2015-12-02T01:26:22 | 28,255,823 | 11 | 3 | null | 2019-02-13T23:34:14 | 2014-12-20T03:43:14 | Python | UTF-8 | Python | false | false | 1,957 | py | '''
Array ADT
A one-dimensional array is a collection of contiguous elements in
which individual elements are identified by a unique integer subscript
starting with zero. Once an array is created, its size cannot be changed.
Array(size) : Creates a one-dimensional array consisting of size elements with each elemen... | [
"sc.valencia606@uniandes.edu.co"
] | sc.valencia606@uniandes.edu.co |
25b06c1a87f779db699e5864cf739b60c66e81af | 42d73d54eb173234d3b6df4a473c0abc4db59852 | /nodes/controller/psoc.py | f248d18c036db89d1891e71aeb0c1536170eea34 | [] | no_license | msanch/provospaceprogram | 88a3c95547c3178fcf5c351b0180283dea9e0b06 | 5210304353f12865ed794f11e8afae006e4ad1ca | refs/heads/master | 2021-01-11T18:04:48.384948 | 2017-06-18T00:30:13 | 2017-06-18T00:30:13 | 79,484,901 | 0 | 0 | null | 2017-04-03T18:20:42 | 2017-01-19T19:02:43 | Python | UTF-8 | Python | false | false | 2,300 | py | import struct
import serial
class FakeSerial():
def read(self, *args, **kwargs):
pass
def write(self, *args, **kwargs):
pass
class PSoC():
def __init__(self, debug, psp_num):
self.ser = serial.Serial('/dev/ttyAMA0', 115200, timeout=None) if not debug else FakeSerial()
p... | [
"josh.haertel@gmail.com"
] | josh.haertel@gmail.com |
445f91d1cfc06ee0dfed21c10169880f1262b7ae | dc36dd2b74d9db4e5b8fcd3d65514fb7275b39ba | /VsevolodSavchenko/6_strings/practise/ex4.py | 364484245442e86911fdf4b3cc4fa9210b6acdcf | [] | no_license | YuriiKhomych/ITEA_course | 917fd0b3bc83fc574ef5620b0eba89f5b8f169e4 | 56bf9c67e535b3d521d7f0dd45f1c737a25b6ce7 | refs/heads/master | 2020-06-25T19:00:31.801788 | 2019-09-17T06:14:59 | 2019-09-17T06:14:59 | 199,396,197 | 0 | 15 | null | 2019-11-20T19:49:30 | 2019-07-29T06:55:35 | Python | UTF-8 | Python | false | false | 154 | py | import re
string = "AV is largest Analytics community of India"
result = re.findall(r"^\w+", "AV is largest Analytics community of India")
print(result) | [
"vsevolod.savchenko@gmail.com"
] | vsevolod.savchenko@gmail.com |
c8ee01b7405eff2c753639b7da91ff9f128a5b8a | e978c1fc16f34e5cc6e3b907abbdf9bf690a1022 | /PS 3/ps3-1/ps3-improving.py | c218c4363f27ca387cb267654a17b5cd801a7e23 | [] | no_license | nefario7/cmu-cve | 3b00871b7540ac307708345eb30aab6d6b81894c | 86f2d5302a11d7de7dc246d3699e1cddb365bada | refs/heads/main | 2023-09-01T22:55:12.412127 | 2021-11-20T05:16:10 | 2021-11-20T05:16:10 | 402,300,850 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,085 | py | # Improving images using image filter kernels
import os
import numpy as np
import cv2 as cv
import matplotlib.pyplot as plt
# * Read input image function
def read_image(image_name):
image_path = os.path.join("ps3-images", image_name + ".png")
image = cv.imread(image_path)
if image is None:
print("\... | [
"64963908+nefario7@users.noreply.github.com"
] | 64963908+nefario7@users.noreply.github.com |
f57f7a2a1489715fa67b8cc3ca5912999c0b2b63 | 0f41b3564b08045f56b8ee4743ef8834b88a274e | /otree/management/commands/resetdb.py | b7de7fb73d101b0efdeaccd536b8a8f86fc9d5d5 | [
"MIT"
] | permissive | bjgoode/otree-core | b04911f00671ef6bbfeeb184359133f85ec221cb | ab6bbcbdb53cb1d74b205f04f16eb40ea099a45d | refs/heads/master | 2021-05-11T18:31:00.398740 | 2018-01-17T23:28:22 | 2018-01-17T23:28:22 | 117,827,105 | 1 | 0 | null | 2018-01-17T11:27:21 | 2018-01-17T11:27:21 | null | UTF-8 | Python | false | false | 6,623 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# =============================================================================
# IMPORTS
# =============================================================================
import logging
from django.conf import settings
from django.core.management.base import BaseCommand
... | [
"chris@otree.org"
] | chris@otree.org |
8aa639aff98132e95e43aa967b1655b5351b5783 | 880d9cc2704f7de649ad4455dd7ec2806b6a9e95 | /PythonExam/北京理工大学Python语言程序设计-Book/Chapter6/e10.3CalThreeKingdoms.py | 7dfc8f674c32c92b48171bf8ba1a75ce241cab31 | [] | no_license | shunz/Python-100-Days_Practice | 14795757effcff50a4644f57c5c109fa1c9c38ac | 82f508ff6911ce3aa5c5a69cd481a6cc87f02258 | refs/heads/master | 2020-12-26T18:52:32.755384 | 2020-04-07T15:49:36 | 2020-04-07T15:49:36 | 237,604,470 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,784 | py | """《三国演义》人物出场统计
- 输入
- 从网上找到三国演义全文,保存为threekingdoms.txt
- 处理
1. 分解并提取中文文章的单词
- 采用jieba对文章分词
- 排除不是人物的单词,用集合类型构建一个排除词汇库
- 合并同人不同名的单词,比如:刘备=刘玄德=玄德=刘皇叔=主公
2. 对每个单词进行计数
- 将单词保存在变量word中
- 使用一个字典类型counts={}
- counts[word]... | [
"rockucn@gmail.com"
] | rockucn@gmail.com |
c5a1a12ade4d503ba1eb4855b0630ddbbf2c000c | 1f1941e7239bee76cd6a285eefc0edad75aaf36a | /iran_list/products/serializers.py | 6d646e9c1cda5a353c50ecefb5605816b8710370 | [] | no_license | xishma/TechPin | a3e73f43e501860b3ef848809f8ec9e11caaa0a0 | f337d10407afa705edaa5a736aa4b13b34dbfa8d | refs/heads/master | 2021-01-21T05:28:10.253876 | 2017-09-10T11:24:17 | 2017-09-10T11:24:17 | 83,186,726 | 0 | 0 | null | 2017-02-26T05:56:56 | 2017-02-26T05:56:56 | null | UTF-8 | Python | false | false | 4,808 | py | import traceback
from django.contrib.auth.models import User
from django.http import HttpResponse
from django.utils.translation import ugettext_lazy as _
from rest_framework import serializers
from rest_framework.renderers import JSONRenderer
from rest_framework.serializers import raise_errors_on_nested_writes
from i... | [
"xishma@gmail.com"
] | xishma@gmail.com |
41d050069f07464640c4d394a26cca8fbbcbb9ee | 0743657e134ddd503a8d2b3304a6d9279a4aa00e | /config.example.py | 3018eace46b756c936ce2ab32ed11841a9b1714c | [] | no_license | leafduo/focus-api | 9fd1364b49e992f229172b1754c6b61a674fbd68 | 40d35539841f138a9aea2fbe5066a08cb7b5ca15 | refs/heads/master | 2020-05-19T19:57:54.816081 | 2012-06-29T08:49:01 | 2012-06-29T08:49:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 161 | py | from tornado.options import define, options
define("debug_mode", default=True, help="Debug mode enabled.")
define("port", default=9000, help="Port to listen.")
| [
"leafduo@gmail.com"
] | leafduo@gmail.com |
fd2eda8d4c3de5c0f339d23a95460ba4f9a8f2c2 | 3a1bf8dbeed7561152b2f7646fb27c7c6c7f8087 | /Missing_Numbers.py | 0d1179611d8f1870b9bfa279794fdb06e5d9cb7f | [] | no_license | yogeshjadhav22/HackerRank_Code | e55f4728d78ef32e4a35ab5b39d25a656079b436 | fea6df8ccc22061464159a28e9b22a1c7cac086f | refs/heads/master | 2020-07-19T16:58:00.350746 | 2019-09-05T06:02:08 | 2019-09-05T06:02:08 | 206,036,071 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,299 | py | #https://www.hackerrank.com/challenges/missing-numbers/problem
#!/bin/python3
import math
import os
import random
import re
import sys
# Complete the missingNumbers function below.
def missingNumbers(arr, brr):
st=[]
for i in brr:
if i not in st:
st.append(i)
... | [
"yogesh.rj22@gmail.com"
] | yogesh.rj22@gmail.com |
b8aa7c0fbbbc85ced858cb68b0a50f1132f1d81e | f6fee9397e858bce2d2e4258602d4a029b9a859e | /LinkedList/Leetcode 2. Add Two Numbers.py | 1e00848552ec84c31c195e4f04828dcbc7479c86 | [
"MIT"
] | permissive | sriharsha004/LeetCode | e180dc4c0e1af217d3fbe026650b4035c50a388b | 95ca845e40c7c9f8ba589a45332791d5bbf49bbf | refs/heads/master | 2022-12-07T11:37:28.843751 | 2020-08-21T03:05:45 | 2020-08-21T03:05:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 572 | py | class Solution:
def addTwoNumbers(self, l1: ListNode, l2: ListNode) -> ListNode:
dummy = ListNode(0)
cur = dummy
carry = 0
while l1 or l2:
sums = 0
if l1:
sums += l1.val
l1 = l1.next
if l2:
sums += l2... | [
"Tian.Zeng@aexp.com"
] | Tian.Zeng@aexp.com |
187c76a44611aac553ef3513f40679e17b0dc670 | 2beaf3b67c7e5d5b9cf6c7f1686bcdd1abcfc66c | /Meeting Notes/2020/2020-07-11/cayley-1997-21.py | 33117562985e49dfbb347eec2f795b54761d6f6a | [
"MIT"
] | permissive | agryman/sean | c74f402381f471133c4f6fdaab51068fbc6a9f34 | 6fae5e9d2e57002887c44a80ff78c28e4eaa4e9b | refs/heads/master | 2023-08-16T20:31:38.431213 | 2023-08-15T15:19:51 | 2023-08-15T15:19:51 | 239,191,781 | 1 | 0 | MIT | 2023-08-15T15:19:52 | 2020-02-08T19:23:49 | Jupyter Notebook | UTF-8 | Python | false | false | 494 | py | # Cayley Contest
# 1997
# Question 21
def is_solution(a, b, c):
if a * (a*b + a*c + b*c) == 11 * b * (b*c + a*b + a*c):
return a + 2 * b + c <= 40
else:
False
def find_all_solutions():
return [(a, b, c)
for a in range(1, 40)
for b in range(1, 40)
for c... | [
"arthur.ryman@gmail.com"
] | arthur.ryman@gmail.com |
bc877479b0b865074080af72c7ae65d1629492ab | 6b1991e209c1860aff1d16f9f3b351cf248d57f3 | /property_website_ee/controllers/property_login.py | 8c7446d025df45e853582f9e49bef0280671bd0e | [] | no_license | maarejsys/Roya | ac6451bc1745d33c1173e8058d4f0d3561d49c75 | 163136f382faa8607db8fb6cda42a5ba07c4076b | refs/heads/master | 2022-12-29T21:23:31.219410 | 2020-09-21T09:56:45 | 2020-09-21T09:56:45 | 293,956,783 | 0 | 5 | null | 2020-09-12T12:49:52 | 2020-09-09T00:08:54 | null | UTF-8 | Python | false | false | 5,147 | py | # See LICENSE file for full copyright and licensing details
# from odoo.addons.auth_signup.models.res_users import SignupError
from odoo.addons.web.controllers.main import ensure_db
# import werkzeug
# import logging
# import werkzeug.utils
# import odoo.addons.website_sale.controllers.main
import odoo
from odoo import... | [
"50056946+maarejsys@users.noreply.github.com"
] | 50056946+maarejsys@users.noreply.github.com |
c17d2dee7f5cffed2c23ef9428f841a3bc4e8357 | 4a7aaed95b13b4a901cf6c9d509c10e4457f4736 | /db.py | 1adaa6f8aae70499e8e151ff2c61ceaa7b9bdf7d | [] | no_license | ashi-06-jul/Chatbot | dd0e335891a5ddf77fb710b5c220772697c63ab5 | 98fd74f8c490963ccf315e822778b44939c86948 | refs/heads/master | 2022-09-16T06:09:13.254106 | 2020-05-31T07:44:02 | 2020-05-31T07:44:02 | 262,031,408 | 1 | 1 | null | 2020-06-01T13:33:42 | 2020-05-07T11:27:03 | Python | UTF-8 | Python | false | false | 1,291 | py |
import sqlite3
class DB:
def __init__(self, dbname="details.sqlite"):
self.dbname = dbname
self.conn = sqlite3.connect(dbname)
def setup(self):
stmt = "CREATE TABLE IF NOT EXISTS INFO(city text, locality text, pincode integer, req text, standard text, board text, medium text, subject... | [
"36784332+ashi-06-jul@users.noreply.github.com"
] | 36784332+ashi-06-jul@users.noreply.github.com |
3ff310633b64d9cec2ea013b0d916c8d046815e9 | f3ed6de17c3719225b2b3fc68e2ae086173da0d2 | /other/snake.py | 9f9faae0498b3b6eb0bb35a388fe1e39e92710b4 | [] | no_license | zwhset/gpython | 402bd4f577cae54b78f60f81462e453989ee60d5 | d835e0a77b4675b99a66caa57b6e1cb625a10bd6 | refs/heads/master | 2021-05-03T11:21:21.771168 | 2019-09-03T08:18:18 | 2019-09-03T08:18:18 | 120,549,482 | 2 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,732 | py | # -*- coding: utf-8 -*-
"""
package.module
~~~~~~~~~~~~~~
网上找的区块链的实现:
首先将定义块将是什么样子。在区块链中,每个块都存储一个时间戳和一个索引。在SnakeCoin中,需要把两者都存储起来。为了确保整个区块链的完整性,每个块都有一个自动识别散列。与比特币一样,每个块的散列将是块索引、时间戳、数据和前块哈希的加密哈希。数据可以是你想要的任何东西。
:copyright: (c) YEAR by zwhset.
:license: GOMEOPS, see LICENSE_FILE for more details.... | [
"zuowenhong@gomeholdings.com"
] | zuowenhong@gomeholdings.com |
7920c8045e8736ae1041b46b13b8fe63cafa06e9 | b95e21cc61450749f57955f48e0935f79a8c5300 | /mcauto/mc.py | 287e5ec6f96e76c60218118d856633b6d0c70fb9 | [] | no_license | tinaxd/mcauto | f10be827ebff7651bdd26a7f67212cb2af98cf4d | 01e354a7acc7703050ad62089df4c5a72feb74a3 | refs/heads/master | 2023-03-30T06:08:21.508189 | 2021-04-07T09:47:37 | 2021-04-07T09:47:37 | 237,565,119 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,427 | py | import subprocess
import libtmux
import sys
import os
class IllegalStateError(Exception):
def __init__(self, msg):
super().__init__(msg)
self.msg = msg
try:
with open("mcautoinit.start", "r") as f:
START_COMMAND = f.readline().strip()
except EnvironmentError:
print("Failed to rea... | [
"tinaxd@tinax.work"
] | tinaxd@tinax.work |
bc0d6b41d693b1c214f40dec9a8b088f60feb8ae | 9ac6fa64ef59bc92751633e2f7cec81f2b1df54b | /main.py | 5776d4fcb6a9c3fb28d25b668ad749f6b440e2e5 | [] | no_license | CrRaul/SunPositiononMap | 62811f44ca43693f6f27d7bee999a3b3af84ae2e | ae59af668cf8a6fe83389050f2fc28b57ac40e4a | refs/heads/master | 2023-04-19T20:04:03.986407 | 2021-05-15T10:37:35 | 2021-05-15T10:37:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,004 | py | from math import *
from SunProprieties import *
import numpy as np
import cv2
from prettytable import PrettyTable
H,W = 500,500
# rotate the line((0,0),(0,R)) with angle in clockwise
def rotateLine(angle, R):
y = -R
xp = -y * sin(deg2rad(angle)) + H//2
yp = y * cos(deg2rad(angle)) + H//2
return [xp,yp]
def deg... | [
"noreply@github.com"
] | noreply@github.com |
11f87053a9b778f57300d4430253f97fcf77ccc6 | 3a533d1503f9a1c767ecd3a29885add49fff4f18 | /saleor/graphql/translations/mutations/product_translate.py | bfb252870e111b3c02e367b5f1d589c8e89a8ce5 | [
"BSD-3-Clause"
] | permissive | jonserna/saleor | 0c1e4297e10e0a0ce530b5296f6b4488f524c145 | b7d1b320e096d99567d3fa7bc4780862809d19ac | refs/heads/master | 2023-06-25T17:25:17.459739 | 2023-06-19T14:05:41 | 2023-06-19T14:05:41 | 186,167,599 | 0 | 0 | BSD-3-Clause | 2019-12-29T15:46:40 | 2019-05-11T18:21:31 | TypeScript | UTF-8 | Python | false | false | 2,059 | py | import graphene
from ....core.tracing import traced_atomic_transaction
from ....permission.enums import SitePermissions
from ....product import models as product_models
from ...channel import ChannelContext
from ...core import ResolveInfo
from ...core.enums import LanguageCodeEnum
from ...core.types import Translation... | [
"noreply@github.com"
] | noreply@github.com |
f792e5de0ef32f047b98b4a3d27b410d7185e5ad | d69bff5c124177d16074034da7b87859a4e9a525 | /src/pretix/plugins/statistics/__init__.py | eb7d476351730b84ea392eb9ec1ac39e48ad3ec5 | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | snadal/pretix | f377313d52cb57d0193c8d102af1e47f64de7ce6 | 430ccece9a3af6fd93c51626a9551ef79cee8002 | refs/heads/master | 2021-02-15T09:17:07.063355 | 2020-03-04T11:44:37 | 2020-03-04T11:44:37 | 244,885,007 | 0 | 0 | NOASSERTION | 2020-03-04T11:38:09 | 2020-03-04T11:38:09 | null | UTF-8 | Python | false | false | 588 | py | from django.apps import AppConfig
from django.utils.translation import ugettext_lazy as _
from pretix import __version__ as version
class StatisticsApp(AppConfig):
name = 'pretix.plugins.statistics'
verbose_name = _("Statistics")
class PretixPluginMeta:
name = _("Statistics")
author = _(... | [
"mail@raphaelmichel.de"
] | mail@raphaelmichel.de |
2ff8cdc449948459a2a880d5909bdc868e028208 | 59eaa9fc2101c8cf41ca637cdca5e2327a572471 | /ex29.py | fbf061a9d6d46a105e50e6eda4314c5694aea9b1 | [] | no_license | moritz2104/LPTHW | 80e159321c2a6e71a9b9944844469eb74c5e3b7c | 02b9609adb7f2339f5043d7832ba8ac53659b532 | refs/heads/master | 2020-12-24T18:42:35.773970 | 2016-05-26T10:12:58 | 2016-05-26T10:12:58 | 58,759,677 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,000 | py | people = 20
cats = 3
dogs = 15
if people < cats: # if this is TRUE, do what comes indented.
print "Es gibt zu viele Katzen!"
if people > cats:
print "Nicht zu viele Katzen, die Welt ist gerettet."
if people < dogs:
print "Es gibt weniger Hunde als Menschen."
if people > dogs:
print "Juchuuuu, mehr Menschen als ... | [
"mail@moritzjuedes.de"
] | mail@moritzjuedes.de |
a348f9e36415fb6b200150a3e7d64e1e45a70dc7 | 4b59b4a2f686fe9f3501ace856e655dc367e6f00 | /최종/개발/forward_server3.py | 67c2fa86bd6ea3c3e348e7ea1f626a97ab59c412 | [] | no_license | gaincds/iamwizstick | 53a2104d677eda960b308e5826796c2540462cd6 | 125f154f1e83d67cbed004593b00424bf5b010c3 | refs/heads/master | 2021-02-16T20:23:18.834537 | 2020-03-05T02:07:56 | 2020-03-05T02:07:56 | 245,042,150 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,190 | py | #!/usr/bin/python
# This is a simple port-forward / proxy, written using only the default python
# library. If you want to make a suggestion or fix something you can contact-me
# at voorloop_at_gmail.com
# Distributed over IDC(I Don't Care) license
import socket
import select
import time
import sys
import hm... | [
"noreply@github.com"
] | noreply@github.com |
b80e2c2637a4ebeedde769c6f58f1b821d432072 | 416559370cfed287db119360d2747783c6bcc512 | /posty/site.py | 76a0f9656db25f0ef01bb5ef426564225df6aa0c | [
"MIT"
] | permissive | nickpegg/posty | a4916da4ffc103b3d33a14b9bc831c76ccf478aa | 7d83ab316416e6b4fc59c74a5376fa1ce407a481 | refs/heads/main | 2023-08-31T14:42:05.444202 | 2023-08-12T15:59:08 | 2023-08-12T15:59:08 | 871,028 | 2 | 0 | MIT | 2023-08-12T15:59:09 | 2010-08-29T23:52:57 | Python | UTF-8 | Python | false | false | 7,695 | py | from __future__ import absolute_import
from collections import Counter
import datetime
import os.path
import shutil
from .config import Config
from .exceptions import PostyError
from .page import Page
from .post import Post
from posty.renderer import (
HtmlRenderer,
JsonRenderer,
RssRenderer,
AtomRend... | [
"nick@nickpegg.com"
] | nick@nickpegg.com |
ed485dc95fb5883f123f4e93fc2f7ae8857e80cd | 0775fcd1be9cb0cbb19802a4a7586e1fd155790b | /nlp_site/apps/logic/json_manipulation.py | ab9ff986fad078cf6b1de1216f5eb4ce7f37e942 | [] | no_license | ejgm99/nlp-site | 3b48818df406ffe7d0fb8b06057f217165a750e4 | 87178b63238a7da897563c7e462a5a7426f4a05a | refs/heads/main | 2023-06-30T01:38:36.397960 | 2021-08-04T03:34:28 | 2021-08-04T03:34:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 410 | py |
#"flattens" a json object from a dictionary into something that makes more
#sense from a template rendering standpoint
def jsonToHTML(json_object):
keys = list(json_object.keys())
json_list = []
for i in range(len(json_object[keys[0]])):
temp_dict = {}
for key in keys:
temp_dict... | [
"erickgomez@mymail.mines.edu"
] | erickgomez@mymail.mines.edu |
b1cdd957b6c482de677de1a3c50d874fa2635c26 | f4c6053239c4d01b15f21841ac86feaa4e27b2b9 | /fitsimage.py | 0280f468fc512557986a9fe741b2c6d58813e7fc | [] | no_license | crawfordsm/ir-reduce | a9740e65737f53fae2c73539f5faef06e49f88f6 | 0e1348a5e3c15886c6e5c25c73901aff484cf5aa | refs/heads/master | 2021-01-17T04:58:49.390234 | 2014-07-04T04:48:08 | 2014-07-04T04:48:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,663 | py | from astropy.io import fits
import numpy as np
from scipy.misc import bytescale
from robuststats import array_process
from astropy.modeling import functional_models as fm, fitting
def zscale(imarray, contrast = 0.25, num_points = 600, num_per_row = 120):
num_per_col = int(float(num_points) / float(num_per_row) + ... | [
"graymation@yahoo.com"
] | graymation@yahoo.com |
d41ff6420d06d818e2ab5a25624c9b606d063a7c | 76a1962e7f7bcb355bd48ae74ec03c3ea04edc53 | /ecommerce_project/settings.py | 0a117b344ed53a3d076f1512810e25e3d276fa38 | [] | no_license | donga2606/ecommerce-dennis | 8b3626364e0aad7982a8b7d06d50f8bc1b130a37 | c5b16333a54ecaac2c9b88241c9d15b9726bdbfe | refs/heads/master | 2023-03-08T10:22:33.672651 | 2021-02-23T08:39:25 | 2021-02-23T08:39:25 | 341,485,052 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,269 | py | """
Django settings for ecommerce_project project.
Generated by 'django-admin startproject' using Django 3.1.5.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
fr... | [
"donga.ftu2@gmail.com"
] | donga.ftu2@gmail.com |
efda07d08ba33354c4b37a0dbe995c7f0263f778 | 509c5d1531c3e922a77dbfc6cad4eab42f621198 | /Entities/VisObj/__init__.py | 1f3da249d8f17ce352099b1c98f666d6c9f202b9 | [] | no_license | rafaelesteller/visionProcess | 31a8766ccfc9a4d59eadfe50c62efbb2c15f3b61 | 4680275e7ae36bafa31ad8b1bc2a81487dbbb563 | refs/heads/master | 2021-09-04T02:26:25.177948 | 2018-01-14T17:17:07 | 2018-01-14T17:17:07 | 117,448,919 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 186 | py | from gateVisObj import gateVisObj
from pathVisObj import pathVisObj
visObjects = { #name : #object
"gate" : gateVisObj,
"path" : pathVisObj
}
| [
"riestell@ncsu.edu"
] | riestell@ncsu.edu |
e70940f1fc0a6923aa35836638dab5f0d7ce37b1 | 51f9f73983736a29123a265937f3d8cd47ec9d40 | /source/foreground-background/_edge_detection.py | eecaffdd9354d78a5c262b87408fa95d6111e979 | [
"BSD-2-Clause"
] | permissive | shaharazulay/deep-segmentation-prior | a1448cc058ecefee387c02e6fc8e0c37a3b1babb | 8ab455b1a9d6f0c3e1d26e00536097234af24902 | refs/heads/master | 2020-07-22T18:42:09.516781 | 2019-09-16T09:02:30 | 2019-09-16T09:02:30 | 207,292,585 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,596 | py | from scipy import ndimage
from scipy.ndimage.filters import convolve
from scipy import misc
import numpy as np
class cannyEdgeDetector:
def __init__(self, imgs, sigma=1, kernel_size=5, weak_pixel=75, strong_pixel=255, lowthreshold=0.05, highthreshold=0.15):
self.imgs = imgs
self.imgs_final = []
... | [
"shahar4@gmail.com"
] | shahar4@gmail.com |
1f7b18db77e84c2ee8684984355e61f39502ba0b | 8cef23fa29ee129318c11deabf751252e8314d47 | /Control_Exp1001/demo/thickener/common/one_round_exp.py | 435457e3794f3c5b8dbf2ee6c761d58231e6cf19 | [
"MIT"
] | permissive | y18810919727/Control_Exp1001 | 4bbfdb04b9a10edbc20e83320e1c0bf549145f24 | 1186e3cdd5fdf6dce871bc8ebc93b47fd8d40485 | refs/heads/master | 2022-12-01T08:35:47.075414 | 2022-11-19T04:14:01 | 2022-11-19T04:14:01 | 159,924,997 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,776 | py | # -*- coding:utf8 -*-
import pprint
import numpy as np
from Control_Exp1001.demo.thickener.common.data_package import DataPackage
import matplotlib
matplotlib.style.use('ggplot')
from sklearn.metrics import mean_absolute_error as mae
# 实验类:用于调度env和controller进行交互,并每隔一定的训练轮次(rounds),对模型进行一次评估
class OneRoundExp:
d... | [
"18810919727@163.com"
] | 18810919727@163.com |
91f4b725bbced4e508187b671769a909ca814dcd | 70d158d7b939c61d752eccb05032aec31dd764fd | /pretraining/pretraining.py | 3b4cf0482f58ea0941bd9a3f7aaf9bf22e4350e7 | [
"Apache-2.0"
] | permissive | baymaxoct/bert4keras | 9aa2610ca89d0485a9d6886ab1baa94003bf70de | 569eec5dcad343242ec8f5623245411948041fe6 | refs/heads/master | 2021-02-12T19:23:29.636059 | 2020-03-03T10:28:16 | 2020-03-03T10:28:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,226 | py | #! -*- coding: utf-8 -*-
# 预训练脚本,多GPU版/TPU版本
import os, re
os.environ['TF_KERAS'] = '1' # 必须使用tf.keras
import tensorflow as tf
from data_utils import *
from bert4keras.bert import build_bert_model
from bert4keras.backend import keras, K, search_layer
from bert4keras.optimizers import Adam
from bert4keras.optimizers ... | [
"noreply@github.com"
] | noreply@github.com |
b74b7bda5bac6bc507742a514ec3185eb70a067c | 57924abad02102b00b1952d401de236fdb64727e | /torch/torch_quantization_attack/torch/nn/modules/pooling.py | 2041a287a2118a26da2b9f9981999562ff5cb6bc | [
"MIT"
] | permissive | 0222826398/Stealthy-Backdoors-as-Compression-Artifacts | 50b76859f58453d677f2ff8757a6022b67cb32d3 | f8f4da6613a655c65050818ef97866accc085928 | refs/heads/main | 2023-08-20T10:50:15.240696 | 2021-10-17T05:32:07 | 2021-10-17T05:32:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 47,600 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
from .module import Module
from .utils import _single, _pair, _triple
from .. import functional as F
class _MaxPoolNd(Module):
__constants__ = ['kernel_size', 'stri... | [
"yulongtian@Yulongs-Laptop.local"
] | yulongtian@Yulongs-Laptop.local |
a6c8e50d097c76dd279c33d5613c604040f46931 | 6a6ff0dfbbd2d9c64d7e53cacfc6421ccdf3c469 | /PPT/TKITNER UPLOAD/demo-scale-simple.py | eef8af980ec249ed98bb0afa736c6718c0e81caf | [] | no_license | CHINASH29/hello-world | dfe9c27f60a8a151909d107edf961df182db8161 | 5c4e93f0706c619deeafd0bbd94c48453b7212e6 | refs/heads/main | 2023-09-06T03:49:09.763449 | 2021-10-13T03:45:35 | 2021-10-13T03:45:35 | 265,886,753 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 234 | py | # Scale
from tkinter import *
root = Tk()
scl = Scale(root, from_=1, to=12, resolution=2)
scl.pack(expand=YES, fill=Y)
def report():
print(scl.get())
Button(root, text='state', command=report).pack(side=RIGHT)
root.mainloop()
| [
"57975801+deep0207@users.noreply.github.com"
] | 57975801+deep0207@users.noreply.github.com |
eacc4ec788812a02d38d19d23aea55d3f053a2dc | b3699724907850fd26cbce4509fec83a33b89760 | /python/ray/autoscaler/_private/event_summarizer.py | d877bf424459d75777a728931f35e79993c01ecb | [
"Apache-2.0",
"MIT"
] | permissive | BonsaiAI/ray | 5e2f26a81d865a795261d11f9182aca7f07c7b97 | 941d30f082fe879ea30618af14327c25b5a21a74 | refs/heads/master | 2023-06-12T05:15:29.370188 | 2021-05-06T07:03:53 | 2021-05-06T07:03:53 | 233,708,687 | 3 | 5 | Apache-2.0 | 2023-05-27T08:06:37 | 2020-01-13T22:41:47 | Python | UTF-8 | Python | false | false | 1,430 | py | from typing import Any, Callable, Dict, List
class EventSummarizer:
"""Utility that aggregates related log messages to reduce log spam."""
def __init__(self):
self.events_by_key: Dict[str, int] = {}
def add(self, template: str, *, quantity: Any,
aggregate: Callable[[Any, Any], Any]) ... | [
"noreply@github.com"
] | noreply@github.com |
f16a8c1bae7847be6dfceb67897dee835eca9958 | 907b3bbd44c95be1542a36feaadb6a71b724579f | /files/home/gcloud/google-cloud-sdk/lib/surface/container/builds/create.py | c0d1af759913e065a72a78222c6ad59bf6ef3554 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | vo0doO/com.termux | 2d8f536c1a5dbd7a091be0baf181e51f235fb941 | c97dd7b906e5ef3ec157581fd0bcadd3e3fc220e | refs/heads/master | 2020-12-24T09:40:30.612130 | 2016-11-21T07:47:25 | 2016-11-21T07:47:25 | 73,282,539 | 2 | 2 | null | 2020-07-24T21:33:03 | 2016-11-09T12:33:01 | Python | UTF-8 | Python | false | false | 919 | 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 ag... | [
"kirsanov.bvt@gmail.com"
] | kirsanov.bvt@gmail.com |
fc0d60ffc1874fd01c05d660217c99ecbd2ee2c6 | a608f9b7d8de4eca608c1d86af7a204d326aee98 | /meta/GLORYS2V3.py | 36d9dfe307c43da8d61e8c17209e904ca1747b86 | [
"Apache-2.0"
] | permissive | chandra04/META | a6f9cb9ce01d3a30fe3422577fae4509934327b0 | a753186049a00cc2a5255f071caad70758add087 | refs/heads/master | 2023-03-18T11:43:55.461546 | 2020-03-21T10:35:26 | 2020-03-21T10:35:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,065 | py | # -*- coding: utf-8 -*-
"""
Copyright Netherlands eScience Center
Function : Extract Meteorological fields from GLORYS2V3
Author : Yang Liu (y.liu@esciencecenter.nl)
First Built : 2018.08.09
Last Update : 2018.08.09
Contributor :
Description : This module aims to load fields from the sta... | [
"y.liu@esciencecenter.nl"
] | y.liu@esciencecenter.nl |
0d1c07214d02cff04c05d3e2658206175b689f11 | 166e2e2095ca86e44735d3dd85b54d3f30e03baf | /app/__init__.py | f8617206c3f0409fdb445c1498a0a463afbb73f6 | [
"MIT"
] | permissive | joss13aws/damgteam | e04502e7c89142a9e060a2d879cfcb9cf0d2e29a | ce5beedc5b187141bcec76c15011fe8c4ae33743 | refs/heads/master | 2022-01-25T08:22:44.387636 | 2018-09-12T07:15:39 | 2018-09-12T07:15:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 896 | py | # -*- coding: utf-8 -*-
"""
Script Name: __init__.py.py
Author: Do Trinh/Jimmy - 3D artist.
Description:
"""
# -------------------------------------------------------------------------------------------------------------
from __future__ import absolute_import
import os, subprocess
BASE = os.path.dirname(__file__).... | [
"dot@damgteam.com"
] | dot@damgteam.com |
06314f3ca3db5a2d02cba00204b892ee97077b78 | aafba3346120db47cf87ba67dee21848576c337f | /beet/cmds/plotnft_funcs.py | 70271f1226437a44e86815952b6492edb4905af0 | [
"Apache-2.0"
] | permissive | beetseeds/beet-blockchain | 9f7fa9e221364bb865a8b9f60455afc82b4a022b | e5d93f1f9041c48dd0c38416d845c8675bf22738 | refs/heads/main | 2023-07-14T21:30:18.089664 | 2021-09-10T01:40:00 | 2021-09-10T01:40:00 | 401,708,903 | 5 | 3 | Apache-2.0 | 2021-09-05T09:26:51 | 2021-08-31T13:14:50 | Python | UTF-8 | Python | false | false | 16,252 | py | from collections import Counter
import aiohttp
import asyncio
import functools
import json
import time
from pprint import pprint
from typing import List, Dict, Optional, Callable
from beet.cmds.wallet_funcs import print_balance, wallet_coin_unit
from beet.pools.pool_wallet_info import PoolWalletInfo, PoolSingletonSt... | [
"89267907+BEET-BLOCKCHAIN@users.noreply.github.com"
] | 89267907+BEET-BLOCKCHAIN@users.noreply.github.com |
209004485a5e88ba99fa2f52c8107118fb2f1743 | 84ce18408991002c58a098221fa1b4616f8523b9 | /bunzip_me.py | 4eddf87da5fd3c5b1d10511cb015797ba92a8d2a | [] | no_license | planetserver/general-purpose-scripts | 503bf6a247d847d09cfdf33586514cdb262074fd | ff483ea4245f141994790598636249661d2c706c | refs/heads/master | 2021-01-16T00:17:57.680961 | 2014-06-23T13:01:44 | 2014-06-23T13:01:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 422 | py | #!/usr/bin/python
import sys
import glob
import subprocess
import os
'''
bunzip2 anything in the current directory.
USAGE:
python bzip_me.py
'''
os.chdir(".")
for filename in glob.glob("*.bz2"):
print "uncompressing: ", filename
try:
cmd = 'bunzip2 '+ filename
output = subprocess.call(cmd, stdout=sub... | [
"an.rossi@jacobs-university.de"
] | an.rossi@jacobs-university.de |
d892748ee236cc241ad8a33f52218e7ac803de3f | e6e60a0968f8c5db58894265ebdcefdb21729d65 | /0x03-python-data_structures/7-add_tuple.py | 0aa79f324821c9210c9f24398f0750bac755418d | [] | no_license | Camilo6/holbertonschool-higher_level_programming | b06832a68e343979369e8f6ed53ee86b8c765f2d | be87d214d1630f763e704dc70ad6e071c3109670 | refs/heads/master | 2023-03-03T20:33:53.645741 | 2021-02-12T13:41:57 | 2021-02-12T13:41:57 | 291,801,299 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 493 | py | #!/usr/bin/python3
def add_tuple(tuple_a=(), tuple_b=()):
len_tuple_a = len(tuple_a)
len_tuple_b = len(tuple_b)
if len_tuple_a > 2:
len_tuple_a = 2
if len_tuple_b > 2:
len_tuple_b = 2
list_a = [0, 0]
list_b = [0, 0]
for i in range(len_tuple_a):
list_a[i] += tuple_a... | [
"trresqwe@gmail.com"
] | trresqwe@gmail.com |
a018d7f7b4b947a5ab19f60eea40a709630d3284 | a364c621d6d827d18b16d2a713556149e8801344 | /small_talk.py | ba9c93712fd7566f0635368f1614e2ad637854a4 | [] | no_license | MatanAvitan/tyfel_backend | 3af0ed065d8b48525e24c498b49f97a3e9472311 | eeee9d4d16b6f101ce9a8c6c220a415e970546cb | refs/heads/main | 2023-04-14T04:49:10.709725 | 2021-05-08T17:57:56 | 2021-05-08T17:57:56 | 365,010,210 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 382 | py | API_KEY = 'n4JgSSH8QleMqTDFkAzWbw'
API_SECRET= 'n7tL5F2ILaY3NW2GJ1i2V3aLmdEuXRwjb42x'
from pyzoom import ZoomClient
from datetime import datetime as dt
def start_conversation():
client = ZoomClient(API_KEY, API_SECRET)
meeting = client.meetings.create_meeting('new', start_time=dt.now().isoformat(), duration_m... | [
"iamomergoshen@gmail"
] | iamomergoshen@gmail |
fa4720480d99598478d88893f74730d1b74f153b | bfd6ac084fcc08040b94d310e6a91d5d804141de | /PulseSequences2/SidebandOptimization.py | 5b3223a3788320f39d1161c1d19f3a5584fa78af | [] | no_license | jqwang17/HaeffnerLabLattice | 3b1cba747b8b62cada4467a4ea041119a7a68bfa | 03d5bedf64cf63efac457f90b189daada47ff535 | refs/heads/master | 2020-12-07T20:23:32.251900 | 2019-11-11T19:26:41 | 2019-11-11T19:26:41 | 232,792,450 | 1 | 0 | null | 2020-01-09T11:23:28 | 2020-01-09T11:23:27 | null | UTF-8 | Python | false | false | 2,590 | py | from common.devel.bum.sequences.pulse_sequence import pulse_sequence
from labrad.units import WithUnit as U
from treedict import TreeDict
class SidebandOptimization(pulse_sequence):
scannable_params = {'SidebandCooling.sideband_cooling_amplitude_854' : [(-30., -6., 3., 'dBm'), 'curren... | [
"haeffnerlab@gmail.com"
] | haeffnerlab@gmail.com |
f71b28f8017a4b9738aaac64aa6f6942269cb1a7 | 141949decad46aafd7457edad7e1a35e5d879f98 | /Calculadora.py | e74272f91ac4ce46f15651384911738295b6bcbc | [] | no_license | jennyceron/CalculadoraPython | 8b89b8bbebcae15431238f14278cddd25bfbdbe5 | c37bcac1bb2cd9264c81eaea54e8e97efa09a1a2 | refs/heads/master | 2022-12-07T18:24:18.362866 | 2020-08-24T14:07:16 | 2020-08-24T14:07:16 | 289,944,541 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,038 | py | menu = """ Menu calculadora escoje una de las operacione
1 Sumar
2 Restar
3 Multiplicar
4 Dividir """
print (menu)
op = int(input("Digite el numero correspondiente a la operacion :"))
numero1 = int(input("Digite numero 1 :"))
numero2 = int(input("Digite numero 2 :"))
def sumar():
resultadosuma = numer... | [
"noreply@github.com"
] | noreply@github.com |
530e963144e2c5c277944ec2d1644a6ca60224d4 | 9eab281919ee93da4fd5a429b5302ceaa1e90837 | /server/connect6/api.py | 23de1d34739ddb6eca1d9cc191b214ed515f826a | [] | no_license | hgu2019capstone/Connect6 | 5f062360e088a81bd851293cd375c92112d6e1aa | 8c51d70223125296157d85a379d74d4609a1dc1c | refs/heads/master | 2023-01-20T17:11:09.409623 | 2019-07-18T06:45:34 | 2019-07-18T06:45:34 | 197,319,150 | 0 | 0 | null | 2023-01-07T07:51:56 | 2019-07-17T05:09:55 | JavaScript | UTF-8 | Python | false | false | 429 | py | from rest_framework.routers import DefaultRouter
from api.views import *
from rest_framework_extensions.routers import NestedRouterMixin
class NestedDefaultRouter(NestedRouterMixin, DefaultRouter):
pass
router = NestedDefaultRouter()
sessions_router = router.register('sessions', SessionViewSet)
sessions_router... | [
"21600672@handong.edu"
] | 21600672@handong.edu |
d2bfbdfddbe76d9e6d199a61a40d1234ef459a4b | 63f0d1df7e5407812e5f1fa2053adc6570d52127 | /class 13/access private method.py | f7458cf8735688b339dcdc112a7e6c8e86b74597 | [] | no_license | Nalinswarup123/python | d5012c8c3030fbd82a01445ce8a343afb06cdcd2 | 37c1c0d50115b82d7f11f65834da87b3f28b4051 | refs/heads/master | 2021-09-01T09:10:40.360738 | 2017-12-26T05:42:11 | 2017-12-26T05:42:11 | 115,388,078 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 433 | py | #how to access a private method
class p:
def __init__(self,name,alias):
self.name=name
self.__alias=alias
def who(self):
print('name:',self.name)
print('alias:',self.__alias)
def __foo(self):
print('this is private method')
def foo(self):
prin... | [
"noreply@github.com"
] | noreply@github.com |
195dcc6853e0183e91044d6a1e13d2b20818bdba | 15b08837399d03da69c26d816cfeaeebb194d873 | /4_e/pr.py | 9d697fee0270fc293d70879a39c9a1ad3336125f | [] | no_license | Terfno/class_pa | 2579eda17fba1e4ed91fa55ccdfaac1d37608b16 | ebe520abb6c262822e3630ab4403d8a3324f3000 | refs/heads/master | 2022-06-13T03:05:42.988101 | 2022-05-14T04:27:07 | 2022-05-14T04:27:07 | 213,298,634 | 0 | 0 | null | 2022-05-14T04:22:44 | 2019-10-07T05:00:24 | Python | UTF-8 | Python | false | false | 1,018 | py | def is_primitive_root(i, n):
k = n_order(i, n)
return k == n - 1 # if(k == n-1):true みたいな
def n_order(i, n):
k = 1
l = i
while l != 1:
l = (l*i) % n
k += 1
return k
def primitive_root(n):
k = 1
flag = False
while not flag:
l = k
i = 2
while... | [
"sueda.takahito@gmail.com"
] | sueda.takahito@gmail.com |
43c267ed3ad9063be056df71b4305db6c23baba6 | 4e996c617431759528aae3db0e85535eb29501d5 | /isCheckRotation.py | 0df76c567dd2b3d4ed40c5300d05c77b005d65f9 | [] | no_license | ShinsakuOkazaki/Interview | 336982ae2c9a2dbbfe347ba51ca685a38b289efb | b4ecc5cbdbb2524441ec01c93ce0b4c22ab8c045 | refs/heads/master | 2020-04-26T05:24:31.712647 | 2019-03-01T16:22:47 | 2019-03-01T16:22:47 | 173,333,134 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 440 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Jan 30 22:10:19 2019
@author: sinsakuokazaki
"""
#check s2 is rotation of s1
#s1 = xy = waterbottle
#x = wat
#y = erbottle
#s2 = yx = erbottlewat
#yx is always subset of xyxy
#therefore, s2 is always subset of s1s1
def isCheckRotation(s1, s2):
le... | [
"golisaku4639@gmail.com"
] | golisaku4639@gmail.com |
7424731327b481d4482c8454a8b7b9063a5ed2e2 | e6cd7e008ccf8e267ca76c61970bc2ac5d8bdf44 | /redis-monitor.py | ae65cba81df853987a69596a21a90bdef83ea84d | [] | no_license | cloudgg/monitor | 60decf812c11b31e3d9c5a74a7a6be656b87ef4a | 660c8aa06243d7c0d067c4eac30f31466fd530b5 | refs/heads/master | 2021-01-10T13:10:13.409286 | 2016-01-21T08:58:49 | 2016-01-21T08:58:49 | 50,086,074 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,945 | py | #!/bin/env python
#-*- coding:utf-8 -*-
import json
import time
import socket
import os
import re
import sys
import commands
import urllib2, base64
import fileinput
#使用到nagios的check_tcp插件
check_tcp = "/home/falcon/agent/nagios/libexec/check_tcp"
redis_cli = commands.getoutput('ls /home/work/redis*/bin/redis-cli').spl... | [
"xiaoyunguo84@gmail.com"
] | xiaoyunguo84@gmail.com |
bf3f063098e1111a2dd20e7879d61bb5544b0b2b | 83837b4642849142120c8da9ccfc6e072c1e9d7e | /python basic program/duplicate2.py | 078a2faae0f50be8cf06b34d9235c82767ee714a | [] | no_license | HariomJuneja/codebuddy-python | 900de2afe1dbed6bd02b70130aed15e3ff49994e | 44b10fb0ac2bfd32d7dc1210855ea99884ce1e5c | refs/heads/master | 2021-09-05T18:45:43.407514 | 2018-01-30T10:41:46 | 2018-01-30T10:41:46 | 119,521,977 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 676 | py | # program to remove duplicate elements from array
n=int(input("enter the no. of elements:"))
a=[] # initialization of list
for i in range(1,n+1):
elem=int(input("enter the elements:")) # enter the elements in a... | [
"noreply@github.com"
] | noreply@github.com |
2577c0d86cfcda392a9f28c83ffe35b16d736c57 | 0dfafea4929b6dbfadc77114ca6474dd17182d6e | /canary/ui/assistant/__init__.py | d94e6b29236afb20770cc54071d2c15c25bde711 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | sentinelcanary/sentinelcanary | 89b5e84de22000afe5433cdce4eb27fed4f85b61 | 849f0874d064b842147735a283840ec01ac2961e | refs/heads/master | 2021-01-15T16:52:26.225608 | 2013-07-11T20:56:39 | 2013-07-11T21:12:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | # $Id$
_q_exports = [
'_q_index',
'update',
]
from quixote.errors import AccessError
from canary.qx_defs import NotLoggedInError
from canary.ui.assistant import assistant_ui
_q_index = assistant_ui._q_index
update = assistant_ui.update
def _q_access (request):
if request.session.user == None:
... | [
"dchud@umich.edu"
] | dchud@umich.edu |
44c47b384ed863cdf879918152b36a475360e439 | 3b84c4b7b16ccfd0154f8dcb75ddbbb6636373be | /google-cloud-sdk/lib/googlecloudsdk/api_lib/compute/ssh_utils.py | 3202d910b3cb387c13be5ad292755430c5662abd | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | twistedpair/google-cloud-sdk | 37f04872cf1ab9c9ce5ec692d2201a93679827e3 | 1f9b424c40a87b46656fc9f5e2e9c81895c7e614 | refs/heads/master | 2023-08-18T18:42:59.622485 | 2023-08-15T00:00:00 | 2023-08-15T12:14:05 | 116,506,777 | 58 | 24 | null | 2022-02-14T22:01:53 | 2018-01-06T18:40:35 | Python | UTF-8 | Python | false | false | 46,404 | py | # Copyright 2014 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 ag... | [
"joe@longreen.io"
] | joe@longreen.io |
510a3627691eed22681953514bc91705622d1a60 | 1148b724754248b2e9d1752be6f530f822f88de2 | /Optional_Case_NLP_Twitter_TP/twitter/TwStreamListener.py | 203b3cdc769b4f31f5ae51415e2f523763f6d569 | [
"CC0-1.0"
] | permissive | felipeescallon/TP_PruebaTecnica_CientificoDatos | 3014b94bcbdadf9985f0b9158b1fb549a149b6eb | 8abff7dc4104784832c3b09d5777e68956e88c22 | refs/heads/main | 2023-04-02T19:22:39.231706 | 2021-04-06T17:20:08 | 2021-04-06T17:20:08 | 341,368,709 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,519 | py | #
# ------------------------------------------------------------------------------------------------------------------
# IT IS BETTER TO WORK WITH OBJECT-ORIENTED PROGRAMMING (CLASSES) TO PERSONALIZE THE WORK
# TO IMPORT THE INFORMATION FROM THE OTHER PYTHON PROGRAMS (.py), I DO IT LIKE THIS: import my_program_name.py
... | [
"noreply@github.com"
] | noreply@github.com |
b6cdd0e88215838f655d891ecbc556e47e30695a | eb771f3372534205047839d28fd0824545320a8a | /generate.py | 459a621f39ebb5bef5f694e0cfbec94834246828 | [] | no_license | yilunc/NP_Solver | 81831ec9d2ca29687b0893f64ba923fa9be538cd | b97237e28d12adfa8d749b3362bc4e30947ea7f2 | refs/heads/master | 2021-06-09T00:00:09.323731 | 2016-12-08T06:57:22 | 2016-12-08T06:57:22 | 74,230,846 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,099 | py | import sys
import random
def generate_instance(num_instances, V=500):
if V > 500 or V <= 0:
raise IndexError('To many vertices')
for instance_num in range(1, num_instances + 1):
vertices = []
adjacency = {}
for i in range(V):
vertices.append((i, random.randint(0, 99)))
for v, p in vert... | [
"yilunc@berkeley.edu"
] | yilunc@berkeley.edu |
c09935d7900e3326bae348780c7404ddef046351 | ddd434cdf0bc6f7aae6c832f8d20fb9c0e9f5b13 | /Genfiles.py | 534effe3238fbb5127296f038109a44237c96fe0 | [] | no_license | ala-lishikun/ala | 1301d1a99c6704b209cdb44046553d2721e963b1 | 894d8da85d16d5fbbc5ff08043fccbabd8b87269 | refs/heads/master | 2021-01-02T09:29:57.035291 | 2019-02-11T13:12:37 | 2019-02-11T13:12:37 | 99,224,801 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,333 | py | # -*- coding: utf-8 -*-
from AllEnvents import *
import configparser
conf = configparser.RawConfigParser()
conf.read('data.ini')
import multiprocessing
if __name__ == '__main__':
if conf.get("run", "personlist") == "null":
print('实体(人)')
personlist = genPersonlist(int(conf.get("run", "personnum")))... | [
"ala9981@126.com"
] | ala9981@126.com |
e7cc8a45cbbb4e4b0b0698a76357c1fb75dc070e | 5e22c21220569aad058179a10bf942c6c3054339 | /main.spec | 877a98c28572d4780decb5a8b5a7214a4b0d7dd4 | [] | no_license | juliancastro18/tpseminario | b1c19ff71372c1269c8070f80ae6ead6ef6a0a15 | 46b20b8b8dd3c8dc07db46bf58f6c81a76dceac0 | refs/heads/master | 2023-03-13T09:57:45.913406 | 2021-03-09T06:46:49 | 2021-03-09T06:46:49 | 293,395,330 | 0 | 1 | null | 2020-09-07T20:26:23 | 2020-09-07T01:44:18 | Python | UTF-8 | Python | false | false | 977 | spec | # -*- mode: python ; coding: utf-8 -*-
block_cipher = None
a = Analysis(['main.py'],
pathex=['D:\\Documents\\UNLa\\2º Año\\Seminario de Lenguajes\\tp'],
binaries=[],
datas=[],
hiddenimports=[],
hookspath=[],
runtime_hooks=[],
... | [
"jcast18k@gmail.com"
] | jcast18k@gmail.com |
52e3b7c7ffe155e3b0558c46037ef03a369f9173 | 68bbc9c2ac75be2ecd2561336e89613f52d24d15 | /executions.py | 371664563f23b46f0576a401edd80f590a3cb9be | [] | no_license | phoebedinner/Exercises- | 9c23b88522fffc91defc272ea0c58c9edc4e9eca | 41022c67ea95112fbbf5d6a597588dc4c640c284 | refs/heads/master | 2021-01-21T13:33:49.149362 | 2016-04-27T16:56:27 | 2016-04-27T16:56:27 | 51,034,072 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 691 | py | import csv
import requests
from BeautifulSoup import BeautifulSoup
url = 'http://www.tdcj.state.tx.us/death_row/dr_scheduled_executions.html'
response = requests.get(url)
html = response.content
soup = BeautifulSoup(html)
table = soup.findAll('table') [2]
list_of_rows = []
for row in table.findAll('tr')[1:]:
li... | [
"phoebedinner@Phoebes-MacBook-Pro.local"
] | phoebedinner@Phoebes-MacBook-Pro.local |
49097adb74dd399991199bbc83493462531f56e2 | 24f9d669429dfa25951115c39508140f27d2da6f | /raspi/07-coffee/extract-cifar-10.py | 07492f0236f70f69032afc2a7b0eaa99b1dc4780 | [] | no_license | lumbermill/takachiho | 49cd2eeb2f7ce18d1c802c5f4fadbb17146a7ec0 | 350645ad466a71da6475ccd9f859b1e27467589c | refs/heads/master | 2023-04-27T16:39:58.465667 | 2023-04-17T06:51:46 | 2023-04-17T06:51:46 | 54,118,379 | 1 | 3 | null | 2023-04-17T06:52:29 | 2016-03-17T13:04:20 | Swift | UTF-8 | Python | false | false | 584 | py | # For python3
import numpy as np
import _pickle,random
from PIL import Image
def unpickle(file):
fo = open(file, 'rb')
dict = _pickle.load(fo, encoding='latin-1')
fo.close()
return dict
def image_from_cifar(index,dic):
name = dic['filenames'][index]
data = dic['data'][index].reshape(3, 32, 32... | [
"y-itou@lumber-mill.co.jp"
] | y-itou@lumber-mill.co.jp |
be86e46364d706fb41a1344fe6cdb49253da255f | 3f345ac4cad6dc931260ab40c40d0977ba51db77 | /src/__init__.py | 24b34714951bc77838edb3c7468a1acd0abc9a0b | [] | no_license | fran-jo/EngineME | f586831f55942320a0dc07dbf70a409c2fc475d5 | 69555183d5b8a3bc3c4a0c406da2a58b2f9fcb70 | refs/heads/master | 2020-03-23T21:03:39.305112 | 2019-02-09T22:03:09 | 2019-02-09T22:03:09 | 142,078,920 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 179 | py | from eme.logiclayer.engine import enginedym
from eme.logiclayer.engine import engineomc
from eme.logiclayer.command import CommandOMC
# from engine.engineJModelica import EngineJM | [
"fran_jo@hotmail.com"
] | fran_jo@hotmail.com |
e8daa6df9c2a97166dba539a311d3082c08e417f | c7602756f053b98034d45ed5a830fbe6cbf2089f | /app/modules/shop/services/test3.py | 88d6f49f6a9b28e8c60f2b663058e4ceb513356d | [] | no_license | ENTRODEC/entrodec | 5f894ee1a7036bc20e0027d59d413937a8a6a31c | 657cd2302693e45ab22d142ac6ac3022be133d4a | refs/heads/master | 2021-01-13T09:04:32.411174 | 2016-03-07T13:01:42 | 2016-03-07T13:01:42 | 53,325,525 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 508 | py | # _*_ coding: utf-8 _*_
from __future__ import unicode_literals
__author__ = 'Dmitri Meshin <dmitri.meshin@gmail.com>'
def test3():
#print 'TEST 3'
return 'TEST3RET'
class test3class:
def __init__(self, some):
#print some
pass
def testmethod(self, arg1, arg2):
pass
... | [
"dmitriym@cloud.upwork.com"
] | dmitriym@cloud.upwork.com |
c6c4ff5c67172812cc4bd235514b86139c58dc38 | a6cda0685562366a1eb1f15ad6bc2d2601e65cf1 | /387. First Unique Character in a String.py | 0f14a33b15fa9a2e6026706d26c8521c9e5b7345 | [] | no_license | notyao/PythonLeetcode | b2e09dcb3b5777096cff6f6aef57797793250fdf | 1dc06b03bc0ea9a489aa263e7c673910379b4830 | refs/heads/master | 2021-09-02T14:33:36.263707 | 2018-01-03T07:35:24 | 2018-01-03T07:35:24 | 105,505,214 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 385 | py | class Solution:
def firstUniqChar(self, s):
"""
:type s: str
:rtype: int
"""
dict = {}
for i in s:
if i in dict.keys():
dict[i] += 1
else:
dict[i] = 1
for i in range(len(s)):
c = s[i]
... | [
"noreply@github.com"
] | noreply@github.com |
9df7498022f27162d097c2c402cdbc4622479627 | 3791785489312900a22d2e735181a29d55bc575e | /实例练习/25JSON 数据解析.py | 50ce6fccf3df25c3a962f1ca732bac460a383239 | [] | no_license | BigOrange123/study | 77271f57faaf3daf3b59fc787f540d565c62e600 | e80b482d38cbd4b586c1ade2452386945ab22a89 | refs/heads/master | 2022-11-21T01:18:43.865650 | 2020-07-22T03:06:46 | 2020-07-22T03:06:46 | 279,753,984 | 0 | 0 | null | null | null | null | GB18030 | Python | false | false | 528 | py | #coding=gbk
'''JSON 数据解析'''
import json
# python 字典转json对象,对数据进行编码 dumps()
data = {
"url": "http://www.baidu.com",
"no": "123456",
"name": "joke"
}
dataJson = json.dumps(data)
print("dict格式源数据:", data)
print("json对象:", dataJson)
# python json对象转字典,对数据进行解码 loads()
dataJson = '{"url": "http://www.baidu.com"... | [
"jc921229"
] | jc921229 |
4c6816d0c6983d0783ead9acdcf77a2d8e9fcd20 | 8bacc85600d3ab96996c9b3a0b46d7a0833c7c83 | /sortie/migrations/0012_migrate_cr.py | 7fb56c63a66e0115f3591634bb8f23a93130d8c2 | [] | no_license | cattias/cannesalair | fb2ac6eeeb90766d5b2a5cb688067e7b07ad58b8 | 0fc63e9d3481fa19c870a7f18408e840b2748a9d | refs/heads/master | 2016-09-06T00:45:01.117844 | 2015-12-28T13:40:56 | 2015-12-28T13:40:56 | 24,021,210 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,453 | py | # encoding: utf-8
import datetime
from south.db import db
from south.v2 import DataMigration
from django.db import models
from sortie.models import Sortie, CRSortie
class Migration(DataMigration):
def forwards(self, orm):
"Write your forwards methods here."
for s in Sortie.objects.all()... | [
"christophe.attias@gmail.com"
] | christophe.attias@gmail.com |
94bd8c49ec63d53a0c3c4f4c93cc3e37078df2c7 | 9538f8658789100db245fadf5866b9faed6c4fd0 | /services/indoor_data_historical/test/test_action.py | 042d0c3b5cdb0d10c78f326056d56d941c7a45df | [
"BSD-2-Clause"
] | permissive | vishalbelsare/XBOS | cd88b71d71a9adc67b001bf672a1bd5598299e2a | 1604ae035a3bd81e87a4037326b7935d1f268452 | refs/heads/master | 2022-07-31T08:39:19.877794 | 2022-06-26T00:46:15 | 2022-06-26T00:46:15 | 141,111,917 | 1 | 0 | BSD-2-Clause | 2022-07-03T09:21:42 | 2018-07-16T08:47:43 | Jupyter Notebook | UTF-8 | Python | false | false | 3,344 | py | from __future__ import print_function
import grpc
import sys
import pandas as pd
from pathlib import Path
sys.path.append(str(Path.cwd().parent))
import unittest
import xbos_services_getter as xbos
sys.path.append(str(Path.cwd().parent.parent.parent.joinpath("test")))
import test_utils
stub = xbos.get_indoor_historic... | [
"sguduguntla11@gmail.com"
] | sguduguntla11@gmail.com |
6504957c3ef22607a250e818dc494046f752e98b | 5780829ee1265c9b137229132538fbe69cb9efd7 | /task-1/client_test.py | b90068ce94e7b168bb81b0324182bfeff780889a | [] | no_license | awanikendurkar/JPMC-virtual-exp | 6505d9b01119715e52d402769765a1292ec99286 | 6a2ffc7d88df7c09729cf2227e236b98a89ebe61 | refs/heads/master | 2022-08-29T06:21:04.354695 | 2020-06-02T16:08:23 | 2020-06-02T16:08:23 | 268,812,796 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 986 | py | import unittest
from client import getDataPoint
class ClientTest(unittest.TestCase):
def test_getDataPoint_calculatePrice(self):
quotes = [
{'top_ask': {'price': 121.2, 'size': 36}, 'timestamp': '2019-02-11 22:06:30.572453', 'top_bid': {'price': 120.48, 'size': 109}, 'id': '0.109974697771', 'stock': 'ABC'}... | [
"awanikendurkar@gmail.com"
] | awanikendurkar@gmail.com |
abc5778f8d9954d10c526765fe14fd1b7d08ab46 | 33789ec4b4a2d35f06cd89068f90686650057102 | /object_oriented_programming/polymorphism/function_overloading.py | 2b41cb5df64489594b40d2cdb5f9750b69d6a1df | [] | no_license | unnievarghese/originalpythonluminar | d9c342a5b34b7236bf34f8a53b35188b12e90b3d | 616929ff471700248b0619c35025562c131ea459 | refs/heads/master | 2023-03-01T20:59:41.165467 | 2021-01-23T11:26:09 | 2021-01-23T11:26:09 | 315,814,013 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 606 | py | def add():
print('inside no arg add method')
def add(num):
print('inside 1 arg add method')
def add(num1,num2):
print('inside 2 arg add method')
# def without a class is funtion
#fucntion overloading is same as method overriding but without class
# same fuction but different number of arguments
print(add(1,... | [
"unnieputhengadi9@gmail.com"
] | unnieputhengadi9@gmail.com |
3a37cf49581b79697e7d8e9d75e3382f8dac7e6c | 662b2c317ad6c46544917c129ca678add41451ae | /tests/unit/test_oneview_sas_logical_interconnect_group.py | 513a4aa444ce1f3b45371c10e880c7ce631d3d44 | [
"Apache-2.0"
] | permissive | HewlettPackard/oneview-ansible-collection | 63902ef3570b48b0154a266dc82d0aa630ac5129 | 1554f8969dfada4b61f2f215ebfe1689c1b7994d | refs/heads/master | 2023-08-18T12:03:21.212602 | 2023-06-27T05:56:47 | 2023-06-27T05:56:47 | 291,123,219 | 24 | 24 | Apache-2.0 | 2023-09-14T03:55:41 | 2020-08-28T18:52:35 | Python | UTF-8 | Python | false | false | 9,636 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
###
# Copyright (2023) Hewlett Packard Enterprise Development LP
#
# 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/licens... | [
"alisha-k.kalladassery@hpe.com"
] | alisha-k.kalladassery@hpe.com |
1e122d40055060c8799750e1502d5fd9ca1f17cd | 9abf1bc3e7daa5d243bc74d7c8bfc59d6112ac82 | /EdwOpt/resource/__init__.py | 93ca95ec6d915039516e75a0bfafdbcd62a3491b | [] | no_license | iacxc/Misc | a2ace3cb209953cfe4341235132d2564fd2b94a3 | 865e7a8e465b62de034c2d19a49590772265cd1a | refs/heads/master | 2020-12-24T06:49:21.063584 | 2020-08-10T02:28:30 | 2020-08-10T02:28:30 | 58,431,620 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 40 | py |
import String
import Id
import Value | [
"chengxin.cai@gmail.com"
] | chengxin.cai@gmail.com |
7aad79d6b7ae595410a19375da211306ef6dd210 | 896c24c5bbc82e7759e3ab8f1c4de5f1bf44ce6c | /userlms/migrations/0003_notes.py | a91935411385d7f67035f44768f4f9cb5d4bf149 | [] | no_license | ajayradiantinfonet/lms | d92bd525d2043c6b1963596df53010cb9d98da42 | 16c742d20fcfc220e0e8c7fe3ebade54c516dcf4 | refs/heads/main | 2023-08-29T22:20:48.518174 | 2021-10-26T09:58:17 | 2021-10-26T09:58:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,066 | py | # Generated by Django 3.1.1 on 2021-02-03 07:38
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('customadmin', '0050_assignmentactivity_created_at'),
m... | [
"ajaybabu0046@gmail.com"
] | ajaybabu0046@gmail.com |
d3146725b78fd45f96df3054f661f4d8f5c05de4 | 9218dad7426df828023fce496bed1fcff0985035 | /python/age.py | b30ca2dfe6f9adfd5081e675d2f392571c091850 | [] | no_license | james947/Practice | b441a57c9aab065837994cdef737faa7b7b1d9bb | 4181fd53c954545ce0c3d5f17b8215c602c4409e | refs/heads/master | 2020-09-12T15:43:33.330827 | 2019-11-18T14:28:42 | 2019-11-18T14:28:42 | 222,468,140 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 61 | py | #!/usr/bin/python
import main
main.age(24)
print('Hello') | [
"jmuriuki947@gmail.com"
] | jmuriuki947@gmail.com |
96e4c704ecf4e1e33f84c8abce3e5307dfcb01bc | 33294c238bd5c6ad0cb69d7b6d6922a54b1f7d95 | /src/wrf/g_omega.py | f2f70ba8836d6204a9722f15fdb14897dc289f60 | [
"Apache-2.0"
] | permissive | NCAR/wrf-python | a3b81aa0de3c7dd8b20d390bd949e3f4e3100bed | 79dda8329dd814aaba44cddf62cd12db0f5e2e97 | refs/heads/develop | 2023-06-30T03:14:14.380762 | 2023-06-16T22:26:09 | 2023-06-16T22:26:09 | 59,517,733 | 384 | 155 | Apache-2.0 | 2023-06-23T19:43:18 | 2016-05-23T20:55:40 | Python | UTF-8 | Python | false | false | 3,272 | py | from __future__ import (absolute_import, division, print_function)
from .constants import Constants
from .destag import destagger
from .extension import _omega, _tk
from .util import extract_vars
from .metadecorators import copy_and_set_metadata
@copy_and_set_metadata(copy_varname="T", name="omega",
... | [
"ladwig@ucar.edu"
] | ladwig@ucar.edu |
c18b48e68b0e6ec0a5a5a9c2a87958684788e854 | 70d707e7fc61a1752ce5a1eddb85ba0703d01650 | /Ex6.py | 3816576e2420be348848db91d772c4970a326a10 | [] | no_license | pbrandiezs/python-ex6 | 63a6ee8c85506df4b880d8b8a48a17a30cee82d1 | ea1058d4b00643e8aa6fc2a4935a91f25d344fed | refs/heads/master | 2020-03-22T06:26:50.274890 | 2018-07-03T20:46:58 | 2018-07-03T20:46:58 | 139,634,656 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 153 | py | the_string = input("Enter a string? ")
backwards_string = the_string[::-1]
if the_string == backwards_string:
print(the_string + " is a palindrome!") | [
"pbrandiezs@gmail.com"
] | pbrandiezs@gmail.com |
cf15bf7f4ff61058b933faa65fb338750659b08c | b8255efb666f3aadc7fa5a85501bb228f365abff | /iris.py | 05cbcdf0fbdc8a983f8a3ee3061580c86cab6e4b | [] | no_license | MatthiasS3/vinnsl-nn-worker-python | db57978e85b3fc62c2d57b9539084650f2f6dd07 | 7c509afaf4c58d98049dbdb9c7323bb3b1fc0e77 | refs/heads/master | 2023-04-13T17:44:33.318110 | 2019-09-29T10:16:30 | 2019-09-29T10:16:30 | 206,343,467 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,640 | py | import numpy as np
from sklearn.datasets import load_iris
from sklearn.model_selection import train_test_split
from sklearn.preprocessing import OneHotEncoder
from keras.models import Sequential
from keras.layers import Dense
from keras.optimizers import Adam
from keras import backend as K
from keras.callbacks import... | [
"matthiasseeber@Matthiass-MacBook-Air.local"
] | matthiasseeber@Matthiass-MacBook-Air.local |
fac7f73bf8e16dee666c9e03e4a5f951ef9d043e | ca66ab10b0f96a9af2c52c9f17475420c3ef8de7 | /untitled15.py | a469a4d9ff0a993ea50d47bc579a6753fb9b90ec | [] | no_license | hjk612/miscellaneous | 096440372f1de7dce5af2f4a4c9f825d02876c68 | 360e665f44bb5ca6f37f6a7c7a50f0b394e52c06 | refs/heads/master | 2020-04-09T09:59:42.020906 | 2019-01-05T21:05:13 | 2019-01-05T21:05:13 | 160,253,755 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,848 | py | import os
import pandas as pd
import numpy as np
from keras.models import Sequential
from keras.layers import Dense
from keras.layers import Dropout
from keras.layers import LSTM
import matplotlib.pyplot as plt
os.chdir('/Users/Hatim/Desktop/ivani/')
data = pd.read_csv('sample_data.txt', sep = ', ', engine = 'python'... | [
"hjk612@nyu.edu"
] | hjk612@nyu.edu |
e8a8ecb58043ca609ec177e0f5e27fae7d5abada | fdbb74a95924e2677466614f6ab6e2bb13b2a95a | /third_party/python/Lib/http/client.py | 619f67f41b59fa45985383e152639c8e2ea7868d | [
"ISC",
"Python-2.0",
"GPL-1.0-or-later",
"LicenseRef-scancode-python-cwi",
"LicenseRef-scancode-free-unknown",
"LicenseRef-scancode-other-copyleft"
] | permissive | jart/cosmopolitan | fb11b5658939023977060a7c6c71a74093d9cb44 | 0d748ad58e1063dd1f8560f18a0c75293b9415b7 | refs/heads/master | 2023-09-06T09:17:29.303607 | 2023-09-02T03:49:13 | 2023-09-02T03:50:18 | 272,457,606 | 11,887 | 435 | ISC | 2023-09-14T17:47:58 | 2020-06-15T14:16:13 | C | UTF-8 | Python | false | false | 55,660 | py | r"""HTTP/1.1 client library
<intro stuff goes here>
<other stuff, too>
HTTPConnection goes through a number of "states", which define when a client
may legally make another request or fetch the response for a particular
request. This diagram details these state transitions:
(null)
│
│ HTTPConnection(... | [
"jtunney@gmail.com"
] | jtunney@gmail.com |
8f7769ef093d5beca0d0d32a1807271d4d0060da | 761dbc29537f2271d7cac5ee55bf818cf3d94ee3 | /solver_methods.py | 6b2949e8036f047c4f0b16af10481ba7603d3b16 | [] | no_license | k-off/Rubik_brute_force | ee5d78d22ff72ecd312129787571635cd1f6d3fe | 8688a9e66f8b2d40afe46a449a2b830c5b461e6e | refs/heads/master | 2022-03-07T10:43:56.580884 | 2019-10-22T08:09:32 | 2019-10-22T08:09:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,791 | py | #******************************************************************************#
# #
# :::::::: #
# solver_methods module :+: :+: ... | [
"user@localhost.localdomain"
] | user@localhost.localdomain |
ec3192b35358c1b8cffff505b79b96f6d4fad637 | b9f192ef777d5cf3f7173678b724c6e6e5a90b99 | /scsynth/server.py | 70874685b0fd92d547469c175cd0d93d26bb1e14 | [] | no_license | patrickkidd/pksampler | c3902868a26be811e7e74a9440ddf03fa49ee58f | e9154db930c5fffc589569dab1fdee5ea0620d7d | refs/heads/master | 2021-01-01T05:12:05.144903 | 2016-05-19T08:58:39 | 2016-05-19T08:58:39 | 59,190,153 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,893 | py | #!/usr/bin/env python
#
# Copyright (C) 2006 by Patrick Stinson and Jonathan Saggau
# patrickkidd@gmail.com saggau@gmail.com
#
# This program is free software; you can redistribute it and/or modif... | [
"patrickkidd@gmail.com"
] | patrickkidd@gmail.com |
4a4a538ee9de894a755ed7b98b649019d43c7c1d | 0a1d1eb024753c4cd963040dae4253e8cdca877e | /common/entities/base_entities/fleet/tests/test_policy_determination.py | 20381fc947279376924c928ba9a3decfb06013dc | [] | no_license | drorp24/Ice_Ring_Matching_Algo | 2f3df27cb05e65beefa2e6c742112d9c4758d95b | d6bc86fa8631dc5020ee0daea522dbc1e119dae6 | refs/heads/master | 2023-06-11T14:48:23.704910 | 2021-06-17T03:48:43 | 2021-06-17T03:48:43 | 382,765,986 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,069 | py | from common.entities.base_entities.fleet.policy_determination import FleetPolicyDeterminationAttribution
import unittest
from common.entities.base_entities.drone import DroneType, PackageConfiguration
from common.entities.base_entities.drone_formation import DroneFormationType
from common.entities.base_entities.drone_l... | [
"edisona"
] | edisona |
d833a66f54acb368c81b598bcf212484929d15b4 | 1138e62f78a984c0718c0bcd3dd2fb5b79cd1242 | /server/core/migrations/0005_auto_20200822_0752.py | 305fb9295fe873c4a4373f73bee77f476a9063a8 | [] | no_license | aleksandr-sosedskyi/instaparser_v2 | 1b3d158896d3c8f7c2f6a4aaf7ed83d3217d2d7d | 7d2934c36209a60effc4bc51c62382268eec20f1 | refs/heads/master | 2022-12-11T13:04:57.815868 | 2020-09-10T15:27:33 | 2020-09-10T15:27:33 | 289,483,305 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 560 | py | # Generated by Django 3.1 on 2020-08-22 07:52
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0004_auto_20200822_0752'),
]
operations = [
migrations.AlterField(
model_name='instauser',
name='city',
... | [
"aleksander.mikhailov@instinc.tools"
] | aleksander.mikhailov@instinc.tools |
76d96db4057deeca5c0be5158343d8ae8cd74e65 | e281ce2330656a6a0a7f795f535f78881df8b5ba | /Web/HelloWorld/Web1.py | e2342cf62a0c93cdd44e45b46e6c6ee836e8d8c8 | [] | no_license | sunruihua0522/SIG-PyCode | 70db0b57bbf9ce35dc42bd8de62c5bb56a2e888e | 483a67bf679f54ab7405c2362d9cfe47daa2bc0f | refs/heads/master | 2020-07-12T14:46:32.588227 | 2020-04-02T04:37:02 | 2020-04-02T04:37:02 | 204,842,675 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 415 | py | from flask import Flask, Request
app =Flask(__name__)
@app.route('/')
def HelloWold():
return 'Hello World'
@app.route('/login/')
def Login():
return 'Login......'
@app.route('/login/<int:id>/')
def LoginWithVar(id):
return '<h1>Welcome %d to my world !</h1>'%id
@app.route("/foo/<string:username>/")
d... | [
"--global"
] | --global |
9234baf20f94ab8356029802d3e28c25c715ce1c | 630a2bfc927b4137835952e0c0ff960a68d7ceb6 | /while_loop.py | 0095e61557e59f4523ffd6e680c4f16b1dea2ece | [] | no_license | EdisonDevadoss/python_examples_1 | c632fe35ae3af2e0a24bbae8e64aac9e05b43891 | 0298bd5a444d87dc2f8c116d6b55e916dabf7036 | refs/heads/master | 2022-05-31T04:57:41.827929 | 2020-05-03T14:21:29 | 2020-05-03T14:21:29 | 260,939,887 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 71 | py |
i = 1
while i <= 10:
print(i)
i += 1
print("Done with loop") | [
"ragu25@codingtown.com"
] | ragu25@codingtown.com |
96fe1fd6e615fdd7b804734c9a1cfc1df345f9c0 | e996bf4a83c5c594458ec026fe2819439fe3fce7 | /Testing/plot_long_cuts.py | c59b2746c31e602cedd29d2abf12d17c005327d7 | [] | no_license | BigBigGamer/IceRad | c8c101fcd813e9f43dcc90dc124594548f084d45 | 3ae8232b5380b8a5d51194428785fa109676fc4f | refs/heads/master | 2022-02-22T16:28:29.839761 | 2019-09-28T21:42:39 | 2019-09-28T21:42:39 | 170,677,679 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,629 | py | import matplotlib.pyplot as plt
import matplotlib
from matplotlib import rc
from matplotlib.backends.backend_pdf import PdfPages
plt.rc('text', usetex = True)
plt.rc('font', size=30, family = 'serif')
plt.rc('legend', fontsize=23)
matplotlib.rcParams['text.latex.preamble']=[r"\usepackage{amsmath}"]
# plt.rc('text.lat... | [
"aps98@mail.ru"
] | aps98@mail.ru |
46890388c9222fcb29a1249072dc9f18debbb842 | 1f8804c8b21db5a1c4877b16a1492da3ef05173d | /assignment1/cs231n/classifiers/neural_net.py | af125b69894b207a09db500b3fb019378a4d429d | [] | no_license | XYudong/cs231n-2017Spring | c601f7a372159677cc280c03a24bb3ed19a2a5f8 | 41fa0803cf7def5408f1024415ab7549bb08f234 | refs/heads/master | 2020-04-14T22:39:15.401293 | 2019-04-10T16:16:02 | 2019-04-10T16:16:02 | 164,172,039 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,055 | py | from __future__ import print_function
import numpy as np
import matplotlib.pyplot as plt
from past.builtins import xrange
class TwoLayerNet(object):
"""
A two-layer fully-connected neural network. The net has an input dimension of
N, a hidden layer dimension of H, and performs classification over C classes.
W... | [
"leon.yuyudong@hotmail.com"
] | leon.yuyudong@hotmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.