blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
385ed7afa8909d244246af00611da2c352bb1d35 | d50d8911fa4980d9590454a31c979d427f77d81c | /models.py | 81727d078707a1b8e0f70251de18168fdc7a0a24 | [] | no_license | Minigamy/TestTask2 | 1c9db9d3ad89b20e5af1d9c8a34936efb34d4320 | 38b4a9d4bc85c3d57f7872db98b3e9869eabf943 | refs/heads/master | 2023-06-16T01:13:38.967164 | 2021-07-08T20:55:44 | 2021-07-08T20:55:44 | 384,186,413 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 737 | py | from sqlalchemy import Integer, BigInteger, VARCHAR, Text
from sqlalchemy.sql.schema import Column, ForeignKey
from database import Base
class Anagram(Base):
__tablename__ = "anagram"
id = Column(Integer, primary_key=True)
count = Column(Integer)
class Devices(Base):
__tablename__ = "devices"
... | [
"ferdinand-f@mail.ru"
] | ferdinand-f@mail.ru |
a1d6235994d31b5d3bf8f83841b12c2ae810fd81 | e7c3f8a813cd7cae5978cbf2b0d54821214dfac7 | /communicator.py | d40ff42ba7d573261e5d84b5bccbfa6d0ed199a9 | [] | no_license | gefunk/RxP-Protocol | 1faa050858319f8dc18503b53f34f3035b111c83 | 7385a16231907dc82f8382f60074ee1462425765 | refs/heads/master | 2021-01-10T11:15:10.340194 | 2015-11-26T17:05:56 | 2015-11-26T17:05:56 | 46,640,711 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,719 | py | import logging
import time
from threading import Timer
from packet import RxPacket
from packet import RxPFlags
from select import select
class RxPCommunicator:
def __init__(self,socket, loglevel=logging.DEBUG):
self.logger = logging.getLogger("RxPCommunicator")
self.loglevel = loglevel
# cr... | [
"rahul.gokulnath@turner.com"
] | rahul.gokulnath@turner.com |
55410aad4488ccbb5b370d1a12553de6645c96a7 | 95f06aea954777d369c4b19db44202a4225833c8 | /scripts/generate_manpage_metadata.py | 51e64cea17f47acf2782e955046ecdb909e9d315 | [
"Apache-2.0"
] | permissive | cs-education/sysassets | 25e2a4dac5af6f8f1d4d999628245779e9f98615 | 9a7b3d8e2fa1d4cd741c6d3b22522f8aa418261c | refs/heads/gh-pages | 2021-01-17T10:16:44.739695 | 2018-03-27T04:24:49 | 2018-03-27T04:24:49 | 22,890,900 | 4 | 8 | Apache-2.0 | 2018-12-22T08:58:37 | 2014-08-12T20:10:41 | HTML | UTF-8 | Python | false | false | 6,486 | py | import os
import os.path
import urllib
from bs4 import BeautifulSoup
import json
import re
if __name__ != '__main__':
print 'This script is not meant to be imported!'
exit()
c_function_signature_re = re.compile(ur'(.*)[(](.*)[)];')
include_re = re.compile(ur'#include\s+[<](.+)[>]\s*(.*)\s*')
define_re = re.co... | [
"gupta.neelabh@gmail.com"
] | gupta.neelabh@gmail.com |
c9c1ad0ad8c72419dc88175791b797d14624cd57 | 82b946da326148a3c1c1f687f96c0da165bb2c15 | /sdk/python/pulumi_azure_native/compute/get_capacity_reservation.py | f5d8a1ef2536b428a2df2b96675b3a4d7785f489 | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | morrell/pulumi-azure-native | 3916e978382366607f3df0a669f24cb16293ff5e | cd3ba4b9cb08c5e1df7674c1c71695b80e443f08 | refs/heads/master | 2023-06-20T19:37:05.414924 | 2021-07-19T20:57:53 | 2021-07-19T20:57:53 | 387,815,163 | 0 | 0 | Apache-2.0 | 2021-07-20T14:18:29 | 2021-07-20T14:18:28 | null | UTF-8 | Python | false | false | 9,077 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
from... | [
"noreply@github.com"
] | morrell.noreply@github.com |
fd59de77217def418240e6c5174cc806f21f4db6 | e966c35bafed154b4feb53c1ad2887670fae6c2e | /pandas/pandas kayıp ve bozuk veriler.py | 5ae1728ef2a1c318c32ee53414b62af31ed8a93e | [] | no_license | Apoles/python_kod | 487544cacfc2fe8c7ebac3f5b6c1d211fe440112 | a3b6d7e435c996ab9fba47fd3021649b8fbc7f71 | refs/heads/main | 2023-02-06T17:52:02.116873 | 2020-12-24T20:42:30 | 2020-12-24T20:42:30 | 324,232,400 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,334 | py | import pandas as pd
import numpy as np
data=np.random.randint(10,100,15).reshape(5,3)
df=pd.DataFrame(data, index=["a","c","e","f","h"], columns=["clm1","clm2","clm3"])
df=df.reindex(["a","b","c","d","e","f","g","h"])
result=df
result=df.drop("clm1",axis=1) #colmuns 1 i siler
result=df.drop("a",axis=... | [
"noreply@github.com"
] | Apoles.noreply@github.com |
14e81ce0890ecae823ab6d5875ae15f4759c94de | c0e7af4c94102cb1c35cafd9cbf0916fcadf13f1 | /dynamicApp/apps.py | 8adeb1b77d1d4b97ea50e1afa5d372cda2926215 | [
"Apache-2.0"
] | permissive | TheMn/internet-engineering-project | e000e367a31556bc7a13fd7251883427168e7cda | 54b748e23ffc93b081b4a0778108b7331a1db4e6 | refs/heads/master | 2023-07-29T14:29:45.327017 | 2023-07-18T06:58:05 | 2023-07-18T06:58:05 | 212,167,133 | 7 | 1 | Apache-2.0 | 2022-12-08T11:58:23 | 2019-10-01T18:14:59 | HTML | UTF-8 | Python | false | false | 95 | py | from django.apps import AppConfig
class DynamicappConfig(AppConfig):
name = 'dynamicApp'
| [
"mt.lroc@outlook.com"
] | mt.lroc@outlook.com |
cd896cba542a5374151a5c2ebe7a8c791ecac2c0 | d9b880e62c4b3c9a4b5bdd49800ea02507c1b2e0 | /medbank/middleware.py | c9462a1736ce88dfbc8f2e85ac97ab7ed0465dce | [] | no_license | McHogardty/MedBank | e4a5c343fccecc26971585e963e935a3624c459a | 96ace1001e55cd72f2d698dd72cb08ab0c76a6ef | refs/heads/master | 2021-08-27T15:32:47.134071 | 2015-07-13T12:51:05 | 2015-07-13T12:51:05 | 39,011,489 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 263 | py | from __future__ import unicode_literals
class ExtraErrorEmailInfoMiddleware(object):
def process_exception(self, request, exception):
try:
if request.user.is_authenticated():
request.META['USER_USERNAME'] = str(request.user.username)
except:
pass
| [
"michaelhagarty@gmail.com"
] | michaelhagarty@gmail.com |
9b778d789472cdacd42c7d77dad43deb6b558e28 | fc0ddf3a03ab73f1da805ec9d590843f271ff713 | /py/vr/stat.py | 87752bdb478641f9e00050a79e8b11c403abcff1 | [
"MIT"
] | permissive | acorg/ssm-report | 4abcf0aca821e2720c59cc1feae625925887abfe | eecb082c280a991116f15751bfd63da8c5680d1f | refs/heads/master | 2022-04-28T02:11:42.883010 | 2022-03-29T08:14:02 | 2022-03-29T08:14:02 | 107,971,608 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,165 | py | import logging; module_logger = logging.getLogger(__name__)
from pathlib import Path
import sys, datetime, collections, re, csv, json, subprocess, lzma
# ======================================================================
from .lab import lab_display_name
sVirusTypeForFilename = {"all": "all", "a(h3n2)": "h3n2", ... | [
"github@skepner.eu"
] | github@skepner.eu |
40c6be57a2548ec77ba7486a14eab9e30a750b5f | 9849703ed6e995582e0eb354e18b3a528c68bf51 | /datascraper.py | e44c83dd26904af45e7aa26123bffa05bc5b1245 | [
"LicenseRef-scancode-other-permissive",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | vozille/Rank-list-generator | 31535db77ccfbcee501e2d12bd40eb3658c2f6d7 | e0ebfe003e436ebfc409cb470f0e47ae64224db8 | refs/heads/master | 2016-09-06T21:30:39.895080 | 2015-08-19T15:17:03 | 2015-08-19T15:17:03 | 30,417,019 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,929 | py | #Anwesh Mohanty
import Tkinter
import sys
from lxml import html
import requests
from Tkinter import *
import math
import tkMessageBox
import os
import time
# import rank_generator
# import rankGenUI
number = 0
ind = ["MECHANICAL ENGINEERING ","ELECTRICAL ENGINEERING ","CIVIL ENGINEERING ","INSTRUMENTATION & ELECTRONI... | [
"anwesh063@gmail.com"
] | anwesh063@gmail.com |
ad088c4e655ae3617b31666867924e0adc3d41ab | c6106a6a087fb5388cd24fb550247ead3fc99f28 | /car_inventory/api/routes.py | 8fee2d367d551b9d3c0d6eed17c1350a12fdd419 | [] | no_license | jcnghm/Car-API-Flask | e52bdd940a2047f627493470739db97f080fbd21 | 2b16c289fd8b5f542d815f5c5b1f8f4547ab1009 | refs/heads/master | 2023-08-18T00:24:13.151394 | 2021-09-15T17:55:50 | 2021-09-15T17:55:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,494 | py | from flask import Blueprint, request, jsonify
from car_inventory.helpers import token_required
from car_inventory.models import db, User, Car, car_schema, cars_schema
api = Blueprint('api', __name__, url_prefix = '/api')
@api.route('/getdata')
@token_required
def get_data(current_user_token):
return { 'The' : 'Ve... | [
"jcnghmpsEgmail.com"
] | jcnghmpsEgmail.com |
8332846623f1a5df6ebc02ade8a3006b33f793f4 | 6e44863b66ca27393e4df02579a17858093e964e | /collage_app/migrations/0007_auto_20210729_1409.py | 33373b94c9465f0c1328baac70b798da8f5686fc | [] | no_license | futureseadev/NFTBackend | 297d164fb54be85c57f5ed9a9156984f4b61110e | aa4b027496d65801fbd203fc57d6a19fc97f507d | refs/heads/main | 2023-08-24T00:01:37.484314 | 2021-11-01T00:40:46 | 2021-11-01T00:40:46 | 423,609,550 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 551 | py | # Generated by Django 3.2.5 on 2021-07-29 14:09
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('collage_app', '0006_alter_serie_slug'),
]
operations = [
migrations.RenameModel(
old_name='TokenImage',
new_name='Token',
... | [
"artsiomliaver@gmail.com"
] | artsiomliaver@gmail.com |
af3584ba00a8c05c57704d30781c6e67ca2600c2 | a7215a919ce9ecd1cb09fd4a66543d99e3c1619e | /venv/Lib/site-packages/reader/_app/__init__.py | 4275752bc3bd69133e4817d0c17039d0bd1cdc84 | [] | no_license | srikanthajithy/Srikanth_Assignment_3 | 2f8b14cf4b51a9ae871fede91f69d273ac8ec5a7 | 040691ae59b204aa675ad9b879bef34302c0a61d | refs/heads/master | 2023-06-17T23:35:40.563258 | 2021-06-29T22:55:46 | 2021-06-29T22:55:46 | 381,516,636 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,406 | py | import contextlib
import itertools
import json
import time
from dataclasses import dataclass
import flask.signals
import humanize
import markupsafe
import yaml
from flask import abort
from flask import Blueprint
from flask import current_app
from flask import flash
from flask import Flask
from flask import g
from flas... | [
"yarramajith@gmail.com"
] | yarramajith@gmail.com |
d9a58437e924d5c26e735dd9567430f0c5d9125b | 29333e514bb8e4bc18105175c8d7a0b63390c7ce | /cf.py | 7d7ef0c10ed3e3f8fc1943a1bcc7e41d70dcef14 | [] | no_license | ElectronicStructureUdeM/scripts | 39a836de7e2a4446a12ce480119ef0abd17afcdf | 1320aebabc68d1c3fa804d5f07730573a2fe9197 | refs/heads/master | 2020-07-29T14:47:24.407050 | 2020-04-07T01:24:26 | 2020-04-07T01:24:26 | 209,847,285 | 1 | 1 | null | 2020-04-07T01:24:27 | 2019-09-20T17:37:17 | Python | UTF-8 | Python | false | false | 1,672 | py | from pyscf import dft,lib,scf
import numpy as np
import kernel
class CF():
def __init__(self, mol, kskernel):
#for the integration grid
self.min_y = 0.0
self.max_y = 100.0
self.gauleg_deg = 2000
self.y_grid, self.y_weights = np.polynomial.legendre.leggauss(self.gauleg_deg)... | [
"rodrigobogossian@gmail.com"
] | rodrigobogossian@gmail.com |
b6d65b733fa93e683f912e595de20b6d50ba81bc | d02727d818c369e4ad13489788458b2a19a593f1 | /models/searn/state.py | ff62372ceb07bc18254584b842df9c06b2c608e9 | [] | no_license | artemkramov/coreference-pairs | cbe299b6d71ebc945abaaa4fbbb4196b6145ebe2 | 8fab8e13b039cf0ccd68dcab6b394dd71d555ff9 | refs/heads/master | 2021-06-26T06:42:04.631865 | 2019-08-16T14:18:50 | 2019-08-16T14:18:50 | 174,178,363 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,463 | py | from .mention import Mention
import uuid
from typing import List
from .action import MergeAction, PassAction, Action
from .policy import Policy
import copy
# State of mentions
class State:
# Index of the current mention in the list of mentions
current_mention_idx = 1
# Index of the current antecedent in... | [
"github@help-micro.com.ua"
] | github@help-micro.com.ua |
ad90ac3c023bc1b2ebd8f09634fcd8803d5f884b | 438d6a867e23e49fe84041d1dcb3456b71af8ebb | /Modulos/inventario/admin.py | 0d4c470169a2b07ef45fe28d9c943d06b7366daf | [] | no_license | Nicko1722/inventario-is | 76d0108ecd2e01843c60292d80f6c27c39f53faa | b7ed35de235673ad896ffdcefcf6d6c9c08501c5 | refs/heads/master | 2021-01-01T03:56:34.485005 | 2016-04-24T21:35:07 | 2016-04-24T21:35:07 | 56,994,494 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 483 | py | from django.contrib import admin
from .models import Producto, Provedor, Categoria
# Register your models here.
@admin.register(Categoria)
class CategoriaAdmin(admin.ModelAdmin):
list_display = ['id', 'nombre']
@admin.register(Provedor)
class ProvedorAdmin(admin.ModelAdmin):
list_display = ['id', 'nombre']... | [
"ioswxd@gmail.com"
] | ioswxd@gmail.com |
398f6493189033c8b14eac236ef7b803d54b45f7 | a882da51d61cd6ab92581d178b7b97726f3381a8 | /ppl/apps/mdb/mdb_macros/css/__init__.py | b36792bba276c9a4076f35650622034fdbc85676 | [] | no_license | sheldonGal/ppl-polls-project | 52733ab76b29404e3beef39b2f6159ba0f6a45f3 | 9078fdee96c5852ede8b25ac28c9b8ec1ef98294 | refs/heads/master | 2020-05-19T10:14:21.570023 | 2019-05-13T15:53:02 | 2019-05-13T15:53:02 | 184,966,882 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 34 | py | from .text_color import text_color | [
"sheldon.gal.nb@gmail.com"
] | sheldon.gal.nb@gmail.com |
ec185ea92c21539da1a1068e7e43354f7fe4e2de | 17d30f314ba07706c473ced6f1ed48b5c5b74cd5 | /link_prediction/main_tmp.py | bc6daf19fbe5849aab58e508513e606b90cd7a34 | [] | no_license | galkampel/Link_prediction | e0c924cc41fa6f34de42d8b35632340e67b7c11a | 6f6a4316c4eb8bb276205d8bee78b78f6a4f8b79 | refs/heads/master | 2020-06-28T22:57:29.225756 | 2019-08-03T21:22:24 | 2019-08-03T21:22:24 | 200,364,076 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,398 | py |
# import networkx as nx
from graph import Graph
from preprocess import Preprocess
# from node2vec import Node2vec
from walker import DeepWalker #,expand_node
from nodeEmbeddings import *
from model import Model
from edge2vec import *
from splitter import Splitter
from community import CommunityNetwork #,get_... | [
"noreply@github.com"
] | galkampel.noreply@github.com |
aaa0a6007ed8d3e408f2f48673605bab85e04bdf | fd6976d9773fc56f5af47fbd1f9d366feffc777f | /apscheduler/serializers/json.py | 7c2513bba0a7fa1681b8b67ad676fca413342254 | [
"MIT"
] | permissive | daya0576/apscheduler | f4678077ddf9b2cb7f72d6c8b82178b34547b21a | 61b8b44c712c9a28e613044b12c553adbc6ca015 | refs/heads/master | 2023-05-31T19:57:46.824631 | 2021-07-10T16:19:52 | 2021-07-10T16:19:52 | 384,734,462 | 0 | 0 | MIT | 2021-07-10T15:49:31 | 2021-07-10T15:49:30 | null | UTF-8 | Python | false | false | 1,529 | py | from dataclasses import dataclass, field
from json import dumps, loads
from typing import Any, Dict
from ..abc import Serializer
from ..marshalling import marshal_object, unmarshal_object
@dataclass
class JSONSerializer(Serializer):
magic_key: str = '_apscheduler_json'
dump_options: Dict[str, Any] = field(de... | [
"alex.gronholm@nextday.fi"
] | alex.gronholm@nextday.fi |
967192b03f1c16e356fd0b8218bcfbc2e0b8ef5c | aa09302c7186025af42c22664bb291395bee9bae | /lecode/Reverse String.py | cda659cb35dbde8a177a6e4f7b738f48824bdae1 | [] | no_license | okliou/_test | b7fdf801548d33498d2053ed71436853b8e18003 | 45dbe55a727769ffe10b2e6b92ab5097fbc3d8cc | refs/heads/master | 2020-06-16T23:50:53.180458 | 2019-07-10T11:29:55 | 2019-07-10T11:29:55 | 195,733,624 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 420 | py | class Solution:
def reverseString(self, s: list) -> None:
"""
Do not return anything, modify s in-place instead.
"""
for i in range(len(s) // 2):
print(s[i], s[- i - 1])
s[i], s[- i - 1] = s[- i - 1], s[i]
print(s[i], s[- i - 1], '-'*20)
r... | [
"okliou@163.com"
] | okliou@163.com |
42ff9cc6a926214d8a0a1716f91c5a6cbe4d476f | 507b25ae0a75752d5cc5d97fd1f1e95ef55bd70e | /todo/node_modules/mongoose/node_modules/mongodb/node_modules/mongodb-core/node_modules/kerberos/build/config.gypi | 0ab330031f1b6e4d0cf85c246d9d0e4e12bb6326 | [
"Apache-2.0",
"MIT"
] | permissive | Anne0011/ToDo-List | 86a2dcb60947c68db29b1c43adf7502243d0a201 | 5e2d8d853763577de3329dba17c2384a9b063eb5 | refs/heads/master | 2021-01-19T20:27:46.182524 | 2015-04-16T23:23:00 | 2015-04-16T23:23:00 | 33,787,973 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,241 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"clang": 1,
"host_arch": "x64",
"node_install_npm": "false",
"node_pref... | [
"anne.grose68@gmail.com"
] | anne.grose68@gmail.com |
101df5215cadd59cef70267543b752ad01970845 | a682c44945f2c98f7ec6ef846d51753a5b802aca | /modules/__init__.py | 84d71f1f5560207ca8096b3bbfb319bf81a79200 | [] | no_license | Water-Mngr/CVServer | f9d4a2473709787f35142926ba42a2fbd55b2648 | d48222522c7d3ed251d9c63b4b8d29b01f971b8d | refs/heads/main | 2023-06-03T08:30:56.586145 | 2021-06-20T08:06:16 | 2021-06-20T08:06:16 | 364,805,195 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 221 | py | '''
Copyrights: ©2021 @Laffery
Date: 2021-05-07 17:16:24
LastEditor: Laffery
LastEditTime: 2021-06-18 22:05:04
'''
from .plant_crawler import *
from .plant_id import *
from .plant_cmp import *
from .plant_detect import * | [
"2387065420@qq.com"
] | 2387065420@qq.com |
8ea5c0acb54867b4efc85d696f026abfeabbdb9b | b8120566b4ad58944251f5c916f1f57b426b2c58 | /Test_Cases/test_RecieveSample.py | 7fb3988e6e735b68059e198fe4cb361d3c7013d4 | [] | no_license | mrasadali/guruLIS | e73fd5191e2063f8c28b70a8ef5c7f2f2e779821 | 3d1dd2250aeb2ddbec31f4cd9eb15ef8219edcb3 | refs/heads/main | 2023-06-18T21:39:52.240283 | 2021-07-09T13:17:13 | 2021-07-09T13:17:13 | 354,773,916 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 663 | py | import time
from Page_Object.Recieve_Sample import RecieveSample
from Utilities.BaseClass import BaseClass
class TestCase1(BaseClass):
def test_case3(self):
self.login()
self.driver.get("https://mla-test.azurewebsites.net/Pages/Appointment/CollectedLabSampleReceiving.aspx")
recieve_sample... | [
"asadkhaniuk@gmail.com"
] | asadkhaniuk@gmail.com |
a91471492905dfdec33fc5bedbecb0181011961d | 1cd0b84f060c80aba83358d7b5776544d68a08c3 | /src/core/helpers/trnsf_gizmo/translate.py | e773246af9dcc3d437886e5430a355cc70b5809a | [] | no_license | leotada/panda3dstudio | b480c87f9289fba1ae3a1f7ce7b1efa1d84e879f | a5a0890626eb87c1ab8e8ea3442cccbf64c94650 | refs/heads/master | 2020-03-20T07:18:24.269859 | 2018-06-13T11:26:15 | 2018-06-13T11:26:15 | 137,277,749 | 0 | 0 | null | 2018-06-13T22:21:15 | 2018-06-13T22:21:15 | null | UTF-8 | Python | false | false | 14,687 | py | from .base import *
class TranslationGizmo(TransformationGizmo):
def _create_handles(self):
root = Mgr.get("transf_gizmo_root")
self._origin = root.attach_new_node("translation_gizmo")
self._handle_root = self._origin.attach_new_node("handle_root")
red = VBase4(.7, 0., 0., 1.)
... | [
"Epihaius@users.noreply.github.com"
] | Epihaius@users.noreply.github.com |
ce49c0b233425ec0f195e7edd7871fec58b159d6 | 808905832b0eedfd14ac719fd59b911636c94eb9 | /app/migrations/0001_initial.py | 8d24ab1292ccf833ace414f2698c8ae4219cf3ed | [] | no_license | hikaru4215/cosme-portfolio | 27aef4fcdc410d0df5de22fe96729d810672233c | d4f5927631aa44df4dca74a2d73ff293025871d9 | refs/heads/main | 2023-03-24T23:34:58.334680 | 2021-03-21T13:44:14 | 2021-03-21T13:44:14 | 349,323,618 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,139 | py | # Generated by Django 2.2.19 on 2021-03-19 08:20
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Category',
fields=[
('id', models.AutoFiel... | [
"hikaru4215hkr2178ay@yahoo.co.jp"
] | hikaru4215hkr2178ay@yahoo.co.jp |
6d8380f28efb8e4e51f189e61b0814a61df18843 | aad8db2013579bac732a3c650c7a0f7df15e4c21 | /Week14/Karl_Roth_reducer.py | 92ff1b3716c7c552fe03b17455d2c707c3ef9e9a | [] | no_license | nrothchicago/DataScience | 1c8756d38c6fdf001f7c0692d11915465c9675d8 | 174fc78b10ea1751f5f86da5b0885875d33d29f2 | refs/heads/master | 2021-06-21T04:30:52.053432 | 2017-07-17T15:02:28 | 2017-07-17T15:02:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 921 | py | #!/usr/bin/env python3
import sys
# We explicitly define the word/count separator token.
sep = '\t'
# We open STDIN and STDOUT
with sys.stdin as fin:
with sys.stdout as fout:
# Keep track of current city and count
ccity = None
ccount = 0
city = None
# For every line in STDIN
for line in fin:
... | [
"karoth14@gmail.com"
] | karoth14@gmail.com |
9824cb548ab42610e212efea7d1ab5ed82095248 | 01ff60b36061d6905951f815502945c4373715b7 | /serializar_objetos.py | 66275cdfe9b06a2f8a7649a7f152f7cd533a048d | [] | no_license | solcra/pythonEstudio | 84b6d15f395b71ec5ae5ca5398f1638fb29f656f | 34408722377c35012dd937ea17a197f5ce622b3c | refs/heads/main | 2022-12-29T11:57:45.449151 | 2020-10-11T01:57:32 | 2020-10-11T01:57:32 | 302,904,463 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 863 | py | import pickle
class Vehiculos():
def __init__(self, marca, modelo):
self.marca=marca
self.modelo=modelo
self.enmarcha=False
self.acelera=False
self.frena=False
def arrancar(self):
self.enmarcha=True
def acelerar(self):
self.acelera=True
def frenar(self):
self.frena=True... | [
"carlosgranadacra@gmai.com"
] | carlosgranadacra@gmai.com |
dfe5424bd34a26902cf8464f56f024f2e864b554 | e763c08677250bfbeaa444910d052560a0c6835f | /lab0/tester.py | 7d791f5f1a04d70b19056ff399207cf056a04236 | [] | no_license | Lenaxiao/MIT-6.034-lab-works | bd72bfd069413e7eb7aa9baf8c41077b4f9bbaf5 | 363cebf9cd9b8b2ef3d29863875fdf626929a803 | refs/heads/master | 2022-11-06T18:39:21.173564 | 2020-06-17T20:01:21 | 2020-06-17T20:01:21 | 273,063,358 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,218 | py | import xmlrpclib
import traceback
import sys
import os
import tarfile
try:
from cStringIO import StringIO
except ImportError:
from StringIO import StringIO
# This is a skeleton for what the tester should do. Ideally, this module
# would be imported in the pset and run as its main function.
# We need the fol... | [
"lenaxiao@uw.edu"
] | lenaxiao@uw.edu |
1dd692e32515fcb5842ba4dd942c7dd8e4e5de2c | 3fcbbc1a2a262ed3b8fc9d7183c81b5f09445a85 | /build/viso2/viso2_ros/catkin_generated/pkg.installspace.context.pc.py | 3fd63f6aa6f66b7565c6857a53f863aa9b1bcc6e | [] | no_license | karry3775/SimulationWS | 0861071c7d1b0f0372dc3515983bf8e092b37d07 | 754336d88d40e8e7d9e677bedff37505df7eaf4d | refs/heads/master | 2021-05-24T12:01:15.763154 | 2020-04-16T02:33:22 | 2020-04-16T02:33:22 | 253,547,979 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 426 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "${prefix}/include".split(';') if "${prefix}/include" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "vis... | [
"kartikprakash3775@gmail.com"
] | kartikprakash3775@gmail.com |
40ed3a558af52564d435481fd28bd07e931e359a | 4181c8a6f54a4dd04587a9872962c48919796226 | /monopoly/game.py | 9a32135ac69ea9e64c2bbe769f3cdceb6406ac90 | [
"MIT"
] | permissive | abhishekmodak/monopoly | ab075a9ba5103d2c59b205053002f7226dd15b7b | cbb341ce2a37ed86e0d77531692df77b8947ff86 | refs/heads/master | 2020-07-20T06:54:18.286041 | 2019-09-05T15:25:27 | 2019-09-05T15:25:27 | 206,593,936 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,826 | py | from cells import *
from player import Player
class Game:
def __init__(self):
self.count_of_players = 3
self.cell_positions = ['E', 'E', 'J', 'H', 'E', 'T', 'J', 'T', 'E', 'E', 'H', 'J', 'T', 'H', 'E',\
'E', 'J', 'H', 'E', 'T', 'J', 'T', 'E', 'E', 'H', 'J', 'T', ... | [
"amodak828@gmail.com"
] | amodak828@gmail.com |
6eb5e4b7dcbd788da2b0eda5a5822547df006bf1 | a969bd5473ae0e7024e9512a7eafbc2b19cebbbf | /miasm2/expression/simplifications_common.py | 13b25ce20fc95402c857f08e4b0d5c716f526779 | [] | no_license | buptsseGJ/VulSeeker | 18c83b7008e41f8f4337c94eecdf365b0cc29dd7 | b71431045339a2e031950d2f8d99bfce30a44e99 | refs/heads/master | 2021-06-27T17:44:44.374702 | 2018-12-25T13:21:59 | 2018-12-25T13:21:59 | 135,588,405 | 97 | 33 | null | null | null | null | UTF-8 | Python | false | false | 22,526 | py | # ----------------------------- #
# Common simplifications passes #
# ----------------------------- #
from miasm2.expression.modint import mod_size2int, mod_size2uint
from miasm2.expression.expression import ExprInt, ExprSlice, ExprMem, ExprCond, ExprOp, ExprCompose
from miasm2.expression.expression_helper import par... | [
"yangx16@mails.tsinghua.edu.cn"
] | yangx16@mails.tsinghua.edu.cn |
fabf8eca0d73238ad7b2b58e3b2ce7e1653c512b | 1b8b4cdd251877868c1d3530fab7e84a692c91be | /learn-python-hard-way/ex30.py | 9db64f4ab63ef2e0be95c6291680194b23a7ebc3 | [] | no_license | vaibhavmule/learning-python | d1756f4e160bd24e4a2d1d05e383866f2248d523 | 46ec3a437606526760d56ccfefaad74f7184c9ab | refs/heads/master | 2021-09-28T19:42:47.545788 | 2020-07-24T14:07:06 | 2020-07-24T14:07:06 | 20,795,878 | 0 | 2 | null | 2021-09-22T19:33:09 | 2014-06-13T07:29:00 | HTML | UTF-8 | Python | false | false | 865 | py | # this is exercise 30: Else and If
people = 30 # a variables storing how many people
cars = 40 # a variable storing how many cars
buses = 15 # a variable storing how many buses
# cheking if cars are greater than people
if cars > people:
print "We should take the cars"
# cheking else if cars are less than people
eli... | [
"vaibhavmule135@gmail.com"
] | vaibhavmule135@gmail.com |
66aacd00e7bdce2111722d081c2878c8166da8bd | a16feb303b7599afac19a89945fc2a9603ae2477 | /Simple_Python/standard/warnings/warning_7.py | 4d1c278ced1e85f70f1fecb7598ecdf883061180 | [] | no_license | yafeile/Simple_Study | d75874745ce388b3d0f9acfa9ebc5606a5745d78 | c3c554f14b378b487c632e11f22e5e3118be940c | refs/heads/master | 2021-01-10T22:08:34.636123 | 2015-06-10T11:58:59 | 2015-06-10T11:58:59 | 24,746,770 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 205 | py | #! /usr/bin/env/python
# -*- coding:utf-8 -*-
import warnings
def function_with_warning():
warnings.warn('This is a warning!')
function_with_warning()
function_with_warning()
function_with_warning() | [
"zhuzhulang@126.com"
] | zhuzhulang@126.com |
142605103bd51c65d180b03c9c2e997fb0ecb502 | 3199331cede4a22b782f945c6a71150a10c61afc | /20210516PythonAdvanced/02-metaclass/hook02/library.py | 9f65187d305857184f27f2201567db7d17e230f6 | [] | no_license | AuroraBoreas/language-review | 6957a3cde2ef1b6b996716addaee077e70351de8 | 2cb0c491db7d179c283dba205b4d124a8b9a52a3 | refs/heads/main | 2023-08-19T23:14:24.981111 | 2021-10-11T12:01:47 | 2021-10-11T12:01:47 | 343,345,371 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 498 | py | "#Python is a protocol orientated lang; every top-level function or sytax has a corresponding dunder method implemented;"
class BaseMeta(type):
def __new__(cls, name, bases, body):
print('__new__ : ', cls, name, bases, body)
if bases:
if Base in bases:
assert 'ba... | [
"noreply@github.com"
] | AuroraBoreas.noreply@github.com |
6955d4a7a1fe1a97208eb2b8ebdbcfb9fcee631c | dc0981eaa83f9873f9967fe102b6f49e04e7e4a9 | /website/api/views.py | 77a8bec609a646c8c38d34fa6557a8c7db6e7431 | [] | no_license | basheer-97/DjangoBlog | f49018b25a291847e7b9a18347b79c3d04ebcd84 | 61279c8bc7d9db6fc9896690c353e127d1e6f929 | refs/heads/master | 2021-03-14T06:05:58.278753 | 2020-10-07T06:34:52 | 2020-10-07T06:34:52 | 246,744,000 | 3 | 3 | null | 2020-10-07T06:34:54 | 2020-03-12T04:32:56 | JavaScript | UTF-8 | Python | false | false | 434 | py | from django.shortcuts import render
from rest_framework import generics, permissions
from website1.models import Post
from . serializers import PostSerializer
# Create your views here.
class PostAPIView(generics.RetrieveUpdateDestroyAPIView):
queryset=Post.objects.all()
serializer_class=PostSerializer
class ... | [
"basheerbilal66@gmail.com"
] | basheerbilal66@gmail.com |
9afc6dd796a3185ae335688d95be5c99502abd65 | fa1b7d67de2499d8a90b04f8f84d6189568d6fc3 | /models/load_model.py | bc6bf6f3ab48480920d973b9e6e2172c5c13d0cb | [
"Apache-2.0"
] | permissive | SGT103/med_segmentation | 50502b9e291691b1a3bc8aa5154099cf423396a6 | ca32024224a3a3f8496bc88aeb756b1475e87b48 | refs/heads/master | 2023-08-27T17:09:51.698223 | 2021-07-14T08:55:08 | 2021-07-14T08:55:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,515 | py | from models import Premodel_Custom_Class
from models.Premodel_Custom_Class import *
from models.ModelSet import *
from models.Premodel_Set import *
from tensorflow.keras.models import load_model
import tensorflow as tf
def load_model_file(config, dataset, compile=False):
if config['load_weights_only'] == True:
... | [
"thomas.kuestner@uni-tuebingen.de"
] | thomas.kuestner@uni-tuebingen.de |
168b6d18f1582998e07f62bd36f0ff9b02258b4d | cb11ce1fe40a24e87ceb0066e10f5cdf908c5c8f | /neighbourhood/migrations/0004_auto_20190708_1010.py | 55f9cea6a605a4e8064225f721f570d8f8f97b4d | [
"MIT"
] | permissive | maurinesinami/neighbourhood | 003d0774dae55b292109da9f6033743598443011 | b6b2562ff0db9dce522f8f7c7056a07b52181b7d | refs/heads/master | 2021-09-09T06:22:25.412397 | 2019-07-10T04:31:29 | 2019-07-10T04:31:29 | 195,639,243 | 0 | 0 | null | 2021-09-08T01:07:56 | 2019-07-07T10:42:07 | Python | UTF-8 | Python | false | false | 1,217 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2019-07-08 07:10
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('neighbourhood', '0003_busine... | [
"maurinenami"
] | maurinenami |
3685cfbf63e35434703fc37cb0fccc72c970fbc5 | 8377cfd463e2d2361f1e9f347b0513ed8558eff4 | /PythonPlay/flask-jwt-master/flask_JWT_study.py | 0179da4c91499012e0f080e4a027f99cdaa366cc | [
"MIT"
] | permissive | ZHLOVE/PersonalDemoGroup | a6fbf237c26315b8b77fca857284a06c1979c9cf | 9db291f4a44da0656d0b11c082b8e79632a76eb4 | refs/heads/master | 2021-01-23T15:16:34.505524 | 2017-09-06T06:54:41 | 2017-09-06T06:54:41 | 102,700,421 | 1 | 0 | null | 2017-09-07T06:33:22 | 2017-09-07T06:33:21 | null | UTF-8 | Python | false | false | 1,108 | py | from flask import Flask
from flask_jwt import JWT, jwt_required, current_identity
from werkzeug.security import safe_str_cmp
class User(object):
def __init__(self, id, username, password):
self.id = id
self.username = username
self.password = password
def __str__(self):
return "... | [
"301063915@qq.com"
] | 301063915@qq.com |
b27fc0673fd407edc7a1d6c38fa52398cb7fd3b0 | 4bf380ed05bea3676dd54573bfd61d71dafcef7a | /violinHelper/Sound/FreqTable.py | 23d5f4e16b12d5180ae0b0d118d3865500d9f271 | [] | no_license | thusimon/Lutos | 6d58bc80230607933cf29f9543bff218c1cf0e21 | b0b372f5de8325231fc5e5e11e8f0f57392df887 | refs/heads/master | 2021-01-02T22:49:10.852578 | 2018-08-02T05:35:44 | 2018-08-02T05:35:44 | 99,402,338 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,113 | py | class FreqTable:
def __init__(self):
self.freqTable = dict()
self.freqTable["g3"] = 196
self.freqTable["g3#"] = 208
self.freqTable["a3"] = 220
self.freqTable["a3#"] = 233
self.freqTable["b3"] = 245
self.freqTable["c4"] = 262
self.freqTable["c4#"] = 277... | [
"thusimon@gmail.com"
] | thusimon@gmail.com |
5f7d0a63465078de1873b526e0c6c52e900c6779 | 25954758ded6a560b266bfda69632f74a39e9d9e | /EnergySystemHandler.py | a7801dea6dc17393f9ba30f6b9d78080317523d1 | [] | no_license | redekok/startanalyse-esdl | 3a2ce784a731782fba0cecc63348457c1b8d8489 | 070316b580881d4f7fe329dea3e6d35abaeea1fb | refs/heads/master | 2020-08-01T15:09:24.031908 | 2019-09-26T07:42:38 | 2019-09-26T07:42:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,853 | py | from time import sleep
from pyecore.resources import ResourceSet, URI
from pyecore.utils import DynamicEPackage, alias
from pyecore.resources.resource import HttpURI
from xmlresource import XMLResource
from pyecore.notification import EObserver
import uuid
from io import BytesIO
class EnergySystemHandler:
"""Clas... | [
"roos.dekok@quintel.com"
] | roos.dekok@quintel.com |
ec7d8801eb56e020fb0729328407ae930c6a369e | 221be51c2ef661a717e7f4740c25e6247c7f2794 | /0x0A-python-inheritance/0-lookup.py | cd819065692d2e44cfd8d7d23aaa0d9abe825d76 | [] | no_license | Teslothorcha/holbertonschool-higher_level_programming | 8bc562bf872554dfb5074562dae719663e983722 | 0464d980b45e3164c470dced81192d6ccc926ff7 | refs/heads/master | 2020-07-23T00:49:43.809183 | 2020-02-13T21:45:18 | 2020-02-13T21:45:18 | 207,387,971 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 209 | py | #!/usr/bin/python3
"""
This function will
show the attributes and
methods of an object
"""
def lookup(obj):
"""
obj is the instance to be avaluated
"""
l = []
l = dir(obj)
return l
| [
"juandavidmarinbernal@gmail.com"
] | juandavidmarinbernal@gmail.com |
c2a502a083d53447c9a984a29cbc9702459721c9 | 847233f9b8b837b5c95c63d66b1a42d513444267 | /Homework3/Homework3-2/ReadData.py | f0da6742329a4810ee2531adfa80077d4cd90dd7 | [] | no_license | bao-bao/DataMining | 0099da967e0fde93e8ae0d0727b61f1d88990c6d | 91970aaf8cd1d9c16e55db29ea2f22966c1deead | refs/heads/master | 2020-05-24T19:42:01.306665 | 2017-06-19T19:57:07 | 2017-06-19T19:57:07 | 84,875,016 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 752 | py | """
Created by AMXPC on 2017/4/27.
"""
import pandas as pd
def readcsv_notime(x):
dataframe = pd.read_csv(x)
dic = dict()
for index, row in dataframe.iterrows():
if row[1] not in dic:
dic[row[1]] = []
if row[47] not in dic[row[1]]:
dic[row[1]].append(row[47])
... | [
"1452765@tongji.edu.cn"
] | 1452765@tongji.edu.cn |
9110b0f1aaee562bca123db9c057b18564d4574b | fca45d0b019591bee60506b34f3efe6c83d3d2e7 | /learn/模块/wk_08_模块的搜索顺序.py | 57a12fce54f536a3aac7f000deec7ef9eb1ef252 | [] | no_license | xiebohust/python_study | a064ccd1c2fcf88b89ffe6eba1e67a910b90941d | 43c9c21c0957725fd68db2c9dc296be145816b7a | refs/heads/master | 2020-04-17T14:43:42.608303 | 2019-01-22T11:36:41 | 2019-01-22T11:36:41 | 166,669,118 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 92 | py | import random
rand = random.randint(0, 10)
print(rand)
print(random.__file__)
| [
"623270307@qq.com"
] | 623270307@qq.com |
d79b62eac7915e330f408e3821843222f83295f6 | d7016f69993570a1c55974582cda899ff70907ec | /sdk/keyvault/azure-keyvault-administration/azure/keyvault/administration/_generated/v7_4_preview_1/models/_key_vault_client_enums.py | 2a5527ff22fa10564ce52b1980eeb181bcf14611 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | kurtzeborn/azure-sdk-for-python | 51ca636ad26ca51bc0c9e6865332781787e6f882 | b23e71b289c71f179b9cf9b8c75b1922833a542a | refs/heads/main | 2023-03-21T14:19:50.299852 | 2023-02-15T13:30:47 | 2023-02-15T13:30:47 | 157,927,277 | 0 | 0 | MIT | 2022-07-19T08:05:23 | 2018-11-16T22:15:30 | Python | UTF-8 | Python | false | false | 5,259 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | kurtzeborn.noreply@github.com |
ac91c2db1ba24f2cb5f837094d410a4de6971e15 | dbf3509d667dd72e1f80a967d8e08d7c03da5201 | /Elite-Bomber.py | a4bec44815735ef65203ac5e1a22ffeaefa4c715 | [] | no_license | TERMUX20210/EliteBomber-1 | e3f3bafd5fdd503628a1212480e3836d3f130c5b | 86a6b26af8453f21139aa38c8afd27875097e67a | refs/heads/main | 2023-03-29T07:52:17.833651 | 2021-03-30T21:12:59 | 2021-03-30T21:12:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,250 | py | import base64
exec(base64.b64decode('''aW1wb3J0IGJhc2U2NAp4PSgiYVcxd2IzSjBJSEpsY1hWbGMzUnpDbWx0Y0c5eWRDQnZjd3B5WldR
OUoxd3dNek5iTXpGdEp3cG5jbVZsYmowblhEQXpNMXN6TW0wbkNtSnNkV1U5SjF3d016TmJNelp0
Sndwd2FXNXJQU2RjTURNeld6TTFiU2NLY21GdVp6MG5YREF6TTFzek5HMG5DbXhwYm1zZ1BTQWlh
SFIwY0hNNkx5OWhjSEF1YzI1aGNIQXVkR0Y0YVM5aGNHa3ZZWE... | [
"noreply@github.com"
] | TERMUX20210.noreply@github.com |
bbc257704347d7f441fdbee899a6469c903d2547 | 09df89395816834ddf77de620f959c22e74d8c00 | /two pointer/4sum.py | b718a7fe2a55d01a2998c1b012d6f980712976b4 | [] | no_license | gdh756462786/Leetcode_by_python | c853c4e3de255a8b4016c59944a0d40213a539a7 | 6387543a2a23c30aef1d5d37db54ca72cfb19270 | refs/heads/master | 2020-06-22T11:53:24.758506 | 2018-12-28T03:03:31 | 2018-12-28T03:03:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,728 | py | #coding: utf-8
'''
Given an array S of n integers, are there elements a, b, c,
and d in S such that a + b + c + d = target?
Find all unique quadruplets in the array
which gives the sum of target.
Note: The solution set must not contain duplicate quadruplets.
For example, given array S = [1, 0, -1, 0, -2, 2], and tar... | [
"pengshuang92@163.com"
] | pengshuang92@163.com |
75084d5f50d30f264bd62819aa2a3de04acf7d31 | 852f1b6cc06ac01845b37d78e842d19b74922056 | /Regression/polynomial_linear_regression.py | e47dd22df892708890143a41f3d115bf56c6ed95 | [] | no_license | Ankur800/AI-Udemy | be8abbfb5ee1273dca1b98720f2ffdd7d55794b6 | 06ef7a6dc4909b45b913f934100319d3da0f0ff1 | refs/heads/master | 2022-12-19T08:28:11.900582 | 2020-09-27T11:27:37 | 2020-09-27T11:27:37 | 298,285,263 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,034 | py | # IMPORTING THE LIBRARIES
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
# IMPORTING DATASET
dataset = pd.read_csv("/home/ankur/Udemy ML/Machine Learning A-Z (Codes and Datasets)/Part 2 - Regression/Section 6 - Polynomial Regression/Python/Position_Salaries.csv")
X = dataset.iloc[:, 1:-1].value... | [
"ankurrai800@gmail.com"
] | ankurrai800@gmail.com |
61aff27c1371eae56c95e28fd996301b43fce1db | e6404513b30d5f274ca0d18af26e40d73f38cc28 | /2带有一个隐藏层的平面数据分类/testCases.py | 779e0b66f682754658341e39a90f8e6c8c77814b | [] | no_license | MrVBian/deplearning.ai | b5c2c0b9def932e12ae2909ccca561edcd7cf34d | e935793a866837ab752c99aeb486bcaf4ce7311f | refs/heads/master | 2020-12-23T02:24:07.667931 | 2020-02-01T08:24:30 | 2020-02-01T08:24:30 | 237,004,481 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,034 | py | #-*- coding: UTF-8 -*-
"""
# WANGZHE12
"""
import numpy as np
def layer_sizes_test_case():
np.random.seed(1)
X_assess = np.random.randn(5, 3)
Y_assess = np.random.randn(2, 3)
return X_assess, Y_assess
def initialize_parameters_test_case():
n_x, n_h, n_y = 2, 4, 1
return n_x, n_h, n_y
def forw... | [
"544207374@qq.com"
] | 544207374@qq.com |
d9e42f7c20892e299d99cc31c41b880619b60a1f | 393d628ed83e40fbc45bde1fa77415446fa70e5d | /app/models.py | 839a69e01df5020e0d29d54476dd8f51746a88a5 | [] | no_license | danoscarmike/cloud-run-clients | 9c980d52efb621f4bd07f44b1cd75234e649d317 | 28efeb8ebc43474c5d9266b74198279a78a3893a | refs/heads/master | 2020-07-06T18:02:44.503327 | 2020-03-15T04:36:28 | 2020-03-15T04:36:28 | 203,097,560 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,585 | py | from app import db, login
from app.enums import ProtoSourceEnum
from datetime import datetime
from flask_login import UserMixin
from hashlib import md5
from werkzeug.security import check_password_hash, generate_password_hash
followers = db.Table(
'followers',
db.Column('follower_id', db.Integer, db.ForeignKe... | [
"omeara.dan@gmail.com"
] | omeara.dan@gmail.com |
9f5e9d876177a2fc9c4febb4d2751b4545cf9e71 | 9a009af13c21ad04a818959a6bad5f149febbae3 | /movie/migrations/0007_movie_slug.py | 35882f7c30fe73b9c794e6bd138076707c8fa4c4 | [] | no_license | Surdy-A/SMBD | 412089d8ce7369d679d0a3d10f853a6070498060 | c3c6a9d7b5626bc931d77dbe617ed145be3dcf7e | refs/heads/master | 2022-12-24T23:02:18.004371 | 2019-10-02T15:52:55 | 2019-10-02T15:52:55 | 212,331,313 | 0 | 0 | null | 2022-12-08T06:39:54 | 2019-10-02T12:11:17 | JavaScript | UTF-8 | Python | false | false | 388 | py | # Generated by Django 2.0.12 on 2019-09-20 13:16
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('movie', '0006_auto_20190919_2336'),
]
operations = [
migrations.AddField(
model_name='movie',
name='slug',
... | [
"sodiq.ajayi@yahoo.com"
] | sodiq.ajayi@yahoo.com |
4a99813b5b510d1c3e54f984e37578b9b344e3bd | eb9f655206c43c12b497c667ba56a0d358b6bc3a | /python/helpers/pydev/third_party/isort_container/isort/natural.py | aac8c4a36157fb3029c683d472cf5ff67163f7f9 | [
"EPL-1.0",
"Apache-2.0"
] | permissive | JetBrains/intellij-community | 2ed226e200ecc17c037dcddd4a006de56cd43941 | 05dbd4575d01a213f3f4d69aa4968473f2536142 | refs/heads/master | 2023-09-03T17:06:37.560889 | 2023-09-03T11:51:00 | 2023-09-03T12:12:27 | 2,489,216 | 16,288 | 6,635 | Apache-2.0 | 2023-09-12T07:41:58 | 2011-09-30T13:33:05 | null | UTF-8 | Python | false | false | 1,793 | py | """isort/natural.py.
Enables sorting strings that contain numbers naturally
usage:
natural.nsorted(list)
Copyright (C) 2013 Timothy Edmund Crosley
Implementation originally from @HappyLeapSecond stack overflow user in response to:
http://stackoverflow.com/questions/5967500/how-to-correctly-sort-a-string-wit... | [
"Elizaveta.Shashkova@jetbrains.com"
] | Elizaveta.Shashkova@jetbrains.com |
760ff8aa460a84a683f8d82b749f8a0b113441e6 | f5c3c9e0f48ae65e730521465d3eaccba3790403 | /gene-names-pipeline/map-gene-names.py | 7d74dba1ded9f81044afc24874660b76cca704e6 | [] | no_license | chair300/atsnp_pipeline | fc6c7dc24a421e2e50aa364cbdb4a259451637bc | 6cc5a0256c4c9254f98da7f4b9ca0d660cf0a46d | refs/heads/master | 2023-03-15T21:51:01.855949 | 2017-12-27T22:55:11 | 2017-12-27T22:55:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,170 | py | import re
import pickle
import json
from elasticsearch import Elasticsearch, helpers
DRY_RUN = False
#Run without indexing into Elasticsearch, in case something looks fishy.
#For test mode: INDEX_NAME = 'gencode_genes_test_1'
INDEX_NAME = 'gencode_genes'
#for old cluster: ELASTIC_URLS = [ 'atsnp-db1', 'atsnp-db2',... | [
"rebeccakathrynhudson@gmail.com"
] | rebeccakathrynhudson@gmail.com |
25a8a889ea54141721a089bb297bfc32aba9006e | 645c02b8414bee331d008f0724f30b088455bc1b | /celebA_parser.py | d22e8fe601a463332ed0baaea96323d4e3e547b7 | [] | no_license | tdrvlad/dataset-parsers | e3cdb66d2b69edf73d6be25289b1d22826df7404 | f15bbd5914160a12637d0fd95478595028600b75 | refs/heads/main | 2023-03-30T17:31:28.440023 | 2021-04-06T15:43:32 | 2021-04-06T15:43:32 | 355,243,490 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,997 | py | import os
import glob
import json
import shutil
from mtcnn.mtcnn import MTCNN
from PIL import Image
from numpy import asarray
identities_file = 'identity_CelebA.txt'
raw_dataset_dir = 'img_align_celeba_png'
processed_dataset_dir = 'CelebA_Faces'
MIN_IMG_PER_PERSON = 10
TRAIN_EVAL_SPLIT = 0.85
if os... | [
"noreply@github.com"
] | tdrvlad.noreply@github.com |
8e755e05fe9f1570a29aab3b8c2a2dd8a369f742 | 506f74a5172d6fdfeed257374f164fa6852819be | /nlp_pytorch/language_model_p2/data.py | f5a437c9263994d1b685c699c457fd911fe2cad0 | [
"MIT"
] | permissive | RegiusQuant/nlp-practice | b1047911dd2fe976b650530230b64dac251c4dce | ffa99aa585134941aa148da11775c2b16d42eef7 | refs/heads/master | 2021-01-06T09:09:08.304223 | 2020-04-18T06:21:01 | 2020-04-18T06:21:01 | 241,273,050 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,489 | py | # -*- coding: utf-8 -*-
# @Time : 2020/3/18 上午11:52
# @Author : RegiusQuant <315135833@qq.com>
# @Project : nlp-practice
# @File : data.py
# @Desc : 语言模型所需的数据存储结构
from collections import Counter
from pathlib import Path
from typing import List, Tuple
import numpy as np
import torch
import torch.nn as nn
c... | [
"315135833@qq.com"
] | 315135833@qq.com |
d85e8d89a929f0e2acec6b0095ee30e829f41f19 | ceb2a3d736e0c187eb67b064697409e919660e5a | /qa/rpc-tests/zmq_test.py | 0ad942eb848fbf6240163caf257a630cf6ab822a | [
"MIT"
] | permissive | ARMROfficial/armr | 6405117c8ad936985ff71397a9dc0e65d37c1357 | 6bc69a9dcb3ae6b26de435c1906681b3a7dd4ad4 | refs/heads/master | 2021-06-11T05:30:08.314912 | 2020-01-24T03:45:33 | 2020-01-24T03:45:33 | 128,578,630 | 4 | 5 | MIT | 2020-01-21T21:12:19 | 2018-04-07T23:57:59 | C | UTF-8 | Python | false | false | 2,579 | py | #!/usr/bin/env python3
# Copyright (c) 2015-2016 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
#
# Test ZMQ interface
#
from test_framework.test_framework import BitcoinTestFramework
from test_framew... | [
"info@armr.network"
] | info@armr.network |
e7a75c3b395dff6c3e3842c9ac8476cae17a8b18 | d405bb83325fd67f73b1afec5ea1b9753eae1a8f | /blog_project/urls.py | 30853b9685e3f49bae78daa8a641c099c04a98f7 | [] | no_license | Vanman007/Bolg_Django | 494c3a42a6970f940a7640ea96505876fa56b3a2 | 9fa2990a8be3f93e944185b2ca7826c57059e096 | refs/heads/master | 2023-08-15T07:05:16.990132 | 2020-07-26T22:47:48 | 2020-07-26T22:47:48 | 281,990,047 | 0 | 0 | null | 2021-09-22T19:33:28 | 2020-07-23T15:33:25 | Python | UTF-8 | Python | false | false | 908 | py | """blog_project URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-... | [
"thom37q2@stud.kea.dk"
] | thom37q2@stud.kea.dk |
e5c406a66eeb94f75d2362486e5ffddcf2c9956f | c75ec82316ed5322c5844912ce9c528c24360b9f | /nsd1906/py02/day02/account.py | d2d397a56fbbf6a198d9fc229d9b508fd56841f5 | [] | no_license | MrZhangzhg/nsd2019 | a94cde22f2e4bd648bb9e56ca63827f558f3c083 | 54f6d2c7b348a69f13ad5f38f2fbdc8207528749 | refs/heads/master | 2021-08-22T17:38:27.697675 | 2020-02-22T08:36:21 | 2020-02-22T08:36:21 | 183,539,489 | 21 | 24 | null | 2020-05-17T12:07:55 | 2019-04-26T02:06:16 | HTML | UTF-8 | Python | false | false | 2,120 | py | import os
import pickle
from time import strftime
def save(fname):
amount = int(input('金额: '))
comment = input('备注: ')
date = strftime('%Y-%m-%d')
# 从文件中取出全部记录
with open(fname, 'rb') as fobj:
records = pickle.load(fobj)
# 计算最新余额
balance = records[-1][-2] + amount
record = [date... | [
"zhangzg@tedu.cn"
] | zhangzg@tedu.cn |
eb25cf75636dd11070f415590bf264ca641b7f5e | 1821570d417029fb4385abe88f760bda6e3293bc | /Day8/main.py | 6ea7e75202e127b5e616993061856b73283c38b4 | [] | no_license | d-gallagher/AdventOfCode2019 | 86ce5d6eadccc3a45b6bd10e8b6026167cc4376a | c15b8bd0957bab542af7c90189b7420b52052c2b | refs/heads/main | 2023-01-20T23:00:15.823141 | 2020-12-01T00:20:42 | 2020-12-01T00:20:42 | 310,332,762 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,280 | py | # test input
# 123456789012
def split_img(file, width, height):
# img = []
zeroes = []
ones = []
twos = []
onetwo = []
with open(file, "r") as infile:
while True:
# read in pixels and process
pixels = infile.read(width * height)
if not pixels:
... | [
"jibisjib@gmail.com"
] | jibisjib@gmail.com |
fd87448c5d3b6d774860df0ffbf48bbac40ed2a6 | ee6acbd5fcd0fcd16230e96a4a539de41a02c97e | /operators/global-load-balancer-operator/python/pulumi_pulumi_kubernetes_crds_operators_global_load_balancer_operator/redhatcop/v1alpha1/_inputs.py | ec8c072135f299e523e34ac2e783a59dd8b97f1f | [
"Apache-2.0"
] | permissive | isabella232/pulumi-kubernetes-crds | 777e78137aaf6525a44b61a02dccf91bf0d87a14 | 372c4c0182f6b899af82d6edaad521aa14f22150 | refs/heads/master | 2023-03-15T04:29:16.039753 | 2020-12-30T19:35:54 | 2020-12-30T19:35:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 84,115 | py | # coding=utf-8
# *** WARNING: this file was generated by crd2pulumi. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
__all__ = [
'... | [
"albertzhong0@gmail.com"
] | albertzhong0@gmail.com |
0de7cdead8175527fa8a750aa83596e7d6c12382 | 112e36f1d83f53f069ded59d5f5278695146c2e7 | /profiles_api/urls.py | 8069267e307ac52fb9764927d07a1d6dc7dd117e | [
"MIT"
] | permissive | Labofprojects/profiles-rest-api | 25b96bf937d1c232f15eb6c5c118af2d15bdcde9 | 6c7af13578b7212b0f89f5cf94cb4183aa32e739 | refs/heads/master | 2022-12-14T01:07:59.008206 | 2020-09-18T20:22:13 | 2020-09-18T20:22:13 | 293,630,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 494 | py | from django.urls import path, include
from rest_framework.routers import DefaultRouter
from profiles_api import views
router = DefaultRouter()
router.register('hello-viewset', views.HelloViewSet, base_name='hello-viewset')
router.register('profile', views.UserProfileViewSet)
router.register('feed', views.UserProfileF... | [
"abiola282@gmail.com"
] | abiola282@gmail.com |
0e5545df342496d1bed9121d5cfa49b7b1880e03 | 8d7b36a812cdb90c142ec7b76f033028504abac2 | /devel/bin/kalibr_calibrate_cameras | 9a20725f27b8e73360b7a2466c35f311a4ab40f1 | [] | no_license | FanBowo/StageKalibr | 6495c130267cc52aa0880311125109f8f3b8a2ae | b945780af34dfb55b10a2a613540663cfe9b6ce3 | refs/heads/master | 2020-06-04T09:26:13.720113 | 2019-06-18T08:33:17 | 2019-06-18T08:33:17 | 191,964,604 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 861 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# generated from catkin/cmake/template/script.py.in
# creates a relay to a python script source file, acting as that file.
# The purpose is that of a symlink
python_script = '/home/fanzhuzhi/kalibr_workspace/src/Kalibr/aslam_offline_calibration/kalibr/python/kalibr_calibrat... | [
"389049674@qq.com"
] | 389049674@qq.com | |
cae725be9eeff25dab9597edc2e9b9a2b1b98a77 | 1558b917e2bea49671fceb140682908c39811af5 | /python-testing/applications/factorial.py | 8d535a2a9782d82297de14ab59e7fe4cd5f507bf | [] | no_license | PhillipHage202/python-testing | 279a95461b5898efd0d686ba3667834002766b8b | 7bc4ee51410e3583e691ba10962441ec5fd9de7e | refs/heads/main | 2023-01-03T11:13:50.041892 | 2020-10-29T12:15:16 | 2020-10-29T12:15:16 | 308,311,202 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 77 | py | def fact(x):
if x == 0:
return 1
return x * fact(x - 1)
| [
"noreply@github.com"
] | PhillipHage202.noreply@github.com |
17f86ecec096e42846a93f4637df06465d85b691 | 5c3d25b7ad5067a1b4ede348b9c7d0a721c77606 | /Servers/HTTPServer.py | b4a204f15aa4c4aa013be818af398a5616e6b005 | [
"MIT"
] | permissive | eranshmuely/pylmany | 4265c4a4ef17281c7af5a2fc6577bcd0bc1d6be0 | 7d045917ee5f840c85345586b79d9b2cbb539879 | refs/heads/master | 2021-06-19T16:12:15.272767 | 2017-05-07T18:42:17 | 2017-05-07T19:03:09 | 56,405,795 | 4 | 1 | null | 2017-05-07T21:47:08 | 2016-04-16T21:13:13 | Python | UTF-8 | Python | false | false | 2,505 | py | import Clients.HTTPClient
import httplib
from Servers.AbstractServer import *
import BaseHTTPServer
class HTTPServer(AbstractServer):
def __init__(self, client, listen_addr='', listen_port=8080, auto_start=True):
self.httpd = BaseHTTPServer.HTTPServer((listen_addr, listen_port), self.make_request_handler... | [
"yaniv2005@gmail.com"
] | yaniv2005@gmail.com |
2944de398b1822a76566f8be50e28a1b0c8f5843 | a523dce5cc7ef4ecf5706b7b7c9d9c32249d61ec | /Average List/Average.py | 533e895be659260b0cb9d97d3ed0e604c5ea4a84 | [] | no_license | DylanTrull/cs362HW4 | 21c8cb1fcd24b2136f83659f8c2763d480aa7add | 13b77ba9ea7d29cd729ecc36f57fc1585205a9f7 | refs/heads/master | 2023-04-20T05:19:56.044929 | 2021-05-03T21:42:52 | 2021-05-03T21:42:52 | 364,045,860 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 59 | py | def Average(list):
avg = sum(list) / len(list)
return avg | [
"trulld@oregonstate.edu"
] | trulld@oregonstate.edu |
5fa3e0efd2a714a9174b20907da6812b4303c5bb | 68f98406799a2ce4b61d7145fab7d5572dc80bc0 | /Lista01/Calculator/aux.py | 7fbf683d970a57e152bedd90f0762428fb3c52b1 | [] | no_license | bernardohrl/Criptografia_2019_01 | ff6b143441abf40a2550f7fbe2bf0ba0987a1f29 | 80f8061379bdf5f0d8e6c26b186dd4af22214124 | refs/heads/master | 2020-05-16T08:02:10.632862 | 2019-05-29T19:11:38 | 2019-05-29T19:11:38 | 182,896,085 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,632 | py | def dec_to_binary(num):
binary_string = str(bin(int(num, 10))[2:].zfill(8))
return binary_string
def get_correct_number(numero):
while(int(numero) < 0 or int(numero) > 255):
print('\nRange Inválido, escolha número entre 0 e 255')
print('Insira novamente: ', end='')
numero = i... | [
"bernardohrl.unb@gmail.com"
] | bernardohrl.unb@gmail.com |
a4f12c4b29d2340cd130c0dde351cb61e552d08b | 3b063a3dd3c0e255a8cb17dde0bf45527a36f861 | /forward.py | 01a27a72d812b9eee5cbff342ce6fe9354474ec4 | [] | no_license | FWin22/Misc | 704cf50a4cc14fd879faa1e35ecf3f76c6990b13 | 6b247eb5ddeaa383af29e6918a2d9b1ea299e03b | refs/heads/master | 2021-07-19T23:24:52.239842 | 2021-01-11T10:27:39 | 2021-01-11T10:27:39 | 233,248,496 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,559 | py | import numpy as np
import math
import jutil.diff as jdiff
from jutil import fft
from scipy.sparse import identity
def create_empty_aber_dict():
"""
Resets all aberrations to zero.
"""
aberrations = {'A0': 0. + 1j * 0., 'A1': 0. + 1j * 0., 'C1': 0. + 1j * 0.,
'A2': 0. + 1j * 0., 'B2'... | [
"noreply@github.com"
] | FWin22.noreply@github.com |
2c1bb0a5678204f10fe6d6ab94d7bb9e64a5ee8d | 5ea1083441051cbc20a61ae7ee4097ca3354ef98 | /FYPv2/FYP/users/apps.py | c75d3beeea5296e01fae7e316a96e3c1eff224a7 | [] | no_license | andrewodonovan/StudentCVA | 5d886506c0181f1c40a16cf43ba5409679f34060 | ec9ce5303cb41c7bec4d49c377194a22631968b8 | refs/heads/master | 2020-09-05T22:59:35.700633 | 2020-03-11T05:48:31 | 2020-03-11T05:48:31 | 220,231,954 | 0 | 0 | null | 2019-12-27T13:25:14 | 2019-11-07T12:28:01 | Python | UTF-8 | Python | false | false | 136 | py | from django.apps import AppConfig
class UsersConfig(AppConfig):
name = 'users'
def ready(self):
import super.signals
| [
"36671447+andrewodonovan@users.noreply.github.com"
] | 36671447+andrewodonovan@users.noreply.github.com |
1a27b2d2787079ad6353901e02b994eba48b5abc | b9e74f304d139de807c4ffdde7dad8e8dc8afc15 | /main/views.py | 01a87e3330e30de932accf98495af82c218b3d49 | [] | no_license | sanchoUa/MySite | 4415699b6f63b9a093813c345e31d6386854f4fa | b4e79e6b9fd7df91e0eb291ade62594944f7a7ed | refs/heads/main | 2023-08-24T22:35:28.407429 | 2021-09-15T19:24:08 | 2021-09-15T19:24:08 | 406,084,345 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 259 | py | from django.shortcuts import render
from django.http import HttpResponseRedirect
def main(request):
return render(request, 'main/html/main.html')
def check(request):
name = request.POST['name']
print(name)
return HttpResponseRedirect('/')
| [
"gladchuck.sah@gmail.com"
] | gladchuck.sah@gmail.com |
4ff65a73c99fd5e69a6e56e9e6689bd4a519ab47 | a548e117474705ee8817ddea368628533619285e | /old_python_files/auto_encoder.py | c4202145b9923017f04c3ad21ed4bb40fbe72bd1 | [] | no_license | minghao2016/deep_learning_chemical | e07b664244981b2f0251671bd84a73f89e0b0934 | 157ef2530fb1c3d4bec19d310706da7220172870 | refs/heads/master | 2020-10-01T22:54:03.548660 | 2017-04-04T15:32:52 | 2017-04-04T15:32:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,731 | py | import numpy
from scipy.sparse import csc_matrix
import h5py
import sys
import theano
import theano.tensor as T
from sda.utils import load_data, print_array
from sda.SdA import SdA
def main():
print('Loading data from file...')
f = h5py.File('feature_matrix.h5', 'r')
data = f['data'][:]
col = f['col... | [
"dennis@repositive.io"
] | dennis@repositive.io |
3a96d2d389ab9827a47e5c551cea7dc530bf0e9f | 2af4e7f030b5f263b2f4dcaa253efd8049b8e669 | /test/test_day10.py | cc9d8784991422162154a2e4fbea3fb915b91b17 | [] | no_license | thegeneralgeneral/advent-of-code | f99b9d9bbe26933ae922dac7485a1c08565c4f50 | 2d898087055964c28ea5d58619ce619a21b3c2f4 | refs/heads/master | 2021-01-10T02:31:26.685740 | 2017-05-05T19:39:56 | 2017-05-05T19:39:56 | 47,299,126 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,595 | py | import unittest
import day10
class Day10_LookAndSayTests(unittest.TestCase):
def test_single_digit(self):
input_string = "1"
expect = "11"
self.assertEqual(expect, day10.look_and_say(input_string))
def test_two_consecutive_digits(self):
input_string = "11"
expect =... | [
"jenna.fingler@gmail.com"
] | jenna.fingler@gmail.com |
0af2b81d3059a23dc1cec1fba1bac61858c689d5 | 53e30c71358a17041d7a3d44c60c69aa6054c9d0 | /timm/models/layers/drop.py | 669dbf248332c8eb714938972f2ebdf9ee7445eb | [
"Apache-2.0"
] | permissive | Qingfeng0623/pytorch-image-models | 120234f92e9f3f47d6c7e768b3ad2d1a50c3a3a5 | cc5a11abbaddef1aa3feb29009e57ca335b9cf57 | refs/heads/master | 2021-01-13T23:48:59.598846 | 2020-02-22T18:26:19 | 2020-02-22T18:26:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,298 | py | """ DropBlock, DropPath
PyTorch implementations of DropBlock and DropPath (Stochastic Depth) regularization layers.
Papers:
DropBlock: A regularization method for convolutional networks (https://arxiv.org/abs/1810.12890)
Deep Networks with Stochastic Depth (https://arxiv.org/abs/1603.09382)
Code:
DropBlock impl ins... | [
"rwightman@gmail.com"
] | rwightman@gmail.com |
bc085641378bf880403d37ff53189561703ce8c0 | 406a432e49c5743443eaa8183076a78d43a13c5c | /tests/base/test_base_object.py | 1218ea174091520a8a9506d495f70090f716e9e4 | [] | no_license | jpablo/superficie | ee4e0fafd048b3c73638673c0a535e74377ceacf | 89f3429a942d1c0df6376d612b1243480084720a | refs/heads/master | 2020-05-02T06:56:20.633622 | 2013-07-08T03:30:45 | 2013-07-08T03:30:45 | 1,643,874 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 413 | py | import sys
import unittest
from superficie.base import BaseObject
class TestBaseObject(unittest.TestCase):
def test_BaseObject(self):
ob = BaseObject()
ob.show()
self.assertTrue(ob.visible)
ob.hide()
self.assertFalse(ob.visible)
ob.origin = (1,1,1)
self.a... | [
"jpablo.romero@gmail.com"
] | jpablo.romero@gmail.com |
cefc05fd60c16b6ea1104ebe63259d9274b02629 | 3d853a74e2d5806e7c03b12adf01416c5a95df7e | /jarvis.py | 681d556a34661ce874e7a0d3809b0fbc46548a85 | [] | no_license | stant581/JarvisAI | 7064838442b93cc417365bc4e484ca938b9dcde8 | e4edd4551c5aaef512e0d716a3b05644d108d45c | refs/heads/master | 2020-07-13T19:36:16.945260 | 2019-08-29T10:43:52 | 2019-08-29T10:43:52 | 205,139,613 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,128 | py | import pyttsx3 #pip install pyttsx3
import speech_recognition as sr #pip install speechRecognition
import datetime
import wikipedia #pip install wikipedia
import webbrowser
import os
import smtplib
engine = pyttsx3.init('sapi5')
voices = engine.getProperty('voices')
# print(voices[1].id)
engine.setProperty('voice', vo... | [
"stant581@gmail.com"
] | stant581@gmail.com |
ec46aee80711bebc37c3c8b0d3662a0125abb993 | 445a7b33191b006d125c831b37278954d600c6f4 | /chemlab/survey/migrations/0012_auto_20171025_2236.py | 8314aa61d7288ad006976ddd55418f3eee2c8bc8 | [] | no_license | doggra/chemlab | 669f72b9080d1e08b8dc9dc4f62477ffcb0e1356 | 8996f4c01938f29edfd1aca4c57189abfdfc092a | refs/heads/master | 2021-07-19T10:02:19.640651 | 2017-10-25T23:37:01 | 2017-10-25T23:37:01 | 108,335,269 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 589 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.6 on 2017-10-25 22:36
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('survey', '0011_auto_20171025_2128'),
]
operations = [
migrations.RemoveFiel... | [
"Doggra"
] | Doggra |
10b0cb367fe9cfe352bbb33c3c15518d73793d26 | 99ada05e0088a8e93400b245c02fb0b28ef91a2d | /prototype_1/settings_development.py | 2ddfbae5dd075df6398ee5a36f7db419aa7338cf | [
"MIT"
] | permissive | eric-scott-owens/loopla | 789fdf128393c29ced808b10e98eb55d5a0ed882 | 1fd5e6e7e9907198ff904111010b362a129d5e39 | refs/heads/master | 2022-12-12T17:30:44.373305 | 2019-08-01T06:17:05 | 2019-08-01T06:17:05 | 199,980,906 | 0 | 0 | MIT | 2022-12-11T00:23:28 | 2019-08-01T05:08:43 | JavaScript | UTF-8 | Python | false | false | 141 | py | # Settings that are unique for localhost
from prototype_1.settings_shared import *
ALLOWED_HOSTS = ['127.0.0.1', 'localhost']
SITE_ID = 1
| [
"eric.owens@loopla.com"
] | eric.owens@loopla.com |
eed768c5c1c19d00cc742271b1142a2d57a754c0 | 0bb119a63d0789f78fc8f371975920adc1f018b0 | /crypto/cpc.py | 9132650318a50b59a420cb7e46c0970f45b62884 | [] | no_license | suvranilghosh/Crypto-Search | ff1cf4515899d21769dea9bb9c56e953c9262133 | ad05e51bb6791c9a9203c1be44085d5167cb182d | refs/heads/master | 2023-04-29T20:06:57.839075 | 2021-05-15T01:48:14 | 2021-05-15T01:48:14 | 355,452,494 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 888 | py | import requests
import json
headers = {
'X-CMC_PRO_API_KEY': 'ce2697eb-b5a1-43e3-800c-cfcc73debc90',
'Accepts': 'application/json',
}
def top100():
params = {'start': '1', 'limit': '100', 'convert': 'USD'}
url = 'https://pro-api.coinmarketcap.com/v1/cryptocurrency/listings/latest'
response = reque... | [
"sg1239@scarletmail.rutgers.edu"
] | sg1239@scarletmail.rutgers.edu |
9e8548713e54215e323eb85b01d2dd5df1e3e7f9 | 39f91dc49461df23550f292ee76249b26bcbcad4 | /build/darknet_ros/catkin_generated/pkg.installspace.context.pc.py | 712f62924ce78932da142da363af195cfff5688e | [] | no_license | dkrystall/robosub_detection | efb997d5c87338c02bcb6dd59790d5a2717c8ca8 | c1b70ab3017d2c367e8f458a5ee5870e815cc4e1 | refs/heads/master | 2022-12-01T23:40:59.044889 | 2021-01-21T19:50:20 | 2021-01-21T19:50:20 | 178,419,681 | 0 | 0 | null | 2022-11-22T05:46:45 | 2019-03-29T14:23:12 | Makefile | UTF-8 | Python | false | false | 1,142 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/david/yolocam_catkin_ws/install/include;/usr/include".split(';') if "/home/david/yolocam_catkin_ws/install/include;/usr/include" != "" else []
PROJECT_CATKIN_DEPENDS = "cv_bridge;roscpp;actionlib... | [
"dkrystall@gmail.com"
] | dkrystall@gmail.com |
358ba3cb018955bbe7e4c0e735b0ced43f6cee3e | f0a8fdf752b0c11157a5a90c880891c7fb509456 | /auto-download-voice/auto-download/background.py | ecf5ca49baf0c7737d76d8edb53e7e6e62ba0b79 | [] | no_license | legenove/MyLearn | abde5d610562ebb8bf1410ee6f9ba6391001126d | d05e28ac550eb2306c11bd38b8515f929199295d | refs/heads/master | 2020-05-20T23:11:04.414953 | 2017-12-29T07:33:11 | 2017-12-29T07:33:11 | 46,164,926 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,720 | py | # -*- coding: utf-8 -*-
# -*- coding: utf-8 -*-
import os
import sys
import logging
import requests
import signal
from Queue import Queue
from multiprocessing import Process
PROJECT_ROOT = os.path.realpath(os.path.dirname(__file__))
sys.path.insert(0, os.path.join(PROJECT_ROOT, "..", "site-packages"))
from redis_mo... | [
"396410414@qq.com"
] | 396410414@qq.com |
080cb7aacc20ed7a3c0eb6ae9b77b35201f1418e | fcb45715217e8c8b5fa220bb94c0804289b18258 | /pageload/pageload/views.py | d3d57896e5344fa9f6d83b2b308fa75b04a5c5ef | [] | no_license | SriramAditya/PageLoad | c948bfaa80c449ca3917e4d7e3d263114cfba1fa | 722251e938258950f2efc703106ac4870b2afe36 | refs/heads/master | 2021-03-18T19:59:23.489253 | 2020-03-13T15:06:17 | 2020-03-13T15:06:17 | 247,096,561 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,036 | py | from django.shortcuts import render
from .forms import LoginForm
import json
with open('pageload.json') as d:
for item in d:
print("item:",item)
#data = json.load(d)
# Create your views here.
def home_page(request):
return render(request, 'index.html')
def login_page(request):
... | [
"adityasriram.b@gmail.com"
] | adityasriram.b@gmail.com |
37e2fadef932a626b9fd33bd0a3e0a3f1199ac99 | c4116c2e8c411a9ab01065144e0e105f99f95313 | /Database/SConscript.py | 6f7f82bc564935887e976a0b307b7661ca9f0e26 | [
"BSD-3-Clause"
] | permissive | JeffersonLab/analyzer | aba8b4ce90b549b345daa81e731e44b0d704354b | a0613dcafa9efe42f759f5321cd0f8d2c633ba2f | refs/heads/master | 2023-06-17T00:26:31.368749 | 2022-11-06T22:46:23 | 2022-11-06T22:46:23 | 13,133,237 | 9 | 61 | BSD-3-Clause | 2021-10-30T14:54:45 | 2013-09-26T20:14:27 | C++ | UTF-8 | Python | false | false | 504 | py | ###### Hall A Software database library SConscript Build File #####
from podd_util import build_library
Import('baseenv')
libname = 'PoddDB'
altname = 'Database'
src = """
Database.cxx
Textvars.cxx
VarType.cxx
"""
dbenv = baseenv.Clone()
dbenv.Replace(LIBS = [], RPATH=[])
# Database library
dblib = build_library(d... | [
"ole@jlab.org"
] | ole@jlab.org |
8eeaec3f066123a4a0d454dc2a40949cf1f173fc | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_dictaphone.py | b80b2eac1bb94e10625867c6415784904aae4379 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 399 | py |
#calss header
class _DICTAPHONE():
def __init__(self,):
self.name = "DICTAPHONE"
self.definitions = [u'a machine used in an office to record spoken words and later repeat them aloud so that they can be written down']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.s... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
737e6c3054715511afc3af4db17540ea8ce1dcf4 | 06c9faf8a8cf7b965a8be3c32d0d52fbd6b09d57 | /ann.py | 1266b3c1e7637b2757a8dd3efa1a2b17eec3536e | [] | no_license | Chengchanghang/Pytorch | 095672684d5c9e31be7fbc249cec5b2ae524e76c | 0a5fdc82b857be12af5d22722872149be4433fc2 | refs/heads/master | 2021-07-05T19:16:15.593751 | 2017-10-01T13:54:11 | 2017-10-01T13:54:11 | 104,850,905 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,897 | py | """
View more, visit my tutorial page: https://morvanzhou.github.io/tutorials/
My Youtube Channel: https://www.youtube.com/user/MorvanZhou
Dependencies:
torch: 0.1.11
matplotlib
"""
import torch
from torch.autograd import Variable
import torch.nn.functional as F
import matplotlib.pyplot as plt
import gzip
import pick... | [
"noreply@github.com"
] | Chengchanghang.noreply@github.com |
011fd1a9973de6c4af09cc8ab8ee1f8da121c33f | f646cf82090cba0139850dc6f4b5d978f2230f6c | /Fyyur-Website-Project-1/Study-SQL-and-Data-Modeling-for-the-Web/MigrationRay2/migrations/versions/22cb12ae1140_.py | bb60e2f6a33774d2dd17e788a862171c77181554 | [] | no_license | AmrElsersy/Full-Stack-Web-Nanodegree | 7747ed6ed4e2e94d7b58d3f7f740e79568e31037 | 80fd0aec207420b9a0b907504402d9023f2d0d80 | refs/heads/master | 2023-04-16T23:59:58.939257 | 2020-07-17T00:16:58 | 2020-07-17T00:16:58 | 265,296,104 | 0 | 0 | null | 2021-05-06T20:20:11 | 2020-05-19T16:07:06 | Python | UTF-8 | Python | false | false | 1,217 | py | """empty message
Revision ID: 22cb12ae1140
Revises: 6431fb45929f
Create Date: 2020-04-10 11:35:00.434018
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '22cb12ae1140'
down_revision = '6431fb45929f'
branch_labels = None
depends_on = None
def upgrade():
# ... | [
"amrelsersay@gmail.com"
] | amrelsersay@gmail.com |
f98ca3bf65ac7627757a4e80f0e7f1c903551a1a | b14ccf1330dddc9a2f6b481c1767b3200be92072 | /contr6/urls.py | 675b42246a5403b30d81fc05353af54c1e2a8a09 | [] | no_license | da5tan93/6_lab | e138df52c755c8ff5bddfb3f783b6d1954f39d8a | 3f78a02618b5f0a26a6637ce58a8dd987f3db143 | refs/heads/master | 2020-07-29T22:16:01.319480 | 2019-09-21T13:11:59 | 2019-09-21T13:11:59 | 209,982,074 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,204 | py | """contr6 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based ... | [
"dos5n@ya.ru"
] | dos5n@ya.ru |
34da0a797dfe842d60344fff363419bb1f40b7b6 | c139820c3c8ed92ef575022fcfd40e9848913d53 | /calculationm.py | d95dfe44a4c630088db76364cb0864f728870ccb | [] | no_license | 418011010/2020 | d9116f693618ce6b0dad2f5a33c9f4b90d475552 | 983a4b771fa11fcc7a43c80db106a4faf156a6b5 | refs/heads/master | 2022-11-29T08:23:21.253682 | 2020-08-07T03:17:54 | 2020-08-07T03:17:54 | 263,866,870 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,718 | py | #-*-coding:utf-8-*-
import numpy as np
from pandas import DataFrame
import pandas as pd
from sqlalchemy import create_engine
import pymysql
from tqdm import tqdm
import time
import mysql.connector
pymysql.install_as_MySQLdb()
#自定义格式转换
def convert_currency(value):
"""
转换字符为float类型
如果转换失败,返回0
"""
tr... | [
"418011010@qq.com"
] | 418011010@qq.com |
0f1c79040c8c98280ff6bb41dd29ca5438094195 | ac6373b39ef103d0e605c365a53c609fd6c72a36 | /packages/@aws-cdk/custom-resources/test/provider-framework/integration-test-fixtures/s3-assert-handler/index.py | a5e9321c895eaa568537476739dee95fbdd04ab4 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | joeykilpatrick/aws-cdk | 7810fb4576ab7b8ff44587f75ffc0676d7b4808f | 92fb853ea7d31e7bf3d60bd50ce18b95c4189da6 | refs/heads/master | 2021-05-25T17:43:49.463556 | 2020-04-07T09:59:07 | 2020-04-07T09:59:07 | 253,850,929 | 2 | 0 | Apache-2.0 | 2020-04-07T16:28:26 | 2020-04-07T16:28:25 | null | UTF-8 | Python | false | false | 922 | py | import boto3
s3 = boto3.client('s3')
def on_event(event, ctx):
print(event)
def is_complete(event, ctx):
print(event)
# nothing to assert if this resource is being deleted
if event['RequestType'] == 'Delete':
return { 'IsComplete': True }
props = event['ResourceProperties']
bucket_name = props['Buc... | [
"37929162+mergify[bot]@users.noreply.github.com"
] | 37929162+mergify[bot]@users.noreply.github.com |
39df28df03435665a7bf280677b4063988e5ad01 | c5712ae1d10f36e1daf450d45e0b6c8728f3bee9 | /APIMV/wsgi.py | 28d5f09bc989dce5e01837b3e1c7f4eca4361c67 | [] | no_license | SalvadorLopezGomez/moviles_tercer_corte_api | fbaeb2833c1f078213f2129685875a6ffab7df9b | 79372dad80054b55139e775c33d11472e269fb1b | refs/heads/master | 2022-04-14T11:48:35.148048 | 2020-04-07T08:32:13 | 2020-04-07T08:32:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | """
WSGI config for APIMV 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/3.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTING... | [
"153192@ids.upchiapas.edu.mx"
] | 153192@ids.upchiapas.edu.mx |
9ee138622ad76dee330ccb93bd22a7d9a93ce566 | 25d69136cadc3755200160f9005ed17bb13409b8 | /django_1.5/lib/python2.7/site-packages/django_extensions/management/commands/print_user_for_session.py | 695c050bd8a2ceb8d5ee0834e810d6e9b69b9cdd | [] | no_license | davidmfry/Django_Drag_and_Drop_v1 | 4cc89e767c11313451c77dee6cd206a5ee724b8d | 5ec9c99acb127c04a241eb81d3df16533b4ce96f | refs/heads/master | 2016-09-03T06:52:52.925510 | 2013-08-12T21:48:33 | 2013-08-12T21:48:33 | 12,006,953 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,688 | py | from django.core.management.base import BaseCommand, CommandError
from django.contrib.auth.models import User
from django.contrib.sessions.models import Session
import re
SESSION_RE = re.compile("^[0-9a-f]{20,40}$")
class Command(BaseCommand):
help = ("print the user information for the provided session key. "
... | [
"david.fry.tv@gmail.com"
] | david.fry.tv@gmail.com |
ecc1d9c5b96ad1abb4fd71a03dabb273bc0e097f | d14b2593bad813163e8f2dd5f8996d036ae5576e | /DOC2Vec.py | eab8d0d53bfaa47fee0826018f3e0c7c54afab99 | [] | no_license | anbaee/my-P.hD-Code | 36f1f9c84249d98842cbcec1be0c6a9a1adffd1f | a61360aadd4269014af32836c0cc3297fca921a8 | refs/heads/master | 2021-06-25T00:05:47.965826 | 2021-01-22T05:31:38 | 2021-01-22T05:31:38 | 199,577,199 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,935 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Feb 29 06:58:39 2020
@author: Novin
"""
import pandas as pd
from gensim.test.utils import common_texts
from gensim.models.doc2vec import Doc2Vec, TaggedDocument
from sklearn.metrics import accuracy_score, f1_score
from sklearn.model_selection import train_test_split... | [
"noreply@github.com"
] | anbaee.noreply@github.com |
0701ad1ecfb95fdccd9375d3d3a6e07fe46f47a7 | a42c5a34aaabe8bc04bfd4104d16f7ca74afd733 | /numba_ized_split_1024_1/RFMC_stacking.py | 2311a4056e897f1a4f7e1e739c8ce1ef282d45b1 | [] | no_license | devkimg1/spin-glass-order | ab06e708a399f380ff303125785b47c507783673 | 3b49327b3308a94983e5fb5aee7abd29d9ddbde1 | refs/heads/main | 2023-04-21T00:37:53.442564 | 2021-05-20T13:12:17 | 2021-05-20T13:12:17 | 330,023,721 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,054 | py | '''
'''
import numpy as np
import pickle
import os
class RFMC():
model: None
energy_series: None
time_series: None
steps = int(0)
def __init__(self, model):
self.model = model
self.rng = np.random.default_rng()
#self.energy_series = np.empty(1,dtype='int')
#self.t... | [
"devkimg1@gmail.com"
] | devkimg1@gmail.com |
69f9b23509152d698020e0cd3642f5f72426c14a | 679fe3e21889a7f0cee2ab0caa9901859f756a82 | /python_scripts/get_temp.py | a872a02fa141a36605eac8fc614cb94bff05fcde | [] | no_license | pasoad/home-assistant-config | d5a1e059f6842bc39771bf98cfdb58bf383d98f1 | 8abfea21637878c946495196f98ab2e1f58251ac | refs/heads/main | 2023-02-14T01:37:57.761610 | 2021-01-12T21:35:06 | 2021-01-12T21:35:06 | 314,674,147 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,268 | py | ########################################################
### get temp for a room (default: home) ###
### Parameters: ###
### {"entity_id": "cuisine"} ###
########################################################
entity_id = data.get('entity_id').... | [
"root@core-ssh.local.hass.io"
] | root@core-ssh.local.hass.io |
2301371acf5e18404b4319b791c4a0680e2e82d7 | 9a9af1ccf2e09e53cf52653ad778c0585194d59a | /LoadData.py | ff91c1479d0d0a09e04d4c5a2e095ebc59528094 | [] | no_license | weiweijiuzaizhe/neural_factorization_machine | 1ff28589a2e2a56804a5c4a037ba3c97b51d547d | 34d3bae1e6e1acfb3015fa8fa0cebefcc5c33553 | refs/heads/master | 2021-01-23T02:40:56.766886 | 2017-09-05T06:43:02 | 2017-09-05T06:43:02 | 102,442,242 | 1 | 0 | null | 2017-09-05T06:21:35 | 2017-09-05T06:21:35 | null | UTF-8 | Python | false | false | 4,555 | py | '''
Utilities for Loading data.
The input data file follows the same input for LibFM: http://www.libfm.org/libfm-1.42.manual.pdf
@author:
Xiangnan He (xiangnanhe@gmail.com)
Lizi Liao (liaolizi.llz@gmail.com)
@references:
'''
import numpy as np
import os
class LoadData(object):
'''given the path of data, return ... | [
"tonyfd26@foxmail.com"
] | tonyfd26@foxmail.com |
1f817c1a4c68aded1a7453d94d21585b9cfcf484 | 2bdedcda705f6dcf45a1e9a090377f892bcb58bb | /src/main/output/lot/reason_right_java_home_group/nano/back/friend/eye_woman.py | 80dd2dbabd5e68ad4e9304971d2c2c0ec2b44984 | [] | 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 | 1,144 | py | # -*- coding: utf-8 -*-
import http.client, urllib.parse
# **********************************************
# *** Update or verify the following values. ***
# **********************************************
# Replace the subscriptionKey string value with your valid subscription key.
host = 'api.microsofttranslator.com'... | [
"soric.matko@gmail.com"
] | soric.matko@gmail.com |
98480ecb3b245791516942cd51aa2d2ac7ba7374 | 895a6bdccb009d4a12d0cf3187f8b7eec8231b98 | /app/auth/views.py | 3034125ef4a929ba6398de554fa11b2c40b823eb | [] | no_license | luke202001/supervisor_admin_web | d1022ddffad6702f3b21a613203c44aa857cdb00 | 176ee2691cb765896b7d05220c666b1c46c88aa4 | refs/heads/master | 2020-06-02T22:14:10.866752 | 2017-09-25T03:00:21 | 2017-09-25T03:00:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,137 | py | #!/usr/bin/env python
# coding=utf-8
from flask import url_for, redirect, render_template, flash
from flask_login import login_user, login_required, logout_user
from .models import User, singleton_admin
from . import auth
from .forms import LoginForm
from supervisior_lib.supervisor import singleton_supervisor as sup... | [
"pl01665077@163.com"
] | pl01665077@163.com |
2991297e99f021c28cdc081b5e023c710836abb8 | 1234b1ca300661391633438bf231bd80570e1a84 | /ListTest.py | 2abc1dc6d67a97a4cf99b528a4abd8e60e4c9212 | [] | no_license | Taohong01/OCR | e70780e4d876142bcfea1711422d58e4d1db3d7d | 39c798c4947344585d6b644a2d37fb7729b773e6 | refs/heads/master | 2020-06-14T17:28:46.822030 | 2017-11-28T04:46:31 | 2017-11-28T04:46:31 | 38,499,317 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 306 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Sep 25 09:30:46 2015
@author: Tao
"""
def extendList(val, list=[]):
list.append(val)
return list
list1 = extendList(10)
list2 = extendList(123,[])
list3 = extendList('a')
print "list1 = %s" % list1
print "list2 = %s" % list2
print "list3 = %s" % list3 | [
"taohong01@gmail.com"
] | taohong01@gmail.com |
962d14a6ac64178dbe6bdf09c2c85a8e1eb29226 | 44ab0c77d7af687b63fb403485f1c5ca39da57ec | /backend/blueprints/sites.py | 3b35604f4d01bcf14af49ab56ff2ec9311990a5e | [
"Apache-2.0"
] | permissive | dmitryro/flask-swagger-api | 22b3387b72880e16d75c523cce385bc0c9574cfb | f4449f998e6cd6ec7793304cdeea5c1f870938aa | refs/heads/master | 2022-03-05T04:03:44.751160 | 2020-06-09T03:35:15 | 2020-06-09T03:35:15 | 241,054,587 | 0 | 0 | null | 2022-02-10T22:55:20 | 2020-02-17T08:22:20 | TypeScript | UTF-8 | Python | false | false | 15,333 | py | #################
#### imports ####
#################
from datetime import datetime
from flask import Blueprint, Flask, json, jsonify, render_template, request, url_for, make_response
from flask import current_app
from flasgger import Swagger
from flask_api import status # HTTP Status Codes
from werkzeug.local impor... | [
"dmitryro@gmail.com"
] | dmitryro@gmail.com |
81e6a5da98a24959afbf6675d09f710eb53bf804 | ec5e752eea3fa9becb613a4b71e5a49066536df4 | /Play-ON/store.py | 1d27f0ffa7ed87324aeb1fd8470341d9eeced01c | [] | no_license | Yeshwanth-1985/play-on | eab0afdaebdf43d1dd95e0491635168808f53940 | 2cbc929f2b727a005ecf09a7a7a1cccfeed38ae2 | refs/heads/master | 2023-06-11T02:08:28.534677 | 2021-07-03T13:33:55 | 2021-07-03T13:33:55 | 376,204,894 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 33,503 | py |
from flask import Flask, render_template, request, session, redirect, url_for
from flask_sqlalchemy import SQLAlchemy
from sqlalchemy import or_
from flask_mail import Mail
from werkzeug.utils import secure_filename
from datetime import datetime
import json
import math
import os
import re
local_server = True
with op... | [
"chikkiyeshwanth@gmail.com"
] | chikkiyeshwanth@gmail.com |
f2522ec63de771ae827c9c98f5d1a4d6a50018d2 | 65c81234539ce28ce16bc922b866bdc33b5577af | /4kurs/prog/Проект/eve-main/run.py | d8746712309b9b5e2b70cf702bf8050db9aa62b8 | [] | no_license | Serega89Kh/Serega89Kh.github.io | 7c5ccf73b92540714ae91a38397cca042caa4207 | 1a930146111f4a38494a92bc40f04f2850e5d5fe | refs/heads/master | 2021-06-25T17:36:34.002657 | 2021-06-12T20:39:20 | 2021-06-12T20:39:20 | 148,633,512 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,685 | py | from eve import Eve
from flask import Flask, render_template, request, redirect
import subprocess
name_id = {}
planned = []
inprogress = []
def create_id(resource,items):
item = items[0]
first = item.get('firstname')
last = item.get('lastname')
id = str(item.get('_id'))
if resource ==... | [
"noreply@github.com"
] | Serega89Kh.noreply@github.com |
9566f13caef2578de4f77597644c40f62124c7c5 | a3b2c7069c9fab8632b0568db5ab79aceacf9c9c | /devel/lib/python2.7/dist-packages/rqt_shell/__init__.py | f1db1c731717b00d1205fdcdaf8f8c96af98c62c | [] | no_license | tbake0155/bluedragon_workspace | 08ed85d9de29c178704bd3f883acafae473b175e | 384d863e00689cf40cde4933447210bbb1ba8636 | refs/heads/master | 2021-05-12T01:35:45.896266 | 2018-01-15T14:59:39 | 2018-01-15T14:59:39 | 117,558,143 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,038 | py | # -*- coding: utf-8 -*-
# generated from catkin/cmake/template/__init__.py.in
# keep symbol table as clean as possible by deleting all unnecessary symbols
from os import path as os_path
from sys import path as sys_path
from pkgutil import extend_path
__extended_path = "/home/tim/catkin_ws/src/rqt_common_plugins/rqt_... | [
"tbake0155@gmail.com"
] | tbake0155@gmail.com |
7de9d2e9c1df80fc40ceb8a1bc81a639a522eb5d | 90e39e45d469bb5dd9cb36805a88c97f41c147de | /3-deploy_web_static.py | 5b1b40b59f0b93f01a9093e1b1ba1100524e7afe | [] | no_license | Noeuclides/AirBnB_clone_v2 | 372b3d01ba76d41a79dca166d6ca7d471749a07d | 13fac5127af0149e7bef9a94b70e6d2746eeb4fd | refs/heads/master | 2020-07-03T19:16:10.404783 | 2019-09-11T00:42:29 | 2019-09-11T00:42:29 | 202,020,044 | 0 | 2 | null | 2019-08-19T03:08:39 | 2019-08-12T22:44:22 | Python | UTF-8 | Python | false | false | 1,793 | py | #!/usr/bin/python3
from datetime import datetime
from fabric.api import *
from os import path
'''automatize with fabric
'''
'''env.user = 'localhost'
'''
env.hosts = ['35.231.53.89', '35.190.176.186']
def do_pack():
'''making a pack on web_static folder
'''
now = datetime.now()
file = 'web_static_' +... | [
"euclidesnoeuclides@gmail.com"
] | euclidesnoeuclides@gmail.com |
41b805521cf145dafcff051be669ec825cf821ec | 19926f1b5672465d1454d225ea937056115f5828 | /bot/utils/HTML_photo/pyppeteer/pyppeteer/input.py | 0659c5efde5ea78799d0c78808f6506c4f8c0df9 | [
"Apache-2.0",
"MIT"
] | permissive | askador/Homework-Scheduler | ff974239417ff07599f8170de29e897fd769850b | 985df5840b5abbb30ce9da381f8d5406e2b3a1f2 | refs/heads/main | 2023-06-02T21:33:55.283968 | 2021-06-23T12:09:53 | 2021-06-23T12:09:53 | 379,587,170 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,122 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Keyboard and Mouse module."""
import asyncio
from typing import Any, Dict, TYPE_CHECKING
from bot.utils.HTML_photo.pyppeteer.pyppeteer.connection import CDPSession
from bot.utils.HTML_photo.pyppeteer.pyppeteer.errors import PyppeteerError
from bot.utils.HTML_photo.py... | [
"streltsov2609@gmail.com"
] | streltsov2609@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.