blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 777
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 149
values | src_encoding stringclasses 26
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 3 10.2M | extension stringclasses 188
values | content stringlengths 3 10.2M | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3e4617ee8705f346ceb4299fc5c2d3bf70e9fafe | 153597085eebdc2f6839add02f2f6e41973aa279 | /savanna/openstack/common/rpc/amqp.py | 7ab565270ec12e295b78167ca5e41c64eeff5ee6 | [
"Apache-2.0"
] | permissive | ruben11/savanna | de5b29eaa5ce864158cb773f12e2cbfe5a5a6cec | b88d4a4e9acda6c61fab6c64e4fa855fd2524da3 | refs/heads/master | 2020-12-30T18:58:30.638782 | 2013-08-19T11:19:51 | 2013-08-19T11:19:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,705 | py | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2010 United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration.
# All Rights Reserved.
# Copyright 2011 - 2012, Red Hat, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
... | [
"slukjanov@mirantis.com"
] | slukjanov@mirantis.com |
dc5855fcf8080af755c381eb67cbd235c24d0dde | 47c30f754bd3ebe95306cff4a21507f2169dcf49 | /common_dibbs/clients/oma_client/models/__init__.py | 534eeed32db2b31bf33333192ba3f5d8418a6600 | [] | no_license | DIBBS-project/common-dibbs | 2f897ecd8faec7373d06731543eab37d270fbc5c | 14c261dd0bab66774a10fc08db7551a69ba408a5 | refs/heads/master | 2020-09-21T19:29:30.946209 | 2017-03-16T16:06:22 | 2017-03-16T16:06:22 | 67,717,103 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,159 | py | # coding: utf-8
"""
Operation Manager Agent API
Interact with deployed Cloud Computing resources via API.
OpenAPI spec version: 0.1.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this fil... | [
"jonathan.pastor@me.com"
] | jonathan.pastor@me.com |
321139cf535dbef1ad1be2d5fd5d7fc9f6370c9a | 7a1b08c64b29522d4bbb913475275c1bc8ad61a4 | /allergy/allerpatient16.py | 181cb5839a8a0967b38904170ad6cb7c04b4d3d8 | [
"MIT"
] | permissive | erichilarysmithsr/time-track | 8f84d4cc92cebaedce550b3741982d204e734a6c | dc0a7b63c937d561309f9b1c84af65fb581a8e18 | refs/heads/master | 2023-03-27T08:07:46.717221 | 2021-03-30T16:45:50 | 2021-03-30T16:45:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,021 | py | #!/usr/bin/python3
# -*- coding: utf-8 -*-
from tkinter import *
from tkinter import messagebox
import os
gui=Tk()
gui.title("Enter Allergy")
gui.configure(bg='cyan')
#gui.geometry('250x200')
def get(Allpatient, entryall):
MsgBox = messagebox.askyesno('Save data', 'Data saved !')
if MsgBox == 1:
Al... | [
"philogenie@protonmail.com"
] | philogenie@protonmail.com |
37b83fdd91d569750db5a305c2c8228260085a28 | fe7b700cfe3c06d89d18ffad3eeeb3b8220c1759 | /pipeline/feature-validation/exp-4/pipeline_validation_patients.py | d1f10697b86b762ca9f2c92859de31c907b51d12 | [
"MIT"
] | permissive | DivyaRavindran007007/mp-mri-prostate | 928684a607cf03a2d76ea3e3e5b971bbd3a1dd01 | bd420534b4b5c464e5bbb4a07eabdc8724831f8a | refs/heads/master | 2021-06-08T21:09:15.850708 | 2016-10-20T16:08:57 | 2016-10-20T16:08:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,076 | py | """
This pipeline is used to report the results for the ADC modality.
"""
import os
import numpy as np
import matplotlib as mpl
mpl.use('Agg')
import matplotlib.pyplot as plt
import seaborn as sns
#sns.set(style='ticks', palette='Set2')
current_palette = sns.color_palette("Set2", 10)
from scipy import interp
from s... | [
"glemaitre@visor.udg.edu"
] | glemaitre@visor.udg.edu |
10b2891feb7c89ae7a02e0071edfa0e370b15242 | 906ea12bcdbe3ea1bf39f489ae4263b3c3cf30b8 | /04_april/26_secondLastElemList.py | ac05ff7b29a4ac9045a10adc9618475818d47fc3 | [] | no_license | dfeusse/codeWarsPython | da14802ef7986390331c5279cf3cb46eeb3fe853 | c29de0f48ab89de88106c0504f734df328982bae | refs/heads/master | 2016-08-11T11:41:34.501979 | 2015-10-25T02:30:48 | 2015-10-25T02:30:48 | 36,802,152 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 153 | py | def penultimate(a):
# implement here
return a[-2]
'''
def penultimate(a):
# implement here
try:
return a[-2]
except:
return None
''' | [
"dfeusse@gmail.com"
] | dfeusse@gmail.com |
16e77cfe66a50dfa56dcdaa6ea6f032343e3f1dc | 07b7d6244732a3fd52d431e5d3d1ab7f651b4ab0 | /src/exemplos/03_Fluxo/02_Repeticao/00-while.py | d03d6f30a47fdcf34104e5a73cacbe0b99553680 | [] | no_license | GTaumaturgo/CIC-APC | 19832050efe94dd29a78bde8b6e121b990ccd6b9 | cc3b7b132218855ad50ddbe63bbdd6f94f273c54 | refs/heads/master | 2020-04-05T22:54:13.414180 | 2017-01-18T17:20:25 | 2017-01-18T17:20:25 | 42,275,384 | 0 | 0 | null | 2016-04-10T14:25:16 | 2015-09-10T23:05:54 | C | UTF-8 | Python | false | false | 524 | py | # -*- coding: utf-8 -*-
## @package: 00-while.py
# @author: Guilherme N. Ramos (gnramos@unb.br)
# @disciplina: Algoritmos e Programação de Computadores
#
# Exemplo do laço de repetição WHILE. */
PICANHA = 'free(B01)'
def sirva(opcao):
'''Mostra o que está sendo servido.'''
print('Servindo %s.' % opca... | [
"ramos@gnramos.com"
] | ramos@gnramos.com |
c3b250120f944c7bc5e4a7ef0246c96772d17363 | 70805270506a3e4505fcd56a5d878ae29ca55068 | /nam/config/__init__.py | d4d45f8cae99568b0321307fc302b0a697c62c20 | [
"MIT"
] | permissive | AmrMKayid/nam | 894277764c8147f166eba23ab563fc78192bb8e2 | fc2da75ba008c4ef02a83747f2116036fa6fec46 | refs/heads/main | 2023-08-04T00:17:28.437691 | 2021-09-21T18:28:30 | 2021-09-21T18:28:30 | 311,692,862 | 45 | 20 | MIT | 2021-09-21T18:19:59 | 2020-11-10T14:59:51 | Jupyter Notebook | UTF-8 | Python | false | false | 55 | py | from .base import Config
from .default import defaults
| [
"amrmkayid@gmail.com"
] | amrmkayid@gmail.com |
8fa84a8d9292bb63aa643b33ac2af472b4400b75 | 9905901a2beae3ff4885fbc29842b3c34546ffd7 | /nitro-python/build/lib/nssrc/com/citrix/netscaler/nitro/resource/config/lsn/lsngroup_binding.py | ef4c5d7769f1acfdc715d702f9e68179cd5fd931 | [
"Python-2.0",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | culbertm/NSttyPython | f354ebb3dbf445884dbddb474b34eb9246261c19 | ff9f6aedae3fb8495342cd0fc4247c819cf47397 | refs/heads/master | 2020-04-22T17:07:39.654614 | 2019-02-13T19:07:23 | 2019-02-13T19:07:23 | 170,530,223 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,404 | py | #
# Copyright (c) 2008-2016 Citrix Systems, Inc.
#
# 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 l... | [
"mdculbert@marathonpetroleum.com"
] | mdculbert@marathonpetroleum.com |
c7878b62d284502e225c97d58bcf28ba19a87f30 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03151/s241282840.py | 195f137ed1190a37b85bc39bda9abb8ec0812035 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 370 | py | n=int(input())
a=list(map(int,input().split()))
b=list(map(int,input().split()))
if sum(a)<sum(b):
print(-1)
exit()
c=[]
ans=0
count=0
for i in range(n):
c.append(a[i]-b[i])
if c[i]<0:
ans+=1
count+=c[i]
#print(count)
c.sort(reverse=True)
#print(ans)
i=0
while count<0:
count+=c[i]
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
985397149042d0bf5a644e137d13233dad83251b | 23165420a2ced2306c1154cbd479e67006860e87 | /Algorithms/排序算法.py | 8a06be98553530a853e0fce119af4f6dd93bb52e | [] | no_license | pppineapple/LeetCode | 8a446a65f99e2f2c572696caca2550c6e3bd8acc | e41a86e9d4615079247ef3ef9a35537f4b40d338 | refs/heads/master | 2020-04-06T14:54:02.475837 | 2018-11-19T09:38:56 | 2018-11-19T09:38:56 | 157,558,169 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,673 | py | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
Created on Thu Sep 27 22:42:08 2018
@author: pineapple
"""
'''
快排
'''
def helpquckersort(alist, first, last):
pivotvalue = alist[first]
left = first + 1
right = last
stop = False
while not stop:
while left <= right and alist[left] <=... | [
"504434414@qq.com"
] | 504434414@qq.com |
628952684958e1026f4ad1e0dc43bf935aa26d6e | dfa03a0e00719395e760399630f03d8b42ec9e4c | /yolo/vedanet/network/__init__.py | 5f06c01556b68b29cd88e1dced9729fb794c50ea | [
"MIT"
] | permissive | CuongNguyen218/ObjectDetection-OneStageDet | 2b69772975dc03ebfa680b3c0acfc7cd72316b95 | 60efe8b0ee6782b2aea20a32264b2ce1fc21901f | refs/heads/master | 2020-09-08T16:19:38.593367 | 2019-11-12T09:49:56 | 2019-11-12T09:49:56 | 221,181,969 | 0 | 0 | MIT | 2019-11-12T09:42:04 | 2019-11-12T09:42:04 | null | UTF-8 | Python | false | false | 302 | py | """
Lightnet Models Module |br|
This module contains networks that were recreated with this library.
Take a look at the code to learn how to use this library, or just use these models if that is all you need.
"""
# layer
from . import layer
# backbone
from . import backbone
# head
from . import head
| [
"xyc_sjtu@163.com"
] | xyc_sjtu@163.com |
a87d53b2d3f3bdb4312a30a393c32c88acfb71b9 | 385332aa8f704927d002e63520437690895a0425 | /20200618-selenium/tests/test_hackernews.py | f0165074a01eb5dbbafc36a48d8abb5aedbd2f92 | [] | no_license | tocodeil/webinar-live-demos | 358eaf4305fd23477eb5c454c347d1fc241df8b4 | c561eaaf95fafa0133898d81fc73722d2929a64f | refs/heads/master | 2023-03-17T10:50:16.329795 | 2022-11-17T07:58:38 | 2022-11-17T07:58:38 | 227,549,887 | 6 | 18 | null | 2023-03-04T19:20:39 | 2019-12-12T07:49:35 | JavaScript | UTF-8 | Python | false | false | 204 | py |
def test_hackernews_homepage_has_30_stories(browser):
browser.get('https://news.ycombinator.com/')
stories = browser.find_elements_by_css_selector('a.storylink')
assert len(stories) == 30
# | [
"ynonperek@gmail.com"
] | ynonperek@gmail.com |
59d0cf051e0f6d0eff0281d1e233cd9a48a6edc2 | 4421cdef9d23204d392726db4e3886b8aec3072d | /Django/SEV/MAMARA/views.py | 67ce148ce802f1fd0b0538ec92a76184ee723f92 | [] | no_license | Sanketdave12/PRACTICE | f38b8eae569ee670db55610202ef6f3e60fade87 | 0f71359cf5326be73b3d9d4b1219bea4832cc194 | refs/heads/master | 2022-12-27T08:08:45.953842 | 2020-09-18T17:31:23 | 2020-09-18T17:31:23 | 296,587,205 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 825 | py | from django.shortcuts import render
from django.views.generic.list import ListView
from django.views.generic.detail import DetailView
from MAMARA.models import notice, Profile
from django.utils.decorators import method_decorator
from django.contrib.auth.decorators import login_required
from django.db.models import Q
... | [
"sddave1998@gmail.com"
] | sddave1998@gmail.com |
705d7e77deae09b85fce18c2634b9b9bd3b792e2 | 6c58da2c54a3d35273e7984313d181f1da9981fc | /Courses/Courses/Courses/settings.py | f1464c26d0cd043c200d6a5f68678e364e1478a3 | [
"MIT-0"
] | permissive | py1-10-2017/rgero215_PY1-10-2017 | e582cb12cc63f84b1c0c14d09a922cb6cb228016 | f455b335ec9c8c850571f3a75dcd95759b4cfdad | refs/heads/master | 2021-09-04T03:23:48.062326 | 2018-01-14T21:07:26 | 2018-01-14T21:07:26 | 105,612,652 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,117 | py | """
Django settings for Courses project.
Generated by 'django-admin startproject' using Django 1.10.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.10/ref/settings/
"""
import os
... | [
"rgero215@gmail.com"
] | rgero215@gmail.com |
0308e77b25dc4809425b55dc2ab8397b8462f90a | 321b4ed83b6874eeb512027eaa0b17b0daf3c289 | /239/239.sliding-window-maximum.251781894.Accepted.leetcode.py | f207910863dd1c77d41a64c818860f3813081d4a | [] | no_license | huangyingw/submissions | 7a610613bdb03f1223cdec5f6ccc4391149ca618 | bfac1238ecef8b03e54842b852f6fec111abedfa | refs/heads/master | 2023-07-25T09:56:46.814504 | 2023-07-16T07:38:36 | 2023-07-16T07:38:36 | 143,352,065 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 428 | py | from collections import deque
class Solution(object):
def maxSlidingWindow(self, nums, k):
q = deque()
max_window = []
for i, num in enumerate(nums):
while q and nums[q[-1]] < num:
q.pop()
q.append(i)
if q[0] <= i - k:
q.p... | [
"huangyingw@gmail.com"
] | huangyingw@gmail.com |
acd4d44746dba4cdb87a94893463dd2029d313af | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/domain/AlipayBossBaseProcessTaskTakeModel.py | 02981c77c60c448dced40339df45c54c10e31f37 | [
"Apache-2.0"
] | permissive | alipay/alipay-sdk-python-all | 8bd20882852ffeb70a6e929038bf88ff1d1eff1c | 1fad300587c9e7e099747305ba9077d4cd7afde9 | refs/heads/master | 2023-08-27T21:35:01.778771 | 2023-08-23T07:12:26 | 2023-08-23T07:12:26 | 133,338,689 | 247 | 70 | Apache-2.0 | 2023-04-25T04:54:02 | 2018-05-14T09:40:54 | Python | UTF-8 | Python | false | false | 2,756 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.constant.ParamConstants import *
class AlipayBossBaseProcessTaskTakeModel(object):
def __init__(self):
self._memo = None
self._node = None
self._operator_id = None
self._operator_work_no = None
... | [
"jishupei.jsp@alibaba-inc.com"
] | jishupei.jsp@alibaba-inc.com |
a2da3a0402b81159de90a41333fe5fe888fea126 | 6f1034b17b49f373a41ecf3a5a8923fb4948992b | /test/data/measurement_script.py | 70ac3cf24786d6b323556d8a68ff46eaaff8bf88 | [
"Apache-2.0"
] | permissive | NMGRL/pychron | a6ec1854488e74eb5d3ff53eee8537ecf98a6e2f | 8cfc8085393ace2aee6b98d36bfd6fba0bcb41c6 | refs/heads/main | 2023-08-30T07:00:34.121528 | 2023-06-12T17:43:25 | 2023-06-12T17:43:25 | 14,438,041 | 38 | 28 | Apache-2.0 | 2023-08-09T22:47:17 | 2013-11-15T23:46:10 | Python | UTF-8 | Python | false | false | 3,841 | py | # !Measurement
'''
'''
# counts
MULTICOLLECT_COUNTS = 4
# baselines
BASELINE_COUNTS = 2
BASELINE_DETECTOR = 'H1'
BASELINE_MASS = 39.5
BASELINE_BEFORE = False
BASELINE_AFTER = True
# peak center
PEAK_CENTER_BEFORE = False
PEAK_CENTER_AFTER = False
PEAK_CENTER_DETECTOR = 'H1'
PEAK_CENTER_ISOTOPE = 'Ar40'
# equilibrat... | [
"jirhiker@gmail.com"
] | jirhiker@gmail.com |
ca47278145b54f9801ee573eebe45eab90b05591 | 012ab15bbe72af80c91c9d7c0da7f099224a10a3 | /test/functional/sapling_malleable_sigs.py | d3679ed00011923e84fc2869c434c357805913d1 | [
"MIT"
] | permissive | gimogo/Eloncoin | 24d7dcb04553c75be69c399192c876263aacb7b9 | b19c698ac7d2c4313914f47dc43e26a7b4f323d9 | refs/heads/main | 2023-06-12T12:51:35.211011 | 2021-07-07T17:19:14 | 2021-07-07T17:19:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,820 | py | #!/usr/bin/env python3
# Copyright (c) 2018 The Zcash developers
# Copyright (c) 2020The PIVX developers
# Copyright (c) 2021- The ELONCOIN developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or https://www.opensource.org/licenses/mit-license.php .
from test_framework.test_fram... | [
"alonewolf2ksk@gmail.com"
] | alonewolf2ksk@gmail.com |
5e33d928a7edaec8e6295d3a3e1b9ea8347730ae | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_19574.py | f58b43d02e252b071e61f886426863f55cfd236f | [] | no_license | AK-1121/code_extraction | cc812b6832b112e3ffcc2bb7eb4237fd85c88c01 | 5297a4a3aab3bb37efa24a89636935da04a1f8b6 | refs/heads/master | 2020-05-23T08:04:11.789141 | 2015-10-22T19:19:40 | 2015-10-22T19:19:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 110 | py | # How to find out which VM i have in my Python installation?
import platform
platform.python_implementation()
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
7dfd891247f6849179e7419bd13850cd0a858b0e | 8ba5c8c068daa173c5b773f1fb3d63819036bba4 | /app/interactive_app.py | 34e7fd129d91f976903de9fca66abcb0cb4a1e59 | [
"MIT"
] | permissive | tovacinni/neural-fluid-fields | 2d7ed387d7587f82e1f73d62e2a24aed8298d716 | 354927f224b3a87fb44e4b71a1e49261bd7b631e | refs/heads/master | 2023-05-24T04:11:57.364186 | 2021-12-13T18:59:50 | 2021-12-13T18:59:50 | 432,305,923 | 28 | 0 | MIT | 2021-12-05T03:23:37 | 2021-11-26T21:32:53 | Python | UTF-8 | Python | false | false | 17,249 | py | # The MIT License (MIT)
#
# Copyright (c) 2021
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of
# this software and associated documentation files (the "Software"), to deal in
# the Software without restriction, including without limitation the rights to
# use, copy, modify, merge, pu... | [
"tovacinni@gmail.com"
] | tovacinni@gmail.com |
f61ccb06123de75a230c766b7db738de2a9be101 | 361e0ef132f8689dfa0890fdfcf7d5794c2b6915 | /ds_and_algos/search/find_highest_mountain_peak.py | 170411e2ef824fe82be5baa8fb2540b092c83883 | [] | no_license | BMariscal/study-notebook | 53751460d837d910b9cf286674e7739815588d9e | 0ff851359cf91519c3ee2adfd704494ed08b8d6d | refs/heads/master | 2020-08-25T05:53:45.061917 | 2020-08-12T20:15:08 | 2020-08-12T20:15:08 | 216,971,214 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 917 | py |
# O(Logn)
# A binary search based function
# that returns index of a peak element
def find_peak(arr, low, high, n):
# Find index of middle element
# (low + high)/2
mid = low + (high - low) // 2
# Compare middle element with its
# neighbors (if they exist)
if ((mid == 0 or arr[mid - 1] <= arr[m... | [
"BriceidaMariscal@gmail.com"
] | BriceidaMariscal@gmail.com |
00f17e94a2b3f7f83a4740a382a5905d599f2866 | d1969a22afb7adda791caa4edf464dad02b684c0 | /apps/edu/admin.py | 92902f1093596f646eb9a4e3cfcdda29a14ceb10 | [
"MIT"
] | permissive | local-host-club/cms | 11d4ea1105dabc6d0a60b935484b5f9eb2ec1da9 | 136fb075f11011ea77672b3468f69262a43eb500 | refs/heads/master | 2020-07-02T17:09:36.135855 | 2016-11-28T13:31:11 | 2016-11-28T13:31:11 | 74,293,699 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 250 | py | from django.contrib import admin
from apps.edu.models import *
admin.site.register(CompetenciaArea)
admin.site.register(Competencia)
admin.site.register(Nivel)
admin.site.register(Indicador)
admin.site.register(Evaluacion)
admin.site.register(Nota)
| [
"jinchuika@gmail.com"
] | jinchuika@gmail.com |
0ff44db4b53c4793eb6e5446c2e4dabf810f57ef | a60135e0a647722fb52d41c58f04326b20cd4b3e | /blog/migrations/0001_initial.py | c97d8bc92d658913ff66fa2cdc6b7e8403ae2ac6 | [] | no_license | Kyeza/Django-Blog-Web-App | 961116a7ccd7fefae8d12def9dfac534731b4cd5 | 8b275b3712c110bfff1efcb23e90182d9b4ba860 | refs/heads/master | 2020-04-25T13:22:18.414056 | 2019-02-26T23:25:12 | 2019-02-26T23:25:12 | 157,757,352 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 907 | py | # Generated by Django 2.1.7 on 2019-02-26 12:19
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUT... | [
"kyezaarnold63@gmail.com"
] | kyezaarnold63@gmail.com |
e038281f40a9cbb0e2a85f96c0aca7d4126a645d | ac1fdf53359b53e183fb9b2602328595b07cf427 | /ParlAI/parlai/tasks/empathetic_dialogues/build.py | e54db417092e94b274ccb80e0d2aa6b2da650693 | [] | no_license | Ufukdogann/MasterThesis | 780410c5df85b789136b525bce86ba0831409233 | b09ede1e3c88c4ac3047800f5187c671eeda18be | refs/heads/main | 2023-01-24T18:09:52.285718 | 2020-11-27T16:14:29 | 2020-11-27T16:14:29 | 312,416,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:557592977a2506b79d232d0c9318c59a298878bd33fa98e91dc6f059dd9af303
size 1216
| [
"134679852Ufuk*"
] | 134679852Ufuk* |
5d084f800ef7ecea0820edbe0c059c29e88780d8 | ac2eef80c6b8678882c98befe418d9228ee0a2a7 | /tests/unit/test_utils.py | da9642952814397cbac3728705e8eafeef4b94e9 | [] | no_license | dustinfarris/pyrax | 3188fec1b20911beb454758b041470879e59a359 | 29718218cde10fb04a140020cfe1b693b6170d37 | refs/heads/master | 2020-12-25T12:40:57.521043 | 2013-02-12T20:44:33 | 2013-02-12T20:44:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,258 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import datetime
import hashlib
import os
import StringIO
import sys
import unittest
from mock import patch
from mock import MagicMock as Mock
import pyrax.utils as utils
import pyrax.exceptions as exc
from tests.unit import fakes
class UtilsTest(unittest.TestCase):
... | [
"ed@leafe.com"
] | ed@leafe.com |
6d13bb100b65fc7b120099b6a04eaa8ccdd1e0cd | 79f92bc98960a361f4dffba2199027847463ddd7 | /word_frequency_api/apps.py | 3c428fc3141cffd206fac07dfe8ef17a56abe4f8 | [] | no_license | msadour/word_frequency | 61d1eb3cdc0f5e6dfc4110ca5238e097c0cd3764 | a9754ffbf6bc52eda707160ca509768bef08833a | refs/heads/master | 2023-02-13T12:39:30.388878 | 2021-01-10T11:25:34 | 2021-01-10T11:25:34 | 328,226,211 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 170 | py | """Apps module."""
from django.apps import AppConfig
class WordFrequencyApiConfig(AppConfig):
"""Class WordFrequencyApiConfig."""
name = "word_frequency_api"
| [
"sadour.mehdi@gmail.com"
] | sadour.mehdi@gmail.com |
489f33e3d0f51df31730a02ee45d3df9ea2e54aa | 2bdedcda705f6dcf45a1e9a090377f892bcb58bb | /src/main/output/part/python_game_woman/air_team_eye.py | b092a59c17e3ff180b96f97c5199b3d9231b53b5 | [] | no_license | matkosoric/GenericNameTesting | 860a22af1098dda9ea9e24a1fc681bb728aa2d69 | 03f4a38229c28bc6d83258e5a84fce4b189d5f00 | refs/heads/master | 2021-01-08T22:35:20.022350 | 2020-02-21T11:28:21 | 2020-02-21T11:28:21 | 242,123,053 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,348 | py | using System;
using System.IO;
using System.Text;
using System.Threading.Tasks;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using Newtonsoft.Json;
using Microsoft.Extensions.Configuration;
using System.Linq;
/* in this repo */
using dfbStartup;
namespace cog_console
{
... | [
"soric.matko@gmail.com"
] | soric.matko@gmail.com |
04e01661aa2d540993e644027e1791859de1016e | ba157236151a65e3e1fde2db78b0c7db81b5d3f6 | /Array Problems/Sort Array By Parity II.py | 62e1786e3d654a214b2f0c9c2f9700cbcc95aa13 | [] | no_license | JaberKhanjk/LeetCode | 152488ccf385b449d2a97d20b33728483029f85b | 78368ea4c8dd8efc92e3db775b249a2f8758dd55 | refs/heads/master | 2023-02-08T20:03:34.704602 | 2020-12-26T06:24:33 | 2020-12-26T06:24:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 547 | py | class Solution(object):
def sortArrayByParityII(self, A):
n = len(A)
odd = []
even = []
for each in A:
if each % 2 == 0:
even.append(each)
else:
odd.append(each)
final = [0]*n
... | [
"spondoncsebuet@gmail.com"
] | spondoncsebuet@gmail.com |
d0f5513fb1aec1eff0552ea13bdfcc00fb9411c1 | 249fa9191a8bec83fb42490c3d3fda79fd56db79 | /account_tool_kit/account_tool_kit/report/sample_report/sample_report.py | 2f986a8b1efb4b98cd1444f0b5bb7fee92648cec | [
"MIT"
] | permissive | nivedita05/account_tool_kit | acd7c30e1d3596c2817b1ea226c8dd80ea51275f | 45af6867111a4dfa4b02d0fa23f3187dc69fcdad | refs/heads/master | 2021-01-24T08:57:30.415091 | 2017-08-03T06:05:43 | 2017-08-03T06:05:43 | 93,399,980 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,066 | py | # Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
# License: GNU General Public License v3. See license.txt
from __future__ import unicode_literals
import frappe
from frappe.utils import flt, getdate, cstr
from frappe import _
from erpnext.accounts.utils import get_account_currency
def execute(filt... | [
"nivedita12011990@gmail.com"
] | nivedita12011990@gmail.com |
15dc0a0a400ffee7117c7c0a7c7cd5941726679d | d3fa8ded9d393ba9b03388ba7f05fc559cf31d1e | /Codes/antman/agent/framework/actions/reporter.py | 79cd08c782df9e6cf63080d8620605fd8f0e8c2a | [] | no_license | lengxu/YouYun | e20c4d8f553ccb245e96de177a67f776666e986f | b0ad8fd0b0e70dd2445cecb9ae7b00f7e0a20815 | refs/heads/master | 2020-09-13T22:30:49.642980 | 2017-11-27T03:13:34 | 2017-11-27T03:13:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,389 | py | # coding: utf-8
import os
from tornado import gen
from framework.task.logger import TaskLogger, EngineType
class Reporter(object):
def __init__(self, task_id, logger, tenant=None, asynchronous=True):
self.logger = logger
self.task_id = task_id
if asynchronous:
self.log_ok = s... | [
"smartbrandnew@163.com"
] | smartbrandnew@163.com |
1c381c134e4baa796353877c4b8843b5d3cb0380 | 45f75e4ec6a8880d12707c1887d3b6f0c1630546 | /howtolens/chapter_2_lens_modeling/scripts/tutorial_8_results.py | 63d3741071ad4d0957460d505cf18fe3cfde439c | [
"MIT"
] | permissive | carlosRmelo/PyAutoLens | 45861eb31f5b9cd50d133a29f279ed0b3c4eaaf3 | 8c3d59cb990d8a1ddc6ed4008893ab312bd07b97 | refs/heads/master | 2022-12-07T23:31:07.618110 | 2020-08-25T18:10:31 | 2020-08-25T18:10:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,024 | py | # %%
"""
Tutorial 8: Results
===================
Once a phase has completed running, it results a 'Result' object, which in the previous tutorials we used to plot
the maximum log likelihood fit of the modoel-fits. Lets take a more detailed look at what else the results contains.
"""
# %%
from autoconf import conf
imp... | [
"james.w.nightingale@durham.ac.uk"
] | james.w.nightingale@durham.ac.uk |
3049138ba74ea34577278c06c9661481eed0cbda | 96e5dff6045fb7f9280a2e273116d7d7e29fa93d | /myproj/imageTagging/scripts/interfaceUtils.py | ce833eebd07f6b80e7944b799f98dc337e767094 | [] | no_license | ljh1324/PythonImageTaggingServer | e10fff818792141cf7484ce1d34cbe15f1211e34 | 7ccf06c4bb49283a1c8eb975d13eabe0b6143a93 | refs/heads/master | 2020-03-27T08:10:26.359408 | 2018-11-10T11:51:21 | 2018-11-10T11:51:21 | 146,227,211 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 756 | py | ''' -------------------------------------------
interfaces, etc
------------------------------------------- '''
import tensorflow as tf
import sys
DIVISION_LINE_LENGTH = 62
def showDivision():
print('=' * DIVISION_LINE_LENGTH)
def showDivisionSingle():
print('-' * DIVISION_LINE_LENGTH)
def showError(msg)... | [
"leejeonghwan1324@gmail.com"
] | leejeonghwan1324@gmail.com |
23ea11d5ddf184da4a81595e4ae76df5e61307dc | 329132ae16449417e959cd7bf5a638e9fd155067 | /爬虫4day/tenxunzhaopingSpider/tenxunzhaopingSpider/spiders/tencent.py | c3d065af0c0c80a14879b72a3aadf46b45c0cc18 | [] | no_license | rj8928/Spider | c9e635d8b46dbc5d26a4b13128c277b3ff2f2f80 | 2e4fb691637a542452028fa92ac490129d0eebba | refs/heads/master | 2021-01-16T19:36:18.902753 | 2017-08-14T12:28:03 | 2017-08-14T12:28:03 | 100,179,329 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,413 | py | # -*- coding: utf-8 -*-
import scrapy
from tenxunzhaopingSpider.items import TenxunzhaopingspiderItem
class TencentSpider(scrapy.Spider):
name = 'tencent'
allowed_domains = ['tencent.com']
url = "http://hr.tencent.com/position.php?&start="
offset = 0
start_urls = [url + str(offset)]
def parse... | [
"rj8928@gmail.com"
] | rj8928@gmail.com |
83a2f0c13bee2bc5cb39dd0c5c334d662da33f00 | 9fb1c85a6d39c08e2a3cc235335bc482ad909b71 | /tests/providers/aws/services/ecs/ecs_task_definitions_no_environment_secrets/ecs_task_definitions_no_environment_secrets_test.py | 40f3c4fe46cbc4fe6200382e132ece68a6eb4b60 | [
"Apache-2.0"
] | permissive | muharihar/prowler | 06dbdeaa0696dd65d72c33ff3c9f957b97f83d7a | 25c9bc07b219cc02004cc0b84adcfdcf18d5ad2b | refs/heads/master | 2023-02-18T01:26:54.161003 | 2023-02-10T11:38:13 | 2023-02-10T11:38:13 | 238,623,868 | 0 | 0 | null | 2020-02-06T06:36:36 | 2020-02-06T06:36:35 | null | UTF-8 | Python | false | false | 4,321 | py | from unittest import mock
from prowler.providers.aws.services.ecs.ecs_service import (
ContainerEnvVariable,
TaskDefinition,
)
AWS_REGION = "eu-west-1"
AWS_ACCOUNT_NUMBER = "123456789012"
task_name = "test-task"
task_revision = "1"
env_var_name_no_secrets = "host"
env_var_value_no_secrets = "localhost:1234"
e... | [
"noreply@github.com"
] | muharihar.noreply@github.com |
5da37cb75d3e086fa6748495e062ebb72411efda | 85a9ffeccb64f6159adbd164ff98edf4ac315e33 | /pysnmp/WWP-LEOS-DATAPLANE-MIB.py | 3a5ae81598dc953ebed7da51ef6a2efc21f19384 | [
"Apache-2.0"
] | permissive | agustinhenze/mibs.snmplabs.com | 5d7d5d4da84424c5f5a1ed2752f5043ae00019fb | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | refs/heads/master | 2020-12-26T12:41:41.132395 | 2019-08-16T15:51:41 | 2019-08-16T15:53:57 | 237,512,469 | 0 | 0 | Apache-2.0 | 2020-01-31T20:41:36 | 2020-01-31T20:41:35 | null | UTF-8 | Python | false | false | 40,695 | py | #
# PySNMP MIB module WWP-LEOS-DATAPLANE-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/WWP-LEOS-DATAPLANE-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 21:31:03 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (d... | [
"dcwangmit01@gmail.com"
] | dcwangmit01@gmail.com |
eb07c9f35a3b3237f2b143eec667664075c3b6de | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_239/ch73_2019_03_29_13_35_33_791622.py | 8ed5b35a63f94283bcc32a6db3d34684225af8e3 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 178 | py | def remove_vogais(x):
i=0
s=''
while i<len(x):
if x[i]!='a' or x[i]!='e' or x[i]!='i' or x[i]!='o' or x[i]!='u':
s+=x[i]
i+=1
return s | [
"you@example.com"
] | you@example.com |
189c44baeb17740fc08566a6d78011def3618a44 | 87cabec126acb99572ed4832f6c9a7c55309417a | /interference_recognition/spectral_scan/scatter.py | 12f9a508029d07a1f84acedfc6ddd83b62660c77 | [] | no_license | ECOAP/examples | a996a9762ffe429b1f7faba3ac0adfb0e93bac97 | 8f67b9334c7c21f7cd1443afd54c4c12ee260be5 | refs/heads/master | 2021-05-02T11:23:54.175327 | 2018-05-23T15:53:04 | 2018-05-23T15:53:04 | 120,776,617 | 0 | 1 | null | 2018-03-07T12:05:07 | 2018-02-08T15:06:32 | Python | UTF-8 | Python | false | false | 1,279 | py | from spectral_acquire import spectral_recorder
import numpy as np
import time
import matplotlib
matplotlib.use('TkAgg')
import matplotlib.pyplot as plt
sr = spectral_recorder.SpectralRecorder(load=False)
time.sleep(1)
#sr.acquire("/tmp/data.tlv")
#out=sr.extract_samples("nodezotacc1.tlv","out.json")
#print len(out)... | [
"domenico.garlisi@dieet.unipa.it"
] | domenico.garlisi@dieet.unipa.it |
258e0ff3494ff61a868ad200f109eef6d1d31445 | 26552adb0d8889affd40e009d3c311e41a873e43 | /Python_Solutions/1932.py | 35cca8374a2a69b33da1429701c785d1c62c041f | [] | no_license | Isaac-Lee/BOJ-Algorithm | 3b9b64aba9ab3b48d15133cbf5ad122822e441d0 | 27f0339195c48f416e672390758e85305203b71a | refs/heads/main | 2022-06-29T21:36:11.500158 | 2022-06-25T06:35:05 | 2022-06-25T06:35:05 | 203,349,860 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 576 | py | import sys
def findMax(n):
answer = []
for i in range(n):
k = list(map(int, input().split()))
if i == 0:
answer = k
continue
elif i == 1:
k[0] += answer[0]
k[1] += answer[0]
answer = k
elif i >= 2:
k[0] += a... | [
"yy0221ss@gmail.com"
] | yy0221ss@gmail.com |
57edf54968bd8f9aa604b3bbd370aaea01c0058b | 23611933f0faba84fc82a1bc0a85d97cf45aba99 | /google-cloud-sdk/lib/surface/service_management/versions/list.py | 1081f25ed6fabb18de91f5f9a1c4a374c6715256 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | KaranToor/MA450 | 1f112d1caccebdc04702a77d5a6cee867c15f75c | c98b58aeb0994e011df960163541e9379ae7ea06 | refs/heads/master | 2021-06-21T06:17:42.585908 | 2020-12-24T00:36:28 | 2020-12-24T00:36:28 | 79,285,433 | 1 | 1 | Apache-2.0 | 2020-12-24T00:38:09 | 2017-01-18T00:05:44 | Python | UTF-8 | Python | false | false | 2,323 | 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... | [
"toork@uw.edu"
] | toork@uw.edu |
ce1cc692b3dac30760be2df29f35c3e908af13ed | 625108dc5a9b90d0f22609788ff52aff155a2c99 | /selection/randomized/intervals/umvu.py | 244b7ab95787db5cfc5734333bfeef20955d59c1 | [] | no_license | guhjy/Python-software | 0169f6618a570bb5a5e3aaf29e895d2251ca791c | 061a050bd17ca6f276296dbfa51573f001c320b1 | refs/heads/master | 2021-01-09T20:55:01.417131 | 2016-09-12T20:43:43 | 2016-09-12T20:43:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,362 | py | import numpy as np
from scipy.optimize import minimize
from matplotlib import pyplot as plt
from selection.sampling.randomized.tests.test_lasso_fixedX_saturated import selection
from selection.sampling.randomized.tests.test_lasso_fixedX_saturated import test_lasso
from selection.sampling.randomized.intervals.estimati... | [
"jonathan.taylor@stanford.edu"
] | jonathan.taylor@stanford.edu |
ec92755ec5da66c7597fc099c86e14dfdfc2c8b4 | 4d26e3a96beeac06d876a3b1b77254f3bdc53561 | /examples/housing/pipelines.py | 7ae60b36dbef559c3dc35b80e9bf1e9aaa8c9ec2 | [
"Apache-2.0"
] | permissive | etrain-xyz/tabml | d009e49118688a52abf2ce53798ca50d0de2ce1e | 51433b74db8165d41e4bb98fdce8a005d9c56b4d | refs/heads/master | 2023-06-14T03:14:57.577226 | 2021-07-05T23:39:45 | 2021-07-05T23:39:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 262 | py | from tabml.pipelines import BasePipeline
def train_lgbm():
path_to_config = "examples/housing/configs/lgbm_config.pb"
pipeline = BasePipeline(path_to_config)
pipeline.run()
pipeline.analyze_model()
if __name__ == "__main__":
train_lgbm()
| [
"vuhuutiep@gmail.com"
] | vuhuutiep@gmail.com |
8ed0c83b69d6aee142c6374856d764dd7b03806e | 23c944ff03ea82cb1b557780bbe9810a4f5e001c | /singlemoduledist/foo.py | 388acdb0abefe6d90532d7e4de4fd063c45c9f91 | [] | no_license | akshar-raaj/hack | 711e13659530c0202879b815bf295efed661bb7d | 4cab4d8ededd7adf8877b56741db2df7dabd0828 | refs/heads/master | 2020-04-04T00:33:29.900091 | 2015-09-05T12:05:13 | 2015-09-05T12:05:13 | 41,952,605 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 64 | py | def foo():
print "foo"
if __name__ == '__main__':
foo() | [
"akshar@agiliq.com"
] | akshar@agiliq.com |
706e7cfa01a1f6be1e657f6749c50b67dfd031f6 | 5b07cea70547789bab8221fef116b62f743922ca | /AtCoder/ABC145/C.py | e7d1949c1ba955ad998d2e276938b51af0270f78 | [] | no_license | bokukko7/AOJ_AtCoder | 0f504b3c39843ffd9b3fc5f0146a64c7416a26e3 | 3f60aca57b9529545c710b6ce7d4ea35253562b0 | refs/heads/master | 2023-01-08T21:31:30.105860 | 2020-11-15T14:39:45 | 2020-11-15T14:39:45 | 260,136,043 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 572 | py | from itertools import permutations
from math import sqrt
n=int(input())
permlist = list(permutations(range(n)))
#print('permlist: {}'.format(permlist))
x = []
y = []
for i in range(n):
xi,yi = list(map(int,input().split()))
x.append(xi)
y.append(yi)
lengths = 0.0
for p in permlist:
length = 0.0
f... | [
"bokukko7@gmail.com"
] | bokukko7@gmail.com |
2023f651669af2731fb4b0a7c994aab320deaf9a | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_292/ch1_2020_03_04_00_28_27_767956.py | 970407c158dd2cfc23d97ad47cc78ddd880d5202 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 142 | py | def calcula_valor_devido(valor_emprestado, número_de_meses, taxa_de_juros)
valor_devido=valor_emprestado*(1+taxa_de_juros)**número_de_meses | [
"you@example.com"
] | you@example.com |
ae595e2ffdc2214c90eb0db12aca48dc0d1411c1 | 5113ceae178ba76f1b3fca9a0fc2832ea6ba7e07 | /imageclassification/src/sample/diffeo/_temperature_range.py | 45c6ae612aa29d39110cbfede3c8fb2568ec5e43 | [
"MIT"
] | permissive | waikato-datamining/keras-imaging | ccb3c75298001648505916eb25bea4583002d6c2 | d3136b14484e26caa2c6f2b984b40be671bef174 | refs/heads/master | 2022-03-19T09:17:39.519958 | 2022-03-08T21:27:03 | 2022-03-08T21:27:03 | 215,889,543 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 695 | py | import math
def temperature_range(n: int, c: int):
"""
Determines the minimum and maximum temperatures that will result in a
diffeomorphism given image size n and cut-off mode c. See Appendix B
of the paper for details.
Modified from function 'temperature_range' at
https://github.com/pcsl-epf... | [
"coreytsterling@gmail.com"
] | coreytsterling@gmail.com |
31f97077a3d227871a87e9bbcc7930c797a5af48 | e5565fac8a04642fadf1da0d6bc54a3d0ea1c5a1 | /flask/recomenda.wsgi | e56ce1dc1b0f10e7eab6c733c49847aee69068c2 | [
"Unlicense"
] | permissive | ttm/pnud4 | 86b1c7988ae80f9ed9277dec838f62b16746dd85 | 89e1fd866dbdea7afcb3d1020816370e303f258c | refs/heads/master | 2021-01-02T23:07:58.939440 | 2014-09-15T22:50:06 | 2014-09-15T22:50:06 | 23,091,064 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 93 | wsgi | import sys
sys.path.insert(0, '/disco/pnud4/flask')
from recomenda import app as application
| [
"renato.fabbri@gmail.com"
] | renato.fabbri@gmail.com |
e9d35bcd6255e8ff7f3b8871e0588fa540dcf9f4 | 96e6a6f1da1b62996f8a4bcc6b5d1031ed783676 | /third_party_package/RDKit_2015_03_1/rdkit/sping/Qt/pidQt.py | e0db348cc831c5d568b78f69ff68f14d670e10d7 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"WTFPL"
] | permissive | leelasd/clusfps | a3e239cd655232c0c6efa788fc2b05b70c9e4740 | c7a198542d729a49d515de559912bee6c43b5fb0 | refs/heads/master | 2020-06-10T05:53:52.874141 | 2016-05-11T12:38:43 | 2016-05-11T12:38:43 | 76,064,999 | 1 | 0 | null | 2016-12-09T19:41:20 | 2016-12-09T19:41:20 | null | UTF-8 | Python | false | false | 11,201 | py | # Copyright (C) 2002 Greg Landrum and Rational Discovery LLC
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2 of the License, or (at your option) any later version.
... | [
"kaiwang0112006@yahoo.com"
] | kaiwang0112006@yahoo.com |
7be075383d8d80ec66ba738d5f1ee256b83de563 | 840c19fdeb97216ad66b3e7fe236cfc17a061606 | /workshop1/sample09_제공파일.py | 1804be9417d434b83af4b40bef2284b75da714c9 | [] | no_license | choicoding1026/data | 07b431abdf36bcf7aefdf249fd1251acfd1e0334 | 684ca791108bc6ba0c315a70e3fa712c0ab2cca6 | refs/heads/master | 2022-12-24T17:55:25.092085 | 2020-10-08T04:54:39 | 2020-10-08T04:54:39 | 302,201,739 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 203 | py |
import pandas as pd
import numpy as np
df = pd.read_csv('data/sample_data.csv', index_col=0)
print(df)
### 코드 구현 ######
df.loc[df['age'] < 30, 'score'] = 99
print(df)
### 코드 구현 ###### | [
"justin6130@gmail.com"
] | justin6130@gmail.com |
6c8e9fad9edd29991a97ba44dd68804f2e3e9278 | 92eec9d251e24f48fa42160e5061c5fb3120fdbb | /ipython/branches/prototype1/ipython1/distutils/sysconfig.py | 83488cb9237fe2b320dfc36325c236534d5f0782 | [] | no_license | minrk/ipython-svn-archive | 55dde54f52284c5c3b32ac2a12bb4734e5f8e7f8 | 9b32089282c94c706d819333a3a2388179e99e86 | refs/heads/master | 2022-12-24T19:50:01.359278 | 2020-09-25T09:34:04 | 2020-09-25T09:34:04 | 298,268,923 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,000 | py | print "Here is ipython1.distutils.sysconfig!!!!!!"
import distutils.sysconfig
import os
def customize_compiler(compiler):
"""Do any platform-specific customization of a CCompiler instance.
Mainly needed on Unix, so we can plug in the information that
varies across Unices and is stored in Python's Makefil... | [
"ellisonbg@gmail.com"
] | ellisonbg@gmail.com |
57fd75a10db96e1c4b6fbae197c09c8d1a063470 | 73770ddb5441f589742dd600545c555dd9922ae8 | /db_scripts/versions/5065adebbe16_sixth.py | 3b3d9028de8426521aaca2aa477b85ca75e31749 | [] | no_license | annndrey/trainingsite | c200a203c7a5fe832de70e9497a93df3745d63ef | 6dce55dc25b2a6f5285a8cfba1fbd7d83dbbe96b | refs/heads/master | 2020-03-29T16:11:06.336532 | 2018-09-24T12:53:55 | 2018-09-24T12:53:55 | 150,102,082 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 847 | py | """sixth
Revision ID: 5065adebbe16
Revises: 3c3dfeb27069
Create Date: 2017-07-24 16:49:07.404058
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '5065adebbe16'
down_revision = '3c3dfeb27069'
branch_labels = None
depends_on = None
def upgrade():
# ### comm... | [
"annndrey@trololo.info"
] | annndrey@trololo.info |
6eae110f8a21a4340376d9ade86431c282a646e3 | 13313192ec3fae980293a207ae7c3080a19cf636 | /backend/instrument/migrations/0004_auto_20200513_2303.py | acf244540558c1dd8fb719bb9f7f3fea15317604 | [
"MIT"
] | permissive | zecaclasher/financial-management-gate | 36e937024d738d5150aa41d90184719b3bd0edc9 | 4bcbba04bf1f366d75263239758a12bf6246bdcd | refs/heads/master | 2023-08-13T10:59:30.171723 | 2020-09-13T00:54:41 | 2020-09-13T00:54:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,270 | py | # Generated by Django 3.0.3 on 2020-05-13 23:03
import datetime
from django.db import migrations, models
import django.db.models.deletion
from django.utils.timezone import utc
class Migration(migrations.Migration):
dependencies = [
('instrument', '0003_auto_20200513_2143'),
]
operations = [
... | [
"felipe.maion@gmail.com"
] | felipe.maion@gmail.com |
42b8d9eb1603a90e9e6616ba6274bdaa56778992 | 3a78046505ac496c51978ddcba0f33c6acbeeb98 | /meetings/views.py | 6b8223e597a7c48666b97b86a4ac4a15eadb5fc4 | [] | no_license | suryanarayadev/clusil-intranet | 1c46d2508f37050cbb9bd96dad466b24f715d8c2 | cc3fd8d3f35c35e30f72cc501962ea4953ca1945 | refs/heads/master | 2021-01-17T21:40:51.154315 | 2015-09-18T21:04:53 | 2015-09-18T21:04:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,725 | py | #
# coding=utf-8
#
from django.shortcuts import render
from django.contrib.auth.decorators import login_required
from django.contrib.formtools.wizard.views import SessionWizardView
from django.conf import settings
from django_tables2 import RequestConfig
from cms.functions import notify_by_email
from members.functi... | [
"pst@libre.lu"
] | pst@libre.lu |
905ba3f6b2a01a93b4ebcbb63049ce4efe55efde | 5184c107af659380eee3f0ea1d80aebd76de0610 | /reinforcement_learning/modules.py | 9235bf1de342f497ffbaa8848f7e578d9cb7ebc1 | [
"BSD-3-Clause"
] | permissive | capybaralet/examples | bcb6fa952edb2f3778afcabc0c405771c7ef215e | 318c036bf6c19e027e7adabde61146dc756e7310 | refs/heads/master | 2021-01-20T05:43:44.545610 | 2019-08-13T04:50:23 | 2019-08-13T04:50:23 | 89,801,363 | 0 | 0 | null | 2017-04-29T17:28:47 | 2017-04-29T17:28:47 | null | UTF-8 | Python | false | false | 7,768 | py | import numpy as np
import torch
import torch.nn as nn
import torch.nn.functional as F
import torch.optim as optim
import torch.autograd as autograd
from torch.autograd import Variable
class StateDiscriminator(nn.Module):
"""
Very similar to reward predictor; the main differences are in the construction of the... | [
"davidscottkrueger@gmail.com"
] | davidscottkrueger@gmail.com |
3ab6f99f34cc9268d5d65dce60b899b360c5b5a6 | 881041fab1b4d05f1c5371efed2f9276037eb609 | /tasks/2010-local-film-festivals/depositor.py | b9b63bc785bacb25c08cef0c0c0a357d49b9d18b | [] | no_license | ResidentMario/urban-physiology-nyc-catalog | b568f3b6ee1a887a50c4df23c488f50c92e30625 | cefbc799f898f6cdf24d0a0ef6c9cd13c76fb05c | refs/heads/master | 2021-01-02T22:43:09.073952 | 2017-08-06T18:27:22 | 2017-08-06T18:27:22 | 99,377,500 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 360 | py | import requests
r = requests.get("https://data.cityofnewyork.us/api/views/yggg-xf4b/rows.csv?accessType=DOWNLOAD")
with open("/home/alex/Desktop/urban-physiology-nyc-catalog/catalog/2010-local-film-festivals/data.csv", "wb") as f:
f.write(r.content)
outputs = ["/home/alex/Desktop/urban-physiology-nyc-catalog/catal... | [
"aleksey.bilogur@gmail.com"
] | aleksey.bilogur@gmail.com |
654f93ee50e247603726756a148a3350f437ae7e | 7f1f324d64f28f7fb261ec8c2dd749a794137c43 | /delete_user.py | 1b6f52047a5fb1582187295b9c913c9e986f290a | [] | no_license | naveens33/rest.api.testing | 6da4d341fa829a87c076c11066f3075a4165e4ff | 0fb175c9ea5cfd6e8ac6af2af4356442e61d2080 | refs/heads/master | 2023-03-27T14:38:29.675022 | 2021-03-26T16:21:57 | 2021-03-26T16:21:57 | 351,841,415 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 115 | py | import requests
url = "https://reqres.in/api/users/2"
response = requests.delete(url)
print(response.status_code)
| [
"naveensagayaselvaraj@gmail.com"
] | naveensagayaselvaraj@gmail.com |
541de4cd6b66ab3e11895ee2efee08c139b731f4 | bce44ee712171b79161716379ac0607cd28573c7 | /devasc/5_consuming_REST_based_APIs/basic_softcoding.py | 5ecaa3f51faad17c6b919054338b0023c66fd00b | [] | no_license | jmstudyacc/Cisco_DevNet | 0d620338f2846ea8c473eedbe0d8c7672306b214 | fd30676dfbacdd5097b8883818c646db73b34543 | refs/heads/master | 2023-07-03T08:25:10.958914 | 2021-08-08T23:22:40 | 2021-08-08T23:22:40 | 275,610,846 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 779 | py | import configparser
import requests
def api_call(context, result_limit=10):
config = configparser.read('api_key.ini')
api_key = config['api_key']
# url is read from the application context - this represents the runtime configuration of the application
# application context usually contains data that ... | [
"jmstudyacc@gmail.com"
] | jmstudyacc@gmail.com |
8f0a1e9b5f884897337355f39cf14aeb2ef02ee2 | 33836016ea99776d31f7ad8f2140c39f7b43b5fe | /fip_collab/2014_09_16_stress_colony_mks/error_boxplot_stress.py | 1a494dcab39430d2684d30cb554c465de8e2992b | [] | no_license | earthexploration/MKS-Experimentation | 92a2aea83e041bfe741048d662d28ff593077551 | 9b9ff3b468767b235e7c4884b0ed56c127328a5f | refs/heads/master | 2023-03-17T23:11:11.313693 | 2017-04-24T19:24:35 | 2017-04-24T19:24:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,095 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Sep 23 12:24:47 2014
@author: nhpnp3
"""
import numpy as np
import matplotlib.pyplot as plt
ns = 50
set_id = 'val'
typ = 'sigma'
## el is the # of elements per side of the cube
el = 21
## vector of the indicial forms of the tensor components
real_comp_desig = ['11','12','... | [
"noahhpaulson@gmail.com"
] | noahhpaulson@gmail.com |
fc0f40ee09c2131a6dadf48882817e236568e680 | 859edec8005915b420ef5411a95a68d139771e88 | /ex41_LearningToSpeakObjectOriented.py | 5bd927c40518cf4b7b4776e0d409197506fa9722 | [] | no_license | shunz/LearnPython3TheHardWay | f470044f61bd52b1457127578d86297e5f06a761 | fec84970929683d3322a452bd5a175d64a740662 | refs/heads/master | 2021-05-26T16:07:07.090545 | 2020-05-22T17:16:12 | 2020-05-22T17:16:12 | 254,131,247 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,768 | py | # Exercise 41: Learning to Speak Object Oriented
"""学习面向对象术语
专有词汇练习
• 类(class): 告诉Python创建新类型的东西
• 对象(object): 两个意思,即最基本的东西,或者某样东西的实例。
• 实例(instance): 这是让Python创建一个类时得到的东西。
• def: 这是在类里边定义函数的方法。
• self: 在类的函数中,self指代被访问的对象或者实例的一个变量
• 继承(inheritance): 指一个类可以继承另一个类的特性,和父子关系类似
• 组合(composition): 指一个类可以将别的类作为它的部件构... | [
"rockucn@gmail.com"
] | rockucn@gmail.com |
ac2736279f951e6d8698e7f07093f91d13ed767f | 33a0d5ec6ca440986f22b010ffb310bf34c4fcac | /Basic_grammar/LIst1/冒泡.py | e006acb7f03191a8d334e4638da3a353cca3bcc6 | [] | no_license | zhaozongzhao/learngit | c3de619f07840839819ffee4bbacb590caba8dbe | a6471e6d63b298882ceed020cc3b56e457ed2ca0 | refs/heads/master | 2023-07-21T23:04:51.249300 | 2021-09-17T10:29:54 | 2021-09-17T10:29:54 | 100,707,131 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 152 | py | lt = [3, 5, 2, 1, 8, 4]
n= len(lt)
for x in range(n-1):
for y in range(n-1-x):
if lt[y]>lt[y+1]:
lt[y],lt[y+1]=lt[y+1],lt[y]
print(lt) | [
"2206321864@qq.com"
] | 2206321864@qq.com |
bb7a466945d30e9980eb89775dbc8012e249c57d | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/52/usersdata/97/22317/submittedfiles/matriz1.py | e264c3d8a0b65c6d65599cb634273845c508aae5 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,056 | py | # -*- coding: utf-8 -*-
from __future__ import division
import numpy as np
def ColunaEsquerda(a):
CE=0
for i in range(0,a.shape[0],1):
for j in range(0,a.shape[1],1):
if 1 in a[i,j]:
CE=i
break
return CE
def ColunaDireita(a):
CD=0
for i in ran... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
87d2db7a4cfa0194ab3c028033594f2435138f5c | 649bd422025e421d86025743eac324c9b882a2e8 | /exam/1_three-dimensional_atomic_system/dump/phasetrans/temp201_5000.py | 17d39d8059b6880f8118270156d28f839b0e6a7b | [] | no_license | scheuclu/atom_class | 36ddee1f6a5995872e858add151c5942c109847c | 0c9a8c63d9b38898c1869fe8983126cef17662cd | refs/heads/master | 2021-01-21T10:52:28.448221 | 2017-03-07T23:04:41 | 2017-03-07T23:04:41 | 83,489,471 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 68,734 | py | ITEM: TIMESTEP
5000
ITEM: NUMBER OF ATOMS
2048
ITEM: BOX BOUNDS pp pp pp
-1.6690846981747359e+02 2.1410846981751791e+02
-1.6690846981747359e+02 2.1410846981751791e+02
-1.6690846981747359e+02 2.1410846981751791e+02
ITEM: ATOMS id type xs ys zs
375 1 0.194417 0.0113856 0.0223783
1267 1 0.450895 0.000848487 0.379903
455 1... | [
"scheuclu@gmail.com"
] | scheuclu@gmail.com |
d206717159e61438f87b34145c86b11a66097d31 | eeb469954b768095f2b8ad2376f1a114a3adb3fa | /113.py | 0438c7010f47d215267882c9f866b91982bd7cb6 | [
"MIT"
] | permissive | RafaelHuang87/Leet-Code-Practice | ef18dda633932e3cce479f7d5411552d43da0259 | 7754dcee38ffda18a5759113ef06d7becf4fe728 | refs/heads/master | 2020-07-18T20:09:10.311141 | 2020-02-11T09:56:39 | 2020-02-11T09:56:39 | 206,305,113 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 791 | py | # Definition for a binary tree node.
class TreeNode:
def __init__(self, x):
self.val = x
self.left = None
self.right = None
class Solution:
def pathSum(self, root: TreeNode, sum: int) -> List[List[int]]:
self.res = []
self.total = sum
def caculate(root, sum, tem... | [
"rafaelhuang@163.com"
] | rafaelhuang@163.com |
6431277c1643d66f9a57dbc1f0986721d7a39d38 | 82b946da326148a3c1c1f687f96c0da165bb2c15 | /sdk/python/pulumi_azure_native/web/v20190801/web_app_azure_storage_accounts.py | cb308006ccf6f399dc506dff44cdb5b7d1f546d7 | [
"BSD-3-Clause",
"Apache-2.0"
] | 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 | 10,191 | 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
fro... | [
"noreply@github.com"
] | morrell.noreply@github.com |
9b4d9e0b5a90a993a5b770668a2015d3aacd5b4a | 974c5a4f101d0e6f4dfa5fc2f7c641c9d2bd8184 | /sdk/authorization/azure-mgmt-authorization/azure/mgmt/authorization/v2021_01_01_preview/operations/_operations.py | 7e220da70af20592fc4c781a3986faa093b25983 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | gaoyp830/azure-sdk-for-python | 4816f04c554dcffb7510a6b7044b0c86a2dd32e1 | 1c66defa502b754abcc9e5afa444ca03c609342f | refs/heads/master | 2022-10-20T21:33:44.281041 | 2022-09-29T17:03:13 | 2022-09-29T17:03:13 | 250,355,505 | 0 | 0 | MIT | 2020-03-26T19:42:13 | 2020-03-26T19:42:12 | null | UTF-8 | Python | false | false | 4,892 | 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"
] | gaoyp830.noreply@github.com |
2dfdee26985ccf9e59eb22e2936471d607662e89 | e747bac825ed5807f72654030e108b8c8f96b902 | /mysite/.history/blog/models_20200714093422.py | 79abb682a3340117534f7fa9d4a7d0bca5ea13ba | [] | no_license | AyatSoft/Tech_blog | 4415ab7dfb04bc53bddaf16fd4772e8554680ae8 | 4728c44e0685c3b97038db5e0232e12f35446e23 | refs/heads/master | 2022-11-15T23:01:52.310968 | 2020-07-16T08:52:51 | 2020-07-16T08:52:51 | 280,103,472 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,185 | py | from django.db import models
from django.utils import timezone
from django.urls import reverse
from django.contrib.auth.models import User
class Post(models.Model):
author = models.ForeignKey(
User, on_delete=models.CASCADE, related_name='post_author')
title = models.CharField(max_length=200)
text... | [
"tanviredu2018@gmail.com"
] | tanviredu2018@gmail.com |
e5805117879335454dedbbddb73c2f1537d1d593 | b2e1897754b2327e7c422c6158cde55c827e1f28 | /landing/admin.py | 800841ccb1baed543c3b8f42de4c80a1f80b501e | [] | no_license | Nsokol44/FulminEnergy | eacb2c04ed0585c24b3d704f2f16a957f58c02f3 | e4a4ca330ba2310ebdbec011838f9711fe76a7c6 | refs/heads/master | 2023-02-16T22:56:27.552780 | 2021-01-16T21:27:43 | 2021-01-16T21:27:43 | 329,776,589 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 952 | py | from django.contrib import admin
from landing.models import Information
from django.http import HttpResponse
import csv, datetime
# Register your models here.
class ExportCsvMixin:
def export_as_csv(self, request, queryset):
meta = self.model._meta
field_names = [field.name for field in... | [
"nsokol@nicholass-mbp.lan"
] | nsokol@nicholass-mbp.lan |
64865dece054b9272f7454911cb5de996a8bc26e | ab04a15c9999870d1f1a76be4e9c46e31c9cf4e9 | /py/sxcorpus/preprocess.py | 619bcf0e88867a407fda512618600b2a3fc7b04d | [] | no_license | shixing/SDA-LDA | 87fdc72d809cdc657e0e7a0062de10024451ad14 | 266f5879155c1a7d50c3bf766d417776e7db36d5 | refs/heads/master | 2021-01-22T03:40:08.320004 | 2014-05-11T21:33:34 | 2014-05-11T21:33:34 | 19,208,390 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 507 | py | import sys
def preprocess_wiki(fn,output_fn):
f = open(fn)
output = open(output_fn,'w')
lid = 0
for line in f:
line = line.strip().split()
line = line[2:-1]
line = ' '.join(line)
line = line[1:-4]
line = line.decode('string_escape')
output.write(line+'\n'... | [
"shixing19910105@gmail.com"
] | shixing19910105@gmail.com |
30d1b593deaddf2edc1877c9bd75fbbaff1a14fb | c3132612a7ac311e501e432e1a4c7592bbd7a713 | /day09/code/01_Day08作业.py | 74ba4861c656ee14efd56e4a314440154128ce98 | [] | no_license | everqiujuan/python | 7b8e169107012c3d7829d4ebd9860482fc0d8fec | b0a98de943217e24da60f79dec4fe8ebf4f1c713 | refs/heads/master | 2020-06-21T16:57:22.260311 | 2019-07-18T05:58:44 | 2019-07-18T05:58:44 | 184,990,635 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,187 | py | #
# 【以下功能都使用函数封装】
#
# 初级
# 1.计算从1到某个数以内所有奇数的和并返回
def fn1(n):
s = 0
for i in range(1, n+1):
if i%2:
s += i
return s
res = fn1(100)
print(res)
# 2.判断某个数是否是偶数,返回结果
def fn2(n):
if n%2 == 0:
return True
return False
print(fn2(10))
# 3.判断某个数是否是素数,... | [
"1748636236@qq.com"
] | 1748636236@qq.com |
e8b6280f3ecc17834eb025d368b83b8753906e94 | 7950091dfd123b9fbe020cb8c9f529e98f7a89d8 | /weatherenv/Lib/site-packages/pipenv/vendor/tomlkit/toml_char.py | 02c55172893519fe850b4a96487ada8c921ad46b | [
"MIT",
"BSD-3-Clause"
] | permissive | diyajaiswal11/Weather-App | d0000ebd12fb051cca8a4c56da4418c89714fb3e | f5e1bca505f6643d870b905577a383a10d17b026 | refs/heads/master | 2022-12-11T05:16:38.941949 | 2020-08-25T18:02:18 | 2020-08-25T18:02:18 | 231,254,913 | 3 | 0 | MIT | 2022-12-08T03:22:58 | 2020-01-01T19:25:37 | Python | UTF-8 | Python | false | false | 1,731 | py | import string
from ._compat import PY2
from ._compat import unicode
if PY2:
from pipenv.vendor.backports.functools_lru_cache import lru_cache
else:
from functools import lru_cache
class TOMLChar(unicode):
def __init__(self, c):
super(TOMLChar, self).__init__()
if len(self) > 1:
... | [
"shubhijaiswal2000@gmail.com"
] | shubhijaiswal2000@gmail.com |
57a83cd4fb5a7d86d1c007a7c3dae272ad8ea86d | 23daedb0a969a5b86fdd6ace4657f7a6521bfdc7 | /aula_1/exercicio_1.py | 7c1f8f1069060719eb29cbabfcf934bca39001c3 | [] | no_license | Paulo201898/Python520 | 3c6ed4ab8e42dd4759705cb2d1c552a3486b3e7a | ca47b6216053d9bc933979893c2500c1961d5f6d | refs/heads/master | 2020-05-16T15:06:41.582922 | 2019-04-26T01:19:21 | 2019-04-26T01:19:21 | 183,123,130 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,122 | py | #!/usr/bin/python3
import banco
# print(banco.lista_de_usuarios)
# exercício 1:
# Imprima somente os usuários
# cujos emails contenham as letras:
# 'a' ou 'k' ou 'm' ou 'l'
# e cujas idades sejam
# maior que 30 e menor que 40
# Dica de exercício
# Condições ou
#if 2 < 4 or 5 < 10:
# print('Condição OU')
# Cond... | [
"leonardo.mendes@4linux.com.br"
] | leonardo.mendes@4linux.com.br |
abd60c5e3a55dc2453eabe30ab606cf428e4de25 | 830acb926cc5cf5a12f2045c8497d6f4aa1c2ef2 | /To-Do List/Problems/Happy birthday!/task.py | 42a9acc0aca39ead64910ab0aa963d31979c8ee8 | [] | no_license | BuyankinM/JetBrainsAcademyProjects | ca2223875ea4aab3ee7fceedc8e293bdb6e1fdcf | d5f9fcde4298af714960b2755f762141de796694 | refs/heads/main | 2023-02-26T05:47:26.070972 | 2021-02-03T22:10:53 | 2021-02-03T22:10:53 | 335,762,702 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 56 | py | import datetime
birthday = datetime.datetime(1983, 3, 7) | [
"mbuyankin@gmail.com"
] | mbuyankin@gmail.com |
a6c66d435501d3489109d1ca3740bc76f1ae505b | 3a02bff6397eb23afd55cc17faf81c24a8751f2d | /sample/findPhoneandEmail.py | a0997fcda408cc82086268878b5b4d8649c0f7da | [] | no_license | cothuyanninh/Python_Code | 909fd4d798cbd856e8993f9d4fea55b4b7c97a1f | 7f657db61845cf8c06725a2da067df526e696b93 | refs/heads/master | 2022-11-06T01:00:39.939194 | 2019-01-13T15:27:38 | 2019-01-13T15:27:38 | 164,468,626 | 0 | 1 | null | 2022-10-13T16:16:21 | 2019-01-07T17:40:51 | Python | UTF-8 | Python | false | false | 660 | py | import pyperclip , re
phoneRegex = re.compile(r'''(
\d\d\d\d\d\d\d\d\d\d
)''', re.VERBOSE)
emailRegex = re.compile('''(
[a-zA-z0-9._%+-]+
@
[a-zA-Z0-9.-]+
(\.[a-zA-Z]{2,4})
)''', re.VERBOSE)
text = str(pyperclip.paste())
matches =[]
for groups in phoneRegex.findall(text):
phoneNum = '-'.join([groups[1], gro... | [
"cothuyanninh@gmail.com"
] | cothuyanninh@gmail.com |
beac795b49d9336674df84e12f075b919e9f5808 | 82a63effc9886c749b349bb0672238dc4a68e66d | /2019/007_Pixel_3a_low_level_checker/research_gamut_convertion.py | 411c0317fa05802968ff646b672f315bd0ccaab1 | [
"BSD-3-Clause"
] | permissive | toru-ver4/sample_code | 6250f4bf7b437b7ee394cbc198d48fd2de209c3f | 58e9925af645e110e4a4a306001ba73599d0b192 | refs/heads/develop | 2023-07-22T00:52:48.568631 | 2023-07-15T07:03:00 | 2023-07-15T07:03:00 | 201,731,599 | 32 | 4 | BSD-3-Clause | 2023-09-10T14:46:41 | 2019-08-11T07:19:29 | Python | UTF-8 | Python | false | false | 5,290 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Gamut変換の特性を調べる。
"""
# 外部ライブラリのインポート
import os
import numpy as np
import matplotlib.pyplot as plt
# 自作ライブラリのインポート
import test_pattern_generator2 as tpg
import color_space as cs
import transfer_functions as tf
from CalcParameters import CalcParameters
import plot_utili... | [
"toru.ver.11@gmail.com"
] | toru.ver.11@gmail.com |
3dbb2df8edd3fb48114670a1329ebfac802bdb80 | 8cce087dfd5c623c2f763f073c1f390a21838f0e | /projects/pytoml/test.py | 56c17a957db2a482f48ec995075955ec43bc629a | [
"Unlicense"
] | permissive | quinn-dougherty/python-on-nix | b2ae42761bccf7b3766999b27a4674310e276fd8 | 910d3f6554acd4a4ef0425ebccd31104dccb283c | refs/heads/main | 2023-08-23T11:57:55.988175 | 2021-09-24T05:55:00 | 2021-09-24T05:55:00 | 414,799,752 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14 | py | import pytoml
| [
"kamadorueda@gmail.com"
] | kamadorueda@gmail.com |
b12597f4221e2687dd364edd97cec9dd89047ece | a2ab6c23253badb3be54b19ba061e1aeaac6a8cd | /obj_detection/tf_api/object_detection/metrics/tf_example_parser_test.py | ccdd9a3af3bd58c339c2c4075adfc3a0b17e542d | [] | no_license | vivek09pathak/ImageDetection_RealTime | 0720fb4a6f35a81591f401a04ae44aa3bbea013f | d9e376b41a1216aecaacc9626cee59d45001695c | refs/heads/master | 2022-12-26T22:04:18.328476 | 2020-09-30T10:20:15 | 2020-09-30T10:20:15 | 152,729,896 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,830 | py | # Copyright 2017 The TensorFlow Authors. 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 applica... | [
"anupamb266@gmail.com"
] | anupamb266@gmail.com |
bc1c48c64041fc8cb40fd91552cbfbcc92b6e5aa | 09e5cfe06e437989a2ccf2aeecb9c73eb998a36c | /modules/cctbx_project/mmtbx/refinement/real_space/tst_fit_residue_5.py | f62cb9cb9d3df4b89d3f96097a747cc23034e446 | [
"BSD-3-Clause-LBNL",
"BSD-3-Clause"
] | permissive | jorgediazjr/dials-dev20191018 | b81b19653624cee39207b7cefb8dfcb2e99b79eb | 77d66c719b5746f37af51ad593e2941ed6fbba17 | refs/heads/master | 2020-08-21T02:48:54.719532 | 2020-01-25T01:41:37 | 2020-01-25T01:41:37 | 216,089,955 | 0 | 1 | BSD-3-Clause | 2020-01-25T01:41:39 | 2019-10-18T19:03:17 | Python | UTF-8 | Python | false | false | 5,784 | py | from __future__ import absolute_import, division, print_function
import time
import mmtbx.refinement.real_space
import mmtbx.refinement.real_space.fit_residue
import iotbx.pdb
pdb_answer = """\
CRYST1 14.230 10.991 17.547 90.00 90.00 90.00 P 1
ATOM 43 N GLY A 8 3.000 7.369 9.591 1.00 6.97... | [
"jorge7soccer@gmail.com"
] | jorge7soccer@gmail.com |
9b786a1a18ca9e5791cd4ae48d7e88091fd19dd5 | d7a4701e18be0f38820f5c15d80099fda6385f9f | /ABC037/C.py | 729bef25e1c0c093583abb30e8b1e3e118fed324 | [] | no_license | shiki7/Atcoder | 979a6f0eeb65f3704ea20a949940a0d5e3434579 | c215c02d3bfe1e9d68846095b1bd706bd4557dd0 | refs/heads/master | 2022-05-21T16:59:01.529489 | 2022-04-29T11:26:42 | 2022-04-29T11:26:42 | 201,536,692 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 205 | py | n, k = map(int, input().split())
a = list(map(int, input().split()))
prev = sum(a[0:k])
total = prev
for i in range(1, n - k + 1):
prev = prev - a[i - 1] + a[i + k - 1]
total += prev
print(total)
| [
"noreply@github.com"
] | shiki7.noreply@github.com |
b6c22bbbe84cc0ce7c65d0e9adc185cd9bb40998 | 45e03dd61493195cbbbce14fa54a787715c7c1fb | /Python_Keywords/raise.py | 5eb8f7ecb20633c5f7a183beb25fb11eb7f2542b | [] | no_license | VaishnaviReddyGuddeti/Python_programs | c55ee69c05d78a70a44385ee2e66365f69546035 | 309a1786fa5a3886d516cd49eb09f9cd847389df | refs/heads/master | 2023-02-17T03:41:31.480858 | 2021-01-14T15:39:52 | 2021-01-14T15:39:52 | 279,762,059 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 279 | py | # To raise an exception
# Raise an error and stop the program if x is lower than 0:
x = -1
if x < 0:
raise Exception("Sorry, no numbers below zero")
# Raise a TypeError if x is not an integer:
x = "hello"
if not type(x) is int:
raise TypeError("Only integers are allowed")
| [
"vaishnavireddyguddeti@gmail.com"
] | vaishnavireddyguddeti@gmail.com |
a6724b60a634053953e431e87677dc5905fef1e7 | 33e7c2f724cf5ce21ec612d44f2173a439acf0f8 | /convokit/hyperconvo/communityEmbedder.py | dd76d05ef41861e6e68598736eaeba88f850044f | [
"MIT"
] | permissive | aparnathinks/Cornell-Conversational-Analysis-Toolkit | 250731692797d351d01138eebba338643f269ad4 | a012fb07968b4f0ab811c3a3789a597f9239f821 | refs/heads/master | 2022-06-27T01:55:32.243730 | 2022-05-30T19:54:13 | 2022-05-30T19:54:13 | 159,894,640 | 0 | 0 | MIT | 2018-12-01T00:49:55 | 2018-12-01T00:49:55 | null | UTF-8 | Python | false | false | 3,091 | py | import numpy as np
from sklearn.decomposition import TruncatedSVD
from sklearn.manifold import TSNE
from collections import defaultdict
from convokit.transformer import Transformer
from convokit.model import Corpus
from typing import Optional
class CommunityEmbedder(Transformer):
"""
Must be run after thread... | [
"calebchiam@gmail.com"
] | calebchiam@gmail.com |
df9ce9b066f3d062b698419753c317b8ddd75e1b | 1fa16c1df35fd8247f9274b26a70523a514210f0 | /dependencies/amitools-0.1.0/amitools/vamos/lib/ExecLibrary.py | 8320abd2107df6a1e31de18074bcf88aa35dc6eb | [
"GPL-1.0-or-later",
"MIT"
] | permissive | limi/AGSImager | 25a816b1c5b9ce8553cd6e3a47babce574f15119 | d3771800308e61a7a07df4a9b361e5bd5ba9e409 | refs/heads/master | 2023-01-10T11:19:52.248376 | 2020-04-14T19:59:23 | 2020-04-14T19:59:23 | 255,813,813 | 0 | 0 | MIT | 2020-04-15T05:26:57 | 2020-04-15T05:26:56 | null | UTF-8 | Python | false | false | 19,585 | py | from amitools.vamos.AmigaLibrary import *
from lexec.ExecStruct import *
from amitools.vamos.Log import log_exec
from amitools.vamos.Exceptions import *
from amitools.vamos.AccessStruct import AccessStruct
from amitools.vamos.Trampoline import Trampoline
from lexec.PortManager import PortManager
from lexec.SemaphoreMan... | [
"optiroc@gmail.com"
] | optiroc@gmail.com |
c645796862017d4e320528f190d23794153f204c | 45e376ae66b78b17788b1d3575b334b2cb1d0b1c | /checkov/terraform/checks/resource/alicloud/ActionTrailLogAllEvents.py | 34dc29b9676dd6063cae700da888f1739a07fd86 | [
"Apache-2.0"
] | permissive | bridgecrewio/checkov | aeb8febed2ed90e61d5755f8f9d80b125362644d | e64cbd27ffb6f09c2c9f081b45b7a821a3aa1a4d | refs/heads/main | 2023-08-31T06:57:21.990147 | 2023-08-30T23:01:47 | 2023-08-30T23:01:47 | 224,386,599 | 5,929 | 1,056 | Apache-2.0 | 2023-09-14T20:10:23 | 2019-11-27T08:55:14 | Python | UTF-8 | Python | false | false | 856 | py | from checkov.common.models.enums import CheckCategories, CheckResult
from checkov.terraform.checks.resource.base_resource_value_check import BaseResourceValueCheck
from typing import Any
class ActionTrailLogAllEvents(BaseResourceValueCheck):
def __init__(self) -> None:
name = "Ensure Action Trail Logging ... | [
"noreply@github.com"
] | bridgecrewio.noreply@github.com |
e490ae05be8718be57563181db39803656d84c2e | 39d676452a212f58ba205ff5fd23b4d2a012538b | /utils/bylineimagecrop.py | de28fa7d062c4c3de9691e000a3ae0b1533eed50 | [] | no_license | haakenlid/hken.no | bcb03ec711cf1b82ff2b528afdd43aa732f3ecdf | 7c34936523b46e51abdba57296a02c3cc8212518 | refs/heads/master | 2020-12-12T16:16:11.819547 | 2019-01-01T23:37:16 | 2019-01-01T23:37:16 | 53,275,814 | 2 | 1 | null | 2019-06-21T07:21:39 | 2016-03-06T20:57:12 | JavaScript | UTF-8 | Python | false | false | 1,526 | py | import PIL
import io
import glob
import base64
import random
import IPython
from utils.cropengine import FaceDetector, Feature
def image_to_data(image, width=200):
image = image.resize((width, width * image.height // image.width))
bytesio = io.BytesIO()
image.save(bytesio, 'PNG')
data = base64.encode... | [
"haakenlid@gmail.com"
] | haakenlid@gmail.com |
38cb745773a5c17120792aa35c1c7911a8b91588 | c97fc7658c39feb51c0ed42c04783797c8675b8a | /2018/pcy1/day12_mysql/book_author/m2m2_bk_au_add_insert.py | 6cfaef4722ad770a235361274991a0bd8d2bd034 | [] | no_license | githubvit/study | 8bff13b18bea4954e8ed1b4619a091b134b8ff97 | 845e19d1225f1aa51c828b15effac30be42fdc1b | refs/heads/master | 2023-02-20T15:59:19.635611 | 2021-12-15T08:30:54 | 2021-12-15T08:30:54 | 241,928,274 | 1 | 1 | null | 2023-02-02T06:18:48 | 2020-02-20T16:08:06 | Python | UTF-8 | Python | false | false | 3,595 | py | # _*_coding:utf-8_*_
'''
多对多关联
现在来设计一个能描述“图书”与“作者”的关系的表结构,需求是
一本书可以有好几个作者
一个作者可以写好几本书
书和作者之间的关系是多对多
解决办法:
除了作者表(id,auth_name),
图书表(id,book_name,pub_date);
还要建立和作者表及图书表映射的第三张表--作者-图书映射表
a_id,b_id,该表连id都没有。a_id和b_id两个都是外键,分别
关联作者表的id和图书表的id.
2,插入数据
'''
import m2m1_bk... | [
"sgq523@163.com"
] | sgq523@163.com |
499fed4b4e0fc4aede038e919bad9389416aef7d | 3b6b832117f22175854ac88da9b497e86230560a | /edparser/common/dataset.py | 61f5ba7516c7a677316f85def8611ec441ee54f2 | [
"Apache-2.0"
] | permissive | attardi/iwpt-shared-task-2020 | 5bccda528e039b8d97a05d604bb97d0d3f5c42ff | 3a70c42d53716678776afcccf02d896655777353 | refs/heads/master | 2022-11-11T15:57:05.597015 | 2020-06-27T08:17:34 | 2020-06-27T08:17:34 | 275,322,631 | 0 | 0 | Apache-2.0 | 2020-06-27T07:32:43 | 2020-06-27T07:32:42 | null | UTF-8 | Python | false | false | 6,372 | py | # -*- coding:utf-8 -*-
# Author: hankcs
# Date: 2020-05-09 20:27
from abc import ABC, abstractmethod
from copy import copy
from typing import Union, List, Callable, Iterable
import torch
from torch.nn.utils.rnn import pad_sequence
from torch.utils.data import Dataset, DataLoader
from edparser.common.transform import ... | [
"jfservice@126.com"
] | jfservice@126.com |
6c45dbcdfb1bde4ed7979a8803854b3825efc020 | 209a7a4023a9a79693ec1f6e8045646496d1ea71 | /COMP0016_2020_21_Team12-datasetsExperimentsAna/pwa/FADapp/pythonScripts/venv/Lib/site-packages/pandas/api/types/__init__.py | b546195c1c6eb0cdea5bf517332e58a2731799ae | [
"MIT"
] | permissive | anzhao920/MicrosoftProject15_Invictus | 5e2347015411bbffbdf0ceb059df854661fb240c | 15f44eebb09561acbbe7b6730dfadf141e4c166d | refs/heads/main | 2023-04-16T13:24:39.332492 | 2021-04-27T00:47:13 | 2021-04-27T00:47:13 | 361,913,170 | 0 | 0 | MIT | 2021-04-26T22:41:56 | 2021-04-26T22:41:55 | null | UTF-8 | Python | false | false | 476 | py | """
Public toolkit API.
"""
from pandas._libs.lib import infer_dtype
from pandas.core.dtypes.api import * # noqa: F401, F403
from pandas.core.dtypes.concat import union_categoricals
from pandas.core.dtypes.dtypes import (
CategoricalDtype,
DatetimeTZDtype,
IntervalDtype,
PeriodDtype,
)
... | [
"ana.kapros@yahoo.ro"
] | ana.kapros@yahoo.ro |
8ec0a55debb2aecf52bb19ea18e09d88c87f0d75 | bf79a856c8a9dd2d72190883dc31f5e652a3b9e7 | /run/jobs/e2e_test.py | 262f34fd0f0185597fb4bfcb953389efadf0273e | [
"Apache-2.0"
] | permissive | aog5/python-docs-samples | 5630c2864ee4f141e09d6909de3a3b7ac211703a | 300527f4b12369f6b0ad59fba42cc66159853bdd | refs/heads/master | 2022-10-28T04:48:52.060095 | 2022-10-18T06:50:12 | 2022-10-18T06:50:12 | 157,914,880 | 2 | 0 | Apache-2.0 | 2018-11-16T19:55:30 | 2018-11-16T19:55:30 | null | UTF-8 | Python | false | false | 2,997 | py | # Copyright 2022 Google LLC.
#
# 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 agreed to in writing, s... | [
"noreply@github.com"
] | aog5.noreply@github.com |
3103240924fd2f0d88dac257f85b932f99803e68 | 711756b796d68035dc6a39060515200d1d37a274 | /output_cog/optimized_39480.py | 5bfbcb45f5f91224a809dbd80b849dccad0e1b66 | [] | no_license | batxes/exocyst_scripts | 8b109c279c93dd68c1d55ed64ad3cca93e3c95ca | a6c487d5053b9b67db22c59865e4ef2417e53030 | refs/heads/master | 2020-06-16T20:16:24.840725 | 2016-11-30T16:23:16 | 2016-11-30T16:23:16 | 75,075,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,844 | py | import _surface
import chimera
try:
import chimera.runCommand
except:
pass
from VolumePath import markerset as ms
try:
from VolumePath import Marker_Set, Link
new_marker_set=Marker_Set
except:
from VolumePath import volume_path_dialog
d= volume_path_dialog(True)
new_marker_set= d.new_marker_set
marker_set... | [
"batxes@gmail.com"
] | batxes@gmail.com |
8b243cc7cd5db57eab77df8ee2faa0dcd437c723 | 4d99350a527a88110b7bdc7d6766fc32cf66f211 | /OpenGLCffi/Defs/gldefs.py | 5b291d3ba4d3681859c336b452e71c851ad9463e | [
"MIT"
] | permissive | cydenix/OpenGLCffi | e790ef67c2f6c9877badd5c38b7d58961c8739cd | c78f51ae5e6b655eb2ea98f072771cf69e2197f3 | refs/heads/master | 2021-01-11T07:31:10.591188 | 2017-04-17T11:04:55 | 2017-04-17T11:04:55 | 80,312,084 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 228,791 | py |
DEF = '''
typedef int32_t khronos_int32_t;
typedef uint32_t khronos_uint32_t;
typedef int64_t khronos_int64_t;
typedef uint64_t khronos_uint64_t;
typedef signed char khronos_int8_t;
typedef unsigned char khronos_uint8_t;
typedef signed sho... | [
"cdenizol@gmail.com"
] | cdenizol@gmail.com |
3f300e2cf7bf4b0770ab805a7047ed30e675acbe | dbe5d1b69161c090b71dc95f35dbf9f7974cd170 | /知识库/apps.py | a54651ef06734c17e296b728be7a665159e37ded | [
"MIT"
] | permissive | cflw/django_application | 992c02c3c8e13bdf674f24b16f350b9109607593 | 710ca80dfd87347c53098bb3bba75f3ba60a83a4 | refs/heads/master | 2022-07-09T06:24:13.115234 | 2022-07-04T15:58:17 | 2022-07-04T15:58:17 | 219,312,246 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 93 | py | from django.apps import AppConfig
class 知识库Config(AppConfig):
name = '知识库'
| [
"cflw@outlook.com"
] | cflw@outlook.com |
64dfecec24fade51132563ecb284cc9b85e87074 | 5df5aaec5921b8f88d567c25380892fe19147c2b | /figures/FDRC/model/DPD/DPD/pic_fct.py | 288af76e3c1f88ab116b213898a8e30dc50fa7de | [] | no_license | 0zhongying0/docpaper | d838625682f762ac508fe582720da6a4720b0d7d | b89db80f6b88e24d3c39115faf91bcf88db648e4 | refs/heads/master | 2020-12-03T23:29:51.467911 | 2018-04-16T02:41:27 | 2018-04-16T02:41:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,596 | py | # encoding: utf-8
import numpy as np
import matplotlib.pyplot as plt
import sys
from pylab import *
from matplotlib import rcParams
rcParams.update({'font.size': 18,'weight' : 'bold'})
patterns = ('/','//','-', '+', 'x', '\\', '\\\\', '*', 'o', 'O', '.')
N=9
threshold_lax=0.6
threshold_tight=0.3
DMIN=0.05
DMAX=0.1... | [
"zganghanhan@foxmail.com"
] | zganghanhan@foxmail.com |
928aac26f644ac8b58a402969f84cfe97f1238e9 | 28691ec55ebce9ec7045d12ea9675932ce12d671 | /py2rhino-project/branches/sandbox2/py2rhino/_make/data/parser_out/material/material_name.py | ea008a2ff957d7807a709fd42f791f687eebf30f | [] | no_license | ianclarksmith/design-automation | 1e71315193effc0c18b4a8b41300bda6f41a3f09 | e27cc028fe582395f4a62f06697137867bb0fc33 | refs/heads/master | 2020-04-22T22:28:39.385395 | 2009-10-26T02:48:37 | 2009-10-26T02:48:37 | 37,266,915 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,872 | py | material_name = {
"input_folder_name": "Material_Methods",
"input_file_name": "MaterialName",
"output_package_name": "material",
"output_module_name": "material_name",
"doc_html": """
Returns or modifies a material's user-definable name.
""",
"syntax_html": {
0: ... | [
"patrick.ht.janssen@d56020b2-6ac5-11de-89a9-0b20f3e2dceb"
] | patrick.ht.janssen@d56020b2-6ac5-11de-89a9-0b20f3e2dceb |
93cc72b72fc26234c2cc97d69a16234866495e8f | 5581d05569ad275f05099ccb84b1c9a9bd081257 | /docs/source/tutorials/src/ucs/lwpolyline.py | 164eea2840f2ae8d96db5a2f1a17fc9b864fc223 | [
"MIT"
] | permissive | mherzog01/ezdxf | 9c676f7a9a6e437579e84fa9a33033356f37c086 | 1325714c8455d571d5119e0d0edd54d1a3c23e41 | refs/heads/master | 2022-11-20T07:19:50.489715 | 2020-07-14T00:44:30 | 2020-07-14T00:44:30 | 279,442,947 | 0 | 0 | MIT | 2020-07-14T00:40:08 | 2020-07-14T00:40:07 | null | UTF-8 | Python | false | false | 744 | py | # Copyright (c) 2020 Manfred Moitzi
# License: MIT License
from pathlib import Path
OUT_DIR = Path('~/Desktop/Outbox').expanduser()
import math
import ezdxf
from ezdxf.math import Vector, UCS
doc = ezdxf.new('R2010')
msp = doc.modelspace()
# The center of the pentagon should be (0, 2, 2), and the shape is
# rotated ... | [
"me@mozman.at"
] | me@mozman.at |
a9149cea304f647316d83823c8b5a3d81d8a16fd | 4de28b1f6d97640834e4a795e68ca9987f9e2cd5 | /check plugins 2.0/arcserve_udp/lib/check_mk/base/cee/plugins/bakery/arcserve_udp.py | e4c0bcc24ec8ef271f4077e636eb87d0d4ec01e6 | [] | no_license | Yogibaer75/Check_MK-Things | affa0f7e6e772074c547f7b1df5c07a37dba80b4 | 029c546dc921c4157000d8ce58a878618e7bfa97 | refs/heads/master | 2023-09-01T15:52:28.610282 | 2023-08-29T06:18:52 | 2023-08-29T06:18:52 | 20,382,895 | 47 | 16 | null | 2023-07-30T15:52:22 | 2014-06-01T18:04:07 | Python | UTF-8 | Python | false | false | 1,168 | py | #!/usr/bin/env python3
# -*- encoding: utf-8; py-indent-offset: 4 -*-
# (c) Andreas Doehler <andreas.doehler@bechtle.com/andreas.doehler@gmail.com>
# This is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
# the Free Software Foundation i... | [
"andreas.doehler@gmail.com"
] | andreas.doehler@gmail.com |
d73bff273059d46ec25d4966c5d47ee7dbfcb644 | ef54d37f8a3303013ca7469871a320d303957ed7 | /robo4.2/fusion/tests/RIST/API/OVF1003/Data50.py | 2803701d58c8e6c548a6e6f2492cac12ef7ed209 | [] | no_license | richa92/Jenkin_Regression_Testing | d18badfcf16bda682dfe7bcbbd66f54a9a27a58d | 24a74926170cbdfafa47e972644e2fe5b627d8ff | refs/heads/master | 2020-07-12T10:01:59.099137 | 2019-08-27T12:14:53 | 2019-08-27T12:14:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 118,215 | py | from dto import *
from env_variables import *
ENC1SASICBAY1 = '%s, interconnect 1' % ENC1
ENC1SASICBAY4 = '%s, interconnect 4' % ENC1
ENC1SHBAY1 = '%s, bay 1' % ENC1
ENC1SHBAY5 = '%s, bay 5' % ENC1
ENC1SHBAY3 = '%s, bay 3' % ENC1
ENC1SHBAY6 = '%s, bay 6' % ENC1
ENC1SHBAY7 = '%s, bay 7' % ENC1
# PROFILE1 SETTINGS
PRO... | [
"akul@SAC0MKUVCQ.asiapacific.hpqcorp.net"
] | akul@SAC0MKUVCQ.asiapacific.hpqcorp.net |
f3353809e7e9ee5a95b52725bb5ec6f3cbac1efd | 47ff744da519c525cccfad1d8cead74f7e2cd209 | /uge3/.history/mypackage/demo_20200214142346.py | 759667e1bed9980110a74ecf33a6f1a34c00473c | [] | no_license | Leafmight/Python | f6098395a7a13dd6afe6eb312a3eb1f3dbe78b84 | d987f22477c77f3f21305eb922ae6855be483255 | refs/heads/master | 2020-12-21T14:21:06.802341 | 2020-05-22T10:21:37 | 2020-05-22T10:21:37 | 236,457,255 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,761 | py | from mypackage.classes.course import Course
from mypackage.classes.data_sheet import DataSheet
from mypackage.classes.student import Student
import sys
import random
import platform
import csv
print('__file__:{}\n__name__:{}\n__package__:{}\n'.format(__file__,__name__,str(__package__)))
lst_teachers = ["Elon Musk", "S... | [
"jacobfolke@hotmail.com"
] | jacobfolke@hotmail.com |
6bcd4b43eb8df43cb40cdde464719c37dabaa03e | 5330918e825f8d373d3907962ba28215182389c3 | /CMGTools/Common/python/miscProducers/deltaRJetMuons_cfi.py | ce21b3760f01a493498a637747dac12b4bf94cb6 | [] | no_license | perrozzi/cmg-cmssw | 31103a7179222c7aa94f65e83d090a5cf2748e27 | 1f4cfd936da3a6ca78f25959a41620925c4907ca | refs/heads/CMG_PAT_V5_18_from-CMSSW_5_3_22 | 2021-01-16T23:15:58.556441 | 2017-05-11T22:43:15 | 2017-05-11T22:43:15 | 13,272,641 | 1 | 0 | null | 2017-05-11T22:43:16 | 2013-10-02T14:05:21 | C++ | UTF-8 | Python | false | false | 601 | py | import FWCore.ParameterSet.Config as cms
deltaRJetMuons = cms.EDProducer(
"DeltaRVetoProducerPFJet",
inputCollection = cms.InputTag('cmgPFJetSel'),
MatchingParams = cms.VPSet(
cms.PSet(
vetoCollection=... | [
"colin.bernet@cern.ch"
] | colin.bernet@cern.ch |
0704b0d6d7d9f8d4ab96f9ec57b28ff7f2ba49dc | 81b80dcb5dae151903bed55bc717942edb4ecadb | /42. Trapping Rain Water.py | 99af093753e21df578093caabd7721f1f8c63868 | [] | no_license | chuzcjoe/Leetcode | 742bbb71e08ae8833865174b40e4a8f3c2529916 | a6eb22c3f84459c3c054c00aec59d0d87b685bfa | refs/heads/master | 2021-07-10T15:40:47.332063 | 2020-09-27T23:54:13 | 2020-09-27T23:54:13 | 198,936,895 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 739 | py | class Solution(object):
def trap(self, height):
"""
:type height: List[int]
:rtype: int
"""
# from left to right, fill up water
l_to_r = copy.deepcopy(height)
for i in range(0,len(height)-1):
if l_to_r[i+1] < l_to_r[i]:
... | [
"noreply@github.com"
] | chuzcjoe.noreply@github.com |
7e6d9e40331f632c1afb6899286a729b86bd0938 | 384d0be5ac54b306b945cf38c10d9b0a44c975ea | /stack/nova/nova/api/ec2/apirequest.py | 803413898c33966999b92cf2b00b4ac2c0402420 | [
"Apache-2.0"
] | permissive | ashokcse/openstack-bill | 05ae313637b3cfecba946d2a9b32e8c7609fc721 | 1a3d7575d4b341f64fa1764ed47e47a7504a9bcc | refs/heads/master | 2021-01-18T14:05:24.696165 | 2012-09-12T11:29:20 | 2012-09-12T11:29:20 | 5,424,267 | 5 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,716 | py | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2010 United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compli... | [
"ashokcse@live.com"
] | ashokcse@live.com |
00c993d3b1ab696659998931975f443747222157 | 97072bdb023dd3916d0ced6aba1c98ec0893ee01 | /app/requests.py | 9849528b6cbeab02574080d5ea664eb382887722 | [
"MIT"
] | permissive | AnumAsif/my-blogs | ed814d0559a1d84e138a02b846d2a2b85aacfebd | 8dd6d8e9e84867582dad10265203d1219c00926c | refs/heads/master | 2020-04-23T01:51:07.902859 | 2019-02-19T12:18:42 | 2019-02-19T12:18:42 | 170,826,439 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 674 | py | import urllib.request, json
from .models import Quote
quote_url = None
def configure_request(app):
global quote_url
quote_url = app.config["QUOTE_API_URL"]
def get_quotes():
'''
Function that gets the json response
'''
quoteUrl= "http://quotes.stormconsultancy.co.uk/random.json"
with urll... | [
"anum@cockar.com"
] | anum@cockar.com |
8ff633fc5f9ac0a49a8310035ccde27e984ae723 | bfaf64c553eb43684970fb3916eedaafbecf0506 | /set9/div_mod.py | 95955c2b6b83113a548e60b453fab0364f4561cb | [] | no_license | santhoshbabu4546/GUVI-9 | 879e65df0df6fafcc07166b2eaecf676ba9807a2 | b9bfa4b0fa768e70c8d3f40b11dd1bcc23692a49 | refs/heads/master | 2022-01-24T15:22:34.457564 | 2019-07-21T14:20:35 | 2019-07-21T14:20:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 176 | py | a3=['/','%']
while True:
a2=input().split()
if a3.index(a2[1]) ==0:
print(int(int(a2[0]) / int(a2[2])))
else:
print(int(a2[0]) % int(a2[2]))
| [
"noreply@github.com"
] | santhoshbabu4546.noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.