Dataset Preview
Duplicate
The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
The dataset generation failed
Error code:   DatasetGenerationError
Exception:    ArrowInvalid
Message:      JSON parse error: Missing a closing quotation mark in string. in row 95
Traceback:    Traceback (most recent call last):
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/packaged_modules/json/json.py", line 145, in _generate_tables
                  dataset = json.load(f)
                File "/usr/local/lib/python3.9/json/__init__.py", line 293, in load
                  return loads(fp.read(),
                File "/usr/local/lib/python3.9/json/__init__.py", line 346, in loads
                  return _default_decoder.decode(s)
                File "/usr/local/lib/python3.9/json/decoder.py", line 340, in decode
                  raise JSONDecodeError("Extra data", s, end)
              json.decoder.JSONDecodeError: Extra data: line 2 column 1 (char 2531)
              
              During handling of the above exception, another exception occurred:
              
              Traceback (most recent call last):
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1995, in _prepare_split_single
                  for _, table in generator:
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/packaged_modules/json/json.py", line 148, in _generate_tables
                  raise e
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/packaged_modules/json/json.py", line 122, in _generate_tables
                  pa_table = paj.read_json(
                File "pyarrow/_json.pyx", line 308, in pyarrow._json.read_json
                File "pyarrow/error.pxi", line 154, in pyarrow.lib.pyarrow_internal_check_status
                File "pyarrow/error.pxi", line 91, in pyarrow.lib.check_status
              pyarrow.lib.ArrowInvalid: JSON parse error: Missing a closing quotation mark in string. in row 95
              
              The above exception was the direct cause of the following exception:
              
              Traceback (most recent call last):
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1529, in compute_config_parquet_and_info_response
                  parquet_operations = convert_to_parquet(builder)
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1154, in convert_to_parquet
                  builder.download_and_prepare(
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1027, in download_and_prepare
                  self._download_and_prepare(
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1122, in _download_and_prepare
                  self._prepare_split(split_generator, **prepare_split_kwargs)
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1882, in _prepare_split
                  for job_id, done, content in self._prepare_split_single(
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 2038, in _prepare_split_single
                  raise DatasetGenerationError("An error occurred while generating the dataset") from e
              datasets.exceptions.DatasetGenerationError: An error occurred while generating the dataset

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

text
string
meta
dict
namespace remoting { IpcVideoFrameCapturer::IpcVideoFrameCapturer( scoped_refptr<DesktopSessionProxy> desktop_session_proxy) : delegate_(NULL), desktop_session_proxy_(desktop_session_proxy) { } IpcVideoFrameCapturer::~IpcVideoFrameCapturer() { } void IpcVideoFrameCapturer::Start(Delegate* delegate) { delegate_ = delegate; desktop_session_proxy_->StartVideoCapturer(this); } void IpcVideoFrameCapturer::Stop() { desktop_session_proxy_->StopVideoCapturer(); delegate_ = NULL; } void IpcVideoFrameCapturer::InvalidateRegion(const SkRegion& invalid_region) { desktop_session_proxy_->InvalidateRegion(invalid_region); } void IpcVideoFrameCapturer::CaptureFrame() { desktop_session_proxy_->CaptureFrame(); } void IpcVideoFrameCapturer::OnCaptureCompleted( scoped_refptr<media::ScreenCaptureData> capture_data) { if (delegate_) delegate_->OnCaptureCompleted(capture_data); } void IpcVideoFrameCapturer::OnCursorShapeChanged( scoped_ptr<media::MouseCursorShape> cursor_shape) { if (delegate_) delegate_->OnCursorShapeChanged(cursor_shape.Pass()); } } // namespace remoting
{ "content_hash": "0f9faab800745a230207fab957778a45", "timestamp": "", "source": "github", "line_count": 42, "max_line_length": 78, "avg_line_length": 26.738095238095237, "alnum_prop": 0.761353517364203, "repo_name": "zcbenz/cefode-chromium", "id": "21aed746d2769648aeaa634c5bfdbe62be50ca1e", "size": "1515", "binary": false, "copies": "2", "ref": "refs/heads/master", "path": "remoting/host/ipc_video_frame_capturer.cc", "mode": "33188", "license": "bsd-3-clause", "language": [ { "name": "ASP", "bytes": "853" }, { "name": "AppleScript", "bytes": "6973" }, { "name": "Arduino", "bytes": "464" }, { "name": "Assembly", "bytes": "1174304" }, { "name": "Awk", "bytes": "9519" }, { "name": "C", "bytes": "76026099" }, { "name": "C#", "bytes": "1132" }, { "name": "C++", "bytes": "157904700" }, { "name": "DOT", "bytes": "1559" }, { "name": "F#", "bytes": "381" }, { "name": "Java", "bytes": "3225038" }, { "name": "JavaScript", "bytes": "18180217" }, { "name": "Logos", "bytes": "4517" }, { "name": "Matlab", "bytes": "5234" }, { "name": "Objective-C", "bytes": "7139426" }, { "name": "PHP", "bytes": "97817" }, { "name": "Perl", "bytes": "932901" }, { "name": "Python", "bytes": "8654916" }, { "name": "R", "bytes": "262" }, { "name": "Ragel in Ruby Host", "bytes": "3621" }, { "name": "Shell", "bytes": "1533012" }, { "name": "Tcl", "bytes": "277077" }, { "name": "XML", "bytes": "13493" } ] }
package biweekly.property; import biweekly.Biweekly; /** * <p> * Identifies the application that created the iCalendar object. * </p> * <p> * <b>Code sample:</b> * </p> * * <pre class="brush:java"> * ICalendar ical = new ICalendar(); * * ProductId prodid = new ProductId("-//Company//Application Name//EN"); * ical.setProductId(prodid); * </pre> * @author Michael Angstadt * @see <a href="http://tools.ietf.org/html/rfc5545#page-78">RFC 5545 p.78-9</a> * @see <a href="http://tools.ietf.org/html/rfc2445#page-75">RFC 2445 p.75-6</a> * @see <a href="http://www.imc.org/pdi/vcal-10.doc">vCal 1.0 p.24</a> */ public class ProductId extends TextProperty { /** * Creates a new product identifier property. * @param value a unique string representing the application (e.g. * "-//Company//Application Name//EN") */ public ProductId(String value) { super(value); } /** * Copy constructor. * @param original the property to make a copy of */ public ProductId(ProductId original) { super(original); } /** * Creates a new product identifier property that represents this library. * @return the property */ public static ProductId biweekly() { return new ProductId("-//Michael Angstadt//biweekly " + Biweekly.VERSION + "//EN"); } @Override public ProductId copy() { return new ProductId(this); } }
{ "content_hash": "8f1fcd94b215098169a01e416538c487", "timestamp": "", "source": "github", "line_count": 56, "max_line_length": 85, "avg_line_length": 25.160714285714285, "alnum_prop": 0.638041163946061, "repo_name": "mangstadt/biweekly", "id": "56ca9363be394355f3b2fd86df3e0b15bdd645e7", "size": "2758", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "src/main/java/biweekly/property/ProductId.java", "mode": "33188", "license": "bsd-2-clause", "language": [ { "name": "Java", "bytes": "3148718" } ] }
git-local-commits(1) -- List local commits ======================================= ## SYNOPSIS `git-local-commits` &lt;args&gt; ## DESCRIPTION Lists commits in the local branch that have not been pushed to origin. ## OPTIONS &lt;args&gt; All arguments passed to `git-local-commits` will be passed directly to `git-log`. ## EXAMPLES $ git local-commits --graph ## AUTHOR Written by Michael Komitee &lt;<mkomitee@gmail.com>&gt; ## REPORTING BUGS &lt;<http://github.com/visionmedia/git-extras/issues>&gt; ## SEE ALSO &lt;<http://github.com/visionmedia/git-extras>&gt;
{ "content_hash": "7c9ee8761a692d9525c610d261e57ccf", "timestamp": "", "source": "github", "line_count": 32, "max_line_length": 83, "avg_line_length": 18.4375, "alnum_prop": 0.6542372881355932, "repo_name": "brianloveswords/git-extras", "id": "80b3a4fa235467f20bc51dade6ef1491beaed7d5", "size": "590", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "man/git-local-commits.md", "mode": "33188", "license": "mit", "language": [ { "name": "Shell", "bytes": "12261" } ] }
package main import ( "crypto/tls" "fmt" "io" "net/http" "net/url" "strings" "time" "github.com/golang/protobuf/ptypes/empty" "github.com/improbable-eng/grpc-web/go/grpcweb" "github.com/sirupsen/logrus" "golang.org/x/net/context" "google.golang.org/grpc" "google.golang.org/grpc/codes" "google.golang.org/grpc/grpclog" "google.golang.org/grpc/metadata" "google.golang.org/grpc/status" "google.golang.org/grpc/transport" testproto "github.com/johanbrandhorst/protobuf/test/server/proto/test" "github.com/johanbrandhorst/protobuf/test/server/proto/types" "github.com/johanbrandhorst/protobuf/test/shared" ) func main() { grpcServer := grpc.NewServer() testproto.RegisterTestServiceServer(grpcServer, &testSrv{}) types.RegisterEchoServiceServer(grpcServer, &testSrv{}) log := logrus.New() log.Level = logrus.DebugLevel log.Formatter = &logrus.TextFormatter{ ForceColors: true, FullTimestamp: true, TimestampFormat: time.RFC3339Nano, } grpclog.SetLogger(log) wrappedServer := grpcweb.WrapServer(grpcServer, grpcweb.WithWebsockets(true), grpcweb.WithWebsocketOriginFunc(func(req *http.Request) bool { origin := req.Header.Get("Origin") parsedURL, err := url.ParseRequestURI(origin) if err != nil { grpclog.Warningf("Unable to parse url for grpc-websocket origin check: %s. error: %v", origin, err) return false } // Allow connections from any port return stripPort(parsedURL.Host) == stripPort(req.Host) }), ) emptyGrpcServer := grpc.NewServer() emptyWrappedServer := grpcweb.WrapServer(emptyGrpcServer, grpcweb.WithWebsockets(true), grpcweb.WithWebsocketOriginFunc(func(req *http.Request) bool { origin := req.Header.Get("Origin") parsedURL, err := url.ParseRequestURI(origin) if err != nil { grpclog.Warningf("Unable to parse url for grpc-websocket origin check: %s. error: %v", origin, err) return false } // Allow connections from any port return stripPort(parsedURL.Host) == stripPort(req.Host) }), grpcweb.WithCorsForRegisteredEndpointsOnly(false), ) emptyHandler := func(resp http.ResponseWriter, req *http.Request) { emptyWrappedServer.ServeHTTP(resp, req) } http1Server := http.Server{ Addr: shared.HTTP1Server, Handler: wrappedServer, } http1Server.TLSNextProto = map[string]func(*http.Server, *tls.Conn, http.Handler){} // Disable HTTP2 http1EmptyServer := http.Server{ Addr: shared.EmptyHTTP1Server, Handler: http.HandlerFunc(emptyHandler), } http1EmptyServer.TLSNextProto = map[string]func(*http.Server, *tls.Conn, http.Handler){} // Disable HTTP2 http2Server := http.Server{ Addr: shared.HTTP2Server, Handler: wrappedServer, } http2EmptyServer := http.Server{ Addr: shared.EmptyHTTP2Server, Handler: http.HandlerFunc(emptyHandler), } grpclog.Printf("Starting servers") // Start the empty Http1.1 server go func() { if err := http1EmptyServer.ListenAndServeTLS("./insecure/localhost.crt", "./insecure/localhost.key"); err != nil { grpclog.Fatalf("failed starting http1.1 empty server: %v", err) } }() // Start the Http1.1 server go func() { if err := http1Server.ListenAndServeTLS("./insecure/localhost.crt", "./insecure/localhost.key"); err != nil { grpclog.Fatalf("failed starting http1.1 server: %v", err) } }() // Start the empty Http2 server go func() { if err := http2EmptyServer.ListenAndServeTLS("./insecure/localhost.crt", "./insecure/localhost.key"); err != nil { grpclog.Fatalf("failed starting http2 empty server: %v", err) } }() // Start the Http2 server go func() { if err := http2Server.ListenAndServeTLS("./insecure/localhost.crt", "./insecure/localhost.key"); err != nil { grpclog.Fatalf("failed starting http2 server: %v", err) } }() // Host the GopherJS code httpsSrv := &http.Server{ Addr: shared.GopherJSServer, Handler: http.FileServer(http.Dir("./client/html")), } grpclog.Printf("Serving tests on https://localhost:8080") if err := httpsSrv.ListenAndServeTLS("./insecure/localhost.crt", "./insecure/localhost.key"); err != nil { grpclog.Fatalf("failed to start JS server: %v", err) } } func stripPort(hostport string) string { colon := strings.IndexByte(hostport, ':') if colon == -1 { return hostport } if i := strings.IndexByte(hostport, ']'); i != -1 { return strings.TrimPrefix(hostport[:i], "[") } return hostport[:colon] } type testSrv struct { } func (s *testSrv) PingEmpty(ctx context.Context, _ *empty.Empty) (*testproto.PingResponse, error) { grpc.SendHeader(ctx, metadata.Pairs("HeaderTestKey1", "ServerValue1", "HeaderTestKey2", "ServerValue2")) grpc.SetTrailer(ctx, metadata.Pairs("TrailerTestKey1", "ServerValue1", "TrailerTestKey2", "ServerValue2")) return &testproto.PingResponse{Value: "foobar"}, nil } func (s *testSrv) Ping(ctx context.Context, ping *testproto.PingRequest) (*testproto.PingResponse, error) { if ping.GetCheckMetadata() { md, ok := metadata.FromIncomingContext(ctx) if !ok || len(md[strings.ToLower(shared.ClientMDTestKey)]) == 0 || md[strings.ToLower(shared.ClientMDTestKey)][0] != shared.ClientMDTestValue { return nil, status.Errorf(codes.InvalidArgument, "Metadata was invalid") } } if ping.GetSendHeaders() { grpc.SendHeader( ctx, metadata.Pairs( shared.ServerMDTestKey1, shared.ServerMDTestValue1, shared.ServerMDTestKey2, shared.ServerMDTestValue2)) } if ping.GetSendTrailers() { grpc.SetTrailer( ctx, metadata.Pairs( shared.ServerTrailerTestKey1, shared.ServerMDTestValue1, shared.ServerTrailerTestKey2, shared.ServerMDTestValue2)) } return &testproto.PingResponse{Value: ping.GetValue(), Counter: ping.GetResponseCount()}, nil } func (s *testSrv) PingError(ctx context.Context, ping *testproto.PingRequest) (*empty.Empty, error) { if ping.FailureType == testproto.PingRequest_DROP { t, _ := transport.StreamFromContext(ctx) _ = t.ServerTransport().Close() return nil, status.Errorf(codes.Unavailable, "You got closed. You probably won't see this error") } if ping.GetSendHeaders() { grpc.SendHeader( ctx, metadata.Pairs( shared.ServerMDTestKey1, shared.ServerMDTestValue1, shared.ServerMDTestKey2, shared.ServerMDTestValue2)) } if ping.GetSendTrailers() { grpc.SetTrailer( ctx, metadata.Pairs( shared.ServerTrailerTestKey1, shared.ServerMDTestValue1, shared.ServerTrailerTestKey2, shared.ServerMDTestValue2)) } return nil, status.Errorf(codes.Code(ping.ErrorCodeReturned), ping.Value) } func (s *testSrv) PingList(ping *testproto.PingRequest, stream testproto.TestService_PingListServer) error { if ping.GetCheckMetadata() { md, ok := metadata.FromIncomingContext(stream.Context()) if !ok || len(md[strings.ToLower(shared.ClientMDTestKey)]) == 0 || md[strings.ToLower(shared.ClientMDTestKey)][0] != shared.ClientMDTestValue { return status.Errorf(codes.InvalidArgument, "Metadata was invalid") } } if ping.GetSendHeaders() { stream.SendHeader( metadata.Pairs( shared.ServerMDTestKey1, shared.ServerMDTestValue1, shared.ServerMDTestKey2, shared.ServerMDTestValue2)) } if ping.GetSendTrailers() { stream.SetTrailer( metadata.Pairs( shared.ServerTrailerTestKey1, shared.ServerMDTestValue1, shared.ServerTrailerTestKey2, shared.ServerMDTestValue2)) } if ping.FailureType == testproto.PingRequest_DROP { t, _ := transport.StreamFromContext(stream.Context()) _ = t.ServerTransport().Close() return status.Errorf(codes.Unavailable, "You got closed. You probably won't see this error") } if ping.GetFailureType() == testproto.PingRequest_CODE { return status.Errorf(codes.Code(ping.ErrorCodeReturned), ping.GetValue()) } for i := int32(0); i < ping.ResponseCount; i++ { sleepDuration := ping.GetMessageLatencyMs() time.Sleep(time.Duration(sleepDuration) * time.Millisecond) stream.Send(&testproto.PingResponse{Value: fmt.Sprintf("%s %d", ping.Value, i), Counter: i}) if sleepDuration != 0 { // Flush the stream lowLevelServerStream, ok := transport.StreamFromContext(stream.Context()) if !ok { return status.Errorf(codes.Internal, "lowLevelServerStream does not exist in context") } lowLevelServerStream.ServerTransport().Write(lowLevelServerStream, nil, nil, &transport.Options{ Delay: false, }) } } return nil } func (s *testSrv) EchoAllTypes(ctx context.Context, in *types.TestAllTypes) (*types.TestAllTypes, error) { return in, nil } func (s *testSrv) EchoMaps(ctx context.Context, in *types.TestMap) (*types.TestMap, error) { return in, nil } func (s *testSrv) PingClientStream(stream testproto.TestService_PingClientStreamServer) error { for { ping, err := stream.Recv() if err == io.EOF { time.Sleep(time.Duration(ping.GetMessageLatencyMs()) * time.Millisecond) return stream.SendAndClose(&testproto.PingResponse{Value: "Closed"}) } if ping.GetCheckMetadata() { md, ok := metadata.FromIncomingContext(stream.Context()) if !ok || len(md[strings.ToLower(shared.ClientMDTestKey)]) == 0 || md[strings.ToLower(shared.ClientMDTestKey)][0] != shared.ClientMDTestValue { return status.Errorf(codes.InvalidArgument, "Metadata was invalid") } } if ping.GetSendHeaders() { stream.SendHeader( metadata.Pairs( shared.ServerMDTestKey1, shared.ServerMDTestValue1, shared.ServerMDTestKey2, shared.ServerMDTestValue2)) } if ping.GetSendTrailers() { stream.SetTrailer( metadata.Pairs( shared.ServerTrailerTestKey1, shared.ServerMDTestValue1, shared.ServerTrailerTestKey2, shared.ServerMDTestValue2)) } if err != nil { return err } } } func (s *testSrv) PingClientStreamError(stream testproto.TestService_PingClientStreamErrorServer) error { for { ping, err := stream.Recv() if err == io.EOF { time.Sleep(time.Duration(ping.GetMessageLatencyMs()) * time.Millisecond) _ = stream.SendAndClose(&testproto.PingResponse{Value: "Closed"}) return status.Errorf(codes.Internal, "error") } if err != nil { return err } if ping.FailureType == testproto.PingRequest_DROP { t, _ := transport.StreamFromContext(stream.Context()) _ = t.ServerTransport().Close() return status.Errorf(codes.Unavailable, "You got closed. You probably won't see this error") } if ping.GetFailureType() == testproto.PingRequest_CODE { return status.Errorf(codes.Code(ping.ErrorCodeReturned), ping.GetValue()) } } } func (s *testSrv) PingBidiStream(stream testproto.TestService_PingBidiStreamServer) error { for { ping, err := stream.Recv() if err == io.EOF { return nil } if err != nil { return err } if ping.GetCheckMetadata() { md, ok := metadata.FromIncomingContext(stream.Context()) if !ok || len(md[strings.ToLower(shared.ClientMDTestKey)]) == 0 || md[strings.ToLower(shared.ClientMDTestKey)][0] != shared.ClientMDTestValue { return status.Errorf(codes.InvalidArgument, "Metadata was invalid") } } if ping.GetSendHeaders() { stream.SendHeader( metadata.Pairs( shared.ServerMDTestKey1, shared.ServerMDTestValue1, shared.ServerMDTestKey2, shared.ServerMDTestValue2)) } if ping.GetSendTrailers() { stream.SetTrailer( metadata.Pairs( shared.ServerTrailerTestKey1, shared.ServerMDTestValue1, shared.ServerTrailerTestKey2, shared.ServerMDTestValue2)) } time.Sleep(time.Duration(ping.GetMessageLatencyMs()) * time.Millisecond) err = stream.Send(&testproto.PingResponse{ Value: ping.GetValue(), Counter: ping.GetResponseCount(), }) if err != nil { return err } } } func (s *testSrv) PingBidiStreamError(stream testproto.TestService_PingBidiStreamErrorServer) error { for { ping, err := stream.Recv() if err == io.EOF { return status.Errorf(codes.Internal, "error") } if err != nil { return err } if ping.GetFailureType() == testproto.PingRequest_CODE { return status.Errorf(codes.Code(ping.ErrorCodeReturned), ping.GetValue()) } if ping.FailureType == testproto.PingRequest_DROP { t, _ := transport.StreamFromContext(stream.Context()) _ = t.ServerTransport().Close() return status.Errorf(codes.Unavailable, "You got closed. You probably won't see this error") } time.Sleep(time.Duration(ping.GetMessageLatencyMs()) * time.Millisecond) err = stream.Send(&testproto.PingResponse{ Value: ping.GetValue(), Counter: ping.GetResponseCount(), }) if err != nil { return err } } }
{ "content_hash": "e2d5b842b94ffa01289b653c53c7294a", "timestamp": "", "source": "github", "line_count": 375, "max_line_length": 116, "avg_line_length": 33.117333333333335, "alnum_prop": 0.7198647234076818, "repo_name": "johanbrandhorst/protobuf", "id": "9606c8075bb3569785ca010762a45c892a43a5d4", "size": "12419", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "test/server/main.go", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "4356" }, { "name": "Go", "bytes": "216965" }, { "name": "HTML", "bytes": "330" }, { "name": "JavaScript", "bytes": "63727" }, { "name": "Makefile", "bytes": "5873" } ] }
define(['./geometry', 'nls/trdyn', 'i18n!nls/tr'], function (geometry, trdyn, tr) { /** * Draws a day * @param {canvas} the element from where properties are extracted * @param {context} the context where we draw * @param {m} month (1 to 12) * @param {d} day (1 to 31) */ function drawDay(canvas, context, m, d, w_day, h_day, scale_categ){ var day_of_year = trdyn.dayOfYear(m, d); var val_scale = context.getUniformScale(); // day name if ((scale_categ < 5) && (val_scale > 0.5)) { var day_size = 15 / (val_scale); var day_off = 2 / (val_scale); context.fillStyle = "white"; context.font = "bold " + day_size + "px Arial"; context.fillText("" + d, day_off, day_off+day_size); } if ((scale_categ < 5) && (val_scale > 0.5)) { } } /** * Draws a month * @param {canvas} the element from where properties are extracted * @param {context} the context where we draw * @param {m} month (1 to 12) */ function drawMonth(canvas, context, m){ var scale_categ = context.getScaleCategory(); var val_scale = context.getUniformScale(); context.strokeStyle = "#0000ff"; context.lineWidth = 2 / val_scale; context.fillStyle = "#009900"; context.fillRect(0,0, canvas.config.monthTicketWidth,canvas.config.monthTicketHeight); context.strokeRect(0,0, canvas.config.monthTicketWidth,canvas.config.monthTicketHeight); // month name if (scale_categ < 2) { context.fillStyle = "blue"; context.font = "bold 30px Arial"; context.fillText(trdyn.monthName(m), 2, 32); } // dividers for days context.strokeStyle = "#00ffff"; context.lineWidth = 1 / val_scale; var r = 0; var c = 0; var d = 1; var d_lim = trdyn.days(m); var h_day = canvas.config.monthTicketHeight / 5; var w_day = canvas.config.monthTicketWidth / 7; var day_x = w_day; // don't draw first line over previous one for (c = 1; c < 7; ++c) { context.beginPath(); context.moveTo(day_x,0); context.lineTo(day_x,canvas.config.monthTicketHeight); context.stroke(); day_x += w_day; } var rectDay = { left: 0.0, top: 0.0, right: w_day, bottom: h_day }; var rectView = context.transfRectView(canvas); var d_start = trdyn.dayStart(m); var d_fake = 1; var month_overflow_d = trdyn.daysOverflow(m); for (r = 0; r < 5; ++r) { if (r > 0 ) { context.beginPath(); context.moveTo(0,rectDay.top); context.lineTo(canvas.config.monthTicketWidth, rectDay.top); context.stroke(); } rectDay.left = 0.0; rectDay.right = w_day; for (c = 0; c < 7; ++c) { if (d_fake > d_start) { if (d <= d_lim) { if (geometry.rectanglesOverlap(rectView, rectDay)) { context.translate(rectDay.left, rectDay.top); drawDay(canvas, context, m, d, w_day, h_day, scale_categ); context.translate(-rectDay.left, -rectDay.top); } } else { break; } d = d + 1 } else if (month_overflow_d > 0) { // we need this trick so that one or two days from previous month are presented in // current month if (geometry.rectanglesOverlap(rectView, rectDay)) { context.translate(rectDay.left, rectDay.top); drawDay(canvas, context, m-1, month_overflow_d, w_day, h_day, scale_categ); context.translate(-rectDay.left, -rectDay.top); } ++month_overflow_d; } rectDay.left = rectDay.right; rectDay.right += w_day; d_fake = d_fake + 1 } rectDay.top = rectDay.bottom; rectDay.bottom += h_day; } } function performRedraw (canvas, context) { // Clear the entire canvas //var p1 = context.transformedPoint(0,0); //var p2 = context.transformedPoint(canvas.width,canvas.height); //context.clearRect(p1.x,p1.y,p2.x-p1.x,p2.y-p1.y); // Store the current transformation matrix context.internal_change = 1; context.save(); // Use the identity matrix while clearing the canvas context.setTransform(1, 0, 0, 1, 0, 0); context.clearRect(0, 0, canvas.width, canvas.height); context.restore(); // Restore the transform context.internal_change = undefined; canvas.config.monthLayout(canvas, context, drawMonth); // images, vectors and text canvas.sd_images.forEach(function(item){ item.draw(canvas, context); }); canvas.sd_vectors.forEach(function(item){ item.draw(canvas, context); }); canvas.sd_html.forEach(function(item){ item.draw(canvas, context); }); // overlay if (canvas.overlay) { canvas.overlay(context); } } return { //now: performRedraw //now: function(canvas, context) { setTimeout(function() { performRedraw(canvas, context); }, 0); } // now: function(canvas, context) { // setTimeout(function() { // performRedraw(canvas, context); // }, 0); // } now: function(canvas, context) { window.requestAnimationFrame(function() { performRedraw(canvas, context); }); } }; });
{ "content_hash": "9301d3e49ebdccb29ecfc9f00bb79142", "timestamp": "", "source": "github", "line_count": 172, "max_line_length": 107, "avg_line_length": 35.401162790697676, "alnum_prop": 0.5081294136968304, "repo_name": "TNick/ccr", "id": "2b2baff7b89182645f202e48bde96c4b2bdbc51b", "size": "6089", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "php/jscript/ccr/redraw.js", "mode": "33188", "license": "mit", "language": [ { "name": "C++", "bytes": "38841" }, { "name": "CSS", "bytes": "24663" }, { "name": "IDL", "bytes": "930" }, { "name": "JavaScript", "bytes": "286691" }, { "name": "PHP", "bytes": "6217" }, { "name": "Shell", "bytes": "1023" } ] }
SYNONYM #### According to The Catalogue of Life, 3rd January 2011 #### Published in Bull. Torrey bot. Club 34: 474 (1907) #### Original name Trametes luzonensis Murrill, 1907 ### Remarks null
{ "content_hash": "f8ef158ae090322b7488f34ab77d9c38", "timestamp": "", "source": "github", "line_count": 13, "max_line_length": 39, "avg_line_length": 15, "alnum_prop": 0.7128205128205128, "repo_name": "mdoering/backbone", "id": "a1377922a02e4f35288643322976c0f1bcb2b573", "size": "252", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "life/Fungi/Basidiomycota/Agaricomycetes/Polyporales/Polyporaceae/Trametes/Trametes modesta/ Syn. Trametes luzonensis/README.md", "mode": "33188", "license": "apache-2.0", "language": [] }
<?xml version="1.0" encoding="UTF-8"?> <container xmlns="http://symfony.com/schema/dic/services" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd"> <parameters> <parameter key="datasource.twig.extension.class">FSi\Bundle\DataSourceBundle\Twig\Extension\DataSourceExtension</parameter> </parameters> <services> <service id="datasource.twig.extension" class="%datasource.twig.extension.class%" public="false"> <tag name="twig.extension" /> <argument type="service" id="service_container" /> <argument>%datasource.twig.template%</argument> </service> </services> </container>
{ "content_hash": "2290ffa0b7c8c5c4be3f03e7d77f471a", "timestamp": "", "source": "github", "line_count": 18, "max_line_length": 131, "avg_line_length": 43.333333333333336, "alnum_prop": 0.6807692307692308, "repo_name": "fsi-open/datasource-bundle", "id": "03d32f43f751121ce2c0436d1b30480833d4e96a", "size": "780", "binary": false, "copies": "2", "ref": "refs/heads/master", "path": "Resources/config/twig.xml", "mode": "33188", "license": "mit", "language": [ { "name": "HTML", "bytes": "2649" }, { "name": "PHP", "bytes": "121611" } ] }
ShiningSeaMultisite::Application.configure do # Settings specified here will take precedence over those in config/application.rb # The test environment is used exclusively to run your application's # test suite. You never need to work with it otherwise. Remember that # your test database is "scratch space" for the test suite and is wiped # and recreated between test runs. Don't rely on the data there! config.cache_classes = true # Configure static asset server for tests with Cache-Control for performance config.serve_static_assets = true config.static_cache_control = "public, max-age=3600" # Log error messages when you accidentally call methods on nil config.whiny_nils = true # Show full error reports and disable caching config.consider_all_requests_local = true config.action_controller.perform_caching = false # Raise exceptions instead of rendering exception templates config.action_dispatch.show_exceptions = false # Disable request forgery protection in test environment config.action_controller.allow_forgery_protection = false # Tell Action Mailer not to deliver emails to the real world. # The :test delivery method accumulates sent emails in the # ActionMailer::Base.deliveries array. config.action_mailer.delivery_method = :test config.action_mailer.default_url_options = { :host => 'localhost:3000' } # Raise exception on mass assignment protection for Active Record models config.active_record.mass_assignment_sanitizer = :strict # Print deprecation notices to the stderr config.active_support.deprecation = :stderr end
{ "content_hash": "b9c86185f3c7566d6d995bc99329dfa3", "timestamp": "", "source": "github", "line_count": 38, "max_line_length": 84, "avg_line_length": 42.473684210526315, "alnum_prop": 0.7688971499380421, "repo_name": "measuredvoice/shining-sea-multisite", "id": "22daeea5c8028f80b0dcd1b1b9011b9a0e03407c", "size": "1614", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "config/environments/test.rb", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "11524" }, { "name": "HTML", "bytes": "30590" }, { "name": "JavaScript", "bytes": "5258" }, { "name": "Ruby", "bytes": "96775" } ] }
ACCEPTED #### According to International Plant Names Index #### Published in null #### Original name null ### Remarks null
{ "content_hash": "f3a9d622de2dd5ddca66d311be4a63b5", "timestamp": "", "source": "github", "line_count": 13, "max_line_length": 31, "avg_line_length": 9.692307692307692, "alnum_prop": 0.7063492063492064, "repo_name": "mdoering/backbone", "id": "31c470a1431e48594383b2f07cbfd4d659c6f3e6", "size": "180", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "life/Plantae/Magnoliophyta/Magnoliopsida/Lamiales/Acanthaceae/Petalidium/Petalidium cirrhiferum/README.md", "mode": "33188", "license": "apache-2.0", "language": [] }
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>mathcomp-solvable: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" rel="stylesheet"> <link href="../../../../../bootstrap-custom.css" rel="stylesheet"> <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet"> <script src="../../../../../moment.min.js"></script> <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --> <!-- WARNING: Respond.js doesn't work if you view the page via file:// --> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif]--> </head> <body> <div class="container"> <div class="navbar navbar-default" role="navigation"> <div class="container-fluid"> <div class="navbar-header"> <a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a> </div> <div id="navbar" class="collapse navbar-collapse"> <ul class="nav navbar-nav"> <li><a href="../..">clean / released</a></li> <li class="active"><a href="">8.5.2~camlp4 / mathcomp-solvable - 1.15.0</a></li> </ul> </div> </div> </div> <div class="article"> <div class="row"> <div class="col-md-12"> <a href="../..">« Up</a> <h1> mathcomp-solvable <small> 1.15.0 <span class="label label-info">Not compatible 👼</span> </small> </h1> <p>📅 <em><script>document.write(moment("2022-10-29 00:16:15 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2022-10-29 00:16:15 UTC)</em><p> <h2>Context</h2> <pre># Packages matching: installed # Name # Installed # Synopsis base-bigarray base base-num base Num library distributed with the OCaml compiler base-threads base base-unix base camlp4 4.04+1 Camlp4 is a system for writing extensible parsers for programming languages conf-findutils 1 Virtual package relying on findutils coq 8.5.2~camlp4 Formal proof management system num 0 The Num library for arbitrary-precision integer and rational arithmetic ocaml 4.04.2 The OCaml compiler (virtual package) ocaml-base-compiler 4.04.2 Official 4.04.2 release ocaml-config 1 OCaml Switch Configuration ocamlbuild 0.14.2 OCamlbuild is a build system with builtin rules to easily build most OCaml projects # opam file: opam-version: &quot;2.0&quot; maintainer: &quot;Mathematical Components &lt;mathcomp-dev@sympa.inria.fr&gt;&quot; homepage: &quot;https://math-comp.github.io/&quot; bug-reports: &quot;https://github.com/math-comp/math-comp/issues&quot; dev-repo: &quot;git+https://github.com/math-comp/math-comp.git&quot; license: &quot;CECILL-B&quot; build: [ make &quot;-C&quot; &quot;mathcomp/solvable&quot; &quot;-j&quot; &quot;%{jobs}%&quot; ] install: [ make &quot;-C&quot; &quot;mathcomp/solvable&quot; &quot;install&quot; ] depends: [ &quot;coq-mathcomp-algebra&quot; { = version } ] tags: [ &quot;keyword:finite groups&quot; &quot;keyword:Feit Thompson theorem&quot; &quot;keyword:small scale reflection&quot; &quot;keyword:mathematical components&quot; &quot;keyword:odd order theorem&quot; &quot;logpath:mathcomp.solvable&quot; ] authors: [ &quot;Jeremy Avigad &lt;&gt;&quot; &quot;Andrea Asperti &lt;&gt;&quot; &quot;Stephane Le Roux &lt;&gt;&quot; &quot;Yves Bertot &lt;&gt;&quot; &quot;Laurence Rideau &lt;&gt;&quot; &quot;Enrico Tassi &lt;&gt;&quot; &quot;Ioana Pasca &lt;&gt;&quot; &quot;Georges Gonthier &lt;&gt;&quot; &quot;Sidi Ould Biha &lt;&gt;&quot; &quot;Cyril Cohen &lt;&gt;&quot; &quot;Francois Garillot &lt;&gt;&quot; &quot;Alexey Solovyev &lt;&gt;&quot; &quot;Russell O&#39;Connor &lt;&gt;&quot; &quot;Laurent Théry &lt;&gt;&quot; &quot;Assia Mahboubi &lt;&gt;&quot; ] synopsis: &quot;Mathematical Components Library on finite groups (II)&quot; description:&quot;&quot;&quot; This library contains more definitions and theorems about finite groups. &quot;&quot;&quot; url { src: &quot;https://github.com/math-comp/math-comp/archive/mathcomp-1.15.0.tar.gz&quot; checksum: &quot;sha256=33105615c937ae1661e12e9bc00e0dbad143c317a6ab78b1a15e1d28339d2d95&quot; } </pre> <h2>Lint</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> </dl> <h2>Dry install 🏜️</h2> <p>Dry install with the current Coq version:</p> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam install -y --show-action coq-mathcomp-solvable.1.15.0 coq.8.5.2~camlp4</code></dd> <dt>Return code</dt> <dd>5120</dd> <dt>Output</dt> <dd><pre>[NOTE] Package coq is already installed (current version is 8.5.2~camlp4). The following dependencies couldn&#39;t be met: - coq-mathcomp-solvable -&gt; coq-mathcomp-algebra &gt;= 1.15.0 -&gt; coq-mathcomp-fingroup &gt;= 1.15.0 -&gt; coq-mathcomp-ssreflect &gt;= 1.15.0 -&gt; coq &gt;= 8.13 -&gt; ocaml &gt;= 4.05.0 base of this switch (use `--unlock-base&#39; to force) No solution found, exiting </pre></dd> </dl> <p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam remove -y coq; opam install -y --show-action --unlock-base coq-mathcomp-solvable.1.15.0</code></dd> <dt>Return code</dt> <dd>0</dd> </dl> <h2>Install dependencies</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>0 s</dd> </dl> <h2>Install 🚀</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>0 s</dd> </dl> <h2>Installation size</h2> <p>No files were installed.</p> <h2>Uninstall 🧹</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Missing removes</dt> <dd> none </dd> <dt>Wrong removes</dt> <dd> none </dd> </dl> </div> </div> </div> <hr/> <div class="footer"> <p class="text-center"> Sources are on <a href="https://github.com/coq-bench">GitHub</a> © Guillaume Claret 🐣 </p> </div> </div> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <script src="../../../../../bootstrap.min.js"></script> </body> </html>
{ "content_hash": "b0f0a488d21ba96619d6a855435d55bc", "timestamp": "", "source": "github", "line_count": 159, "max_line_length": 554, "avg_line_length": 48.716981132075475, "alnum_prop": 0.564291247095275, "repo_name": "coq-bench/coq-bench.github.io", "id": "8907ee0021b3950c04b83db4f84d1ed99c865231", "size": "7772", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "clean/Linux-x86_64-4.04.2-2.0.5/released/8.5.2~camlp4/mathcomp-solvable/1.15.0.html", "mode": "33188", "license": "mit", "language": [] }
package org.properssl.sslcertx.mariadb.jdbc.internal.mysql.packet.commands; import java.io.IOException; import java.io.OutputStream; import org.properssl.sslcertx.mariadb.jdbc.internal.common.packet.CommandPacket; import org.properssl.sslcertx.mariadb.jdbc.internal.common.packet.PacketOutputStream; public class MySQLPingPacket implements CommandPacket { public MySQLPingPacket() { } public int send(final OutputStream os) throws IOException { PacketOutputStream pos=(PacketOutputStream)os; pos.startPacket(0); pos.write(0x0e); pos.finishPacket(); return 0; } }
{ "content_hash": "1816abde0d7f5c4a3b6f4c5fa2d17d12", "timestamp": "", "source": "github", "line_count": 22, "max_line_length": 85, "avg_line_length": 28.363636363636363, "alnum_prop": 0.7467948717948718, "repo_name": "properssl/sslcertx", "id": "6989148069ff15e6f45bcb891fffe42d4df88263", "size": "2974", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "src/main/java/org/properssl/sslcertx/mariadb/jdbc/internal/mysql/packet/commands/MySQLPingPacket.java", "mode": "33188", "license": "mit", "language": [ { "name": "Java", "bytes": "1044881" }, { "name": "Shell", "bytes": "117" } ] }
package org.hibernate.metamodel.domain; /** * Additional contract for things that can occur in an inheritance hierarchy (specifically ones we would * need to traverse). * * @author Steve Ebersole */ public interface Hierarchical extends AttributeContainer { /** * Retrieve the super type. * * @return The super type, or null if no super type. */ public Hierarchical getSuperType(); }
{ "content_hash": "0d6468008a8355b9a0eecbbc49ebd5f7", "timestamp": "", "source": "github", "line_count": 17, "max_line_length": 104, "avg_line_length": 23.58823529411765, "alnum_prop": 0.7281795511221946, "repo_name": "HerrB92/obp", "id": "fd587b0a1f88f4f843399cfee473e6a91a0eeb55", "size": "1442", "binary": false, "copies": "2", "ref": "refs/heads/master", "path": "OpenBeaconPackage/libraries/hibernate-release-4.2.7.SP1/project/hibernate-core/src/main/java/org/hibernate/metamodel/domain/Hierarchical.java", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "181658" }, { "name": "Groovy", "bytes": "98685" }, { "name": "Java", "bytes": "34621856" }, { "name": "JavaScript", "bytes": "356255" }, { "name": "Shell", "bytes": "194" }, { "name": "XSLT", "bytes": "21372" } ] }
package oneview import ( "github.com/HewlettPackard/oneview-golang/ov" "github.com/HewlettPackard/oneview-golang/utils" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "log" ) func resourceNetworkSet() *schema.Resource { return &schema.Resource{ Create: resourceNetworkSetCreate, Read: resourceNetworkSetRead, Update: resourceNetworkSetUpdate, Delete: resourceNetworkSetDelete, Importer: &schema.ResourceImporter{ State: schema.ImportStatePassthrough, }, Schema: map[string]*schema.Schema{ "name": { Type: schema.TypeString, Required: true, }, "network_uris": { Type: schema.TypeSet, Optional: true, Elem: &schema.Schema{Type: schema.TypeString}, Set: schema.HashString, }, "native_network_uri": { Type: schema.TypeString, Optional: true, }, "type": { Type: schema.TypeString, Optional: true, Default: "network-set", }, "connection_template_uri": { Type: schema.TypeString, Computed: true, }, "created": { Type: schema.TypeString, Computed: true, }, "modified": { Type: schema.TypeString, Computed: true, }, "description": { Type: schema.TypeString, Optional: true, }, "uri": { Type: schema.TypeString, Computed: true, }, "status": { Type: schema.TypeString, Computed: true, }, "category": { Type: schema.TypeString, Computed: true, }, "state": { Type: schema.TypeString, Computed: true, }, "etag": { Type: schema.TypeString, Computed: true, }, "scopes_uri": { Type: schema.TypeString, Computed: true, }, "initial_scope_uris": { Optional: true, Type: schema.TypeSet, Elem: &schema.Schema{ Type: schema.TypeString, }, Set: schema.HashString, }, "network_set_type": { Type: schema.TypeString, Optional: true, }, }, } } func resourceNetworkSetCreate(d *schema.ResourceData, meta interface{}) error { config := meta.(*Config) rawNetUris := d.Get("network_uris").(*schema.Set).List() netUris := make([]utils.Nstring, len(rawNetUris)) for i, raw := range rawNetUris { netUris[i] = utils.NewNstring(raw.(string)) } netSet := ov.NetworkSet{ Name: d.Get("name").(string), NetworkUris: netUris, Type: d.Get("type").(string), NativeNetworkUri: utils.NewNstring(d.Get("native_network_uri").(string)), } if val, ok := d.GetOk("initial_scope_uris"); ok { rawInitialScopeUris := val.(*schema.Set).List() initialScopeUris := make([]utils.Nstring, len(rawInitialScopeUris)) for i, raw := range rawInitialScopeUris { initialScopeUris[i] = utils.Nstring(raw.(string)) } netSet.InitialScopeUris = initialScopeUris } if val, ok := d.GetOk("network_set_type"); ok { netSet.NetworkSetType = val.(string) } netSetError := config.ovClient.CreateNetworkSet(netSet) d.SetId(d.Get("name").(string)) if netSetError != nil { d.SetId("") return netSetError } return resourceNetworkSetRead(d, meta) } func resourceNetworkSetRead(d *schema.ResourceData, meta interface{}) error { config := meta.(*Config) netSet, err := config.ovClient.GetNetworkSetByName(d.Id()) if err != nil || netSet.URI.IsNil() { d.SetId("") return nil } d.Set("name", netSet.Name) d.Set("type", netSet.Type) d.Set("created", netSet.Created) d.Set("description", netSet.Description) d.Set("etag", netSet.ETAG) d.Set("modified", netSet.Modified) d.Set("native_network_uri", netSet.NativeNetworkUri) d.Set("uri", netSet.URI.String()) d.Set("connection_template_uri", netSet.ConnectionTemplateUri.String()) d.Set("status", netSet.Status) d.Set("category", netSet.Category) d.Set("state", netSet.State) networkUris := make([]interface{}, len(netSet.NetworkUris)) for i := 0; i < len(netSet.NetworkUris); i++ { networkUris[i] = netSet.NetworkUris[i].String() } rawNetUris := d.Get("network_uris").(*schema.Set).List() for i, currNetworkUri := range rawNetUris { for j := 0; j < len(networkUris); j++ { if currNetworkUri.(string) == networkUris[j] && i <= len(networkUris)-1 { networkUris[i], networkUris[j] = networkUris[j], networkUris[i] } } } d.Set("network_uris", networkUris) d.Set("scopes_uri", netSet.ScopesUri) d.Set("network_set_type", netSet.NetworkSetType) // reads scopes from network set scopes, err := config.ovClient.GetScopeFromResource(netSet.URI.String()) if err != nil { log.Printf("unable to fetch scopes: %s", err) } else { d.Set("initial_scope_uris", scopes.ScopeUris) } return nil } func resourceNetworkSetUpdate(d *schema.ResourceData, meta interface{}) error { config := meta.(*Config) rawNetUris := d.Get("network_uris").(*schema.Set).List() netUris := make([]utils.Nstring, len(rawNetUris)) for i, raw := range rawNetUris { netUris[i] = utils.NewNstring(raw.(string)) } newNetSet := ov.NetworkSet{ ETAG: d.Get("etag").(string), URI: utils.NewNstring(d.Get("uri").(string)), Name: d.Get("name").(string), ConnectionTemplateUri: utils.NewNstring(d.Get("connection_template_uri").(string)), Type: d.Get("type").(string), NativeNetworkUri: utils.NewNstring(d.Get("native_network_uri").(string)), NetworkUris: netUris, } if val, ok := d.GetOk("network_set_type"); ok { newNetSet.NetworkSetType = val.(string) } if d.HasChange("initial_scope_uris") { // updates scopes on network set val := d.Get("initial_scope_uris").(*schema.Set).List() err := UpdateScopeUris(meta, val, newNetSet.URI.String()) if err != nil { return err } } err := config.ovClient.UpdateNetworkSet(newNetSet) if err != nil { return err } d.SetId(d.Get("name").(string)) return resourceNetworkSetRead(d, meta) } func resourceNetworkSetDelete(d *schema.ResourceData, meta interface{}) error { config := meta.(*Config) err := config.ovClient.DeleteNetworkSet(d.Get("name").(string)) if err != nil { return err } return nil }
{ "content_hash": "9a582d9d8c4781802f924a53b459e3ff", "timestamp": "", "source": "github", "line_count": 232, "max_line_length": 85, "avg_line_length": 26.32758620689655, "alnum_prop": 0.6444007858546169, "repo_name": "HewlettPackard/terraform-provider-oneview", "id": "36089ddee3691a31a587a31e702bfa013a0ba56b", "size": "6718", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "oneview/resource_network_set.go", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Dockerfile", "bytes": "861" }, { "name": "Go", "bytes": "1339894" }, { "name": "HCL", "bytes": "2157" } ] }
<component name="ProjectRunConfigurationManager"> <configuration default="false" name="spec: rails-blogger" type="RakeRunConfigurationType" factoryName="Rake"> <module name="rails-blogger" /> <RAKE_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" /> <RAKE_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="$MODULE_DIR$" /> <RAKE_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" /> <RAKE_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" /> <RAKE_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" /> <envs /> <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" /> <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" /> <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov" /> <EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" /> <RAKE_RUN_CONFIG_SETTINGS_ID NAME="RAKE_TASK_NAME" VALUE="spec" /> <RAKE_RUN_CONFIG_SETTINGS_ID NAME="RAKE_TASK_ARGS" VALUE="" /> <RAKE_RUN_CONFIG_SETTINGS_ID NAME="RAKE_TASK_ATTACHED_TEST_FRAMEWORKS" VALUE=":rspec " /> <RAKE_RUN_CONFIG_SETTINGS_ID NAME="RAKE_TASK_OPTION_TRACE" VALUE="false" /> <RAKE_RUN_CONFIG_SETTINGS_ID NAME="RAKE_TASK_OPTION_DRYRUN" VALUE="false" /> <RAKE_RUN_CONFIG_SETTINGS_ID NAME="RAKE_TASK_OPTION_PREREQS" VALUE="false" /> <method /> </configuration> </component>
{ "content_hash": "75879617e8c8e3b7d0d5fbf4922ce136", "timestamp": "", "source": "github", "line_count": 22, "max_line_length": 139, "avg_line_length": 70.5, "alnum_prop": 0.708575112830432, "repo_name": "arthur-vieira/rails-blogger", "id": "cb68942baf4e41a99c7b133ce0bcd996a8f753b0", "size": "1551", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": ".idea/runConfigurations/spec__rails_blogger.xml", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "CSS", "bytes": "1877" }, { "name": "CoffeeScript", "bytes": "844" }, { "name": "HTML", "bytes": "11709" }, { "name": "JavaScript", "bytes": "661" }, { "name": "Ruby", "bytes": "49889" } ] }
'use strict'; // Use Application configuration module to register a new module ApplicationConfiguration.registerModule('content');
{ "content_hash": "f02c1c3e7a581b1ae690e3bdde91f6e2", "timestamp": "", "source": "github", "line_count": 4, "max_line_length": 64, "avg_line_length": 33, "alnum_prop": 0.8106060606060606, "repo_name": "tomkaX/kleo", "id": "aaac0fb457295f661f5dc5c21e1036c2351c958d", "size": "132", "binary": false, "copies": "3", "ref": "refs/heads/master", "path": "modules/content/client/content.client.module.js", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "8128" }, { "name": "HTML", "bytes": "52205" }, { "name": "JavaScript", "bytes": "198308" }, { "name": "Shell", "bytes": "685" } ] }
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>stdpp: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" rel="stylesheet"> <link href="../../../../../bootstrap-custom.css" rel="stylesheet"> <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet"> <script src="../../../../../moment.min.js"></script> <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --> <!-- WARNING: Respond.js doesn't work if you view the page via file:// --> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif]--> </head> <body> <div class="container"> <div class="navbar navbar-default" role="navigation"> <div class="container-fluid"> <div class="navbar-header"> <a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a> </div> <div id="navbar" class="collapse navbar-collapse"> <ul class="nav navbar-nav"> <li><a href="../..">clean / released</a></li> <li class="active"><a href="">8.11.2 / stdpp - 1.2.1</a></li> </ul> </div> </div> </div> <div class="article"> <div class="row"> <div class="col-md-12"> <a href="../..">« Up</a> <h1> stdpp <small> 1.2.1 <span class="label label-info">Not compatible 👼</span> </small> </h1> <p>📅 <em><script>document.write(moment("2022-03-25 16:47:04 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2022-03-25 16:47:04 UTC)</em><p> <h2>Context</h2> <pre># Packages matching: installed # Name # Installed # Synopsis base-bigarray base base-threads base base-unix base conf-findutils 1 Virtual package relying on findutils coq 8.11.2 Formal proof management system num 1.4 The legacy Num library for arbitrary-precision integer and rational arithmetic ocaml 4.06.1 The OCaml compiler (virtual package) ocaml-base-compiler 4.06.1 Official 4.06.1 release ocaml-config 1 OCaml Switch Configuration ocamlfind 1.9.3 A library manager for OCaml # opam file: opam-version: &quot;2.0&quot; name: &quot;coq-stdpp&quot; maintainer: &quot;Ralf Jung &lt;jung@mpi-sws.org&gt;&quot; homepage: &quot;https://gitlab.mpi-sws.org/iris/stdpp&quot; authors: &quot;Robbert Krebbers, Jacques-Henri Jourdan, Ralf Jung&quot; bug-reports: &quot;https://gitlab.mpi-sws.org/iris/stdpp/issues&quot; license: &quot;BSD&quot; dev-repo: &quot;git+https://gitlab.mpi-sws.org/iris/stdpp.git&quot; tags: [ &quot;date:2019-08-29&quot; ] synopsis: &quot;std++ is an extended \&quot;Standard Library\&quot; for Coq&quot; description: &quot;&quot;&quot; The key features of this library are as follows: - It provides a great number of definitions and lemmas for common data structures such as lists, finite maps, finite sets, and finite multisets. - It uses type classes for common notations (like `∅`, `∪`, and Haskell-style monad notations) so that these can be overloaded for different data structures. - It uses type classes to keep track of common properties of types, like it having decidable equality or being countable or finite. - Most data structures are represented in canonical ways so that Leibniz equality can be used as much as possible (for example, for maps we have `m1 = m2` iff `∀ i, m1 !! i = m2 !! i`). On top of that, the library provides setoid instances for most types and operations. - It provides various tactics for common tasks, like an ssreflect inspired `done` tactic for finishing trivial goals, a simple breadth-first solver `naive_solver`, an equality simplifier `simplify_eq`, a solver `solve_proper` for proving compatibility of functions with respect to relations, and a solver `set_solver` for goals involving set operations. - It is entirely dependency- and axiom-free.&quot;&quot;&quot; depends: [ &quot;coq&quot; {(&gt;= &quot;8.7.2&quot; &amp; &lt; &quot;8.11~&quot;) | (= &quot;dev&quot;)} ] build: [make &quot;-j%{jobs}%&quot;] install: [make &quot;install&quot;] url { src: &quot;https://gitlab.mpi-sws.org/iris/stdpp/-/archive/coq-stdpp-1.2.1.tar.gz&quot; checksum: &quot;sha512=8eb04e9a70a9be0b7a9565516d03952ec9c54cb7abe20ddea4d27ceb3c18022fdf2f1409df6988092741a0e5e9086f852dc2eb3e7bdc4f4eff91b2baa72c16af&quot; } </pre> <h2>Lint</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> </dl> <h2>Dry install 🏜️</h2> <p>Dry install with the current Coq version:</p> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam install -y --show-action coq-stdpp.1.2.1 coq.8.11.2</code></dd> <dt>Return code</dt> <dd>5120</dd> <dt>Output</dt> <dd><pre>[NOTE] Package coq is already installed (current version is 8.11.2). The following dependencies couldn&#39;t be met: - coq-stdpp -&gt; coq (&lt; 8.11~ &amp; = dev) -&gt; ocaml &lt; 4.06.0 base of this switch (use `--unlock-base&#39; to force) Your request can&#39;t be satisfied: - No available version of coq satisfies the constraints No solution found, exiting </pre></dd> </dl> <p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam remove -y coq; opam install -y --show-action --unlock-base coq-stdpp.1.2.1</code></dd> <dt>Return code</dt> <dd>0</dd> </dl> <h2>Install dependencies</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>0 s</dd> </dl> <h2>Install 🚀</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>0 s</dd> </dl> <h2>Installation size</h2> <p>No files were installed.</p> <h2>Uninstall 🧹</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Missing removes</dt> <dd> none </dd> <dt>Wrong removes</dt> <dd> none </dd> </dl> </div> </div> </div> <hr/> <div class="footer"> <p class="text-center"> Sources are on <a href="https://github.com/coq-bench">GitHub</a> © Guillaume Claret 🐣 </p> </div> </div> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <script src="../../../../../bootstrap.min.js"></script> </body> </html>
{ "content_hash": "5971c73473a1795f74c4291f654658d8", "timestamp": "", "source": "github", "line_count": 179, "max_line_length": 159, "avg_line_length": 43.726256983240226, "alnum_prop": 0.5690558323751118, "repo_name": "coq-bench/coq-bench.github.io", "id": "85e78a2066562c7fcb6f3d8be846eb30c4f1db36", "size": "7858", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "clean/Linux-x86_64-4.06.1-2.0.5/released/8.11.2/stdpp/1.2.1.html", "mode": "33188", "license": "mit", "language": [] }
import 'babel-polyfill'; import Application from './app'; let app = new Application(); app.start(); export default app;
{ "content_hash": "06c9e5127ff673155689eb57dbe82925", "timestamp": "", "source": "github", "line_count": 9, "max_line_length": 32, "avg_line_length": 13.777777777777779, "alnum_prop": 0.7016129032258065, "repo_name": "Windstalker/nest-test-app", "id": "0b6674c08dc586e115f51793be304fac753183dc", "size": "124", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "src/index.js", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "2026" }, { "name": "HTML", "bytes": "1013" }, { "name": "JavaScript", "bytes": "12813" } ] }
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!-- NewPage --> <html lang="en"> <head> <!-- Generated by javadoc (version 1.7.0_45) on Tue Jan 19 17:23:54 GMT 2016 --> <meta http-equiv="Content-Type" content="text/html" charset="UTF-8"> <title>com.github.rvesse.airline.restrictions.options (Airline - Library 2.1.1 API)</title> <meta name="date" content="2016-01-19"> <link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style"> </head> <body> <script type="text/javascript"><!-- if (location.href.indexOf('is-external=true') == -1) { parent.document.title="com.github.rvesse.airline.restrictions.options (Airline - Library 2.1.1 API)"; } //--> </script> <noscript> <div>JavaScript is disabled on your browser.</div> </noscript> <!-- ========= START OF TOP NAVBAR ======= --> <div class="topNav"><a name="navbar_top"> <!-- --> </a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow"> <!-- --> </a> <ul class="navList" title="Navigation"> <li><a href="../../../../../../overview-summary.html">Overview</a></li> <li class="navBarCell1Rev">Package</li> <li>Class</li> <li><a href="package-use.html">Use</a></li> <li><a href="package-tree.html">Tree</a></li> <li><a href="../../../../../../deprecated-list.html">Deprecated</a></li> <li><a href="../../../../../../index-all.html">Index</a></li> <li><a href="../../../../../../help-doc.html">Help</a></li> </ul> </div> <div class="subNav"> <ul class="navList"> <li><a href="../../../../../../com/github/rvesse/airline/restrictions/global/package-summary.html">Prev Package</a></li> <li><a href="../../../../../../com/github/rvesse/airline/utils/package-summary.html">Next Package</a></li> </ul> <ul class="navList"> <li><a href="../../../../../../index.html?com/github/rvesse/airline/restrictions/options/package-summary.html" target="_top">Frames</a></li> <li><a href="package-summary.html" target="_top">No Frames</a></li> </ul> <ul class="navList" id="allclasses_navbar_top"> <li><a href="../../../../../../allclasses-noframe.html">All Classes</a></li> </ul> <div> <script type="text/javascript"><!-- allClassesLink = document.getElementById("allclasses_navbar_top"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } //--> </script> </div> <a name="skip-navbar_top"> <!-- --> </a></div> <!-- ========= END OF TOP NAVBAR ========= --> <div class="header"> <h1 title="Package" class="title">Package&nbsp;com.github.rvesse.airline.restrictions.options</h1> </div> <div class="contentContainer"> <ul class="blockList"> <li class="blockList"> <table class="packageSummary" border="0" cellpadding="3" cellspacing="0" summary="Class Summary table, listing classes, and an explanation"> <caption><span>Class Summary</span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colFirst" scope="col">Class</th> <th class="colLast" scope="col">Description</th> </tr> <tbody> <tr class="altColor"> <td class="colFirst"><a href="../../../../../../com/github/rvesse/airline/restrictions/options/MutuallyExclusiveRestriction.html" title="class in com.github.rvesse.airline.restrictions.options">MutuallyExclusiveRestriction</a></td> <td class="colLast">&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><a href="../../../../../../com/github/rvesse/airline/restrictions/options/RequiredOnlyIfRestriction.html" title="class in com.github.rvesse.airline.restrictions.options">RequiredOnlyIfRestriction</a></td> <td class="colLast">&nbsp;</td> </tr> <tr class="altColor"> <td class="colFirst"><a href="../../../../../../com/github/rvesse/airline/restrictions/options/RequireFromRestriction.html" title="class in com.github.rvesse.airline.restrictions.options">RequireFromRestriction</a></td> <td class="colLast">&nbsp;</td> </tr> </tbody> </table> </li> </ul> </div> <!-- ======= START OF BOTTOM NAVBAR ====== --> <div class="bottomNav"><a name="navbar_bottom"> <!-- --> </a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow"> <!-- --> </a> <ul class="navList" title="Navigation"> <li><a href="../../../../../../overview-summary.html">Overview</a></li> <li class="navBarCell1Rev">Package</li> <li>Class</li> <li><a href="package-use.html">Use</a></li> <li><a href="package-tree.html">Tree</a></li> <li><a href="../../../../../../deprecated-list.html">Deprecated</a></li> <li><a href="../../../../../../index-all.html">Index</a></li> <li><a href="../../../../../../help-doc.html">Help</a></li> </ul> </div> <div class="subNav"> <ul class="navList"> <li><a href="../../../../../../com/github/rvesse/airline/restrictions/global/package-summary.html">Prev Package</a></li> <li><a href="../../../../../../com/github/rvesse/airline/utils/package-summary.html">Next Package</a></li> </ul> <ul class="navList"> <li><a href="../../../../../../index.html?com/github/rvesse/airline/restrictions/options/package-summary.html" target="_top">Frames</a></li> <li><a href="package-summary.html" target="_top">No Frames</a></li> </ul> <ul class="navList" id="allclasses_navbar_bottom"> <li><a href="../../../../../../allclasses-noframe.html">All Classes</a></li> </ul> <div> <script type="text/javascript"><!-- allClassesLink = document.getElementById("allclasses_navbar_bottom"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } //--> </script> </div> <a name="skip-navbar_bottom"> <!-- --> </a></div> <!-- ======== END OF BOTTOM NAVBAR ======= --> <p class="legalCopy"><small>Copyright &#169; 2012&#x2013;2016. All rights reserved.</small></p> </body> </html>
{ "content_hash": "73de4215380048b692ea0b1a136ee64e", "timestamp": "", "source": "github", "line_count": 143, "max_line_length": 231, "avg_line_length": 40.23076923076923, "alnum_prop": 0.6337563010603163, "repo_name": "rvesse/airline", "id": "8d5fc0a31896f8592cfb4520e9596ed44c970a32", "size": "5753", "binary": false, "copies": "1", "ref": "refs/heads/main", "path": "docs/javadoc/2.1.1/airline/com/github/rvesse/airline/restrictions/options/package-summary.html", "mode": "33261", "license": "apache-2.0", "language": [ { "name": "Batchfile", "bytes": "91" }, { "name": "Java", "bytes": "2176058" }, { "name": "Shell", "bytes": "4550" } ] }
using namespace std; struct Data { string name; string phone; }; bool inputList(List *&list) { ifstream input("input.txt"); if (!input.is_open()) { cout << "îøèáêà. ôàéë íå íàéäåí" << endl; return false; } string newRecord = ""; getline(input, newRecord); if (newRecord == "") { cout << "ïóñòîé ôàéë" << endl; return false; } do { int spacePosition = newRecord.find(' '); string newName = newRecord.substr(0, spacePosition); string newPhone = newRecord.erase(0, spacePosition + 1); Data newEntry = { newName, newPhone }; addToEnd(list, newEntry); } while (getline(input, newRecord)); input.close(); return true; } List *merge(List *&firstHalf, List *&secondHalf, const bool sortPhone) { List *list = createList(); while (sizeOfList(firstHalf) != 0 && sizeOfList(secondHalf) != 0) { if (read(firstHalf).phone < read(secondHalf).phone && sortPhone || read(firstHalf).name < read(secondHalf).name && !sortPhone) { addToEnd(list, pop(firstHalf)); } else { addToEnd(list, pop(secondHalf)); } } if (sizeOfList(firstHalf) != 0) { const int sizeOfFirstHalf = sizeOfList(firstHalf); for (int i = 0; i < sizeOfFirstHalf; i++) { addToEnd(list, pop(firstHalf)); } } if (sizeOfList(secondHalf) != 0) { const int sizeOfSecondHalf = sizeOfList(secondHalf); for (int i = 0; i < sizeOfSecondHalf; i++) { addToEnd(list, pop(secondHalf)); } } deleteList(firstHalf); deleteList(secondHalf); return list; } List *halfSeparatedList(List *&list) { List *halfList = createList(); const int sizeOfHalfList = sizeOfList(list) / 2; for (int i = 0; i < sizeOfHalfList; i++) { addToEnd(halfList, pop(list)); } return halfList; } void mergeSort(List *&list, const bool sortPhone) { if (sizeOfList(list) <= 1) { return; } List* firstHalf = halfSeparatedList(list); List* secondHalf = list; mergeSort(firstHalf, sortPhone); mergeSort(secondHalf, sortPhone); list = merge(firstHalf, secondHalf, sortPhone); } void reference() { cout << "âõîäíîé ôàéë: input.txt" << endl; cout << "çàïèñè âèäà: \"èìÿ <ïðîáåë> íîìåð òåëåôîíà\"" << endl; } int main() { setlocale(LC_ALL, "Russian"); reference(); List *list = createList(); if (!inputList(list)) { return 0; } cout << "ñîðòðîâêà ïî èìåíè: 0\nñîðòèðîâêà ïî íîìåðó òåëåôîíà: 1\nââåäèòå êîìàíäó: "; bool sortPhone = true; cin >> sortPhone; mergeSort(list, sortPhone); cout << "îòñîðòèðîâàííûé ñïèñîê:" << endl; printList(list); deleteList(list); return 0; }
{ "content_hash": "a86adaa2424b283f2d317bd139019c6c", "timestamp": "", "source": "github", "line_count": 131, "max_line_length": 86, "avg_line_length": 19.17557251908397, "alnum_prop": 0.660031847133758, "repo_name": "Alexey-Girin/homework", "id": "bcee25f08788692051e978d01a134bf211ccc95c", "size": "2588", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "semester_1/homework_6/6.4/Source.cpp", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "C", "bytes": "848" }, { "name": "C#", "bytes": "361675" }, { "name": "C++", "bytes": "106946" }, { "name": "F#", "bytes": "40541" }, { "name": "TeX", "bytes": "737" } ] }
clatter package =============== Submodules ---------- clatter.core module ------------------- .. automodule:: clatter.core :members: :undoc-members: :show-inheritance: clatter.validators module ------------------------- .. automodule:: clatter.validators :members: :undoc-members: :show-inheritance: Module contents --------------- .. automodule:: clatter :members: :undoc-members: :show-inheritance:
{ "content_hash": "c75668b145ca249cc659ebbadea92727", "timestamp": "", "source": "github", "line_count": 30, "max_line_length": 34, "avg_line_length": 14.833333333333334, "alnum_prop": 0.550561797752809, "repo_name": "delgadom/clatter", "id": "9cea452763171c271a5de5dd0178299e0c040935", "size": "445", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "docs/clatter.rst", "mode": "33188", "license": "mit", "language": [ { "name": "Makefile", "bytes": "2272" }, { "name": "Python", "bytes": "12849" } ] }
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <meta name="generator" content="Doxygen 1.8.10"/> <title>HE_Mesh: src/geom/wblut/geom/WB_Triangle.java File Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <link href="navtree.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="resize.js"></script> <script type="text/javascript" src="navtreedata.js"></script> <script type="text/javascript" src="navtree.js"></script> <script type="text/javascript"> $(document).ready(initResizable); $(window).load(resizeHeight); </script> <link href="search/search.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="search/searchdata.js"></script> <script type="text/javascript" src="search/search.js"></script> <script type="text/javascript"> $(document).ready(function() { init_search(); }); </script> <link href="doxygen.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td id="projectalign" style="padding-left: 0.5em;"> <div id="projectname">HE_Mesh &#160;<span id="projectnumber">6.0.1</span> </div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <!-- Generated by Doxygen 1.8.10 --> <script type="text/javascript"> var searchBox = new SearchBox("searchBox", "search",false,'Search'); </script> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main&#160;Page</span></a></li> <li><a href="namespaces.html"><span>Packages</span></a></li> <li><a href="annotated.html"><span>Classes</span></a></li> <li class="current"><a href="files.html"><span>Files</span></a></li> <li> <div id="MSearchBox" class="MSearchBoxInactive"> <span class="left"> <img id="MSearchSelect" src="search/mag_sel.png" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" alt=""/> <input type="text" id="MSearchField" value="Search" accesskey="S" onfocus="searchBox.OnSearchFieldFocus(true)" onblur="searchBox.OnSearchFieldFocus(false)" onkeyup="searchBox.OnSearchFieldChange(event)"/> </span><span class="right"> <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a> </span> </div> </li> </ul> </div> <div id="navrow2" class="tabs2"> <ul class="tablist"> <li><a href="files.html"><span>File&#160;List</span></a></li> </ul> </div> </div><!-- top --> <div id="side-nav" class="ui-resizable side-nav-resizable"> <div id="nav-tree"> <div id="nav-tree-contents"> <div id="nav-sync" class="sync"></div> </div> </div> <div id="splitbar" style="-moz-user-select:none;" class="ui-resizable-handle"> </div> </div> <script type="text/javascript"> $(document).ready(function(){initNavTree('_w_b___triangle_8java.html','');}); </script> <div id="doc-content"> <!-- window showing the filter options --> <div id="MSearchSelectWindow" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" onkeydown="return searchBox.OnSearchSelectKey(event)"> </div> <!-- iframe showing the search results (closed by default) --> <div id="MSearchResultsWindow"> <iframe src="javascript:void(0)" frameborder="0" name="MSearchResults" id="MSearchResults"> </iframe> </div> <div class="header"> <div class="summary"> <a href="#nested-classes">Classes</a> &#124; <a href="#namespaces">Packages</a> </div> <div class="headertitle"> <div class="title">WB_Triangle.java File Reference</div> </div> </div><!--header--> <div class="contents"> <table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a> Classes</h2></td></tr> <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classwblut_1_1geom_1_1_w_b___triangle.html">wblut.geom.WB_Triangle</a></td></tr> <tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr> </table><table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="namespaces"></a> Packages</h2></td></tr> <tr class="memitem:namespacewblut_1_1geom"><td class="memItemLeft" align="right" valign="top">package &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacewblut_1_1geom.html">wblut.geom</a></td></tr> <tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr> </table> </div><!-- contents --> </div><!-- doc-content --> <!-- start footer part --> <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> <ul> <li class="navelem"><a class="el" href="dir_abb63ba6bdd980ee47e7becce32622d5.html">src</a></li><li class="navelem"><a class="el" href="dir_28039f23bdc84069801247037dab54b5.html">geom</a></li><li class="navelem"><a class="el" href="dir_5e6470d91fe28ff2551452ee3fa30f4b.html">wblut</a></li><li class="navelem"><a class="el" href="dir_f78523ae0426caa5c66821e8fc2afc74.html">geom</a></li><li class="navelem"><a class="el" href="_w_b___triangle_8java.html">WB_Triangle.java</a></li> <li class="footer">Generated on Tue Dec 19 2017 21:20:09 for HE_Mesh by <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.10 </li> </ul> </div> </body> </html>
{ "content_hash": "b4b427ad84e3398f7ca9dea2dcebaf80", "timestamp": "", "source": "github", "line_count": 136, "max_line_length": 481, "avg_line_length": 45.01470588235294, "alnum_prop": 0.6548513557660895, "repo_name": "DweebsUnited/CodeMonkey", "id": "fb5454759aa8cf12e426d9e189e71bc218a254a8", "size": "6122", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "resources/hemesh/ref/html/_w_b___triangle_8java.html", "mode": "33188", "license": "bsd-3-clause", "language": [ { "name": "C", "bytes": "718" }, { "name": "C++", "bytes": "2748240" }, { "name": "CMake", "bytes": "11221" }, { "name": "CSS", "bytes": "896" }, { "name": "GLSL", "bytes": "1116" }, { "name": "HTML", "bytes": "887" }, { "name": "Java", "bytes": "132732" }, { "name": "Makefile", "bytes": "23824" }, { "name": "Meson", "bytes": "246" }, { "name": "Objective-C", "bytes": "810" }, { "name": "Processing", "bytes": "205574" }, { "name": "Python", "bytes": "65902" }, { "name": "Shell", "bytes": "6253" } ] }
<?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <!-- http://maven.apache.org/ref/current/maven-model/maven.html --> <modelVersion>4.0.0</modelVersion> <!-- <parent> <groupId /> <artifactId /> <version /> <relativePath /> </parent> --> <groupId>com.github.namioka.xyz1</groupId> <artifactId>xyz1</artifactId> <version>1.0.0-SNAPSHOT</version> <packaging>pom</packaging> <name>${project.artifactId}</name> <description /> <url /> <inceptionYear /> <organization /> <licenses /> <developers /> <contributors /> <mailingLists /> <prerequisites> <maven>${prerequisites.maven}</maven> </prerequisites> <scm> <developerConnection>scm:git:git@github.com:namioka/xyz1.git</developerConnection> <tag>HEAD</tag> </scm> <issueManagement /> <ciManagement /> <distributionManagement> <!-- <repository> <id>filesystem</id> <url>file:///path/to/repository/</url> </repository> --> </distributionManagement> <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> <maven.compiler.source>1.8</maven.compiler.source> <maven.compiler.target>1.8</maven.compiler.target> <prerequisites.maven>3.3.9</prerequisites.maven> </properties> <dependencyManagement> <dependencies> <!-- Java Platform, Enterprise Edition (Java EE) 7 --> <!-- <dependency> <groupId>javax</groupId> <artifactId>javaee-api</artifactId> <version>7.0</version> <scope>provided</scope> </dependency> --> <!-- <dependency> <groupId>javax</groupId> <artifactId>javaee-web-api</artifactId> <version>7.0</version> <scope>provided</scope> </dependency> --> <dependency> <groupId>javax.enterprise.concurrent</groupId> <artifactId>javax.enterprise.concurrent-api</artifactId> <version>1.0</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.eclipse.persistence</groupId> <artifactId>javax.persistence</artifactId> <version>2.1.1</version> <scope>provided</scope> </dependency> <dependency> <groupId>javax.ws.rs</groupId> <artifactId>javax.ws.rs-api</artifactId> <version>2.0.1</version> <scope>provided</scope> </dependency> <dependency> <groupId>javax.servlet</groupId> <artifactId>javax.servlet-api</artifactId> <version>3.1.0</version> <scope>provided</scope> </dependency> <dependency> <groupId>javax.el</groupId> <artifactId>javax.el-api</artifactId> <version>3.0.0</version> <scope>provided</scope> </dependency> <dependency> <groupId>javax.jms</groupId> <artifactId>javax.jms-api</artifactId> <version>2.0.1</version> <scope>provided</scope> </dependency> <dependency> <groupId>javax.faces</groupId> <artifactId>javax.faces-api</artifactId> <version>2.2</version> <scope>provided</scope> </dependency> <dependency> <groupId>javax.ejb</groupId> <artifactId>javax.ejb-api</artifactId> <version>3.2</version> <scope>provided</scope> </dependency> <dependency> <groupId>javax.enterprise</groupId> <artifactId>cdi-api</artifactId> <version>1.2</version> <scope>provided</scope> </dependency> <dependency> <groupId>javax.validation</groupId> <artifactId>validation-api</artifactId> <version>1.1.0.Final</version> <scope>provided</scope> </dependency> <dependency> <groupId>javax.batch</groupId> <artifactId>javax.batch-api</artifactId> <version>1.0.1</version> <scope>provided</scope> </dependency> <dependency> <groupId>javax.json</groupId> <artifactId>javax.json-api</artifactId> <version>1.0</version> <scope>provided</scope> </dependency> <dependency> <groupId>javax.websocket</groupId> <artifactId>javax.websocket-api</artifactId> <version>1.1</version> <scope>provided</scope> </dependency> <dependency> <groupId>javax.transaction</groupId> <artifactId>javax.transaction-api</artifactId> <version>1.2</version> <scope>provided</scope> </dependency> <dependency> <groupId>javax.resource</groupId> <artifactId>javax.resource-api</artifactId> <version>1.7</version> <scope>provided</scope> </dependency> <!-- Java Platform, Enterprise Edition (Java EE) 7 --> <dependency> <groupId>org.projectlombok</groupId> <artifactId>lombok</artifactId> <version>1.16.6</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-api</artifactId> <version>1.7.18</version> </dependency> <dependency> <groupId>org.slf4j</groupId> <artifactId>jul-to-slf4j</artifactId> <version>1.7.18</version> </dependency> <dependency> <groupId>ch.qos.logback</groupId> <artifactId>logback-classic</artifactId> <version>1.1.5</version> </dependency> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.12</version> <scope>test</scope> </dependency> <dependency> <groupId>org.hamcrest</groupId> <artifactId>hamcrest-all</artifactId> <version>1.3</version> <scope>test</scope> </dependency> <dependency> <groupId>org.mockito</groupId> <artifactId>mockito-core</artifactId> <version>1.10.19</version> <scope>test</scope> </dependency> <dependency> <groupId>org.jboss.arquillian</groupId> <artifactId>arquillian-bom</artifactId> <version>1.1.11.Final</version> <type>pom</type> <scope>import</scope> </dependency> <dependency> <groupId>org.jboss.arquillian.extension</groupId> <artifactId>arquillian-transaction-bom</artifactId> <version>1.0.3.Final</version> <type>pom</type> <scope>import</scope> </dependency> <dependency> <groupId>org.jboss.shrinkwrap.resolver</groupId> <artifactId>shrinkwrap-resolver-bom</artifactId> <version>2.2.2</version> <type>pom</type> <scope>import</scope> </dependency> <dependency> <groupId>org.jboss.arquillian.container</groupId> <artifactId>arquillian-weld-se-embedded-1.1</artifactId> <version>1.0.0.CR9</version> <scope>test</scope> </dependency> <!-- <dependency> <groupId>org.jboss.arquillian.container</groupId> <artifactId>arquillian-weld-se-embedded-1</artifactId> <version>1.0.0.CR9</version> <scope>test</scope> </dependency> <dependency> <groupId>org.jboss.arquillian.container</groupId> <artifactId>arquillian-weld-ee-embedded-1.1</artifactId> <version>1.0.0.CR9</version> <scope>test</scope> </dependency> --> <dependency> <groupId>org.jboss.weld</groupId> <artifactId>weld-core</artifactId> <version>2.3.3.Final</version> </dependency> <dependency> <groupId>org.glassfish</groupId> <artifactId>javax.el</artifactId> <version>3.0.0</version> </dependency> <!-- <dependency> <groupId>org.apache.derby</groupId> <artifactId>derbyclient</artifactId> <version>10.12.1.1</version> <scope>test</scope> </dependency> --> <dependency> <groupId>com.github.namioka.xyz1</groupId> <artifactId>xyz1-lexer-api</artifactId> <version>${project.version}</version> </dependency> <dependency> <groupId>com.github.namioka.xyz1</groupId> <artifactId>xyz1-lexer-impl</artifactId> <version>${project.version}</version> </dependency> <dependency> <groupId>com.github.namioka.xyz1</groupId> <artifactId>xyz1-parser-api</artifactId> <version>${project.version}</version> </dependency> <dependency> <groupId>com.github.namioka.xyz1</groupId> <artifactId>xyz1-parser-impl</artifactId> <version>${project.version}</version> </dependency> </dependencies> </dependencyManagement> <dependencies /> <repositories /> <pluginRepositories /> <build> <pluginManagement> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-clean-plugin</artifactId> <version>3.0.0</version> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.5.1</version> <configuration> <compilerArgs> <arg>-Xlint</arg> </compilerArgs> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-deploy-plugin</artifactId> <version>2.8.2</version> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-failsafe-plugin</artifactId> <version>2.19.1</version> <executions> <execution> <goals> <goal>integration-test</goal> <goal>verify</goal> </goals> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-install-plugin</artifactId> <version>2.5.2</version> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-resources-plugin</artifactId> <version>2.7</version> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-site-plugin</artifactId> <version>3.4</version> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <version>2.19.1</version> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-verifier-plugin</artifactId> <version>1.1</version> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-ear-plugin</artifactId> <version>2.10.1</version> <!-- <configuration> <archive> <manifest> <addDefaultImplementationEntries>true</addDefaultImplementationEntries> </manifest> </archive> </configuration> --> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-ejb-plugin</artifactId> <version>2.5.1</version> <configuration> <archive> <manifest> <addDefaultImplementationEntries>true</addDefaultImplementationEntries> </manifest> </archive> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jar-plugin</artifactId> <version>2.6</version> <configuration> <archive> <manifest> <addDefaultImplementationEntries>true</addDefaultImplementationEntries> </manifest> </archive> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-rar-plugin</artifactId> <version>2.4</version> <configuration> <archive> <manifest> <addDefaultImplementationEntries>true</addDefaultImplementationEntries> </manifest> </archive> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-war-plugin</artifactId> <version>2.6</version> <configuration> <archive> <manifest> <addDefaultImplementationEntries>true</addDefaultImplementationEntries> </manifest> </archive> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-acr-plugin</artifactId> <version>3.0.0</version> <configuration> <archive> <manifest> <addDefaultImplementationEntries>true</addDefaultImplementationEntries> </manifest> </archive> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-shade-plugin</artifactId> <version>2.4.3</version> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-source-plugin</artifactId> <version>2.4</version> <executions> <execution> <id>source-jar</id> <phase>package</phase> <goals> <goal>jar</goal> </goals> </execution> </executions> <configuration> <archive> <manifest> <addDefaultImplementationEntries>true</addDefaultImplementationEntries> </manifest> </archive> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-changelog-plugin</artifactId> <version>2.3</version> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-changes-plugin</artifactId> <version>2.11</version> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-checkstyle-plugin</artifactId> <version>2.17</version> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-doap-plugin</artifactId> <version>1.2</version> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-docck-plugin</artifactId> <version>1.1</version> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-javadoc-plugin</artifactId> <version>2.10.3</version> <executions> <execution> <id>javadoc-jar</id> <phase>package</phase> <goals> <goal>jar</goal> </goals> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jdeps-plugin</artifactId> <version>3.0.0</version> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jxr-plugin</artifactId> <version>2.5</version> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-linkcheck-plugin</artifactId> <version>1.2</version> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-pmd-plugin</artifactId> <version>3.6</version> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-project-info-reports-plugin</artifactId> <version>2.8.1</version> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-report-plugin</artifactId> <version>2.19.1</version> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-ant-plugin</artifactId> <version>2.4</version> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-antrun-plugin</artifactId> <version>1.8</version> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-archetype-plugin</artifactId> <version>2.4</version> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-assembly-plugin</artifactId> <version>2.6</version> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-dependency-plugin</artifactId> <version>2.10</version> <executions> <execution> <id>dependency-sources</id> <phase>install</phase> <goals> <goal>sources</goal> </goals> </execution> </executions> <!-- --> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-enforcer-plugin</artifactId> <version>1.4.1</version> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-gpg-plugin</artifactId> <version>1.6</version> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-help-plugin</artifactId> <version>2.2</version> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-invoker-plugin</artifactId> <version>2.0.0</version> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jarsigner-plugin</artifactId> <version>1.4</version> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-patch-plugin</artifactId> <version>1.2</version> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-pdf-plugin</artifactId> <version>1.3</version> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-plugin-plugin</artifactId> <version>3.4</version> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-release-plugin</artifactId> <version>2.5.3</version> <configuration> <autoVersionSubmodules>true</autoVersionSubmodules> <tagNameFormat>@{project.version}</tagNameFormat> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-remote-resources-plugin</artifactId> <version>1.5</version> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-repository-plugin</artifactId> <version>2.4</version> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-scm-plugin</artifactId> <version>1.9.4</version> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-scm-publish-plugin</artifactId> <version>1.1</version> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-stage-plugin</artifactId> <version>1.0</version> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-toolchains-plugin</artifactId> <version>1.1</version> </plugin> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>build-helper-maven-plugin</artifactId> <version>1.10</version> </plugin> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>versions-maven-plugin</artifactId> <version>2.2</version> </plugin> <plugin> <groupId>org.codehaus.cargo</groupId> <artifactId>cargo-maven2-plugin</artifactId> <version>1.4.18</version> </plugin> <plugin> <groupId>org.glassfish.maven.plugin</groupId> <artifactId>maven-glassfish-plugin</artifactId> <version>2.1</version> </plugin> <plugin> <groupId>org.jacoco</groupId> <artifactId>jacoco-maven-plugin</artifactId> <version>0.7.5.201505241946</version> <executions> <execution> <goals> <goal>prepare-agent</goal> </goals> </execution> <execution> <id>report</id> <phase>prepare-package</phase> <goals> <goal>report</goal> </goals> </execution> </executions> </plugin> <plugin> <groupId>com.mycila</groupId> <artifactId>license-maven-plugin</artifactId> <version>2.11</version> </plugin> <plugin> <groupId>net.revelc.code</groupId> <artifactId>formatter-maven-plugin</artifactId> <version>0.5.2</version> </plugin> <plugin> <groupId>org.bsc.maven</groupId> <artifactId>maven-processor-plugin</artifactId> <version>3.1.0</version> </plugin> </plugins> </pluginManagement> <plugins> <!-- <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-source-plugin</artifactId> </plugin> <plugin> <groupId>org.jacoco</groupId> <artifactId>jacoco-maven-plugin</artifactId> </plugin> --> </plugins> </build> <!-- Deprecated. Now ignored by Maven. <reports /> --> <reporting /> <profiles> <!--<profile />--> </profiles> <modules> <module>xyz1-lexer</module> <module>xyz1-parser</module> </modules> </project>
{ "content_hash": "092bfb5d74e566de4479543e7ee050c4", "timestamp": "", "source": "github", "line_count": 708, "max_line_length": 204, "avg_line_length": 41.193502824858754, "alnum_prop": 0.4490999485684896, "repo_name": "namioka/xyz1", "id": "88a0e23f39d2c498827d9a10e04a7dca4ae20cdd", "size": "29165", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "pom.xml", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Java", "bytes": "80515" }, { "name": "Shell", "bytes": "298" } ] }
/* eslint amd:true */ /** * Module dependencies. */ const mongoose = require('mongoose'); const Schema = mongoose.Schema; const InvitationSchema = new Schema({ to: { type: String, required: true }, from: { type: String, required: true }, link: { type: String, required: true }, userId: { type: String, required: true }, read: { type: Boolean, default: false } }); mongoose.model('Invitation', InvitationSchema);
{ "content_hash": "4edff4e06cdda99929504d79f22bdccd", "timestamp": "", "source": "github", "line_count": 32, "max_line_length": 47, "avg_line_length": 14.90625, "alnum_prop": 0.5953878406708596, "repo_name": "andela/kissa-cfh-project", "id": "5253b04546b4b1970686759edb681d1d3efe61fa", "size": "477", "binary": false, "copies": "1", "ref": "refs/heads/staging", "path": "app/models/invites.js", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "55541" }, { "name": "CoffeeScript", "bytes": "2617" }, { "name": "HTML", "bytes": "107519" }, { "name": "JavaScript", "bytes": "417095" } ] }
package com.sbhachu.oauth.demo.model.security; import javax.persistence.*; import java.sql.Blob; /** * Created by sbhachu on 24/11/2014. */ @Entity @Table(name = "oauth_refresh_token") public class OAuthRefreshToken { private String tokenId; private byte[] token; private byte[] authentication; public OAuthRefreshToken() { } @Id @Column(name = "token_id") public String getTokenId() { return tokenId; } @Column(name = "token") public byte[] getToken() { return token; } @Column(name = "authentication") public byte[] getAuthentication() { return authentication; } public void setTokenId(String tokenId) { this.tokenId = tokenId; } public void setToken(byte[] token) { this.token = token; } public void setAuthentication(byte[] authentication) { this.authentication = authentication; } }
{ "content_hash": "1706fa23a9101806ac67481ef9625d60", "timestamp": "", "source": "github", "line_count": 46, "max_line_length": 58, "avg_line_length": 20.23913043478261, "alnum_prop": 0.6294307196562836, "repo_name": "sbhachu/JEE", "id": "b944ece080948c01bf61d81c7cfc2b675bed816e", "size": "931", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "gradle-oauth2-demo/src/main/java/com/sbhachu/oauth/demo/model/security/OAuthRefreshToken.java", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Java", "bytes": "79439" } ] }
"use strict"; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (this && this.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var core_1 = require('@angular/core'); var router_deprecated_1 = require('@angular/router-deprecated'); var helper_service_1 = require('../../services/helper/helper.service'); var GetEntity_service_1 = require('../../services/GetEntity/GetEntity.service'); var LogoutComponent = (function () { function LogoutComponent(router) { this.router = router; } LogoutComponent.prototype.ngOnInit = function () { helper_service_1.HelperService.deleteTokenFromStorage(); GetEntity_service_1.GetEntityService.getInstance().setEntityId(-1); this.router.navigate(['Login']); }; LogoutComponent = __decorate([ core_1.Component({ template: '' }), __metadata('design:paramtypes', [router_deprecated_1.Router]) ], LogoutComponent); return LogoutComponent; }()); exports.LogoutComponent = LogoutComponent; //# sourceMappingURL=logout.component.js.map
{ "content_hash": "db98c328973856fba5493a45f93abadd", "timestamp": "", "source": "github", "line_count": 33, "max_line_length": 150, "avg_line_length": 51.27272727272727, "alnum_prop": 0.6447990543735225, "repo_name": "helix46/solsof-ng2", "id": "7ffcc1fdb10f1f56f918e87556e8dd7a2bd4f916", "size": "1692", "binary": false, "copies": "2", "ref": "refs/heads/master", "path": "lib/components/logout/logout.component.js", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Batchfile", "bytes": "58" }, { "name": "CSS", "bytes": "5638" }, { "name": "HTML", "bytes": "31448" }, { "name": "JavaScript", "bytes": "1897" }, { "name": "TypeScript", "bytes": "134252" } ] }
package org.apache.druid.data.input.avro; import com.fasterxml.jackson.annotation.JacksonInject; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.ObjectMapper; import com.google.common.annotations.VisibleForTesting; import com.google.common.base.Preconditions; import org.apache.avro.Schema; import org.apache.avro.generic.GenericDatumReader; import org.apache.avro.generic.GenericRecord; import org.apache.avro.io.DatumReader; import org.apache.avro.io.DecoderFactory; import org.apache.avro.util.ByteBufferInputStream; import org.apache.druid.guice.annotations.Json; import org.apache.druid.java.util.common.logger.Logger; import org.apache.druid.java.util.common.parsers.ParseException; import java.io.EOFException; import java.nio.ByteBuffer; import java.util.Collections; import java.util.HashMap; import java.util.Map; /** */ public class InlineSchemasAvroBytesDecoder implements AvroBytesDecoder { private static final Logger LOGGER = new Logger(InlineSchemasAvroBytesDecoder.class); private static final byte V1 = 0x1; private final Map<Integer, Schema> schemaObjs; private final Map<String, Map<String, Object>> schemas; @JsonCreator public InlineSchemasAvroBytesDecoder( @JacksonInject @Json ObjectMapper mapper, @JsonProperty("schemas") Map<String, Map<String, Object>> schemas ) throws Exception { Preconditions.checkArgument( schemas != null && schemas.size() > 0, "at least one schema must be provided in schemas attribute" ); this.schemas = schemas; schemaObjs = new HashMap<>(schemas.size()); for (Map.Entry<String, Map<String, Object>> e : schemas.entrySet()) { int id = Integer.parseInt(e.getKey()); Map<String, Object> schema = e.getValue(); String schemaStr = mapper.writeValueAsString(schema); LOGGER.debug("Schema string [%s] = [%s]", id, schemaStr); schemaObjs.put(id, new Schema.Parser().parse(schemaStr)); } } @VisibleForTesting public InlineSchemasAvroBytesDecoder( Map<Integer, Schema> schemaObjs ) { this.schemaObjs = schemaObjs; this.schemas = null; } @JsonProperty public Map<String, Map<String, Object>> getSchemas() { return schemas; } // It is assumed that record has following format. // byte 1 : version, static 0x1 // byte 2-5 : int schemaId // remaining bytes would have avro data @Override public GenericRecord parse(ByteBuffer bytes) { if (bytes.remaining() < 5) { throw new ParseException("record must have at least 5 bytes carrying version and schemaId"); } byte version = bytes.get(); if (version != V1) { throw new ParseException("found record of arbitrary version [%s]", version); } int schemaId = bytes.getInt(); Schema schemaObj = schemaObjs.get(schemaId); if (schemaObj == null) { throw new ParseException("Failed to find schema for id [%s]", schemaId); } DatumReader<GenericRecord> reader = new GenericDatumReader<>(schemaObj); try (ByteBufferInputStream inputStream = new ByteBufferInputStream(Collections.singletonList(bytes))) { return reader.read(null, DecoderFactory.get().binaryDecoder(inputStream, null)); } catch (EOFException eof) { // waiting for avro v1.9.0 (#AVRO-813) throw new ParseException( eof, "Avro's unnecessary EOFException, detail: [%s]", "https://issues.apache.org/jira/browse/AVRO-813" ); } catch (Exception e) { throw new ParseException(e, "Fail to decode avro message with schemaId [%s].", schemaId); } } }
{ "content_hash": "0724ac814dd520944dbbac6e6d79b757", "timestamp": "", "source": "github", "line_count": 115, "max_line_length": 112, "avg_line_length": 31.921739130434784, "alnum_prop": 0.7158812312721329, "repo_name": "dkhwangbo/druid", "id": "65fc04539b88f42cd8e9ddb45f14b86f60a1cb70", "size": "4478", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "extensions-core/avro-extensions/src/main/java/org/apache/druid/data/input/avro/InlineSchemasAvroBytesDecoder.java", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "ANTLR", "bytes": "3345" }, { "name": "CSS", "bytes": "15658" }, { "name": "Dockerfile", "bytes": "4856" }, { "name": "HTML", "bytes": "19754" }, { "name": "Java", "bytes": "21183046" }, { "name": "JavaScript", "bytes": "304058" }, { "name": "Makefile", "bytes": "659" }, { "name": "PostScript", "bytes": "5" }, { "name": "R", "bytes": "17002" }, { "name": "Roff", "bytes": "3617" }, { "name": "Shell", "bytes": "28297" }, { "name": "TeX", "bytes": "399508" }, { "name": "Thrift", "bytes": "207" } ] }
using System; namespace Abc.NCrafts.Quizz.Performance.Questions._024 { public class Answer1 { public static void Run() { // begin var now = DateTime.Now; // end Logger.Log($"Now: {now}"); } } }
{ "content_hash": "be352cb408a82cd50da8937a63881c85", "timestamp": "", "source": "github", "line_count": 16, "max_line_length": 54, "avg_line_length": 17.5, "alnum_prop": 0.48214285714285715, "repo_name": "Abc-Arbitrage/Abc.NCrafts.AllocationQuiz", "id": "96d66a89f1ad4db05771e4fb96113b5474cbe571", "size": "282", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "Abc.NCrafts.Quizz/Performance/Questions/024/Answer1.cs", "mode": "33188", "license": "mit", "language": [ { "name": "C#", "bytes": "74066" } ] }
ACCEPTED #### According to International Plant Names Index #### Published in null #### Original name null ### Remarks null
{ "content_hash": "73506bafd279b35b2af6ca5e95e18e2c", "timestamp": "", "source": "github", "line_count": 13, "max_line_length": 31, "avg_line_length": 9.692307692307692, "alnum_prop": 0.7063492063492064, "repo_name": "mdoering/backbone", "id": "8def297d517e1b023ebf912ec6f658665e8b2c42", "size": "217", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "life/Plantae/Magnoliophyta/Magnoliopsida/Lamiales/Schlegeliaceae/Unkown/Unkown rhoifolium/Unkown rhoifolium pubescens/README.md", "mode": "33188", "license": "apache-2.0", "language": [] }
Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **database_id** | **str** | | [optional] **parameter_id** | **str** | | [optional] **import_microversion** | **str** | | [optional] **node_id** | **str** | | [optional] **bt_type** | **str** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
{ "content_hash": "e7f4897bf29eb47f32876be96475e94f", "timestamp": "", "source": "github", "line_count": 11, "max_line_length": 161, "avg_line_length": 43.27272727272727, "alnum_prop": 0.5126050420168067, "repo_name": "onshape-public/onshape-clients", "id": "503502b94d7ccaf8f5a844efc57b2b2bf391afb9", "size": "537", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "python/docs/BTMDatabaseParameter.md", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "4873" }, { "name": "Go", "bytes": "59674" }, { "name": "HTML", "bytes": "3851790" }, { "name": "JavaScript", "bytes": "2217" }, { "name": "Makefile", "bytes": "559" }, { "name": "Python", "bytes": "7560009" }, { "name": "Shell", "bytes": "3475" }, { "name": "TypeScript", "bytes": "1412661" } ] }
from django.utils.translation import ugettext_lazy as _ import horizon from openstack_dashboard.dashboards.project import dashboard class Containers(horizon.Panel): name = _("Containers") slug = 'containers' permissions = ('openstack.services.object-store',) stylecss = 'iconfont icon-folderadd' dashboard.Project.register(Containers)
{ "content_hash": "488436b9ca4979d5013e57d6bcb041b0", "timestamp": "", "source": "github", "line_count": 14, "max_line_length": 60, "avg_line_length": 25.642857142857142, "alnum_prop": 0.7520891364902507, "repo_name": "MKTCloud/MKTCloud", "id": "04572e104b4e21e34ad6cbc6705654913b4b469a", "size": "1168", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "openstack_dashboard/dashboards/project/containers/panel.py", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "CSS", "bytes": "47811" }, { "name": "HTML", "bytes": "210637" }, { "name": "JavaScript", "bytes": "379783" }, { "name": "Makefile", "bytes": "588" }, { "name": "Python", "bytes": "1855886" }, { "name": "Shell", "bytes": "14710" } ] }
package st.gravel.support.compiler.jvm; /* This file is automatically generated from typed smalltalk source. Do not edit by hand. (C) AG5.com */ import java.math.BigInteger; import st.gravel.support.jvm.NonLocalReturn; import st.gravel.support.compiler.jvm.JVMInstruction; import st.gravel.support.compiler.jvm.JVMInstruction.JVMInstruction_Factory; import st.gravel.support.compiler.jvm.JVMInstructionVisitor; import st.gravel.support.compiler.jvm.JVMStack; import st.gravel.support.compiler.jvm.JVMType; abstract public class PushConstant extends JVMInstruction implements Cloneable { public static PushConstant_Factory factory = new PushConstant_Factory(); public static class PushConstant_Factory extends JVMInstruction_Factory { public PushConstant basicNew() { throw new RuntimeException("PushConstant is an abstract class"); } } @Override public <X> X accept_(final JVMInstructionVisitor<X> _visitor) { return _visitor.visitPushConstant_(this); } public PushConstant copy() { try { PushConstant _temp1 = (PushConstant) this.clone(); _temp1.postCopy(); return _temp1; } catch (CloneNotSupportedException e) { throw new RuntimeException(e); } } @Override public JVMInstruction effectStack_(final JVMStack _aStack) { _aStack.push_(this.type()); return this; } public PushConstant_Factory factory() { return factory; } @Override public PushConstant printOn_(final StringBuilder _aStream) { final String _title; _title = this.factory().toString(); _aStream.append(st.gravel.support.jvm.CharacterExtensions.isVowel(_title.charAt(0)) ? "an " : "a "); _aStream.append(_title); _aStream.append('['); this.sourceOn_(_aStream); _aStream.append(']'); return this; } @Override public PushConstant sourceOn_(final StringBuilder _aStream) { return this; } @Override public abstract JVMType type(); @Override public PushConstant withReturnType_(final JVMType _aType) { if (st.gravel.support.jvm.ObjectExtensions.equals_(this.type(), _aType)) { return PushConstant.this; } throw new RuntimeException("niy"); } }
{ "content_hash": "9497faf2959aa634c69d77942cbcafa1", "timestamp": "", "source": "github", "line_count": 79, "max_line_length": 102, "avg_line_length": 26.60759493670886, "alnum_prop": 0.7435775451950524, "repo_name": "gravel-st/gravel", "id": "e3d2fbc0dcd62259541cc79e11345ef7a83d0943", "size": "2102", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "src/main/java/st/gravel/support/compiler/jvm/PushConstant.java", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "CSS", "bytes": "320256" }, { "name": "Java", "bytes": "2157377" }, { "name": "JavaScript", "bytes": "611803" }, { "name": "Smalltalk", "bytes": "1316351" } ] }
package com.planet_ink.coffee_mud.Items.interfaces; import com.planet_ink.coffee_mud.core.interfaces.*; import com.planet_ink.coffee_mud.core.*; import com.planet_ink.coffee_mud.core.collections.*; import com.planet_ink.coffee_mud.Abilities.interfaces.*; import com.planet_ink.coffee_mud.Areas.interfaces.*; import com.planet_ink.coffee_mud.Behaviors.interfaces.*; import com.planet_ink.coffee_mud.CharClasses.interfaces.*; import com.planet_ink.coffee_mud.Commands.interfaces.*; import com.planet_ink.coffee_mud.Common.interfaces.*; import com.planet_ink.coffee_mud.Exits.interfaces.*; import com.planet_ink.coffee_mud.Items.interfaces.*; import com.planet_ink.coffee_mud.Libraries.interfaces.*; import com.planet_ink.coffee_mud.Locales.interfaces.*; import com.planet_ink.coffee_mud.MOBS.interfaces.*; import com.planet_ink.coffee_mud.Races.interfaces.*; public interface Shield extends Item { }
{ "content_hash": "d0780311b738935fef64b0617cd06814", "timestamp": "", "source": "github", "line_count": 20, "max_line_length": 58, "avg_line_length": 45.95, "alnum_prop": 0.779107725788901, "repo_name": "MaxRau/CoffeeMud", "id": "7330789d3ac985f0062ac4f19c169cc10e430af1", "size": "1523", "binary": false, "copies": "3", "ref": "refs/heads/master", "path": "com/planet_ink/coffee_mud/Items/interfaces/Shield.java", "mode": "33261", "license": "apache-2.0", "language": [ { "name": "Batchfile", "bytes": "5359" }, { "name": "CSS", "bytes": "1515" }, { "name": "HTML", "bytes": "9650029" }, { "name": "Java", "bytes": "26062781" }, { "name": "JavaScript", "bytes": "24025" }, { "name": "Makefile", "bytes": "23191" }, { "name": "Shell", "bytes": "8543" } ] }
layout: default --- <div class="post"> <header class="post-header"> <h1>{{ page.title }}</h1> </header> <article class="post-content"> {{ content }} </article> </div> <!-- 多说最新评论 start --> <div class="ds-recent-comments" data-num-items="5" data-show-avatars="1" data-show-time="1" data-show-title="1" data-show-admin="1" data-excerpt-length="70"></div> <!-- 多说最新评论 end --> <!-- 多说公共JS代码 start (一个网页只需插入一次) --> <script type="text/javascript"> var duoshuoQuery = {short_name:"codeglider"}; (function() { var ds = document.createElement('script'); ds.type = 'text/javascript';ds.async = true; ds.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') + '//static.duoshuo.com/embed.js'; ds.charset = 'UTF-8'; (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(ds); })(); </script> <!-- 多说公共JS代码 end -->
{ "content_hash": "930c8cab53429a56475eb4637f4f38b3", "timestamp": "", "source": "github", "line_count": 30, "max_line_length": 165, "avg_line_length": 30.366666666666667, "alnum_prop": 0.6234906695938529, "repo_name": "ShyHornet/ShyHornet.github.io", "id": "7cdd47413ed46d3855d67b517c8448fff22a6af8", "size": "983", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "_layouts/page.html", "mode": "33261", "license": "apache-2.0", "language": [ { "name": "CSS", "bytes": "36716" }, { "name": "HTML", "bytes": "85725" }, { "name": "JavaScript", "bytes": "716" } ] }
package org.twig4j.core.syntax.operator; public class BinaryNotIn implements Operator { @Override public Integer getPrecedence() { return 20; } @Override public Class getNodeClass() { return org.twig4j.core.syntax.parser.node.type.expression.BinaryNotIn.class; } @Override public Associativity getAssociativity() { return Associativity.LEFT; } }
{ "content_hash": "ff4c833eed00a6979b4589c8c5390989", "timestamp": "", "source": "github", "line_count": 18, "max_line_length": 84, "avg_line_length": 22.72222222222222, "alnum_prop": 0.6797066014669927, "repo_name": "palmfjord/twig4j-core", "id": "229d3c8761eb85cddbc398d46c46d387f33d7188", "size": "409", "binary": false, "copies": "2", "ref": "refs/heads/master", "path": "src/main/java/org/twig4j/core/syntax/operator/BinaryNotIn.java", "mode": "33188", "license": "bsd-3-clause", "language": [ { "name": "HTML", "bytes": "48" }, { "name": "Java", "bytes": "479529" } ] }
missing_debug_implementations, missing_copy_implementations, trivial_casts, trivial_numeric_casts, unstable_features, unused_import_braces, unused_qualifications)] #[allow(unused_imports)] // depending on target, this might be unused #[macro_use] extern crate enum_primitive; extern crate mio; extern crate nix; extern crate libc; mod bluetooth; pub use bluetooth::*; // //////////////////////////////////// // Linux implementation of functions #[cfg(target_os = "linux")] mod linux; #[cfg(target_os = "windows")] #[allow(unused_variables)] // TODO: remove warnings mod windows; mod platform { #[cfg(target_os = "linux")] pub use linux::*; #[cfg(target_os = "windows")] pub use windows::*; }
{ "content_hash": "0ad016e716a17f9dfae50b33e364ef76", "timestamp": "", "source": "github", "line_count": 33, "max_line_length": 69, "avg_line_length": 22.666666666666668, "alnum_prop": 0.643048128342246, "repo_name": "ChangSpivey/bluetooth-serial-port", "id": "ea37376202d7f116a06fe24aa16ba99300707c27", "size": "827", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "src/lib.rs", "mode": "33188", "license": "mit", "language": [ { "name": "Rust", "bytes": "40220" } ] }
<!-- --> <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <link rel="stylesheet" href="./resources/js-test-style.css"/> <script src="./resources/js-test-pre.js"></script> <script src="./resources/webgl-test.js"></script> <script src="./resources/webgl-test-utils.js"></script> </head> <body> <div id="description"></div> <div id="console"></div> <script> "use strict"; description("Tests calling the various uniform[Matrix]* APIs with a null uniform location"); var wtu = WebGLTestUtils; var gl = wtu.create3DContext(); var program = wtu.loadStandardProgram(gl); glErrorShouldBe(gl, gl.NO_ERROR); shouldBeUndefined("gl.useProgram(program)"); var floatArray = new Float32Array([1, 2, 3, 4]); var intArray = new Int32Array([1, 2, 3, 4]); function callUniformFunction(name) { var isArrayVariant = (name.charAt(name.length - 1) == 'v'); var isMatrix = (name.indexOf("Matrix") != -1); var isFloat = (name.charAt(name.length - 1) == 'f' || name.charAt(name.length - 2) == 'f'); var sizeIndex = (isArrayVariant ? name.length - 3 : name.length - 2); var size = parseInt(name.substring(sizeIndex, sizeIndex + 1)); // Initialize argument list with null uniform location var args = [ null ]; if (isArrayVariant) { // Call variant which takes values as array if (isMatrix) { size = size * size; args.push(false); } var array = (isFloat ? new Float32Array(size) : new Int32Array(size)); for (var i = 0; i < size; i++) { array[i] = i; } args.push(array); } else { // Call variant which takes values as parameters for (var i = 0; i < size; i++) { args.push(i); } } var func = gl[name]; return func.apply(gl, args); } var funcs = [ "uniform1f", "uniform1fv", "uniform1i", "uniform1iv", "uniform2f", "uniform2fv", "uniform2i", "uniform2iv", "uniform3f", "uniform3fv", "uniform3i", "uniform3iv", "uniform4f", "uniform4fv", "uniform4i", "uniform4iv", "uniformMatrix2fv", "uniformMatrix3fv", "uniformMatrix4fv" ]; var callString; for (var i = 0; i < funcs.length; i++) { callString = "callUniformFunction('" + funcs[i] + "')"; shouldBeUndefined(callString); glErrorShouldBe(gl, gl.NO_ERROR); } var successfullyParsed = true; </script> <script src="./resources/js-test-post.js"></script> </body> </html>
{ "content_hash": "5bce5a03ef3c89f07bf4189d46aeb096", "timestamp": "", "source": "github", "line_count": 82, "max_line_length": 92, "avg_line_length": 28.79268292682927, "alnum_prop": 0.6340533672172808, "repo_name": "haoxli/web-testing-service", "id": "911c99db3f2740b1dfc82f79589570ef1226ac0a", "size": "3502", "binary": false, "copies": "6", "ref": "refs/heads/master", "path": "wts/tests/webgl/khronos/null-uniform-location.html", "mode": "33188", "license": "bsd-3-clause", "language": [ { "name": "C", "bytes": "28136" }, { "name": "CSS", "bytes": "123435" }, { "name": "Cucumber", "bytes": "1479" }, { "name": "GLSL", "bytes": "3495" }, { "name": "HTML", "bytes": "22604652" }, { "name": "JavaScript", "bytes": "2513665" }, { "name": "Python", "bytes": "480857" }, { "name": "Shell", "bytes": "46586" } ] }
package kieker.tools.slastic.metamodel.componentDeployment.impl; import java.util.Collection; import kieker.tools.slastic.metamodel.componentDeployment.ComponentDeploymentModel; import kieker.tools.slastic.metamodel.componentDeployment.ComponentDeploymentPackage; import kieker.tools.slastic.metamodel.componentDeployment.DeploymentComponent; import kieker.tools.slastic.metamodel.core.impl.SLAsticModelImpl; import org.eclipse.emf.common.notify.NotificationChain; import org.eclipse.emf.common.util.EList; import org.eclipse.emf.ecore.EClass; import org.eclipse.emf.ecore.InternalEObject; import org.eclipse.emf.ecore.util.EObjectContainmentEList; import org.eclipse.emf.ecore.util.InternalEList; /** * <!-- begin-user-doc --> * An implementation of the model object '<em><b>Model</b></em>'. * <!-- end-user-doc --> * <p> * The following features are implemented: * <ul> * <li>{@link kieker.tools.slastic.metamodel.componentDeployment.impl.ComponentDeploymentModelImpl#getDeploymentComponents <em>Deployment Components</em>}</li> * </ul> * </p> * * @generated */ public class ComponentDeploymentModelImpl extends SLAsticModelImpl implements ComponentDeploymentModel { /** * The cached value of the '{@link #getDeploymentComponents() <em>Deployment Components</em>}' containment reference list. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getDeploymentComponents() * @generated * @ordered */ protected EList<DeploymentComponent> deploymentComponents; /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ protected ComponentDeploymentModelImpl() { super(); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override protected EClass eStaticClass() { return ComponentDeploymentPackage.Literals.COMPONENT_DEPLOYMENT_MODEL; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EList<DeploymentComponent> getDeploymentComponents() { if (deploymentComponents == null) { deploymentComponents = new EObjectContainmentEList<DeploymentComponent>(DeploymentComponent.class, this, ComponentDeploymentPackage.COMPONENT_DEPLOYMENT_MODEL__DEPLOYMENT_COMPONENTS); } return deploymentComponents; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { case ComponentDeploymentPackage.COMPONENT_DEPLOYMENT_MODEL__DEPLOYMENT_COMPONENTS: return ((InternalEList<?>)getDeploymentComponents()).basicRemove(otherEnd, msgs); } return super.eInverseRemove(otherEnd, featureID, msgs); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case ComponentDeploymentPackage.COMPONENT_DEPLOYMENT_MODEL__DEPLOYMENT_COMPONENTS: return getDeploymentComponents(); } return super.eGet(featureID, resolve, coreType); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @SuppressWarnings("unchecked") @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case ComponentDeploymentPackage.COMPONENT_DEPLOYMENT_MODEL__DEPLOYMENT_COMPONENTS: getDeploymentComponents().clear(); getDeploymentComponents().addAll((Collection<? extends DeploymentComponent>)newValue); return; } super.eSet(featureID, newValue); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case ComponentDeploymentPackage.COMPONENT_DEPLOYMENT_MODEL__DEPLOYMENT_COMPONENTS: getDeploymentComponents().clear(); return; } super.eUnset(featureID); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { case ComponentDeploymentPackage.COMPONENT_DEPLOYMENT_MODEL__DEPLOYMENT_COMPONENTS: return deploymentComponents != null && !deploymentComponents.isEmpty(); } return super.eIsSet(featureID); } } //ComponentDeploymentModelImpl
{ "content_hash": "214205eb4a044e86fc85595b1907b401", "timestamp": "", "source": "github", "line_count": 151, "max_line_length": 186, "avg_line_length": 28.198675496688743, "alnum_prop": 0.717003287928605, "repo_name": "SLAsticSPE/slastic", "id": "d5023df41a8f470bcfb124d2df278aefce98858b", "size": "4307", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "src-gen/kieker/tools/slastic/metamodel/componentDeployment/impl/ComponentDeploymentModelImpl.java", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Assembly", "bytes": "157755" }, { "name": "C", "bytes": "734" }, { "name": "CSS", "bytes": "19693" }, { "name": "HTML", "bytes": "759550" }, { "name": "Java", "bytes": "3242359" }, { "name": "Perl", "bytes": "907" }, { "name": "R", "bytes": "78417" }, { "name": "Shell", "bytes": "42152" } ] }
var yargs = require('yargs'); var argv = yargs.argv, validBumpTypes = "major|minor|patch|prerelease".split("|"), bump = (argv.bump || 'patch').toLowerCase(); if (validBumpTypes.indexOf(bump) === -1) { throw new Error('Unrecognized bump "' + bump + '".'); } module.exports = { bump: bump };
{ "content_hash": "9d4cbf455932c68e71591e5412e6152a", "timestamp": "", "source": "github", "line_count": 13, "max_line_length": 63, "avg_line_length": 23.692307692307693, "alnum_prop": 0.6168831168831169, "repo_name": "weagle08/aurelia-cordova-test", "id": "35a056ed86722e47196ce5874ff53f666efbb49d", "size": "308", "binary": false, "copies": "3", "ref": "refs/heads/master", "path": "src/build/yargs.js", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "3723" }, { "name": "HTML", "bytes": "2427" }, { "name": "JavaScript", "bytes": "19361" } ] }
function getModule(gui) gui.widgets = {} gui.widgets._defaultParameters = { visible = true, enabled = true, -- this is just a mode of display/interactivity (disabled as in 'greyed-out' - will not be updated) - not implemented in "default"-theme. virtual = false, -- will only be updated, but not drawn breakout = false, -- these widgets will be drawn without being confined by it's parents boundaries. also they are drawn over all other child widgets of their parent! } function gui.widgets.setDefaultParameter(name, value) gui.widgets._defaultParameters[name] = value end function gui.widgets.passEvent(event, source, target) source:setParam(event, function(source, ...) return target[event](target, ...) end) end -- these functions are added to internal here, because they need widgets to work function gui.internal.callThemeFunction(object, func, ...) if object.theme and object.theme[object.type] and object.theme[object.type][func] then return object.theme[object.type][func](object, ...) end return nil end function gui.internal.withCanvas(rectWidgetLike, func, breakout) if rectWidgetLike and rectWidgetLike.position then local x, y, w, h = rectWidgetLike.position[1], rectWidgetLike.position[2], rectWidgetLike.width, rectWidgetLike.height gui.internal.pushCanvas(x, y, w, h, rectWidgetLike.breakout) end local ret = func() if rectWidgetLike and rectWidgetLike.position then gui.internal.popCanvas() end return ret end gui.widgets.Base = require("kraidGUI.widgets.base")(gui) gui.widgets.Label = require("kraidGUI.widgets.label")(gui) gui.widgets.Button = require("kraidGUI.widgets.button")(gui) gui.widgets.Window = require("kraidGUI.widgets.window")(gui) gui.widgets.Checkbox = require("kraidGUI.widgets.checkbox")(gui) gui.widgets.Category = require("kraidGUI.widgets.category")(gui) gui.widgets.Radiobutton = require("kraidGUI.widgets.radiobutton")(gui) gui.widgets.LineInput = require("kraidGUI.widgets.lineinput")(gui) gui.widgets.Numberwheel = require("kraidGUI.widgets.numberwheel")(gui) gui.widgets.Line = require("kraidGUI.widgets.line")(gui) gui.widgets.Scrollbar = require("kraidGUI.widgets.scrollbar")(gui) gui.widgets.TreeView = require("kraidGUI.widgets.treeview")(gui) end return getModule
{ "content_hash": "c986ad65913d5c42e555fc0deed6bc8d", "timestamp": "", "source": "github", "line_count": 55, "max_line_length": 173, "avg_line_length": 45.236363636363635, "alnum_prop": 0.6937299035369775, "repo_name": "pfirsich/kraidGUI", "id": "15e5b121252bcab1a069ba5dd3757302598f46c0", "size": "2488", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "kraidGUI/widgets/init.lua", "mode": "33188", "license": "mit", "language": [ { "name": "Lua", "bytes": "75575" } ] }
APPLICATION // Reads a PV and calls Application::decodeDev to decode the dev set using that // PV and output the results of the DEV_COMMAND. class DecodeDev : public Permute::Application { public: DecodeDev () : Permute::Application ("decode-dev") {} int main (const std::vector <std::string> & args) { this -> getParameters (); std::cout << "ITERATE_SEARCH? " << (ITERATE_SEARCH ? "true" : "false") << std::endl; Permute::PV pv; if (! this -> readPV (pv)) { return EXIT_FAILURE; } this -> decodeDev (pv); return EXIT_SUCCESS; } } app;
{ "content_hash": "ac003fcd566b0df274b1d5a81579e5e4", "timestamp": "", "source": "github", "line_count": 25, "max_line_length": 79, "avg_line_length": 24.12, "alnum_prop": 0.6069651741293532, "repo_name": "lemrobotry/thesis", "id": "003edd3658e30999fff38e5e79cf82c52af92f2d", "size": "674", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "decode-dev.cc", "mode": "33188", "license": "mit", "language": [ { "name": "C++", "bytes": "662003" }, { "name": "Perl", "bytes": "186" } ] }
require 'spec_helper' # This test exists in this file because in the standard admin/products_controller spec # There is the stub_authorization call. This call is not triggered for this test because # the load_resource filter in Spree::Admin::ResourceController is prepended to the filter chain # this means this call is triggered before the authorize_admin call and in this case # the load_resource filter halts the request meaning authorize_admin is not called at all. describe Spree::Admin::ProductsController, type: :controller do stub_authorization! # Regression test for GH https://github.com/spree/spree/issues/538 it "cannot find a non-existent product" do get :edit, id: "non-existent-product" expect(response).to redirect_to(spree.admin_products_path) expect(flash[:error]).to eql("Product is not found") end end
{ "content_hash": "9b842b09e744061002484ed14de148f9", "timestamp": "", "source": "github", "line_count": 16, "max_line_length": 95, "avg_line_length": 52.6875, "alnum_prop": 0.7722419928825622, "repo_name": "jordan-brough/solidus", "id": "3a51c5e44a2133e473e14e32704824923b250c80", "size": "843", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "backend/spec/controllers/spree/admin/missing_products_controller_spec.rb", "mode": "33188", "license": "bsd-3-clause", "language": [ { "name": "CSS", "bytes": "134233" }, { "name": "CoffeeScript", "bytes": "48450" }, { "name": "HTML", "bytes": "469175" }, { "name": "JavaScript", "bytes": "37855" }, { "name": "Ruby", "bytes": "2801973" }, { "name": "Shell", "bytes": "2371" } ] }
class CreateOmertaLoggerGameStatistics < ActiveRecord::Migration def change create_table :omerta_logger_game_statistics do |t| t.datetime :date t.references :version, index: true t.integer :users_total t.integer :users_alive t.integer :users_dead t.integer :lackeys_working t.integer :users_online_now t.integer :users_online_today t.integer :users_online_week t.integer :registrations_today t.integer :registrations_week t.integer :bullets, :limit => 8 t.integer :money_pocket, :limit => 8 t.integer :money_bank, :limit => 8 t.integer :money_familybank, :limit => 8 t.integer :honorpoints t.integer :car_attempts t.integer :crime_attempts t.integer :bustouts t.integer :cars end end end
{ "content_hash": "68251b5ea1f215acf308064afc5beac6", "timestamp": "", "source": "github", "line_count": 26, "max_line_length": 64, "avg_line_length": 31.53846153846154, "alnum_prop": 0.6536585365853659, "repo_name": "OmertaBeyond/omertagram", "id": "009af009059cc317d801866cd7f0cda3198cef11", "size": "890", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "db/migrate/20150909232050_create_omerta_logger_game_statistics.omerta_logger.rb", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "3122" }, { "name": "HTML", "bytes": "29966" }, { "name": "JavaScript", "bytes": "862" }, { "name": "Ruby", "bytes": "93845" } ] }
#if !defined (__G_PASTE_GTK4_H_INSIDE__) && !defined (G_PASTE_COMPILATION) #error "Only <gpaste-gtk4.h> can be included directly." #endif #pragma once #include <gpaste-gtk4/gpaste-gtk-preferences-manager.h> G_BEGIN_DECLS #define G_PASTE_TYPE_GTK_PREFERENCES_SHORTCUTS_PAGE (g_paste_gtk_preferences_shortcuts_page_get_type ()) G_PASTE_GTK_FINAL_TYPE (PreferencesShortcutsPage, preferences_shortcuts_page, PREFERENCES_SHORTCUTS_PAGE, GPasteGtkPreferencesPage) GtkWidget *g_paste_gtk_preferences_shortcuts_page_new (GPasteGtkPreferencesManager *manager); G_END_DECLS
{ "content_hash": "edc1df56ae187f1bb3c817b918781d78", "timestamp": "", "source": "github", "line_count": 19, "max_line_length": 131, "avg_line_length": 30.157894736842106, "alnum_prop": 0.7801047120418848, "repo_name": "Keruspe/GPaste", "id": "a920d0fe91d7f510ee7f01aee310e9593d7890c1", "size": "692", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "src/libgpaste/gpaste-gtk4/gpaste-gtk-preferences-shortcuts-page.h", "mode": "33188", "license": "bsd-2-clause", "language": [ { "name": "C", "bytes": "861016" }, { "name": "JavaScript", "bytes": "32603" }, { "name": "Meson", "bytes": "21661" }, { "name": "Shell", "bytes": "1970" } ] }
package com.autonomy.nonaci.indexing.impl; /** * Allows you to reduce the space left when documents in IDOL server's data index are deleted. The <strong>DRECOMPACT * </strong> command fills the space created through the document deletion with new documents. (This is similar to the * defragmentation process). Once the compact is complete, the command recalculates the <strong>SortField</strong> * information. * <p /> * By default, the <strong>DRECOMPACT</strong> command automatically copies the data index to the <strong>internalbackup * </strong> directory in the IDOL server's data directory. To change this directory, set the <em> * PreCompactionBackupPath</em> configuration parameter. * * @author boba */ public class DreCompactCommand extends IndexCommandImpl { /** Creates a new instance of DreCompactCommand */ public DreCompactCommand() { super(CMD_DRECOMPACT); } } // End of class DreCompactCommand...
{ "content_hash": "814dea0622052c902a5cf99d1565cb6a", "timestamp": "", "source": "github", "line_count": 23, "max_line_length": 120, "avg_line_length": 41.30434782608695, "alnum_prop": 0.7473684210526316, "repo_name": "hpe-idol/java-idol-indexing-api", "id": "3e47b04aa08a9a346a8227ad1cb598dd4e12644f", "size": "1137", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "src/main/java/com/autonomy/nonaci/indexing/impl/DreCompactCommand.java", "mode": "33188", "license": "mit", "language": [ { "name": "Java", "bytes": "171278" }, { "name": "Shell", "bytes": "995" } ] }
package main import ( irc "github.com/thoj/go-ircevent" ) func connect(config Config) *irc.Connection { conn := irc.IRC(config.Name, config.Name) conn.Connect(config.Server) return conn } func main() { config := readConfig() conn := connect(config) conn.AddCallback("001", func(event *irc.Event) { for _, channel := range config.Channels { conn.Join(channel) } }) go loadPlugins(conn) conn.Loop() }
{ "content_hash": "0e390b3f29450f6521a1f544ab9febe2", "timestamp": "", "source": "github", "line_count": 25, "max_line_length": 49, "avg_line_length": 16.84, "alnum_prop": 0.6817102137767221, "repo_name": "Swampy821/gobot", "id": "8a1b63dc1bb792d0077a2b74dd88bd9b2596e40e", "size": "421", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "main.go", "mode": "33188", "license": "mit", "language": [ { "name": "Go", "bytes": "3821" }, { "name": "Makefile", "bytes": "936" }, { "name": "Shell", "bytes": "468" } ] }
package org.http4s package server package blaze import cats.effect.{ConcurrentEffect, IO, Sync, Timer} import cats.implicits._ import fs2._ import fs2.Stream._ import java.util.Locale import java.util.concurrent.TimeoutException import org.http4s.{Headers => HHeaders, Method => HMethod} import org.http4s.Header.Raw import org.http4s.blaze.http.{HeaderNames, Headers} import org.http4s.blaze.http.http2._ import org.http4s.blaze.pipeline.{TailStage, Command => Cmd} import org.http4s.blaze.util.TickWheelExecutor import org.http4s.blazecore.IdleTimeoutStage import org.http4s.blazecore.util.{End, Http2Writer} import org.http4s.syntax.string._ import scala.collection.mutable.{ArrayBuffer, ListBuffer} import scala.concurrent.ExecutionContext import scala.concurrent.duration.{Duration, FiniteDuration} import scala.util._ import _root_.io.chrisdavenport.vault._ private class Http2NodeStage[F[_]]( streamId: Int, timeout: Duration, implicit private val executionContext: ExecutionContext, attributes: () => Vault, httpApp: HttpApp[F], serviceErrorHandler: ServiceErrorHandler[F], responseHeaderTimeout: Duration, idleTimeout: Duration, scheduler: TickWheelExecutor)(implicit F: ConcurrentEffect[F], timer: Timer[F]) extends TailStage[StreamFrame] { // micro-optimization: unwrap the service and call its .run directly private[this] val runApp = httpApp.run override def name = "Http2NodeStage" override protected def stageStartup(): Unit = { super.stageStartup() initIdleTimeout() readHeaders() } private def initIdleTimeout() = idleTimeout match { case f: FiniteDuration => val cb: Callback[TimeoutException] = { case Left(t) => logger.error(t)("Error in idle timeout callback") closePipeline(Some(t)) case Right(_) => logger.debug("Shutting down due to idle timeout") closePipeline(None) } val stage = new IdleTimeoutStage[StreamFrame](f, scheduler, executionContext) spliceBefore(stage) stage.init(cb) case _ => } private def readHeaders(): Unit = channelRead(timeout = timeout).onComplete { case Success(HeadersFrame(_, endStream, hs)) => checkAndRunRequest(hs, endStream) case Success(frame) => val e = Http2Exception.PROTOCOL_ERROR.rst(streamId, s"Received invalid frame: $frame") closePipeline(Some(e)) case Failure(Cmd.EOF) => closePipeline(None) case Failure(t) => logger.error(t)("Unknown error in readHeaders") val e = Http2Exception.INTERNAL_ERROR.rst(streamId, s"Unknown error") closePipeline(Some(e)) } /** collect the body: a maxlen < 0 is interpreted as undefined */ private def getBody(maxlen: Long): EntityBody[F] = { var complete = false var bytesRead = 0L val t = F.async[Option[Chunk[Byte]]] { cb => if (complete) cb(End) else channelRead(timeout = timeout).onComplete { case Success(DataFrame(last, bytes)) => complete = last bytesRead += bytes.remaining() // Check length: invalid length is a stream error of type PROTOCOL_ERROR // https://tools.ietf.org/html/draft-ietf-httpbis-http2-17#section-8.1.2 -> 8.2.1.6 if (complete && maxlen > 0 && bytesRead != maxlen) { val msg = s"Entity too small. Expected $maxlen, received $bytesRead" val e = Http2Exception.PROTOCOL_ERROR.rst(streamId, msg) closePipeline(Some(e)) cb(Either.left(InvalidBodyException(msg))) } else if (maxlen > 0 && bytesRead > maxlen) { val msg = s"Entity too large. Expected $maxlen, received bytesRead" val e = Http2Exception.PROTOCOL_ERROR.rst(streamId, msg) closePipeline(Some(e)) cb(Either.left(InvalidBodyException(msg))) } else cb(Either.right(Some(Chunk.bytes(bytes.array)))) case Success(HeadersFrame(_, true, ts)) => logger.warn("Discarding trailers: " + ts) cb(Either.right(Some(Chunk.empty))) case Success(other) => // This should cover it val msg = "Received invalid frame while accumulating body: " + other logger.info(msg) val e = Http2Exception.PROTOCOL_ERROR.rst(streamId, msg) closePipeline(Some(e)) cb(Either.left(InvalidBodyException(msg))) case Failure(Cmd.EOF) => logger.debug("EOF while accumulating body") cb(Either.left(InvalidBodyException("Received premature EOF."))) closePipeline(None) case Failure(t) => logger.error(t)("Error in getBody().") val e = Http2Exception.INTERNAL_ERROR.rst(streamId, "Failed to read body") cb(Either.left(e)) closePipeline(Some(e)) } } repeatEval(t).unNoneTerminate.flatMap(chunk(_).covary[F]) } private def checkAndRunRequest(hs: Headers, endStream: Boolean): Unit = { val headers = new ListBuffer[Header] var method: HMethod = null var scheme: String = null var path: Uri = null var contentLength: Long = -1 var error: String = "" var pseudoDone = false hs.foreach { case (PseudoHeaders.Method, v) => if (pseudoDone) error += "Pseudo header in invalid position. " else if (method == null) org.http4s.Method.fromString(v) match { case Right(m) => method = m case Left(e) => error = s"$error Invalid method: $e " } else error += "Multiple ':method' headers defined. " case (PseudoHeaders.Scheme, v) => if (pseudoDone) error += "Pseudo header in invalid position. " else if (scheme == null) scheme = v else error += "Multiple ':scheme' headers defined. " case (PseudoHeaders.Path, v) => if (pseudoDone) error += "Pseudo header in invalid position. " else if (path == null) Uri.requestTarget(v) match { case Right(p) => path = p case Left(e) => error = s"$error Invalid path: $e" } else error += "Multiple ':path' headers defined. " case (PseudoHeaders.Authority, _) => // NOOP; TODO: we should keep the authority header if (pseudoDone) error += "Pseudo header in invalid position. " case h @ (k, _) if k.startsWith(":") => error += s"Invalid pseudo header: $h. " case (k, _) if !HeaderNames.validH2HeaderKey(k) => error += s"Invalid header key: $k. " case hs => // Non pseudo headers pseudoDone = true hs match { case h @ (HeaderNames.Connection, _) => error += s"HTTP/2.0 forbids connection specific headers: $h. " case (HeaderNames.ContentLength, v) => if (contentLength < 0) try { val sz = java.lang.Long.parseLong(v) if (sz != 0 && endStream) error += s"Nonzero content length ($sz) for end of stream." else if (sz < 0) error += s"Negative content length: $sz" else contentLength = sz } catch { case _: NumberFormatException => error += s"Invalid content-length: $v. " } else error += "Received multiple content-length headers" case (HeaderNames.TE, v) => if (!v.equalsIgnoreCase("trailers")) error += s"HTTP/2.0 forbids TE header values other than 'trailers'. " // ignore otherwise case (k, v) => headers += Raw(k.ci, v) } } if (method == null || scheme == null || path == null) { error += s"Invalid request: missing pseudo headers. Method: $method, Scheme: $scheme, path: $path. " } if (error.length > 0) { closePipeline(Some(Http2Exception.PROTOCOL_ERROR.rst(streamId, error))) } else { val body = if (endStream) EmptyBody else getBody(contentLength) val hs = HHeaders(headers.result()) val req = Request(method, path, HttpVersion.`HTTP/2.0`, hs, body, attributes()) executionContext.execute(new Runnable { def run(): Unit = { val action = Sync[F] .suspend(raceTimeout(req)) .recoverWith(serviceErrorHandler(req)) .flatMap(renderResponse) F.runAsync(action) { case Right(()) => IO.unit case Left(t) => IO(logger.error(t)(s"Error running request: $req")).attempt *> IO(closePipeline(None)) } }.unsafeRunSync() }) } } private def renderResponse(resp: Response[F]): F[Unit] = { val hs = new ArrayBuffer[(String, String)](16) hs += PseudoHeaders.Status -> Integer.toString(resp.status.code) resp.headers.foreach { h => // Connection related headers must be removed from the message because // this information is conveyed by other means. // http://httpwg.org/specs/rfc7540.html#rfc.section.8.1.2 if (h.name != headers.`Transfer-Encoding`.name && h.name != headers.Connection.name) { hs += ((h.name.value.toLowerCase(Locale.ROOT), h.value)) () } } new Http2Writer(this, hs, executionContext).writeEntityBody(resp.body).attempt.map { case Right(_) => closePipeline(None) case Left(Cmd.EOF) => stageShutdown() case Left(t) => closePipeline(Some(t)) } } private[this] val raceTimeout: Request[F] => F[Response[F]] = responseHeaderTimeout match { case finite: FiniteDuration => val timeoutResponse = timer.sleep(finite).as(Response.timeout[F]) req => F.race(runApp(req), timeoutResponse).map(_.merge) case _ => runApp } }
{ "content_hash": "f4a53fcac87d83b8257bab838a699bc5", "timestamp": "", "source": "github", "line_count": 259, "max_line_length": 106, "avg_line_length": 37.62934362934363, "alnum_prop": 0.6163554278678433, "repo_name": "ChristopherDavenport/http4s", "id": "23a3a53c7f84d75dfc1838cc72865129eb07d786", "size": "9746", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "blaze-server/src/main/scala/org/http4s/server/blaze/Http2NodeStage.scala", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "CSS", "bytes": "4166" }, { "name": "HTML", "bytes": "10662" }, { "name": "JavaScript", "bytes": "9" }, { "name": "Scala", "bytes": "2148391" }, { "name": "Shell", "bytes": "2319" } ] }
All URIs are relative to *https://apiv2.anketolog.ru/* Method | HTTP request | Description ------------- | ------------- | ------------- [**surveyAnswerInfo**](SurveyAnswerApi.md#surveyAnswerInfo) | **POST** /survey/answer/info | [**surveyAnswerList**](SurveyAnswerApi.md#surveyAnswerList) | **POST** /survey/answer/list | # **surveyAnswerInfo** > \AnketologClient\Model\SurveyAnswer surveyAnswerInfo($survey_answer_info_body) Информация об ответе на опрос ### Example ```php <?php require_once(__DIR__ . '/vendor/autoload.php'); // Configure API key authorization: apiKey AnketologClient\Configuration::getDefaultConfiguration()->setApiKey('x-anketolog-apikey', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // AnketologClient\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-anketolog-apikey', 'Bearer'); $api_instance = new AnketologClient\Api\SurveyAnswerApi(); $survey_answer_info_body = new \AnketologClient\Model\SurveyAnswerInfoBody(); // \AnketologClient\Model\SurveyAnswerInfoBody | try { $result = $api_instance->surveyAnswerInfo($survey_answer_info_body); print_r($result); } catch (Exception $e) { echo 'Exception when calling SurveyAnswerApi->surveyAnswerInfo: ', $e->getMessage(), PHP_EOL; } ?> ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **survey_answer_info_body** | [**\AnketologClient\Model\SurveyAnswerInfoBody**](../Model/\AnketologClient\Model\SurveyAnswerInfoBody.md)| | ### Return type [**\AnketologClient\Model\SurveyAnswer**](../Model/SurveyAnswer.md) ### Authorization [apiKey](../../README.md#apiKey) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **surveyAnswerList** > \AnketologClient\Model\SurveyAnswer[] surveyAnswerList($survey_answer_list_body) Список ответов на опрос ### Example ```php <?php require_once(__DIR__ . '/vendor/autoload.php'); // Configure API key authorization: apiKey AnketologClient\Configuration::getDefaultConfiguration()->setApiKey('x-anketolog-apikey', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // AnketologClient\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-anketolog-apikey', 'Bearer'); $api_instance = new AnketologClient\Api\SurveyAnswerApi(); $survey_answer_list_body = new \AnketologClient\Model\SurveyAnswerListBody(); // \AnketologClient\Model\SurveyAnswerListBody | try { $result = $api_instance->surveyAnswerList($survey_answer_list_body); print_r($result); } catch (Exception $e) { echo 'Exception when calling SurveyAnswerApi->surveyAnswerList: ', $e->getMessage(), PHP_EOL; } ?> ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **survey_answer_list_body** | [**\AnketologClient\Model\SurveyAnswerListBody**](../Model/\AnketologClient\Model\SurveyAnswerListBody.md)| | ### Return type [**\AnketologClient\Model\SurveyAnswer[]**](../Model/SurveyAnswer.md) ### Authorization [apiKey](../../README.md#apiKey) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
{ "content_hash": "c54240ea0fe0ac4646369f3c634dc5cc", "timestamp": "", "source": "github", "line_count": 108, "max_line_length": 189, "avg_line_length": 33.574074074074076, "alnum_prop": 0.6850523993381136, "repo_name": "anketolog/AnketologClient-php", "id": "a804921e928d1e41095fcf85554c65e867678a95", "size": "3706", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "docs/Api/SurveyAnswerApi.md", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "PHP", "bytes": "4908889" }, { "name": "Shell", "bytes": "1663" } ] }
<rss> <channel> <title>Example Feed 1</title> <description>This is a description for example feed 1</description> <link>http://examplefeed1.com/</link> <item> <title>Example Item 1</title> <description>This is an item description</description> <link>http://www.google.com</link> <pubDate>Fri, 01 Jan 2016 12:00:00 +0000</pubDate> <guid>example-id-1</guid> </item> <item> <title>Example Item 2</title> <description>This is an item description</description> <link>http://www.google.com</link> <pubDate>Sat, 02 Jan 2016 20:30:15 +0000</pubDate> <guid>example-id-2</guid> </item> </channel> </rss>
{ "content_hash": "e1e482b00d1873642ec03218c67a38c2", "timestamp": "", "source": "github", "line_count": 21, "max_line_length": 75, "avg_line_length": 37, "alnum_prop": 0.5534105534105535, "repo_name": "axnion/rssreader", "id": "9d48fbc0a8d85a7a089635fc2ce4663aedbcb28b", "size": "777", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "src/test/resources/RssParserTestResources/exampleFeed1.xml", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "2514" }, { "name": "Java", "bytes": "210029" } ] }
#pragma unmanaged typedef std::stack<HandleEntry*> BUFFERSTACK; HandleBuffer::HandleBuffer(void) { _size = 0; _offset = -1; _pCurrentBuffer = _firstBuffer; ZeroMemory(_firstBuffer, sizeof(_firstBuffer)); } HandleBuffer::~HandleBuffer(void) { HandleEntry* pHeapBuffer = (HandleEntry* )(_firstBuffer+MAX_OFFSET)->Address; if(pHeapBuffer) { BUFFERSTACK bufStack; do { bufStack.push(pHeapBuffer); pHeapBuffer = (HandleEntry* )(pHeapBuffer+MAX_OFFSET)->Address; }while(pHeapBuffer); while(bufStack.size()) { pHeapBuffer=bufStack.top(); bufStack.pop(); free(pHeapBuffer); } } } void HandleBuffer::Add(HANDLE handle, ULONG64 address) { if(++_offset==MAX_OFFSET) { HandleEntry* pNewBuffer = (HandleEntry*)calloc(BUFFER_SIZE, sizeof(HandleEntry)); (_pCurrentBuffer+MAX_OFFSET)->Address= (ULONG64)(pNewBuffer); _pCurrentBuffer = pNewBuffer; _offset = 0; } _pCurrentBuffer[_offset].Handle = handle; _pCurrentBuffer[_offset].Address = address; ++_size; }
{ "content_hash": "f92bf4613cbf50e9ef3d3af65e55dfc4", "timestamp": "", "source": "github", "line_count": 51, "max_line_length": 83, "avg_line_length": 20.823529411764707, "alnum_prop": 0.6638418079096046, "repo_name": "mayerwin/DebugInspector", "id": "75dcc4fd0a26d6cc5d844e1952e3ddc36cd34f2d", "size": "1128", "binary": false, "copies": "2", "ref": "refs/heads/master", "path": "src/DebugInspector/HandleBuffer.cpp", "mode": "33188", "license": "mit", "language": [ { "name": "C", "bytes": "28467" }, { "name": "C#", "bytes": "151075" }, { "name": "C++", "bytes": "175933" }, { "name": "Objective-C", "bytes": "4928" } ] }
package fr.soat; import java.util.Arrays; import java.util.Comparator; import java.util.concurrent.TimeUnit; import org.openjdk.jmh.annotations.Benchmark; import org.openjdk.jmh.annotations.BenchmarkMode; import org.openjdk.jmh.annotations.Fork; import org.openjdk.jmh.annotations.Measurement; import org.openjdk.jmh.annotations.Mode; import org.openjdk.jmh.annotations.OutputTimeUnit; import org.openjdk.jmh.annotations.Threads; import org.openjdk.jmh.annotations.Warmup; import org.openjdk.jmh.infra.Blackhole; /** * Benchamrk the java 8 sort solutions */ @BenchmarkMode(Mode.AverageTime) @OutputTimeUnit(TimeUnit.MICROSECONDS) @Warmup(iterations=100, time=100, timeUnit=TimeUnit.MILLISECONDS) @Measurement(iterations=100, time=100, timeUnit=TimeUnit.MILLISECONDS) @Fork(value = 1, jvmArgsPrepend = { "-server", "-Xmx2g", "-XX:+TieredCompilation" }) @Threads(1) public class LambdaVsAnonymousBenchmark { public static void main(String[] args) { long start = System.nanoTime(); Comparator<Personne> c = new Comparator<Personne>() { public int compare(Personne p1, Personne p2) { int nomCompaison = p1.getNom().compareTo(p2.getNom()); return (nomCompaison != 0) ? nomCompaison : p1.getPrenom().compareTo(p2.getPrenom()) ; } }; long end = System.nanoTime(); System.out.println(c + " : " + (end - start) ); } @Benchmark public void anonymous_class(PersonnesContainer c, Blackhole blackHole) { Arrays.sort(c.personneToSortArray, new Comparator<Personne>() { public int compare(Personne p1, Personne p2) { int nomCompaison = p1.getNom().compareTo(p2.getNom()); return (nomCompaison != 0) ? nomCompaison : p1.getPrenom().compareTo(p2.getPrenom()) ; } }); blackHole.consume(c.personneToSortArray); } @Benchmark public void lambda(PersonnesContainer c, Blackhole blackHole) { Arrays.sort(c.personneToSortArray, (p1, p2) -> { int nomCompaison = p1.getNom().compareTo(p2.getNom()); return (nomCompaison != 0) ? nomCompaison : p1.getPrenom().compareTo(p2.getPrenom()); }); blackHole.consume(c.personneToSortArray); } @Benchmark public void method_reference(PersonnesContainer c, Blackhole blackHole) { Arrays.sort(c.personneToSortArray, Comparator.comparing(Personne::getNom) .thenComparing(Personne::getPrenom)); blackHole.consume(c.personneToSortArray); } @Benchmark public void stream_anonymous_class(PersonnesContainer c, Blackhole blackHole) { Object[] sortedPersonnes = Arrays.stream(c.personneToSortArray) .sorted(new Comparator<Personne>() { public int compare(Personne p1, Personne p2) { int nomCompaison = p1.getNom().compareTo(p2.getNom()); return (nomCompaison != 0) ? nomCompaison : p1.getPrenom().compareTo(p2.getPrenom()) ; } }) .toArray(); blackHole.consume(sortedPersonnes); } @Benchmark public void stream_lambda(PersonnesContainer c, Blackhole blackHole) { Object[] sortedPersonnes = Arrays.stream(c.personneToSortArray) .sorted((p1, p2) -> { int nomCompaison = p1.getNom().compareTo(p2.getNom()); return (nomCompaison != 0) ? nomCompaison : p1.getPrenom().compareTo(p2.getPrenom()); }) .toArray(); blackHole.consume(sortedPersonnes); } @Benchmark public void stream_method_ref(PersonnesContainer c, Blackhole blackHole) { Object[] sortedPersonnes = Arrays.stream(c.personneToSortArray) .sorted(Comparator.comparing(Personne::getNom) .thenComparing(Personne::getPrenom)) .toArray(); blackHole.consume(sortedPersonnes); } /* parallel */ @Benchmark public void parallel_anonymous_class(PersonnesContainer c, Blackhole blackHole) { Arrays.parallelSort(c.personneToSortArray, new Comparator<Personne>() { public int compare(Personne p1, Personne p2) { int nomCompaison = p1.getNom().compareTo(p2.getNom()); return (nomCompaison != 0) ? nomCompaison : p1.getPrenom().compareTo(p2.getPrenom()) ; } }); blackHole.consume(c.personneToSortArray); } @Benchmark public void parallel_lambda(PersonnesContainer c, Blackhole blackHole) { Arrays.parallelSort(c.personneToSortArray, (p1, p2) -> { int nomCompaison = p1.getNom().compareTo(p2.getNom()); return (nomCompaison != 0) ? nomCompaison : p1.getPrenom().compareTo(p2.getPrenom()); }); blackHole.consume(c.personneToSortArray); } @Benchmark public void parallel_method_reference(PersonnesContainer c, Blackhole blackHole) { Arrays.parallelSort(c.personneToSortArray, Comparator.comparing(Personne::getNom) .thenComparing(Personne::getPrenom)); blackHole.consume(c.personneToSortArray); } @Benchmark public void parallel_stream_anonymous_class(PersonnesContainer c, Blackhole blackHole) { Object[] sortedPersonnes = Arrays.stream(c.personneToSortArray) .parallel() .sorted(new Comparator<Personne>() { public int compare(Personne p1, Personne p2) { int nomCompaison = p1.getNom().compareTo(p2.getNom()); return (nomCompaison != 0) ? nomCompaison : p1.getPrenom().compareTo(p2.getPrenom()) ; } }) .toArray(); blackHole.consume(sortedPersonnes); } @Benchmark public void parallel_stream_lambda(PersonnesContainer c, Blackhole blackHole) { Object[] sortedPersonnes = Arrays.stream(c.personneToSortArray) .parallel() .sorted((p1, p2) -> { int nomCompaison = p1.getNom().compareTo(p2.getNom()); return (nomCompaison != 0) ? nomCompaison : p1.getPrenom().compareTo(p2.getPrenom()); }) .toArray(); blackHole.consume(sortedPersonnes); } @Benchmark public void parallel_stream_method_ref(PersonnesContainer c, Blackhole blackHole) { Object[] sortedPersonnes = Arrays.stream(c.personneToSortArray) .parallel() .sorted(Comparator.comparing(Personne::getNom) .thenComparing(Personne::getPrenom)) .toArray(); blackHole.consume(sortedPersonnes); } }
{ "content_hash": "7e283304524ebafeb7e6ca74af8ae1e4", "timestamp": "", "source": "github", "line_count": 172, "max_line_length": 103, "avg_line_length": 35.616279069767444, "alnum_prop": 0.6922951354880835, "repo_name": "SoatGroup/benchamrk-lambda", "id": "0e1e6b2e60e89c933b0e890c9e96bdf004a31923", "size": "6126", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "java8-benchmark/src/main/java/fr/soat/LambdaVsAnonymousBenchmark.java", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Java", "bytes": "13719" }, { "name": "Shell", "bytes": "755" } ] }
package org.apache.lucene.analysis.phonetic; import java.io.StringReader; import java.util.Collections; import java.util.HashMap; import java.util.Map; import org.apache.lucene.analysis.BaseTokenStreamTestCase; import org.apache.lucene.analysis.MockTokenizer; import org.apache.lucene.analysis.TokenStream; /** Simple tests for {@link BeiderMorseFilterFactory} */ public class TestBeiderMorseFilterFactory extends BaseTokenStreamTestCase { public void testBasics() throws Exception { BeiderMorseFilterFactory factory = new BeiderMorseFilterFactory(); factory.setLuceneMatchVersion(TEST_VERSION_CURRENT); Map<String, String> args = Collections.emptyMap(); factory.init(args); TokenStream ts = factory.create(new MockTokenizer(new StringReader("Weinberg"), MockTokenizer.WHITESPACE, false)); assertTokenStreamContents(ts, new String[] { "vDnbirk", "vanbirk", "vinbirk", "wDnbirk", "wanbirk", "winbirk" }, new int[] { 0, 0, 0, 0, 0, 0 }, new int[] { 8, 8, 8, 8, 8, 8 }, new int[] { 1, 0, 0, 0, 0, 0 }); } public void testLanguageSet() throws Exception { BeiderMorseFilterFactory factory = new BeiderMorseFilterFactory(); Map<String,String> args = new HashMap<String,String>(); args.put("languageSet", "polish"); factory.init(args); TokenStream ts = factory.create(new MockTokenizer(new StringReader("Weinberg"), MockTokenizer.WHITESPACE, false)); assertTokenStreamContents(ts, new String[] { "vDmbYrk", "vDmbirk", "vambYrk", "vambirk", "vimbYrk", "vimbirk" }, new int[] { 0, 0, 0, 0, 0, 0 }, new int[] { 8, 8, 8, 8, 8, 8 }, new int[] { 1, 0, 0, 0, 0, 0 }); } public void testOptions() throws Exception { BeiderMorseFilterFactory factory = new BeiderMorseFilterFactory(); Map<String,String> args = new HashMap<String,String>(); args.put("nameType", "ASHKENAZI"); args.put("ruleType", "EXACT"); factory.init(args); TokenStream ts = factory.create(new MockTokenizer(new StringReader("Weinberg"), MockTokenizer.WHITESPACE, false)); assertTokenStreamContents(ts, new String[] { "vajnberk" }, new int[] { 0 }, new int[] { 8 }, new int[] { 1 }); } }
{ "content_hash": "d18935b28d5a49eceb69c3456edc5793", "timestamp": "", "source": "github", "line_count": 55, "max_line_length": 118, "avg_line_length": 40.63636363636363, "alnum_prop": 0.6738255033557047, "repo_name": "pkarmstr/NYBC", "id": "ba01ddec7adb508aa2e187b0260a7d0c8bc8398a", "size": "3036", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "solr-4.2.1/lucene/analysis/phonetic/src/test/org/apache/lucene/analysis/phonetic/TestBeiderMorseFilterFactory.java", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "C++", "bytes": "13377" }, { "name": "CSS", "bytes": "198209" }, { "name": "Gnuplot", "bytes": "2444" }, { "name": "Java", "bytes": "33441829" }, { "name": "JavaScript", "bytes": "1153858" }, { "name": "Perl", "bytes": "82981" }, { "name": "Python", "bytes": "209653" }, { "name": "Shell", "bytes": "77601" }, { "name": "XSLT", "bytes": "76094" } ] }
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>groups: Not compatible</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" rel="stylesheet"> <link href="../../../../../bootstrap-custom.css" rel="stylesheet"> <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet"> <script src="../../../../../moment.min.js"></script> <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --> <!-- WARNING: Respond.js doesn't work if you view the page via file:// --> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif]--> </head> <body> <div class="container"> <div class="navbar navbar-default" role="navigation"> <div class="container-fluid"> <div class="navbar-header"> <a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a> </div> <div id="navbar" class="collapse navbar-collapse"> <ul class="nav navbar-nav"> <li><a href="../..">clean / released</a></li> <li class="active"><a href="">8.7.1+1 / groups - 8.10.0</a></li> </ul> </div> </div> </div> <div class="article"> <div class="row"> <div class="col-md-12"> <a href="../..">« Up</a> <h1> groups <small> 8.10.0 <span class="label label-info">Not compatible</span> </small> </h1> <p><em><script>document.write(moment("2020-07-01 08:43:19 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2020-07-01 08:43:19 UTC)</em><p> <h2>Context</h2> <pre># Packages matching: installed # Name # Installed # Synopsis base-bigarray base base-num base Num library distributed with the OCaml compiler base-threads base base-unix base camlp5 7.12 Preprocessor-pretty-printer of OCaml conf-findutils 1 Virtual package relying on findutils conf-m4 1 Virtual package relying on m4 coq 8.7.1+1 Formal proof management system. num 0 The Num library for arbitrary-precision integer and rational arithmetic ocaml 4.05.0 The OCaml compiler (virtual package) ocaml-base-compiler 4.05.0 Official 4.05.0 release ocaml-config 1 OCaml Switch Configuration ocamlfind 1.8.1 A library manager for OCaml # opam file: opam-version: &quot;2.0&quot; maintainer: &quot;Hugo.Herbelin@inria.fr&quot; homepage: &quot;https://github.com/coq-contribs/groups&quot; license: &quot;LGPL 2.1&quot; build: [make &quot;-j%{jobs}%&quot;] install: [make &quot;install&quot;] remove: [&quot;rm&quot; &quot;-R&quot; &quot;%{lib}%/coq/user-contrib/Groups&quot;] depends: [ &quot;ocaml&quot; &quot;coq&quot; {&gt;= &quot;8.10&quot; &amp; &lt; &quot;8.11~&quot;} ] tags: [ &quot;keyword: group theory&quot; &quot;category: Miscellaneous/Coq Use Examples&quot; ] authors: [ &quot;Pierre Castéran&quot; ] bug-reports: &quot;https://github.com/coq-contribs/groups/issues&quot; dev-repo: &quot;git+https://github.com/coq-contribs/groups.git&quot; synopsis: &quot;An exercise on groups&quot; flags: light-uninstall url { src: &quot;https://github.com/coq-contribs/groups/archive/v8.10.0.tar.gz&quot; checksum: &quot;md5=0b64bc9687023a4ca6206cefe9f774eb&quot; } </pre> <h2>Lint</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> </dl> <h2>Dry install</h2> <p>Dry install with the current Coq version:</p> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam install -y --show-action coq-groups.8.10.0 coq.8.7.1+1</code></dd> <dt>Return code</dt> <dd>5120</dd> <dt>Output</dt> <dd><pre>[NOTE] Package coq is already installed (current version is 8.7.1+1). The following dependencies couldn&#39;t be met: - coq-groups -&gt; coq &gt;= 8.10 Your request can&#39;t be satisfied: - No available version of coq satisfies the constraints No solution found, exiting </pre></dd> </dl> <p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam remove -y coq; opam install -y --show-action --unlock-base coq-groups.8.10.0</code></dd> <dt>Return code</dt> <dd>0</dd> </dl> <h2>Install dependencies</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>0 s</dd> </dl> <h2>Install</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>0 s</dd> </dl> <h2>Installation size</h2> <p>No files were installed.</p> <h2>Uninstall</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Missing removes</dt> <dd> none </dd> <dt>Wrong removes</dt> <dd> none </dd> </dl> </div> </div> </div> <hr/> <div class="footer"> <p class="text-center"> <small>Sources are on <a href="https://github.com/coq-bench">GitHub</a>. © Guillaume Claret.</small> </p> </div> </div> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <script src="../../../../../bootstrap.min.js"></script> </body> </html>
{ "content_hash": "a69dc0733f44cb66dd727cea28a41040", "timestamp": "", "source": "github", "line_count": 168, "max_line_length": 157, "avg_line_length": 39.726190476190474, "alnum_prop": 0.5325142343422236, "repo_name": "coq-bench/coq-bench.github.io", "id": "a754b56db2f87fbc01eb4949a500c470b482c4d9", "size": "6677", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "clean/Linux-x86_64-4.05.0-2.0.6/released/8.7.1+1/groups/8.10.0.html", "mode": "33188", "license": "mit", "language": [] }
package ru.sberned.statemachine.state; import java.io.Serializable; import java.util.Collection; import java.util.Collections; /** * Created by Evgeniya Patuk (jpatuk@gmail.com) on 01/11/2016. */ public class StateChangedEvent<E, ID> implements Serializable { private Collection<ID> ids; private E newState; private Object info; public StateChangedEvent(Collection<ID> ids, E newState) { this.ids = ids; this.newState = newState; } public StateChangedEvent(Collection<ID> ids, E newState, Object info) { this.ids = ids; this.newState = newState; this.info = info; } public StateChangedEvent(ID id, E newState) { this.ids = Collections.singletonList(id); this.newState = newState; } public StateChangedEvent(ID id, E newState, Object info) { this.ids = Collections.singletonList(id); this.newState = newState; this.info = info; } public Collection<ID> getIds() { return ids; } public void setIds(Collection<ID> ids) { this.ids = ids; } public E getNewState() { return newState; } public void setNewState(E newState) { this.newState = newState; } public Object getInfo() { return info; } private void setInfo(Object info) { this.info = info; } @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; StateChangedEvent<?, ?> that = (StateChangedEvent<?, ?>) o; if (ids != null ? !ids.equals(that.ids) : that.ids != null) return false; if (newState != null ? !newState.equals(that.newState) : that.newState != null) return false; return info != null ? info.equals(that.info) : that.info == null; } @Override public int hashCode() { int result = ids != null ? ids.hashCode() : 0; result = 31 * result + (newState != null ? newState.hashCode() : 0); return result; } }
{ "content_hash": "20634cc62d7c30b162307a11a75bce4b", "timestamp": "", "source": "github", "line_count": 81, "max_line_length": 101, "avg_line_length": 25.604938271604937, "alnum_prop": 0.6036644165863067, "repo_name": "Sberned/spring-flow-statemachine", "id": "337447ceffdd4f59552d1bd81251196105956267", "size": "2074", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "state-machine-core/src/main/java/ru/sberned/statemachine/state/StateChangedEvent.java", "mode": "33188", "license": "mit", "language": [ { "name": "Java", "bytes": "82605" } ] }
End of preview.

No dataset card yet

Downloads last month
2